mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
update constants
This commit is contained in:
parent
a9ebc7065a
commit
c8a6ba6dfb
4
packages/app/constants/defaultRemotesOrigins.json
Normal file
4
packages/app/constants/defaultRemotesOrigins.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"http_api": "https://devapi_comty01.ragestudio.net",
|
||||||
|
"ws_api": "wss://devws_comty01.ragestudio.net"
|
||||||
|
}
|
@ -1,3 +1,15 @@
|
|||||||
{
|
{
|
||||||
"collapseOnLooseFocus": true
|
"forceMobileMode": false,
|
||||||
|
"notifications_sound": true,
|
||||||
|
"notifications_vibrate": true,
|
||||||
|
"notifications_sound_volume": 50,
|
||||||
|
"selection_longPress_timeout": 600,
|
||||||
|
"haptic_feedback": false,
|
||||||
|
"collapseOnLooseFocus": true,
|
||||||
|
"language": "es",
|
||||||
|
"sidebarKeys": [
|
||||||
|
"main",
|
||||||
|
"explore",
|
||||||
|
"users"
|
||||||
|
]
|
||||||
}
|
}
|
@ -1,10 +0,0 @@
|
|||||||
[
|
|
||||||
"main",
|
|
||||||
"fabric",
|
|
||||||
"workloads",
|
|
||||||
"users",
|
|
||||||
"geo",
|
|
||||||
"vault",
|
|
||||||
"statistics",
|
|
||||||
"reports"
|
|
||||||
]
|
|
@ -1,3 +1,5 @@
|
|||||||
{
|
{
|
||||||
"crash": "/sounds/crash.wav"
|
"crash": "/sounds/crash.wav",
|
||||||
|
"error": "/sounds/error.wav",
|
||||||
|
"notification": "/sounds/notification.wav"
|
||||||
}
|
}
|
@ -10,13 +10,5 @@
|
|||||||
"users": {
|
"users": {
|
||||||
"icon": "Users",
|
"icon": "Users",
|
||||||
"title": "Users"
|
"title": "Users"
|
||||||
},
|
|
||||||
"regions": {
|
|
||||||
"icon": "Globe",
|
|
||||||
"title": "Locations"
|
|
||||||
},
|
|
||||||
"vault": {
|
|
||||||
"icon": "Archive",
|
|
||||||
"title": "Vault"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -6,23 +6,9 @@
|
|||||||
"locked": true
|
"locked": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "users",
|
"id": "explore",
|
||||||
"title": "Users",
|
"title": "Explore",
|
||||||
"icon": "Users"
|
"icon": "Compass",
|
||||||
},
|
"locked": true
|
||||||
{
|
|
||||||
"id": "server_manager",
|
|
||||||
"title": "Server",
|
|
||||||
"icon": "Database"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "launchpad",
|
|
||||||
"title": "Launchpad",
|
|
||||||
"icon": "Command"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "statistics",
|
|
||||||
"title": "Statistics",
|
|
||||||
"icon": "BarChart"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
145
packages/app/constants/settings.jsx
Normal file
145
packages/app/constants/settings.jsx
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
import React from "react"
|
||||||
|
import config from "config"
|
||||||
|
import { Select } from "antd"
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
"id": "language",
|
||||||
|
"group": "general",
|
||||||
|
"type": "Select",
|
||||||
|
"icon": "MdTranslate",
|
||||||
|
"title": "Language",
|
||||||
|
"description": "Choose a language for the application",
|
||||||
|
"props": {
|
||||||
|
children: config.i18n.languages.map((language) => {
|
||||||
|
return <Select.Option value={language.locale}>{language.name}</Select.Option>
|
||||||
|
})
|
||||||
|
},
|
||||||
|
"emitEvent": "changeLanguage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "forceMobileMode",
|
||||||
|
"group": "general",
|
||||||
|
"type": "Switch",
|
||||||
|
"icon": "MdSmartphone",
|
||||||
|
"title": "Force Mobile Mode",
|
||||||
|
"description": "Force the application to run in mobile mode.",
|
||||||
|
"emitEvent": "forceMobileMode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "haptic_feedback",
|
||||||
|
"group": "general",
|
||||||
|
"type": "Switch",
|
||||||
|
"icon": "MdVibration",
|
||||||
|
"title": "Haptic Feedback",
|
||||||
|
"description": "Enable haptic feedback on touch events.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "selection_longPress_timeout",
|
||||||
|
"group": "general",
|
||||||
|
"type": "Slider",
|
||||||
|
"icon": "MdTimer",
|
||||||
|
"title": "Selection press delay",
|
||||||
|
"description": "Set the delay before the selection trigger is activated.",
|
||||||
|
"props": {
|
||||||
|
min: 300,
|
||||||
|
max: 2000,
|
||||||
|
step: 100,
|
||||||
|
marks: {
|
||||||
|
300: "0.3s",
|
||||||
|
600: "0.6s",
|
||||||
|
1000: "1s",
|
||||||
|
1500: "1.5s",
|
||||||
|
2000: "2s",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "notifications_sound",
|
||||||
|
"group": "notifications",
|
||||||
|
"type": "Switch",
|
||||||
|
"icon": "MdVolumeUp",
|
||||||
|
"title": "Notifications Sound",
|
||||||
|
"description": "Play a sound when a notification is received.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "notifications_vibrate",
|
||||||
|
"group": "notifications",
|
||||||
|
"type": "Switch",
|
||||||
|
"icon": "MdVibration",
|
||||||
|
"title": "Vibration",
|
||||||
|
"description": "Vibrate the device when a notification is received.",
|
||||||
|
"emitEvent": "changeNotificationsVibrate"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "notifications_sound_volume",
|
||||||
|
"group": "notifications",
|
||||||
|
"type": "Slider",
|
||||||
|
"icon": "MdVolumeUp",
|
||||||
|
"title": "Sound Volume",
|
||||||
|
"description": "Set the volume of the sound when a notification is received.",
|
||||||
|
"props": {
|
||||||
|
tipFormatter: (value) => {
|
||||||
|
return `${value}%`
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"emitEvent": "changeNotificationsSoundVolume"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "edit_sidebar",
|
||||||
|
"group": "sidebar",
|
||||||
|
"type": "Button",
|
||||||
|
"icon": "Edit",
|
||||||
|
"title": "Edit Sidebar",
|
||||||
|
"emitEvent": "edit_sidebar",
|
||||||
|
"noStorage": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "collapseOnLooseFocus",
|
||||||
|
"group": "sidebar",
|
||||||
|
"type": "Switch",
|
||||||
|
"title": "Auto Collapse",
|
||||||
|
"description": "Collapse the sidebar when loose focus",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "reduceAnimations",
|
||||||
|
"group": "aspect",
|
||||||
|
"type": "Switch",
|
||||||
|
"icon": "MdOutlineAnimation",
|
||||||
|
"title": "Reduce animation",
|
||||||
|
"experimental": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "darkMode",
|
||||||
|
"group": "aspect",
|
||||||
|
"type": "Switch",
|
||||||
|
"icon": "Moon",
|
||||||
|
"title": "Dark mode",
|
||||||
|
"emitEvent": "darkMode",
|
||||||
|
"experimental": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "primaryColor",
|
||||||
|
"group": "aspect",
|
||||||
|
"type": "SliderColorPicker",
|
||||||
|
"title": "Primary color",
|
||||||
|
"description": "Change primary color of the application.",
|
||||||
|
"emitEvent": "modifyTheme",
|
||||||
|
"emissionValueUpdate": (value) => {
|
||||||
|
return {
|
||||||
|
primaryColor: value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "resetTheme",
|
||||||
|
"group": "aspect",
|
||||||
|
"type": "Button",
|
||||||
|
"title": "Reset theme",
|
||||||
|
"props": {
|
||||||
|
"children": "Default Theme"
|
||||||
|
},
|
||||||
|
"emitEvent": "resetTheme",
|
||||||
|
"noStorage": true
|
||||||
|
}
|
||||||
|
]
|
@ -3,6 +3,10 @@
|
|||||||
"title": "General",
|
"title": "General",
|
||||||
"icon": "Settings"
|
"icon": "Settings"
|
||||||
},
|
},
|
||||||
|
"notifications": {
|
||||||
|
"title": "Notifications",
|
||||||
|
"icon": "Bell"
|
||||||
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"title": "Sidebar",
|
"title": "Sidebar",
|
||||||
"icon": "Layout"
|
"icon": "Layout"
|
||||||
|
@ -1,81 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"id": "persistent_session",
|
|
||||||
"group": "general",
|
|
||||||
"type": "Switch",
|
|
||||||
"icon": "Key",
|
|
||||||
"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",
|
|
||||||
"group": "sidebar",
|
|
||||||
"type": "Button",
|
|
||||||
"icon": "Edit",
|
|
||||||
"title": "Edit Sidebar",
|
|
||||||
"title_i18n": "settings_sidebar_edit",
|
|
||||||
"emitEvent": "edit_sidebar",
|
|
||||||
"noStorage": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "collapseOnLooseFocus",
|
|
||||||
"group": "sidebar",
|
|
||||||
"type": "Switch",
|
|
||||||
"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_i18n": "settings_aspect_reduceAnimation",
|
|
||||||
"experimental": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "darkMode",
|
|
||||||
"group": "aspect",
|
|
||||||
"type": "Switch",
|
|
||||||
"icon": "Moon",
|
|
||||||
"title": "Dark Mode",
|
|
||||||
"title_i18n": "settings_aspect_darkMode",
|
|
||||||
"emitEvent": "darkMode",
|
|
||||||
"experimental": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "primaryColor",
|
|
||||||
"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"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "resetTheme",
|
|
||||||
"group": "aspect",
|
|
||||||
"type": "Button",
|
|
||||||
"title": "Reset theme",
|
|
||||||
"title_i18n": "settings_aspect_resetTheme",
|
|
||||||
"props": {
|
|
||||||
"children": "Default Theme"
|
|
||||||
},
|
|
||||||
"emitEvent": "resetTheme",
|
|
||||||
"noStorage": true
|
|
||||||
}
|
|
||||||
]
|
|
Loading…
x
Reference in New Issue
Block a user