diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Base/Components/BaseEvents.js b/APP_WEB/ScriptsAndCss/JsScripts/Base/Components/BaseEvents.js deleted file mode 100644 index b27f20a..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Base/Components/BaseEvents.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=BaseEvents.js.map \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Base/Components/BaseEvents.js.map b/APP_WEB/ScriptsAndCss/JsScripts/Base/Components/BaseEvents.js.map deleted file mode 100644 index 30ba2c4..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Base/Components/BaseEvents.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BaseEvents.js","sourceRoot":"","sources":["../../../TypeScripts/Base/Components/BaseEvents.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Alerts/Alerts.js b/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Alerts/Alerts.js deleted file mode 100644 index 66ce63f..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Alerts/Alerts.js +++ /dev/null @@ -1,33 +0,0 @@ -export class Alerts { - AlertShow(notification) { - const container = document.getElementById('notification-container'); - if (!container) - return; - const newNotification = document.createElement('div'); - newNotification.classList.add('notification'); - switch (notification.type) { - case TypeAlert.Error: - newNotification.classList.add('error_alert_animate'); - break; - case TypeAlert.Ok: - newNotification.classList.add('ok_alert_animate'); - break; - case TypeAlert.Warning: - newNotification.classList.add('warning_alert_animate'); - break; - } - newNotification.textContent = notification.text; - container.appendChild(newNotification); - newNotification.classList.add('puff-in-center'); - setTimeout(() => { - newNotification.remove(); - }, notification.duration * 1000); - } -} -export var TypeAlert; -(function (TypeAlert) { - TypeAlert["Error"] = "error"; - TypeAlert["Warning"] = "warning"; - TypeAlert["Ok"] = "ok"; -})(TypeAlert || (TypeAlert = {})); -//# sourceMappingURL=Alerts.js.map \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Alerts/Alerts.js.map b/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Alerts/Alerts.js.map deleted file mode 100644 index 7abe51c..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Alerts/Alerts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Alerts.js","sourceRoot":"","sources":["../../../../TypeScripts/Base/Services/Alerts/Alerts.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,MAAM;IAIR,SAAS,CAAC,YAA+B;QAC5C,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,wBAAwB,CAAC,CAAC;QACpE,IAAI,CAAC,SAAS;YAAE,OAAO;QAGvB,MAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACtD,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAE9C,QAAQ,YAAY,CAAC,IAAI,EAAE,CAAC;YACxB,KAAK,SAAS,CAAC,KAAK;gBAChB,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;gBACrD,MAAM;YACV,KAAK,SAAS,CAAC,EAAE;gBACb,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;gBAClD,MAAM;YACV,KAAK,SAAS,CAAC,OAAO;gBAClB,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;gBACvD,MAAM;QACd,CAAC;QAED,eAAe,CAAC,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC;QAGhD,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACvC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAGhD,UAAU,CAAC,GAAG,EAAE;YACZ,eAAe,CAAC,MAAM,EAAE,CAAC;QAC7B,CAAC,EAAE,YAAY,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IACrC,CAAC;CACJ;AAiBD,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,sBAAS,CAAA;AACb,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB"} \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Cookies.js b/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Cookies.js deleted file mode 100644 index 5a2424e..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Cookies.js +++ /dev/null @@ -1,26 +0,0 @@ -export class Cookies { - getCookie(cookieName) { - const name = cookieName + "="; - const decodedCookie = decodeURIComponent(document.cookie); - const ca = decodedCookie.split(";"); - for (let i = 0; i < ca.length; i++) { - let c = ca[i]; - while (c.charAt(0) === " ") { - c = c.substring(1); - } - if (c.indexOf(name) === 0) { - return c.substring(name.length, c.length); - } - } - return ""; - } - setCookie(name, value, days) { - const date = new Date(); - date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000); - document.cookie = name + "=" + encodeURIComponent(value) + ";expires=" + date.toUTCString() + ";path=/;secure"; - } - removeCookie(name) { - document.cookie = name + "=;Max-Age=-99999999;"; - } -} -//# sourceMappingURL=Cookies.js.map \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Cookies.js.map b/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Cookies.js.map deleted file mode 100644 index c80f9c9..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Cookies.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Cookies.js","sourceRoot":"","sources":["../../../TypeScripts/Base/Services/Cookies.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,OAAO;IAOhB,SAAS,CAAC,UAAkB;QAExB,MAAM,IAAI,GAAQ,UAAU,GAAG,GAAG,CAAC;QA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ripts/Base/Services/Utilities.js deleted file mode 100644 index 88b988a..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Utilities.js +++ /dev/null @@ -1,143 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { Alerts } from "./Alerts/Alerts"; -export class Utilities { - constructor() { - this.Alerts = new Alerts(); - } - isEmpty(value) { - if (value == null) - return true; - if (value === "") - return true; - return false; - } - setInputWarning(input) { - input.classList.add("warning_input"); - const timeout = setTimeout(() => { - input.classList.remove("warning_input"); - clearTimeout(timeout); - }, 3000); - } - setAreaWarning(input) { - input.classList.add("warning_area"); - const timeout = setTimeout(() => { - input.classList.remove("warning_area"); - clearTimeout(timeout); - }, 3000); - } - isValidEmail(email) { - if (this.isEmpty(email)) - return false; - const pattern = /^([a-z0-9_.-])+@[a-z0-9-]+\.([a-z]{2,4}\.)?[a-z]{2,4}$/i; - return pattern.test(email); - } - doDelay(mlsec) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise(resolve => { - setTimeout(() => { - resolve(null); - }, mlsec); - }); - }); - } - get getWidh() { - return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; - } - get getHeight() { - return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; - } - getRandomInt(min, max) { - min = Math.ceil(min); - max = Math.floor(max); - return Math.floor(Math.random() * (max - min + 1)) + min; - } - copyValueToBuffer(value, element) { - try { - const coord = element.getBoundingClientRect(); - const scrolled = window.pageYOffset || document.documentElement.scrollTop; - const iOsDevice = navigator.userAgent.match(/ipad|iphone/i); - const textArea = document.createElement("textarea"); - textArea.readOnly = true; - textArea.style.top = `${Math.round(scrolled + coord.top)}px`; - textArea.classList.add("text_copy"); - textArea.value = value; - document.body.appendChild(textArea); - textArea.focus(); - if (iOsDevice) { - const editable = textArea.contentEditable; - const readOnly = textArea.readOnly; - textArea.contentEditable = "true"; - textArea.readOnly = false; - const range = document.createRange(); - range.selectNodeContents(textArea); - const selection = window.getSelection(); - selection.removeAllRanges(); - selection.addRange(range); - textArea.setSelectionRange(0, 999999); - textArea.contentEditable = editable; - textArea.readOnly = readOnly; - } - else { - textArea.select(); - } - const resultCopy = document.execCommand("copy"); - document.body.removeChild(textArea); - return resultCopy; - } - catch (e) { - console.error("Error: ", e); - return false; - } - } - getCurrentDate() { - const date = new Date(); - const nowDay = date.getDate(); - const nowMonth = date.getMonth() + 1; - let forFullDay = ""; - if (nowDay < 10) { - forFullDay = "0"; - } - let forFullMonth = ""; - if (nowMonth < 10) { - forFullMonth = "0"; - } - return `${forFullDay}${nowDay}.${forFullMonth}${nowMonth}.${date.getFullYear()}`; - } - stringToBoolean(str) { - const lowerStr = str.toLowerCase(); - if (lowerStr === "true") { - return true; - } - else if (lowerStr === "false") { - return false; - } - else { - return null; - } - } - generateUuid() { - var d = new Date().getTime(); - var d2 = ((typeof performance !== "undefined") && performance.now && (performance.now() * 1000)) || 0; - return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => { - var r = Math.random() * 16; - if (d > 0) { - r = (d + r) % 16 | 0; - d = Math.floor(d / 16); - } - else { - r = (d2 + r) % 16 | 0; - d2 = Math.floor(d2 / 16); - } - return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16); - }); - } -} -//# sourceMappingURL=Utilities.js.map \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Utilities.js.map b/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Utilities.js.map deleted file mode 100644 index 313f168..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Base/Services/Utilities.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Utilities.js","sourceRoot":"","sources":["../../../TypeScripts/Base/Services/Utilities.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKzC,MAAM,OAAO,SAAS;IAGlB;QACI,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;IAC/B,CAAC;IAOD,OAAO,CAAC,KAAa;QAGjB,IAAI,KAAK,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAG/B,IAAI,KAAK,KAAK,EAAE;YAAE,OAAO,IAAI,CAAC;QAG9B,OAAO,KAAK,CAAC;IACjB,CAAC;IAMD,eAAe,CAAC,KAAuB;QAGnC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAGrC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAG5B,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YAGxC,YAAY,CAAC,OAAO,CAAC,CAAC;QAE1B,CAAC,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;IAMD,cAAc,CAAC,KAA0B;QAGrC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAGpC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAG5B,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;YAGvC,YAAY,CAAC,OAAO,CAAC,CAAC;QAE1B,CAAC,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;IAOD,YAAY,CAAC,KAAa;QAGtB,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QAGtC,MAAM,OAAO,GAAG,yDAAyD,CAAC;QAG1E,OAAO,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/B,CA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AAO,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE;YAE/D,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;YAE3B,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBAER,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gBACrB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;YAE3B,CAAC;iBAAM,CAAC;gBAEJ,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gBACtB,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YAC7B,CAAC;YAED,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"} \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Pages/Base/BasePage.js b/APP_WEB/ScriptsAndCss/JsScripts/Pages/Base/BasePage.js deleted file mode 100644 index ba8213a..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Pages/Base/BasePage.js +++ /dev/null @@ -1,61 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { TypeAlert } from "../../Base/Services/Alerts/Alerts"; -export class BasePage { - constructor(utilities, cookies, alerts) { - this.Utilities = utilities; - this.Cookies = cookies; - this.Alerts = alerts; - } - set PageReadyState(state) { - if (this.readyState !== state) { - this.readyState = state; - const event = new CustomEvent('pageStateChanged', { - detail: { - stateName: 'ReadyState', - stateValue: state - } - }); - window.dispatchEvent(event); - } - } - get PageReadyState() { - return this.readyState; - } - WaitForReadyState(conditions, actions) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve) => { - const intervalId = setInterval(() => { - const allConditionsMet = conditions.every(condition => condition === true); - if (allConditionsMet) { - clearInterval(intervalId); - if (allConditionsMet) { - this.PageReadyState = true; - actions.forEach(action => { - action(); - }); - const alert = { - text: "Страница успешно запущена", - type: TypeAlert.Ok, - duration: 2 - }; - this.Alerts.AlertShow(alert); - resolve({ states: conditions }); - } - else { - console.log("Состояния еще не доступны или не достигнута готовность..."); - } - } - }, 100); - }); - }); - } -} -//# sourceMappingURL=BasePage.js.map \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Pages/Base/BasePage.js.map b/APP_WEB/ScriptsAndCss/JsScripts/Pages/Base/BasePage.js.map deleted file mode 100644 index da69c48..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Pages/Base/BasePage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BasePage.js","sourceRoot":"","sources":["../../../TypeScripts/Pages/Base/BasePage.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAU,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAKtE,MAAM,OAAO,QAAQ;IA0BjB,YAAY,SAAoB,EAAE,OAAgB,EAAE,MAAc;QAE9D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAG3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAGvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAKD,IAAW,cAAc,CAAC,KAAK;QAC3B,IAAI,IAAI,CAA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gBACL,CAAC,EAAE,GAAG,CAAC,CAAC;YACZ,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ"} \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Pages/Contacts.js b/APP_WEB/ScriptsAndCss/JsScripts/Pages/Contacts.js deleted file mode 100644 index 24e0983..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Pages/Contacts.js +++ /dev/null @@ -1,18 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { BasePage } from "./Base/BasePage"; -export class ContactPage extends BasePage { - StartPage() { - return __awaiter(this, void 0, void 0, function* () { - yield this.WaitForReadyState([true], []); - }); - } -} -//# sourceMappingURL=Contacts.js.map \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Pages/Contacts.js.map b/APP_WEB/ScriptsAndCss/JsScripts/Pages/Contacts.js.map deleted file mode 100644 index 3a94b51..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Pages/Contacts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../TypeScripts/Pages/Contacts.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,OAAO,WAAY,SAAQ,QAAQ;IAIxB,SAAS;;YAClB,MAAM,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7C,CAAC;KAAA;CACJ"} \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Pages/IndexPage.js b/APP_WEB/ScriptsAndCss/JsScripts/Pages/IndexPage.js deleted file mode 100644 index 3b8aeb6..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Pages/IndexPage.js +++ /dev/null @@ -1,18 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { BasePage } from "./Base/BasePage"; -export class IndexPage extends BasePage { - StartPage() { - return __awaiter(this, void 0, void 0, function* () { - yield this.WaitForReadyState([true], []); - }); - } -} -//# sourceMappingURL=IndexPage.js.map \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/Pages/IndexPage.js.map b/APP_WEB/ScriptsAndCss/JsScripts/Pages/IndexPage.js.map deleted file mode 100644 index 7e9638f..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/Pages/IndexPage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IndexPage.js","sourceRoot":"","sources":["../../TypeScripts/Pages/IndexPage.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,OAAO,SAAU,SAAQ,QAAQ;IAItB,SAAS;;YAClB,MAAM,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7C,CAAC;KAAA;CACJ"} \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/main_api.js b/APP_WEB/ScriptsAndCss/JsScripts/main_api.js deleted file mode 100644 index f904160..0000000 --- a/APP_WEB/ScriptsAndCss/JsScripts/main_api.js +++ /dev/null @@ -1,62 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { Alerts } from "./Base/Services/Alerts/Alerts"; -import { Cookies } from "./Base/Services/Cookies"; -import { Utilities } from "./Base/Services/Utilities"; -import { ContactPage } from "./Pages/Contacts"; -import { IndexPage } from "./Pages/IndexPage"; -(() => { - window.addEventListener("load", () => __awaiter(void 0, void 0, void 0, function* () { - const utilities = new Utilities(); - const cookies = new Cookies(); - const alerts = new Alerts(); - const currentUrl = new URL(document.location.href); - const pathname = currentUrl.pathname.toLowerCase(); - const partsPath = pathname.split("/"); - let indexPageState = { - ReadyState: undefined - }; - window.addEventListener('pageStateChanged', function (event) { - const stateName = event.detail.stateName; - const stateValue = event.detail.stateValue; - if (stateName === 'ReadyState') { - indexPageState.ReadyState = stateValue; - } - CheckStatesAndProceed(); - }); - switch (partsPath[1]) { - case "": - { - const page = new IndexPage(utilities, cookies, alerts); - yield page.StartPage(); - } - break; - case "": - { - const page = new ContactPage(utilities, cookies, alerts); - yield page.StartPage(); - } - break; - default: - break; - } - function CheckStatesAndProceed() { - if (indexPageState.ReadyState !== undefined) { - if (indexPageState.ReadyState) { - console.log("Success Start Page"); - } - else { - console.log("Wait Load Page"); - } - } - } - })); -})(); -//# sourceMappingURL=main_api.js.map \ No newline at end of file diff --git a/APP_WEB/ScriptsAndCss/JsScripts/main_api.js.map b/APP_WEB/ScriptsAndCss/JsScripts/main_api.js.map deleted file mode 100644 index 0b222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5B,CAAC,CAAC,CAAC;QAGH,QAAQ,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACnB,KAAK,EAAE;gBACH,CAAC;oBAEG,MAAM,IAAI,GAAG,IAAI,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;oBAEvD,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC3B,CAAC;gBACD,MAAM;YAEV,KAAK,EAAE;gBACH,CAAC;oBAEG,MAAM,IAAI,GAAG,IAAI,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;oBAEzD,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC3B,CAAC;gBACD,MAAM;YACV;gBACI,MAAM;QACd,CAAC;QAED,SAAS,qBAAqB;YAC1B,IAAI,cAAc,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;gBAE1C,IAAI,cAAc,CAAC,UAAU,EAAE,CAAC;oBAC5B,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;gBACtC,CAAC;qBAAM,CAAC;oBACJ,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;gBAClC,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACP,CAAC,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/README.md b/README.md index b119158..0136fec 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +

✨Dvurechensky✨

+ # 🌁 Шаблон проекта ASP NET CORE MVC, Frontend - на TypeScript ## 🎇 Этапы наполнения конфигурациями 🎇 @@ -460,4 +462,6 @@ Webpack поддерживает горячую замену модулей, ч Разработка с возможностью тестирования и отладки: 🎈 В процессе разработки с помощью BrowserSync можно синхронизировать несколько браузеров и автоматически перезагружать страницы. -Webpack и Grunt делают разработку более продуктивной за счет автоматизации рутинных задач. \ No newline at end of file +Webpack и Grunt делают разработку более продуктивной за счет автоматизации рутинных задач. + +

✨Dvurechensky✨

\ No newline at end of file