From 3b5c67937f9c4b413a222ba3956aa1a5ea6719f3 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Mon, 3 Jan 2022 18:35:25 +0100 Subject: [PATCH] added constants --- packages/app/constants/defaultSoundPack.json | 3 + packages/app/constants/routes.json | 28 ++++++ packages/app/constants/settingsList.json | 30 +++++- packages/app/constants/sidebar.json | 99 ------------------- .../app/constants/vaultItemStatements.json | 22 ----- packages/app/constants/vaultItemsTypes.json | 15 --- 6 files changed, 57 insertions(+), 140 deletions(-) create mode 100644 packages/app/constants/defaultSoundPack.json create mode 100644 packages/app/constants/routes.json delete mode 100644 packages/app/constants/sidebar.json delete mode 100644 packages/app/constants/vaultItemStatements.json delete mode 100644 packages/app/constants/vaultItemsTypes.json diff --git a/packages/app/constants/defaultSoundPack.json b/packages/app/constants/defaultSoundPack.json new file mode 100644 index 00000000..abe76874 --- /dev/null +++ b/packages/app/constants/defaultSoundPack.json @@ -0,0 +1,3 @@ +{ + "crash": "/sounds/crash.wav" +} \ No newline at end of file diff --git a/packages/app/constants/routes.json b/packages/app/constants/routes.json new file mode 100644 index 00000000..952d2a7a --- /dev/null +++ b/packages/app/constants/routes.json @@ -0,0 +1,28 @@ +[ + { + "id": "main", + "title": "Dashboard", + "icon": "Home", + "locked": true + }, + { + "id": "users", + "title": "Users", + "icon": "Users" + }, + { + "id": "server_manager", + "title": "Server", + "icon": "Database" + }, + { + "id": "launchpad", + "title": "Launchpad", + "icon": "Command" + }, + { + "id": "statistics", + "title": "Statistics", + "icon": "BarChart" + } +] \ No newline at end of file diff --git a/packages/app/constants/settingsList.json b/packages/app/constants/settingsList.json index b68bbc5b..44893c78 100644 --- a/packages/app/constants/settingsList.json +++ b/packages/app/constants/settingsList.json @@ -1,10 +1,21 @@ [ { - "id": "expire_session", + "id": "persistent_session", "group": "general", "type": "Switch", "icon": "Key", - "title": "Expire Session" + "title": "Save Session", + "title_i18n": "settings_general_persitentSession", + "description": "The application will save the session and no expire it.", + "description_i18n": "settings_general_persitentSession_description" + }, + { + "id": "language", + "group": "general", + "type": "Select", + "icon": "MdTranslate", + "title": "Language", + "title_i18n": "settings_general_language" }, { "id": "edit_sidebar", @@ -12,6 +23,7 @@ "type": "Button", "icon": "Edit", "title": "Edit Sidebar", + "title_i18n": "settings_sidebar_edit", "emitEvent": "edit_sidebar", "noStorage": true }, @@ -19,14 +31,19 @@ "id": "collapseOnLooseFocus", "group": "sidebar", "type": "Switch", - "title": "Collapse when loose focus" + "title": "Auto Collapse", + "description": "Collapse the sidebar when loose focus", + "title_i18n": "settings_sidebar_autoCollapse", + "description_i18n": "settings_sidebar_autoCollapse_description" }, { "id": "reduceAnimations", "group": "aspect", "type": "Switch", "icon": "MdOutlineAnimation", - "title": "Reduce animation" + "title": "Reduce animation", + "title_i18n": "settings_aspect_reduceAnimation", + "experimental": true }, { "id": "darkMode", @@ -34,6 +51,7 @@ "type": "Switch", "icon": "Moon", "title": "Dark Mode", + "title_i18n": "settings_aspect_darkMode", "emitEvent": "darkMode", "experimental": true }, @@ -42,6 +60,9 @@ "group": "aspect", "type": "SliderColorPicker", "title": "Primary color", + "description": "Change primary color of the application.", + "title_i18n": "settings_aspect_primaryColor", + "description_i18n": "settings_aspect_primaryColor_description", "emitEvent": "modifyTheme", "updateValueKey": "primaryColor" }, @@ -50,6 +71,7 @@ "group": "aspect", "type": "Button", "title": "Reset theme", + "title_i18n": "settings_aspect_resetTheme", "props": { "children": "Default Theme" }, diff --git a/packages/app/constants/sidebar.json b/packages/app/constants/sidebar.json deleted file mode 100644 index 052ddf8a..00000000 --- a/packages/app/constants/sidebar.json +++ /dev/null @@ -1,99 +0,0 @@ -[ - { - "id": "main", - "title": "Dashboard", - "icon": "Home", - "locked": true - }, - { - "id": "workloads", - "title": "Workloads", - "icon": "GitCommit", - "children": [ - { - "id": "workloads/pool", - "title": "Pool", - "icon": "Archive" - }, - { - "id": "workloads/sections", - "title": "Sections", - "icon": "Target" - }, - { - "id": "workloads/items", - "title": "Items", - "icon": "Tag" - } - ] - }, - { - "id": "users", - "title": "Users", - "icon": "Users", - "children": [ - { - "id": "users/contracts", - "title": "Contracts", - "icon": "Briefcase" - }, - { - "id": "users/roles", - "title": "Roles", - "icon": "Link" - }, - { - "id": "users/workshifts", - "title": "Workshifts", - "icon": "Clock" - }, - { - "id": "users/accounts", - "title": "Accounts", - "icon": "User" - } - ] - }, - { - "id": "geo", - "title": "Geo", - "icon": "MapPin", - "children": [ - { - "id": "locations", - "title": "Locations", - "icon": "Map" - } - ] - }, - { - "id": "fabric", - "title": "Fabric", - "icon": "Box" - }, - { - "id": "vault", - "title": "Vault", - "icon": "Archive" - }, - { - "id": "reports", - "title": "Reports", - "icon": "Umbrella" - }, - { - "id": "server_manager", - "title": "Server", - "icon": "Database" - }, - { - "id": "launchpad", - "title": "Launchpad", - "icon": "Command" - }, - { - "id": "statistics", - "title": "Statistics", - "icon": "BarChart" - } -] \ No newline at end of file diff --git a/packages/app/constants/vaultItemStatements.json b/packages/app/constants/vaultItemStatements.json deleted file mode 100644 index 97c8c4cf..00000000 --- a/packages/app/constants/vaultItemStatements.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "active": { - "value": "active", - "label": "Active", - "tagColor": "green" - }, - "retired": { - "value": "retired", - "label": "Retired", - "tagColor": "red" - }, - "storaged": { - "value": "storaged", - "label": "Storaged", - "tagColor": "blue" - }, - "unknown": { - "value": "unknown", - "label": "Unknown", - "tagColor": "gray" - } -} \ No newline at end of file diff --git a/packages/app/constants/vaultItemsTypes.json b/packages/app/constants/vaultItemsTypes.json deleted file mode 100644 index 34c02582..00000000 --- a/packages/app/constants/vaultItemsTypes.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "computers": [ - "desktop", - "laptop", - "phone", - "tablet" - ], - "peripherals": [ - "keyboard", - "mouse", - "monitor", - "printer", - "scanner" - ] -} \ No newline at end of file