This commit is contained in:
8
kedo/.idea/.gitignore
generated
vendored
Normal file
8
kedo/.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
12
kedo/.idea/kedo.iml
generated
Normal file
12
kedo/.idea/kedo.iml
generated
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
8
kedo/.idea/modules.xml
generated
Normal file
8
kedo/.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/kedo.iml" filepath="$PROJECT_DIR$/.idea/kedo.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
kedo/.idea/vcs.xml
generated
Normal file
6
kedo/.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -2,7 +2,6 @@
|
|||||||
currentLang = document.documentElement.lang;
|
currentLang = document.documentElement.lang;
|
||||||
|
|
||||||
const LOCALES_SELECT_MENU = {
|
const LOCALES_SELECT_MENU = {
|
||||||
ru: {
|
|
||||||
platform: "Платформа",
|
platform: "Платформа",
|
||||||
ecm: "ECM",
|
ecm: "ECM",
|
||||||
crm: "CRM",
|
crm: "CRM",
|
||||||
@ -10,15 +9,6 @@ const LOCALES_SELECT_MENU = {
|
|||||||
business_solutions: "Бизнес-решения",
|
business_solutions: "Бизнес-решения",
|
||||||
service: "Service",
|
service: "Service",
|
||||||
kedo: "КЭДО",
|
kedo: "КЭДО",
|
||||||
},
|
|
||||||
en: {
|
|
||||||
platform: "Platform",
|
|
||||||
ecm: "ECM",
|
|
||||||
crm: "CRM",
|
|
||||||
projects: "Projects",
|
|
||||||
business_solutions: "Business Solutions",
|
|
||||||
service: "Service",
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
@ -222,7 +212,7 @@ if (allowedHosts.some((url) => currentLocalHref.includes(url))) {
|
|||||||
"key=" +
|
"key=" +
|
||||||
CONFIG.apikey +
|
CONFIG.apikey +
|
||||||
"&cx=" +
|
"&cx=" +
|
||||||
CONFIG[currentLang].cx +
|
CONFIG.cx +
|
||||||
"&q=" +
|
"&q=" +
|
||||||
requestValue +
|
requestValue +
|
||||||
"&start=" +
|
"&start=" +
|
||||||
@ -243,7 +233,7 @@ if (allowedHosts.some((url) => currentLocalHref.includes(url))) {
|
|||||||
"key=" +
|
"key=" +
|
||||||
CONFIG.apikey +
|
CONFIG.apikey +
|
||||||
"&cx=" +
|
"&cx=" +
|
||||||
CONFIG[currentLang].cx +
|
CONFIG.cx +
|
||||||
"&q=" +
|
"&q=" +
|
||||||
requestValue +
|
requestValue +
|
||||||
"&start=" +
|
"&start=" +
|
||||||
@ -259,8 +249,8 @@ if (allowedHosts.some((url) => currentLocalHref.includes(url))) {
|
|||||||
).innerHTML = `<div class="search-res__notice search-res__notice_error">
|
).innerHTML = `<div class="search-res__notice search-res__notice_error">
|
||||||
<img src="./warning.svg" alt="warning">
|
<img src="./warning.svg" alt="warning">
|
||||||
<div class="search-res__notice-description">
|
<div class="search-res__notice-description">
|
||||||
<p class="notice__title">${NOTIFICATION_TEXT.error[currentLang].elma365[0]}</p>
|
<p class="notice__title">${NOTIFICATION_TEXT.error.elma365[0]}</p>
|
||||||
<p class="notice__description">${NOTIFICATION_TEXT.error[currentLang].elma365[1]}</p>
|
<p class="notice__description">${NOTIFICATION_TEXT.error.elma365[1]}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
});
|
});
|
||||||
@ -314,8 +304,8 @@ if (allowedHosts.some((url) => currentLocalHref.includes(url))) {
|
|||||||
html = `
|
html = `
|
||||||
<div class="search-res__notice search-res__notice_no-result">
|
<div class="search-res__notice search-res__notice_no-result">
|
||||||
<div class="search-res__notice-description">
|
<div class="search-res__notice-description">
|
||||||
<p class="notice__title">${NOTIFICATION_TEXT.noResults[currentLang].elma365[0]}</p>
|
<p class="notice__title">${NOTIFICATION_TEXT.noResults.elma365[0]}</p>
|
||||||
<p class="notice__description">${NOTIFICATION_TEXT.noResults[currentLang].elma365[1]}</p>
|
<p class="notice__description">${NOTIFICATION_TEXT.noResults.elma365[1]}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@ -747,31 +737,31 @@ if (allowedHosts.some((url) => currentLocalHref.includes(url))) {
|
|||||||
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case /help\/platform/i.test(url):
|
case /help\/platform/i.test(url):
|
||||||
textContent = LOCALES_SELECT_MENU[currentLang].platform;
|
textContent = LOCALES_SELECT_MENU.platform;
|
||||||
break;
|
break;
|
||||||
case /help\/ecm/i.test(url):
|
case /help\/ecm/i.test(url):
|
||||||
textContent = LOCALES_SELECT_MENU[currentLang].ecm;
|
textContent = LOCALES_SELECT_MENU.ecm;
|
||||||
break;
|
break;
|
||||||
case /help\/crm/i.test(url):
|
case /help\/crm/i.test(url):
|
||||||
textContent = LOCALES_SELECT_MENU[currentLang].crm;
|
textContent = LOCALES_SELECT_MENU.crm;
|
||||||
break;
|
break;
|
||||||
case /help\/projects/i.test(url):
|
case /help\/projects/i.test(url):
|
||||||
textContent = LOCALES_SELECT_MENU[currentLang].projects;
|
textContent = LOCALES_SELECT_MENU.projects;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case /help\/business_solutions/i.test(url):
|
case /help\/business_solutions/i.test(url):
|
||||||
textContent = LOCALES_SELECT_MENU[currentLang].business_solutions;
|
textContent = LOCALES_SELECT_MENU.business_solutions;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case /help\/service/i.test(url):
|
case /help\/service/i.test(url):
|
||||||
textContent = LOCALES_SELECT_MENU[currentLang].service;
|
textContent = LOCALES_SELECT_MENU.service;
|
||||||
break;
|
break;
|
||||||
case /help\/kedo/i.test(url):
|
case /help\/kedo/i.test(url):
|
||||||
textContent = LOCALES_SELECT_MENU[currentLang].kedo;
|
textContent = LOCALES_SELECT_MENU.kedo;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
textContent = LOCALES_SELECT_MENU[currentLang].platform;
|
textContent = LOCALES_SELECT_MENU.platform;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user