comty/config/index.js
srgooglo a863864644 *update: model improvement
*add: contextual menu
*update: ipc models
*update: post cards ux handlers & events listeners
2020-09-17 21:23:11 +02:00

69 lines
1.5 KiB
JavaScript

module.exports = {
app_config: {
siteName: 'Comty',
copyright: 'RageStudio©',
MainPath: '/',
LogoPath: '/logo.svg',
FullLogoPath: '/full_logo.svg',
DarkFullLogoPath: '/dark_full_logo.svg',
DarkLogoPath: '/dark_logo.svg',
api_prefix: 'ycorejs_apiv3',
app_settings_storage: 'app_settings',
endpoint_global: 'https://comty.pw',
session_token_storage: 'cid',
session_data_storage: 'data',
appTheme_container: 'app_theme',
appTheme_desiredContrast: 4.5,
// Contrast level AA = 4.5, Level AAA = 7
// Reference: https://www.w3.org/WAI/WCAG21/quickref/?versions=2.0&showtechniques=143#qr-visual-audio-contrast-contrast
},
i18n: {
languages: [
{
key: 'en',
title: 'English',
},
],
defaultLanguage: 'en',
},
layouts: [
{
name: 'primary',
include: [/\/main/, /\/settings/, /\/saves/, /\/pro/, /\/chats/, /\//],
exclude: [/\/publics/, /\/login/ ],
},
{
name: 'public',
include: [/.*/]
}
],
// Default Behaviors
defaults: {
verbosity: false,
session_noexpire: false,
search_ontype: false,
overlay_loosefocus: true,
render_pagetransition_preset: 'moveToRightScaleUp',
post_catchlimit: '20',
post_hidebar: true,
feed_autorefresh: false,
},
stricts: {
post_maxlenght: '512',
// In KB
api_maxpayload: '101376',
api_maxovertick: 10,
}
};