diff --git a/plugins/eurotilities/components/settings.tsx b/plugins/eurotilities/components/settings.tsx deleted file mode 100644 index 204094a..0000000 --- a/plugins/eurotilities/components/settings.tsx +++ /dev/null @@ -1,103 +0,0 @@ -import modules from "../helpers/modules.ts"; - -const { - plugin: { store }, - ui: { - Divider, - SwitchItem, - openModal, - ModalRoot, - ModalSizes, - ModalHeader, - ModalBody, - ModalConfirmFooter, - Button, - ButtonLooks, - ButtonColors, - ButtonSizes, - }, - React, -} = shelter; - -const handleSettingChange = (key, value) => { - store[key] = value; -}; - -const camelize = (str: string) => { - return str - .replace(/(?:^\w|[A-Z]|\b\w)/g, (word, index) => - index === 0 ? word.toLowerCase() : word.toUpperCase(), - ) - .replace(/\s+/g, ""); -}; - -const makeModal = () => { - const remove = openModal(() => ( - - { - remove(); - }} - > - €tilities Settings - - - - {Object.keys(modules).map((module) => { - const mod = modules[module]; - return ( -
- handleSettingChange(camelize(module), v)} - hideBorder - // biome-ignore lint/correctness/noChildrenProp: - children="" - > - {mod.title} -
- {mod.content} -
- -
- ); - })} -
- { - remove(); - }} - cancelText="Close" - confirmText="Apply" - onConfirm={() => { - location.reload(); - }} - /> -
- )); -}; - -export const settings = () => { - return ( -