diff --git a/auto-imports.d.ts b/auto-imports.d.ts new file mode 100644 index 0000000..1d89ee8 --- /dev/null +++ b/auto-imports.d.ts @@ -0,0 +1,9 @@ +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// noinspection JSUnusedGlobalSymbols +// Generated by unplugin-auto-import +export {} +declare global { + +} diff --git a/components.d.ts b/components.d.ts new file mode 100644 index 0000000..06c56b7 --- /dev/null +++ b/components.d.ts @@ -0,0 +1,143 @@ +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-vue-components +// Read more: https://github.com/vuejs/core/pull/3399 +export {} + +declare module 'vue' { + export interface GlobalComponents { + AsideBar: typeof import('./src/components/AsideBar.vue')['default'] + Avatar: typeof import('primevue/avatar')['default'] + Breadcrumb: typeof import('./src/components/Breadcrumb.vue')['default'] + Button: typeof import('primevue/button')['default'] + CategoryFilter: typeof import('./src/components/dashboard/filters/CategoryFilter.vue')['default'] + Checkbox: typeof import('primevue/checkbox')['default'] + Chip: typeof import('./src/components/UI/Chip.vue')['default'] + Column: typeof import('primevue/column')['default'] + DataTable: typeof import('primevue/datatable')['default'] + DateFilter: typeof import('./src/components/dashboard/filters/DateFilter.vue')['default'] + DeleteDialog: typeof import('./src/components/dashboard/DeleteDialog.vue')['default'] + DeletePostsDialog: typeof import('./src/components/dashboard/DeletePostsDialog.vue')['default'] + Description: typeof import('./src/components/dashboard/Description.vue')['default'] + Dialog: typeof import('primevue/dialog')['default'] + Divider: typeof import('primevue/divider')['default'] + Error: typeof import('./src/components/UI/Error.vue')['default'] + FileUpload: typeof import('primevue/fileupload')['default'] + Header: typeof import('./src/components/Header.vue')['default'] + HistoryBar: typeof import('./src/components/cards/HistoryBar.vue')['default'] + HistoryMain: typeof import('./src/components/cards/HistoryMain.vue')['default'] + HistoryPie: typeof import('./src/components/cards/HistoryPie.vue')['default'] + HistoryPolarArea: typeof import('./src/components/cards/HistoryPolarArea.vue')['default'] + HistoryRadar: typeof import('./src/components/cards/HistoryRadar.vue')['default'] + Humidity: typeof import('./src/components/cards/Humidity.vue')['default'] + 'IBxs:error': typeof import('~icons/bxs/error')['default'] + 'ICarbon:humidity': typeof import('~icons/carbon/humidity')['default'] + 'ICarbon:locationFilled': typeof import('~icons/carbon/location-filled')['default'] + 'ICi:filterOff': typeof import('~icons/ci/filter-off')['default'] + 'ICodicon:error': typeof import('~icons/codicon/error')['default'] + 'IEp:arrowDownBold': typeof import('~icons/ep/arrow-down-bold')['default'] + 'IEp:arrowRight': typeof import('~icons/ep/arrow-right')['default'] + 'IEp:arrowUpBold': typeof import('~icons/ep/arrow-up-bold')['default'] + 'IEp:successFilled': typeof import('~icons/ep/success-filled')['default'] + 'IFlatColorIcons:google': typeof import('~icons/flat-color-icons/google')['default'] + 'IFluent:add16Filled': typeof import('~icons/fluent/add16-filled')['default'] + 'IFluent:arrowDown12Filled': typeof import('~icons/fluent/arrow-down12-filled')['default'] + 'IFluent:arrowSort20Filled': typeof import('~icons/fluent/arrow-sort20-filled')['default'] + 'IFluent:arrowSortDownLines20Filled': typeof import('~icons/fluent/arrow-sort-down-lines20-filled')['default'] + 'IFluent:arrowSortUpLines20Filled': typeof import('~icons/fluent/arrow-sort-up-lines20-filled')['default'] + 'IFluent:arrowUp12Filled': typeof import('~icons/fluent/arrow-up12-filled')['default'] + 'IFluent:calendarLtr32Filled': typeof import('~icons/fluent/calendar-ltr32-filled')['default'] + 'IFluent:delete32Regular': typeof import('~icons/fluent/delete32-regular')['default'] + 'IFluent:warning28Regular': typeof import('~icons/fluent/warning28-regular')['default'] + 'IGg:closeO': typeof import('~icons/gg/close-o')['default'] + 'IGravityUi:arrowUp': typeof import('~icons/gravity-ui/arrow-up')['default'] + 'IIc:baselineAlternateEmail': typeof import('~icons/ic/baseline-alternate-email')['default'] + 'IIc:roundArrowBackIosNew': typeof import('~icons/ic/round-arrow-back-ios-new')['default'] + 'IIc:roundCheck': typeof import('~icons/ic/round-check')['default'] + 'IIc:roundClose': typeof import('~icons/ic/round-close')['default'] + 'IIconamoon:arrowDown2': typeof import('~icons/iconamoon/arrow-down2')['default'] + 'IIconoir:cancel': typeof import('~icons/iconoir/cancel')['default'] + 'IIon:cloudUploadOutline': typeof import('~icons/ion/cloud-upload-outline')['default'] + 'IIon:imageOutline': typeof import('~icons/ion/image-outline')['default'] + 'IIon:search': typeof import('~icons/ion/search')['default'] + 'IIon:warningOutline': typeof import('~icons/ion/warning-outline')['default'] + 'ILetsIcons:closeRound': typeof import('~icons/lets-icons/close-round')['default'] + 'ILineMd:logout': typeof import('~icons/line-md/logout')['default'] + 'ILineMd:person': typeof import('~icons/line-md/person')['default'] + 'ILucide:edit': typeof import('~icons/lucide/edit')['default'] + Image: typeof import('./src/components/UI/Image.vue')['default'] + ImageUpload: typeof import('./src/components/dashboard/ImageUpload.vue')['default'] + 'IMajesticons:close': typeof import('~icons/majesticons/close')['default'] + 'IMajesticons:closeLine': typeof import('~icons/majesticons/close-line')['default'] + 'IMaterialSymbols:signalCellularAltRounded': typeof import('~icons/material-symbols/signal-cellular-alt-rounded')['default'] + 'IMdi:hideOutline': typeof import('~icons/mdi/hide-outline')['default'] + 'IMdi:password': typeof import('~icons/mdi/password')['default'] + 'IMdi:passwordOutline': typeof import('~icons/mdi/password-outline')['default'] + 'IMdi:speedometerSlow': typeof import('~icons/mdi/speedometer-slow')['default'] + 'IMi:delete': typeof import('~icons/mi/delete')['default'] + 'IMingcute:checkLine': typeof import('~icons/mingcute/check-line')['default'] + 'IMingcute:searchLine': typeof import('~icons/mingcute/search-line')['default'] + InfoUser: typeof import('./src/components/user/InfoUser.vue')['default'] + InputText: typeof import('primevue/inputtext')['default'] + 'IOcticon:search16': typeof import('~icons/octicon/search16')['default'] + 'IOoui:error': typeof import('~icons/ooui/error')['default'] + 'IPh:arrowUpBold': typeof import('~icons/ph/arrow-up-bold')['default'] + 'IPh:checkBold': typeof import('~icons/ph/check-bold')['default'] + 'IPh:exportBold': typeof import('~icons/ph/export-bold')['default'] + 'IPh:image': typeof import('~icons/ph/image')['default'] + 'IPh:images': typeof import('~icons/ph/images')['default'] + 'IPh:sunHorizon': typeof import('~icons/ph/sun-horizon')['default'] + 'IPh:wind': typeof import('~icons/ph/wind')['default'] + 'ISolar:mapArrowUpBold': typeof import('~icons/solar/map-arrow-up-bold')['default'] + 'ISolar:moonStarsOutline': typeof import('~icons/solar/moon-stars-outline')['default'] + 'IStreamline:interfaceLogoutArrowExitFrameLeaveLogoutRectangleRight': typeof import('~icons/streamline/interface-logout-arrow-exit-frame-leave-logout-rectangle-right')['default'] + 'ISvgSpinners:180Ring': typeof import('~icons/svg-spinners/180-ring')['default'] + 'ISvgSpinners:3DotsFade': typeof import('~icons/svg-spinners/3-dots-fade')['default'] + 'ISvgSpinners:clock': typeof import('~icons/svg-spinners/clock')['default'] + 'ISvgSpinners:ringResize': typeof import('~icons/svg-spinners/ring-resize')['default'] + 'ITabler:clockFilled': typeof import('~icons/tabler/clock-filled')['default'] + 'ITabler:error404': typeof import('~icons/tabler/error404')['default'] + 'ITabler:windowMaximize': typeof import('~icons/tabler/window-maximize')['default'] + 'ITabler:windowMinimize': typeof import('~icons/tabler/window-minimize')['default'] + Knob: typeof import('./src/components/UI/Knob.vue')['default'] + LanguageSwitcher: typeof import('./src/components/UI/LanguageSwitcher.vue')['default'] + Menu: typeof import('primevue/menu')['default'] + Message: typeof import('primevue/message')['default'] + Moon: typeof import('./src/components/cards/Moon.vue')['default'] + MultiSelect: typeof import('primevue/multiselect')['default'] + NameFilter: typeof import('./src/components/dashboard/filters/NameFilter.vue')['default'] + Panel: typeof import('./src/components/Panel.vue')['default'] + PanelMini: typeof import('./src/components/PanelMini.vue')['default'] + PostCard: typeof import('./src/components/posts/PostCard.vue')['default'] + PostDialog: typeof import('./src/components/dashboard/PostDialog.vue')['default'] + Pressure: typeof import('./src/components/cards/Pressure.vue')['default'] + ProfileSetting: typeof import('./src/components/user/ProfileSetting.vue')['default'] + RadioButton: typeof import('primevue/radiobutton')['default'] + RatingPost: typeof import('./src/components/posts/RatingPost.vue')['default'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] + Search: typeof import('./src/components/Search.vue')['default'] + SearchMini: typeof import('./src/components/SearchMini.vue')['default'] + Select: typeof import('./src/components/UI/Select.vue')['default'] + SelectButton: typeof import('./src/components/UI/SelectButton.vue')['default'] + SimilarPost: typeof import('./src/components/posts/SimilarPost.vue')['default'] + Skeleton: typeof import('primevue/skeleton')['default'] + Sort: typeof import('./src/components/UI/Sort.vue')['default'] + Sorting: typeof import('./src/components/dashboard/Sorting.vue')['default'] + Spinner: typeof import('./src/components/UI/Spinner.vue')['default'] + Sunset: typeof import('./src/components/cards/Sunset.vue')['default'] + Switch: typeof import('./src/components/UI/Switch.vue')['default'] + SwitchDegree: typeof import('./src/components/UI/SwitchDegree.vue')['default'] + Tag: typeof import('primevue/tag')['default'] + Tags: typeof import('./src/components/dashboard/Tags.vue')['default'] + TagsFilter: typeof import('./src/components/dashboard/filters/TagsFilter.vue')['default'] + TagsTable: typeof import('./src/components/dashboard/TagsTable.vue')['default'] + ThemeSwitch: typeof import('./src/components/UI/ThemeSwitch.vue')['default'] + TodayWeather: typeof import('./src/components/cards/TodayWeather.vue')['default'] + TomorrowDay: typeof import('./src/components/cards/TomorrowDay.vue')['default'] + TomorrowHour: typeof import('./src/components/cards/TomorrowHour.vue')['default'] + UvIndex: typeof import('./src/components/cards/UvIndex.vue')['default'] + Wind: typeof import('./src/components/cards/Wind.vue')['default'] + } +} diff --git a/package-lock.json b/package-lock.json index 2577f22..70709d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,6 +40,7 @@ "vue": "^3.4.19", "vue-chartjs": "^5.3.1", "vue-country-flag-next": "^2.3.2", + "vue-i18n": "^10.0.5", "vue-query": "^1.26.0", "vue-resize": "^2.0.0-alpha.1", "vue-router": "^4.3.0", @@ -52,6 +53,7 @@ "@iconify-json/fluent": "^1.1.57", "@iconify-json/hugeicons": "^1.1.0", "@iconify/json": "^2.2.187", + "@intlify/unplugin-vue-i18n": "^6.0.2", "@vitejs/plugin-vue": "^5.0.4", "sass": "^1.71.1", "unplugin-icons": "^0.18.5", @@ -521,6 +523,167 @@ "node": ">=12" } }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", + "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "peer": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.1.tgz", + "integrity": "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==", + "dev": true, + "peer": true, + "dependencies": { + "@eslint/object-schema": "^2.1.5", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/core": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.9.1.tgz", + "integrity": "sha512-GuUdqkyyzQI5RMIWkHhvTWLCyLo1jNK3vzkSyaExH5kHPDHcuL2VOpHjmMY+y3+NC69qAKToBqldTBgYeLSr9Q==", + "dev": true, + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", + "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", + "dev": true, + "peer": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.17.0.tgz", + "integrity": "sha512-Sxc4hqcs1kTu0iID3kcZDW3JHq2a77HO9P8CP6YEA/FpH3Ll8UXE2r/86Rz9YJLKme39S9vU5OWNjC6Xl0Cr3w==", + "dev": true, + "peer": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.5.tgz", + "integrity": "sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ==", + "dev": true, + "peer": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.4.tgz", + "integrity": "sha512-zSkKow6H5Kdm0ZUQUB2kV5JIXqoG0+uH5YADhaEHswm664N9Db8dXSi0nMJpacpMf+MyyglF1vnZohpEg5yUtg==", + "dev": true, + "peer": true, + "dependencies": { + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@fastify/busboy": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", @@ -1067,6 +1230,72 @@ "node": ">=6" } }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "peer": true, + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", + "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, "node_modules/@iconify-json/fluent": { "version": "1.1.57", "resolved": "https://registry.npmjs.org/@iconify-json/fluent/-/fluent-1.1.57.tgz", @@ -1236,6 +1465,150 @@ "node": ">=6" } }, + "node_modules/@intlify/bundle-utils": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@intlify/bundle-utils/-/bundle-utils-10.0.0.tgz", + "integrity": "sha512-BR5yLOkF2dzrARTbAg7RGAIPcx9Aark7p1K/0O285F7rfzso9j2dsa+S4dA67clZ0rToZ10NSSTfbyUptVu7Bg==", + "dev": true, + "dependencies": { + "@intlify/message-compiler": "next", + "@intlify/shared": "next", + "acorn": "^8.8.2", + "escodegen": "^2.1.0", + "estree-walker": "^2.0.2", + "jsonc-eslint-parser": "^2.3.0", + "mlly": "^1.2.0", + "source-map-js": "^1.0.1", + "yaml-eslint-parser": "^1.2.2" + }, + "engines": { + "node": ">= 18" + }, + "peerDependenciesMeta": { + "petite-vue-i18n": { + "optional": true + }, + "vue-i18n": { + "optional": true + } + } + }, + "node_modules/@intlify/core-base": { + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-10.0.5.tgz", + "integrity": "sha512-F3snDTQs0MdvnnyzTDTVkOYVAZOE/MHwRvF7mn7Jw1yuih4NrFYLNYIymGlLmq4HU2iIdzYsZ7f47bOcwY73XQ==", + "dependencies": { + "@intlify/message-compiler": "10.0.5", + "@intlify/shared": "10.0.5" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-10.0.5.tgz", + "integrity": "sha512-6GT1BJ852gZ0gItNZN2krX5QAmea+cmdjMvsWohArAZ3GmHdnNANEcF9JjPXAMRtQ6Ux5E269ymamg/+WU6tQA==", + "dependencies": { + "@intlify/shared": "10.0.5", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/shared": { + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-10.0.5.tgz", + "integrity": "sha512-bmsP4L2HqBF6i6uaMqJMcFBONVjKt+siGluRq4Ca4C0q7W2eMaVZr8iCgF9dKbcVXutftkC7D6z2SaSMmLiDyA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/unplugin-vue-i18n": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@intlify/unplugin-vue-i18n/-/unplugin-vue-i18n-6.0.2.tgz", + "integrity": "sha512-5AuwBfdFtA4OSh31tfGpjhvmh7BVCzClHCgFlVdNM3ojyai3UZY4ViYh35TlE1xeWFyduOtUsG12r70xy24nzg==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@intlify/bundle-utils": "^10.0.0", + "@intlify/shared": "latest", + "@intlify/vue-i18n-extensions": "^7.0.0", + "@rollup/pluginutils": "^5.1.0", + "@typescript-eslint/scope-manager": "^8.13.0", + "@typescript-eslint/typescript-estree": "^8.13.0", + "debug": "^4.3.3", + "fast-glob": "^3.2.12", + "js-yaml": "^4.1.0", + "json5": "^2.2.3", + "pathe": "^1.0.0", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2", + "unplugin": "^1.1.0", + "vue": "^3.4" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "petite-vue-i18n": "*", + "vue": "^3.2.25", + "vue-i18n": "*" + }, + "peerDependenciesMeta": { + "petite-vue-i18n": { + "optional": true + }, + "vue-i18n": { + "optional": true + } + } + }, + "node_modules/@intlify/vue-i18n-extensions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@intlify/vue-i18n-extensions/-/vue-i18n-extensions-7.0.0.tgz", + "integrity": "sha512-MtvfJnb4aklpCU5Q/dkWkBT/vGsp3qERiPIwtTq5lX4PCLHtUprAJZp8wQj5ZcwDaFCU7+yVMjYbeXpIf927cA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.24.6", + "@intlify/shared": "^10.0.0", + "@vue/compiler-dom": "^3.2.45", + "vue-i18n": "^10.0.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@intlify/shared": "^9.0.0 || ^10.0.0", + "@vue/compiler-dom": "^3.0.0", + "vue": "^3.0.0", + "vue-i18n": "^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "@intlify/shared": { + "optional": true + }, + "@vue/compiler-dom": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-i18n": { + "optional": true + } + } + }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", @@ -1426,7 +1799,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "android" @@ -1439,7 +1811,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "android" @@ -1452,7 +1823,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -1465,7 +1835,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -1478,7 +1847,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1491,7 +1859,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1504,7 +1871,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1517,7 +1883,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1530,7 +1895,6 @@ "cpu": [ "ppc64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1543,7 +1907,6 @@ "cpu": [ "riscv64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1556,7 +1919,6 @@ "cpu": [ "s390x" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1569,7 +1931,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1582,7 +1943,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -1595,7 +1955,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -1608,7 +1967,6 @@ "cpu": [ "ia32" ], - "dev": true, "optional": true, "os": [ "win32" @@ -1621,7 +1979,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -1649,6 +2006,13 @@ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "peer": true + }, "node_modules/@types/node": { "version": "20.14.2", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.2.tgz", @@ -1676,6 +2040,106 @@ "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==" }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.18.1.tgz", + "integrity": "sha512-HxfHo2b090M5s2+/9Z3gkBhI6xBH8OJCFjH9MhQ+nnoZqxU3wNxkLT+VWXWSFWc3UF3Z+CfPAyqdCTdoXtDPCQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.18.1", + "@typescript-eslint/visitor-keys": "8.18.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.18.1.tgz", + "integrity": "sha512-7uoAUsCj66qdNQNpH2G8MyTFlgerum8ubf21s3TSM3XmKXuIn+H2Sifh/ES2nPOPiYSRJWAk0fDkW0APBWcpfw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.18.1.tgz", + "integrity": "sha512-z8U21WI5txzl2XYOW7i9hJhxoKKNG1kcU4RzyNvKrdZDmbjkmLBo8bgeiOJmA06kizLI76/CCBAAGlTlEeUfyg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.18.1", + "@typescript-eslint/visitor-keys": "8.18.1", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.18.1.tgz", + "integrity": "sha512-Vj0WLm5/ZsD013YeUKn+K0y8p1M0jPpxOkKdbD1wB0ns53a5piVY02zjf072TblEweAbcYiFiPoSMF3kp+VhhQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.18.1", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@ucast/core": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/@ucast/core/-/core-1.10.2.tgz", @@ -1940,9 +2404,9 @@ } }, "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "bin": { "acorn": "bin/acorn" }, @@ -1950,6 +2414,32 @@ "node": ">=0.4.0" } }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/animejs": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/animejs/-/animejs-3.2.2.tgz", @@ -1998,6 +2488,12 @@ "node": ">= 8" } }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "node_modules/array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", @@ -2148,6 +2644,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -2336,9 +2842,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "dependencies": { "path-key": "^3.1.0", @@ -2458,6 +2964,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "peer": true + }, "node_modules/define-data-property": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", @@ -2681,11 +3194,279 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/eslint": { + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.17.0.tgz", + "integrity": "sha512-evtlNcpJg+cZLcnVKwsai8fExnqjGPicK7gnUtlNuzu+Fv9bI0aLpND5T44VLQtoMEnI57LoXO9XAkIXwohKrA==", + "dev": true, + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.0", + "@eslint/core": "^0.9.0", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "9.17.0", + "@eslint/plugin-kit": "^0.2.3", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.1", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz", + "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", + "dev": true, + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true, + "peer": true + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "peer": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "peer": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/espree": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "dev": true, + "peer": true, + "dependencies": { + "acorn": "^8.14.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "peer": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "peer": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "peer": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", @@ -2781,6 +3562,13 @@ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "peer": true + }, "node_modules/fast-diff": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", @@ -2801,6 +3589,20 @@ "node": ">=8.6.0" } }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "peer": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "peer": true + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", @@ -2820,6 +3622,19 @@ "node": ">=0.8.0" } }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "peer": true, + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -2911,6 +3726,27 @@ "@firebase/vertexai-preview": "0.0.2" } }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "peer": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", + "dev": true, + "peer": true + }, "node_modules/follow-redirects": { "version": "1.15.6", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", @@ -3081,6 +3917,19 @@ "node": "*" } }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/gopd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", @@ -3203,12 +4052,49 @@ "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==" }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/immutable": { "version": "4.3.5", "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz", "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==", "dev": true }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "peer": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.8.19" + } + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -3362,17 +4248,121 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "peer": true }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "peer": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "peer": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonc-eslint-parser": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/jsonc-eslint-parser/-/jsonc-eslint-parser-2.4.0.tgz", + "integrity": "sha512-WYDyuc/uFcGp6YtM2H0uKmUwieOuzeE/5YocFJLnLfclZ4inf3mRn8ZVy1s7Hxji7Jxm6Ss8gqpexD/GlKoGgg==", + "dev": true, + "dependencies": { + "acorn": "^8.5.0", + "eslint-visitor-keys": "^3.0.0", + "espree": "^9.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + } + }, + "node_modules/jsonc-eslint-parser/node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/jsonc-parser": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==" }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "peer": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, "node_modules/kolorist": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz", "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==", "dev": true }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/libphonenumber-js": { "version": "1.11.14", "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.11.14.tgz", @@ -3438,6 +4428,13 @@ "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==" }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "peer": true + }, "node_modules/long": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", @@ -3632,6 +4629,13 @@ "resolved": "https://registry.npmjs.org/nanopop/-/nanopop-2.4.2.tgz", "integrity": "sha512-NzOgmMQ+elxxHeIha+OG/Pv3Oc3p4RU2aBhwWwAqDpXrdTbtRylbRLQztLy8dMMwfl6pclznBdfUhccEn9ZIzw==" }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "peer": true + }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -3764,6 +4768,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "peer": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -3799,6 +4821,19 @@ "resolved": "https://registry.npmjs.org/parchment/-/parchment-3.0.0.tgz", "integrity": "sha512-HUrJFQ/StvgmXRcQ1ftY6VEZUq3jA2t9ncFN4F84J/vN0/FPpQF+8FKXb3l6fLces6q0uOHj6NJn+2xvZnxO6A==" }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "peer": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -3932,6 +4967,16 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/primevue": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/primevue/-/primevue-4.0.4.tgz", @@ -4002,6 +5047,16 @@ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, "node_modules/qs": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", @@ -4236,6 +5291,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, "node_modules/reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", @@ -4375,6 +5440,18 @@ "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz", "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==" }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/send": { "version": "0.18.0", "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", @@ -4523,6 +5600,16 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -4575,6 +5662,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "peer": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/strip-literal": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-1.3.0.tgz", @@ -4673,11 +5773,36 @@ "tree-kill": "cli.js" } }, + "node_modules/ts-api-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz", + "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==", + "dev": true, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/tslib": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/type-fest": { "version": "4.10.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.10.3.tgz", @@ -4701,6 +5826,20 @@ "node": ">= 0.6" } }, + "node_modules/typescript": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", + "devOptional": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/ufo": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.4.0.tgz", @@ -4902,6 +6041,16 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "peer": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -5083,6 +6232,25 @@ } } }, + "node_modules/vue-i18n": { + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-10.0.5.tgz", + "integrity": "sha512-9/gmDlCblz3i8ypu/afiIc/SUIfTTE1mr0mZhb9pk70xo2csHAM9mp2gdQ3KD2O0AM3Hz/5ypb+FycTj/lHlPQ==", + "dependencies": { + "@intlify/core-base": "10.0.5", + "@intlify/shared": "10.0.5", + "@vue/devtools-api": "^6.5.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/vue-query": { "version": "1.26.0", "resolved": "https://registry.npmjs.org/vue-query/-/vue-query-1.26.0.tgz", @@ -5250,6 +6418,16 @@ "node": ">= 8" } }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -5279,6 +6457,35 @@ "node": ">=10" } }, + "node_modules/yaml": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", + "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/yaml-eslint-parser": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/yaml-eslint-parser/-/yaml-eslint-parser-1.2.3.tgz", + "integrity": "sha512-4wZWvE398hCP7O8n3nXKu/vdq1HcH01ixYlCREaJL5NUMwQ0g3MaGFUBNSlmBtKmhbtVG/Cm6lyYmSVTEVil8A==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.0.0", + "lodash": "^4.17.21", + "yaml": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + } + }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", diff --git a/package.json b/package.json index 67fce28..90ad522 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "vue": "^3.4.19", "vue-chartjs": "^5.3.1", "vue-country-flag-next": "^2.3.2", + "vue-i18n": "^10.0.5", "vue-query": "^1.26.0", "vue-resize": "^2.0.0-alpha.1", "vue-router": "^4.3.0", @@ -56,6 +57,7 @@ "@iconify-json/fluent": "^1.1.57", "@iconify-json/hugeicons": "^1.1.0", "@iconify/json": "^2.2.187", + "@intlify/unplugin-vue-i18n": "^6.0.2", "@vitejs/plugin-vue": "^5.0.4", "sass": "^1.71.1", "unplugin-icons": "^0.18.5", diff --git a/src/App.vue b/src/App.vue index 9991bf6..ce9b2ac 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,11 +5,13 @@
- - - - - + + + + + + +
@@ -47,7 +49,7 @@ diff --git a/src/components/posts/RatingPost.vue b/src/components/posts/RatingPost.vue index 1f7abfb..95f84c5 100644 --- a/src/components/posts/RatingPost.vue +++ b/src/components/posts/RatingPost.vue @@ -83,7 +83,7 @@ const onShowConfirm = (event) => { icon: IcOutlinePerson, colorIcon: "#85c2ff", accept: () => { - router.push({ path: "/forecast/signin" }); + router.push({ name: "SignIn" }); }, }); confirm.require(confirmInfo); diff --git a/src/constants/index.js b/src/constants/index.js index 2b56512..8297df5 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -1,4 +1,8 @@ export const CURRENT_URL = "https://api.weatherapi.com/v1/current.json"; export const HISTORY_URL = "https://api.weatherapi.com/v1/history.json"; export const ASTRO_URL = "https://api.weatherapi.com/v1/astronomy.json"; -export const FORECAST_URL = "https://api.weatherapi.com/v1//forecast.json"; \ No newline at end of file +export const FORECAST_URL = "https://api.weatherapi.com/v1//forecast.json"; + +export const DEFAULT_LOCALE = "gbr"; +export const FALLBACK_LOCALE = "ru"; +export const SUPPORTED_LOCALES = ["gbr", "ru"]; diff --git a/src/i18n/index.js b/src/i18n/index.js new file mode 100644 index 0000000..4a0c92c --- /dev/null +++ b/src/i18n/index.js @@ -0,0 +1,18 @@ +import { createI18n } from "vue-i18n"; +import gbr from "./locales/gbr.json"; +import { DEFAULT_LOCALE, FALLBACK_LOCALE } from "@/constants/index"; +import pluralRules from "./rules/pluralization"; +import numberFormats from "./rules/numbers"; +import datetimeFormats from "./rules/datetime"; + +export default createI18n({ + legacy: false, + locale: DEFAULT_LOCALE, + fallbackLocale: FALLBACK_LOCALE, + messages: { + gbr, + }, + pluralRules, + numberFormats, + datetimeFormats, +}); diff --git a/src/i18n/locales/gbr.json b/src/i18n/locales/gbr.json new file mode 100644 index 0000000..193500a --- /dev/null +++ b/src/i18n/locales/gbr.json @@ -0,0 +1,3 @@ +{ + "hello": "hello!" +} \ No newline at end of file diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json new file mode 100644 index 0000000..184d3c4 --- /dev/null +++ b/src/i18n/locales/ru.json @@ -0,0 +1,3 @@ +{ + "hello": "привет!" +} \ No newline at end of file diff --git a/src/i18n/rules/datetime.js b/src/i18n/rules/datetime.js new file mode 100644 index 0000000..958fd69 --- /dev/null +++ b/src/i18n/rules/datetime.js @@ -0,0 +1,28 @@ +export default { + gbr: { + shortFormat: { + dateStyle: "short", + }, + longFormat: { + year: "numeric", + month: "short", + day: "numeric", + weekday: "short", + hour: "numeric", + minute: "numeric", + }, + }, + ru: { + shortFormat: { + dateStyle: "short", + }, + longFormat: { + year: "numeric", + month: "short", + day: "numeric", + weekday: "short", + hour: "numeric", + minute: "numeric", + }, + }, +}; diff --git a/src/i18n/rules/numbers.js b/src/i18n/rules/numbers.js new file mode 100644 index 0000000..cbd8e94 --- /dev/null +++ b/src/i18n/rules/numbers.js @@ -0,0 +1,14 @@ +export default { + gbr: { + currencyFormat: { + style: "currency", + currency: "USD", + }, + }, + ru: { + currencyFormat: { + style: "currency", + currency: "RUB", + }, + }, +}; diff --git a/src/i18n/rules/pluralization.js b/src/i18n/rules/pluralization.js new file mode 100644 index 0000000..06b0fe4 --- /dev/null +++ b/src/i18n/rules/pluralization.js @@ -0,0 +1,20 @@ +const ruPluralizationRules = (choice, choicesLength) => { + if (choice === 0) { + return 0; + } + + const teen = choice > 10 && choice < 20; + const endsWithOne = choice % 10 === 1; + + if (!teen && endsWithOne) { + return 1; + } + if (!teen && choice % 10 >= 2 && choice % 10 <= 4) { + return 2; + } + return choicesLength < 4 ? 2 : 3; +}; + +export default { + ru: ruPluralizationRules, +}; diff --git a/src/i18n/translation.js b/src/i18n/translation.js new file mode 100644 index 0000000..fe690df --- /dev/null +++ b/src/i18n/translation.js @@ -0,0 +1,89 @@ +import { SUPPORTED_LOCALES, DEFAULT_LOCALE } from "@/constants/index"; +import i18n from "./index"; +import { nextTick } from "vue"; + +const Trans = { + get defaultLocale() { + return DEFAULT_LOCALE; + }, + get supportedLocales() { + return SUPPORTED_LOCALES; + }, + set currentLocale(newLocale) { + i18n.global.locale.value = newLocale; + }, + isLocaleSupported(locale) { + return Trans.supportedLocales.includes(locale); + }, + getUserLocale() { + const locale = + window.navigator.language || + window.navigator.userLanguage || + Trans.defaultLocale; + + return { + locale: locale, + localeNoRegion: locale.split("-")[0], + }; + }, + getPersistedLanguage() { + const persistedLocale = localStorage.getItem("user-locale"); + + if (Trans.isLocaleSupported(persistedLocale)) { + return persistedLocale; + } else { + return null; + } + }, + guessDefaultLocale() { + // localstorage + const userPersistedLocale = Trans.getPersistedLanguage(); + if (userPersistedLocale) { + return userPersistedLocale; + } + + // browser recomendation + const userPreferredLocale = Trans.getUserLocale(); + + if (Trans.isLocaleSupported(userPreferredLocale.locale)) { + return userPreferredLocale.locale; + } + if (Trans.isLocaleSupported(userPreferredLocale.localeNoRegion)) { + return userPreferredLocale.localeNoRegion; + } + + // default + return Trans.defaultLocale; + }, + async switchLanguage(newLocale) { + // ленивая загрузка файла для локали + await Trans.loadLocaleMessages(newLocale); + + Trans.currentLocale = newLocale; + document.querySelector("html").setAttribute("lang", newLocale); + + // сохранять локаль для следующего посещения + localStorage.setItem("user-locale", newLocale); + }, + async loadLocaleMessages(locale) { + if (!i18n.global.availableLocales.includes(locale)) { + const messages = await import(`@/i18n/locales/${locale}.json`); + i18n.global.setLocaleMessage(locale, messages.default); + } + + return nextTick(); + }, + async routeMiddleware(to, from, next) { + const paramLocale = to.params.locale; + + if (!Trans.isLocaleSupported(paramLocale)) { + return next(Trans.guessDefaultLocale()); + } + + await Trans.switchLanguage(paramLocale); + + return next(); + }, +}; + +export default Trans; diff --git a/src/main.js b/src/main.js index fa6acc4..8f4501b 100644 --- a/src/main.js +++ b/src/main.js @@ -17,6 +17,7 @@ import VueResize from "vue-resize"; import { abilitiesPlugin } from "@casl/vue"; import { ability } from "@/services/ability"; import VueTelInput from "vue-tel-input"; +import i18n from "@/i18n"; import "vue-tel-input/vue-tel-input.css"; import "vue-resize/dist/vue-resize.css"; import "./index.scss"; @@ -93,5 +94,6 @@ app .use(VueFire, { firebaseApp, }) + .use(i18n) .use(abilitiesPlugin, ability) .mount("#app"); diff --git a/src/pages/News.vue b/src/pages/News.vue index 928a5d2..b855be4 100644 --- a/src/pages/News.vue +++ b/src/pages/News.vue @@ -11,7 +11,10 @@ :color-text="'var(--grey-200)'" @toggle-select=" (menuItem) => { - $router.push(`/forecast/news/${menuItem}`); + $router.push({ + name: 'CategoryNews', + params: { category: menuItem }, + }); } " /> @@ -38,12 +41,14 @@ const optionsMenu = ref([ const breadCrumbItems = computed(() => { return [ - { label: "News", route: route.params.category ? "/forecast/news" : "" }, + { label: "News", route: { name: route.params.category ? "CategoryNews" : "" } }, { label: optionsMenu.value.find( - (item) => item.value === route.params.category + (item) => item.value === (route.params.category || "") )?.name, - route: route.params.name ? `/forecast/news/${route.params.category}` : "", + route: route.params.name + ? { name: "CategoryNews", params: { category: route.params.category } } + : "", }, ...(route.params.name ? [ diff --git a/src/pages/NotFound.vue b/src/pages/NotFound.vue index 6f9c1ad..fa7b2fc 100644 --- a/src/pages/NotFound.vue +++ b/src/pages/NotFound.vue @@ -4,8 +4,18 @@

Not Found

- - + +
@@ -61,7 +71,7 @@ color: #000; font-weight: 500; background-color: var(--blue-380); - transition: filter .3s; + transition: filter 0.3s; &:not(:disabled):hover { filter: brightness(var(--brightness-rating)); } @@ -71,7 +81,7 @@ color: #fff; border: 2px solid var(--blue-370); background-color: var(--transparent-5); - transition: filter .3s, background-color .3s; + transition: filter 0.3s, background-color 0.3s; &:not(:disabled):hover { background-color: var(--blue-370); filter: brightness(var(--brightness-moon)); diff --git a/src/pages/Post.vue b/src/pages/Post.vue index a6a5cfb..418f437 100644 --- a/src/pages/Post.vue +++ b/src/pages/Post.vue @@ -272,10 +272,13 @@ const getPost = async () => { if (post.value) { post.value.description = convertDeltaToHtml(post.value.description); } else { + const pathMatch = route.path + .split("/") + .filter((item) => item !== route.params.locale && item !== ""); router.push({ name: "NotFound", params: { - pathMatch: route.path.split("/").slice(1), + pathMatch, }, query: route.query, hash: route.hash, diff --git a/src/pages/authentication/SignIn.vue b/src/pages/authentication/SignIn.vue index fe00e95..642b09c 100644 --- a/src/pages/authentication/SignIn.vue +++ b/src/pages/authentication/SignIn.vue @@ -89,7 +89,7 @@ >
Don't have an account? - Sign up
@@ -140,7 +140,7 @@ const signinUser = async () => { }) ); - router.push({ path: "/forecast/" }); + router.push({ name: "Home" }); } catch (e) { error.value = e.message; } finally { diff --git a/src/pages/authentication/SignUp.vue b/src/pages/authentication/SignUp.vue index 1e422c9..16561a7 100644 --- a/src/pages/authentication/SignUp.vue +++ b/src/pages/authentication/SignUp.vue @@ -145,7 +145,7 @@ >
Are you already registered? - Sign in
@@ -215,7 +215,7 @@ const signupUser = async () => { life: 3000, }); - router.push({ path: "/forecast/" }); + router.push({ name: "Home" }); } catch (e) { error.value = e.message; } finally { @@ -259,7 +259,7 @@ const onSubmit = handleSubmit((value) => { background-color: var(--modal); color: var(--white); } -.auth-password-meter{ +.auth-password-meter { background-color: var(--grey-790); } // regex password color diff --git a/src/router/router.js b/src/router/router.js index 08154a4..2bccf30 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -1,7 +1,8 @@ -import { createRouter, createWebHistory } from "vue-router"; +import { createRouter, createWebHistory, RouterView } from "vue-router"; import { useStaticStore } from "@/stores/static"; import { useAuthStore } from "@/stores/auth"; import { ability } from "../services/ability"; +import Tr from "@/i18n/translation"; const Home = () => import("@/pages/Home.vue"); const Error = () => import("@/pages/Error.vue"); @@ -18,99 +19,106 @@ const ProfileUser = () => import("@/pages/ProfileUser.vue"); const routes = [ { - path: "/", - redirect: { name: "Home" }, - }, - { - path: "/forecast/", - name: "Home", - component: Home, - }, - { path: "/forecast/error", name: "Error", component: Error }, - { - path: "/forecast/tomorrow", - name: "Tomorrow", - component: Tomorrow, - }, - { - path: "/forecast/history", - name: "History", - component: History, - }, - { - path: "/forecast/dashboard", - name: "Dashboard", - component: Dashboard, - meta: { - resource: "Dashboard", - redirect: "/forecast/", - }, - }, - { - path: "/forecast/news", - name: "News", - component: News, - beforeEnter: (to, from) => { - const staticStore = useStaticStore(); - if ( - to.params.category && - !staticStore.categories.includes(to.params.category) - ) { - return { - name: "NotFound", - params: { - pathMatch: to.path.split("/").slice(1), - }, - query: to.query, - hash: to.hash, - }; - } - }, + path: "/:locale?", + component: RouterView, + beforeEnter: Tr.routeMiddleware, children: [ { - path: ":category?", - name: "CategoryNews", - component: CategoryNews, + path: "", + redirect: { name: "Home" }, + }, + { + path: "forecast/", + name: "Home", + component: Home, + }, + { path: "forecast/error", name: "Error", component: Error }, + { + path: "forecast/tomorrow", + name: "Tomorrow", + component: Tomorrow, }, { - path: ":category/:name", - name: "Post", - component: Post, + path: "forecast/history", + name: "History", + component: History, + }, + { + path: "forecast/dashboard", + name: "Dashboard", + component: Dashboard, + meta: { + resource: "Dashboard", + redirect: "Home", + }, + }, + { + path: "forecast/news", + name: "News", + component: News, + beforeEnter: (to, from) => { + const staticStore = useStaticStore(); + if ( + to.params.category && + !staticStore.categories.includes(to.params.category) + ) { + return { + name: "NotFound", + params: { + pathMatch: to.path.split("/").slice(1), + }, + query: to.query, + hash: to.hash, + }; + } + }, + children: [ + { + path: ":category?", + name: "CategoryNews", + component: CategoryNews, + }, + { + path: ":category/:name", + name: "Post", + component: Post, + }, + ], + }, + { + path: "forecast/signup", + name: "SignUp", + component: SignUp, + meta: { + resource: "SignUp", + redirect: "Home", + }, + }, + { + path: "forecast/signin", + name: "SignIn", + component: SignIn, + meta: { + resource: "SignIn", + redirect: "Home", + }, + }, + { + path: "forecast/profile", + name: "ProfileUser", + component: ProfileUser, + meta: { + resource: "Profile", + redirect: "SignIn", + }, + }, + { + path: ":pathMatch(.*)*", + name: "NotFound", + component: NotFound, }, ], }, - { - path: "/forecast/signup", - name: "SignUp", - component: SignUp, - meta: { - resource: "SignUp", - redirect: "/forecast/", - }, - }, - { - path: "/forecast/signin", - name: "SignIn", - component: SignIn, - meta: { - resource: "SignIn", - redirect: "/forecast/", - }, - }, - { - path: "/forecast/profile", - name: "ProfileUser", - component: ProfileUser, - meta: { - resource: "Profile", - redirect: "/forecast/signin", - }, - }, - { - path: "/:pathMatch(.*)*", - name: "NotFound", - component: NotFound, - }, ]; const router = createRouter({ @@ -143,7 +151,7 @@ router.beforeEach(async (to, from, next) => { }; if (!canNavigate()) { - next({ path: to.meta.redirect }); + next({ name: to.meta.redirect, params: { locale: to.params.locale } }); } else { next(); } diff --git a/src/stores/auth.js b/src/stores/auth.js index 3392e13..5daf23c 100644 --- a/src/stores/auth.js +++ b/src/stores/auth.js @@ -19,7 +19,7 @@ export const useAuthStore = defineStore("auth", () => { await logOut(); // обновление роли - defineRole("GUEST") + defineRole("GUEST"); // локальные данные uid.value = null; @@ -33,7 +33,7 @@ export const useAuthStore = defineStore("auth", () => { life: 3000, }); - router.push({ path: "/forecast/" }); + router.push({ name: "Home" }); } catch (e) { toast.add({ severity: "error", diff --git a/src/style/_adaptive.scss b/src/style/_adaptive.scss index 436eedd..8a674f3 100644 --- a/src/style/_adaptive.scss +++ b/src/style/_adaptive.scss @@ -1308,7 +1308,7 @@ .post__category-error-text { font-size: 14px; } - .post__header-item{ + .post__header-item { gap: 5px; } } @@ -1776,6 +1776,55 @@ } } } +@mixin LanguageSwitcher() { + .sm, + .xs, + .xs2, + .xs3, + .xs4 { + .lang { + height: 40px; + } + .lang-select { + border-radius: 15px; + } + .lang { + :deep() { + .lang-select-label { + padding: 0.5rem; + } + .lang-select-dropdown { + padding-right: 0.4rem; + } + .normal-flag { + margin: -0.6em -0.9em -0.6em -0.7em; + } + } + } + } + .xs3, + .xs4 { + .lang { + height: 35px; + } + .lang-select { + border-radius: 10px; + } + .lang { + :deep() { + .lang-select-label { + padding: 0.4rem; + } + .lang-select-dropdown { + padding-right: 0.3rem; + } + .normal-flag { + margin: -0.5em -0.9em -0.6em -0.7em; + } + } + } + } +} // Error @mixin Error() { diff --git a/src/style/_style.scss b/src/style/_style.scss index 10a05b7..1027d14 100644 --- a/src/style/_style.scss +++ b/src/style/_style.scss @@ -1,5 +1,4 @@ - -body{ +body { background-color: var(--black); color: var(--white); font-family: "Montserrat", sans-serif; @@ -9,7 +8,7 @@ body{ position: relative; } -.container{ +.container { max-width: 1200px; width: 100%; // min-height: 100vh; @@ -39,21 +38,32 @@ body{ } .v-enter-active, -.v-leave-active{ +.v-leave-active { transition: opacity 0.3s ease; } .v-enter-from, -.v-leave-to{ +.v-leave-to { opacity: 0; } .tabs-enter-active, -.tabs-leave-active{ +.tabs-leave-active { transition: opacity 0.3s ease; } .tabs-enter-from, -.tabs-leave-to{ +.tabs-leave-to { opacity: 0.5; -} \ No newline at end of file +} + +.panel-enter-active, +.panel-leave-active { + transition: all 0.3s ease; +} + +.panel-enter-from, +.panel-leave-to { + opacity: 0; + transform: scaleY(90%); +} diff --git a/src/style/style_component.scss b/src/style/style_component.scss index e80d903..057e37c 100644 --- a/src/style/style_component.scss +++ b/src/style/style_component.scss @@ -817,3 +817,29 @@ } } } + +// MENU +.MENU { + &-menu { + &-list { + } + &-submenu-item { + } + &-item { + } + &-item-content { + } + &-item-link { + } + &-item-icon { + } + &-item-label { + } + &-separator { + } + &-start { + } + &-end { + } + } +} diff --git a/src/utils/classes.js b/src/utils/classes.js index 9599ff6..1f77198 100644 --- a/src/utils/classes.js +++ b/src/utils/classes.js @@ -151,7 +151,7 @@ export const getClasses = (mainClass) => { root: `${mainClass}-checkbox`, input: `${mainClass}-checkbox-input`, box: `${mainClass}-checkbox-box`, - }, + }, avatar: { root: `${mainClass}-avatar`, label: `${mainClass}-avatar-label`, @@ -282,7 +282,7 @@ export const getClasses = (mainClass) => { overlay: `${mainClass}-multiselect-overlay`, header: `${mainClass}-multiselect-header`, pcHeaderCheckbox: `${mainClass}-multiselect-header-checkbox`, - pcFilterContainer: `${mainClass}-multiselect-filter-container`, + pcFilterContainer: `${mainClass}-multiselect-filter-container`, pcFilter: `${mainClass}-multiselect-filter`, pcFilterIconContainer: `${mainClass}-multiselect-filter-icon-container`, filterIcon: `${mainClass}-multiselect-filter-icon`, @@ -366,8 +366,8 @@ export const getClasses = (mainClass) => { overlay: `${mainClass}-password-overlay`, content: `${mainClass}-password-content`, meter: `${mainClass}-password-meter`, - meterLabel: `${mainClass}-password-meter-label`, - meterText: `${mainClass}-password-meter-text`, + meterLabel: `${mainClass}-password-meter-label`, + meterText: `${mainClass}-password-meter-text`, }, toast: { root: `${mainClass}-toast`, @@ -385,7 +385,7 @@ export const getClasses = (mainClass) => { root: `${mainClass}-drawer`, header: `${mainClass}-drawer-header`, title: `${mainClass}-drawer-title`, - pcCloseButton: `${mainClass}-drawer-close-button`, + pcCloseButton: `${mainClass}-drawer-close-button`, content: `${mainClass}-drawer-content`, footer: `${mainClass}-drawer-footer`, mask: `${mainClass}-drawer-mask`, @@ -399,6 +399,19 @@ export const getClasses = (mainClass) => { contentContainer: `${mainClass}-panel-content-container`, content: `${mainClass}-panel-content`, footer: `${mainClass}-panel-footer`, - } + }, + menu: { + root: `${mainClass}-menu`, + list: `${mainClass}-menu-list`, + submenuLabel: `${mainClass}-menu-submenu-item`, + item: `${mainClass}-menu-item`, + itemContent: `${mainClass}-menu-item-content`, + itemLink: `${mainClass}-menu-item-link`, + itemIcon: `${mainClass}-menu-item-icon`, + itemLabel: `${mainClass}-menu-item-label`, + separator: `${mainClass}-menu-separator`, + start: `${mainClass}-menu-start`, + end: `${mainClass}-menu-end`, + }, }; }; diff --git a/vite.config.js b/vite.config.js index 555c3c6..bedd923 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,8 @@ import Components from "unplugin-vue-components/vite"; import AutoImport from "unplugin-auto-import/vite"; import IconsResolver from "unplugin-icons/resolver"; import { PrimeVueResolver } from "unplugin-vue-components/resolvers"; -import { resolve } from "node:path"; +import { dirname, resolve } from "node:path"; +import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite"; // https://vitejs.dev/config/ export default defineConfig({ @@ -15,10 +16,10 @@ export default defineConfig({ build: { rollupOptions: { input: { - main: resolve(__dirname, 'index.html'), - error: resolve(__dirname, '404.html') - } - } + main: resolve(__dirname, "index.html"), + error: resolve(__dirname, "404.html"), + }, + }, }, plugins: [ vue(), @@ -47,6 +48,12 @@ export default defineConfig({ attributes: [{ xmlns: "http://www.w3.org/2000/svg" }], }, }, + VueI18nPlugin({ + include: resolve( + dirname(fileURLToPath(import.meta.url)), + "./src/i18n/locales/**" + ), + }), ], }, png: {