@ozdao/martyrs 0.2.571 → 0.2.574
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/dayjs.min.js +1 -1
- package/dist/_virtual/weekOfYear.js +1 -1
- package/dist/builder.js +1194 -45
- package/dist/loader.js +30 -0
- package/dist/{main-BFvlam0J.js → main-BfEQkhXS.js} +1173 -1191
- package/dist/martyrs/dist/{main-BFvlam0J.js → main-BfEQkhXS.js} +94 -112
- package/dist/martyrs/dist/main-BfEQkhXS.js.map +1 -0
- package/dist/martyrs/dist/{web-CH5wzMHy.js → web-BqTV9va1.js} +3 -3
- package/dist/martyrs/dist/{web-CH5wzMHy.js.map → web-BqTV9va1.js.map} +1 -1
- package/dist/martyrs/node_modules/.pnpm/{@capacitor_core@7.0.1 → @capacitor_core@7.4.4}/node_modules/@capacitor/core/dist/index.js +2 -1
- package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +1 -0
- package/dist/martyrs/node_modules/.pnpm/{@capacitor_preferences@7.0.0_@capacitor_core@7.0.1 → @capacitor_preferences@7.0.2_@capacitor_core@7.4.4}/node_modules/@capacitor/preferences/dist/esm/index.js +1 -1
- package/dist/martyrs/node_modules/.pnpm/{@capacitor_preferences@7.0.0_@capacitor_core@7.0.1 → @capacitor_preferences@7.0.2_@capacitor_core@7.4.4}/node_modules/@capacitor/preferences/dist/esm/index.js.map +1 -1
- package/dist/martyrs/node_modules/.pnpm/{@capacitor_preferences@7.0.0_@capacitor_core@7.0.1 → @capacitor_preferences@7.0.2_@capacitor_core@7.4.4}/node_modules/@capacitor/preferences/dist/esm/web.js +1 -1
- package/dist/martyrs/node_modules/.pnpm/{@capacitor_preferences@7.0.0_@capacitor_core@7.0.1 → @capacitor_preferences@7.0.2_@capacitor_core@7.4.4}/node_modules/@capacitor/preferences/dist/esm/web.js.map +1 -1
- package/dist/{node_modules/.pnpm/@vue_server-renderer@3.5.13_vue@3.5.13_typescript@5.8.3_ → martyrs}/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +1 -1
- package/dist/martyrs/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
- package/dist/martyrs/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs}/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/martyrs/node_modules/dayjs/dayjs.min.js.map +1 -0
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs}/node_modules/dayjs/plugin/weekOfYear.js +1 -1
- package/dist/martyrs/node_modules/dayjs/plugin/weekOfYear.js.map +1 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/rng.js +15 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/stringify.js +17 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/v4.js +13 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/dist/martyrs/src/components/Block/Block.vue.js +2 -2
- package/dist/martyrs/src/components/Block/Block.vue.js.map +1 -1
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js +1 -1
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js.map +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue2.js +6 -6
- package/dist/martyrs/src/components/Calendar/Calendar.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +2 -2
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js +2 -2
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js +5 -5
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +4 -4
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/{EditImages.vue.js → EditImages.vue2.js} +3 -3
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +3 -3
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +2 -2
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldTags/BlockTags.vue.js +1 -1
- package/dist/martyrs/src/components/FieldTags/BlockTags.vue.js.map +1 -1
- package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +3 -3
- package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +1 -0
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/martyrs/src/components/Media/Media.vue.js +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Menu/MenuItem.vue.js +2 -2
- package/dist/martyrs/src/components/Menu/MenuItem.vue.js.map +1 -1
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +2 -2
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js.map +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.js +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.js +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
- package/dist/martyrs/src/components/SelectMulti/{SelectMulti.vue2.js → SelectMulti.vue.js} +2 -2
- package/dist/martyrs/src/components/SelectMulti/SelectMulti.vue.js.map +1 -0
- package/dist/martyrs/src/components/Table/Table.vue.js +3 -3
- package/dist/martyrs/src/components/Table/Table.vue.js.map +1 -1
- package/dist/martyrs/src/components/Text/Text.vue.js +1 -1
- package/dist/martyrs/src/components/Text/Text.vue.js.map +1 -1
- package/dist/martyrs/src/components/Tooltip/{Tooltip.vue.js → Tooltip.vue2.js} +2 -2
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +1 -0
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +4 -4
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +4 -4
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/blocks/ProfileCard.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/blocks/ProfileCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +7 -7
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +7 -7
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.js +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +4 -4
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js +6 -6
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js +2 -2
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/Activity.vue.js +7 -7
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js +4 -4
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +10 -10
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +3 -3
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Audio.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Audio.vue.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Embed.vue.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Textarea.vue2.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Textarea.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Video.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Video.vue.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js +2 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSorting.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSorting.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +9 -9
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupAuth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/elements/ButtonDate.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/elements/ButtonDate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/elements/PhotoStack.vue.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +25 -5
- package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +4 -4
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js +11 -11
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js +16 -16
- package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +7 -7
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +23 -23
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/NavigationBar.vue.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/partials/NavigationBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Sidebar.vue.js +7 -7
- package/dist/martyrs/src/modules/core/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue.js → Filters.vue2.js} +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/filters/FilterCheckbox.vue2.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/filters/FilterCheckbox.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/filters/FilterDateRange.vue2.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/sections/filters/FilterDateRange.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/filters/FilterRange.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/filters/FilterRange.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/store/core.store.js +29 -47
- package/dist/martyrs/src/modules/core/views/store/core.store.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +21 -2
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +5 -5
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEventShort.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/blocks/CardEventShort.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +4 -4
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +18 -18
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +7 -7
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +5 -5
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js +4 -4
- package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconSort.vue.js +4 -4
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +7 -7
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +10 -10
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +5 -5
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js +5 -5
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +3 -3
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js +3 -3
- package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +6 -6
- package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +4 -4
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +5 -5
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +5 -5
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +5 -5
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +8 -8
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +5 -5
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +7 -7
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +13 -13
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +23 -23
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +8 -8
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js +10 -13
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +26 -26
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +17 -17
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +26 -26
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +8 -8
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/music.client.js +6 -6
- package/dist/martyrs/src/modules/music/music.client.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js +2 -2
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +2 -2
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js +9 -9
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +5 -5
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +9 -9
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +5 -5
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/StatusHistory.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/StatusHistory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +17 -17
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/Succes.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/store/shopcart.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Contacts.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/blocks/Contacts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +6 -6
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +4 -4
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +3 -3
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js +5 -5
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +5 -5
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +5 -5
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/QuantitySelector.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/elements/QuantitySelector.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/THC.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +7 -7
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +8 -8
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +12 -12
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +6 -6
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +9 -9
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +6 -6
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/blocks/CardRent.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/blocks/CardRent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/DateLabel.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js +8 -8
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +6 -6
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js +3 -3
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js.map +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +6 -6
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +5 -5
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +5 -5
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +5 -5
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +12 -12
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +23 -23
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js.map +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/style.css +194 -202
- package/dist/{web-CH5wzMHy.js → web-BqTV9va1.js} +1 -1
- package/package.json +6 -8
- package/src/builder/modes/ssr.prod.js +1 -0
- package/src/builder/modes/ssr.rspack.dev.js +13 -6
- package/src/builder/rspack/rspack.config.base.js +7 -0
- package/src/builder/rspack/rspack.config.ssr.client.js +19 -44
- package/src/builder/templates/page.js +21 -0
- package/src/components/Block/Block.vue +1 -1
- package/src/components/BottomSheet/BottomSheet.vue +1 -1
- package/src/components/Calendar/Calendar.vue +5 -5
- package/src/components/Checkbox/Checkbox.vue +2 -2
- package/src/components/Chips/Chips.vue +2 -2
- package/src/components/Completion/Completion.vue +2 -2
- package/src/components/Countdown/Countdown.vue +5 -5
- package/src/components/DatePicker/DatePicker.vue +4 -4
- package/src/components/EditImages/EditImages.vue +1 -1
- package/src/components/Feed/Feed.old.vue +1 -1
- package/src/components/Feed/Feed.vue +1 -1
- package/src/components/FieldBig/FieldBig.vue +2 -2
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/BlockTags.vue +1 -1
- package/src/components/Loader/Loader.vue +1 -1
- package/src/components/Menu/MenuItem.vue +2 -2
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Radio/Radio.vue +1 -1
- package/src/components/Select/Select.vue +1 -1
- package/src/components/Table/Table.vue +2 -2
- package/src/components/Text/Text.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +2 -2
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +3 -3
- package/src/configurator/components/layouts/layoutConfigurator.vue +1 -1
- package/src/configurator/components/pages/Styles.vue +2 -2
- package/src/jit/.claude/settings.local.json +10 -0
- package/src/jit/CLAUDE.md +387 -0
- package/src/jit/core.js +274 -0
- package/src/jit/extractor.js +140 -0
- package/src/jit/index.js +19 -0
- package/src/jit/loader.js +46 -0
- package/src/jit/plugin.js +209 -0
- package/src/jit/rules.js +474 -0
- package/src/jit/variants.js +128 -0
- package/src/modules/auth/views/components/blocks/CardUser.vue +2 -2
- package/src/modules/auth/views/components/blocks/ProfileCard.vue +4 -4
- package/src/modules/auth/views/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/views/components/pages/EnterPassword.vue +2 -2
- package/src/modules/auth/views/components/pages/Profile.vue +5 -5
- package/src/modules/auth/views/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +2 -2
- package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/SignIn.vue +3 -3
- package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
- package/src/modules/auth/views/components/pages/UserDashboard.vue +3 -3
- package/src/modules/auth/views/components/sections/FeaturedUsers.vue +1 -1
- package/src/modules/auth/views/components/sections/ProfileCompletion.vue +2 -2
- package/src/modules/auth/views/components/sections/ProfileEditCredentials.vue +7 -7
- package/src/modules/auth/views/components/sections/SliderFeatures.vue +1 -1
- package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +2 -2
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +2 -2
- package/src/modules/backoffice/components/pages/Dashboard.vue +4 -4
- package/src/modules/backoffice/components/partials/Sidebar.vue +5 -5
- package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
- package/src/modules/chats/components/sections/ChatWindow.vue +2 -2
- package/src/modules/community/components/blocks/Activity.vue +7 -7
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/blocks/FooterBlogpost.vue +4 -4
- package/src/modules/community/components/layouts/Community.vue +10 -10
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/community/components/pages/Posts.vue +2 -2
- package/src/modules/community/components/sections/Comment.vue +2 -2
- package/src/modules/constructor/components/elements/Audio.vue +1 -1
- package/src/modules/constructor/components/elements/Caption.vue +1 -1
- package/src/modules/constructor/components/elements/Embed.vue +1 -1
- package/src/modules/constructor/components/elements/Textarea.vue +1 -1
- package/src/modules/constructor/components/elements/Video.vue +1 -1
- package/src/modules/core/views/classes/core.app.js +2 -1
- package/src/modules/core/views/components/blocks/BlockSorting.vue +2 -2
- package/src/modules/core/views/components/blocks/CardFooter.vue +4 -4
- package/src/modules/core/views/components/blocks/CardHeader.vue +7 -7
- package/src/modules/core/views/components/blocks/HelpCard.vue +1 -1
- package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/core/views/components/elements/ButtonDate.vue +1 -1
- package/src/modules/core/views/components/elements/PhotoStack.vue +3 -3
- package/src/modules/core/views/components/layouts/App.vue +28 -4
- package/src/modules/core/views/components/layouts/Client.vue +4 -4
- package/src/modules/core/views/components/partials/BottomNavigationBar.vue +15 -15
- package/src/modules/core/views/components/partials/CitySelection.vue +1 -1
- package/src/modules/core/views/components/partials/Footer.centered.vue +17 -17
- package/src/modules/core/views/components/partials/Footer.vue +18 -18
- package/src/modules/core/views/components/partials/Header.vue +10 -11
- package/src/modules/core/views/components/partials/LocationSelection.vue +1 -1
- package/src/modules/core/views/components/partials/Navigation.vue +20 -19
- package/src/modules/core/views/components/partials/NavigationBar.vue +3 -3
- package/src/modules/core/views/components/partials/Sidebar.vue +6 -6
- package/src/modules/core/views/components/sections/SectionPageTitle.vue +2 -2
- package/src/modules/core/views/components/sections/filters/FilterCheckbox.vue +1 -1
- package/src/modules/core/views/components/sections/filters/FilterDateRange.vue +2 -2
- package/src/modules/core/views/components/sections/filters/FilterPrice.vue +2 -2
- package/src/modules/core/views/components/sections/filters/FilterRange.vue +2 -2
- package/src/modules/core/views/store/core.store.js +36 -60
- package/src/modules/core/views/utils/vue-app-renderer.js +31 -1
- package/src/modules/events/components/blocks/CardEvent.vue +6 -6
- package/src/modules/events/components/blocks/CardEventShort.vue +3 -3
- package/src/modules/events/components/pages/EditEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEventTickets.vue +18 -18
- package/src/modules/events/components/pages/Event.vue +5 -5
- package/src/modules/events/components/pages/Events.vue +2 -2
- package/src/modules/events/components/pages/EventsBackoffice.vue +2 -2
- package/src/modules/events/components/sections/EditTickets.vue +5 -5
- package/src/modules/events/components/sections/EventsHot.vue +2 -2
- package/src/modules/events/components/sections/List.vue +1 -1
- package/src/modules/events/components/sections/SelectDate.vue +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
- package/src/modules/governance/reactcode/src/components/CreateInitiativeForm.tsx +14 -14
- package/src/modules/governance/reactcode/src/components/CreateMilestoneForm.tsx +13 -13
- package/src/modules/governance/reactcode/src/components/EmptyState.tsx +2 -2
- package/src/modules/governance/reactcode/src/components/InitiativeCard.tsx +1 -1
- package/src/modules/governance/reactcode/src/components/LinkedEntityCard.tsx +1 -1
- package/src/modules/governance/reactcode/src/components/MilestoneCard.tsx +2 -2
- package/src/modules/governance/reactcode/src/components/ProductRepositories.tsx +6 -6
- package/src/modules/governance/reactcode/src/components/ProductSummary.tsx +18 -18
- package/src/modules/governance/reactcode/src/components/ProductTeam.tsx +7 -7
- package/src/modules/governance/reactcode/src/components/ProposeTaskForm.tsx +9 -9
- package/src/modules/governance/reactcode/src/components/TaskAssignForm.tsx +4 -4
- package/src/modules/governance/reactcode/src/components/TaskCard.tsx +1 -1
- package/src/modules/governance/reactcode/src/components/TaskStatusBadge.tsx +1 -1
- package/src/modules/governance/reactcode/src/components/VoteForm.tsx +6 -6
- package/src/modules/governance/reactcode/src/components/VotingCard.tsx +2 -2
- package/src/modules/governance/reactcode/src/components/VotingResults.tsx +15 -15
- package/src/modules/governance/reactcode/src/pages/InitiativeDetailPage.tsx +41 -41
- package/src/modules/governance/reactcode/src/pages/InitiativeMilestonesPage.tsx +8 -8
- package/src/modules/governance/reactcode/src/pages/InitiativesListPage.tsx +6 -6
- package/src/modules/governance/reactcode/src/pages/MilestoneDetailPage.tsx +9 -9
- package/src/modules/governance/reactcode/src/pages/RoadmapPage.tsx +14 -14
- package/src/modules/governance/reactcode/src/pages/TaskDetailPage.tsx +44 -44
- package/src/modules/governance/reactcode/src/pages/VotingDetailPage.tsx +8 -8
- package/src/modules/governance/reactcode/src/pages/VotingsListPage.tsx +3 -3
- package/src/modules/governance/reactcode-2/App.tsx +28 -0
- package/src/modules/governance/reactcode-2/README.md +20 -0
- package/src/modules/governance/reactcode-2/components/Charts.tsx +58 -0
- package/src/modules/governance/reactcode-2/components/Layout.tsx +457 -0
- package/src/modules/governance/reactcode-2/components/TaskPage.tsx +325 -0
- package/src/modules/governance/reactcode-2/components/VoteBadge.tsx +27 -0
- package/src/modules/governance/reactcode-2/components/VotingsFeedPage.tsx +328 -0
- package/src/modules/governance/reactcode-2/constants.ts +154 -0
- package/src/modules/governance/reactcode-2/index.html +70 -0
- package/src/modules/governance/reactcode-2/index.tsx +15 -0
- package/src/modules/governance/reactcode-2/metadata.json +5 -0
- package/src/modules/governance/reactcode-2/package.json +23 -0
- package/src/modules/governance/reactcode-2/pnpm-lock.yaml +1410 -0
- package/src/modules/governance/reactcode-2/tsconfig.json +29 -0
- package/src/modules/governance/reactcode-2/types.ts +48 -0
- package/src/modules/governance/reactcode-2/vite.config.ts +23 -0
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +10 -10
- package/src/modules/governance/views/components/blocks/CardMilestoneItem.vue +15 -15
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +9 -9
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +11 -11
- package/src/modules/governance/views/components/layouts/Governance.vue +1 -1
- package/src/modules/governance/views/components/pages/Governance.vue +3 -3
- package/src/modules/governance/views/components/pages/Initiative.vue +112 -112
- package/src/modules/governance/views/components/pages/InitiativeMilestones.vue +31 -31
- package/src/modules/governance/views/components/pages/Initiatives.vue +20 -22
- package/src/modules/governance/views/components/pages/Milestone.vue +25 -25
- package/src/modules/governance/views/components/pages/Roadmap.vue +47 -47
- package/src/modules/governance/views/components/pages/Task.vue +106 -106
- package/src/modules/governance/views/components/pages/Tasks.vue +16 -16
- package/src/modules/governance/views/components/pages/Voting.vue +23 -23
- package/src/modules/governance/views/components/pages/Votings.vue +7 -7
- package/src/modules/governance/views/components/partials/EmptyState.vue +3 -3
- package/src/modules/governance/views/components/partials/LinkedEntityCard.vue +11 -11
- package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +4 -4
- package/src/modules/governance/views/components/partials/VoteForm.vue +14 -14
- package/src/modules/governance/views/components/partials/VotingResults.vue +22 -22
- package/src/modules/icons/components/IconSearchPopup.vue +3 -3
- package/src/modules/icons/entities/IconCash.vue +23 -0
- package/src/modules/icons/navigation/IconSort.vue +4 -4
- package/src/modules/icons/pages/IconsPage.vue +7 -7
- package/src/modules/inventory/components/forms/AdjustmentForm.vue +3 -3
- package/src/modules/inventory/components/forms/HistoryView.vue +1 -1
- package/src/modules/inventory/components/forms/StockAlertsForm.vue +1 -1
- package/src/modules/inventory/components/pages/Inventory.vue +10 -10
- package/src/modules/inventory/components/pages/InventoryEdit.vue +6 -6
- package/src/modules/landing/components/blocks/MapBlock.vue +2 -2
- package/src/modules/landing/components/sections/Examples.vue +1 -1
- package/src/modules/landing/components/sections/InstagramSection.vue +1 -1
- package/src/modules/landing/components/sections/SectionEarn.vue +4 -4
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFocus.vue +2 -2
- package/src/modules/landing/components/sections/SectionGuide.vue +2 -2
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +2 -2
- package/src/modules/landing/components/sections/SectionJoinUs.vue +2 -2
- package/src/modules/landing/components/sections/SectionMobileApp.vue +3 -3
- package/src/modules/landing/components/sections/SectionOverview.vue +2 -2
- package/src/modules/landing/components/sections/SectionRoadmap.vue +2 -2
- package/src/modules/marketplace/views/components/layouts/Marketplace.vue +8 -8
- package/src/modules/marketplace/views/components/pages/Marketplace.vue +5 -5
- package/src/modules/marketplace/views/components/sections/SectionMenu.vue +2 -2
- package/src/modules/music/components/SidebarMusic.vue +11 -11
- package/src/modules/music/components/blocks/ActionButtons.vue +2 -2
- package/src/modules/music/components/cards/AlbumCard.vue +4 -4
- package/src/modules/music/components/cards/ArtistCard.vue +3 -8
- package/src/modules/music/components/cards/ArtistCardSmall.vue +2 -2
- package/src/modules/music/components/cards/PlaylistCard.vue +4 -4
- package/src/modules/music/components/cards/TrackListCard.vue +5 -5
- package/src/modules/music/components/forms/AlbumForm.vue +8 -8
- package/src/modules/music/components/forms/ArtistForm.vue +4 -4
- package/src/modules/music/components/forms/PlaylistForm.vue +7 -7
- package/src/modules/music/components/forms/SearchForm.vue +1 -1
- package/src/modules/music/components/forms/TrackForm.vue +13 -13
- package/src/modules/music/components/pages/Album.vue +22 -22
- package/src/modules/music/components/pages/Artist.vue +7 -7
- package/src/modules/music/components/pages/MusicHome.vue +13 -18
- package/src/modules/music/components/pages/MusicLibrary.vue +9 -9
- package/src/modules/music/components/pages/Playlist.vue +25 -25
- package/src/modules/music/components/pages/SearchResults.vue +15 -15
- package/src/modules/music/components/pages/Track.vue +25 -25
- package/src/modules/music/components/player/FullscreenPlayer.vue +5 -5
- package/src/modules/notifications/components/blocks/NotificationItem.vue +1 -1
- package/src/modules/notifications/components/elements/NotificationBadge.vue +1 -1
- package/src/modules/orders/components/blocks/CardApplication.vue +1 -1
- package/src/modules/orders/components/blocks/CardCustomer.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +9 -9
- package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +5 -5
- package/src/modules/orders/components/blocks/CardOrderItem.vue +9 -9
- package/src/modules/orders/components/blocks/CardOrderUser.vue +3 -3
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +4 -4
- package/src/modules/orders/components/blocks/StatusHistory.vue +3 -3
- package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +1 -1
- package/src/modules/orders/components/elements/PriceTotal.vue +3 -3
- package/src/modules/orders/components/forms/FormApplicationDetails.vue +2 -2
- package/src/modules/orders/components/forms/FormCustomerDetails.vue +3 -3
- package/src/modules/orders/components/pages/Favorites.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +15 -15
- package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +4 -4
- package/src/modules/orders/components/pages/Orders_refact.vue +3 -3
- package/src/modules/orders/components/partials/ShopCart.vue +2 -2
- package/src/modules/orders/components/sections/ApplicationDetails.vue +2 -2
- package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
- package/src/modules/orders/components/sections/CustomerDetails.vue +2 -2
- package/src/modules/orders/components/sections/Succes.vue +4 -4
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +4 -4
- package/src/modules/organizations/components/blocks/Contacts.vue +8 -8
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +3 -3
- package/src/modules/organizations/components/forms/DepartmentForm.vue +1 -1
- package/src/modules/organizations/components/forms/InviteForm.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +2 -2
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.new.vue +8 -8
- package/src/modules/organizations/components/pages/Organization.vue +6 -6
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +2 -2
- package/src/modules/organizations/components/pages/Organizations.vue +3 -3
- package/src/modules/organizations/components/sections/Documents.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
- package/src/modules/organizations/components/sections/Unit.vue +1 -1
- package/src/modules/pages/views/components/blocks/CardPage.vue +2 -2
- package/src/modules/pages/views/components/pages/Page.vue +5 -5
- package/src/modules/products/components/blocks/CardCategory.vue +1 -1
- package/src/modules/products/components/blocks/CardPosition.vue +4 -4
- package/src/modules/products/components/blocks/CardProduct.vue +3 -3
- package/src/modules/products/components/blocks/ProductDiscounts.vue +3 -3
- package/src/modules/products/components/blocks/ProductImages.vue +2 -2
- package/src/modules/products/components/blocks/ProductVariants.vue +2 -2
- package/src/modules/products/components/elements/Image360.vue +2 -2
- package/src/modules/products/components/elements/Price.vue +2 -2
- package/src/modules/products/components/elements/QuantitySelector.vue +3 -3
- package/src/modules/products/components/elements/THC.vue +1 -1
- package/src/modules/products/components/forms/ReorderSettingsForm.vue +1 -1
- package/src/modules/products/components/forms/StockAuditForm.vue +2 -2
- package/src/modules/products/components/forms/StockHistoryView.vue +1 -1
- package/src/modules/products/components/pages/Categories.vue +1 -1
- package/src/modules/products/components/pages/CategoryEdit.vue +2 -2
- package/src/modules/products/components/pages/Product.vue +6 -6
- package/src/modules/products/components/pages/ProductEdit.vue +6 -6
- package/src/modules/products/components/pages/Products.vue +11 -11
- package/src/modules/products/components/sections/EditAttributes.vue +4 -4
- package/src/modules/products/components/sections/EditCategories.vue +1 -1
- package/src/modules/products/components/sections/EditDiscounts.vue +6 -6
- package/src/modules/products/components/sections/EditRecommended.vue +1 -1
- package/src/modules/products/components/sections/EditVariants.vue +8 -8
- package/src/modules/products/components/sections/FilterProducts.vue +3 -3
- package/src/modules/products/components/sections/ProductConfigurator.vue +2 -2
- package/src/modules/products/components/sections/ProductInformationSection.vue +10 -10
- package/src/modules/products/components/sections/ProductsRecommended.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +7 -7
- package/src/modules/products/experiments/product-recommendation/components/HeroRecommendation.vue +3 -3
- package/src/modules/rents/views/components/blocks/CardRent.vue +1 -1
- package/src/modules/rents/views/components/pages/Gant/DateLabel.vue +1 -1
- package/src/modules/rents/views/components/pages/Gant/GanttBar.vue +2 -2
- package/src/modules/rents/views/components/pages/Gant/GanttChart.vue +8 -8
- package/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue +1 -1
- package/src/modules/rents/views/components/pages/Rents.vue +1 -1
- package/src/modules/rents/views/components/pages/RentsEdit.vue +6 -6
- package/src/modules/reports/components/pages/BackofficeReports.vue +3 -3
- package/src/modules/reports/components/sections/FormReport.vue +1 -1
- package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +1 -1
- package/src/modules/spots/components/layouts/Spots.vue +2 -2
- package/src/modules/spots/components/pages/Spot.vue +5 -5
- package/src/modules/spots/components/pages/SpotEdit.vue +2 -2
- package/src/modules/spots/components/pages/Spots.vue +3 -3
- package/src/modules/spots/components/sections/MapSection.vue +1 -1
- package/src/modules/spots/components/sections/WorktimeEdit.vue +4 -4
- package/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue +5 -5
- package/src/modules/wallet/views/components/blocks/CardDeposit.vue +5 -5
- package/src/modules/wallet/views/components/blocks/CashDeposit.vue +2 -2
- package/src/modules/wallet/views/components/blocks/CryptoDeposit.vue +4 -4
- package/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue +11 -11
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +4 -4
- package/src/modules/wallet/views/components/pages/Wallet.vue +22 -22
- package/src/styles/config.scss +193 -507
- package/src/styles/layout.scss +81 -1
- package/src/styles/reset.scss +2 -0
- package/src/styles/theme.scss +1 -8
- package/dist/martyrs/dist/main-BFvlam0J.js.map +0 -1
- package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.0.1/node_modules/@capacitor/core/dist/index.js.map +0 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +0 -1
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
- package/dist/martyrs/src/components/SelectMulti/SelectMulti.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue.js.map +0 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +0 -1
- package/dist/node_modules/.pnpm/@vue_server-renderer@3.5.13_vue@3.5.13_typescript@5.8.3_/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +0 -1
- package/dist/node_modules/.pnpm/@vue_shared@3.5.13/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +0 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js.map +0 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/weekOfYear.js.map +0 -1
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.js +0 -6
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js +0 -15
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js +0 -11
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +0 -20
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
- package/src/modules/LAYOUT.MD +0 -767
- package/src/modules/STYLES.MD +0 -298
- package/src/modules/inventory/inventory.router.js +0 -72
- package/src/modules/products/products.router.js +0 -299
- package/src/styles/base/all.scss +0 -233
- package/src/styles/base/backgrounds.scss +0 -70
- package/src/styles/base/borders.scss +0 -407
- package/src/styles/base/scrolling.scss +0 -137
- package/src/styles/base/shadow_transitions_hover_refactor.scss +0 -158
- package/src/styles/base/transitions.scss +0 -109
- package/src/styles/responsive.scss +0 -152
- package/src/styles/typography.scss +0 -161
- /package/dist/{node_modules/.pnpm/@vue_shared@3.5.13 → martyrs}/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -0
package/dist/builder.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import history from "connect-history-api-fallback";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import chalk from "chalk";
|
|
4
|
-
import core, { rspack as rspack$2, ProgressPlugin } from "@rspack/core";
|
|
4
|
+
import core, { rspack as rspack$2, ProgressPlugin, experiments } from "@rspack/core";
|
|
5
5
|
import devMiddleware from "webpack-dev-middleware";
|
|
6
6
|
import express from "express";
|
|
7
7
|
import fs, { readFileSync } from "fs";
|
|
@@ -12,11 +12,9 @@ import { CleanWebpackPlugin } from "clean-webpack-plugin";
|
|
|
12
12
|
import { RsdoctorRspackPlugin } from "@rsdoctor/rspack-plugin";
|
|
13
13
|
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
|
|
14
14
|
import Dotenv from "dotenv-webpack";
|
|
15
|
-
import glob from "glob-all";
|
|
16
15
|
import { merge } from "webpack-merge";
|
|
17
16
|
import { StatsWriterPlugin } from "webpack-stats-plugin";
|
|
18
17
|
import { InjectManifest } from "@aaroon/workbox-rspack-plugin";
|
|
19
|
-
import { PurgeCSSPlugin } from "purgecss-webpack-plugin";
|
|
20
18
|
import { RspackManifestPlugin } from "rspack-manifest-plugin";
|
|
21
19
|
import nodeExternals from "webpack-node-externals";
|
|
22
20
|
function createSpaDevServer(projectRoot, configs, createServer) {
|
|
@@ -125,6 +123,27 @@ function createSpaProdServer(projectRoot, configs, createServer) {
|
|
|
125
123
|
const template = `
|
|
126
124
|
<html {{{ meta.htmlAttrs }}}>
|
|
127
125
|
<head {{{ meta.headAttrs }}}>
|
|
126
|
+
<script>
|
|
127
|
+
// Blocking theme script для SPA (SSR уже добавил атрибуты через meta.htmlAttrs)
|
|
128
|
+
(function() {
|
|
129
|
+
var root = document.documentElement;
|
|
130
|
+
if (root.hasAttribute('data-theme')) return;
|
|
131
|
+
try {
|
|
132
|
+
var theme = (document.cookie.match(/theme=([^;]+)/) || [])[1];
|
|
133
|
+
if (theme === 'dark') {
|
|
134
|
+
root.classList.add('dark-theme');
|
|
135
|
+
root.setAttribute('data-theme', 'dark');
|
|
136
|
+
root.setAttribute('color-scheme', 'dark');
|
|
137
|
+
} else if (theme === 'light') {
|
|
138
|
+
root.classList.add('light-theme');
|
|
139
|
+
root.setAttribute('data-theme', 'light');
|
|
140
|
+
root.setAttribute('color-scheme', 'light');
|
|
141
|
+
} else {
|
|
142
|
+
root.setAttribute('color-scheme', 'light dark');
|
|
143
|
+
}
|
|
144
|
+
} catch(e) {}
|
|
145
|
+
})();
|
|
146
|
+
</script>
|
|
128
147
|
{{{ meta.headTags }}}
|
|
129
148
|
|
|
130
149
|
<meta charset="UTF-8">
|
|
@@ -519,21 +538,27 @@ function createSsrDevServer(projectRoot, configs, createServer) {
|
|
|
519
538
|
cachedStatsJson = stats.toJson({
|
|
520
539
|
assets: true,
|
|
521
540
|
chunks: true,
|
|
522
|
-
modules:
|
|
541
|
+
modules: false,
|
|
523
542
|
entrypoints: true,
|
|
524
|
-
chunkModules:
|
|
543
|
+
chunkModules: false,
|
|
544
|
+
assetsByChunkName: true
|
|
525
545
|
});
|
|
526
546
|
});
|
|
527
547
|
const clientDevMiddleware = devMiddleware(clientCompiler, {
|
|
528
548
|
publicPath: client.output.publicPath,
|
|
529
549
|
serverSideRender: true,
|
|
530
550
|
stats: {
|
|
531
|
-
|
|
551
|
+
preset: "normal",
|
|
532
552
|
assets: true,
|
|
533
|
-
|
|
534
|
-
|
|
553
|
+
assetsSpace: 15,
|
|
554
|
+
chunks: false,
|
|
555
|
+
chunkModules: false,
|
|
556
|
+
modules: false,
|
|
557
|
+
children: false,
|
|
535
558
|
entrypoints: true,
|
|
536
|
-
|
|
559
|
+
timings: true,
|
|
560
|
+
colors: true,
|
|
561
|
+
groupAssetsByPath: true
|
|
537
562
|
}
|
|
538
563
|
});
|
|
539
564
|
const port = process.env.PORT || 8080;
|
|
@@ -555,6 +580,7 @@ function createSsrDevServer(projectRoot, configs, createServer) {
|
|
|
555
580
|
{
|
|
556
581
|
url: req.originalUrl,
|
|
557
582
|
cookies: req.cookies,
|
|
583
|
+
headers: req.headers,
|
|
558
584
|
languages: req.acceptsLanguages()
|
|
559
585
|
},
|
|
560
586
|
res.locals.webpack.devMiddleware
|
|
@@ -622,6 +648,7 @@ function createSsrProdServer(projectRoot, configs, createServer) {
|
|
|
622
648
|
const { html, meta, state, statusCode, usedModules, loadedModules } = await _renderApp({
|
|
623
649
|
url: req.originalUrl,
|
|
624
650
|
cookies: req.cookies,
|
|
651
|
+
headers: req.headers,
|
|
625
652
|
languages: req.acceptsLanguages(),
|
|
626
653
|
ssrContext
|
|
627
654
|
});
|
|
@@ -682,6 +709,1137 @@ function createSsrProdServer(projectRoot, configs, createServer) {
|
|
|
682
709
|
};
|
|
683
710
|
return start;
|
|
684
711
|
}
|
|
712
|
+
class MartyrsJIT {
|
|
713
|
+
constructor(options = {}) {
|
|
714
|
+
this.rules = options.rules || [];
|
|
715
|
+
this.variants = options.variants || [];
|
|
716
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
717
|
+
this.usedTokens = /* @__PURE__ */ new Set();
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Добавить правило
|
|
721
|
+
* @param {RegExp} pattern - паттерн для матча токена
|
|
722
|
+
* @param {Function} handler - (match) => css string
|
|
723
|
+
*/
|
|
724
|
+
addRule(pattern, handler) {
|
|
725
|
+
this.rules.push([pattern, handler]);
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Добавить вариант
|
|
729
|
+
* @param {string} name - имя варианта (mobile, hover, etc)
|
|
730
|
+
* @param {Function} wrapper - (selector, css) => wrapped css
|
|
731
|
+
*/
|
|
732
|
+
addVariant(name, wrapper) {
|
|
733
|
+
this.variants.push({ name, wrapper });
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Генерирует CSS для одного токена
|
|
737
|
+
* @param {string} token - CSS класс (например "cols-[1fr_3fr]" или "mobile:hover:bg-main")
|
|
738
|
+
* @returns {string|null} CSS или null если не матчит
|
|
739
|
+
*/
|
|
740
|
+
generateForToken(token) {
|
|
741
|
+
if (this.cache.has(token)) {
|
|
742
|
+
return this.cache.get(token);
|
|
743
|
+
}
|
|
744
|
+
const appliedVariants = [];
|
|
745
|
+
let baseToken = token;
|
|
746
|
+
while (true) {
|
|
747
|
+
let found = false;
|
|
748
|
+
for (const variant of this.variants) {
|
|
749
|
+
if (baseToken.startsWith(variant.name + ":")) {
|
|
750
|
+
appliedVariants.push(variant);
|
|
751
|
+
baseToken = baseToken.slice(variant.name.length + 1);
|
|
752
|
+
found = true;
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
if (!found) break;
|
|
757
|
+
}
|
|
758
|
+
for (const [pattern, handler] of this.rules) {
|
|
759
|
+
const match = baseToken.match(pattern);
|
|
760
|
+
if (match) {
|
|
761
|
+
let css = handler(match, this);
|
|
762
|
+
if (!css) continue;
|
|
763
|
+
const selector = this.escapeSelector(token);
|
|
764
|
+
if (appliedVariants.length === 0) {
|
|
765
|
+
css = `.${selector} { ${css} }`;
|
|
766
|
+
} else {
|
|
767
|
+
const pseudoVariants = appliedVariants.filter(
|
|
768
|
+
(v) => ["hover", "focus", "active", "disabled", "first", "last", "odd", "even", "group-hover"].includes(v.name)
|
|
769
|
+
);
|
|
770
|
+
const mediaVariants = appliedVariants.filter(
|
|
771
|
+
(v) => ["mobile", "tablet", "desktop", "widescreen", "dark", "light", "print"].includes(v.name)
|
|
772
|
+
);
|
|
773
|
+
let pseudoSuffix = "";
|
|
774
|
+
for (const v of pseudoVariants) {
|
|
775
|
+
const pseudoMap = {
|
|
776
|
+
"hover": ":hover",
|
|
777
|
+
"focus": ":focus",
|
|
778
|
+
"active": ":active",
|
|
779
|
+
"disabled": ":disabled",
|
|
780
|
+
"first": ":first-child",
|
|
781
|
+
"last": ":last-child",
|
|
782
|
+
"odd": ":nth-child(odd)",
|
|
783
|
+
"even": ":nth-child(even)",
|
|
784
|
+
"group-hover": ""
|
|
785
|
+
// special case
|
|
786
|
+
};
|
|
787
|
+
pseudoSuffix += pseudoMap[v.name] || "";
|
|
788
|
+
}
|
|
789
|
+
let result;
|
|
790
|
+
if (pseudoVariants.some((v) => v.name === "group-hover")) {
|
|
791
|
+
result = `.group:hover .${selector}${pseudoSuffix} { ${css} }`;
|
|
792
|
+
} else {
|
|
793
|
+
result = `.${selector}${pseudoSuffix} { ${css} }`;
|
|
794
|
+
}
|
|
795
|
+
for (const v of mediaVariants.reverse()) {
|
|
796
|
+
const mediaMap = {
|
|
797
|
+
"mobile": "@media (max-width: 640px)",
|
|
798
|
+
"tablet": "@media (min-width: 641px) and (max-width: 1024px)",
|
|
799
|
+
"desktop": "@media (min-width: 1025px) and (max-width: 1440px)",
|
|
800
|
+
"widescreen": "@media (min-width: 1441px)",
|
|
801
|
+
"dark": "@media (prefers-color-scheme: dark)",
|
|
802
|
+
"light": "@media (prefers-color-scheme: light)",
|
|
803
|
+
"print": "@media print"
|
|
804
|
+
};
|
|
805
|
+
const media = mediaMap[v.name];
|
|
806
|
+
if (media) {
|
|
807
|
+
result = `${media} { ${result} }`;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
css = result;
|
|
811
|
+
}
|
|
812
|
+
this.cache.set(token, css);
|
|
813
|
+
return css;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
return null;
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Экранирует специальные символы в CSS селекторе
|
|
820
|
+
*/
|
|
821
|
+
escapeSelector(selector) {
|
|
822
|
+
return selector.replace(/\[/g, "\\[").replace(/\]/g, "\\]").replace(/\(/g, "\\(").replace(/\)/g, "\\)").replace(/:/g, "\\:").replace(/\//g, "\\/").replace(/%/g, "\\%").replace(/\./g, "\\.").replace(/,/g, "\\,").replace(/_/g, "\\_").replace(/#/g, "\\#").replace(/\+/g, "\\+").replace(/\*/g, "\\*").replace(/!/g, "\\!").replace(/'/g, "\\'").replace(/"/g, '\\"').replace(/`/g, "\\`").replace(/;/g, "\\;").replace(/\{/g, "\\{").replace(/\}/g, "\\}");
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* Генерирует CSS для массива токенов
|
|
826
|
+
* @param {string[]} tokens
|
|
827
|
+
* @returns {string} CSS
|
|
828
|
+
*/
|
|
829
|
+
generate(tokens) {
|
|
830
|
+
const groups = {
|
|
831
|
+
base: [],
|
|
832
|
+
hover: [],
|
|
833
|
+
focus: [],
|
|
834
|
+
active: [],
|
|
835
|
+
disabled: [],
|
|
836
|
+
first: [],
|
|
837
|
+
last: [],
|
|
838
|
+
odd: [],
|
|
839
|
+
even: [],
|
|
840
|
+
groupHover: [],
|
|
841
|
+
widescreen: [],
|
|
842
|
+
desktop: [],
|
|
843
|
+
tablet: [],
|
|
844
|
+
mobile: [],
|
|
845
|
+
dark: [],
|
|
846
|
+
light: [],
|
|
847
|
+
print: []
|
|
848
|
+
};
|
|
849
|
+
for (const token of tokens) {
|
|
850
|
+
if (this.usedTokens.has(token)) continue;
|
|
851
|
+
const css = this.generateForToken(token);
|
|
852
|
+
if (!css) continue;
|
|
853
|
+
this.usedTokens.add(token);
|
|
854
|
+
if (token.includes("mobile:")) groups.mobile.push(css);
|
|
855
|
+
else if (token.includes("tablet:")) groups.tablet.push(css);
|
|
856
|
+
else if (token.includes("desktop:")) groups.desktop.push(css);
|
|
857
|
+
else if (token.includes("widescreen:")) groups.widescreen.push(css);
|
|
858
|
+
else if (token.includes("dark:")) groups.dark.push(css);
|
|
859
|
+
else if (token.includes("light:")) groups.light.push(css);
|
|
860
|
+
else if (token.includes("print:")) groups.print.push(css);
|
|
861
|
+
else if (token.includes("group-hover:")) groups.groupHover.push(css);
|
|
862
|
+
else if (token.includes("hover:")) groups.hover.push(css);
|
|
863
|
+
else if (token.includes("focus:")) groups.focus.push(css);
|
|
864
|
+
else if (token.includes("active:")) groups.active.push(css);
|
|
865
|
+
else if (token.includes("disabled:")) groups.disabled.push(css);
|
|
866
|
+
else if (token.includes("first:")) groups.first.push(css);
|
|
867
|
+
else if (token.includes("last:")) groups.last.push(css);
|
|
868
|
+
else if (token.includes("odd:")) groups.odd.push(css);
|
|
869
|
+
else if (token.includes("even:")) groups.even.push(css);
|
|
870
|
+
else groups.base.push(css);
|
|
871
|
+
}
|
|
872
|
+
return [
|
|
873
|
+
...groups.base,
|
|
874
|
+
...groups.hover,
|
|
875
|
+
...groups.focus,
|
|
876
|
+
...groups.active,
|
|
877
|
+
...groups.disabled,
|
|
878
|
+
...groups.first,
|
|
879
|
+
...groups.last,
|
|
880
|
+
...groups.odd,
|
|
881
|
+
...groups.even,
|
|
882
|
+
...groups.groupHover,
|
|
883
|
+
...groups.widescreen,
|
|
884
|
+
...groups.desktop,
|
|
885
|
+
...groups.tablet,
|
|
886
|
+
...groups.mobile,
|
|
887
|
+
...groups.dark,
|
|
888
|
+
...groups.light,
|
|
889
|
+
...groups.print
|
|
890
|
+
].join("\n");
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Парсит значение в скобках [...]
|
|
894
|
+
* Заменяет _ на пробел (как в Tailwind)
|
|
895
|
+
* Добавляет пробелы вокруг + и - в calc()
|
|
896
|
+
* @param {string} value - например "1fr_3fr" или "var(--medium)"
|
|
897
|
+
* @returns {string} - "1fr 3fr" или "var(--medium)"
|
|
898
|
+
*/
|
|
899
|
+
parseArbitraryValue(value) {
|
|
900
|
+
let result = value.replace(/_/g, " ");
|
|
901
|
+
result = result.replace(/(\d)([+-])(\d)/g, "$1 $2 $3");
|
|
902
|
+
result = result.replace(/(\))([+-])(\d)/g, "$1 $2 $3");
|
|
903
|
+
result = result.replace(/(\d)([+-])(\()/g, "$1 $2 $3");
|
|
904
|
+
result = result.replace(/(%)([+-])(\d)/g, "$1 $2 $3");
|
|
905
|
+
return result;
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* Получить весь сгенерированный CSS
|
|
909
|
+
*/
|
|
910
|
+
getCSS() {
|
|
911
|
+
return Array.from(this.cache.values()).join("\n");
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* Очистить кэш (для watch mode)
|
|
915
|
+
*/
|
|
916
|
+
reset() {
|
|
917
|
+
this.cache.clear();
|
|
918
|
+
this.usedTokens.clear();
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
const sizeVars = ["extra", "big", "semi", "medium", "regular", "small", "thin", "micro", "nano"];
|
|
922
|
+
const colorNames = [
|
|
923
|
+
"main",
|
|
924
|
+
"second",
|
|
925
|
+
"third",
|
|
926
|
+
"fourth",
|
|
927
|
+
"fifth",
|
|
928
|
+
"black",
|
|
929
|
+
"dark",
|
|
930
|
+
"grey",
|
|
931
|
+
"light",
|
|
932
|
+
"white",
|
|
933
|
+
"red",
|
|
934
|
+
"red-nice",
|
|
935
|
+
"green",
|
|
936
|
+
"green-nice",
|
|
937
|
+
"orange",
|
|
938
|
+
"orange-nice",
|
|
939
|
+
"yellow",
|
|
940
|
+
"yellow-nice",
|
|
941
|
+
"youtube",
|
|
942
|
+
"telegram",
|
|
943
|
+
"twitter",
|
|
944
|
+
"instagram",
|
|
945
|
+
"reddit",
|
|
946
|
+
"transparent"
|
|
947
|
+
];
|
|
948
|
+
const colorVariants = ["extra", "big", "semi", "medium", "regular", "small", "thin", "micro", "nano"];
|
|
949
|
+
function resolveColor(name) {
|
|
950
|
+
for (const color of colorNames) {
|
|
951
|
+
if (name === color) {
|
|
952
|
+
return `rgb(var(--${color}))`;
|
|
953
|
+
}
|
|
954
|
+
for (const variant of colorVariants) {
|
|
955
|
+
if (name === `${color}-${variant}`) {
|
|
956
|
+
return `var(--${color}-${variant})`;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
return null;
|
|
961
|
+
}
|
|
962
|
+
function resolveValue(value, jit) {
|
|
963
|
+
if (!value) return null;
|
|
964
|
+
if (value.startsWith("[") && value.endsWith("]")) {
|
|
965
|
+
const inner = value.slice(1, -1);
|
|
966
|
+
return jit ? jit.parseArbitraryValue(inner) : inner.replace(/_/g, " ");
|
|
967
|
+
}
|
|
968
|
+
if (sizeVars.includes(value)) return `var(--${value})`;
|
|
969
|
+
if (/^\d+r$/.test(value)) return value.replace("r", "rem");
|
|
970
|
+
if (/^\d+(vh|vw|dvh|dvw|svh|svw|lvh|lvw|deg)$/.test(value)) return value;
|
|
971
|
+
if (/^\d+$/.test(value)) return `${value}%`;
|
|
972
|
+
if (value === "auto") return "auto";
|
|
973
|
+
if (value === "zero") return "0";
|
|
974
|
+
if (value === "full") return "100%";
|
|
975
|
+
if (value === "screen") return "100vh";
|
|
976
|
+
if (value === "min") return "min-content";
|
|
977
|
+
if (value === "max") return "max-content";
|
|
978
|
+
if (value === "fit") return "fit-content";
|
|
979
|
+
return null;
|
|
980
|
+
}
|
|
981
|
+
const dir = { t: "top", r: "right", b: "bottom", l: "left" };
|
|
982
|
+
const easings = {
|
|
983
|
+
"linear": "linear",
|
|
984
|
+
"ease": "ease",
|
|
985
|
+
"ease-in": "ease-in",
|
|
986
|
+
"ease-out": "ease-out",
|
|
987
|
+
"ease-in-out": "ease-in-out",
|
|
988
|
+
// Standard easings
|
|
989
|
+
"sine-in": "cubic-bezier(0.12,0,0.39,0)",
|
|
990
|
+
"sine-out": "cubic-bezier(0.61,1,0.88,1)",
|
|
991
|
+
"sine-in-out": "cubic-bezier(0.37,0,0.63,1)",
|
|
992
|
+
"quad-in": "cubic-bezier(0.11,0,0.5,0)",
|
|
993
|
+
"quad-out": "cubic-bezier(0.5,1,0.89,1)",
|
|
994
|
+
"quad-in-out": "cubic-bezier(0.45,0,0.55,1)",
|
|
995
|
+
"cubic": "cubic-bezier(0.65,0,0.35,1)",
|
|
996
|
+
"cubic-in": "cubic-bezier(0.32,0,0.67,0)",
|
|
997
|
+
"cubic-out": "cubic-bezier(0.33,1,0.68,1)",
|
|
998
|
+
"cubic-in-out": "cubic-bezier(0.65,0,0.35,1)",
|
|
999
|
+
"quart-in": "cubic-bezier(0.5,0,0.75,0)",
|
|
1000
|
+
"quart-out": "cubic-bezier(0.25,1,0.5,1)",
|
|
1001
|
+
"quart-in-out": "cubic-bezier(0.76,0,0.24,1)",
|
|
1002
|
+
"quint-in": "cubic-bezier(0.64,0,0.78,0)",
|
|
1003
|
+
"quint-out": "cubic-bezier(0.22,1,0.36,1)",
|
|
1004
|
+
"quint-in-out": "cubic-bezier(0.83,0,0.17,1)",
|
|
1005
|
+
"expo-in": "cubic-bezier(0.7,0,0.84,0)",
|
|
1006
|
+
"expo-out": "cubic-bezier(0.16,1,0.3,1)",
|
|
1007
|
+
"expo-in-out": "cubic-bezier(0.87,0,0.13,1)",
|
|
1008
|
+
"circ-in": "cubic-bezier(0.55,0,1,0.45)",
|
|
1009
|
+
"circ-out": "cubic-bezier(0,0.55,0.45,1)",
|
|
1010
|
+
"circ-in-out": "cubic-bezier(0.85,0,0.15,1)",
|
|
1011
|
+
"back-in": "cubic-bezier(0.36,0,0.66,-0.56)",
|
|
1012
|
+
"back-out": "cubic-bezier(0.34,1.56,0.64,1)",
|
|
1013
|
+
"back-in-out": "cubic-bezier(0.68,-0.6,0.32,1.6)",
|
|
1014
|
+
"elastic": "cubic-bezier(0.17,0.67,0.33,0.94)",
|
|
1015
|
+
"spring": "cubic-bezier(0.23,1,0.32,1.01)",
|
|
1016
|
+
"bounce": "cubic-bezier(0.71,-0.46,0.88,0.6)"
|
|
1017
|
+
};
|
|
1018
|
+
function handleNegative(val, jit) {
|
|
1019
|
+
const isNeg = val.endsWith("-negative");
|
|
1020
|
+
const clean = isNeg ? val.slice(0, -9) : val;
|
|
1021
|
+
const resolved = resolveValue(clean, jit);
|
|
1022
|
+
if (!resolved) return null;
|
|
1023
|
+
return isNeg ? `calc(${resolved} * -1)` : resolved;
|
|
1024
|
+
}
|
|
1025
|
+
const rules = [
|
|
1026
|
+
// Display
|
|
1027
|
+
[/^d-(block|inline|inline-block|flex|inline-flex|grid|inline-grid|none|contents|table|table-row|table-cell)$/, (m) => `display: ${m[1]};`],
|
|
1028
|
+
// Position
|
|
1029
|
+
[/^pos-(relative|absolute|fixed|sticky|static)$/, (m) => `position: ${m[1]};`],
|
|
1030
|
+
[/^pos-(t|r|b|l)-(.+)$/, (m, jit) => {
|
|
1031
|
+
const v = handleNegative(m[2], jit);
|
|
1032
|
+
return v ? `${dir[m[1]]}: ${v};` : null;
|
|
1033
|
+
}],
|
|
1034
|
+
// Grid
|
|
1035
|
+
[/^cols-(.+)$/, (m, jit) => {
|
|
1036
|
+
if (m[1].startsWith("[")) {
|
|
1037
|
+
const v = resolveValue(m[1], jit);
|
|
1038
|
+
return v ? `display: grid; grid-template-columns: ${v};` : null;
|
|
1039
|
+
}
|
|
1040
|
+
const n = parseInt(m[1]);
|
|
1041
|
+
if (n > 0) return `display: grid; grid-template-columns: repeat(${n}, minmax(0, 1fr));`;
|
|
1042
|
+
return null;
|
|
1043
|
+
}],
|
|
1044
|
+
[/^rows-(.+)$/, (m, jit) => {
|
|
1045
|
+
if (m[1].startsWith("[")) {
|
|
1046
|
+
const v = resolveValue(m[1], jit);
|
|
1047
|
+
return v ? `display: grid; grid-template-rows: ${v};` : null;
|
|
1048
|
+
}
|
|
1049
|
+
const n = parseInt(m[1]);
|
|
1050
|
+
if (n > 0) return `display: grid; grid-template-rows: repeat(${n}, minmax(0, 1fr));`;
|
|
1051
|
+
return null;
|
|
1052
|
+
}],
|
|
1053
|
+
// Gap (специфичные перед общими)
|
|
1054
|
+
[/^gap-x-(.+)$/, (m, jit) => {
|
|
1055
|
+
const v = resolveValue(m[1], jit);
|
|
1056
|
+
return v ? `column-gap: ${v};` : null;
|
|
1057
|
+
}],
|
|
1058
|
+
[/^gap-y-(.+)$/, (m, jit) => {
|
|
1059
|
+
const v = resolveValue(m[1], jit);
|
|
1060
|
+
return v ? `row-gap: ${v};` : null;
|
|
1061
|
+
}],
|
|
1062
|
+
[/^gap-(.+)$/, (m, jit) => {
|
|
1063
|
+
const v = resolveValue(m[1], jit);
|
|
1064
|
+
return v ? `gap: ${v};` : null;
|
|
1065
|
+
}],
|
|
1066
|
+
// Size (специфичные перед общими)
|
|
1067
|
+
[/^w-min-(.+)$/, (m, jit) => {
|
|
1068
|
+
const v = resolveValue(m[1], jit);
|
|
1069
|
+
return v ? `min-width: ${v};` : null;
|
|
1070
|
+
}],
|
|
1071
|
+
[/^w-max-(.+)$/, (m, jit) => {
|
|
1072
|
+
const v = resolveValue(m[1], jit);
|
|
1073
|
+
return v ? `max-width: ${v};` : null;
|
|
1074
|
+
}],
|
|
1075
|
+
[/^h-min-(.+)$/, (m, jit) => {
|
|
1076
|
+
const v = resolveValue(m[1], jit);
|
|
1077
|
+
return v ? `min-height: ${v};` : null;
|
|
1078
|
+
}],
|
|
1079
|
+
[/^h-max-(.+)$/, (m, jit) => {
|
|
1080
|
+
const v = resolveValue(m[1], jit);
|
|
1081
|
+
return v ? `max-height: ${v};` : null;
|
|
1082
|
+
}],
|
|
1083
|
+
[/^w-(.+)$/, (m, jit) => {
|
|
1084
|
+
const v = resolveValue(m[1], jit);
|
|
1085
|
+
return v ? `width: ${v};` : null;
|
|
1086
|
+
}],
|
|
1087
|
+
[/^h-(.+)$/, (m, jit) => {
|
|
1088
|
+
const v = resolveValue(m[1], jit);
|
|
1089
|
+
return v ? `height: ${v};` : null;
|
|
1090
|
+
}],
|
|
1091
|
+
// Padding (специфичные перед общими)
|
|
1092
|
+
[/^pd-(t|r|b|l)-(.+)$/, (m, jit) => {
|
|
1093
|
+
const v = handleNegative(m[2], jit);
|
|
1094
|
+
return v ? `padding-${dir[m[1]]}: ${v};` : null;
|
|
1095
|
+
}],
|
|
1096
|
+
[/^pd-(.+)$/, (m, jit) => {
|
|
1097
|
+
const v = resolveValue(m[1], jit);
|
|
1098
|
+
return v ? `padding: ${v};` : null;
|
|
1099
|
+
}],
|
|
1100
|
+
// Margin (специфичные перед общими)
|
|
1101
|
+
[/^mn-(t|r|b|l)-(.+)$/, (m, jit) => {
|
|
1102
|
+
const v = handleNegative(m[2], jit);
|
|
1103
|
+
return v ? `margin-${dir[m[1]]}: ${v};` : null;
|
|
1104
|
+
}],
|
|
1105
|
+
[/^mn-(.+)$/, (m, jit) => {
|
|
1106
|
+
const v = resolveValue(m[1], jit);
|
|
1107
|
+
return v ? `margin: ${v};` : null;
|
|
1108
|
+
}],
|
|
1109
|
+
// Border radius (специфичные перед общими)
|
|
1110
|
+
[/^radius-tl-(.+)$/, (m, jit) => {
|
|
1111
|
+
const v = resolveValue(m[1], jit);
|
|
1112
|
+
return v ? `border-top-left-radius: ${v};` : null;
|
|
1113
|
+
}],
|
|
1114
|
+
[/^radius-tr-(.+)$/, (m, jit) => {
|
|
1115
|
+
const v = resolveValue(m[1], jit);
|
|
1116
|
+
return v ? `border-top-right-radius: ${v};` : null;
|
|
1117
|
+
}],
|
|
1118
|
+
[/^radius-bl-(.+)$/, (m, jit) => {
|
|
1119
|
+
const v = resolveValue(m[1], jit);
|
|
1120
|
+
return v ? `border-bottom-left-radius: ${v};` : null;
|
|
1121
|
+
}],
|
|
1122
|
+
[/^radius-br-(.+)$/, (m, jit) => {
|
|
1123
|
+
const v = resolveValue(m[1], jit);
|
|
1124
|
+
return v ? `border-bottom-right-radius: ${v};` : null;
|
|
1125
|
+
}],
|
|
1126
|
+
[/^radius-(.+)$/, (m, jit) => {
|
|
1127
|
+
const v = resolveValue(m[1], jit);
|
|
1128
|
+
return v ? `border-radius: ${v};` : null;
|
|
1129
|
+
}],
|
|
1130
|
+
// Inset
|
|
1131
|
+
[/^top-(.+)$/, (m, jit) => {
|
|
1132
|
+
const v = resolveValue(m[1], jit);
|
|
1133
|
+
return v ? `top: ${v};` : null;
|
|
1134
|
+
}],
|
|
1135
|
+
[/^right-(.+)$/, (m, jit) => {
|
|
1136
|
+
const v = resolveValue(m[1], jit);
|
|
1137
|
+
return v ? `right: ${v};` : null;
|
|
1138
|
+
}],
|
|
1139
|
+
[/^bottom-(.+)$/, (m, jit) => {
|
|
1140
|
+
const v = resolveValue(m[1], jit);
|
|
1141
|
+
return v ? `bottom: ${v};` : null;
|
|
1142
|
+
}],
|
|
1143
|
+
[/^left-(.+)$/, (m, jit) => {
|
|
1144
|
+
const v = resolveValue(m[1], jit);
|
|
1145
|
+
return v ? `left: ${v};` : null;
|
|
1146
|
+
}],
|
|
1147
|
+
[/^inset-(.+)$/, (m, jit) => {
|
|
1148
|
+
const v = resolveValue(m[1], jit);
|
|
1149
|
+
return v ? `inset: ${v};` : null;
|
|
1150
|
+
}],
|
|
1151
|
+
// Z-index (z-index-0..10 → 0, 10, 20..100, z-index-1-negative → -10)
|
|
1152
|
+
[/^z-index-(\d+)(-negative)?$/, (m) => {
|
|
1153
|
+
const val = parseInt(m[1]) * 10;
|
|
1154
|
+
return `z-index: ${m[2] ? -val : val};`;
|
|
1155
|
+
}],
|
|
1156
|
+
// Z-index (z-0, z-10, z-[100])
|
|
1157
|
+
[/^z-(.+)$/, (m) => {
|
|
1158
|
+
if (m[1].startsWith("[")) return `z-index: ${m[1].slice(1, -1)};`;
|
|
1159
|
+
if (/^\d+$/.test(m[1])) return `z-index: ${m[1]};`;
|
|
1160
|
+
if (m[1] === "auto") return "z-index: auto;";
|
|
1161
|
+
return null;
|
|
1162
|
+
}],
|
|
1163
|
+
// Flex
|
|
1164
|
+
[/^flex-center$/, () => "align-items: center; justify-content: center;"],
|
|
1165
|
+
[/^flex-(h-center|justify-start|justify-center|justify-end|justify-between|justify-around)$/, (m) => {
|
|
1166
|
+
const map = { "h-center": "center", "justify-start": "flex-start", "justify-center": "center", "justify-end": "flex-end", "justify-between": "space-between", "justify-around": "space-around" };
|
|
1167
|
+
return `justify-content: ${map[m[1]]};`;
|
|
1168
|
+
}],
|
|
1169
|
+
[/^flex-(v-center|align-start|align-center|align-end|align-stretch|align-baseline)$/, (m) => {
|
|
1170
|
+
const map = { "v-center": "center", "align-start": "flex-start", "align-center": "center", "align-end": "flex-end", "align-stretch": "stretch", "align-baseline": "baseline" };
|
|
1171
|
+
return `align-items: ${map[m[1]]};`;
|
|
1172
|
+
}],
|
|
1173
|
+
[/^flex-(row|column|row-reverse|column-reverse)$/, (m) => `flex-direction: ${m[1]};`],
|
|
1174
|
+
[/^flex-(wrap|nowrap)$/, (m) => `flex-wrap: ${m[1]};`],
|
|
1175
|
+
[/^flex-\[(.+)\]$/, (m, jit) => `flex: ${jit.parseArbitraryValue(m[1])};`],
|
|
1176
|
+
[/^basis-(.+)$/, (m, jit) => {
|
|
1177
|
+
const v = resolveValue(m[1], jit);
|
|
1178
|
+
return v ? `flex-basis: ${v};` : null;
|
|
1179
|
+
}],
|
|
1180
|
+
[/^order-(.+)$/, (m) => {
|
|
1181
|
+
if (m[1].startsWith("[")) return `order: ${m[1].slice(1, -1)};`;
|
|
1182
|
+
if (/^\d+$/.test(m[1])) return `order: ${m[1]};`;
|
|
1183
|
+
return null;
|
|
1184
|
+
}],
|
|
1185
|
+
// Flex child
|
|
1186
|
+
[/^flex-child-none$/, () => "flex: none;"],
|
|
1187
|
+
[/^flex-child-noresize$/, () => "flex: 0;"],
|
|
1188
|
+
[/^flex-child-1$/, () => "flex: 1;"],
|
|
1189
|
+
[/^flex-child-auto$/, () => "flex: auto;"],
|
|
1190
|
+
[/^flex-child-default$/, () => "flex: 0 0 auto;"],
|
|
1191
|
+
[/^flex-child-initial$/, () => "flex: initial;"],
|
|
1192
|
+
[/^flex-child-grow-(\d+)$/, (m) => `flex-grow: ${m[1]};`],
|
|
1193
|
+
[/^flex-child-shrink-(\d+)$/, (m) => `flex-shrink: ${m[1]};`],
|
|
1194
|
+
[/^flex-child-basis-(auto|0)$/, (m) => `flex-basis: ${m[1]};`],
|
|
1195
|
+
[/^flex-child-order-(\d+|last)$/, (m) => `order: ${m[1] === "last" ? "9999" : m[1]};`],
|
|
1196
|
+
// Align self
|
|
1197
|
+
[/^align-self-(start|center|end|stretch|baseline|auto)$/, (m) => `align-self: ${m[1]};`],
|
|
1198
|
+
// Overflow
|
|
1199
|
+
[/^o-(hidden|scroll|auto|visible|clip)$/, (m) => `overflow: ${m[1]};`],
|
|
1200
|
+
[/^o-x-(hidden|scroll|auto|visible|clip)$/, (m) => `overflow-x: ${m[1]};`],
|
|
1201
|
+
[/^o-y-(hidden|scroll|auto|visible|clip)$/, (m) => `overflow-y: ${m[1]};`],
|
|
1202
|
+
// Text
|
|
1203
|
+
[/^t-(left|center|right|justify)$/, (m) => `text-align: ${m[1]};`],
|
|
1204
|
+
[/^text-\[(.+)\]$/, (m, jit) => `font-size: ${jit.parseArbitraryValue(m[1])};`],
|
|
1205
|
+
[/^leading-\[(.+)\]$/, (m, jit) => `line-height: ${jit.parseArbitraryValue(m[1])};`],
|
|
1206
|
+
[/^tracking-\[(.+)\]$/, (m, jit) => `letter-spacing: ${jit.parseArbitraryValue(m[1])};`],
|
|
1207
|
+
// Colors - transparency (bg-main-transp-50 → rgba(var(--main), 0.5))
|
|
1208
|
+
[/^bg-(.+)-transp-(\d+)$/, (m) => {
|
|
1209
|
+
const color = m[1];
|
|
1210
|
+
const opacity = parseInt(m[2]) / 100;
|
|
1211
|
+
if (colorNames.includes(color)) return `background: rgba(var(--${color}), ${opacity});`;
|
|
1212
|
+
return null;
|
|
1213
|
+
}],
|
|
1214
|
+
[/^t-(.+)-transp-(\d+)$/, (m) => {
|
|
1215
|
+
const color = m[1];
|
|
1216
|
+
const opacity = parseInt(m[2]) / 100;
|
|
1217
|
+
if (colorNames.includes(color)) return `color: rgba(var(--${color}), ${opacity});`;
|
|
1218
|
+
return null;
|
|
1219
|
+
}],
|
|
1220
|
+
[/^fill-(.+)-transp-(\d+)$/, (m) => {
|
|
1221
|
+
const color = m[1];
|
|
1222
|
+
const opacity = parseInt(m[2]) / 100;
|
|
1223
|
+
if (colorNames.includes(color)) return `fill: rgba(var(--${color}), ${opacity});`;
|
|
1224
|
+
return null;
|
|
1225
|
+
}],
|
|
1226
|
+
// Gradient arbitrary: bg-grad-[135deg_main_white], bg-grad-[to-r_black_transparent]
|
|
1227
|
+
[/^bg-grad-\[(.+)\]$/, (m, jit) => {
|
|
1228
|
+
const parts = jit.parseArbitraryValue(m[1]).split(" ");
|
|
1229
|
+
if (parts.length < 3) return null;
|
|
1230
|
+
let dir2 = parts[0];
|
|
1231
|
+
if (dir2.startsWith("to-")) {
|
|
1232
|
+
const dirMap = { "t": "to top", "tr": "to top right", "r": "to right", "br": "to bottom right", "b": "to bottom", "bl": "to bottom left", "l": "to left", "tl": "to top left" };
|
|
1233
|
+
dir2 = dirMap[dir2.slice(3)] || "to bottom";
|
|
1234
|
+
}
|
|
1235
|
+
const resolveGradColor = (c) => {
|
|
1236
|
+
if (c === "transparent") return "transparent";
|
|
1237
|
+
if (c.startsWith("#")) return c;
|
|
1238
|
+
const match = c.match(/^([a-z]+)-(\d+)$/);
|
|
1239
|
+
if (match && colorNames.includes(match[1])) return `rgba(var(--${match[1]}), ${parseInt(match[2]) / 100})`;
|
|
1240
|
+
if (colorNames.includes(c)) return `rgb(var(--${c}))`;
|
|
1241
|
+
return c;
|
|
1242
|
+
};
|
|
1243
|
+
const colors = parts.slice(1).map(resolveGradColor).join(", ");
|
|
1244
|
+
return `background: linear-gradient(${dir2}, ${colors});`;
|
|
1245
|
+
}],
|
|
1246
|
+
// Colors (arbitrary) - ПЕРЕД named чтобы [#fff] не попал в named
|
|
1247
|
+
[/^bg-\[(.+)\]$/, (m, jit) => `background: ${jit.parseArbitraryValue(m[1])};`],
|
|
1248
|
+
[/^t-\[(.+)\]$/, (m, jit) => `color: ${jit.parseArbitraryValue(m[1])};`],
|
|
1249
|
+
[/^fill-\[(.+)\]$/, (m, jit) => `fill: ${jit.parseArbitraryValue(m[1])};`],
|
|
1250
|
+
[/^stroke-\[(.+)\]$/, (m, jit) => `stroke: ${jit.parseArbitraryValue(m[1])};`],
|
|
1251
|
+
// Colors - named (bg-main, bg-main-medium, t-black, fill-white)
|
|
1252
|
+
[/^bg-([a-z][\w-]*)$/, (m) => {
|
|
1253
|
+
const v = resolveColor(m[1]);
|
|
1254
|
+
return v ? `background: ${v};` : null;
|
|
1255
|
+
}],
|
|
1256
|
+
[/^t-([a-z][\w-]*)$/, (m) => {
|
|
1257
|
+
const v = resolveColor(m[1]);
|
|
1258
|
+
return v ? `color: ${v};` : null;
|
|
1259
|
+
}],
|
|
1260
|
+
[/^fill-([a-z][\w-]*)$/, (m) => {
|
|
1261
|
+
const v = resolveColor(m[1]);
|
|
1262
|
+
return v ? `fill: ${v};` : null;
|
|
1263
|
+
}],
|
|
1264
|
+
[/^stroke-([a-z][\w-]*)$/, (m) => {
|
|
1265
|
+
const v = resolveColor(m[1]);
|
|
1266
|
+
return v ? `stroke: ${v};` : null;
|
|
1267
|
+
}],
|
|
1268
|
+
// Transform (через CSS-переменные для комбинирования)
|
|
1269
|
+
[/^translate-x-(.+)$/, (m, jit) => {
|
|
1270
|
+
const v = handleNegative(m[1], jit);
|
|
1271
|
+
return v ? `--m-tx: ${v};` : null;
|
|
1272
|
+
}],
|
|
1273
|
+
[/^translate-y-(.+)$/, (m, jit) => {
|
|
1274
|
+
const v = handleNegative(m[1], jit);
|
|
1275
|
+
return v ? `--m-ty: ${v};` : null;
|
|
1276
|
+
}],
|
|
1277
|
+
[/^translate-(.+)$/, (m, jit) => {
|
|
1278
|
+
const v = resolveValue(m[1], jit);
|
|
1279
|
+
return v ? `--m-tx: ${v}; --m-ty: ${v};` : null;
|
|
1280
|
+
}],
|
|
1281
|
+
[/^rotate-(.+)$/, (m, jit) => {
|
|
1282
|
+
const v = resolveValue(m[1], jit);
|
|
1283
|
+
return v ? `--m-rotate: ${v};` : null;
|
|
1284
|
+
}],
|
|
1285
|
+
[/^scale-x-(.+)$/, (m, jit) => {
|
|
1286
|
+
const v = resolveValue(m[1], jit);
|
|
1287
|
+
return v ? `--m-scale-x: ${v};` : null;
|
|
1288
|
+
}],
|
|
1289
|
+
[/^scale-y-(.+)$/, (m, jit) => {
|
|
1290
|
+
const v = resolveValue(m[1], jit);
|
|
1291
|
+
return v ? `--m-scale-y: ${v};` : null;
|
|
1292
|
+
}],
|
|
1293
|
+
[/^scale-(.+)$/, (m, jit) => {
|
|
1294
|
+
const v = resolveValue(m[1], jit);
|
|
1295
|
+
return v ? `--m-scale-x: ${v}; --m-scale-y: ${v};` : null;
|
|
1296
|
+
}],
|
|
1297
|
+
[/^skew-x-(.+)$/, (m, jit) => {
|
|
1298
|
+
const v = resolveValue(m[1], jit);
|
|
1299
|
+
return v ? `--m-skew-x: ${v};` : null;
|
|
1300
|
+
}],
|
|
1301
|
+
[/^skew-y-(.+)$/, (m, jit) => {
|
|
1302
|
+
const v = resolveValue(m[1], jit);
|
|
1303
|
+
return v ? `--m-skew-y: ${v};` : null;
|
|
1304
|
+
}],
|
|
1305
|
+
// Aspect ratio (aspect-16x9, aspect-4x3, aspect-1x1)
|
|
1306
|
+
[/^aspect-(\d+)x(\d+)$/, (m) => `aspect-ratio: ${m[1]} / ${m[2]};`],
|
|
1307
|
+
// Object fit
|
|
1308
|
+
[/^object-fit-(cover|contain|fill|none|scale-down)$/, (m) => `object-fit: ${m[1]};`],
|
|
1309
|
+
// Backdrop blur (bg-blur-medium, bg-blur-[10px])
|
|
1310
|
+
[/^bg-blur-(.+)$/, (m, jit) => {
|
|
1311
|
+
const v = resolveValue(m[1], jit);
|
|
1312
|
+
return v ? `backdrop-filter: blur(${v});` : null;
|
|
1313
|
+
}],
|
|
1314
|
+
// Borders (box-shadow inset) - специфичные перед общими
|
|
1315
|
+
// Side + color: br-t-green, br-l-red (1px default)
|
|
1316
|
+
[/^br-(t|r|b|l)-(.+)-transp-(\d+)$/, (m) => {
|
|
1317
|
+
const color = m[2];
|
|
1318
|
+
const opacity = parseInt(m[3]) / 100;
|
|
1319
|
+
if (!colorNames.includes(color)) return null;
|
|
1320
|
+
const c = `rgba(var(--${color}), ${opacity})`;
|
|
1321
|
+
if (m[1] === "t") return `box-shadow: inset 0 1px 0 0 ${c};`;
|
|
1322
|
+
if (m[1] === "r") return `box-shadow: inset -1px 0 0 0 ${c};`;
|
|
1323
|
+
if (m[1] === "b") return `box-shadow: inset 0 -1px 0 0 ${c};`;
|
|
1324
|
+
if (m[1] === "l") return `box-shadow: inset 1px 0 0 0 ${c};`;
|
|
1325
|
+
return null;
|
|
1326
|
+
}],
|
|
1327
|
+
[/^br-(t|r|b|l)-([a-z][\w-]*)$/, (m) => {
|
|
1328
|
+
const v = resolveColor(m[2]);
|
|
1329
|
+
if (!v) return null;
|
|
1330
|
+
if (m[1] === "t") return `box-shadow: inset 0 1px 0 0 ${v};`;
|
|
1331
|
+
if (m[1] === "r") return `box-shadow: inset -1px 0 0 0 ${v};`;
|
|
1332
|
+
if (m[1] === "b") return `box-shadow: inset 0 -1px 0 0 ${v};`;
|
|
1333
|
+
if (m[1] === "l") return `box-shadow: inset 1px 0 0 0 ${v};`;
|
|
1334
|
+
return null;
|
|
1335
|
+
}],
|
|
1336
|
+
// Single sides with width: br-t-1px, br-r-2px, br-b-1px, br-l-1px
|
|
1337
|
+
[/^br-t-(\d+)px$/, (m) => `box-shadow: inset 0 ${m[1]}px 0 0 var(--br-color, currentColor);`],
|
|
1338
|
+
[/^br-r-(\d+)px$/, (m) => `box-shadow: inset -${m[1]}px 0 0 0 var(--br-color, currentColor);`],
|
|
1339
|
+
[/^br-b-(\d+)px$/, (m) => `box-shadow: inset 0 -${m[1]}px 0 0 var(--br-color, currentColor);`],
|
|
1340
|
+
[/^br-l-(\d+)px$/, (m) => `box-shadow: inset ${m[1]}px 0 0 0 var(--br-color, currentColor);`],
|
|
1341
|
+
// All sides: br-1px, br-2px, br-[3px]
|
|
1342
|
+
[/^br-(\d+)px$/, (m) => `box-shadow: inset 0 0 0 ${m[1]}px var(--br-color, currentColor);`],
|
|
1343
|
+
[/^br-\[(\d+px)\]$/, (m) => `box-shadow: inset 0 0 0 ${m[1]} var(--br-color, currentColor);`],
|
|
1344
|
+
// Border colors: br-grey, br-main, br-black-transp-50
|
|
1345
|
+
[/^br-(.+)-transp-(\d+)$/, (m) => {
|
|
1346
|
+
const color = m[1];
|
|
1347
|
+
const opacity = parseInt(m[2]) / 100;
|
|
1348
|
+
if (colorNames.includes(color)) return `--br-color: rgba(var(--${color}), ${opacity});`;
|
|
1349
|
+
return null;
|
|
1350
|
+
}],
|
|
1351
|
+
[/^br-([a-z][\w-]*)$/, (m) => {
|
|
1352
|
+
const v = resolveColor(m[1]);
|
|
1353
|
+
return v ? `--br-color: ${v};` : null;
|
|
1354
|
+
}],
|
|
1355
|
+
// Opacity (opacity-50, opacity-[0.75])
|
|
1356
|
+
[/^opacity-(\d+)$/, (m) => `opacity: ${parseInt(m[1]) / 100};`],
|
|
1357
|
+
[/^opacity-\[(.+)\]$/, (m) => `opacity: ${m[1]};`],
|
|
1358
|
+
// Box shadows: bs-{size}, bs-{color}, bs-{color}-{size}, bs-none, bs-[...]
|
|
1359
|
+
// Sizes: nano, micro, thin, small, regular, medium, semi, big, extra
|
|
1360
|
+
// Colors: any from colorNames (black, dark, main, etc.)
|
|
1361
|
+
[/^bs-(nano|micro|thin|small|regular|medium|semi|big|extra)$/, (m) => {
|
|
1362
|
+
const scale = { nano: 0.5, micro: 1, thin: 2, small: 3, regular: 4, medium: 5, semi: 6, big: 8, extra: 10 };
|
|
1363
|
+
const s = scale[m[1]];
|
|
1364
|
+
return `box-shadow: 0 ${s}px ${s * 2}px rgba(var(--dark),0.05), 0 ${s * 2}px ${s * 4}px rgba(var(--dark),0.08), 0 ${s * 3}px ${s * 6}px rgba(var(--dark),0.10);`;
|
|
1365
|
+
}],
|
|
1366
|
+
[/^bs-([a-z]+)-(nano|micro|thin|small|regular|medium|semi|big|extra)$/, (m) => {
|
|
1367
|
+
const color = m[1];
|
|
1368
|
+
if (!colorNames.includes(color)) return null;
|
|
1369
|
+
const scale = { nano: 0.5, micro: 1, thin: 2, small: 3, regular: 4, medium: 5, semi: 6, big: 8, extra: 10 };
|
|
1370
|
+
const s = scale[m[2]];
|
|
1371
|
+
return `box-shadow: 0 ${s}px ${s * 2}px rgba(var(--${color}),0.05), 0 ${s * 2}px ${s * 4}px rgba(var(--${color}),0.08), 0 ${s * 3}px ${s * 6}px rgba(var(--${color}),0.10);`;
|
|
1372
|
+
}],
|
|
1373
|
+
[/^bs-([a-z]+)$/, (m) => {
|
|
1374
|
+
if (!colorNames.includes(m[1])) return null;
|
|
1375
|
+
return `box-shadow: 0 4px 8px rgba(var(--${m[1]}),0.05), 0 8px 16px rgba(var(--${m[1]}),0.08), 0 12px 24px rgba(var(--${m[1]}),0.10);`;
|
|
1376
|
+
}],
|
|
1377
|
+
[/^bs-none$/, () => "box-shadow: none;"],
|
|
1378
|
+
[/^bs-\[(.+)\]$/, (m, jit) => `box-shadow: ${jit.parseArbitraryValue(m[1])};`],
|
|
1379
|
+
// Transitions: ease-{type}, ease-{type}-{ms}, duration-{ms}, delay-{ms}
|
|
1380
|
+
[/^ease-([a-z-]+)-(\d+)$/, (m) => {
|
|
1381
|
+
const easing = easings[m[1]];
|
|
1382
|
+
return easing ? `transition: all ${parseInt(m[2]) / 1e3}s ${easing};` : null;
|
|
1383
|
+
}],
|
|
1384
|
+
[/^ease-([a-z-]+)$/, (m) => {
|
|
1385
|
+
const easing = easings[m[1]];
|
|
1386
|
+
return easing ? `transition: all 0.33s ${easing};` : null;
|
|
1387
|
+
}],
|
|
1388
|
+
[/^duration-(\d+)$/, (m) => `transition-duration: ${parseInt(m[1]) / 1e3}s;`],
|
|
1389
|
+
[/^delay-(\d+)$/, (m) => `transition-delay: ${parseInt(m[1]) / 1e3}s;`],
|
|
1390
|
+
// Pointer events
|
|
1391
|
+
[/^no-events$/, () => "pointer-events: none;"],
|
|
1392
|
+
// Width/Height с min() (w-m-66r → width: min(100%, 66rem))
|
|
1393
|
+
[/^w-m-(\d+)r$/, (m) => `width: min(100%, ${m[1]}rem);`],
|
|
1394
|
+
[/^h-m-(\d+)r$/, (m) => `height: min(100%, ${m[1]}rem);`],
|
|
1395
|
+
// Font weight (fw-bold, fw-500, fw-[600])
|
|
1396
|
+
[/^fw-(bold|demi|semi|medium|regular|light)$/, (m) => {
|
|
1397
|
+
const map = { bold: 900, demi: 700, semi: 600, medium: 500, regular: 400, light: 300 };
|
|
1398
|
+
return `font-weight: ${map[m[1]]};`;
|
|
1399
|
+
}],
|
|
1400
|
+
[/^fw-\[(.+)\]$/, (m) => `font-weight: ${m[1]};`],
|
|
1401
|
+
[/^fw-(\d+)$/, (m) => `font-weight: ${m[1]};`],
|
|
1402
|
+
// White-space (ws-nowrap, ws-pre-line)
|
|
1403
|
+
[/^ws-(nowrap|normal|pre|pre-line|pre-wrap|break-spaces)$/, (m) => `white-space: ${m[1]};`],
|
|
1404
|
+
// Line-height (lh-medium, lh-125, lh-[1.75])
|
|
1405
|
+
[/^lh-(.+)$/, (m, jit) => {
|
|
1406
|
+
const v = resolveValue(m[1], jit);
|
|
1407
|
+
return v ? `line-height: ${v};` : null;
|
|
1408
|
+
}],
|
|
1409
|
+
// Text transform
|
|
1410
|
+
[/^uppercase$/, () => "text-transform: uppercase;"],
|
|
1411
|
+
[/^lowercase$/, () => "text-transform: lowercase;"],
|
|
1412
|
+
[/^capitalize$/, () => "text-transform: capitalize;"],
|
|
1413
|
+
// Text decoration
|
|
1414
|
+
[/^underline$/, () => "text-decoration: underline;"],
|
|
1415
|
+
[/^line-through$/, () => "text-decoration: line-through;"],
|
|
1416
|
+
// User select
|
|
1417
|
+
[/^select-none$/, () => "-webkit-user-select: none; user-select: none;"],
|
|
1418
|
+
// Truncate (truncate, line-clamp-1, line-clamp-[5])
|
|
1419
|
+
[/^truncate$/, () => "overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"],
|
|
1420
|
+
[/^line-clamp-(\d+)$/, (m) => `display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: ${m[1]};`],
|
|
1421
|
+
// Cursor (cursor-pointer, cursor-move, cursor-grab, etc.)
|
|
1422
|
+
[/^cursor-(pointer|move|text|help|wait|crosshair|not-allowed|grab|grabbing|default|none|auto)$/, (m) => `cursor: ${m[1]};`],
|
|
1423
|
+
[/^cursor-(ns|ew|ne|nw|se|sw|n|e|s|w)-resize$/, (m) => `cursor: ${m[1]}-resize;`],
|
|
1424
|
+
// Icon sizes (i-extra, i-big, i-medium, etc.) - используют CSS переменные
|
|
1425
|
+
[/^i-(extra|big|semi|medium|regular|small|thin|micro|nano)$/, (m) => `width: var(--${m[1]}); height: var(--${m[1]});`],
|
|
1426
|
+
// Flex shrink (flex-shrink-0, flex-shrink-1)
|
|
1427
|
+
[/^flex-shrink-(\d+)$/, (m) => `flex-shrink: ${m[1]};`],
|
|
1428
|
+
// Scroll snap type (scroll-snap-x-mandatory, scroll-snap-y-proximity)
|
|
1429
|
+
[/^scroll-snap-(x|y)-(mandatory|proximity)$/, (m) => `scroll-snap-type: ${m[1]} ${m[2]};`],
|
|
1430
|
+
// Scroll snap align (scroll-snap-start, scroll-snap-center)
|
|
1431
|
+
[/^scroll-snap-(start|end|center|none)$/, (m) => `scroll-snap-align: ${m[1]};`],
|
|
1432
|
+
// Scroll behavior (scroll-smooth, scroll-auto)
|
|
1433
|
+
[/^scroll-(auto|smooth)$/, (m) => `scroll-behavior: ${m[1]};`],
|
|
1434
|
+
// Scroll padding (scroll-pd-medium, scroll-pd-t-small) - через resolveValue
|
|
1435
|
+
[/^scroll-pd-(t|r|b|l)-(.+)$/, (m, jit) => {
|
|
1436
|
+
const v = resolveValue(m[2], jit);
|
|
1437
|
+
return v ? `scroll-padding-${dir[m[1]]}: ${v};` : null;
|
|
1438
|
+
}],
|
|
1439
|
+
[/^scroll-pd-(.+)$/, (m, jit) => {
|
|
1440
|
+
const v = resolveValue(m[1], jit);
|
|
1441
|
+
return v ? `scroll-padding: ${v};` : null;
|
|
1442
|
+
}],
|
|
1443
|
+
// Scroll margin (scroll-mn-medium, scroll-mn-t-small) - через resolveValue
|
|
1444
|
+
[/^scroll-mn-(t|r|b|l)-(.+)$/, (m, jit) => {
|
|
1445
|
+
const v = resolveValue(m[2], jit);
|
|
1446
|
+
return v ? `scroll-margin-${dir[m[1]]}: ${v};` : null;
|
|
1447
|
+
}],
|
|
1448
|
+
[/^scroll-mn-(.+)$/, (m, jit) => {
|
|
1449
|
+
const v = resolveValue(m[1], jit);
|
|
1450
|
+
return v ? `scroll-margin: ${v};` : null;
|
|
1451
|
+
}],
|
|
1452
|
+
// Overscroll (overscroll-x-contain, overscroll-none)
|
|
1453
|
+
[/^overscroll-(x|y)-(auto|contain|none)$/, (m) => `overscroll-behavior-${m[1]}: ${m[2]};`],
|
|
1454
|
+
[/^overscroll-(auto|contain|none)$/, (m) => `overscroll-behavior: ${m[1]};`],
|
|
1455
|
+
// Scroll hide (scroll-hide)
|
|
1456
|
+
[/^scroll-hide$/, () => `-ms-overflow-style: none; scrollbar-width: none;`]
|
|
1457
|
+
];
|
|
1458
|
+
const variants = [
|
|
1459
|
+
// ========================================
|
|
1460
|
+
// RESPONSIVE BREAKPOINTS
|
|
1461
|
+
// ========================================
|
|
1462
|
+
{
|
|
1463
|
+
name: "mobile",
|
|
1464
|
+
wrapper: (selector, css, jit) => `@media (max-width: 640px) { .${selector} { ${css} } }`
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
name: "tablet",
|
|
1468
|
+
wrapper: (selector, css, jit) => `@media (min-width: 641px) and (max-width: 1024px) { .${selector} { ${css} } }`
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
name: "desktop",
|
|
1472
|
+
wrapper: (selector, css, jit) => `@media (min-width: 1025px) and (max-width: 1440px) { .${selector} { ${css} } }`
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
name: "widescreen",
|
|
1476
|
+
wrapper: (selector, css, jit) => `@media (min-width: 1441px) { .${selector} { ${css} } }`
|
|
1477
|
+
},
|
|
1478
|
+
// ========================================
|
|
1479
|
+
// PSEUDO-CLASSES
|
|
1480
|
+
// ========================================
|
|
1481
|
+
{
|
|
1482
|
+
name: "hover",
|
|
1483
|
+
wrapper: (selector, css) => `.${selector}:hover { ${css} }`
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
name: "focus",
|
|
1487
|
+
wrapper: (selector, css) => `.${selector}:focus { ${css} }`
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
name: "active",
|
|
1491
|
+
wrapper: (selector, css) => `.${selector}:active { ${css} }`
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
name: "disabled",
|
|
1495
|
+
wrapper: (selector, css) => `.${selector}:disabled { ${css} }`
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
name: "first",
|
|
1499
|
+
wrapper: (selector, css) => `.${selector}:first-child { ${css} }`
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
name: "last",
|
|
1503
|
+
wrapper: (selector, css) => `.${selector}:last-child { ${css} }`
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
name: "odd",
|
|
1507
|
+
wrapper: (selector, css) => `.${selector}:nth-child(odd) { ${css} }`
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
name: "even",
|
|
1511
|
+
wrapper: (selector, css) => `.${selector}:nth-child(even) { ${css} }`
|
|
1512
|
+
},
|
|
1513
|
+
// ========================================
|
|
1514
|
+
// COLOR SCHEME
|
|
1515
|
+
// ========================================
|
|
1516
|
+
{
|
|
1517
|
+
name: "dark",
|
|
1518
|
+
wrapper: (selector, css) => `@media (prefers-color-scheme: dark) { .${selector} { ${css} } }`
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
name: "light",
|
|
1522
|
+
wrapper: (selector, css) => `@media (prefers-color-scheme: light) { .${selector} { ${css} } }`
|
|
1523
|
+
},
|
|
1524
|
+
// ========================================
|
|
1525
|
+
// GROUP VARIANTS
|
|
1526
|
+
// ========================================
|
|
1527
|
+
{
|
|
1528
|
+
name: "group-hover",
|
|
1529
|
+
wrapper: (selector, css) => `.group:hover .${selector} { ${css} }`
|
|
1530
|
+
},
|
|
1531
|
+
// ========================================
|
|
1532
|
+
// PRINT
|
|
1533
|
+
// ========================================
|
|
1534
|
+
{
|
|
1535
|
+
name: "print",
|
|
1536
|
+
wrapper: (selector, css) => `@media print { .${selector} { ${css} } }`
|
|
1537
|
+
}
|
|
1538
|
+
];
|
|
1539
|
+
const TOKEN_REGEX = /[A-Za-z][A-Za-z0-9_:-]*(?:\[[^\]]+\])?/g;
|
|
1540
|
+
const CLASS_ATTR_REGEX = /class(?:Name)?=["'`]([^"'`]+)["'`]/g;
|
|
1541
|
+
const DYNAMIC_CLASS_REGEX = /:class=["'`{[]([^"'`]+)["'`}\]]/g;
|
|
1542
|
+
const BLOCKLIST = /* @__PURE__ */ new Set([
|
|
1543
|
+
// JS keywords
|
|
1544
|
+
"import",
|
|
1545
|
+
"export",
|
|
1546
|
+
"from",
|
|
1547
|
+
"const",
|
|
1548
|
+
"let",
|
|
1549
|
+
"var",
|
|
1550
|
+
"function",
|
|
1551
|
+
"return",
|
|
1552
|
+
"if",
|
|
1553
|
+
"else",
|
|
1554
|
+
"for",
|
|
1555
|
+
"while",
|
|
1556
|
+
"switch",
|
|
1557
|
+
"case",
|
|
1558
|
+
"break",
|
|
1559
|
+
"continue",
|
|
1560
|
+
"true",
|
|
1561
|
+
"false",
|
|
1562
|
+
"null",
|
|
1563
|
+
"undefined",
|
|
1564
|
+
"this",
|
|
1565
|
+
"new",
|
|
1566
|
+
"class",
|
|
1567
|
+
"extends",
|
|
1568
|
+
"async",
|
|
1569
|
+
"await",
|
|
1570
|
+
"try",
|
|
1571
|
+
"catch",
|
|
1572
|
+
"finally",
|
|
1573
|
+
"throw",
|
|
1574
|
+
"typeof",
|
|
1575
|
+
"instanceof",
|
|
1576
|
+
"default",
|
|
1577
|
+
"delete",
|
|
1578
|
+
"do",
|
|
1579
|
+
"in",
|
|
1580
|
+
"of",
|
|
1581
|
+
"void",
|
|
1582
|
+
"with",
|
|
1583
|
+
"yield",
|
|
1584
|
+
// HTML tags
|
|
1585
|
+
"div",
|
|
1586
|
+
"span",
|
|
1587
|
+
"template",
|
|
1588
|
+
"script",
|
|
1589
|
+
"style",
|
|
1590
|
+
"head",
|
|
1591
|
+
"body",
|
|
1592
|
+
"html",
|
|
1593
|
+
"section",
|
|
1594
|
+
"article",
|
|
1595
|
+
"header",
|
|
1596
|
+
"footer",
|
|
1597
|
+
"nav",
|
|
1598
|
+
"aside",
|
|
1599
|
+
"main",
|
|
1600
|
+
"form",
|
|
1601
|
+
"input",
|
|
1602
|
+
"button",
|
|
1603
|
+
"select",
|
|
1604
|
+
"option",
|
|
1605
|
+
"textarea",
|
|
1606
|
+
"label",
|
|
1607
|
+
"table",
|
|
1608
|
+
"thead",
|
|
1609
|
+
"tbody",
|
|
1610
|
+
"tfoot",
|
|
1611
|
+
"tr",
|
|
1612
|
+
"th",
|
|
1613
|
+
"td",
|
|
1614
|
+
"ul",
|
|
1615
|
+
"ol",
|
|
1616
|
+
"li",
|
|
1617
|
+
"dl",
|
|
1618
|
+
"dt",
|
|
1619
|
+
"dd",
|
|
1620
|
+
"a",
|
|
1621
|
+
"p",
|
|
1622
|
+
"h1",
|
|
1623
|
+
"h2",
|
|
1624
|
+
"h3",
|
|
1625
|
+
"h4",
|
|
1626
|
+
"h5",
|
|
1627
|
+
"h6",
|
|
1628
|
+
"img",
|
|
1629
|
+
"video",
|
|
1630
|
+
"audio",
|
|
1631
|
+
"canvas",
|
|
1632
|
+
"svg",
|
|
1633
|
+
"path",
|
|
1634
|
+
"slot",
|
|
1635
|
+
"component",
|
|
1636
|
+
"transition",
|
|
1637
|
+
"keep-alive",
|
|
1638
|
+
// Vue
|
|
1639
|
+
"ref",
|
|
1640
|
+
"reactive",
|
|
1641
|
+
"computed",
|
|
1642
|
+
"watch",
|
|
1643
|
+
"onMounted",
|
|
1644
|
+
"onUnmounted",
|
|
1645
|
+
"defineProps",
|
|
1646
|
+
"defineEmits",
|
|
1647
|
+
"defineExpose",
|
|
1648
|
+
"withDefaults",
|
|
1649
|
+
// Common
|
|
1650
|
+
"props",
|
|
1651
|
+
"emit",
|
|
1652
|
+
"attrs",
|
|
1653
|
+
"slots",
|
|
1654
|
+
"setup",
|
|
1655
|
+
"data",
|
|
1656
|
+
"methods",
|
|
1657
|
+
"mounted"
|
|
1658
|
+
]);
|
|
1659
|
+
function isValidToken(token) {
|
|
1660
|
+
if (token.length < 2) return false;
|
|
1661
|
+
if (BLOCKLIST.has(token)) return false;
|
|
1662
|
+
if (token.includes("...")) return false;
|
|
1663
|
+
if (token.includes("[]")) return false;
|
|
1664
|
+
if (/^\d+$/.test(token)) return false;
|
|
1665
|
+
if (/^\d/.test(token)) return false;
|
|
1666
|
+
if (/^[a-z]+$/i.test(token) && token.length > 10) return false;
|
|
1667
|
+
return true;
|
|
1668
|
+
}
|
|
1669
|
+
function extractTokens(content, filename = "") {
|
|
1670
|
+
const tokens = /* @__PURE__ */ new Set();
|
|
1671
|
+
for (const match of content.matchAll(CLASS_ATTR_REGEX)) {
|
|
1672
|
+
const classString = match[1];
|
|
1673
|
+
const classes = classString.split(/\s+/).filter(Boolean);
|
|
1674
|
+
for (const cls of classes) {
|
|
1675
|
+
if (isValidToken(cls)) {
|
|
1676
|
+
tokens.add(cls);
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
for (const match of content.matchAll(DYNAMIC_CLASS_REGEX)) {
|
|
1681
|
+
const binding = match[1];
|
|
1682
|
+
const bindingTokens = binding.match(TOKEN_REGEX) || [];
|
|
1683
|
+
for (const cls of bindingTokens) {
|
|
1684
|
+
if (isValidToken(cls)) {
|
|
1685
|
+
tokens.add(cls);
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
const stringLiterals = binding.match(/['"]([^'"]+)['"]/g) || [];
|
|
1689
|
+
for (const literal of stringLiterals) {
|
|
1690
|
+
const cleaned = literal.slice(1, -1);
|
|
1691
|
+
const classes = cleaned.split(/\s+/).filter(Boolean);
|
|
1692
|
+
for (const cls of classes) {
|
|
1693
|
+
if (isValidToken(cls)) {
|
|
1694
|
+
tokens.add(cls);
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
for (const match of content.matchAll(TOKEN_REGEX)) {
|
|
1700
|
+
const token = match[0];
|
|
1701
|
+
if (isValidToken(token)) {
|
|
1702
|
+
tokens.add(token);
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
return tokens;
|
|
1706
|
+
}
|
|
1707
|
+
const { VirtualModulesPlugin } = experiments;
|
|
1708
|
+
const PLUGIN_NAME = "MartyrsJitPlugin";
|
|
1709
|
+
const VIRTUAL_MODULE_ID = "martyrs-jit.css";
|
|
1710
|
+
const VIRTUAL_MODULE_PATH = "node_modules/.martyrs/__martyrs.css";
|
|
1711
|
+
const LAYER_PLACEHOLDER = "#--martyrs--{layer:__ALL__}";
|
|
1712
|
+
const LAYER_PLACEHOLDER_RE = /#--martyrs--\s*\{\s*layer\s*:\s*(.+?)\s*;?\s*\}/g;
|
|
1713
|
+
class MartyrsJitPlugin {
|
|
1714
|
+
constructor(options = {}) {
|
|
1715
|
+
this.options = {
|
|
1716
|
+
extensions: options.extensions || [".vue", ".js", ".jsx", ".ts", ".tsx"],
|
|
1717
|
+
include: options.include || ["src"],
|
|
1718
|
+
exclude: options.exclude || ["node_modules", "dist", ".git"],
|
|
1719
|
+
verbose: options.verbose || false,
|
|
1720
|
+
...options
|
|
1721
|
+
};
|
|
1722
|
+
this.jit = new MartyrsJIT();
|
|
1723
|
+
for (const [pattern, handler] of rules) {
|
|
1724
|
+
this.jit.addRule(pattern, handler);
|
|
1725
|
+
}
|
|
1726
|
+
for (const variant of variants) {
|
|
1727
|
+
this.jit.addVariant(variant.name, variant.wrapper);
|
|
1728
|
+
}
|
|
1729
|
+
this.tokensByFile = /* @__PURE__ */ new Map();
|
|
1730
|
+
this.virtualModules = null;
|
|
1731
|
+
}
|
|
1732
|
+
apply(compiler) {
|
|
1733
|
+
const projectRoot = compiler.context;
|
|
1734
|
+
this.virtualModules = new VirtualModulesPlugin({
|
|
1735
|
+
[VIRTUAL_MODULE_PATH]: LAYER_PLACEHOLDER
|
|
1736
|
+
});
|
|
1737
|
+
this.virtualModules.apply(compiler);
|
|
1738
|
+
compiler.options.resolve = compiler.options.resolve || {};
|
|
1739
|
+
compiler.options.resolve.alias = compiler.options.resolve.alias || {};
|
|
1740
|
+
compiler.options.resolve.alias[VIRTUAL_MODULE_ID] = path.join(projectRoot, VIRTUAL_MODULE_PATH);
|
|
1741
|
+
const loaderPath = path.resolve(import.meta.dirname, "loader.js");
|
|
1742
|
+
const extensionsRegex = new RegExp(
|
|
1743
|
+
`\\.(${this.options.extensions.map((e) => e.slice(1)).join("|")})$`
|
|
1744
|
+
);
|
|
1745
|
+
compiler.options.module = compiler.options.module || {};
|
|
1746
|
+
compiler.options.module.rules = compiler.options.module.rules || [];
|
|
1747
|
+
compiler.options.module.rules.unshift({
|
|
1748
|
+
test: extensionsRegex,
|
|
1749
|
+
enforce: "pre",
|
|
1750
|
+
use: [{
|
|
1751
|
+
loader: loaderPath,
|
|
1752
|
+
options: {
|
|
1753
|
+
plugin: this,
|
|
1754
|
+
include: this.options.include,
|
|
1755
|
+
exclude: this.options.exclude
|
|
1756
|
+
}
|
|
1757
|
+
}]
|
|
1758
|
+
});
|
|
1759
|
+
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
|
|
1760
|
+
compilation.hooks.processAssets.tap(
|
|
1761
|
+
{
|
|
1762
|
+
name: PLUGIN_NAME,
|
|
1763
|
+
stage: compilation.constructor.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE
|
|
1764
|
+
},
|
|
1765
|
+
(assets) => {
|
|
1766
|
+
const startTime = performance.now();
|
|
1767
|
+
const css = this.generateCSS();
|
|
1768
|
+
const duration = performance.now() - startTime;
|
|
1769
|
+
for (const [filename, asset] of Object.entries(assets)) {
|
|
1770
|
+
if (!filename.endsWith(".css") && !filename.endsWith(".js")) {
|
|
1771
|
+
continue;
|
|
1772
|
+
}
|
|
1773
|
+
let source = asset.source().toString();
|
|
1774
|
+
let replaced = false;
|
|
1775
|
+
source = source.replace(LAYER_PLACEHOLDER_RE, () => {
|
|
1776
|
+
replaced = true;
|
|
1777
|
+
return css;
|
|
1778
|
+
});
|
|
1779
|
+
if (source.includes("#--martyrs--")) {
|
|
1780
|
+
source = source.replace(
|
|
1781
|
+
/#--martyrs--[^}]*\{[^}]*layer[^}]*:[^}]*__ALL__[^}]*;?\s*\}/g,
|
|
1782
|
+
css.replace(/\\/g, "\\\\").replace(/"/g, '\\"')
|
|
1783
|
+
);
|
|
1784
|
+
replaced = true;
|
|
1785
|
+
}
|
|
1786
|
+
if (replaced) {
|
|
1787
|
+
const { RawSource } = compiler.webpack.sources;
|
|
1788
|
+
compilation.updateAsset(filename, new RawSource(source));
|
|
1789
|
+
console.log(`[MartyrsJIT] ${this.tokens.size} tokens in ${duration.toFixed(2)}ms`);
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
);
|
|
1794
|
+
});
|
|
1795
|
+
compiler.hooks.watchRun.tap(PLUGIN_NAME, (compiler2) => {
|
|
1796
|
+
if (compiler2.removedFiles) {
|
|
1797
|
+
for (const file of compiler2.removedFiles) {
|
|
1798
|
+
this.tokensByFile.delete(file);
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
this.jit.reset();
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* Извлекает токены из файла (вызывается из loader)
|
|
1806
|
+
*/
|
|
1807
|
+
extractFromFile(content, filename) {
|
|
1808
|
+
const isIncluded = this.options.include.some(
|
|
1809
|
+
(dir2) => filename.includes(`/${dir2}/`) || filename.includes(`\\${dir2}\\`) || filename.includes(dir2)
|
|
1810
|
+
);
|
|
1811
|
+
const isExcluded = this.options.exclude.some(
|
|
1812
|
+
(dir2) => filename.includes(dir2)
|
|
1813
|
+
);
|
|
1814
|
+
if (!isIncluded || isExcluded) {
|
|
1815
|
+
return;
|
|
1816
|
+
}
|
|
1817
|
+
const fileTokens = extractTokens(content, filename);
|
|
1818
|
+
this.tokensByFile.set(filename, new Set(fileTokens));
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Собирает все токены из всех файлов (дедупликация через Set)
|
|
1822
|
+
*/
|
|
1823
|
+
get tokens() {
|
|
1824
|
+
const allTokens = /* @__PURE__ */ new Set();
|
|
1825
|
+
for (const tokens of this.tokensByFile.values()) {
|
|
1826
|
+
for (const t of tokens) allTokens.add(t);
|
|
1827
|
+
}
|
|
1828
|
+
return allTokens;
|
|
1829
|
+
}
|
|
1830
|
+
/**
|
|
1831
|
+
* Генерирует CSS
|
|
1832
|
+
*/
|
|
1833
|
+
generateCSS() {
|
|
1834
|
+
const tokens = Array.from(this.tokens);
|
|
1835
|
+
const css = this.jit.generate(tokens);
|
|
1836
|
+
return `/* Martyrs JIT - ${tokens.length} tokens */
|
|
1837
|
+
@layer base, components, utilities;
|
|
1838
|
+
@layer utilities {
|
|
1839
|
+
${css}
|
|
1840
|
+
}`;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
685
1843
|
const baseConfig = (projectRoot) => {
|
|
686
1844
|
return {
|
|
687
1845
|
context: projectRoot,
|
|
@@ -786,6 +1944,12 @@ const baseConfig = (projectRoot) => {
|
|
|
786
1944
|
},
|
|
787
1945
|
plugins: [
|
|
788
1946
|
...process.env.BUNDLE_ANALYZER ? [new RsdoctorRspackPlugin(), new BundleAnalyzerPlugin()] : [],
|
|
1947
|
+
// Martyrs JIT CSS Engine
|
|
1948
|
+
new MartyrsJitPlugin({
|
|
1949
|
+
include: ["src", "martyrs"],
|
|
1950
|
+
extensions: [".vue", ".js", ".jsx", ".ts", ".tsx"],
|
|
1951
|
+
verbose: process.env.NODE_ENV !== "production"
|
|
1952
|
+
}),
|
|
789
1953
|
new VueLoaderPlugin(),
|
|
790
1954
|
// Используем CssExtractRspackPlugin в обоих режимах
|
|
791
1955
|
new rspack$2.CssExtractRspackPlugin({
|
|
@@ -869,41 +2033,15 @@ const clientConfig = (projectRoot) => {
|
|
|
869
2033
|
all: false,
|
|
870
2034
|
assets: true,
|
|
871
2035
|
chunks: true,
|
|
872
|
-
modules:
|
|
2036
|
+
modules: false,
|
|
2037
|
+
// не нужен - используем assetsByChunkName
|
|
873
2038
|
entrypoints: true,
|
|
874
|
-
chunkModules:
|
|
875
|
-
|
|
2039
|
+
chunkModules: false,
|
|
2040
|
+
// экономит ~20MB
|
|
2041
|
+
assetsByChunkName: true,
|
|
2042
|
+
publicPath: true
|
|
876
2043
|
}
|
|
877
2044
|
}),
|
|
878
|
-
new PurgeCSSPlugin({
|
|
879
|
-
paths: glob.sync([
|
|
880
|
-
path.join(projectRoot, "src/**/*.vue"),
|
|
881
|
-
path.join(projectRoot, "src/**/*.js"),
|
|
882
|
-
path.join(projectRoot, "martyrs/src/**/*.vue"),
|
|
883
|
-
path.join(projectRoot, "martyrs/src/**/*.js"),
|
|
884
|
-
path.join(projectRoot, "/node_modules/@ozdao/martyrs/**/*.css"),
|
|
885
|
-
path.join(projectRoot, "/node_modules/@ozdao/martyrs/**/*.scss"),
|
|
886
|
-
path.join(projectRoot, "/node_modules/@ozdao/martyrs/src/**/*.vue"),
|
|
887
|
-
path.join(projectRoot, "/node_modules/@ozdao/martyrs/src/**/*.js"),
|
|
888
|
-
path.join(projectRoot, "/node_modules/@vuepic/vue-datepicker/**/*.js")
|
|
889
|
-
]),
|
|
890
|
-
safelist: {
|
|
891
|
-
standard: ["safelisted", /^html/, /^:root/],
|
|
892
|
-
deep: [/^safelisted-deep-/, /^html/, /^:root/],
|
|
893
|
-
greedy: [/^data-v-/, /\[data-v-.*\]/, /\[data-v-[a-zA-Z0-9]*\]/]
|
|
894
|
-
},
|
|
895
|
-
rejected: true,
|
|
896
|
-
extractors: [
|
|
897
|
-
{
|
|
898
|
-
extractor: (content) => {
|
|
899
|
-
const normalClasses = content.match(/[A-Za-z0-9-_:/]+/g) || [];
|
|
900
|
-
const scopedAttrs = content.match(/\[data-v-[a-zA-Z0-9]*\]/g) || [];
|
|
901
|
-
return [...normalClasses, ...scopedAttrs];
|
|
902
|
-
},
|
|
903
|
-
extensions: ["vue", "js", "css", "scss"]
|
|
904
|
-
}
|
|
905
|
-
]
|
|
906
|
-
}),
|
|
907
2045
|
// PWA PWA PWA PWA PWA
|
|
908
2046
|
// Simple RspackManifestPlugin configuration
|
|
909
2047
|
new RspackManifestPlugin({
|
|
@@ -1022,12 +2160,23 @@ const clientConfig = (projectRoot) => {
|
|
|
1022
2160
|
]
|
|
1023
2161
|
},
|
|
1024
2162
|
stats: {
|
|
2163
|
+
preset: "normal",
|
|
1025
2164
|
assets: true,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
2165
|
+
assetsSpace: 15,
|
|
2166
|
+
chunks: false,
|
|
2167
|
+
chunkModules: false,
|
|
2168
|
+
modules: false,
|
|
2169
|
+
children: false,
|
|
1029
2170
|
entrypoints: true,
|
|
1030
|
-
|
|
2171
|
+
timings: true,
|
|
2172
|
+
colors: true,
|
|
2173
|
+
version: true,
|
|
2174
|
+
hash: false,
|
|
2175
|
+
groupAssetsByChunk: false,
|
|
2176
|
+
groupAssetsByEmitStatus: false,
|
|
2177
|
+
groupAssetsByInfo: false,
|
|
2178
|
+
groupAssetsByPath: true,
|
|
2179
|
+
groupModulesByPath: false
|
|
1031
2180
|
}
|
|
1032
2181
|
};
|
|
1033
2182
|
return merge(baseConfig(projectRoot), config);
|