comty/globals/settings.js
2020-03-03 19:06:18 +01:00

60 lines
2.6 KiB
JavaScript
Executable File

const ycore = require('ycore')
const fromStorage = JSON.parse(localStorage.getItem('app_settings'))
export var AppSettings = [
{
"SettingID": "strict_lightMode",
"title": "Strict Light Mode",
"description": "Force the app to apply full light mode theme when the light mode is activated... (Experimental)",
"value": fromStorage? ycore.StorageValued('strict_lightMode') : false
},
{
"SettingID": "default_collapse_sider",
"title": "Default Collapse Sider",
"description": "Force the app to apply collapsed mode theme when the app is mounted...",
"value": fromStorage? ycore.StorageValued('default_collapse_sider') : true
},
{
"SettingID": "auto_feedrefresh",
"title": "Auto Feed Refresh",
"description": "Force the app to auto refresh the posts feed when exist news posts for update",
"value": fromStorage? ycore.StorageValued('auto_feedrefresh') : false
},
{
"SettingID": "force_showDevLogs",
"title": "Show Functions Logs",
"description": "Show all console logs... [Developer]",
"value": fromStorage? ycore.StorageValued('force_showDevLogs') : false
},
{
"SettingID": "sessions_noexpire",
"title": "No expire session",
"description": "Force the app to not expire any session... [Developer]",
"value": fromStorage? ycore.StorageValued('sessions_noexpire') : false
},
{
"SettingID": "auto_search_ontype",
"title": "Auto search",
"description": "Force the app to automaticly search when a type input is detected... [Developer]",
"value": fromStorage? ycore.StorageValued('auto_search_ontype') : false
},
{
"SettingID": "default_showpostcreator",
"title": "Show default Post Creator",
"description": "Force the app to automaticly search when a type input is detected... [Developer]",
"value": fromStorage? ycore.StorageValued('default_showpostcreator') : false
},
{
"SettingID": "force_show_postactions",
"title": "Not auto hide Posts Actions",
"description": "Force the app to dont hide the post actions (likes, comments ...etc) automaticly... [Developer]",
"value": fromStorage? ycore.StorageValued('force_show_postactions') : false
},
{
"SettingID": "use_dev_server",
"title": "Use Comty™ Development Server",
"description": "Force the app to connect to an development server... [High Recomended]",
"value": fromStorage? ycore.StorageValued('use_dev_server') : false
}
]