add settings

This commit is contained in:
sadan 2024-06-29 01:45:54 -04:00
parent d9e8a86688
commit f4ca72c6f6
No known key found for this signature in database
2 changed files with 28 additions and 0 deletions

View file

@ -10,6 +10,7 @@ import { Devs } from "@utils/constants";
import { closeModal, ModalContent, ModalHeader, ModalRoot, openModalLazy } from "@utils/modal";
import definePlugin from "@utils/types";
import { Button, Menu, Slider, TextInput, useState } from "@webpack/common";
import settings from "./settings";
const DATA_STORE_NAME = "CFI_DATA";
interface folderIcon{
url: string,
@ -24,6 +25,7 @@ interface folderProp {
}
let folderData: folderStoredData;
export default definePlugin({
settings,
start: async ()=>{
folderData = await DataStore.get(DATA_STORE_NAME).catch(e => handleUpdateError(e)) || {} as folderStoredData;
},

View file

@ -0,0 +1,26 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { definePluginSettings } from "@api/Settings";
import { IPluginOptionComponentProps, OptionType } from "@utils/types";
const settings = definePluginSettings({
folderIcons: {
type: OptionType.COMPONENT,
description: "guh",
component: props => <>
<FolderIconsSettings
setValue={props.setValue}
setError={props.setError}
option={props.option}
/>
</>
}
});
export default settings;
function FolderIconsSettings(props: IPluginOptionComponentProps): JSX.Element {
return <></>;
}