2024-06-07 20:17:03 +03:00
|
|
|
/**
|
|
|
|
* Module: Global constants.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Global application Parameters. The place where magic numbers are put to rest.
|
|
|
|
*/
|
|
|
|
export const PARAMETER = {
|
|
|
|
smallScreen: 640, // == tailwind:xs
|
|
|
|
smallTreeNodes: 50, // amount of nodes threshold for size increase for large graphs
|
|
|
|
refreshTimeout: 100, // milliseconds delay for post-refresh actions
|
|
|
|
minimalTimeout: 10, // milliseconds delay for fast updates
|
|
|
|
|
2024-07-23 23:03:58 +03:00
|
|
|
zoomDuration: 500, // milliseconds animation duration
|
|
|
|
|
2024-06-07 20:17:03 +03:00
|
|
|
graphHoverXLimit: 0.4, // ratio to clientWidth used to determine which side of screen popup should be
|
|
|
|
graphHoverYLimit: 0.6, // ratio to clientHeight used to determine which side of screen popup should be
|
|
|
|
graphPopupDelay: 500, // milliseconds delay for graph popup selections
|
|
|
|
graphRefreshDelay: 10, // milliseconds delay for graph viewpoint reset
|
|
|
|
|
2024-06-09 20:40:41 +03:00
|
|
|
logicLabel: 'LOGIC',
|
2024-06-16 22:52:44 +03:00
|
|
|
exteorVersion: '4.9.3',
|
2024-06-09 20:40:41 +03:00
|
|
|
|
|
|
|
TOOLTIP_WIDTH: 'max-w-[29rem]'
|
2024-06-07 20:17:03 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Numeric limitations.
|
|
|
|
*/
|
|
|
|
export const limits = {
|
|
|
|
library_alias_len: 12,
|
|
|
|
location_len: 500
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Exteor file extension for RSForm.
|
|
|
|
*/
|
|
|
|
export const EXTEOR_TRS_FILE = '.trs';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Regex patterns for data validation.
|
|
|
|
*/
|
|
|
|
export const patterns = {
|
|
|
|
login: '^[a-zA-Z][a-zA-Z0-9_\\-]{1,}[a-zA-Z0-9]$',
|
|
|
|
library_alias: `.{1,${limits.library_alias_len}}`
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Local URIs.
|
|
|
|
*/
|
|
|
|
export const resources = {
|
|
|
|
graph_font: '/DejaVu.ttf',
|
|
|
|
privacy_policy: '/privacy.pdf',
|
|
|
|
logo: '/logo_full.svg'
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Youtube IDs for embedding.
|
|
|
|
*/
|
|
|
|
export const youtube = {
|
|
|
|
intro: '0Ty9mu9sOJo'
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* External URLs.
|
|
|
|
*/
|
|
|
|
export const external_urls = {
|
|
|
|
concept: 'https://www.acconcept.ru/',
|
|
|
|
exteor32: 'https://drive.google.com/open?id=1IHlMMwaYlAUBRSxU1RU_hXM5mFU9-oyK&usp=drive_fs',
|
|
|
|
exteor64: 'https://drive.google.com/open?id=1IJt25ZRQ-ZMA6t7hOqmo5cv05WJCQKMv&usp=drive_fs',
|
|
|
|
ponomarev: 'https://inponomarev.ru/textbook',
|
|
|
|
intro_video: 'https://www.youtube.com/watch?v=0Ty9mu9sOJo',
|
|
|
|
full_course: 'https://www.youtube.com/playlist?list=PLGe_JiAwpqu1C70ruQmCm_OWTWU3KJwDo',
|
|
|
|
zak_lectures:
|
|
|
|
'https://www.acconcept.ru/product/metody-konceptualnogo-analiza-i-sinteza-v-teoreticheskom-issledovanii-i-proektirovanii-socialno-jekonomicheskih-sistem-3-e-izdanie/',
|
|
|
|
|
2024-06-18 20:11:15 +03:00
|
|
|
git_portal: 'https://github.com/IRBorisov/ConceptPortal',
|
|
|
|
git_core: 'https://github.com/IRBorisov/ConceptCore',
|
|
|
|
git_cctext: 'https://github.com/IRBorisov/cctext',
|
2024-06-07 20:17:03 +03:00
|
|
|
mail_portal: 'mailto:portal@acconcept.ru',
|
|
|
|
restAPI: 'https://api.portal.acconcept.ru'
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Local storage ID.
|
|
|
|
*/
|
|
|
|
export const storage = {
|
|
|
|
PREFIX: 'portal.',
|
|
|
|
|
|
|
|
themeDark: 'theme.dark',
|
|
|
|
optionsAdmin: 'options.admin',
|
|
|
|
optionsHelp: 'options.help',
|
|
|
|
|
|
|
|
rseditFont: 'rsedit.font',
|
|
|
|
rseditShowList: 'rsedit.show_list',
|
|
|
|
rseditShowControls: 'rsedit.show_controls',
|
|
|
|
|
|
|
|
librarySearchHead: 'library.search.head',
|
2024-06-19 22:09:31 +03:00
|
|
|
librarySearchFolderMode: 'library.search.folder_mode',
|
2024-06-27 11:34:52 +03:00
|
|
|
librarySearchLocation: 'library.search.location',
|
2024-06-07 20:17:03 +03:00
|
|
|
librarySearchVisible: 'library.search.visible',
|
|
|
|
librarySearchOwned: 'library.search.owned',
|
|
|
|
librarySearchSubscribed: 'library.search.subscribed',
|
|
|
|
librarySearchEditor: 'library.search.editor',
|
|
|
|
libraryPagination: 'library.pagination',
|
|
|
|
|
|
|
|
rsgraphFilter: 'rsgraph.filter2',
|
|
|
|
rsgraphLayout: 'rsgraph.layout',
|
|
|
|
rsgraphColoring: 'rsgraph.coloring',
|
|
|
|
rsgraphSizing: 'rsgraph.sizing',
|
|
|
|
rsgraphFoldHidden: 'rsgraph.fold_hidden',
|
|
|
|
|
|
|
|
cstFilterMatch: 'cst.filter.match',
|
|
|
|
cstFilterGraph: 'cst.filter.graph'
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Global element ID.
|
|
|
|
*/
|
|
|
|
export const globals = {
|
|
|
|
tooltip: 'global_tooltip',
|
|
|
|
password_tooltip: 'password_tooltip',
|
|
|
|
email_tooltip: 'email_tooltip',
|
|
|
|
main_scroll: 'main_scroll',
|
|
|
|
library_item_editor: 'library_item_editor',
|
|
|
|
constituenta_editor: 'constituenta_editor'
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Prefixes for generating unique keys for lists.
|
|
|
|
*/
|
|
|
|
export const prefixes = {
|
|
|
|
page_size: 'page_size_',
|
|
|
|
cst_list: 'cst_list_',
|
|
|
|
cst_inline_synth_list: 'cst_inline_synth_list_',
|
|
|
|
cst_inline_synth_substitutes: 'cst_inline_synth_substitutes_',
|
|
|
|
cst_side_table: 'cst_side_table_',
|
|
|
|
cst_hidden_list: 'cst_hidden_list_',
|
|
|
|
cst_modal_list: 'cst_modal_list_',
|
|
|
|
cst_template_ist: 'cst_template_list_',
|
|
|
|
cst_wordform_list: 'cst_wordform_list_',
|
|
|
|
cst_status_list: 'cst_status_list_',
|
|
|
|
cst_match_mode_list: 'cst_match_mode_list_',
|
|
|
|
cst_source_list: 'cst_source_list_',
|
|
|
|
cst_delete_list: 'cst_delete_list_',
|
|
|
|
cst_dependant_list: 'cst_dependant_list_',
|
|
|
|
csttype_list: 'csttype_',
|
|
|
|
policy_list: 'policy_list_',
|
|
|
|
library_filters_list: 'library_filters_list_',
|
|
|
|
location_head_list: 'location_head_list_',
|
2024-06-19 22:09:31 +03:00
|
|
|
folders_list: 'folders_list_',
|
2024-06-07 20:17:03 +03:00
|
|
|
topic_list: 'topic_list_',
|
|
|
|
topic_item: 'topic_item_',
|
|
|
|
library_list: 'library_list_',
|
|
|
|
user_subs: 'user_subs_',
|
|
|
|
user_editors: 'user_editors_',
|
|
|
|
wordform_list: 'wordform_list_',
|
|
|
|
rsedit_btn: 'rsedit_btn_',
|
|
|
|
dlg_cst_substitutes_list: 'dlg_cst_substitutes_list_'
|
|
|
|
};
|