@akanjs/cli 0.0.34 → 0.0.35
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/app/akan.config.ts.template +5 -0
- package/assets/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.tsx.template +16 -0
- package/assets/app/app/[lang]/(__appName__)/(public)/page.tsx.template +17 -0
- package/assets/app/app/[lang]/(__appName__)/(public)/privacy/page.tsx.template +10 -0
- package/assets/app/app/[lang]/(__appName__)/(public)/signin/page.tsx.template +19 -0
- package/assets/app/app/[lang]/(__appName__)/(public)/termsofservice/page.tsx.template +10 -0
- package/assets/app/app/[lang]/(__appName__)/(user)/layout.tsx.template +12 -0
- package/assets/app/app/[lang]/(__appName__)/(user)/self/page.tsx.template +29 -0
- package/assets/app/app/[lang]/(__appName__)/layout.tsx.template +21 -0
- package/assets/app/app/[lang]/admin/layout.tsx.template +22 -0
- package/assets/app/app/[lang]/admin/page.tsx.template +32 -0
- package/assets/app/app/csr.tsx.template +3 -0
- package/assets/app/app/index.html.template +13 -0
- package/assets/app/app/layout.tsx.template +7 -0
- package/assets/app/app/robots.ts.template +12 -0
- package/assets/app/app/sitemap.ts.template +8 -0
- package/assets/app/base/baseLogic.ts.template +7 -0
- package/assets/app/base/index.ts.template +1 -0
- package/assets/app/capacitor.config.ts.template +8 -0
- package/assets/app/client.ts.template +8 -0
- package/assets/app/common/commonLogic.ts.template +7 -0
- package/assets/app/common/index.ts.template +1 -0
- package/assets/app/config.yaml.template +19 -0
- package/assets/app/env/env.client.ts.template +10 -0
- package/assets/app/env/env.client.type.ts.template +7 -0
- package/assets/app/env/env.server.ts.template +10 -0
- package/assets/app/jest.config.ts.template +8 -0
- package/assets/app/lib/___appName__/__appName__.constant.ts.template +8 -0
- package/assets/app/lib/___appName__/__appName__.dictionary.ts.template +22 -0
- package/assets/app/lib/___appName__/__appName__.document.ts.template +6 -0
- package/assets/app/lib/___appName__/__appName__.service.ts.template +14 -0
- package/assets/app/lib/___appName__/__appName__.store.ts.template +8 -0
- package/assets/app/lib/___appName__/_server.ts.template +8 -0
- package/assets/app/lib/cnst.ts.template +4 -0
- package/assets/app/lib/cnst_.ts.template +38 -0
- package/assets/app/lib/db.ts.template +44 -0
- package/assets/app/lib/dict.ts.template +28 -0
- package/assets/app/lib/fetch.ts.template +18 -0
- package/assets/app/lib/option.ts.template +8 -0
- package/assets/app/lib/setting/Setting.Template.tsx.template +26 -0
- package/assets/app/lib/setting/Setting.Unit.tsx.template +7 -0
- package/assets/app/lib/setting/Setting.Util.tsx.template +3 -0
- package/assets/app/lib/setting/Setting.View.tsx.template +20 -0
- package/assets/app/lib/setting/Setting.Zone.tsx.template +49 -0
- package/assets/app/lib/setting/_server.ts.template +19 -0
- package/assets/app/lib/setting/index.tsx.template +30 -0
- package/assets/app/lib/setting/setting.constant.ts.template +17 -0
- package/assets/app/lib/setting/setting.dictionary.ts.template +18 -0
- package/assets/app/lib/setting/setting.document.ts.template +20 -0
- package/assets/app/lib/setting/setting.service.ts.template +12 -0
- package/assets/app/lib/setting/setting.signal.ts.template +6 -0
- package/assets/app/lib/setting/setting.store.ts.template +13 -0
- package/assets/app/lib/sig.ts.template +3 -0
- package/assets/app/lib/srv.ts.template +20 -0
- package/assets/app/lib/st.ts.template +6 -0
- package/assets/app/lib/store.ts.template +17 -0
- package/assets/app/lib/summary/Summary.Template.tsx.template +12 -0
- package/assets/app/lib/summary/Summary.Unit.tsx.template +7 -0
- package/assets/app/lib/summary/Summary.Util.tsx.template +2 -0
- package/assets/app/lib/summary/Summary.View.tsx.template +20 -0
- package/assets/app/lib/summary/Summary.Zone.tsx.template +31 -0
- package/assets/app/lib/summary/_server.ts.template +19 -0
- package/assets/app/lib/summary/index.tsx.template +36 -0
- package/assets/app/lib/summary/summary.constant.ts.template +16 -0
- package/assets/app/lib/summary/summary.dictionary.ts.template +21 -0
- package/assets/app/lib/summary/summary.document.ts.template +20 -0
- package/assets/app/lib/summary/summary.service.ts.template +26 -0
- package/assets/app/lib/summary/summary.signal.ts.template +6 -0
- package/assets/app/lib/summary/summary.store.ts.template +13 -0
- package/assets/app/lib/usePage.ts.template +5 -0
- package/assets/app/lib/user/User.Template.tsx.template +34 -0
- package/assets/app/lib/user/User.Unit.tsx.template +7 -0
- package/assets/app/lib/user/User.Util.tsx.template +63 -0
- package/assets/app/lib/user/User.View.tsx.template +35 -0
- package/assets/app/lib/user/User.Zone.tsx.template +43 -0
- package/assets/app/lib/user/_server.ts.template +19 -0
- package/assets/app/lib/user/index.tsx.template +30 -0
- package/assets/app/lib/user/user.constant.ts.template +31 -0
- package/assets/app/lib/user/user.dictionary.ts.template +24 -0
- package/assets/app/lib/user/user.document.ts.template +26 -0
- package/assets/app/lib/user/user.service.ts.template +14 -0
- package/assets/app/lib/user/user.signal.spec.ts.template +9 -0
- package/assets/app/lib/user/user.signal.test.ts.template +11 -0
- package/assets/app/lib/user/user.signal.ts.template +6 -0
- package/assets/app/lib/user/user.store.ts.template +11 -0
- package/assets/app/main.ts.template +12 -0
- package/assets/app/middleware.ts.template +4 -0
- package/assets/app/nest/backendLogic.ts.template +6 -0
- package/assets/app/nest/index.ts.template +1 -0
- package/assets/app/next/frontendLogic.ts.template +6 -0
- package/assets/app/next/index.ts.template +1 -0
- package/assets/app/page.test.ts.template +10 -0
- package/assets/app/playwright.config.ts.template +6 -0
- package/assets/app/postcss.config.js.template +10 -0
- package/assets/app/public/favicon.ico +0 -0
- package/assets/app/public/icons/icon-128x128.png +0 -0
- package/assets/app/public/icons/icon-144x144.png +0 -0
- package/assets/app/public/icons/icon-152x152.png +0 -0
- package/assets/app/public/icons/icon-192x192.png +0 -0
- package/assets/app/public/icons/icon-256x256.png +0 -0
- package/assets/app/public/icons/icon-384x384.png +0 -0
- package/assets/app/public/icons/icon-48x48.png +0 -0
- package/assets/app/public/icons/icon-512x512.png +0 -0
- package/assets/app/public/icons/icon-72x72.png +0 -0
- package/assets/app/public/icons/icon-96x96.png +0 -0
- package/assets/app/public/logo.svg +70 -0
- package/assets/app/public/manifest.json.template +67 -0
- package/assets/app/server.ts.template +30 -0
- package/assets/app/tsconfig.json.template +22 -0
- package/assets/app/tsconfig.spec.json.template +7 -0
- package/assets/app/ui/Footer.tsx.template +36 -0
- package/assets/app/ui/MainHeader.tsx.template +100 -0
- package/assets/app/ui/index.ts.template +2 -0
- package/assets/assets/app/akan.config.ts.template +5 -0
- package/assets/assets/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.tsx.template +16 -0
- package/assets/assets/app/app/[lang]/(__appName__)/(public)/page.tsx.template +17 -0
- package/assets/assets/app/app/[lang]/(__appName__)/(public)/privacy/page.tsx.template +10 -0
- package/assets/assets/app/app/[lang]/(__appName__)/(public)/signin/page.tsx.template +19 -0
- package/assets/assets/app/app/[lang]/(__appName__)/(public)/termsofservice/page.tsx.template +10 -0
- package/assets/assets/app/app/[lang]/(__appName__)/(user)/layout.tsx.template +12 -0
- package/assets/assets/app/app/[lang]/(__appName__)/(user)/self/page.tsx.template +29 -0
- package/assets/assets/app/app/[lang]/(__appName__)/layout.tsx.template +21 -0
- package/assets/assets/app/app/[lang]/admin/layout.tsx.template +22 -0
- package/assets/assets/app/app/[lang]/admin/page.tsx.template +32 -0
- package/assets/assets/app/app/csr.tsx.template +3 -0
- package/assets/assets/app/app/index.html.template +13 -0
- package/assets/assets/app/app/layout.tsx.template +7 -0
- package/assets/assets/app/app/robots.ts.template +12 -0
- package/assets/assets/app/app/sitemap.ts.template +8 -0
- package/assets/assets/app/base/baseLogic.ts.template +7 -0
- package/assets/assets/app/base/index.ts.template +1 -0
- package/assets/assets/app/capacitor.config.ts.template +8 -0
- package/assets/assets/app/client.ts.template +8 -0
- package/assets/assets/app/common/commonLogic.ts.template +7 -0
- package/assets/assets/app/common/index.ts.template +1 -0
- package/assets/assets/app/config.yaml.template +19 -0
- package/assets/assets/app/env/env.client.ts.template +10 -0
- package/assets/assets/app/env/env.client.type.ts.template +7 -0
- package/assets/assets/app/env/env.server.ts.template +10 -0
- package/assets/assets/app/jest.config.ts.template +8 -0
- package/assets/assets/app/lib/___appName__/__appName__.constant.ts.template +8 -0
- package/assets/assets/app/lib/___appName__/__appName__.dictionary.ts.template +22 -0
- package/assets/assets/app/lib/___appName__/__appName__.document.ts.template +6 -0
- package/assets/assets/app/lib/___appName__/__appName__.service.ts.template +14 -0
- package/assets/assets/app/lib/___appName__/__appName__.store.ts.template +8 -0
- package/assets/assets/app/lib/___appName__/_server.ts.template +8 -0
- package/assets/assets/app/lib/cnst.ts.template +4 -0
- package/assets/assets/app/lib/cnst_.ts.template +38 -0
- package/assets/assets/app/lib/db.ts.template +44 -0
- package/assets/assets/app/lib/dict.ts.template +28 -0
- package/assets/assets/app/lib/fetch.ts.template +18 -0
- package/assets/assets/app/lib/option.ts.template +8 -0
- package/assets/assets/app/lib/setting/Setting.Template.tsx.template +26 -0
- package/assets/assets/app/lib/setting/Setting.Unit.tsx.template +7 -0
- package/assets/assets/app/lib/setting/Setting.Util.tsx.template +3 -0
- package/assets/assets/app/lib/setting/Setting.View.tsx.template +20 -0
- package/assets/assets/app/lib/setting/Setting.Zone.tsx.template +49 -0
- package/assets/assets/app/lib/setting/_server.ts.template +19 -0
- package/assets/assets/app/lib/setting/index.tsx.template +30 -0
- package/assets/assets/app/lib/setting/setting.constant.ts.template +17 -0
- package/assets/assets/app/lib/setting/setting.dictionary.ts.template +18 -0
- package/assets/assets/app/lib/setting/setting.document.ts.template +20 -0
- package/assets/assets/app/lib/setting/setting.service.ts.template +12 -0
- package/assets/assets/app/lib/setting/setting.signal.ts.template +6 -0
- package/assets/assets/app/lib/setting/setting.store.ts.template +13 -0
- package/assets/assets/app/lib/sig.ts.template +3 -0
- package/assets/assets/app/lib/srv.ts.template +20 -0
- package/assets/assets/app/lib/st.ts.template +6 -0
- package/assets/assets/app/lib/store.ts.template +17 -0
- package/assets/assets/app/lib/summary/Summary.Template.tsx.template +12 -0
- package/assets/assets/app/lib/summary/Summary.Unit.tsx.template +7 -0
- package/assets/assets/app/lib/summary/Summary.Util.tsx.template +2 -0
- package/assets/assets/app/lib/summary/Summary.View.tsx.template +20 -0
- package/assets/assets/app/lib/summary/Summary.Zone.tsx.template +31 -0
- package/assets/assets/app/lib/summary/_server.ts.template +19 -0
- package/assets/assets/app/lib/summary/index.tsx.template +36 -0
- package/assets/assets/app/lib/summary/summary.constant.ts.template +16 -0
- package/assets/assets/app/lib/summary/summary.dictionary.ts.template +21 -0
- package/assets/assets/app/lib/summary/summary.document.ts.template +20 -0
- package/assets/assets/app/lib/summary/summary.service.ts.template +26 -0
- package/assets/assets/app/lib/summary/summary.signal.ts.template +6 -0
- package/assets/assets/app/lib/summary/summary.store.ts.template +13 -0
- package/assets/assets/app/lib/usePage.ts.template +5 -0
- package/assets/assets/app/lib/user/User.Template.tsx.template +34 -0
- package/assets/assets/app/lib/user/User.Unit.tsx.template +7 -0
- package/assets/assets/app/lib/user/User.Util.tsx.template +63 -0
- package/assets/assets/app/lib/user/User.View.tsx.template +35 -0
- package/assets/assets/app/lib/user/User.Zone.tsx.template +43 -0
- package/assets/assets/app/lib/user/_server.ts.template +19 -0
- package/assets/assets/app/lib/user/index.tsx.template +30 -0
- package/assets/assets/app/lib/user/user.constant.ts.template +31 -0
- package/assets/assets/app/lib/user/user.dictionary.ts.template +24 -0
- package/assets/assets/app/lib/user/user.document.ts.template +26 -0
- package/assets/assets/app/lib/user/user.service.ts.template +14 -0
- package/assets/assets/app/lib/user/user.signal.spec.ts.template +9 -0
- package/assets/assets/app/lib/user/user.signal.test.ts.template +11 -0
- package/assets/assets/app/lib/user/user.signal.ts.template +6 -0
- package/assets/assets/app/lib/user/user.store.ts.template +11 -0
- package/assets/assets/app/main.ts.template +12 -0
- package/assets/assets/app/middleware.ts.template +4 -0
- package/assets/assets/app/nest/backendLogic.ts.template +6 -0
- package/assets/assets/app/nest/index.ts.template +1 -0
- package/assets/assets/app/next/frontendLogic.ts.template +6 -0
- package/assets/assets/app/next/index.ts.template +1 -0
- package/assets/assets/app/page.test.ts.template +10 -0
- package/assets/assets/app/playwright.config.ts.template +6 -0
- package/assets/assets/app/postcss.config.js.template +10 -0
- package/assets/assets/app/public/favicon.ico +0 -0
- package/assets/assets/app/public/icons/icon-128x128.png +0 -0
- package/assets/assets/app/public/icons/icon-144x144.png +0 -0
- package/assets/assets/app/public/icons/icon-152x152.png +0 -0
- package/assets/assets/app/public/icons/icon-192x192.png +0 -0
- package/assets/assets/app/public/icons/icon-256x256.png +0 -0
- package/assets/assets/app/public/icons/icon-384x384.png +0 -0
- package/assets/assets/app/public/icons/icon-48x48.png +0 -0
- package/assets/assets/app/public/icons/icon-512x512.png +0 -0
- package/assets/assets/app/public/icons/icon-72x72.png +0 -0
- package/assets/assets/app/public/icons/icon-96x96.png +0 -0
- package/assets/assets/app/public/logo.svg +70 -0
- package/assets/assets/app/public/manifest.json.template +67 -0
- package/assets/assets/app/server.ts.template +30 -0
- package/assets/assets/app/tsconfig.json.template +22 -0
- package/assets/assets/app/tsconfig.spec.json.template +7 -0
- package/assets/assets/app/ui/Footer.tsx.template +36 -0
- package/assets/assets/app/ui/MainHeader.tsx.template +100 -0
- package/assets/assets/app/ui/index.ts.template +2 -0
- package/assets/assets/crudPages/[__model__Id]/edit/page.tsx.template +42 -0
- package/assets/assets/crudPages/[__model__Id]/page.tsx.template +52 -0
- package/assets/assets/crudPages/new/page.tsx.template +39 -0
- package/assets/assets/crudPages/page.tsx.template +40 -0
- package/assets/assets/lib/.gitignore.template +15 -0
- package/assets/assets/lib/jest.config.ts.template +7 -0
- package/assets/assets/lib/package.json.template +5 -0
- package/assets/assets/lib/project.json.template +10 -0
- package/assets/assets/lib/tsconfig.json.template +11 -0
- package/assets/assets/lib/tsconfig.spec.json.template +7 -0
- package/assets/assets/module/__Model__.Template.tsx.template +23 -0
- package/assets/assets/module/__Model__.Unit.tsx.template +11 -0
- package/assets/assets/module/__Model__.Util.tsx.template +39 -0
- package/assets/assets/module/__Model__.View.tsx.template +17 -0
- package/assets/assets/module/__Model__.Zone.tsx.template +52 -0
- package/assets/assets/module/__model__.constant.ts.template +44 -0
- package/assets/assets/module/__model__.dictionary.ts.template +70 -0
- package/assets/assets/module/__model__.document.ts.template +25 -0
- package/assets/assets/module/__model__.service.ts.template +13 -0
- package/assets/assets/module/__model__.signal.spec.ts.template +11 -0
- package/assets/assets/module/__model__.signal.test.ts.template +20 -0
- package/assets/assets/module/__model__.signal.ts.template +30 -0
- package/assets/assets/module/__model__.store.ts.template +11 -0
- package/assets/assets/module/_server.ts.template +18 -0
- package/assets/assets/module/index.tsx.template +30 -0
- package/assets/assets/pkg/tsconfig.json.template +12 -0
- package/assets/assets/workplace/.gitignore.template +195 -0
- package/assets/assets/workplace/.prettierignore.template +10 -0
- package/assets/assets/workplace/.prettierrc.json.template +5 -0
- package/assets/assets/workplace/.swcrc.template +9 -0
- package/assets/assets/workplace/README.md.template +28 -0
- package/assets/assets/workplace/eslint.config.js.template +141 -0
- package/assets/assets/workplace/tsconfig.json.template +29 -0
- package/assets/crudPages/[__model__Id]/edit/page.tsx.template +42 -0
- package/assets/crudPages/[__model__Id]/page.tsx.template +52 -0
- package/assets/crudPages/new/page.tsx.template +39 -0
- package/assets/crudPages/page.tsx.template +40 -0
- package/assets/lib/.gitignore.template +15 -0
- package/assets/lib/jest.config.ts.template +7 -0
- package/assets/lib/package.json.template +5 -0
- package/assets/lib/project.json.template +10 -0
- package/assets/lib/tsconfig.json.template +11 -0
- package/assets/lib/tsconfig.spec.json.template +7 -0
- package/assets/module/__Model__.Template.tsx.template +23 -0
- package/assets/module/__Model__.Unit.tsx.template +11 -0
- package/assets/module/__Model__.Util.tsx.template +39 -0
- package/assets/module/__Model__.View.tsx.template +17 -0
- package/assets/module/__Model__.Zone.tsx.template +52 -0
- package/assets/module/__model__.constant.ts.template +44 -0
- package/assets/module/__model__.dictionary.ts.template +70 -0
- package/assets/module/__model__.document.ts.template +25 -0
- package/assets/module/__model__.service.ts.template +13 -0
- package/assets/module/__model__.signal.spec.ts.template +11 -0
- package/assets/module/__model__.signal.test.ts.template +20 -0
- package/assets/module/__model__.signal.ts.template +30 -0
- package/assets/module/__model__.store.ts.template +11 -0
- package/assets/module/_server.ts.template +18 -0
- package/assets/module/index.tsx.template +30 -0
- package/assets/pkg/tsconfig.json.template +12 -0
- package/assets/workplace/.gitignore.template +195 -0
- package/assets/workplace/.prettierignore.template +10 -0
- package/assets/workplace/.prettierrc.json.template +5 -0
- package/assets/workplace/.swcrc.template +9 -0
- package/assets/workplace/README.md.template +28 -0
- package/assets/workplace/eslint.config.js.template +141 -0
- package/assets/workplace/tsconfig.json.template +29 -0
- package/index.js +5024 -307
- package/package.json +35 -10
- package/templates/__scalar/__model__/__model__.constant.js +34 -0
- package/templates/__scalar/__model__/__model__.dictionary.js +45 -0
- package/templates/__scalar/__model__/__model__.document.js +32 -0
- package/templates/app/akan.config.ts.template +5 -0
- package/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.js +43 -0
- package/templates/app/app/[lang]/(__appName__)/(public)/page.js +44 -0
- package/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.js +38 -0
- package/templates/app/app/[lang]/(__appName__)/(public)/signin/page.js +46 -0
- package/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.js +37 -0
- package/templates/app/app/[lang]/(__appName__)/(user)/layout.js +39 -0
- package/templates/app/app/[lang]/(__appName__)/(user)/self/page.js +56 -0
- package/templates/app/app/[lang]/(__appName__)/layout.js +48 -0
- package/templates/app/app/[lang]/admin/layout.js +49 -0
- package/templates/app/app/[lang]/admin/page.js +59 -0
- package/templates/app/app/csr.js +30 -0
- package/templates/app/app/index.html.template +13 -0
- package/templates/app/app/layout.js +34 -0
- package/templates/app/app/robots.js +39 -0
- package/templates/app/app/sitemap.js +35 -0
- package/templates/app/base/baseLogic.js +34 -0
- package/templates/app/base/index.js +28 -0
- package/templates/app/capacitor.config.ts.template +8 -0
- package/templates/app/common/commonLogic.js +34 -0
- package/templates/app/common/index.js +28 -0
- package/templates/app/env/env.client.js +37 -0
- package/templates/app/env/env.client.type.js +34 -0
- package/templates/app/env/env.server.js +37 -0
- package/templates/app/jest.config.js +35 -0
- package/templates/app/lib/___appName__/__appName__.dictionary.js +30 -0
- package/templates/app/lib/___appName__/__appName__.service.js +41 -0
- package/templates/app/lib/___appName__/__appName__.store.js +35 -0
- package/templates/app/lib/___appName__/_server.js +33 -0
- package/templates/app/lib/option.js +41 -0
- package/templates/app/lib/setting/Setting.Template.js +53 -0
- package/templates/app/lib/setting/Setting.Unit.js +34 -0
- package/templates/app/lib/setting/Setting.Util.js +30 -0
- package/templates/app/lib/setting/Setting.View.js +47 -0
- package/templates/app/lib/setting/Setting.Zone.js +76 -0
- package/templates/app/lib/setting/_server.js +47 -0
- package/templates/app/lib/setting/index.js +57 -0
- package/templates/app/lib/setting/setting.constant.js +45 -0
- package/templates/app/lib/setting/setting.dictionary.js +45 -0
- package/templates/app/lib/setting/setting.document.js +47 -0
- package/templates/app/lib/setting/setting.service.js +36 -0
- package/templates/app/lib/setting/setting.signal.js +33 -0
- package/templates/app/lib/setting/setting.store.js +40 -0
- package/templates/app/lib/summary/Summary.Template.js +39 -0
- package/templates/app/lib/summary/Summary.Unit.js +34 -0
- package/templates/app/lib/summary/Summary.Util.js +29 -0
- package/templates/app/lib/summary/Summary.View.js +47 -0
- package/templates/app/lib/summary/Summary.Zone.js +58 -0
- package/templates/app/lib/summary/_server.js +47 -0
- package/templates/app/lib/summary/index.js +63 -0
- package/templates/app/lib/summary/summary.constant.js +43 -0
- package/templates/app/lib/summary/summary.dictionary.js +48 -0
- package/templates/app/lib/summary/summary.document.js +47 -0
- package/templates/app/lib/summary/summary.service.js +33 -0
- package/templates/app/lib/summary/summary.signal.js +33 -0
- package/templates/app/lib/summary/summary.store.js +40 -0
- package/templates/app/lib/user/User.Template.js +61 -0
- package/templates/app/lib/user/User.Unit.js +34 -0
- package/templates/app/lib/user/User.Util.js +90 -0
- package/templates/app/lib/user/User.View.js +62 -0
- package/templates/app/lib/user/User.Zone.js +70 -0
- package/templates/app/lib/user/_server.js +47 -0
- package/templates/app/lib/user/index.js +57 -0
- package/templates/app/lib/user/user.constant.js +66 -0
- package/templates/app/lib/user/user.dictionary.js +51 -0
- package/templates/app/lib/user/user.document.js +53 -0
- package/templates/app/lib/user/user.service.js +41 -0
- package/templates/app/lib/user/user.signal.js +33 -0
- package/templates/app/lib/user/user.signal.spec.js +36 -0
- package/templates/app/lib/user/user.signal.test.js +38 -0
- package/templates/app/lib/user/user.store.js +38 -0
- package/templates/app/main.js +39 -0
- package/templates/app/middleware.js +34 -0
- package/templates/app/nest/backendLogic.js +33 -0
- package/templates/app/nest/index.js +28 -0
- package/templates/app/next/frontendLogic.js +33 -0
- package/templates/app/next/index.js +28 -0
- package/templates/app/page.test.ts.template +10 -0
- package/templates/app/playwright.config.ts.template +6 -0
- package/templates/app/postcss.config.js.template +10 -0
- package/templates/app/public/favicon.ico +0 -0
- package/templates/app/public/icons/icon-128x128.png +0 -0
- package/templates/app/public/icons/icon-144x144.png +0 -0
- package/templates/app/public/icons/icon-152x152.png +0 -0
- package/templates/app/public/icons/icon-192x192.png +0 -0
- package/templates/app/public/icons/icon-256x256.png +0 -0
- package/templates/app/public/icons/icon-384x384.png +0 -0
- package/templates/app/public/icons/icon-48x48.png +0 -0
- package/templates/app/public/icons/icon-512x512.png +0 -0
- package/templates/app/public/icons/icon-72x72.png +0 -0
- package/templates/app/public/icons/icon-96x96.png +0 -0
- package/templates/app/public/logo.svg +70 -0
- package/templates/app/public/manifest.json.template +67 -0
- package/templates/app/tsconfig.json.template +22 -0
- package/templates/app/tsconfig.spec.json.template +7 -0
- package/templates/app/ui/Footer.js +63 -0
- package/templates/app/ui/MainHeader.js +127 -0
- package/templates/app/ui/index.js +29 -0
- package/templates/client.js +41 -0
- package/templates/crudPages/[__model__Id]/edit/page.js +69 -0
- package/templates/crudPages/[__model__Id]/page.js +79 -0
- package/templates/crudPages/new/page.js +66 -0
- package/templates/crudPages/page.js +67 -0
- package/templates/index.js +30 -0
- package/templates/lib/__lib/extends/summary.constant.js +42 -0
- package/templates/lib/__lib/lib.constant.js +52 -0
- package/templates/lib/__lib/lib.dictionary.js +41 -0
- package/templates/lib/__lib/lib.document.js +40 -0
- package/templates/lib/__lib/lib.service.js +82 -0
- package/templates/lib/__lib/lib.signal.js +35 -0
- package/templates/lib/__lib/lib.store.js +33 -0
- package/templates/lib/__scalar/_server.js +38 -0
- package/templates/lib/cnst.js +31 -0
- package/templates/lib/cnst_.js +50 -0
- package/templates/lib/db.js +52 -0
- package/templates/lib/dict.js +44 -0
- package/templates/lib/fetch.js +47 -0
- package/templates/lib/sig.js +36 -0
- package/templates/lib/srv.js +51 -0
- package/templates/lib/st.js +35 -0
- package/templates/lib/store.js +51 -0
- package/templates/lib/usePage.js +32 -0
- package/templates/libRoot/.gitignore.template +15 -0
- package/templates/libRoot/jest.config.js +35 -0
- package/templates/libRoot/package.json.template +5 -0
- package/templates/libRoot/tsconfig.json.template +11 -0
- package/templates/libRoot/tsconfig.spec.json.template +7 -0
- package/templates/module/__Model__.Template.js +50 -0
- package/templates/module/__Model__.Unit.js +38 -0
- package/templates/module/__Model__.Util.js +66 -0
- package/templates/module/__Model__.View.js +44 -0
- package/templates/module/__Model__.Zone.js +79 -0
- package/templates/module/__model__.constant.js +68 -0
- package/templates/module/__model__.dictionary.js +97 -0
- package/templates/module/__model__.document.js +52 -0
- package/templates/module/__model__.service.js +40 -0
- package/templates/module/__model__.signal.js +59 -0
- package/templates/module/__model__.signal.spec.js +38 -0
- package/templates/module/__model__.signal.test.js +47 -0
- package/templates/module/__model__.store.js +38 -0
- package/templates/module/_server.js +46 -0
- package/templates/module/index.js +57 -0
- package/templates/pkgRoot/tsconfig.json.template +12 -0
- package/templates/server.js +58 -0
- package/templates/workplaceRoot/.env.template +20 -0
- package/templates/workplaceRoot/.gitignore.template +195 -0
- package/templates/workplaceRoot/.prettierignore.template +10 -0
- package/templates/workplaceRoot/.prettierrc.json.template +5 -0
- package/templates/workplaceRoot/.swcrc.template +9 -0
- package/templates/workplaceRoot/README.md.template +37 -0
- package/templates/workplaceRoot/eslint.config.js.template +141 -0
- package/templates/workplaceRoot/tsconfig.json.template +29 -0
- package/README.md +0 -11
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var Summary_View_exports = {};
|
|
19
|
+
__export(Summary_View_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(Summary_View_exports);
|
|
23
|
+
function getContent(scanResult, dict) {
|
|
24
|
+
return `
|
|
25
|
+
import { User, usePage } from "@${dict.appName}/client";
|
|
26
|
+
import { clsx } from "@akanjs/client";
|
|
27
|
+
|
|
28
|
+
import { cnst } from "../cnst";
|
|
29
|
+
|
|
30
|
+
interface SummaryViewProps {
|
|
31
|
+
className?: string;
|
|
32
|
+
summary: cnst.Summary;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const General = ({ className, summary }: SummaryViewProps) => {
|
|
36
|
+
const { l } = usePage();
|
|
37
|
+
return (
|
|
38
|
+
<div className={clsx(className, "mr-12")}>
|
|
39
|
+
<div className="grid grid-cols-5 gap-4">
|
|
40
|
+
<User.Util.Stat className="col-span-2 " summary={summary} />
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var Summary_Zone_exports = {};
|
|
19
|
+
__export(Summary_Zone_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(Summary_Zone_exports);
|
|
23
|
+
function getContent(scanResult, dict) {
|
|
24
|
+
return `
|
|
25
|
+
"use client";
|
|
26
|
+
import { ModelsProps } from "@akanjs/client";
|
|
27
|
+
import { DefaultOf } from "@akanjs/signal";
|
|
28
|
+
import { st, Summary } from "@${dict.appName}/client";
|
|
29
|
+
import { Data } from "@shared/ui";
|
|
30
|
+
import { Loading } from "@util/ui";
|
|
31
|
+
|
|
32
|
+
import { cnst } from "../cnst";
|
|
33
|
+
|
|
34
|
+
export const Admin = ({ sliceName = "summary", init, query }: ModelsProps<cnst.Summary>) => {
|
|
35
|
+
return (
|
|
36
|
+
<Data.ListContainer
|
|
37
|
+
init={init}
|
|
38
|
+
query={query}
|
|
39
|
+
sliceName={sliceName}
|
|
40
|
+
renderItem={Summary.Unit.Card}
|
|
41
|
+
renderTemplate={Summary.Template.General}
|
|
42
|
+
renderTitle={(summary: DefaultOf<cnst.Summary>) => \`\${summary.at}\`}
|
|
43
|
+
renderView={(summary: cnst.Summary) => <Summary.View.General summary={summary} />}
|
|
44
|
+
type="list"
|
|
45
|
+
columns={["type", "status", "createdAt"]}
|
|
46
|
+
actions={(summary: cnst.LightSummary, idx) => ["remove", "edit"]}
|
|
47
|
+
/>
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const Dashboard = () => {
|
|
52
|
+
const summary = st.use.summary();
|
|
53
|
+
if (!summary) return <Loading.Skeleton active />;
|
|
54
|
+
return <Summary.View.General summary={summary} />;
|
|
55
|
+
};
|
|
56
|
+
`;
|
|
57
|
+
}
|
|
58
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var server_exports = {};
|
|
19
|
+
__export(server_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(server_exports);
|
|
23
|
+
function getContent(scanResult, dict) {
|
|
24
|
+
return `
|
|
25
|
+
import { databaseModuleOf } from "@akanjs/server";
|
|
26
|
+
|
|
27
|
+
import { cnst } from "../cnst";
|
|
28
|
+
import * as db from "../db";
|
|
29
|
+
import type { ModulesOptions } from "../option";
|
|
30
|
+
import { allSrvs } from "../srv";
|
|
31
|
+
import { SummaryService } from "./summary.service";
|
|
32
|
+
import { SummarySignal } from "./summary.signal";
|
|
33
|
+
|
|
34
|
+
export const registerSummaryModule = (option: ModulesOptions) =>
|
|
35
|
+
databaseModuleOf(
|
|
36
|
+
{
|
|
37
|
+
constant: cnst.summaryCnst,
|
|
38
|
+
database: db.summaryDb,
|
|
39
|
+
signal: SummarySignal,
|
|
40
|
+
service: SummaryService,
|
|
41
|
+
extended: true,
|
|
42
|
+
},
|
|
43
|
+
allSrvs
|
|
44
|
+
);
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var summary_exports = {};
|
|
19
|
+
__export(summary_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(summary_exports);
|
|
23
|
+
function getContent(scanResult, dict = {}) {
|
|
24
|
+
return `
|
|
25
|
+
import { Signal } from "@util/ui";
|
|
26
|
+
import { AiOutlineLineChart } from "react-icons/ai";
|
|
27
|
+
|
|
28
|
+
import * as Template from "./Summary.Template";
|
|
29
|
+
import * as Unit from "./Summary.Unit";
|
|
30
|
+
import * as Util from "./Summary.Util";
|
|
31
|
+
import * as View from "./Summary.View";
|
|
32
|
+
import * as Zone from "./Summary.Zone";
|
|
33
|
+
|
|
34
|
+
export const Summary = {
|
|
35
|
+
Menu: {
|
|
36
|
+
Admin: {
|
|
37
|
+
key: "summary",
|
|
38
|
+
label: "Summary",
|
|
39
|
+
icon: <AiOutlineLineChart />,
|
|
40
|
+
render: () => <Zone.Admin />,
|
|
41
|
+
},
|
|
42
|
+
Doc: {
|
|
43
|
+
key: "summary",
|
|
44
|
+
label: "Summary",
|
|
45
|
+
icon: <AiOutlineLineChart />,
|
|
46
|
+
render: () => <Signal.Doc.Zone refName="summary" />,
|
|
47
|
+
},
|
|
48
|
+
Dashboard: {
|
|
49
|
+
key: "summary",
|
|
50
|
+
label: "Summary",
|
|
51
|
+
icon: <AiOutlineLineChart />,
|
|
52
|
+
render: () => <Zone.Dashboard />,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
Template,
|
|
56
|
+
Unit,
|
|
57
|
+
Util,
|
|
58
|
+
View,
|
|
59
|
+
Zone,
|
|
60
|
+
};
|
|
61
|
+
`;
|
|
62
|
+
}
|
|
63
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var summary_constant_exports = {};
|
|
19
|
+
__export(summary_constant_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(summary_constant_exports);
|
|
23
|
+
function getContent(scanResult, dict) {
|
|
24
|
+
return `
|
|
25
|
+
import { from, Model, over, via } from "@akanjs/constant";
|
|
26
|
+
|
|
27
|
+
import { modelSummaries } from "../__lib/extends/summary.constant";
|
|
28
|
+
import { libSummaries, root } from "../__lib/lib.constant";
|
|
29
|
+
|
|
30
|
+
@Model.Summary("${dict.AppName}Summary")
|
|
31
|
+
export class ${dict.AppName}Summary extends over(...modelSummaries) {}
|
|
32
|
+
|
|
33
|
+
export class SummaryObject extends from(...libSummaries, ${dict.AppName}Summary) {}
|
|
34
|
+
export class SummaryInput extends root.SummaryInput {}
|
|
35
|
+
|
|
36
|
+
@Model.Light("LightSummary")
|
|
37
|
+
export class LightSummary extends via(SummaryObject, ["at"] as const) {}
|
|
38
|
+
|
|
39
|
+
@Model.Full("Summary")
|
|
40
|
+
export class Summary extends via(SummaryObject, LightSummary, root.Summary, root.LightSummary) {}
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var summary_dictionary_exports = {};
|
|
19
|
+
__export(summary_dictionary_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(summary_dictionary_exports);
|
|
23
|
+
function getContent(scanResult, dict) {
|
|
24
|
+
return `
|
|
25
|
+
import { ExtendModelDictionary, SignalDictionary } from "@akanjs/dictionary";
|
|
26
|
+
|
|
27
|
+
import { libSummaryDictionary } from "../__lib/lib.dictionary";
|
|
28
|
+
import type { ${dict.AppName}Summary } from "./summary.constant";
|
|
29
|
+
import type { SummarySignal } from "./summary.signal";
|
|
30
|
+
|
|
31
|
+
const modelDictionary = {
|
|
32
|
+
// * ==================== Model ==================== * //
|
|
33
|
+
...libSummaryDictionary,
|
|
34
|
+
// * ==================== Model ==================== * //
|
|
35
|
+
|
|
36
|
+
// * ==================== Etc ==================== * //
|
|
37
|
+
// * ==================== Etc ==================== * //
|
|
38
|
+
} satisfies ExtendModelDictionary<${dict.AppName}Summary>;
|
|
39
|
+
|
|
40
|
+
const signalDictionary = {
|
|
41
|
+
// * ==================== Endpoint ==================== * //
|
|
42
|
+
// * ==================== Endpoint ==================== * //
|
|
43
|
+
} satisfies SignalDictionary<SummarySignal, ${dict.AppName}Summary>;
|
|
44
|
+
|
|
45
|
+
export const summaryDictionary = { ...modelDictionary, ...signalDictionary };
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var summary_document_exports = {};
|
|
19
|
+
__export(summary_document_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(summary_document_exports);
|
|
23
|
+
function getContent(scanResult, dict = {}) {
|
|
24
|
+
return `
|
|
25
|
+
import { beyond, by, Database, inside, type SchemaOf } from "@akanjs/document";
|
|
26
|
+
|
|
27
|
+
import { rootSummary } from "../__lib/lib.document";
|
|
28
|
+
import { cnst } from "../cnst";
|
|
29
|
+
|
|
30
|
+
@Database.Input(() => cnst.SummaryInput)
|
|
31
|
+
export class SummaryInput extends by(rootSummary.Input, cnst.SummaryInput) {}
|
|
32
|
+
|
|
33
|
+
@Database.Document(() => cnst.Summary)
|
|
34
|
+
export class Summary extends by(rootSummary.Doc, cnst.Summary) {}
|
|
35
|
+
|
|
36
|
+
@Database.Model(() => cnst.Summary)
|
|
37
|
+
export class SummaryModel extends inside(rootSummary.Model, cnst.summaryCnst) {}
|
|
38
|
+
|
|
39
|
+
@Database.Middleware(() => cnst.Summary)
|
|
40
|
+
export class SummaryMiddleware extends beyond(SummaryModel, Summary) {
|
|
41
|
+
onSchema(schema: SchemaOf<SummaryModel, Summary>) {
|
|
42
|
+
//
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var summary_service_exports = {};
|
|
19
|
+
__export(summary_service_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(summary_service_exports);
|
|
23
|
+
function getContent(scanResult, dict) {
|
|
24
|
+
return `
|
|
25
|
+
import { Service } from "@akanjs/service";
|
|
26
|
+
|
|
27
|
+
import { ProtoSummaryService } from "../__lib/lib.service";
|
|
28
|
+
|
|
29
|
+
@Service("SummaryService")
|
|
30
|
+
export class SummaryService extends ProtoSummaryService {}
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var summary_signal_exports = {};
|
|
19
|
+
__export(summary_signal_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(summary_signal_exports);
|
|
23
|
+
function getContent(scanResult, dict = {}) {
|
|
24
|
+
return `
|
|
25
|
+
import { LogSignal, Signal } from "@akanjs/signal";
|
|
26
|
+
|
|
27
|
+
import { cnst, Srvs } from "../cnst";
|
|
28
|
+
|
|
29
|
+
@Signal(() => cnst.Summary)
|
|
30
|
+
export class SummarySignal extends LogSignal(Srvs) {}
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var summary_store_exports = {};
|
|
19
|
+
__export(summary_store_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(summary_store_exports);
|
|
23
|
+
function getContent(scanResult, dict = {}) {
|
|
24
|
+
return `
|
|
25
|
+
import { stateOf, Store } from "@akanjs/store";
|
|
26
|
+
|
|
27
|
+
import { cnst } from "../cnst";
|
|
28
|
+
import { fetch, summaryGql } from "../fetch";
|
|
29
|
+
|
|
30
|
+
@Store(() => cnst.Summary)
|
|
31
|
+
export class SummaryStore extends stateOf(summaryGql, {
|
|
32
|
+
// state
|
|
33
|
+
}) {
|
|
34
|
+
async getActiveSummary() {
|
|
35
|
+
this.set({ summary: (await fetch.getActiveSummary()) as cnst.Summary, summaryLoading: false });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var User_Template_exports = {};
|
|
19
|
+
__export(User_Template_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(User_Template_exports);
|
|
23
|
+
function getContent(scanResult, dict) {
|
|
24
|
+
return `
|
|
25
|
+
"use client";
|
|
26
|
+
import { clsx } from "@akanjs/client";
|
|
27
|
+
import { Field } from "@shared/ui";
|
|
28
|
+
import { Layout } from "@util/ui";
|
|
29
|
+
import { st, usePage } from "@${dict.appName}/client";
|
|
30
|
+
|
|
31
|
+
interface UserEditProps {
|
|
32
|
+
className?: string;
|
|
33
|
+
userId?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const General = ({ className, userId = undefined }: UserEditProps) => {
|
|
37
|
+
const userForm = st.use.userForm();
|
|
38
|
+
const { l } = usePage();
|
|
39
|
+
return (
|
|
40
|
+
<Layout.Template className={clsx("flex flex-col gap-4", className)}>
|
|
41
|
+
<div className="w-[150px] flex mt-10 md:mt-0">
|
|
42
|
+
<Field.Img
|
|
43
|
+
label={l.field("user", "image")}
|
|
44
|
+
desc={l.desc("user", "image")}
|
|
45
|
+
sliceName="user"
|
|
46
|
+
value={userForm.image}
|
|
47
|
+
onChange={st.do.setImageOnUser}
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
<Field.Text
|
|
51
|
+
label={l.field("user", "nickname")}
|
|
52
|
+
desc={l.desc("user", "nickname")}
|
|
53
|
+
value={userForm.nickname}
|
|
54
|
+
onChange={st.do.setNicknameOnUser}
|
|
55
|
+
/>
|
|
56
|
+
</Layout.Template>
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
`;
|
|
60
|
+
}
|
|
61
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var User_Unit_exports = {};
|
|
19
|
+
__export(User_Unit_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(User_Unit_exports);
|
|
23
|
+
function getContent(scanResult, dict = {}) {
|
|
24
|
+
return `
|
|
25
|
+
import { ModelProps } from "@akanjs/client";
|
|
26
|
+
|
|
27
|
+
import { cnst } from "../cnst";
|
|
28
|
+
|
|
29
|
+
export const Card = ({ className, user }: ModelProps<"user", cnst.LightUser>) => {
|
|
30
|
+
return <div>{user.id}</div>;
|
|
31
|
+
};
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var User_Util_exports = {};
|
|
19
|
+
__export(User_Util_exports, {
|
|
20
|
+
default: () => getContent
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(User_Util_exports);
|
|
23
|
+
function getContent(scanResult, dict) {
|
|
24
|
+
return `
|
|
25
|
+
"use client";
|
|
26
|
+
import { ModelDashboardProps, ModelInsightProps } from "@akanjs/client";
|
|
27
|
+
import { getQueryMap } from "@akanjs/constant";
|
|
28
|
+
import { cnst, st } from "@${dict.appName}/client";
|
|
29
|
+
import { Data } from "@shared/ui";
|
|
30
|
+
import { AiOutlineEdit, AiOutlineLock, AiOutlineUnlock } from "react-icons/ai";
|
|
31
|
+
|
|
32
|
+
export const Stat = ({
|
|
33
|
+
className,
|
|
34
|
+
summary,
|
|
35
|
+
sliceName = "user",
|
|
36
|
+
queryMap = getQueryMap(cnst.UserSummary),
|
|
37
|
+
hidePresents,
|
|
38
|
+
}: ModelDashboardProps<cnst.Summary>) => {
|
|
39
|
+
return (
|
|
40
|
+
<Data.Dashboard
|
|
41
|
+
className={className}
|
|
42
|
+
summary={summary}
|
|
43
|
+
sliceName={sliceName}
|
|
44
|
+
queryMap={queryMap}
|
|
45
|
+
columns={["totalUser", "dau"]}
|
|
46
|
+
hidePresents={hidePresents}
|
|
47
|
+
/>
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
export const Insight = ({ className, insight, sliceName = "user" }: ModelInsightProps<cnst.UserInsight>) => {
|
|
51
|
+
return <Data.Insight className={className} insight={insight} sliceName={sliceName} columns={["count"]} />;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
interface RestrictProps {
|
|
55
|
+
id: string;
|
|
56
|
+
}
|
|
57
|
+
export const Restrict = ({ id }: RestrictProps) => {
|
|
58
|
+
return (
|
|
59
|
+
<button className="gap-2 btn btn-sm" onClick={() => st.do.restrictUser(id, "Violated Community Guidelines")}>
|
|
60
|
+
<AiOutlineLock />
|
|
61
|
+
Restrict
|
|
62
|
+
</button>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
interface ReleaseProps {
|
|
67
|
+
id: string;
|
|
68
|
+
}
|
|
69
|
+
export const Release = ({ id }: ReleaseProps) => {
|
|
70
|
+
return (
|
|
71
|
+
<button className="gap-2 border-dashed btn btn-sm btn-outline" onClick={() => st.do.releaseUser(id)}>
|
|
72
|
+
<AiOutlineUnlock />
|
|
73
|
+
Release
|
|
74
|
+
</button>
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const EditSelf = () => {
|
|
79
|
+
const self = st.use.self();
|
|
80
|
+
const userModal = st.use.userModal();
|
|
81
|
+
return userModal !== "edit" ? (
|
|
82
|
+
<button className="gap-2 btn" onClick={() => st.do.editUser(self)}>
|
|
83
|
+
<AiOutlineEdit />
|
|
84
|
+
Edit
|
|
85
|
+
</button>
|
|
86
|
+
) : null;
|
|
87
|
+
};
|
|
88
|
+
`;
|
|
89
|
+
}
|
|
90
|
+
module.exports = module.exports.default;
|