@akanjs/cli 0.9.41 → 0.9.42
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/cjs/index.js +925 -532
- package/cjs/src/guidelines/databaseModule/databaseModule.instruction.md +3 -50
- package/cjs/src/guidelines/modelService/modelService.generate.json +3 -10
- package/cjs/src/guidelines/scalarModule/scalarModule.instruction.md +0 -3
- package/cjs/src/templates/__scalar/__model__/__model__.constant.js +1 -1
- package/cjs/src/templates/__scalar/__model__/__model__.dictionary.js +1 -1
- package/cjs/src/templates/__scalar/__model__/__model__.document.js +1 -1
- package/cjs/src/templates/app/akan.config.js +1 -1
- package/cjs/src/templates/app/app/[lang]/admin/page.js +5 -5
- package/cjs/src/templates/app/app/[lang]/layout.js +1 -1
- package/cjs/src/templates/app/app/[lang]/page.js +1 -1
- package/cjs/src/templates/app/app/csr.js +1 -1
- package/cjs/src/templates/app/app/layout.js +1 -1
- package/cjs/src/templates/app/app/robots.js +1 -1
- package/cjs/src/templates/app/app/sitemap.js +1 -1
- package/cjs/src/templates/app/base/baseLogic.js +1 -1
- package/cjs/src/templates/app/base/index.js +1 -1
- package/cjs/src/templates/app/common/commonLogic.js +1 -1
- package/cjs/src/templates/app/common/index.js +1 -1
- package/cjs/src/templates/app/env/env.client.js +1 -1
- package/cjs/src/templates/app/env/env.client.type.js +1 -1
- package/cjs/src/templates/app/env/env.server.js +1 -1
- package/cjs/src/templates/app/jest.config.js +1 -1
- package/cjs/src/templates/app/lib/___appName__/__appName__.dictionary.js +1 -1
- package/cjs/src/templates/app/lib/___appName__/__appName__.service.js +1 -1
- package/cjs/src/templates/app/lib/___appName__/__appName__.store.js +1 -1
- package/cjs/src/templates/app/lib/option.js +1 -1
- package/cjs/src/templates/app/lib/setting/Setting.Template.js +6 -19
- package/cjs/src/templates/app/lib/setting/Setting.Unit.js +3 -3
- package/cjs/src/templates/app/lib/setting/Setting.Util.js +8 -2
- package/cjs/src/templates/app/lib/setting/Setting.View.js +4 -7
- package/cjs/src/templates/app/lib/setting/Setting.Zone.js +2 -8
- package/cjs/src/templates/app/lib/setting/setting.constant.js +1 -1
- package/cjs/src/templates/app/lib/setting/setting.dictionary.js +1 -1
- package/cjs/src/templates/app/lib/setting/setting.document.js +1 -1
- package/cjs/src/templates/app/lib/setting/setting.service.js +1 -1
- package/cjs/src/templates/app/lib/setting/setting.signal.js +1 -1
- package/cjs/src/templates/app/lib/setting/setting.store.js +1 -1
- package/cjs/src/templates/app/lib/summary/Summary.Template.js +5 -4
- package/cjs/src/templates/app/lib/summary/Summary.Unit.js +4 -5
- package/cjs/src/templates/app/lib/summary/Summary.Util.js +10 -3
- package/cjs/src/templates/app/lib/summary/Summary.View.js +5 -9
- package/cjs/src/templates/app/lib/summary/Summary.Zone.js +2 -4
- package/cjs/src/templates/app/lib/summary/summary.constant.js +1 -1
- package/cjs/src/templates/app/lib/summary/summary.dictionary.js +1 -1
- package/cjs/src/templates/app/lib/summary/summary.document.js +1 -1
- package/cjs/src/templates/app/lib/summary/summary.service.js +1 -1
- package/cjs/src/templates/app/lib/summary/summary.signal.js +1 -1
- package/cjs/src/templates/app/lib/summary/summary.store.js +1 -1
- package/cjs/src/templates/app/lib/user/User.Template.js +2 -3
- package/cjs/src/templates/app/lib/user/User.Unit.js +4 -5
- package/cjs/src/templates/app/lib/user/User.Util.js +8 -29
- package/cjs/src/templates/app/lib/user/User.View.js +2 -4
- package/cjs/src/templates/app/lib/user/User.Zone.js +6 -3
- package/cjs/src/templates/app/lib/user/user.constant.js +1 -1
- package/cjs/src/templates/app/lib/user/user.dictionary.js +1 -1
- package/cjs/src/templates/app/lib/user/user.document.js +1 -1
- package/cjs/src/templates/app/lib/user/user.service.js +1 -1
- package/cjs/src/templates/app/lib/user/user.signal.js +1 -1
- package/cjs/src/templates/app/lib/user/user.signal.spec.js +1 -1
- package/cjs/src/templates/app/lib/user/user.signal.test.js +1 -1
- package/cjs/src/templates/app/lib/user/user.store.js +1 -1
- package/cjs/src/templates/app/main.js +1 -1
- package/cjs/src/templates/app/middleware.js +1 -1
- package/cjs/src/templates/app/nest/backendLogic.js +1 -1
- package/cjs/src/templates/app/nest/index.js +1 -1
- package/cjs/src/templates/app/next/frontendLogic.js +1 -1
- package/cjs/src/templates/app/next/index.js +1 -1
- package/cjs/src/templates/app/ui/UiComponent.js +1 -1
- package/cjs/src/templates/app/ui/index.js +1 -1
- package/cjs/src/templates/client.js +11 -5
- package/cjs/src/templates/crudPages/[__model__Id]/edit/page.js +1 -1
- package/cjs/src/templates/crudPages/[__model__Id]/page.js +1 -1
- package/cjs/src/templates/crudPages/new/page.js +1 -1
- package/cjs/src/templates/crudPages/page.js +1 -1
- package/cjs/src/templates/crudSinglePage/page.js +1 -1
- package/cjs/src/templates/index.js +1 -1
- package/cjs/src/templates/lib/__lib/extends/summary.constant.js +7 -5
- package/cjs/src/templates/lib/__lib/lib.constant.js +7 -11
- package/cjs/src/templates/lib/__lib/lib.dictionary.js +4 -4
- package/cjs/src/templates/lib/__lib/lib.document.js +4 -4
- package/cjs/src/templates/lib/__lib/lib.service.js +19 -24
- package/cjs/src/templates/lib/__lib/lib.signal.js +5 -4
- package/cjs/src/templates/lib/__lib/lib.store.js +3 -3
- package/cjs/src/templates/lib/cnst.js +1 -1
- package/cjs/src/templates/lib/cnst_.js +5 -5
- package/cjs/src/templates/lib/db.js +5 -5
- package/cjs/src/templates/lib/dict.js +5 -5
- package/cjs/src/templates/lib/fetch.js +6 -6
- package/cjs/src/templates/lib/sig.js +4 -8
- package/cjs/src/templates/lib/srv.js +5 -8
- package/cjs/src/templates/lib/st.js +3 -3
- package/cjs/src/templates/lib/store.js +7 -9
- package/cjs/src/templates/lib/usePage.js +1 -1
- package/cjs/src/templates/libRoot/akan.config.js +1 -1
- package/cjs/src/templates/libRoot/base/baseLogic.js +1 -1
- package/cjs/src/templates/libRoot/base/index.js +1 -1
- package/cjs/src/templates/libRoot/common/commonLogic.js +1 -1
- package/cjs/src/templates/libRoot/common/index.js +1 -1
- package/cjs/src/templates/libRoot/jest.config.js +1 -1
- package/cjs/src/templates/libRoot/lib/___libName__/__libName__.dictionary.js +1 -1
- package/cjs/src/templates/libRoot/lib/___libName__/__libName__.service.js +1 -1
- package/cjs/src/templates/libRoot/lib/___libName__/__libName__.store.js +1 -1
- package/cjs/src/templates/libRoot/lib/option.js +1 -1
- package/cjs/src/templates/libRoot/lib/setting/Setting.Template.js +6 -19
- package/cjs/src/templates/libRoot/lib/setting/Setting.Unit.js +3 -3
- package/cjs/src/templates/libRoot/lib/setting/Setting.Util.js +8 -2
- package/cjs/src/templates/libRoot/lib/setting/Setting.View.js +4 -7
- package/cjs/src/templates/libRoot/lib/setting/Setting.Zone.js +2 -8
- package/cjs/src/templates/libRoot/lib/setting/setting.constant.js +1 -1
- package/cjs/src/templates/libRoot/lib/setting/setting.dictionary.js +1 -1
- package/cjs/src/templates/libRoot/lib/setting/setting.document.js +1 -1
- package/cjs/src/templates/libRoot/lib/setting/setting.service.js +1 -1
- package/cjs/src/templates/libRoot/lib/setting/setting.signal.js +1 -1
- package/cjs/src/templates/libRoot/lib/setting/setting.store.js +1 -1
- package/cjs/src/templates/libRoot/lib/summary/Summary.Template.js +5 -4
- package/cjs/src/templates/libRoot/lib/summary/Summary.Unit.js +4 -5
- package/cjs/src/templates/libRoot/lib/summary/Summary.Util.js +10 -3
- package/cjs/src/templates/libRoot/lib/summary/Summary.View.js +5 -9
- package/cjs/src/templates/libRoot/lib/summary/Summary.Zone.js +2 -4
- package/cjs/src/templates/libRoot/lib/summary/summary.constant.js +1 -1
- package/cjs/src/templates/libRoot/lib/summary/summary.dictionary.js +1 -1
- package/cjs/src/templates/libRoot/lib/summary/summary.document.js +1 -1
- package/cjs/src/templates/libRoot/lib/summary/summary.service.js +1 -1
- package/cjs/src/templates/libRoot/lib/summary/summary.signal.js +1 -1
- package/cjs/src/templates/libRoot/lib/summary/summary.store.js +1 -1
- package/cjs/src/templates/libRoot/lib/user/User.Template.js +2 -3
- package/cjs/src/templates/libRoot/lib/user/User.Unit.js +4 -5
- package/cjs/src/templates/libRoot/lib/user/User.Util.js +8 -29
- package/cjs/src/templates/libRoot/lib/user/User.View.js +2 -4
- package/cjs/src/templates/libRoot/lib/user/User.Zone.js +6 -3
- package/cjs/src/templates/libRoot/lib/user/user.constant.js +1 -1
- package/cjs/src/templates/libRoot/lib/user/user.dictionary.js +1 -1
- package/cjs/src/templates/libRoot/lib/user/user.document.js +1 -1
- package/cjs/src/templates/libRoot/lib/user/user.service.js +1 -1
- package/cjs/src/templates/libRoot/lib/user/user.signal.js +1 -1
- package/cjs/src/templates/libRoot/lib/user/user.signal.spec.js +1 -1
- package/cjs/src/templates/libRoot/lib/user/user.signal.test.js +1 -1
- package/cjs/src/templates/libRoot/lib/user/user.store.js +1 -1
- package/cjs/src/templates/libRoot/nest/backendLogic.js +1 -1
- package/cjs/src/templates/libRoot/nest/index.js +1 -1
- package/cjs/src/templates/libRoot/next/frontendLogic.js +1 -1
- package/cjs/src/templates/libRoot/next/index.js +1 -1
- package/cjs/src/templates/libRoot/ui/index.js +1 -1
- package/cjs/src/templates/module/__Model__.Template.js +1 -1
- package/cjs/src/templates/module/__Model__.Unit.js +1 -1
- package/cjs/src/templates/module/__Model__.Util.js +1 -1
- package/cjs/src/templates/module/__Model__.View.js +1 -1
- package/cjs/src/templates/module/__Model__.Zone.js +1 -1
- package/cjs/src/templates/module/__model__.constant.js +1 -1
- package/cjs/src/templates/module/__model__.dictionary.js +1 -1
- package/cjs/src/templates/module/__model__.document.js +1 -1
- package/cjs/src/templates/module/__model__.service.js +1 -1
- package/cjs/src/templates/module/__model__.signal.js +1 -1
- package/cjs/src/templates/module/__model__.signal.spec.js +1 -1
- package/cjs/src/templates/module/__model__.signal.test.js +1 -1
- package/cjs/src/templates/module/__model__.store.js +1 -1
- package/cjs/src/templates/module/index.js +1 -1
- package/cjs/src/templates/{libRoot/lib/user → moduleRoot}/index.js +23 -35
- package/cjs/src/templates/server.js +31 -13
- package/cjs/src/templates/workspaceRoot/.gitignore.template +2 -2
- package/esm/index.js +926 -533
- package/esm/src/guidelines/databaseModule/databaseModule.instruction.md +3 -50
- package/esm/src/guidelines/modelService/modelService.generate.json +3 -10
- package/esm/src/guidelines/scalarModule/scalarModule.instruction.md +0 -3
- package/esm/src/templates/__scalar/__model__/__model__.constant.js +1 -1
- package/esm/src/templates/__scalar/__model__/__model__.dictionary.js +1 -1
- package/esm/src/templates/__scalar/__model__/__model__.document.js +1 -1
- package/esm/src/templates/app/akan.config.js +1 -1
- package/esm/src/templates/app/app/[lang]/admin/page.js +5 -5
- package/esm/src/templates/app/app/[lang]/layout.js +1 -1
- package/esm/src/templates/app/app/[lang]/page.js +1 -1
- package/esm/src/templates/app/app/csr.js +1 -1
- package/esm/src/templates/app/app/layout.js +1 -1
- package/esm/src/templates/app/app/robots.js +1 -1
- package/esm/src/templates/app/app/sitemap.js +1 -1
- package/esm/src/templates/app/base/baseLogic.js +1 -1
- package/esm/src/templates/app/base/index.js +1 -1
- package/esm/src/templates/app/common/commonLogic.js +1 -1
- package/esm/src/templates/app/common/index.js +1 -1
- package/esm/src/templates/app/env/env.client.js +1 -1
- package/esm/src/templates/app/env/env.client.type.js +1 -1
- package/esm/src/templates/app/env/env.server.js +1 -1
- package/esm/src/templates/app/jest.config.js +1 -1
- package/esm/src/templates/app/lib/___appName__/__appName__.dictionary.js +1 -1
- package/esm/src/templates/app/lib/___appName__/__appName__.service.js +1 -1
- package/esm/src/templates/app/lib/___appName__/__appName__.store.js +1 -1
- package/esm/src/templates/app/lib/option.js +1 -1
- package/esm/src/templates/app/lib/setting/Setting.Template.js +6 -19
- package/esm/src/templates/app/lib/setting/Setting.Unit.js +3 -3
- package/esm/src/templates/app/lib/setting/Setting.Util.js +8 -2
- package/esm/src/templates/app/lib/setting/Setting.View.js +4 -7
- package/esm/src/templates/app/lib/setting/Setting.Zone.js +2 -8
- package/esm/src/templates/app/lib/setting/setting.constant.js +1 -1
- package/esm/src/templates/app/lib/setting/setting.dictionary.js +1 -1
- package/esm/src/templates/app/lib/setting/setting.document.js +1 -1
- package/esm/src/templates/app/lib/setting/setting.service.js +1 -1
- package/esm/src/templates/app/lib/setting/setting.signal.js +1 -1
- package/esm/src/templates/app/lib/setting/setting.store.js +1 -1
- package/esm/src/templates/app/lib/summary/Summary.Template.js +5 -4
- package/esm/src/templates/app/lib/summary/Summary.Unit.js +4 -5
- package/esm/src/templates/app/lib/summary/Summary.Util.js +10 -3
- package/esm/src/templates/app/lib/summary/Summary.View.js +5 -9
- package/esm/src/templates/app/lib/summary/Summary.Zone.js +2 -4
- package/esm/src/templates/app/lib/summary/summary.constant.js +1 -1
- package/esm/src/templates/app/lib/summary/summary.dictionary.js +1 -1
- package/esm/src/templates/app/lib/summary/summary.document.js +1 -1
- package/esm/src/templates/app/lib/summary/summary.service.js +1 -1
- package/esm/src/templates/app/lib/summary/summary.signal.js +1 -1
- package/esm/src/templates/app/lib/summary/summary.store.js +1 -1
- package/esm/src/templates/app/lib/user/User.Template.js +2 -3
- package/esm/src/templates/app/lib/user/User.Unit.js +4 -5
- package/esm/src/templates/app/lib/user/User.Util.js +8 -29
- package/esm/src/templates/app/lib/user/User.View.js +2 -4
- package/esm/src/templates/app/lib/user/User.Zone.js +6 -3
- package/esm/src/templates/app/lib/user/user.constant.js +1 -1
- package/esm/src/templates/app/lib/user/user.dictionary.js +1 -1
- package/esm/src/templates/app/lib/user/user.document.js +1 -1
- package/esm/src/templates/app/lib/user/user.service.js +1 -1
- package/esm/src/templates/app/lib/user/user.signal.js +1 -1
- package/esm/src/templates/app/lib/user/user.signal.spec.js +1 -1
- package/esm/src/templates/app/lib/user/user.signal.test.js +1 -1
- package/esm/src/templates/app/lib/user/user.store.js +1 -1
- package/esm/src/templates/app/main.js +1 -1
- package/esm/src/templates/app/middleware.js +1 -1
- package/esm/src/templates/app/nest/backendLogic.js +1 -1
- package/esm/src/templates/app/nest/index.js +1 -1
- package/esm/src/templates/app/next/frontendLogic.js +1 -1
- package/esm/src/templates/app/next/index.js +1 -1
- package/esm/src/templates/app/ui/UiComponent.js +1 -1
- package/esm/src/templates/app/ui/index.js +1 -1
- package/esm/src/templates/client.js +11 -5
- package/esm/src/templates/crudPages/[__model__Id]/edit/page.js +1 -1
- package/esm/src/templates/crudPages/[__model__Id]/page.js +1 -1
- package/esm/src/templates/crudPages/new/page.js +1 -1
- package/esm/src/templates/crudPages/page.js +1 -1
- package/esm/src/templates/crudSinglePage/page.js +1 -1
- package/esm/src/templates/index.js +1 -1
- package/esm/src/templates/lib/__lib/extends/summary.constant.js +7 -5
- package/esm/src/templates/lib/__lib/lib.constant.js +7 -11
- package/esm/src/templates/lib/__lib/lib.dictionary.js +4 -4
- package/esm/src/templates/lib/__lib/lib.document.js +4 -4
- package/esm/src/templates/lib/__lib/lib.service.js +19 -24
- package/esm/src/templates/lib/__lib/lib.signal.js +5 -4
- package/esm/src/templates/lib/__lib/lib.store.js +3 -3
- package/esm/src/templates/lib/cnst.js +1 -1
- package/esm/src/templates/lib/cnst_.js +5 -5
- package/esm/src/templates/lib/db.js +5 -5
- package/esm/src/templates/lib/dict.js +5 -5
- package/esm/src/templates/lib/fetch.js +6 -6
- package/esm/src/templates/lib/sig.js +4 -8
- package/esm/src/templates/lib/srv.js +5 -8
- package/esm/src/templates/lib/st.js +3 -3
- package/esm/src/templates/lib/store.js +7 -9
- package/esm/src/templates/lib/usePage.js +1 -1
- package/esm/src/templates/libRoot/akan.config.js +1 -1
- package/esm/src/templates/libRoot/base/baseLogic.js +1 -1
- package/esm/src/templates/libRoot/base/index.js +1 -1
- package/esm/src/templates/libRoot/common/commonLogic.js +1 -1
- package/esm/src/templates/libRoot/common/index.js +1 -1
- package/esm/src/templates/libRoot/jest.config.js +1 -1
- package/esm/src/templates/libRoot/lib/___libName__/__libName__.dictionary.js +1 -1
- package/esm/src/templates/libRoot/lib/___libName__/__libName__.service.js +1 -1
- package/esm/src/templates/libRoot/lib/___libName__/__libName__.store.js +1 -1
- package/esm/src/templates/libRoot/lib/option.js +1 -1
- package/esm/src/templates/libRoot/lib/setting/Setting.Template.js +6 -19
- package/esm/src/templates/libRoot/lib/setting/Setting.Unit.js +3 -3
- package/esm/src/templates/libRoot/lib/setting/Setting.Util.js +8 -2
- package/esm/src/templates/libRoot/lib/setting/Setting.View.js +4 -7
- package/esm/src/templates/libRoot/lib/setting/Setting.Zone.js +2 -8
- package/esm/src/templates/libRoot/lib/setting/setting.constant.js +1 -1
- package/esm/src/templates/libRoot/lib/setting/setting.dictionary.js +1 -1
- package/esm/src/templates/libRoot/lib/setting/setting.document.js +1 -1
- package/esm/src/templates/libRoot/lib/setting/setting.service.js +1 -1
- package/esm/src/templates/libRoot/lib/setting/setting.signal.js +1 -1
- package/esm/src/templates/libRoot/lib/setting/setting.store.js +1 -1
- package/esm/src/templates/libRoot/lib/summary/Summary.Template.js +5 -4
- package/esm/src/templates/libRoot/lib/summary/Summary.Unit.js +4 -5
- package/esm/src/templates/libRoot/lib/summary/Summary.Util.js +10 -3
- package/esm/src/templates/libRoot/lib/summary/Summary.View.js +5 -9
- package/esm/src/templates/libRoot/lib/summary/Summary.Zone.js +2 -4
- package/esm/src/templates/libRoot/lib/summary/summary.constant.js +1 -1
- package/esm/src/templates/libRoot/lib/summary/summary.dictionary.js +1 -1
- package/esm/src/templates/libRoot/lib/summary/summary.document.js +1 -1
- package/esm/src/templates/libRoot/lib/summary/summary.service.js +1 -1
- package/esm/src/templates/libRoot/lib/summary/summary.signal.js +1 -1
- package/esm/src/templates/libRoot/lib/summary/summary.store.js +1 -1
- package/esm/src/templates/libRoot/lib/user/User.Template.js +2 -3
- package/esm/src/templates/libRoot/lib/user/User.Unit.js +4 -5
- package/esm/src/templates/libRoot/lib/user/User.Util.js +8 -29
- package/esm/src/templates/libRoot/lib/user/User.View.js +2 -4
- package/esm/src/templates/libRoot/lib/user/User.Zone.js +6 -3
- package/esm/src/templates/libRoot/lib/user/user.constant.js +1 -1
- package/esm/src/templates/libRoot/lib/user/user.dictionary.js +1 -1
- package/esm/src/templates/libRoot/lib/user/user.document.js +1 -1
- package/esm/src/templates/libRoot/lib/user/user.service.js +1 -1
- package/esm/src/templates/libRoot/lib/user/user.signal.js +1 -1
- package/esm/src/templates/libRoot/lib/user/user.signal.spec.js +1 -1
- package/esm/src/templates/libRoot/lib/user/user.signal.test.js +1 -1
- package/esm/src/templates/libRoot/lib/user/user.store.js +1 -1
- package/esm/src/templates/libRoot/nest/backendLogic.js +1 -1
- package/esm/src/templates/libRoot/nest/index.js +1 -1
- package/esm/src/templates/libRoot/next/frontendLogic.js +1 -1
- package/esm/src/templates/libRoot/next/index.js +1 -1
- package/esm/src/templates/libRoot/ui/index.js +1 -1
- package/esm/src/templates/module/__Model__.Template.js +1 -1
- package/esm/src/templates/module/__Model__.Unit.js +1 -1
- package/esm/src/templates/module/__Model__.Util.js +1 -1
- package/esm/src/templates/module/__Model__.View.js +1 -1
- package/esm/src/templates/module/__Model__.Zone.js +1 -1
- package/esm/src/templates/module/__model__.constant.js +1 -1
- package/esm/src/templates/module/__model__.dictionary.js +1 -1
- package/esm/src/templates/module/__model__.document.js +1 -1
- package/esm/src/templates/module/__model__.service.js +1 -1
- package/esm/src/templates/module/__model__.signal.js +1 -1
- package/esm/src/templates/module/__model__.signal.spec.js +1 -1
- package/esm/src/templates/module/__model__.signal.test.js +1 -1
- package/esm/src/templates/module/__model__.store.js +1 -1
- package/esm/src/templates/module/index.js +1 -1
- package/esm/src/templates/moduleRoot/index.js +29 -0
- package/esm/src/templates/server.js +31 -13
- package/esm/src/templates/workspaceRoot/.gitignore.template +2 -2
- package/package.json +1 -1
- package/src/application/application.runner.d.ts +2 -3
- package/src/application/application.script.d.ts +1 -1
- package/src/guidelines/databaseModule/databaseModule.instruction.md +3 -50
- package/src/guidelines/scalarModule/scalarModule.instruction.md +0 -3
- package/src/library/library.script.d.ts +1 -1
- package/src/package/package.runner.d.ts +1 -1
- package/src/package/package.script.d.ts +1 -1
- package/src/templates/__scalar/__model__/__model__.constant.d.ts +2 -2
- package/src/templates/__scalar/__model__/__model__.dictionary.d.ts +2 -2
- package/src/templates/__scalar/__model__/__model__.document.d.ts +2 -2
- package/src/templates/app/akan.config.d.ts +2 -2
- package/src/templates/app/app/[lang]/admin/page.d.ts +2 -2
- package/src/templates/app/app/[lang]/layout.d.ts +2 -2
- package/src/templates/app/app/[lang]/page.d.ts +2 -2
- package/src/templates/app/app/csr.d.ts +2 -2
- package/src/templates/app/app/layout.d.ts +2 -2
- package/src/templates/app/app/robots.d.ts +2 -2
- package/src/templates/app/app/sitemap.d.ts +2 -2
- package/src/templates/app/base/baseLogic.d.ts +2 -2
- package/src/templates/app/base/index.d.ts +2 -2
- package/src/templates/app/common/commonLogic.d.ts +2 -2
- package/src/templates/app/common/index.d.ts +2 -2
- package/src/templates/app/env/env.client.d.ts +2 -2
- package/src/templates/app/env/env.client.type.d.ts +2 -2
- package/src/templates/app/env/env.server.d.ts +2 -2
- package/src/templates/app/jest.config.d.ts +2 -2
- package/src/templates/app/lib/___appName__/__appName__.dictionary.d.ts +2 -2
- package/src/templates/app/lib/___appName__/__appName__.service.d.ts +2 -2
- package/src/templates/app/lib/___appName__/__appName__.store.d.ts +2 -2
- package/src/templates/app/lib/option.d.ts +2 -2
- package/src/templates/app/lib/setting/Setting.Template.d.ts +2 -2
- package/src/templates/app/lib/setting/Setting.Unit.d.ts +2 -2
- package/src/templates/app/lib/setting/Setting.Util.d.ts +2 -2
- package/src/templates/app/lib/setting/Setting.View.d.ts +2 -2
- package/src/templates/app/lib/setting/Setting.Zone.d.ts +2 -2
- package/src/templates/app/lib/setting/setting.constant.d.ts +2 -2
- package/src/templates/app/lib/setting/setting.dictionary.d.ts +2 -2
- package/src/templates/app/lib/setting/setting.document.d.ts +2 -2
- package/src/templates/app/lib/setting/setting.service.d.ts +2 -2
- package/src/templates/app/lib/setting/setting.signal.d.ts +2 -2
- package/src/templates/app/lib/setting/setting.store.d.ts +2 -2
- package/src/templates/app/lib/summary/Summary.Template.d.ts +2 -2
- package/src/templates/app/lib/summary/Summary.Unit.d.ts +2 -2
- package/src/templates/app/lib/summary/Summary.Util.d.ts +2 -2
- package/src/templates/app/lib/summary/Summary.View.d.ts +2 -2
- package/src/templates/app/lib/summary/Summary.Zone.d.ts +2 -2
- package/src/templates/app/lib/summary/summary.constant.d.ts +2 -2
- package/src/templates/app/lib/summary/summary.dictionary.d.ts +2 -2
- package/src/templates/app/lib/summary/summary.document.d.ts +2 -2
- package/src/templates/app/lib/summary/summary.service.d.ts +2 -2
- package/src/templates/app/lib/summary/summary.signal.d.ts +2 -2
- package/src/templates/app/lib/summary/summary.store.d.ts +2 -2
- package/src/templates/app/lib/user/User.Template.d.ts +2 -2
- package/src/templates/app/lib/user/User.Unit.d.ts +2 -2
- package/src/templates/app/lib/user/User.Util.d.ts +2 -2
- package/src/templates/app/lib/user/User.View.d.ts +2 -2
- package/src/templates/app/lib/user/User.Zone.d.ts +2 -2
- package/src/templates/app/lib/user/user.constant.d.ts +2 -2
- package/src/templates/app/lib/user/user.dictionary.d.ts +2 -2
- package/src/templates/app/lib/user/user.document.d.ts +2 -2
- package/src/templates/app/lib/user/user.service.d.ts +2 -2
- package/src/templates/app/lib/user/user.signal.d.ts +2 -2
- package/src/templates/app/lib/user/user.signal.spec.d.ts +2 -2
- package/src/templates/app/lib/user/user.signal.test.d.ts +2 -2
- package/src/templates/app/lib/user/user.store.d.ts +2 -2
- package/src/templates/app/main.d.ts +2 -2
- package/src/templates/app/middleware.d.ts +2 -2
- package/src/templates/app/nest/backendLogic.d.ts +2 -2
- package/src/templates/app/nest/index.d.ts +2 -2
- package/src/templates/app/next/frontendLogic.d.ts +2 -2
- package/src/templates/app/next/index.d.ts +2 -2
- package/src/templates/app/ui/UiComponent.d.ts +2 -2
- package/src/templates/app/ui/index.d.ts +2 -2
- package/src/templates/client.d.ts +2 -2
- package/src/templates/crudPages/[__model__Id]/edit/page.d.ts +2 -2
- package/src/templates/crudPages/[__model__Id]/page.d.ts +2 -2
- package/src/templates/crudPages/new/page.d.ts +2 -2
- package/src/templates/crudPages/page.d.ts +2 -2
- package/src/templates/crudSinglePage/page.d.ts +2 -2
- package/src/templates/index.d.ts +2 -2
- package/src/templates/lib/__lib/extends/summary.constant.d.ts +2 -2
- package/src/templates/lib/__lib/lib.constant.d.ts +2 -2
- package/src/templates/lib/__lib/lib.dictionary.d.ts +2 -2
- package/src/templates/lib/__lib/lib.document.d.ts +2 -2
- package/src/templates/lib/__lib/lib.service.d.ts +2 -2
- package/src/templates/lib/__lib/lib.signal.d.ts +2 -2
- package/src/templates/lib/__lib/lib.store.d.ts +2 -2
- package/src/templates/lib/cnst.d.ts +2 -2
- package/src/templates/lib/cnst_.d.ts +2 -2
- package/src/templates/lib/db.d.ts +2 -2
- package/src/templates/lib/dict.d.ts +2 -2
- package/src/templates/lib/fetch.d.ts +2 -2
- package/src/templates/lib/sig.d.ts +2 -2
- package/src/templates/lib/srv.d.ts +2 -2
- package/src/templates/lib/st.d.ts +2 -2
- package/src/templates/lib/store.d.ts +2 -2
- package/src/templates/lib/usePage.d.ts +2 -2
- package/src/templates/libRoot/akan.config.d.ts +1 -1
- package/src/templates/libRoot/base/baseLogic.d.ts +1 -1
- package/src/templates/libRoot/base/index.d.ts +1 -1
- package/src/templates/libRoot/common/commonLogic.d.ts +1 -1
- package/src/templates/libRoot/common/index.d.ts +1 -1
- package/src/templates/libRoot/jest.config.d.ts +2 -2
- package/src/templates/libRoot/lib/___libName__/__libName__.dictionary.d.ts +1 -1
- package/src/templates/libRoot/lib/___libName__/__libName__.service.d.ts +1 -1
- package/src/templates/libRoot/lib/___libName__/__libName__.store.d.ts +1 -1
- package/src/templates/libRoot/lib/option.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/Setting.Template.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/Setting.Unit.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/Setting.Util.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/Setting.View.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/Setting.Zone.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/setting.constant.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/setting.dictionary.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/setting.document.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/setting.service.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/setting.signal.d.ts +2 -2
- package/src/templates/libRoot/lib/setting/setting.store.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/Summary.Template.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/Summary.Unit.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/Summary.Util.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/Summary.View.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/Summary.Zone.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/summary.constant.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/summary.dictionary.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/summary.document.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/summary.service.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/summary.signal.d.ts +2 -2
- package/src/templates/libRoot/lib/summary/summary.store.d.ts +2 -2
- package/src/templates/libRoot/lib/user/User.Template.d.ts +2 -2
- package/src/templates/libRoot/lib/user/User.Unit.d.ts +2 -2
- package/src/templates/libRoot/lib/user/User.Util.d.ts +2 -2
- package/src/templates/libRoot/lib/user/User.View.d.ts +2 -2
- package/src/templates/libRoot/lib/user/User.Zone.d.ts +2 -2
- package/src/templates/libRoot/lib/user/user.constant.d.ts +2 -2
- package/src/templates/libRoot/lib/user/user.dictionary.d.ts +2 -2
- package/src/templates/libRoot/lib/user/user.document.d.ts +2 -2
- package/src/templates/libRoot/lib/user/user.service.d.ts +2 -2
- package/src/templates/libRoot/lib/user/user.signal.d.ts +2 -2
- package/src/templates/libRoot/lib/user/user.signal.spec.d.ts +2 -2
- package/src/templates/libRoot/lib/user/user.signal.test.d.ts +2 -2
- package/src/templates/libRoot/lib/user/user.store.d.ts +2 -2
- package/src/templates/libRoot/nest/backendLogic.d.ts +1 -1
- package/src/templates/libRoot/nest/index.d.ts +1 -1
- package/src/templates/libRoot/next/frontendLogic.d.ts +1 -1
- package/src/templates/libRoot/next/index.d.ts +1 -1
- package/src/templates/libRoot/ui/index.d.ts +1 -1
- package/src/templates/module/__Model__.Template.d.ts +2 -2
- package/src/templates/module/__Model__.Unit.d.ts +2 -2
- package/src/templates/module/__Model__.Util.d.ts +2 -2
- package/src/templates/module/__Model__.View.d.ts +2 -2
- package/src/templates/module/__Model__.Zone.d.ts +2 -2
- package/src/templates/module/__model__.constant.d.ts +2 -2
- package/src/templates/module/__model__.dictionary.d.ts +2 -2
- package/src/templates/module/__model__.document.d.ts +2 -2
- package/src/templates/module/__model__.service.d.ts +2 -2
- package/src/templates/module/__model__.signal.d.ts +2 -2
- package/src/templates/module/__model__.signal.spec.d.ts +2 -2
- package/src/templates/module/__model__.signal.test.d.ts +2 -2
- package/src/templates/module/__model__.store.d.ts +2 -2
- package/src/templates/module/index.d.ts +2 -2
- package/src/templates/moduleRoot/index.d.ts +11 -0
- package/src/templates/server.d.ts +2 -2
- package/cjs/src/templates/app/app/[lang]/unknown/page.js +0 -51
- package/cjs/src/templates/app/lib/___appName__/_server.js +0 -34
- package/cjs/src/templates/app/lib/setting/_server.js +0 -48
- package/cjs/src/templates/app/lib/setting/index.js +0 -61
- package/cjs/src/templates/app/lib/summary/_server.js +0 -48
- package/cjs/src/templates/app/lib/summary/index.js +0 -67
- package/cjs/src/templates/app/lib/user/_server.js +0 -48
- package/cjs/src/templates/app/lib/user/index.js +0 -61
- package/cjs/src/templates/lib/__scalar/_server.js +0 -39
- package/cjs/src/templates/libRoot/lib/___libName__/_server.js +0 -34
- package/cjs/src/templates/libRoot/lib/setting/_server.js +0 -48
- package/cjs/src/templates/libRoot/lib/setting/index.js +0 -61
- package/cjs/src/templates/libRoot/lib/summary/_server.js +0 -48
- package/cjs/src/templates/libRoot/lib/summary/index.js +0 -67
- package/cjs/src/templates/libRoot/lib/user/_server.js +0 -48
- package/cjs/src/templates/module/_server.js +0 -47
- package/esm/src/templates/app/app/[lang]/unknown/page.js +0 -31
- package/esm/src/templates/app/lib/___appName__/_server.js +0 -14
- package/esm/src/templates/app/lib/setting/_server.js +0 -28
- package/esm/src/templates/app/lib/setting/index.js +0 -41
- package/esm/src/templates/app/lib/summary/_server.js +0 -28
- package/esm/src/templates/app/lib/summary/index.js +0 -47
- package/esm/src/templates/app/lib/user/_server.js +0 -28
- package/esm/src/templates/app/lib/user/index.js +0 -41
- package/esm/src/templates/lib/__scalar/_server.js +0 -19
- package/esm/src/templates/libRoot/lib/___libName__/_server.js +0 -14
- package/esm/src/templates/libRoot/lib/setting/_server.js +0 -28
- package/esm/src/templates/libRoot/lib/setting/index.js +0 -41
- package/esm/src/templates/libRoot/lib/summary/_server.js +0 -28
- package/esm/src/templates/libRoot/lib/summary/index.js +0 -47
- package/esm/src/templates/libRoot/lib/user/_server.js +0 -28
- package/esm/src/templates/libRoot/lib/user/index.js +0 -41
- package/esm/src/templates/module/_server.js +0 -27
- package/src/templates/app/app/[lang]/unknown/page.d.ts +0 -9
- package/src/templates/app/lib/___appName__/_server.d.ts +0 -7
- package/src/templates/app/lib/setting/_server.d.ts +0 -6
- package/src/templates/app/lib/setting/index.d.ts +0 -9
- package/src/templates/app/lib/summary/_server.d.ts +0 -6
- package/src/templates/app/lib/summary/index.d.ts +0 -9
- package/src/templates/app/lib/user/_server.d.ts +0 -6
- package/src/templates/app/lib/user/index.d.ts +0 -9
- package/src/templates/lib/__scalar/_server.d.ts +0 -4
- package/src/templates/libRoot/lib/___libName__/_server.d.ts +0 -7
- package/src/templates/libRoot/lib/setting/_server.d.ts +0 -6
- package/src/templates/libRoot/lib/setting/index.d.ts +0 -9
- package/src/templates/libRoot/lib/summary/_server.d.ts +0 -6
- package/src/templates/libRoot/lib/summary/index.d.ts +0 -9
- package/src/templates/libRoot/lib/user/_server.d.ts +0 -6
- package/src/templates/libRoot/lib/user/index.d.ts +0 -9
- package/src/templates/module/_server.d.ts +0 -8
|
@@ -22,7 +22,6 @@ libs/shared/lib/[module-name]/
|
|
|
22
22
|
├── [ModuleName].Util.tsx // Utility components (dashboard, insights)
|
|
23
23
|
├── [ModuleName].View.tsx // Single item view components
|
|
24
24
|
├── [ModuleName].Zone.tsx // Main zone layout and routing
|
|
25
|
-
├── _server.ts // Module registration
|
|
26
25
|
├── [module-name].constant.ts // Model definitions
|
|
27
26
|
├── [module-name].dictionary.ts // Translations
|
|
28
27
|
├── [module-name].document.ts // Database schema
|
|
@@ -347,34 +346,7 @@ export const userDict = {
|
|
|
347
346
|
};
|
|
348
347
|
```
|
|
349
348
|
|
|
350
|
-
### 7.
|
|
351
|
-
|
|
352
|
-
Create module registration for the server:
|
|
353
|
-
|
|
354
|
-
```typescript
|
|
355
|
-
import { databaseModuleOf } from "@akanjs/server";
|
|
356
|
-
|
|
357
|
-
import { cnst } from "../cnst";
|
|
358
|
-
import * as db from "../db";
|
|
359
|
-
import type { ModulesOptions } from "../option";
|
|
360
|
-
import { allSrvs } from "../srv";
|
|
361
|
-
import { UserService } from "./user.service";
|
|
362
|
-
import { UserSignal } from "./user.signal";
|
|
363
|
-
|
|
364
|
-
export const registerUserModule = (option: ModulesOptions) =>
|
|
365
|
-
databaseModuleOf(
|
|
366
|
-
{
|
|
367
|
-
constant: cnst.userCnst,
|
|
368
|
-
database: db.userDb,
|
|
369
|
-
signal: UserSignal,
|
|
370
|
-
service: UserService,
|
|
371
|
-
uses: { securityConfig: option.securityConfig },
|
|
372
|
-
},
|
|
373
|
-
allSrvs
|
|
374
|
-
);
|
|
375
|
-
```
|
|
376
|
-
|
|
377
|
-
### 8. Create UI Components
|
|
349
|
+
### 7. Create UI Components
|
|
378
350
|
|
|
379
351
|
#### Template Component (`[ModuleName].Template.tsx`)
|
|
380
352
|
|
|
@@ -494,21 +466,8 @@ In your server bootstrap file:
|
|
|
494
466
|
|
|
495
467
|
```typescript
|
|
496
468
|
import { createNestApp } from "@akanjs/server";
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
const startServer = async () => {
|
|
501
|
-
const app = await createNestApp({
|
|
502
|
-
env: serverEnv,
|
|
503
|
-
registerModules: (options) => [
|
|
504
|
-
registerUserModule(options),
|
|
505
|
-
registerAdminModule(options),
|
|
506
|
-
// Register other modules...
|
|
507
|
-
],
|
|
508
|
-
});
|
|
509
|
-
|
|
510
|
-
return app;
|
|
511
|
-
};
|
|
469
|
+
|
|
470
|
+
====== outdated, ned to be rewrited ======
|
|
512
471
|
```
|
|
513
472
|
|
|
514
473
|
### 2. Using Services in Controllers or Other Services
|
|
@@ -625,36 +584,30 @@ export const Layout = () => (
|
|
|
625
584
|
## Best Practices
|
|
626
585
|
|
|
627
586
|
1. **Naming Conventions**
|
|
628
|
-
|
|
629
587
|
- Use PascalCase for classes and components (e.g., `UserService`, `User.Unit.tsx`)
|
|
630
588
|
- Use camelCase for files (e.g., `user.service.ts`, `user.document.ts`)
|
|
631
589
|
|
|
632
590
|
2. **Security**
|
|
633
|
-
|
|
634
591
|
- Use `@Field.Secret` for sensitive data like passwords
|
|
635
592
|
- Apply proper permission guards to queries and mutations (`@Query.Admin`, `@Mutation.Public`)
|
|
636
593
|
- Validate input data using the `validate` option in `@Field.Prop`
|
|
637
594
|
|
|
638
595
|
3. **Code Organization**
|
|
639
|
-
|
|
640
596
|
- Keep business logic in service files
|
|
641
597
|
- Use signals for API calls only, not for business logic
|
|
642
598
|
- Define reusable utility methods in document models
|
|
643
599
|
|
|
644
600
|
4. **Performance**
|
|
645
|
-
|
|
646
601
|
- Use dataloader pattern (`@Loader.ByField`) for efficient database access
|
|
647
602
|
- Create proper indexes in the middleware
|
|
648
603
|
- Use projections to limit returned fields when appropriate
|
|
649
604
|
|
|
650
605
|
5. **Testing**
|
|
651
|
-
|
|
652
606
|
- Create signal tests for each API endpoint
|
|
653
607
|
- Mock services for unit testing signals
|
|
654
608
|
- Use integration tests for testing complex workflows
|
|
655
609
|
|
|
656
610
|
6. **UI Components**
|
|
657
|
-
|
|
658
611
|
- Follow the separation between Template, Unit, View, and Zone components
|
|
659
612
|
- Make components reusable across different parts of the application
|
|
660
613
|
- Use dictionary files for all UI text to support internationalization
|
|
@@ -47,16 +47,9 @@
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"type": "example",
|
|
50
|
-
"description": "@
|
|
50
|
+
"description": "@Sig decorator examples",
|
|
51
51
|
"path": "{apps,libs}/*/lib/*/*.service.ts",
|
|
52
|
-
"filterText": "@
|
|
53
|
-
"sample": 1
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "example",
|
|
57
|
-
"description": "@Websocket decorator examples",
|
|
58
|
-
"path": "{apps,libs}/*/lib/*/*.service.ts",
|
|
59
|
-
"filterText": "@Websocket",
|
|
52
|
+
"filterText": "@Sig",
|
|
60
53
|
"sample": 1
|
|
61
54
|
},
|
|
62
55
|
{
|
|
@@ -149,7 +142,7 @@
|
|
|
149
142
|
"contents": [
|
|
150
143
|
"Purpose and role of model.service.ts files",
|
|
151
144
|
"Service structure and inheritance (DbService, LogService, MixSrvs)",
|
|
152
|
-
"Core decorators (@Service, @Srv, @Use, @Db, @
|
|
145
|
+
"Core decorators (@Service, @Srv, @Use, @Db, @Sig)",
|
|
153
146
|
"Lifecycle methods (onModuleInit, onModuleDestroy)",
|
|
154
147
|
"Scheduled tasks (@Cron, @Interval)",
|
|
155
148
|
"Database operations (CRUD, queries, search)",
|
|
@@ -22,7 +22,6 @@ Scalar modules provide reusable value objects for:
|
|
|
22
22
|
```
|
|
23
23
|
{domain}/lib/
|
|
24
24
|
└── __scalar/ // Special scalar directory
|
|
25
|
-
├── _server.ts // Module registration
|
|
26
25
|
└── [scalarName]/ // camelCase scalar name
|
|
27
26
|
├── [name].constant.ts // Schema definition
|
|
28
27
|
├── [name].dictionary.ts // I18n translations
|
|
@@ -54,7 +53,6 @@ Scalar modules provide reusable value objects for:
|
|
|
54
53
|
1. **Constant File**: Schema definition with typed fields and validation
|
|
55
54
|
2. **Dictionary File**: I18n translations for model metadata, fields and enums
|
|
56
55
|
3. **Document File**: Optional method extensions for data transformations
|
|
57
|
-
4. **Server Registration**: Aggregate and expose scalars through `_server.ts`
|
|
58
56
|
|
|
59
57
|
## Key Rules
|
|
60
58
|
|
|
@@ -62,7 +60,6 @@ Scalar modules provide reusable value objects for:
|
|
|
62
60
|
2. All fields require decorators (`@Field.Prop`, `@Field.Hidden`, etc.)
|
|
63
61
|
3. Dictionary must include all fields/enums with `modelName`/`modelDesc`
|
|
64
62
|
4. Use `satisfies ModelDictionary<Type>` for dictionary type safety
|
|
65
|
-
5. Register all scalars in `_server.ts` with `scalarModulesOf()`
|
|
66
63
|
|
|
67
64
|
## Best Practices
|
|
68
65
|
|
|
@@ -22,7 +22,7 @@ __export(model_constant_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(model_constant_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { Field, Model } from "@akanjs/constant";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(model_dictionary_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(model_dictionary_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { ModelDictionary } from "@akanjs/dictionary";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(model_document_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(model_document_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { by } from "@akanjs/document";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(akan_config_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(akan_config_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import type { AppConfig } from "@akanjs/config";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(page_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(page_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return {
|
|
27
27
|
filename: "page.tsx",
|
|
28
28
|
content: `
|
|
@@ -42,16 +42,16 @@ export default function Page() {
|
|
|
42
42
|
key: "data",
|
|
43
43
|
title: "Data",
|
|
44
44
|
menus: [
|
|
45
|
-
Admin.Menu.Admin,
|
|
46
|
-
User.Menu.Admin,
|
|
45
|
+
// Admin.Menu.Admin,
|
|
46
|
+
// User.Menu.Admin,
|
|
47
47
|
],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
key: "api",
|
|
51
51
|
title: "API Doc",
|
|
52
52
|
menus: [
|
|
53
|
-
Admin.Menu.Doc,
|
|
54
|
-
User.Menu.Doc,
|
|
53
|
+
// Admin.Menu.Doc,
|
|
54
|
+
// User.Menu.Doc,
|
|
55
55
|
],
|
|
56
56
|
},
|
|
57
57
|
]}
|
|
@@ -22,7 +22,7 @@ __export(robots_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(robots_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { MetadataRoute } from "next";
|
|
28
28
|
import { env } from "@${dict.appName}/env/env.client";
|
|
@@ -22,7 +22,7 @@ __export(sitemap_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(sitemap_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { MetadataRoute } from "next";
|
|
28
28
|
import { env } from "@${dict.appName}/env/env.client";
|
|
@@ -22,7 +22,7 @@ __export(baseLogic_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(baseLogic_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
// \uD604 \uB514\uB809\uD1A0\uB9AC\uC5D0\uC11C\uB294 \uD504\uB85C\uC81D\uD2B8 \uB0B4 \uC804\uCCB4\uC801\uC73C\uB85C \uC0AC\uC6A9\uB418\uB294 \uB85C\uC9C1\uC744 \uAD6C\uD604\uD558\uBA70, \uB530\uB77C\uC11C \uBC31/\uD504\uB860\uD2B8 \uBE44\uC758\uC874\uC801\uC778 pure js \uCF54\uB4DC\uB9CC \uAD6C\uD604 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
|
|
28
28
|
// common\uD3F4\uB354\uC640 \uB2E4\uB978\uC810\uC740, base \uCF54\uB4DC\uB294 \uC2DC\uC2A4\uD15C \uC804\uCCB4\uC5D0\uC11C import\uB418\uC5B4 \uC0AC\uC6A9\uB418\uBBC0\uB85C, \uAC00\uC7A5 \uD575\uC2EC\uC801\uC778 \uB85C\uC9C1\uACFC \uCD94\uC0C1\uD654\uB41C \uAE30\uB2A5\uB9CC \uAD6C\uD604\uD574\uC57C\uD569\uB2C8\uB2E4.
|
|
@@ -22,7 +22,7 @@ __export(commonLogic_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(commonLogic_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
// \uD604 \uB514\uB809\uD1A0\uB9AC\uC5D0\uC11C\uB294 \uD504\uB85C\uC81D\uD2B8 \uB0B4 \uC804\uCCB4\uC801\uC73C\uB85C \uC0AC\uC6A9\uB418\uB294 \uC138\uBD80\uC801\uC778 \uB85C\uC9C1\uC744 \uAD6C\uD604\uD558\uBA70, \uB530\uB77C\uC11C \uBC31/\uD504\uB860\uD2B8 \uBE44\uC758\uC874\uC801\uC778 pure js \uCF54\uB4DC\uB9CC \uAD6C\uD604 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
|
|
28
28
|
// base\uD3F4\uB354\uC640 \uB2E4\uB978\uC810\uC740, common \uCF54\uB4DC\uB294 \uC0AC\uC6A9\uD558\uB294 \uD30C\uC77C\uC5D0\uC11C\uB9CC import\uB418\uAE30 \uB54C\uBB38\uC5D0, \uC678\uBD80\uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C import\uD574\uC11C \uC0AC\uC6A9\uD558\uAC70\uB098 \uC0C1\uC138\uD55C \uB85C\uC9C1\uC744 \uAD6C\uD604\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
|
|
@@ -22,7 +22,7 @@ __export(env_client_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(env_client_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return `
|
|
27
27
|
import { env as debug } from "./env.client.debug";
|
|
28
28
|
import { env as develop } from "./env.client.develop";
|
|
@@ -22,7 +22,7 @@ __export(env_client_type_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(env_client_type_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return `
|
|
27
27
|
import type { BaseClientEnv } from "@akanjs/base";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(env_server_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(env_server_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return `
|
|
27
27
|
import { env as debug } from "./env.server.debug";
|
|
28
28
|
import { env as develop } from "./env.server.develop";
|
|
@@ -22,7 +22,7 @@ __export(jest_config_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(jest_config_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
//! will be replaced with akan.config.ts
|
|
28
28
|
import "tsconfig-paths/register";
|
|
@@ -22,7 +22,7 @@ __export(appName_dictionary_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(appName_dictionary_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
const dictionary = {} as const;
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(appName_service_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(appName_service_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { Cron } from "@akanjs/nest";
|
|
28
28
|
import { LogService, Service, Srv } from "@akanjs/service";
|
|
@@ -22,7 +22,7 @@ __export(appName_store_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(appName_store_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { scalarStateOf, Store } from "@akanjs/store";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(option_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(option_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return `
|
|
27
27
|
import { useGlobals } from "@akanjs/server";
|
|
28
28
|
|
|
@@ -22,36 +22,23 @@ __export(Setting_Template_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(Setting_Template_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return {
|
|
27
27
|
filename: "Setting.Template.tsx",
|
|
28
28
|
content: `
|
|
29
29
|
"use client";
|
|
30
|
+
import { clsx } from "@akanjs/client";
|
|
30
31
|
import { st, usePage } from "@${dict.appName}/client";
|
|
31
32
|
|
|
32
33
|
interface GeneralProps {
|
|
33
|
-
|
|
34
|
+
className?: string;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
export const General = ({
|
|
37
|
+
export const General = ({ className }: GeneralProps) => {
|
|
37
38
|
const settingForm = st.use.settingForm();
|
|
38
39
|
const { l } = usePage();
|
|
39
|
-
return (
|
|
40
|
-
<div className="mb-4 flex items-center">
|
|
41
|
-
<div className="flex items-center gap-2">
|
|
42
|
-
<div className="w-32">{l("setting.resignupDays")}</div>
|
|
43
|
-
<input
|
|
44
|
-
type="number"
|
|
45
|
-
className="input"
|
|
46
|
-
value={settingForm.resignupDays}
|
|
47
|
-
onChange={(e) => {
|
|
48
|
-
st.do.setResignupDaysOnSetting(e.target.valueAsNumber);
|
|
49
|
-
}}
|
|
50
|
-
/>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
40
|
+
return <div className={clsx("", className)}></div>; // update your UI here
|
|
54
41
|
};
|
|
55
|
-
|
|
42
|
+
`
|
|
56
43
|
};
|
|
57
44
|
}
|
|
@@ -22,16 +22,16 @@ __export(Setting_Unit_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(Setting_Unit_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return {
|
|
27
27
|
filename: "Setting.Unit.tsx",
|
|
28
28
|
content: `
|
|
29
|
-
import { ModelProps } from "@akanjs/client";
|
|
29
|
+
import { clsx, ModelProps } from "@akanjs/client";
|
|
30
30
|
|
|
31
31
|
import { cnst } from "../cnst";
|
|
32
32
|
|
|
33
33
|
export const Card = ({ className, setting }: ModelProps<"setting", cnst.LightSetting>) => {
|
|
34
|
-
return <div>{setting.id}</div>;
|
|
34
|
+
return <div className={clsx("", className)}>{setting.id}</div>; // update your UI here
|
|
35
35
|
};
|
|
36
36
|
`
|
|
37
37
|
};
|
|
@@ -22,13 +22,19 @@ __export(Setting_Util_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(Setting_Util_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return {
|
|
27
27
|
filename: "Setting.Util.tsx",
|
|
28
28
|
content: `
|
|
29
29
|
"use client";
|
|
30
|
+
import { clsx } from "@akanjs/client";
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
interface CustomUtilProps {
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export const CustomUtil = ({ className }: CustomUtilProps) => {
|
|
36
|
+
return <div className={clsx("", className)}></div>; // update your UI here
|
|
37
|
+
};
|
|
32
38
|
`
|
|
33
39
|
};
|
|
34
40
|
}
|
|
@@ -22,7 +22,7 @@ __export(Setting_View_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(Setting_View_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return {
|
|
27
27
|
filename: "Setting.View.tsx",
|
|
28
28
|
content: `
|
|
@@ -39,13 +39,10 @@ interface SettingViewProps {
|
|
|
39
39
|
export const General = ({ className, setting }: SettingViewProps) => {
|
|
40
40
|
const { l } = usePage();
|
|
41
41
|
return (
|
|
42
|
-
<div className={clsx(
|
|
43
|
-
|
|
44
|
-
{l("setting.resignupDays")}: {setting.resignupDays}
|
|
45
|
-
</div>
|
|
42
|
+
<div className={clsx("", className)}>
|
|
43
|
+
{setting.id}
|
|
46
44
|
</div>
|
|
47
45
|
);
|
|
48
|
-
}
|
|
49
|
-
`
|
|
46
|
+
};`
|
|
50
47
|
};
|
|
51
48
|
}
|
|
@@ -22,21 +22,18 @@ __export(Setting_Zone_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(Setting_Zone_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return {
|
|
27
27
|
filename: "Setting.Zone.tsx",
|
|
28
28
|
content: `
|
|
29
29
|
"use client";
|
|
30
30
|
import { ModelsProps } from "@akanjs/client";
|
|
31
|
-
import { Setting, st, usePage } from "@${dict.appName}/client";
|
|
31
|
+
import { cnst, Setting, st, usePage } from "@${dict.appName}/client";
|
|
32
32
|
import { Model } from "@akanjs/ui";
|
|
33
33
|
import { Loading } from "@akanjs/ui";
|
|
34
34
|
import { useEffect } from "react";
|
|
35
35
|
import { AiOutlineEdit } from "react-icons/ai";
|
|
36
36
|
|
|
37
|
-
import { cnst } from "../cnst";
|
|
38
|
-
import { msg } from "../dict";
|
|
39
|
-
|
|
40
37
|
export const Admin = ({ sliceName = "setting" }: ModelsProps<cnst.Setting>) => {
|
|
41
38
|
const { l } = usePage();
|
|
42
39
|
const setting = st.use.setting();
|
|
@@ -60,9 +57,6 @@ export const Admin = ({ sliceName = "setting" }: ModelsProps<cnst.Setting>) => {
|
|
|
60
57
|
<Model.EditModal
|
|
61
58
|
sliceName="setting"
|
|
62
59
|
type="form"
|
|
63
|
-
onSubmit={() => {
|
|
64
|
-
msg.success("setting.updateSuccessMsg");
|
|
65
|
-
}}
|
|
66
60
|
onCancel={() => {
|
|
67
61
|
st.do.resetSetting(setting);
|
|
68
62
|
}}
|
|
@@ -22,7 +22,7 @@ __export(setting_constant_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(setting_constant_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { from, Model, via } from "@akanjs/constant";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(setting_dictionary_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(setting_dictionary_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { ExtendModelDictionary, SignalDictionary } from "@akanjs/dictionary";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(setting_document_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(setting_document_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return `
|
|
27
27
|
import { beyond, by, Database, into, type SchemaOf } from "@akanjs/document";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(setting_service_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(setting_service_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
27
|
import { ExtendedSettingService, Service } from "@akanjs/service";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(setting_signal_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(setting_signal_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return `
|
|
27
27
|
import { LogSignal, Signal } from "@akanjs/signal";
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ __export(setting_store_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(setting_store_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict = {}) {
|
|
26
26
|
return `
|
|
27
27
|
import { stateOf, Store } from "@akanjs/store";
|
|
28
28
|
|
|
@@ -22,21 +22,22 @@ __export(Summary_Template_exports, {
|
|
|
22
22
|
default: () => getContent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(Summary_Template_exports);
|
|
25
|
-
function getContent(
|
|
25
|
+
function getContent(scanInfo, dict) {
|
|
26
26
|
return {
|
|
27
27
|
filename: "Summary.Template.tsx",
|
|
28
28
|
content: `
|
|
29
29
|
"use client";
|
|
30
|
+
import { clsx } from "@akanjs/client";
|
|
30
31
|
import { st, usePage } from "@${dict.appName}/client";
|
|
31
32
|
|
|
32
33
|
interface SummaryEditProps {
|
|
33
|
-
|
|
34
|
+
className?: string;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
export const General = ({
|
|
37
|
+
export const General = ({ className }: SummaryEditProps) => {
|
|
37
38
|
const summaryForm = st.use.summaryForm();
|
|
38
39
|
const { l } = usePage();
|
|
39
|
-
return <div className="
|
|
40
|
+
return <div className={clsx("", className)}></div>; // update your UI here
|
|
40
41
|
};
|
|
41
42
|
`
|
|
42
43
|
};
|