diff --git a/.vscode/settings.json b/.vscode/settings.json index f1256f9..27eacd2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,5 +12,8 @@ "typescript", "vue" ], - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "[json]": { + "editor.defaultFormatter": "vscode.json-language-features" + } } \ No newline at end of file diff --git a/i18n-2.xlsm b/i18n-2.xlsm index e428af9..15a029e 100644 Binary files a/i18n-2.xlsm and b/i18n-2.xlsm differ diff --git a/index.html b/index.html index 560e836..e7ded0e 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,7 @@ + diff --git a/package-lock.json b/package-lock.json index 287f00b..b2e00c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@quasar/extras": "^1.17.0", "@quasar/vite-plugin": "^1.10.0", "axios": "^1.2.1", + "browser-image-compression": "^2.0.2", "pinia": "^2.0.11", "quasar": "^2.18.2", "vue": "^3.4.18", @@ -3478,6 +3479,15 @@ "node": ">=8" } }, + "node_modules/browser-image-compression": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/browser-image-compression/-/browser-image-compression-2.0.2.tgz", + "integrity": "sha512-pBLlQyUf6yB8SmmngrcOw3EoS4RpQ1BcylI3T9Yqn7+4nrQTXJD4sJDe5ODnJdrvNMaio5OicFo75rDyJD2Ucw==", + "license": "MIT", + "dependencies": { + "uzip": "0.20201231.0" + } + }, "node_modules/browserslist": { "version": "4.24.4", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", @@ -11023,6 +11033,12 @@ "node": ">= 0.4.0" } }, + "node_modules/uzip": { + "version": "0.20201231.0", + "resolved": "https://registry.npmjs.org/uzip/-/uzip-0.20201231.0.tgz", + "integrity": "sha512-OZeJfZP+R0z9D6TmBgLq2LHzSSptGMGDGigGiEe0pr8UBe/7fdflgHlHBNDASTXB5jnFuxHpNaJywSg8YFeGng==", + "license": "MIT" + }, "node_modules/varint": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", diff --git a/package.json b/package.json index b9ff6b1..405bf33 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@quasar/extras": "^1.17.0", "@quasar/vite-plugin": "^1.10.0", "axios": "^1.2.1", + "browser-image-compression": "^2.0.2", "pinia": "^2.0.11", "quasar": "^2.18.2", "vue": "^3.4.18", diff --git a/public/3software/license/axios/LICENSE.txt b/public/3software/license/axios/LICENSE.txt deleted file mode 100644 index 05006a5..0000000 --- a/public/3software/license/axios/LICENSE.txt +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright (c) 2014-present Matt Zabriskie & Collaborators - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/public/3software/license/better-sqlite3/LICENSE.txt b/public/3software/license/better-sqlite3/LICENSE.txt deleted file mode 100644 index 228f29b..0000000 --- a/public/3software/license/better-sqlite3/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2017 Joshua Wise - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/public/3software/license/express/LICENSE.txt b/public/3software/license/express/LICENSE.txt deleted file mode 100644 index aa927e4..0000000 --- a/public/3software/license/express/LICENSE.txt +++ /dev/null @@ -1,24 +0,0 @@ -(The MIT License) - -Copyright (c) 2009-2014 TJ Holowaychuk -Copyright (c) 2013-2014 Roman Shtylman -Copyright (c) 2014-2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/public/3software/license/pinia/LICENSE.txt b/public/3software/license/pinia/LICENSE.txt deleted file mode 100644 index 0c77562..0000000 --- a/public/3software/license/pinia/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2019-present Eduardo San Martin Morote - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/public/3software/license/quasar/LICENSE.txt b/public/3software/license/quasar/LICENSE.txt deleted file mode 100644 index 7b94448..0000000 --- a/public/3software/license/quasar/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-present Razvan Stoenescu - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/public/3software/license/vue-i18n/LICENSE.txt b/public/3software/license/vue-i18n/LICENSE.txt deleted file mode 100644 index 3c1f825..0000000 --- a/public/3software/license/vue-i18n/LICENSE.txt +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016-present kazuya kawaguchi and contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/public/3software/license/vue-router/LICENSE.txt b/public/3software/license/vue-router/LICENSE.txt deleted file mode 100644 index 0c77562..0000000 --- a/public/3software/license/vue-router/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2019-present Eduardo San Martin Morote - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/public/3software/license/vue/LICENSE.txt b/public/3software/license/vue/LICENSE.txt deleted file mode 100644 index 8fd1729..0000000 --- a/public/3software/license/vue/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018-present, Yuxi (Evan) You and Vue contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/public/3software/logo/axios.svg b/public/3software/logo/axios.svg deleted file mode 100644 index 67369ea..0000000 --- a/public/3software/logo/axios.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/public/3software/logo/express.svg b/public/3software/logo/express.svg deleted file mode 100644 index 337d815..0000000 --- a/public/3software/logo/express.svg +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/public/3software/logo/pinia.svg b/public/3software/logo/pinia.svg deleted file mode 100644 index 3a20cba..0000000 --- a/public/3software/logo/pinia.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/public/3software/logo/quasar.png b/public/3software/logo/quasar.png deleted file mode 100644 index 1401176..0000000 Binary files a/public/3software/logo/quasar.png and /dev/null differ diff --git a/public/3software/logo/vue-i18n.svg b/public/3software/logo/vue-i18n.svg deleted file mode 100644 index 78b8b14..0000000 --- a/public/3software/logo/vue-i18n.svg +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - diff --git a/public/3software/logo/vue.webp b/public/3software/logo/vue.webp deleted file mode 100644 index cd17590..0000000 Binary files a/public/3software/logo/vue.webp and /dev/null differ diff --git a/quasar.config.ts b/quasar.config.ts index 080734d..2930ff1 100644 --- a/quasar.config.ts +++ b/quasar.config.ts @@ -58,7 +58,7 @@ export default defineConfig((ctx) => { alias: { 'composables': path.resolve(__dirname, './src/composables'), 'types': path.resolve(__dirname, './src/types'), - 'helpers': path.resolve(__dirname, './src/helpers') + 'utils': path.resolve(__dirname, './src/utils') }, vueRouterMode: 'history', // available values: 'hash', 'history' diff --git a/src/assets/docs/Subscription_guide_en.md b/src/assets/docs/Subscription_guide_en.md new file mode 100644 index 0000000..7cb6be4 --- /dev/null +++ b/src/assets/docs/Subscription_guide_en.md @@ -0,0 +1,44 @@ +*This document is an English adaptation of the Subscription Plan Terms originally drafted in Russian. In the event of any disputes subject to resolution in courts of the Russian Federation, the Russian-language version shall prevail.* + +# Subscription Plan Terms +###### Version 1.02 dated 02.09.2025 + +The text of this document is an integral part of the Terms of Use. + +## 1. General Principles + +1.1. All Plans provide identical functionality, except for the limitations on the number of supported (active) Connected Chats. +1.2. The maximum subscription term is 730 days (2 years). +1.3. Upon termination of the subscription, access to the Application's functionality may be suspended. Data created during the period without an active subscription may not be displayed in the Application. +1.4. A notification of the need to renew the subscription is sent to the Administrator via the bot or by email (depending on the authentication method) no later than 14 calendar days before its expiration. +1.5. Renewal and changes of subscription plans are performed exclusively through the Admin Panel in the "Settings > Subscribe" section. +1.6. The Developer has the right to unilaterally extend the subscription term without additional charge (within the framework of marketing promotions or for other reasons). + +## 2. Changing Subscription Plans +2.1. The Application Administrator has the right to change the subscription plan after 14 (fourteen) calendar days from the moment of the previous Plan change (unless the TEST Plan is used). +2.2. The change of the subscription plan is performed automatically (except for the case specified in clause 2.5.5), after confirmation of the remuneration transfer is received. +2.3. When changing the Plan, the cost of the unused period of the current subscription is credited towards the payment for the new plan in the form of additional days. +2.4. Upgrade to a Plan with a Higher Number of Chats +2.4.1. When switching from the TEST Plan, no additional days are accrued. +2.4.2. The base daily cost is calculated using the formula: + +Base Daily Cost = (Base Plan Cost / 30) * (100% - Period Discount) + +2.4.3. The number of additional days is calculated using the formula, with the result rounded up to a whole number: + +Number of Additional Days = (Base Daily Cost on the current Plan * Number of unused days) / Base Daily Cost on the new Plan + +2.5. Downgrade to a Plan with a Lower Number of Chats +2.5.1. A Plan change is only possible if the number of current (active) Connected Chats in the Application does not exceed the number supported by the new Plan. +2.5.2. When calculating the daily cost of the current Plan, the period discount is not taken into account if more than 14 days remain until the subscription expiration. +2.5.3. The base daily cost is determined according to the formula, taking into account clause 2.5.2: + +Base Daily Cost = (Base Plan Cost / 30) * (100% - Period Discount) + +2.5.4. The number of additional days is calculated using the formula, with the result rounded up to a whole number or zero: + +Number of Additional Days = (Paid cost of the current Plan – (Base Daily Cost on the current Plan * Number of days used)) / Base Daily Cost on the new Plan + +2.5.5. Transition to the TEST Plan is performed only by contacting support, followed by a manual recalculation and refund. +2.6. All calculations are performed using rounding. Claims for the under-accrual of up to 3 (Three) additional days are not accepted by the Developer. +2.7. The Developer reserves the right to suspend the Administrator's account or cancel the results of the recalculation if signs of systematic abuse of the plan change mechanism are detected (e.g., frequent cyclic switching between Plans). In such cases, the Administrator's account may be blocked without a refund. \ No newline at end of file diff --git a/src/assets/docs/Subscription_guide_ru.md b/src/assets/docs/Subscription_guide_ru.md new file mode 100644 index 0000000..16a213d --- /dev/null +++ b/src/assets/docs/Subscription_guide_ru.md @@ -0,0 +1,40 @@ +# Положение о Тарифных планах подписки +###### Версия 1.02 от 02.09.2025 +Текст настоящего документа является неотъемлемой частью Пользовательского соглашения. + +## 1. Общие принципы +1.1. Все Тарифы обеспечивают идентичный функционал, за исключением ограничений на количество поддерживаемых (активных) Подключенных чатов. +1.2. Максимальный срок действия подписки составляет 730 дней (2 года). +1.3. При прекращении действия подписки доступ к функционалу Приложения может быть приостановлен. Данные, созданные в период отсутствия активной подписки, могут не отображаться в Приложении. +1.4. Уведомление о необходимости продления подписки направляется Администратору через бота или по электронной почте (в зависимости от способа аутентификации) не позднее чем за 14 календарных дней до истечения её срока действия. +1.5. Продление и смена тарифных планов осуществляются исключительно через Панель администратора в разделе «Настройки > Подписка». +1.6. Разработчик вправе в одностороннем порядке продлить действие подписки без взимания дополнительной платы (в рамках маркетинговых акций или по иным причинам). + +## 2. Смена тарифных планов +2.1. Администратор Приложения вправе сменить тарифный план по истечении 14 (четырнадцати) календарных дней с момента предыдущего изменения Тарифа (если не используется Тариф TEST). +2.2. Смена тарифного плана производится в автоматическом режиме (за исключением случая, указанного в п. 2.5.5), после получения подтверждения перечисления вознаграждения. +2.3. При смене Тарифа стоимость неиспользованного периода текущей подписки засчитывается в счёт оплаты нового тарифного плана в виде дополнительных дней. +2.4. Переход на Тариф с большим количеством чатов +2.4.1. При переходе с Тарифа TEST дополнительные дни не начисляются. +2.4.2. Базовая стоимость дня рассчитывается по формуле: + +**Базовая стоимость дня = (Базовая стоимость Тарифа / 30) * (100% - Скидка за период)** + +2.4.3. Количество дополнительных дней рассчитывается по формуле, с округлением полученного результата вверх до целого значения: + +**Количество дополнительных дней = (Базовая стоимость дня на текущем Тарифе * Количество неиспользованных дней) / Базовая стоимость дня на новом Тарифе** + +2.5. Переход на Тариф с меньшим количеством чатов +2.5.1. Смена Тарифа возможна, только если количество текущих (активных) Подключенных чатов в Приложении не превышает количества, которое поддерживает новый Тариф. +2.5.2. При расчете стоимости дня текущего Тарифа скидка за период не учитывается, если до окончания срока действия подписки осталось более 14 дней. +2.5.3. Базовая стоимость дня принимается согласно формуле, с учетом п. 2.5.2: + +**Базовая стоимость дня = (Базовая стоимость Тарифа / 30) * (100% - Скидка за период)** + +2.5.4. Количество дополнительных дней рассчитывается по формуле, с округлением полученного результата вверх до целого значения или нуля: + +**Количество дополнительных дней = (Оплаченная стоимость текущего Тарифа – (Базовая стоимость дня на текущем Тарифе * Количество использованных дней)) / Базовая стоимость дня на новом Тарифе** + +2.5.5. Переход на Тариф TEST осуществляется только через обращение в поддержку с последующим ручным перерасчетом и возвратом средств. +2.6. Все расчеты производятся с применением округлений. Претензии по недоначислению до 3 (Трех) дополнительных дней не принимаются Разработчиком. +2.7. Разработчик оставляет за собой право приостановить действие аккаунта Администратора или отменить результаты перерасчета при выявлении признаков систематического злоупотребления механизмом смены тарифных планов (например, частых циклических переключений между Тарифами). В таких случаях аккаунт Администратора может быть заблокирован без возврата средств. diff --git a/src/boot/telegram-boot.ts b/src/boot/telegram-boot.ts index 445645c..d6b5754 100644 --- a/src/boot/telegram-boot.ts +++ b/src/boot/telegram-boot.ts @@ -13,6 +13,7 @@ export default defineBoot(({ app }) => { if (window.Telegram?.WebApp) { const webApp = window.Telegram.WebApp webApp.ready() + sessionStorage.setItem('isTelegram', webApp.initData ? 'true' : 'false') webApp.SettingsButton.isVisible = true app.config.globalProperties.$tg = webApp app.provide('tg', webApp) diff --git a/src/components/TelegramStar.vue b/src/components/TelegramStar.vue new file mode 100644 index 0000000..702353d --- /dev/null +++ b/src/components/TelegramStar.vue @@ -0,0 +1,25 @@ + + + + + diff --git a/src/components/companyBlock.vue b/src/components/companyBlock.vue index ac73c9e..6450f4d 100644 --- a/src/components/companyBlock.vue +++ b/src/components/companyBlock.vue @@ -60,7 +60,7 @@ import { computed } from 'vue' import { useI18n } from 'vue-i18n' import type { CompanyParams } from 'types/Company' - import { convertEmptyStringsToNull } from 'helpers/helpers' + import { convertEmptyStringsToNull } from 'src/utils/helpers' const { t }= useI18n() diff --git a/src/components/docBlock.vue b/src/components/docBlock.vue index 7e850e9..14887f0 100644 --- a/src/components/docBlock.vue +++ b/src/components/docBlock.vue @@ -1,13 +1,13 @@