@fullstackunicorn/create-root 1.0.17 → 1.0.18
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/assets/root.fullstackunicorn.dev/.gitlab-ci.yml +42 -0
- package/assets/root.fullstackunicorn.dev/assets/.env +6 -0
- package/assets/root.fullstackunicorn.dev/assets/config.cmd.sh +86 -0
- package/assets/root.fullstackunicorn.dev/assets/index.cmd.js +30 -0
- package/assets/root.fullstackunicorn.dev/assets/index.def.js +190 -0
- package/assets/root.fullstackunicorn.dev/assets/index.dep.js +20 -0
- package/assets/root.fullstackunicorn.dev/assets/index.init.js +8 -0
- package/assets/root.fullstackunicorn.dev/assets/index.js +4 -0
- package/assets/root.fullstackunicorn.dev/assets/modules/sync.auth.js +3 -0
- package/assets/root.fullstackunicorn.dev/assets/modules/sync.js +430 -0
- package/assets/root.fullstackunicorn.dev/assets/modules/sync.local.js +117 -0
- package/assets/root.fullstackunicorn.dev/assets/modules/sync.tools.js +102 -0
- package/assets/root.fullstackunicorn.dev/assets/package.json +32 -0
- package/assets/root.fullstackunicorn.dev/assets/package.md +13 -0
- package/assets/root.fullstackunicorn.dev/assets/webapp.runner.js +63 -0
- package/assets/root.fullstackunicorn.dev/backend/.env +13 -0
- package/assets/root.fullstackunicorn.dev/backend/config.cmd.sh +79 -0
- package/assets/root.fullstackunicorn.dev/backend/dockerfile +12 -0
- package/assets/root.fullstackunicorn.dev/backend/index.def.js +15 -0
- package/assets/root.fullstackunicorn.dev/backend/index.dep.js +19 -0
- package/assets/root.fullstackunicorn.dev/backend/index.init.js +25 -0
- package/assets/root.fullstackunicorn.dev/backend/index.js +15 -0
- package/assets/root.fullstackunicorn.dev/backend/modules/cookies.js +64 -0
- package/assets/root.fullstackunicorn.dev/backend/modules/loader.js +103 -0
- package/assets/root.fullstackunicorn.dev/backend/modules/loader.tools.js +22 -0
- package/assets/root.fullstackunicorn.dev/backend/modules/stripe.js +299 -0
- package/assets/root.fullstackunicorn.dev/backend/modules/stripe.session.js +1 -0
- package/assets/root.fullstackunicorn.dev/backend/modules/stripe.tools.js +126 -0
- package/assets/root.fullstackunicorn.dev/backend/package.json +35 -0
- package/assets/root.fullstackunicorn.dev/backend/server/errors.js +29 -0
- package/assets/root.fullstackunicorn.dev/backend/server/errors.list.js +69 -0
- package/assets/root.fullstackunicorn.dev/backend/server/middleware.auth.js +4 -0
- package/assets/root.fullstackunicorn.dev/backend/server/middleware.js +29 -0
- package/assets/root.fullstackunicorn.dev/backend/server/middleware.prod.js +18 -0
- package/assets/root.fullstackunicorn.dev/backend/server/resolvers.js +21 -0
- package/assets/root.fullstackunicorn.dev/backend/server/router.js +60 -0
- package/assets/root.fullstackunicorn.dev/config.cmd.sh +178 -0
- package/assets/root.fullstackunicorn.dev/config.code-workspace +7 -0
- package/assets/root.fullstackunicorn.dev/config.reduce.js +84 -0
- package/assets/root.fullstackunicorn.dev/frontend/.env +3 -0
- package/assets/root.fullstackunicorn.dev/frontend/App.js +23 -0
- package/assets/root.fullstackunicorn.dev/frontend/App.sw.js +12 -0
- package/assets/root.fullstackunicorn.dev/frontend/App.tracking.js +13 -0
- package/assets/root.fullstackunicorn.dev/frontend/App.uri.js +63 -0
- package/assets/root.fullstackunicorn.dev/frontend/abstracts/abs.js +148 -0
- package/assets/root.fullstackunicorn.dev/frontend/abstracts/dateTime.js +120 -0
- package/assets/root.fullstackunicorn.dev/frontend/abstracts/err.js +31 -0
- package/assets/root.fullstackunicorn.dev/frontend/abstracts/img.js +38 -0
- package/assets/root.fullstackunicorn.dev/frontend/assets/index.webmanifest +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/assets/llms.dev.txt +2 -0
- package/assets/root.fullstackunicorn.dev/frontend/assets/llms.txt +8 -0
- package/assets/root.fullstackunicorn.dev/frontend/assets/robots.dev.txt +2 -0
- package/assets/root.fullstackunicorn.dev/frontend/assets/robots.txt +4 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/account/@use.js +95 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/account/AccountCard.js +37 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/account/AccountLogo.js +27 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/account/AccountLogo.pod.js +34 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/alerts/@use.js +7 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/alerts/Alert.js +24 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/alerts/Alert.pod.js +28 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/alerts/Alerts.js +35 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/callout/Callout.js +16 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/callout/Callout.pod.js +25 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/checkout/@tools.js +41 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/checkout/@use.js +34 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/checkout/CheckoutCard.js +29 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/checkout/CheckoutCard.pod.js +25 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/cookies/@tools.js +67 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/cookies/@use.js +218 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/cookies/CookiesCard.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/errors/@use.js +7 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/errors/Errors.js +14 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/language/@tools.js +45 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/language/@use.js +144 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/language/LanguageButton.js +18 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/language/LanguageCard.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/@use.js +91 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/Footer.js +5 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/Footer.pod.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/Header.js +22 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/Header.pod.js +37 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/Layout.js +41 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/Layout.pod.js +30 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/menus/@use.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/menus/MenuTwo.js +41 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/menus/MenuTwo.pod.js +38 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/sideTwo/@use.js +48 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/sideTwo/IconTwo.js +30 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/sideTwo/IconTwo.pod.js +22 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/sideTwo/SidebarTwo.js +46 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/layout/sideTwo/SidebarTwo.pod.js +29 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/legals/LegalCard.js +17 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/legals/LegalsCard.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/loader/@tools.js +111 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/loader/@use.js +35 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/loader/Loader.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/loader/Normalizer.js +58 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/loader/Starter.js +17 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/lookups/@use.js +85 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/modals/@use.js +67 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/modals/Modal.js +42 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/modals/Modal.pod.js +43 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/modals/ModalPopup.pod.js +41 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/modals/Modals.js +12 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/router/@tools.js +26 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/router/@use.js +212 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/router/Router.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/statics/@use.js +46 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/theme/@use.js +28 -0
- package/assets/root.fullstackunicorn.dev/frontend/base/theme/ThemeCard.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/client/@api.js +15 -0
- package/assets/root.fullstackunicorn.dev/frontend/client/auth.js +213 -0
- package/assets/root.fullstackunicorn.dev/frontend/client/cookies.js +41 -0
- package/assets/root.fullstackunicorn.dev/frontend/client/fonts.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/client/load.js +26 -0
- package/assets/root.fullstackunicorn.dev/frontend/client/statics.js +47 -0
- package/assets/root.fullstackunicorn.dev/frontend/client/stripe.js +38 -0
- package/assets/root.fullstackunicorn.dev/frontend/config.cmd.sh +94 -0
- package/assets/root.fullstackunicorn.dev/frontend/config.cmd.vite.js +205 -0
- package/assets/root.fullstackunicorn.dev/frontend/config.meta.js +0 -0
- package/assets/root.fullstackunicorn.dev/frontend/config.style.js +86 -0
- package/assets/root.fullstackunicorn.dev/frontend/configure/cache.json +4 -0
- package/assets/root.fullstackunicorn.dev/frontend/configure/env.json +8 -0
- package/assets/root.fullstackunicorn.dev/frontend/configure/env.prod.json +8 -0
- package/assets/root.fullstackunicorn.dev/frontend/configure/layout.json +9 -0
- package/assets/root.fullstackunicorn.dev/frontend/configure/logo.json +4 -0
- package/assets/root.fullstackunicorn.dev/frontend/configure/services.json +10 -0
- package/assets/root.fullstackunicorn.dev/frontend/configure/trademark.json +9 -0
- package/assets/root.fullstackunicorn.dev/frontend/eslint.config.js +41 -0
- package/assets/root.fullstackunicorn.dev/frontend/features/legal/Legal.js +15 -0
- package/assets/root.fullstackunicorn.dev/frontend/features/legal/Legal.pod.js +11 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/animated/Button.js +66 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/animated/Crossfader.js +32 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/animated/Fader.js +46 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/animated/HoverCard.js +31 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/animated/Layout.js +68 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/animated/Layout.use.js +33 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/animated/Layout.vars.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/animated/Root.js +26 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/cache.js +81 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/client.js +248 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Backdrop.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Background.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Background.pod.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Href.js +22 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Iframe.js +13 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Img.js +88 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Img.pod.js +69 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/InputFile.js +26 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/InputTextItem.js +23 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/InputTextarea.js +39 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/InputTextline.js +23 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Json.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Link.js +105 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/List.js +18 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Main.js +7 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Pressable.js +14 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Scrollable.js +27 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Svg.js +23 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Svg.pod.js +24 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/Text.js +118 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/core/View.js +13 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/fonts/tools.js +72 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/fonts/use.js +52 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/head/Head.js +39 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/npm.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/router.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/scroll/@use.js +85 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/scroll/scroll.js +33 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/service.js +27 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/storage.js +48 -0
- package/assets/root.fullstackunicorn.dev/frontend/imports/use.js +62 -0
- package/assets/root.fullstackunicorn.dev/frontend/index.html +36 -0
- package/assets/root.fullstackunicorn.dev/frontend/jsconfig.json +18 -0
- package/assets/root.fullstackunicorn.dev/frontend/menus/@use.js +15 -0
- package/assets/root.fullstackunicorn.dev/frontend/menus/Main.js +33 -0
- package/assets/root.fullstackunicorn.dev/frontend/menus/Main.use.js +22 -0
- package/assets/root.fullstackunicorn.dev/frontend/modals/countries/countries.js +39 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/buttons/IconTextButton.js +17 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/buttons/IconTextButton.pod.js +24 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/buttons/TextButton.js +47 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/buttons/TextButton.pod.js +94 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Back.js +26 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Back.pod.js +37 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Bulleted.js +37 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Icon.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Icon.pod.js +28 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Img.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Img.pod.js +26 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Link.js +35 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Link.pod.js +28 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Slider.js +1 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/core/Slider.pod.js +30 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/page/PageBox.js +15 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/trademarks/@use.js +25 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/trademarks/Logo.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/trademarks/Logo.pod.js +17 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/trademarks/Trademark.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/modules/trademarks/Trademark.pod.js +17 -0
- package/assets/root.fullstackunicorn.dev/frontend/package.json +58 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/@use.js +50 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/app/Checkout.js +10 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/app/Home.abs.js +11 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/app/Home.api.js +18 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/app/Home.js +23 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/root/Callout.api.js +31 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/root/Callout.js +13 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/root/Legal.api.js +35 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/root/Legal.js +15 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/root/Legals.api.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/root/Legals.js +29 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/root/User.api.js +18 -0
- package/assets/root.fullstackunicorn.dev/frontend/pages/root/User.js +25 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/card/book/BookCard.js +58 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/card/book/BookCard.pod.js +37 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/card/book/BookProse.js +22 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/cards/Account.js +26 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/cards/Account.pod.js +48 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/cards/Launcher.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/cards/Launcher.pod.js +38 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/cards/Linker.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/cards/Linker.pod.js +38 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/cards/Slider.js +22 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/cards/Slider.pod.js +39 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/error/ErrorPage.js +12 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/error/ErrorPage.pod.js +23 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/grid/book/Grid.js +115 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/grid/book/Grid.pod.js +65 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/grid/book/Item.js +3 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/grid/book/Item.pod.js +50 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/layout/Bottom.js +12 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/layout/Bottom.pod.js +40 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/layout/PageTitle.js +3 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/layout/PageTitle.pod.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/page/PageScrollable.js +13 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/page/PageScrollable.pod.js +85 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/prose/@formatter.js +113 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/prose/@use.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/prose/Basic.js +30 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/prose/Basic.pod.js +16 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/prose/Prose.js +84 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/prose/Prose.pod.js +58 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/actions/Actions.js +45 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/actions/Actions.pod.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/actions/SelectPicked.js +21 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/actions/SelectPicked.pod.js +35 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/popup/PopupModal.js +54 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/select/SelectItem.js +20 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/select/SelectItem.pod.js +33 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/select/SelectModal.js +52 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/select/SelectPage.js +33 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/selectors/select/SelectPage.pod.js +18 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/shopper/bookstore/Buy.js +19 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/shopper/bookstore/Buy.pod.js +17 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/shopper/bookstore/Shopper.js +39 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/shopper/bookstore/Shopper.pod.js +187 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/slider/Slider.js +138 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/slider/Slider.pod.js +102 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/sliders/actions/Actions.js +12 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/sliders/actions/Actions.pod.js +22 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/sliders/slider/SliderItem.js +30 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/sliders/slider/SliderItem.pod.js +39 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/sliders/slider/SliderModal.js +39 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/sliders/slider/SliderPage.js +37 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/sliders/slider/SliderPage.pod.js +24 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/wrapper/fixed/Wrapper.js +25 -0
- package/assets/root.fullstackunicorn.dev/frontend/panels/wrapper/fixed/Wrapper.pod.js +23 -0
- package/assets/root.fullstackunicorn.dev/frontend/preloader/@use.js +14 -0
- package/assets/root.fullstackunicorn.dev/frontend/preloader/Preloader.js +46 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/constants.js +4 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/constants.root.js +15 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/constants.scope.js +5 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/errors.js +4 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/errors.root.js +6 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/errors.scope.js +6 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/menus.js +9 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/menus.root.js +6 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/menus.scope.js +6 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/modals.js +4 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/modals.root.js +11 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/modals.scope.js +5 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/pages.js +4 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/pages.root.js +12 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/pages.scope.js +11 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/preload.js +18 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/preload.root.js +30 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/preload.scope.js +33 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/routes.js +7 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/routes.root.js +47 -0
- package/assets/root.fullstackunicorn.dev/frontend/root/routes.scope.js +31 -0
- package/assets/root.fullstackunicorn.dev/frontend/sworker/sw.js +104 -0
- package/assets/root.fullstackunicorn.dev/frontend/templates/cards.js +25 -0
- package/assets/root.fullstackunicorn.dev/frontend/templates/index.js +11 -0
- package/assets/root.fullstackunicorn.dev/frontend/templates/page.js +16 -0
- package/assets/root.fullstackunicorn.dev/frontend/templates/root.js +32 -0
- package/assets/root.fullstackunicorn.dev/frontend/tracking/errors.js +5 -0
- package/assets/root.fullstackunicorn.dev/frontend/tracking/logging.js +5 -0
- package/assets/root.fullstackunicorn.dev/frontend/tracking/performance.js +5 -0
- package/assets/root.fullstackunicorn.dev/frontend/tracking/vitals.js +5 -0
- package/assets/root.fullstackunicorn.dev/frontend/vite.config.js +64 -0
- package/assets/root.fullstackunicorn.dev/frontend/vite.jsx.js +10 -0
- package/assets/root.fullstackunicorn.dev/frontend/vite.sworker.js +56 -0
- package/assets/root.fullstackunicorn.dev/frontend/vite.volume.js +94 -0
- package/assets/root.fullstackunicorn.dev/manager/.env +10 -0
- package/assets/root.fullstackunicorn.dev/manager/config.cmd.sh +81 -0
- package/assets/root.fullstackunicorn.dev/manager/dockerfile +12 -0
- package/assets/root.fullstackunicorn.dev/manager/index.def.js +17 -0
- package/assets/root.fullstackunicorn.dev/manager/index.dep.js +17 -0
- package/assets/root.fullstackunicorn.dev/manager/index.init.js +38 -0
- package/assets/root.fullstackunicorn.dev/manager/index.js +17 -0
- package/assets/root.fullstackunicorn.dev/manager/modules/clone.js +65 -0
- package/assets/root.fullstackunicorn.dev/manager/modules/sync.server.js +65 -0
- package/assets/root.fullstackunicorn.dev/manager/modules/sync.tools.js +55 -0
- package/assets/root.fullstackunicorn.dev/manager/modules/workspace.js +77 -0
- package/assets/root.fullstackunicorn.dev/manager/modules/workspace.tools.js +49 -0
- package/assets/root.fullstackunicorn.dev/manager/package.json +36 -0
- package/assets/root.fullstackunicorn.dev/manager/server/errors.js +30 -0
- package/assets/root.fullstackunicorn.dev/manager/server/errors.list.js +24 -0
- package/assets/root.fullstackunicorn.dev/manager/server/middleware.auth.js +4 -0
- package/assets/root.fullstackunicorn.dev/manager/server/middleware.js +29 -0
- package/assets/root.fullstackunicorn.dev/manager/server/middleware.prod.js +18 -0
- package/assets/root.fullstackunicorn.dev/manager/server/resolvers.js +21 -0
- package/assets/root.fullstackunicorn.dev/manager/server/router.js +58 -0
- package/assets/root.fullstackunicorn.dev/package.json +16 -0
- package/assets/root.fullstackunicorn.dev/package.md +26 -0
- package/assets/root.fullstackunicorn.dev/root.config.app.js +85 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { uri } from '#@/App.uri.js'
|
|
2
|
+
import { client } from '#@/imports/client.js'
|
|
3
|
+
|
|
4
|
+
class Stripe {
|
|
5
|
+
|
|
6
|
+
set = async ({ product, seller }) => {
|
|
7
|
+
|
|
8
|
+
const endpoint = uri.stripe.set
|
|
9
|
+
const data = { product, seller }
|
|
10
|
+
const config = { headers: { 'Content-Type': 'application/json' } }
|
|
11
|
+
|
|
12
|
+
const response = await client.post(endpoint, data, config)
|
|
13
|
+
|
|
14
|
+
if (response?.isOffline) return response
|
|
15
|
+
if (response?.isError) return response
|
|
16
|
+
if (!response?.url) return { isError: true }
|
|
17
|
+
|
|
18
|
+
return response
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get = async ({ session_id }) => {
|
|
22
|
+
|
|
23
|
+
const endpoint = uri.stripe.get
|
|
24
|
+
const data = { session_id }
|
|
25
|
+
const config = { headers: { 'Content-Type': 'application/json' } }
|
|
26
|
+
|
|
27
|
+
const response = await client.post(endpoint, data, config)
|
|
28
|
+
|
|
29
|
+
if (response?.isOffline) return response
|
|
30
|
+
if (response?.isError) return response
|
|
31
|
+
if (!response?.id) return { isError: true }
|
|
32
|
+
|
|
33
|
+
return response
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const stripe = new Stripe()
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
# ============================================================
|
|
4
|
+
add() {
|
|
5
|
+
echo "🚀 [frontend] Adding Dependencies"
|
|
6
|
+
|
|
7
|
+
yarn add @fullstackunicorn/initialize --latest
|
|
8
|
+
|
|
9
|
+
# yarn add @fullstackunicorn/auth --latest
|
|
10
|
+
|
|
11
|
+
yarn add axios --latest
|
|
12
|
+
yarn add blurhash --latest
|
|
13
|
+
yarn add idb-keyval --latest
|
|
14
|
+
yarn add jotai --latest
|
|
15
|
+
yarn add jwt-decode --latest
|
|
16
|
+
yarn add jwt-encode --latest
|
|
17
|
+
yarn add object-hash --latest
|
|
18
|
+
yarn add process --latest
|
|
19
|
+
yarn add qs --latest
|
|
20
|
+
yarn add react-blurhash --latest
|
|
21
|
+
yarn add react-helmet-async --latest
|
|
22
|
+
yarn add react-router-dom --latest
|
|
23
|
+
yarn add react-syntax-highlighter --latest
|
|
24
|
+
yarn add sass --latest
|
|
25
|
+
yarn add shiki --latest
|
|
26
|
+
yarn add uuid --latest
|
|
27
|
+
|
|
28
|
+
echo "🚀 [frontend] Adding Dev Dependencies"
|
|
29
|
+
|
|
30
|
+
yarn add -D @fullstackunicorn/reduce --latest
|
|
31
|
+
yarn add -D @fullstackunicorn/style --latest
|
|
32
|
+
yarn add -D env-cmd --latest
|
|
33
|
+
yarn add -D eslint-plugin-react --latest
|
|
34
|
+
|
|
35
|
+
echo "✅ [frontend] Dependencies added!"
|
|
36
|
+
}
|
|
37
|
+
# ============================================================
|
|
38
|
+
upgrade() {
|
|
39
|
+
|
|
40
|
+
echo "🚀 [frontend] Upgrading Dependencies"
|
|
41
|
+
|
|
42
|
+
yarn upgrade @fullstackunicorn/auth --latest
|
|
43
|
+
yarn upgrade @fullstackunicorn/initialize --latest
|
|
44
|
+
yarn upgrade @fullstackunicorn/reduce --latest
|
|
45
|
+
yarn upgrade @fullstackunicorn/style --latest
|
|
46
|
+
|
|
47
|
+
echo "✅ [frontend] Upgaded!"
|
|
48
|
+
}
|
|
49
|
+
# ============================================================
|
|
50
|
+
remove() {
|
|
51
|
+
|
|
52
|
+
echo "🧹 [frontend] Removing Dependencies"
|
|
53
|
+
|
|
54
|
+
node --input-type=module -e "
|
|
55
|
+
import fs from 'fs'
|
|
56
|
+
const filePath = './package.json'
|
|
57
|
+
const json = JSON.parse(fs.readFileSync(filePath, 'utf8'))
|
|
58
|
+
json.dependencies = {}
|
|
59
|
+
json.devDependencies = {}
|
|
60
|
+
fs.writeFileSync(filePath, JSON.stringify(json, null, 4))
|
|
61
|
+
"
|
|
62
|
+
|
|
63
|
+
echo "✅ [frontend] Dependeincies Removed!"
|
|
64
|
+
}
|
|
65
|
+
# ============================================================
|
|
66
|
+
initialize() {
|
|
67
|
+
|
|
68
|
+
echo "🚀 [frontend] Initialize"
|
|
69
|
+
|
|
70
|
+
remove
|
|
71
|
+
node ./config.cmd.vite.js
|
|
72
|
+
yarn
|
|
73
|
+
add
|
|
74
|
+
yarn style
|
|
75
|
+
|
|
76
|
+
echo "✅ [frontend] Initialized!"
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
# ============================================================
|
|
80
|
+
info() {
|
|
81
|
+
echo "❌ Unknown command: $1"
|
|
82
|
+
echo "Available commands:"
|
|
83
|
+
declare -F | awk '{print " " $3}' | grep -v "^info$"
|
|
84
|
+
exit 1
|
|
85
|
+
}
|
|
86
|
+
# ============================================================
|
|
87
|
+
cmd="${1:-}"
|
|
88
|
+
shift || true
|
|
89
|
+
if declare -F "$cmd" >/dev/null && [[ "$cmd" != "info" ]]; then
|
|
90
|
+
"$cmd" "$@"
|
|
91
|
+
else
|
|
92
|
+
info "$cmd"
|
|
93
|
+
fi
|
|
94
|
+
# ============================================================
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import fs from 'node:fs'
|
|
2
|
+
import fsp from 'node:fs/promises'
|
|
3
|
+
import path from 'node:path'
|
|
4
|
+
import { execSync } from 'node:child_process'
|
|
5
|
+
import { randomUUID } from 'node:crypto'
|
|
6
|
+
|
|
7
|
+
class Vite {
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
|
|
11
|
+
this.cwd = process.cwd()
|
|
12
|
+
this.day = new Date().toISOString().slice(0, 10)
|
|
13
|
+
|
|
14
|
+
this.command = `VITE_USE_ROLLDOWN=false npx --yes create-vite@latest . --template react --no-interactive --no-install`
|
|
15
|
+
|
|
16
|
+
this.paths = {}
|
|
17
|
+
this.paths.stable = `${this.cwd}/workspace/vite/stable`
|
|
18
|
+
this.paths.current = `${this.cwd}/workspace/vite/current/${this.day}`
|
|
19
|
+
|
|
20
|
+
this.viteFiles = [
|
|
21
|
+
'.gitignore',
|
|
22
|
+
'eslint.config.js',
|
|
23
|
+
'index.html',
|
|
24
|
+
'README.md',
|
|
25
|
+
'vite.config.js'
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
this.notes = []
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
isObj = value => typeof value === 'object' && value !== null && !Array.isArray(value)
|
|
32
|
+
|
|
33
|
+
isGoodObj = value => this.isObj(value) && Object.keys(value).length > 0
|
|
34
|
+
|
|
35
|
+
safeObj = value => this.isObj(value) ? value : {}
|
|
36
|
+
|
|
37
|
+
ensureDir = async dirPath => {
|
|
38
|
+
await fsp.mkdir(dirPath, { recursive: true })
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
safeRemove = async targetPath => {
|
|
42
|
+
if (!targetPath) return
|
|
43
|
+
await fsp.rm(targetPath, { recursive: true, force: true })
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
exists = filePath => fs.existsSync(filePath)
|
|
47
|
+
|
|
48
|
+
readText = filePath => fs.readFileSync(filePath, 'utf8')
|
|
49
|
+
|
|
50
|
+
readJSON = async filePath => {
|
|
51
|
+
try {
|
|
52
|
+
if (!this.exists(filePath)) return {}
|
|
53
|
+
const raw = await fsp.readFile(filePath, 'utf8')
|
|
54
|
+
return JSON.parse(raw)
|
|
55
|
+
} catch {
|
|
56
|
+
return {}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
writeJSON = async (filePath, json) => {
|
|
61
|
+
const dirPath = path.dirname(filePath)
|
|
62
|
+
await this.ensureDir(dirPath)
|
|
63
|
+
await fsp.writeFile(filePath, JSON.stringify(json, null, 4))
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
create = async () => {
|
|
67
|
+
|
|
68
|
+
const tempId = randomUUID()
|
|
69
|
+
const cwd = `${this.paths.current}/${tempId}`
|
|
70
|
+
let vitePath = cwd
|
|
71
|
+
|
|
72
|
+
await this.ensureDir(cwd)
|
|
73
|
+
|
|
74
|
+
try {
|
|
75
|
+
execSync(this.command, { cwd, stdio: 'inherit' })
|
|
76
|
+
} catch (error) {
|
|
77
|
+
await this.safeRemove(cwd)
|
|
78
|
+
vitePath = this.paths.stable
|
|
79
|
+
this.notes.push('using-cached-vite-app')
|
|
80
|
+
await this.notifyRollback(error)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const filesNotes = await this.compareFiles(vitePath, this.paths.stable, this.viteFiles)
|
|
84
|
+
if (filesNotes.length) this.notes.push(...filesNotes)
|
|
85
|
+
|
|
86
|
+
const packageNotes = await this.comparePackageJson(
|
|
87
|
+
`${vitePath}/package.json`,
|
|
88
|
+
`${this.paths.stable}/package.json`
|
|
89
|
+
)
|
|
90
|
+
if (packageNotes.length) this.notes.push(...packageNotes)
|
|
91
|
+
|
|
92
|
+
return { vitePath, cleanupPath: cwd }
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
merge = async () => {
|
|
96
|
+
|
|
97
|
+
let cleanup
|
|
98
|
+
|
|
99
|
+
try {
|
|
100
|
+
|
|
101
|
+
const { vitePath, cleanupPath } = await this.create()
|
|
102
|
+
cleanup = cleanupPath
|
|
103
|
+
|
|
104
|
+
const filePath = './package.json'
|
|
105
|
+
const vitePackagePath = `${vitePath}/package.json`
|
|
106
|
+
|
|
107
|
+
const vitePackage = await this.readJSON(vitePackagePath)
|
|
108
|
+
const appPackage = await this.readJSON(filePath)
|
|
109
|
+
|
|
110
|
+
if (!this.isGoodObj(appPackage)) {
|
|
111
|
+
throw new Error(`missing-package-json: ${filePath}`)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (!this.isGoodObj(vitePackage)) {
|
|
115
|
+
throw new Error(`missing-vite-package-json: ${vitePackagePath}`)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
appPackage.dependencies = {
|
|
119
|
+
...this.safeObj(appPackage.dependencies),
|
|
120
|
+
...this.safeObj(vitePackage.dependencies),
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
appPackage.devDependencies = {
|
|
124
|
+
...this.safeObj(appPackage.devDependencies),
|
|
125
|
+
...this.safeObj(vitePackage.devDependencies),
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
await this.writeJSON(filePath, appPackage)
|
|
129
|
+
|
|
130
|
+
return { isValid: true, notes: this.notes }
|
|
131
|
+
|
|
132
|
+
} catch (error) {
|
|
133
|
+
throw error
|
|
134
|
+
} finally {
|
|
135
|
+
await this.safeRemove(cleanup)
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
notifyRollback = async error => {
|
|
140
|
+
// logic to notify minderable team
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
compareFiles = async (newPath, oldPath, names) => {
|
|
144
|
+
|
|
145
|
+
for (const name of names) {
|
|
146
|
+
|
|
147
|
+
const newFilePath = `${newPath}/${name}`
|
|
148
|
+
const oldFilePath = `${oldPath}/${name}`
|
|
149
|
+
|
|
150
|
+
if (!this.exists(newFilePath)) {
|
|
151
|
+
this.notes.push(`${name} file not present in the new version`)
|
|
152
|
+
continue
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (!this.exists(oldFilePath)) {
|
|
156
|
+
this.notes.push(`${name} file not present in the previous version`)
|
|
157
|
+
continue
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const newFile = this.readText(newFilePath)
|
|
161
|
+
const oldFile = this.readText(oldFilePath)
|
|
162
|
+
|
|
163
|
+
if (newFile !== oldFile) {
|
|
164
|
+
this.notes.push(`${name} file is different from the previous version`)
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return this.notes
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
comparePackageJson = async (newPath, oldPath) => {
|
|
172
|
+
|
|
173
|
+
const newPackage = await this.readJSON(newPath)
|
|
174
|
+
const oldPackage = await this.readJSON(oldPath)
|
|
175
|
+
|
|
176
|
+
const fields = ['scripts', 'dependencies', 'devDependencies']
|
|
177
|
+
|
|
178
|
+
fields.forEach(field => {
|
|
179
|
+
|
|
180
|
+
const newData = newPackage[field] || {}
|
|
181
|
+
const oldData = oldPackage[field] || {}
|
|
182
|
+
|
|
183
|
+
const newKeys = Object.keys(newData)
|
|
184
|
+
const oldKeys = Object.keys(oldData)
|
|
185
|
+
|
|
186
|
+
const addedKeys = newKeys.filter(key => !oldKeys.includes(key))
|
|
187
|
+
const removedKeys = oldKeys.filter(key => !newKeys.includes(key))
|
|
188
|
+
const modifiedKeys = newKeys.filter(key => oldKeys.includes(key) && newData[key] !== oldData[key])
|
|
189
|
+
|
|
190
|
+
const hasChanges = addedKeys.length > 0 || removedKeys.length > 0 || modifiedKeys.length > 0
|
|
191
|
+
|
|
192
|
+
if (hasChanges) {
|
|
193
|
+
this.notes.push(`package.json ${field} is different from the previous version`)
|
|
194
|
+
addedKeys.forEach(key => this.notes.push(`+ ADDED "${key}": "${newData[key]}"`))
|
|
195
|
+
removedKeys.forEach(key => this.notes.push(`- REMOVED "${key}": "${oldData[key]}"`))
|
|
196
|
+
modifiedKeys.forEach(key => this.notes.push(`x CHANGED "${key}": new value "${newData[key]}" | old value "${oldData[key]}"`))
|
|
197
|
+
}
|
|
198
|
+
})
|
|
199
|
+
|
|
200
|
+
return this.notes
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const vite = new Vite()
|
|
205
|
+
await vite.merge()
|
|
File without changes
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const setup = {}
|
|
2
|
+
|
|
3
|
+
// PATHS:
|
|
4
|
+
setup.BASE_PATH = './'
|
|
5
|
+
setup.LOGS_PATH = './.devtools'
|
|
6
|
+
|
|
7
|
+
// PLATFORM:
|
|
8
|
+
setup.isWeb = true
|
|
9
|
+
setup.isNative = false
|
|
10
|
+
|
|
11
|
+
// SATURATION: 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 255
|
|
12
|
+
setup.saturation = 128
|
|
13
|
+
|
|
14
|
+
// HUES (ONE channel must be ZERO)
|
|
15
|
+
setup.hues = {}
|
|
16
|
+
setup.hues.C1 = { R: 0, G: 128, B: 256, name: 'blue' }
|
|
17
|
+
setup.hues.C2 = { R: 256, G: 128, B: 0, name: 'orange' }
|
|
18
|
+
setup.hues.C3 = { R: 256, G: 0, B: 128, name: 'pink' }
|
|
19
|
+
|
|
20
|
+
// STATIC HUES (NOT AFFECTED BY SATURATION)
|
|
21
|
+
setup.staticHues = {}
|
|
22
|
+
setup.staticHues.RR = { R: 256, G: 0, B: 0, name: 'error' }
|
|
23
|
+
setup.staticHues.OR = { R: 256, G: 128, B: 0, name: 'warning' }
|
|
24
|
+
|
|
25
|
+
// FONT FAMILY
|
|
26
|
+
setup.fontFamily = {}
|
|
27
|
+
setup.fontFamily.html = `html { font-family: 'sans-serif'; font-weight: 400; };`
|
|
28
|
+
|
|
29
|
+
// SET THE DEFAULTS FONTS FOR EACH PLATFORM
|
|
30
|
+
// SET THE FONTS FOR EACH ALPHABET
|
|
31
|
+
// ANY FONT MENTIONED IN THE ALPHABETH (es. f1, m1) MUST HAVE A DEFAULT (fallback)
|
|
32
|
+
setup.fontFamily.defaults = {}
|
|
33
|
+
setup.fontFamily.defaults.f1 = { ios: 'System', android: 'sans-serif', web: 'sans-serif' }
|
|
34
|
+
setup.fontFamily.defaults.m1 = { ios: 'Courier New', android: 'monospace', web: 'monospace' }
|
|
35
|
+
|
|
36
|
+
// FONTS PER ALPHABETH
|
|
37
|
+
setup.fontFamily.fonts = {}
|
|
38
|
+
setup.fontFamily.fonts.latin = { f1: 'OpenSans', m1: 'Inconsolata' }
|
|
39
|
+
setup.fontFamily.fonts.cyrillic = { f1: 'OpenSans' }
|
|
40
|
+
setup.fontFamily.fonts.greek = { f1: 'OpenSans' }
|
|
41
|
+
setup.fontFamily.fonts.arabic = { f1: 'OpenSans' }
|
|
42
|
+
setup.fontFamily.fonts.chinese = { f1: 'OpenSans' }
|
|
43
|
+
setup.fontFamily.fonts.japanese = { f1: 'OpenSans' }
|
|
44
|
+
|
|
45
|
+
// DEFAULT SASS
|
|
46
|
+
setup.defaultSass = `* {
|
|
47
|
+
padding:0;
|
|
48
|
+
margin:0;
|
|
49
|
+
border:0;
|
|
50
|
+
outline:none;
|
|
51
|
+
background-color:unset;
|
|
52
|
+
text-decoration:none;
|
|
53
|
+
box-sizing:border-box;
|
|
54
|
+
cursor:default;
|
|
55
|
+
// user-select: none;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
html, body, #root {
|
|
59
|
+
overflow:hidden;
|
|
60
|
+
height: 100vh;
|
|
61
|
+
max-height: 100vh;
|
|
62
|
+
min-height: 100vh;
|
|
63
|
+
width: 100vw;
|
|
64
|
+
max-width: 100vw;
|
|
65
|
+
min-width: 100vw;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
body { margin:0; padding:0 }
|
|
69
|
+
|
|
70
|
+
img { overflow-clip-margin:border-box; overflow:clip }
|
|
71
|
+
|
|
72
|
+
a {
|
|
73
|
+
&:link {color:unset; text-decoration: none}
|
|
74
|
+
&:visited {color:unset; text-decoration: none}
|
|
75
|
+
&:link:active {color:unset; text-decoration: none}
|
|
76
|
+
&:visited:active {color:unset; text-decoration: none}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
h1, h2, h3, h4, h5, h6, p, a, span, input, textarea, option, button {
|
|
80
|
+
margin-block-start: 0;
|
|
81
|
+
margin-block-end: 0;
|
|
82
|
+
margin-inline-start: 0;
|
|
83
|
+
margin-inline-end: 0;
|
|
84
|
+
};`
|
|
85
|
+
|
|
86
|
+
export default setup
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"PLATFORM": "web",
|
|
3
|
+
"PROTOCOL_AUTH": "https",
|
|
4
|
+
"CLIENT_ID": "clientxx-xxxx-4xxx-8xxx-xxxxxxxxxxxx",
|
|
5
|
+
"CLIENT_URL_AUTH": "https://auth.minderable.com",
|
|
6
|
+
"CLIENT_URL_ACCOUNT": "https://account.minderable.com",
|
|
7
|
+
"SERVER_URL_AUTH": "https://api.auth.minderable.com"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"PLATFORM": "web",
|
|
3
|
+
"PROTOCOL_AUTH": "https",
|
|
4
|
+
"CLIENT_ID": "clientxx-xxxx-4xxx-8xxx-xxxxxxxxxxxx",
|
|
5
|
+
"CLIENT_URL_AUTH": "https://auth.minderable.com",
|
|
6
|
+
"CLIENT_URL_ACCOUNT": "https://account.minderable.com",
|
|
7
|
+
"SERVER_URL_AUTH": "https://api.auth.minderable.com"
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import react from 'eslint-plugin-react'
|
|
4
|
+
import reactHooks from 'eslint-plugin-react-hooks'
|
|
5
|
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
{ ignores: ['dist'] },
|
|
9
|
+
{
|
|
10
|
+
files: ['**/*.{js,jsx}'],
|
|
11
|
+
languageOptions: {
|
|
12
|
+
ecmaVersion: 2020,
|
|
13
|
+
globals: globals.browser,
|
|
14
|
+
parserOptions: {
|
|
15
|
+
ecmaVersion: 'latest',
|
|
16
|
+
ecmaFeatures: { jsx: true },
|
|
17
|
+
sourceType: 'module',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
settings: { react: { version: '18.3' } },
|
|
21
|
+
plugins: {
|
|
22
|
+
react,
|
|
23
|
+
'react-hooks': reactHooks,
|
|
24
|
+
'react-refresh': reactRefresh,
|
|
25
|
+
},
|
|
26
|
+
rules: {
|
|
27
|
+
...js.configs.recommended.rules,
|
|
28
|
+
...react.configs.recommended.rules,
|
|
29
|
+
...react.configs['jsx-runtime'].rules,
|
|
30
|
+
...reactHooks.configs.recommended.rules,
|
|
31
|
+
|
|
32
|
+
'no-unused-vars': 'off', // 🔥 disables warning
|
|
33
|
+
'react/jsx-no-target-blank': 'off',
|
|
34
|
+
'react/prop-types': 'off',
|
|
35
|
+
'react-refresh/only-export-components': [
|
|
36
|
+
'warn',
|
|
37
|
+
{ allowConstantExport: true },
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Prose } from '#@/panels/prose/Prose.js'
|
|
2
|
+
import { BlockPod } from './Legal.pod.js'
|
|
3
|
+
|
|
4
|
+
export const Legal = ({ api }) => {
|
|
5
|
+
return (
|
|
6
|
+
<>
|
|
7
|
+
<BlockPod><Prose key={'title'} lang={api.obj.title}/></BlockPod>
|
|
8
|
+
<BlockPod><Prose key={'effective'} lang={api.obj.effective}/></BlockPod>
|
|
9
|
+
{api.arr.map((lang, index) => <>
|
|
10
|
+
<BlockPod><Prose key={index} lang={lang}/></BlockPod>
|
|
11
|
+
</>)}
|
|
12
|
+
</>
|
|
13
|
+
|
|
14
|
+
)
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useStyle } from '#@/style/@use.js'
|
|
2
|
+
import { View } from '#@/imports/core/View.js'
|
|
3
|
+
|
|
4
|
+
export const BlockPod = ({ children }) => {
|
|
5
|
+
|
|
6
|
+
const { s, c, f, t, F, B, S, I, H } = useStyle()
|
|
7
|
+
|
|
8
|
+
S.block = [s.row, s.Xc]
|
|
9
|
+
|
|
10
|
+
return <View classes={S.block}>{children}</View>
|
|
11
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useState, useEffect, useRef } from 'react'
|
|
2
|
+
import { useStyle } from '#@/style/@use.js'
|
|
3
|
+
|
|
4
|
+
export const ControlButton = ({ onPress = () => { }, classes = [], children }) => {
|
|
5
|
+
|
|
6
|
+
const { s, c, f, t, F, B, S, I, H } = useStyle()
|
|
7
|
+
|
|
8
|
+
const [isPressed, setIsPressed] = useState(false)
|
|
9
|
+
const timeoutRef = useRef(null)
|
|
10
|
+
|
|
11
|
+
const handlePress = () => {
|
|
12
|
+
|
|
13
|
+
if (isPressed) return
|
|
14
|
+
|
|
15
|
+
setIsPressed(true)
|
|
16
|
+
onPress?.()
|
|
17
|
+
|
|
18
|
+
if (timeoutRef.current) {
|
|
19
|
+
clearTimeout(timeoutRef.current)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
timeoutRef.current = setTimeout(() => {
|
|
23
|
+
setIsPressed(false)
|
|
24
|
+
timeoutRef.current = null
|
|
25
|
+
}, 180)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const containerStyle = {
|
|
29
|
+
transform: isPressed ? 'scale(0.92)' : 'scale(1)',
|
|
30
|
+
opacity: isPressed ? 0.75 : 1,
|
|
31
|
+
transition: 'all 180ms cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
32
|
+
borderRadius: '50%',
|
|
33
|
+
display: 'flex',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
justifyContent: 'center',
|
|
36
|
+
cursor: 'pointer',
|
|
37
|
+
userSelect: 'none',
|
|
38
|
+
touchAction: 'manipulation'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const iconStyle = {
|
|
42
|
+
transform: isPressed ? 'scale(1.08)' : 'scale(1)',
|
|
43
|
+
transition: 'transform 180ms ease-out',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
return () => {
|
|
48
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current)
|
|
49
|
+
}
|
|
50
|
+
}, [])
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<div
|
|
54
|
+
onClick={handlePress}
|
|
55
|
+
onMouseDown={() => setIsPressed(true)}
|
|
56
|
+
onMouseUp={() => setIsPressed(false)}
|
|
57
|
+
onMouseLeave={() => setIsPressed(false)}
|
|
58
|
+
style={containerStyle}
|
|
59
|
+
className={[...classes, s.relative].join(' ')}
|
|
60
|
+
>
|
|
61
|
+
<div className={[...classes, s.relative].join(' ')} style={iconStyle}>
|
|
62
|
+
{children}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useRef, useEffect } from 'react'
|
|
2
|
+
import { useStyle } from '#@/style/@use.js'
|
|
3
|
+
import { useGetIsFrozen } from '#@/base/layout/menus/@use.js'
|
|
4
|
+
|
|
5
|
+
export const Crossfader = ({ isActive, children, transitionMs = 600, instantMount = false }) => {
|
|
6
|
+
|
|
7
|
+
const isFrozen = useGetIsFrozen()
|
|
8
|
+
const isFirstRender = useRef(true)
|
|
9
|
+
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
isFirstRender.current = false
|
|
12
|
+
}, [])
|
|
13
|
+
|
|
14
|
+
const { s, c, f, t, F, B, S, I, H } = useStyle()
|
|
15
|
+
|
|
16
|
+
S.box = [s.absolute, s.XY, s.noSelect]
|
|
17
|
+
|
|
18
|
+
I.box = {
|
|
19
|
+
width: '100%',
|
|
20
|
+
height: '100%',
|
|
21
|
+
opacity: isActive ? 1 : 0,
|
|
22
|
+
transition: isFrozen || (instantMount && isFirstRender.current) ? 'none' : `opacity ${transitionMs}ms ease-in-out`,
|
|
23
|
+
zIndex: isActive ? 2 : 1,
|
|
24
|
+
pointerEvents: isActive ? 'auto' : 'none'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div className={S.box.join(' ')} style={I.box}>
|
|
29
|
+
{children}
|
|
30
|
+
</div>
|
|
31
|
+
)
|
|
32
|
+
}
|