diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index a6f34fe..0000000 --- a/.eslintignore +++ /dev/null @@ -1,4 +0,0 @@ -node_modules -dist -out -.gitignore diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 1bb7310..0000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - extends: [ - 'eslint:recommended', - 'plugin:react/recommended', - 'plugin:react/jsx-runtime', - '@electron-toolkit', - '@electron-toolkit/eslint-config-prettier' - ] -} diff --git a/.prettierrc.yaml b/.prettierrc.yaml index 35893b3..f99263a 100644 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -1,4 +1,4 @@ -singleQuote: true +singleQuote: false semi: false printWidth: 100 trailingComma: none diff --git a/src/renderer/src/settings_list.jsx b/src/renderer/src/settings_list.jsx index 256d0b8..0b0bd06 100644 --- a/src/renderer/src/settings_list.jsx +++ b/src/renderer/src/settings_list.jsx @@ -1,52 +1,64 @@ import { Button } from "antd" export default [ - { + { + id: "services", + name: "Services", + icon: "MdAccountTree", + children: [ + { id: "drive_auth", - name: "Google Drive Authorize", + name: "Google Drive", description: "Authorize your Google Drive account to be used for bundles installation.", icon: "SiGoogledrive", type: "button", storaged: false, watchIpc: ["drive:authorized", "drive:unauthorized"], defaultValue: async () => { - return await api.settings.get("drive_auth") + return await api.settings.get("drive_auth") }, render: (props) => { - return + ) } - }, - { + } + ] + }, + { + id: "updates", + name: "Updates", + icon: "MdUpdate", + children: [ + { id: "check_update", name: "Check for updates", description: "Check for updates to the app.", icon: "MdUpdate", type: "button", props: { - children: "Check", - onClick: () => { - message.info("Checking for updates...") - app.checkUpdates() - } + children: "Check", + onClick: () => { + message.info("Checking for updates...") + app.checkUpdates() + } }, storaged: false - }, - { + }, + { id: "pkg_auto_update_on_execute", name: "Packages auto update", description: "If a update is available, automatically update the app when it is executed.", @@ -54,5 +66,43 @@ export default [ type: "switch", storaged: true, defaultValue: false - } + } + ] + }, + { + id: "other", + name: "Other", + icon: "MdSettings", + children: [ + { + id: "open_settings_path", + name: "Open settings path", + description: "Open the folder where all packages are stored.", + icon: "MdFolder", + type: "button", + type: "button", + props: { + children: "Open", + onClick: () => { + ipc.send("open-runtime-path") + } + }, + storaged: false + }, + { + id: "open_dev_logs", + name: "Open internal logs", + description: "Open the internal logs of the app.", + icon: "MdTerminal", + type: "button", + props: { + children: "Open", + onClick: () => { + ipc.send("open-dev-logs") + } + }, + storaged: false + } + ] + } ]