@akanjs/cli 0.9.43 → 0.9.44
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 +46 -46
- package/cjs/src/guidelines/componentRule/componentRule.instruction.md +0 -18
- package/cjs/src/guidelines/cssRule/cssRule.instruction.md +2 -2
- package/cjs/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
- package/cjs/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
- package/cjs/src/guidelines/modelDictionary/modelDictionary.generate.json +0 -7
- package/cjs/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
- package/cjs/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
- package/cjs/src/guidelines/modelService/modelService.instruction.md +1 -1
- package/cjs/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
- package/cjs/src/guidelines/modelStore/modelStore.instruction.md +4 -4
- package/cjs/src/templates/app/lib/___appName__/__appName__.service.js +2 -5
- package/cjs/src/templates/app/lib/___appName__/__appName__.signal.js +2 -2
- package/cjs/src/templates/client.js +4 -5
- package/cjs/src/templates/index.js +2 -3
- package/cjs/src/templates/lib/__lib/lib.constant.js +22 -12
- package/cjs/src/templates/lib/__lib/lib.dictionary.js +15 -8
- package/cjs/src/templates/lib/__lib/lib.document.js +17 -7
- package/cjs/src/templates/lib/__lib/lib.service.js +14 -33
- package/cjs/src/templates/lib/cnst.js +19 -1
- package/cjs/src/templates/lib/db.js +3 -10
- package/cjs/src/templates/lib/dict.js +2 -2
- package/cjs/src/templates/lib/sig.js +20 -0
- package/cjs/src/templates/lib/st.js +13 -1
- package/cjs/src/templates/lib/usePage.js +2 -2
- package/cjs/src/templates/module/__model__.constant.js +0 -6
- package/cjs/src/templates/module/__model__.dictionary.js +1 -14
- 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 +2 -2
- package/cjs/src/templates/module/__model__.signal.spec.js +2 -2
- package/cjs/src/templates/module/__model__.signal.test.js +2 -2
- package/cjs/src/templates/module/__model__.store.js +2 -2
- package/cjs/src/templates/server.js +4 -3
- package/cjs/src/templates/workspaceRoot/.gitignore.template +0 -6
- package/esm/index.js +47 -47
- package/esm/src/guidelines/componentRule/componentRule.instruction.md +0 -18
- package/esm/src/guidelines/cssRule/cssRule.instruction.md +2 -2
- package/esm/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
- package/esm/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
- package/esm/src/guidelines/modelDictionary/modelDictionary.generate.json +0 -7
- package/esm/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
- package/esm/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
- package/esm/src/guidelines/modelService/modelService.instruction.md +1 -1
- package/esm/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
- package/esm/src/guidelines/modelStore/modelStore.instruction.md +4 -4
- package/esm/src/templates/app/lib/___appName__/__appName__.service.js +2 -5
- package/esm/src/templates/app/lib/___appName__/__appName__.signal.js +2 -2
- package/esm/src/templates/client.js +4 -5
- package/esm/src/templates/index.js +2 -3
- package/esm/src/templates/lib/__lib/lib.constant.js +22 -12
- package/esm/src/templates/lib/__lib/lib.dictionary.js +15 -8
- package/esm/src/templates/lib/__lib/lib.document.js +17 -7
- package/esm/src/templates/lib/__lib/lib.service.js +14 -33
- package/esm/src/templates/lib/cnst.js +19 -1
- package/esm/src/templates/lib/db.js +3 -10
- package/esm/src/templates/lib/dict.js +2 -2
- package/esm/src/templates/lib/sig.js +20 -0
- package/esm/src/templates/lib/st.js +13 -1
- package/esm/src/templates/lib/usePage.js +2 -2
- package/esm/src/templates/module/__model__.constant.js +0 -6
- package/esm/src/templates/module/__model__.dictionary.js +1 -14
- 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 +2 -2
- package/esm/src/templates/module/__model__.signal.spec.js +2 -2
- package/esm/src/templates/module/__model__.signal.test.js +2 -2
- package/esm/src/templates/module/__model__.store.js +2 -2
- package/esm/src/templates/server.js +4 -3
- package/esm/src/templates/workspaceRoot/.gitignore.template +0 -6
- package/package.json +1 -1
- package/src/guidelines/componentRule/componentRule.instruction.md +0 -18
- package/src/guidelines/cssRule/cssRule.instruction.md +2 -2
- package/src/guidelines/databaseModule/databaseModule.instruction.md +13 -7
- package/src/guidelines/modelConstant/modelConstant.instruction.md +0 -30
- package/src/guidelines/modelDictionary/modelDictionary.instruction.md +2 -38
- package/src/guidelines/modelDocument/modelDocument.instruction.md +1 -1
- package/src/guidelines/modelService/modelService.instruction.md +1 -1
- package/src/guidelines/modelSignal/modelSignal.instruction.md +4 -4
- package/src/guidelines/modelStore/modelStore.instruction.md +4 -4
- package/src/templates/lib/cnst.d.ts +1 -1
- package/cjs/src/templates/app/lib/setting/Setting.Template.js +0 -44
- package/cjs/src/templates/app/lib/setting/Setting.Unit.js +0 -38
- package/cjs/src/templates/app/lib/setting/Setting.Util.js +0 -40
- package/cjs/src/templates/app/lib/setting/Setting.View.js +0 -48
- package/cjs/src/templates/app/lib/setting/Setting.Zone.js +0 -74
- package/cjs/src/templates/app/lib/setting/setting.constant.js +0 -46
- package/cjs/src/templates/app/lib/setting/setting.dictionary.js +0 -46
- package/cjs/src/templates/app/lib/setting/setting.document.js +0 -48
- package/cjs/src/templates/app/lib/setting/setting.service.js +0 -37
- package/cjs/src/templates/app/lib/setting/setting.signal.js +0 -34
- package/cjs/src/templates/app/lib/setting/setting.store.js +0 -41
- package/cjs/src/templates/app/lib/summary/Summary.Template.js +0 -44
- package/cjs/src/templates/app/lib/summary/Summary.Unit.js +0 -37
- package/cjs/src/templates/app/lib/summary/Summary.Util.js +0 -40
- package/cjs/src/templates/app/lib/summary/Summary.View.js +0 -47
- package/cjs/src/templates/app/lib/summary/Summary.Zone.js +0 -40
- package/cjs/src/templates/app/lib/summary/summary.constant.js +0 -44
- package/cjs/src/templates/app/lib/summary/summary.dictionary.js +0 -49
- package/cjs/src/templates/app/lib/summary/summary.document.js +0 -48
- package/cjs/src/templates/app/lib/summary/summary.service.js +0 -34
- package/cjs/src/templates/app/lib/summary/summary.signal.js +0 -34
- package/cjs/src/templates/app/lib/summary/summary.store.js +0 -41
- package/cjs/src/templates/app/lib/user/User.Template.js +0 -64
- package/cjs/src/templates/app/lib/user/User.Unit.js +0 -37
- package/cjs/src/templates/app/lib/user/User.Util.js +0 -48
- package/cjs/src/templates/app/lib/user/User.View.js +0 -64
- package/cjs/src/templates/app/lib/user/User.Zone.js +0 -49
- package/cjs/src/templates/app/lib/user/user.constant.js +0 -67
- package/cjs/src/templates/app/lib/user/user.dictionary.js +0 -52
- package/cjs/src/templates/app/lib/user/user.document.js +0 -48
- package/cjs/src/templates/app/lib/user/user.service.js +0 -36
- package/cjs/src/templates/app/lib/user/user.signal.js +0 -34
- package/cjs/src/templates/app/lib/user/user.signal.spec.js +0 -37
- package/cjs/src/templates/app/lib/user/user.signal.test.js +0 -39
- package/cjs/src/templates/app/lib/user/user.store.js +0 -39
- package/cjs/src/templates/lib/__lib/extends/summary.constant.js +0 -45
- package/cjs/src/templates/lib/cnst_.js +0 -54
- package/cjs/src/templates/lib/fetch.js +0 -48
- package/cjs/src/templates/lib/store.js +0 -49
- package/cjs/src/templates/libRoot/lib/setting/Setting.Template.js +0 -44
- package/cjs/src/templates/libRoot/lib/setting/Setting.Unit.js +0 -38
- package/cjs/src/templates/libRoot/lib/setting/Setting.Util.js +0 -40
- package/cjs/src/templates/libRoot/lib/setting/Setting.View.js +0 -48
- package/cjs/src/templates/libRoot/lib/setting/Setting.Zone.js +0 -74
- package/cjs/src/templates/libRoot/lib/setting/setting.constant.js +0 -46
- package/cjs/src/templates/libRoot/lib/setting/setting.dictionary.js +0 -46
- package/cjs/src/templates/libRoot/lib/setting/setting.document.js +0 -48
- package/cjs/src/templates/libRoot/lib/setting/setting.service.js +0 -37
- package/cjs/src/templates/libRoot/lib/setting/setting.signal.js +0 -34
- package/cjs/src/templates/libRoot/lib/setting/setting.store.js +0 -41
- package/cjs/src/templates/libRoot/lib/summary/Summary.Template.js +0 -44
- package/cjs/src/templates/libRoot/lib/summary/Summary.Unit.js +0 -37
- package/cjs/src/templates/libRoot/lib/summary/Summary.Util.js +0 -40
- package/cjs/src/templates/libRoot/lib/summary/Summary.View.js +0 -47
- package/cjs/src/templates/libRoot/lib/summary/Summary.Zone.js +0 -40
- package/cjs/src/templates/libRoot/lib/summary/summary.constant.js +0 -44
- package/cjs/src/templates/libRoot/lib/summary/summary.dictionary.js +0 -49
- package/cjs/src/templates/libRoot/lib/summary/summary.document.js +0 -48
- package/cjs/src/templates/libRoot/lib/summary/summary.service.js +0 -34
- package/cjs/src/templates/libRoot/lib/summary/summary.signal.js +0 -34
- package/cjs/src/templates/libRoot/lib/summary/summary.store.js +0 -41
- package/cjs/src/templates/libRoot/lib/user/User.Template.js +0 -64
- package/cjs/src/templates/libRoot/lib/user/User.Unit.js +0 -37
- package/cjs/src/templates/libRoot/lib/user/User.Util.js +0 -48
- package/cjs/src/templates/libRoot/lib/user/User.View.js +0 -64
- package/cjs/src/templates/libRoot/lib/user/User.Zone.js +0 -50
- package/cjs/src/templates/libRoot/lib/user/user.constant.js +0 -67
- package/cjs/src/templates/libRoot/lib/user/user.dictionary.js +0 -52
- package/cjs/src/templates/libRoot/lib/user/user.document.js +0 -48
- package/cjs/src/templates/libRoot/lib/user/user.service.js +0 -36
- package/cjs/src/templates/libRoot/lib/user/user.signal.js +0 -34
- package/cjs/src/templates/libRoot/lib/user/user.signal.spec.js +0 -37
- package/cjs/src/templates/libRoot/lib/user/user.signal.test.js +0 -39
- package/cjs/src/templates/libRoot/lib/user/user.store.js +0 -39
- package/esm/src/templates/app/lib/setting/Setting.Template.js +0 -24
- package/esm/src/templates/app/lib/setting/Setting.Unit.js +0 -18
- package/esm/src/templates/app/lib/setting/Setting.Util.js +0 -20
- package/esm/src/templates/app/lib/setting/Setting.View.js +0 -28
- package/esm/src/templates/app/lib/setting/Setting.Zone.js +0 -54
- package/esm/src/templates/app/lib/setting/setting.constant.js +0 -26
- package/esm/src/templates/app/lib/setting/setting.dictionary.js +0 -26
- package/esm/src/templates/app/lib/setting/setting.document.js +0 -28
- package/esm/src/templates/app/lib/setting/setting.service.js +0 -17
- package/esm/src/templates/app/lib/setting/setting.signal.js +0 -14
- package/esm/src/templates/app/lib/setting/setting.store.js +0 -21
- package/esm/src/templates/app/lib/summary/Summary.Template.js +0 -24
- package/esm/src/templates/app/lib/summary/Summary.Unit.js +0 -17
- package/esm/src/templates/app/lib/summary/Summary.Util.js +0 -20
- package/esm/src/templates/app/lib/summary/Summary.View.js +0 -27
- package/esm/src/templates/app/lib/summary/Summary.Zone.js +0 -20
- package/esm/src/templates/app/lib/summary/summary.constant.js +0 -24
- package/esm/src/templates/app/lib/summary/summary.dictionary.js +0 -29
- package/esm/src/templates/app/lib/summary/summary.document.js +0 -28
- package/esm/src/templates/app/lib/summary/summary.service.js +0 -14
- package/esm/src/templates/app/lib/summary/summary.signal.js +0 -14
- package/esm/src/templates/app/lib/summary/summary.store.js +0 -21
- package/esm/src/templates/app/lib/user/User.Template.js +0 -44
- package/esm/src/templates/app/lib/user/User.Unit.js +0 -17
- package/esm/src/templates/app/lib/user/User.Util.js +0 -28
- package/esm/src/templates/app/lib/user/User.View.js +0 -44
- package/esm/src/templates/app/lib/user/User.Zone.js +0 -29
- package/esm/src/templates/app/lib/user/user.constant.js +0 -47
- package/esm/src/templates/app/lib/user/user.dictionary.js +0 -32
- package/esm/src/templates/app/lib/user/user.document.js +0 -28
- package/esm/src/templates/app/lib/user/user.service.js +0 -16
- package/esm/src/templates/app/lib/user/user.signal.js +0 -14
- package/esm/src/templates/app/lib/user/user.signal.spec.js +0 -17
- package/esm/src/templates/app/lib/user/user.signal.test.js +0 -19
- package/esm/src/templates/app/lib/user/user.store.js +0 -19
- package/esm/src/templates/lib/__lib/extends/summary.constant.js +0 -25
- package/esm/src/templates/lib/cnst_.js +0 -34
- package/esm/src/templates/lib/fetch.js +0 -28
- package/esm/src/templates/lib/store.js +0 -29
- package/esm/src/templates/libRoot/lib/setting/Setting.Template.js +0 -24
- package/esm/src/templates/libRoot/lib/setting/Setting.Unit.js +0 -18
- package/esm/src/templates/libRoot/lib/setting/Setting.Util.js +0 -20
- package/esm/src/templates/libRoot/lib/setting/Setting.View.js +0 -28
- package/esm/src/templates/libRoot/lib/setting/Setting.Zone.js +0 -54
- package/esm/src/templates/libRoot/lib/setting/setting.constant.js +0 -26
- package/esm/src/templates/libRoot/lib/setting/setting.dictionary.js +0 -26
- package/esm/src/templates/libRoot/lib/setting/setting.document.js +0 -28
- package/esm/src/templates/libRoot/lib/setting/setting.service.js +0 -17
- package/esm/src/templates/libRoot/lib/setting/setting.signal.js +0 -14
- package/esm/src/templates/libRoot/lib/setting/setting.store.js +0 -21
- package/esm/src/templates/libRoot/lib/summary/Summary.Template.js +0 -24
- package/esm/src/templates/libRoot/lib/summary/Summary.Unit.js +0 -17
- package/esm/src/templates/libRoot/lib/summary/Summary.Util.js +0 -20
- package/esm/src/templates/libRoot/lib/summary/Summary.View.js +0 -27
- package/esm/src/templates/libRoot/lib/summary/Summary.Zone.js +0 -20
- package/esm/src/templates/libRoot/lib/summary/summary.constant.js +0 -24
- package/esm/src/templates/libRoot/lib/summary/summary.dictionary.js +0 -29
- package/esm/src/templates/libRoot/lib/summary/summary.document.js +0 -28
- package/esm/src/templates/libRoot/lib/summary/summary.service.js +0 -14
- package/esm/src/templates/libRoot/lib/summary/summary.signal.js +0 -14
- package/esm/src/templates/libRoot/lib/summary/summary.store.js +0 -21
- package/esm/src/templates/libRoot/lib/user/User.Template.js +0 -44
- package/esm/src/templates/libRoot/lib/user/User.Unit.js +0 -17
- package/esm/src/templates/libRoot/lib/user/User.Util.js +0 -28
- package/esm/src/templates/libRoot/lib/user/User.View.js +0 -44
- package/esm/src/templates/libRoot/lib/user/User.Zone.js +0 -30
- package/esm/src/templates/libRoot/lib/user/user.constant.js +0 -47
- package/esm/src/templates/libRoot/lib/user/user.dictionary.js +0 -32
- package/esm/src/templates/libRoot/lib/user/user.document.js +0 -28
- package/esm/src/templates/libRoot/lib/user/user.service.js +0 -16
- package/esm/src/templates/libRoot/lib/user/user.signal.js +0 -14
- package/esm/src/templates/libRoot/lib/user/user.signal.spec.js +0 -17
- package/esm/src/templates/libRoot/lib/user/user.signal.test.js +0 -19
- package/esm/src/templates/libRoot/lib/user/user.store.js +0 -19
- package/src/templates/app/lib/setting/Setting.Template.d.ts +0 -9
- package/src/templates/app/lib/setting/Setting.Unit.d.ts +0 -9
- package/src/templates/app/lib/setting/Setting.Util.d.ts +0 -9
- package/src/templates/app/lib/setting/Setting.View.d.ts +0 -9
- package/src/templates/app/lib/setting/Setting.Zone.d.ts +0 -9
- package/src/templates/app/lib/setting/setting.constant.d.ts +0 -7
- package/src/templates/app/lib/setting/setting.dictionary.d.ts +0 -7
- package/src/templates/app/lib/setting/setting.document.d.ts +0 -6
- package/src/templates/app/lib/setting/setting.service.d.ts +0 -7
- package/src/templates/app/lib/setting/setting.signal.d.ts +0 -6
- package/src/templates/app/lib/setting/setting.store.d.ts +0 -6
- package/src/templates/app/lib/summary/Summary.Template.d.ts +0 -9
- package/src/templates/app/lib/summary/Summary.Unit.d.ts +0 -9
- package/src/templates/app/lib/summary/Summary.Util.d.ts +0 -9
- package/src/templates/app/lib/summary/Summary.View.d.ts +0 -9
- package/src/templates/app/lib/summary/Summary.Zone.d.ts +0 -9
- package/src/templates/app/lib/summary/summary.constant.d.ts +0 -7
- package/src/templates/app/lib/summary/summary.dictionary.d.ts +0 -7
- package/src/templates/app/lib/summary/summary.document.d.ts +0 -6
- package/src/templates/app/lib/summary/summary.service.d.ts +0 -7
- package/src/templates/app/lib/summary/summary.signal.d.ts +0 -6
- package/src/templates/app/lib/summary/summary.store.d.ts +0 -6
- package/src/templates/app/lib/user/User.Template.d.ts +0 -9
- package/src/templates/app/lib/user/User.Unit.d.ts +0 -9
- package/src/templates/app/lib/user/User.Util.d.ts +0 -9
- package/src/templates/app/lib/user/User.View.d.ts +0 -9
- package/src/templates/app/lib/user/User.Zone.d.ts +0 -9
- package/src/templates/app/lib/user/user.constant.d.ts +0 -7
- package/src/templates/app/lib/user/user.dictionary.d.ts +0 -7
- package/src/templates/app/lib/user/user.document.d.ts +0 -7
- package/src/templates/app/lib/user/user.service.d.ts +0 -7
- package/src/templates/app/lib/user/user.signal.d.ts +0 -6
- package/src/templates/app/lib/user/user.signal.spec.d.ts +0 -6
- package/src/templates/app/lib/user/user.signal.test.d.ts +0 -6
- package/src/templates/app/lib/user/user.store.d.ts +0 -6
- package/src/templates/lib/__lib/extends/summary.constant.d.ts +0 -4
- package/src/templates/lib/cnst_.d.ts +0 -4
- package/src/templates/lib/fetch.d.ts +0 -4
- package/src/templates/lib/store.d.ts +0 -4
- package/src/templates/libRoot/lib/setting/Setting.Template.d.ts +0 -9
- package/src/templates/libRoot/lib/setting/Setting.Unit.d.ts +0 -9
- package/src/templates/libRoot/lib/setting/Setting.Util.d.ts +0 -9
- package/src/templates/libRoot/lib/setting/Setting.View.d.ts +0 -9
- package/src/templates/libRoot/lib/setting/Setting.Zone.d.ts +0 -9
- package/src/templates/libRoot/lib/setting/setting.constant.d.ts +0 -7
- package/src/templates/libRoot/lib/setting/setting.dictionary.d.ts +0 -7
- package/src/templates/libRoot/lib/setting/setting.document.d.ts +0 -6
- package/src/templates/libRoot/lib/setting/setting.service.d.ts +0 -7
- package/src/templates/libRoot/lib/setting/setting.signal.d.ts +0 -6
- package/src/templates/libRoot/lib/setting/setting.store.d.ts +0 -6
- package/src/templates/libRoot/lib/summary/Summary.Template.d.ts +0 -9
- package/src/templates/libRoot/lib/summary/Summary.Unit.d.ts +0 -9
- package/src/templates/libRoot/lib/summary/Summary.Util.d.ts +0 -9
- package/src/templates/libRoot/lib/summary/Summary.View.d.ts +0 -9
- package/src/templates/libRoot/lib/summary/Summary.Zone.d.ts +0 -9
- package/src/templates/libRoot/lib/summary/summary.constant.d.ts +0 -7
- package/src/templates/libRoot/lib/summary/summary.dictionary.d.ts +0 -7
- package/src/templates/libRoot/lib/summary/summary.document.d.ts +0 -6
- package/src/templates/libRoot/lib/summary/summary.service.d.ts +0 -7
- package/src/templates/libRoot/lib/summary/summary.signal.d.ts +0 -6
- package/src/templates/libRoot/lib/summary/summary.store.d.ts +0 -6
- package/src/templates/libRoot/lib/user/User.Template.d.ts +0 -9
- package/src/templates/libRoot/lib/user/User.Unit.d.ts +0 -9
- package/src/templates/libRoot/lib/user/User.Util.d.ts +0 -9
- package/src/templates/libRoot/lib/user/User.View.d.ts +0 -9
- package/src/templates/libRoot/lib/user/User.Zone.d.ts +0 -9
- package/src/templates/libRoot/lib/user/user.constant.d.ts +0 -7
- package/src/templates/libRoot/lib/user/user.dictionary.d.ts +0 -7
- package/src/templates/libRoot/lib/user/user.document.d.ts +0 -7
- package/src/templates/libRoot/lib/user/user.service.d.ts +0 -7
- package/src/templates/libRoot/lib/user/user.signal.d.ts +0 -6
- package/src/templates/libRoot/lib/user/user.signal.spec.d.ts +0 -6
- package/src/templates/libRoot/lib/user/user.signal.test.d.ts +0 -6
- package/src/templates/libRoot/lib/user/user.store.d.ts +0 -6
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/User.View.tsx
|
|
20
|
-
var User_View_exports = {};
|
|
21
|
-
__export(User_View_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(User_View_exports);
|
|
25
|
-
function getContent(scanInfo, dict) {
|
|
26
|
-
return {
|
|
27
|
-
filename: "User.View.tsx",
|
|
28
|
-
content: `
|
|
29
|
-
import { clsx } from "@akanjs/client";
|
|
30
|
-
import { cnst, usePage } from "@${dict.libName}/client";
|
|
31
|
-
import { Avatar } from "@util/ui";
|
|
32
|
-
import { AiOutlineUser } from "react-icons/ai";
|
|
33
|
-
|
|
34
|
-
interface UserViewProps {
|
|
35
|
-
className?: string;
|
|
36
|
-
user: cnst.User;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export const General = ({ className, user }: UserViewProps) => {
|
|
40
|
-
const { l } = usePage();
|
|
41
|
-
return (
|
|
42
|
-
<div className={clsx("flex flex-col gap-4", className)}>
|
|
43
|
-
<div>
|
|
44
|
-
<div className="font-bold">Profile</div>
|
|
45
|
-
<div className="text-base">
|
|
46
|
-
<Avatar
|
|
47
|
-
className="flex items-center justify-center w-24 h-24"
|
|
48
|
-
icon={<AiOutlineUser className="text-4xl" />}
|
|
49
|
-
src={user.image?.url}
|
|
50
|
-
/>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div>
|
|
54
|
-
<div className="flex gap-2 items-center">
|
|
55
|
-
<div className="font-bold">Nickname</div>
|
|
56
|
-
</div>
|
|
57
|
-
<p className="text-base">{user.nickname}</p>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
`
|
|
63
|
-
};
|
|
64
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/User.Zone.tsx
|
|
20
|
-
var User_Zone_exports = {};
|
|
21
|
-
__export(User_Zone_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(User_Zone_exports);
|
|
25
|
-
function getContent(scanInfo, dict) {
|
|
26
|
-
return {
|
|
27
|
-
filename: "User.Zone.tsx",
|
|
28
|
-
content: `
|
|
29
|
-
"use client";
|
|
30
|
-
import { st, User } from "@${dict.libName}/client";
|
|
31
|
-
import { Model } from "@akanjs/ui";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
interface SelfProps {
|
|
35
|
-
className?: string;
|
|
36
|
-
}
|
|
37
|
-
export const Self = ({ className }: SelfProps) => {
|
|
38
|
-
const self = st.use.self();
|
|
39
|
-
const userModal = st.use.userModal();
|
|
40
|
-
return userModal === "edit" ? (
|
|
41
|
-
<Model.EditModal type="form" sliceName="user" submitOption={{ path: "self" }}>
|
|
42
|
-
<User.Template.General />
|
|
43
|
-
</Model.EditModal>
|
|
44
|
-
) : (
|
|
45
|
-
<User.View.General className={className} user={self} />
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
`
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.constant.ts
|
|
20
|
-
var user_constant_exports = {};
|
|
21
|
-
__export(user_constant_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(user_constant_exports);
|
|
25
|
-
function getContent(scanInfo, dict) {
|
|
26
|
-
return `
|
|
27
|
-
import { as, from, Model, sortOf, via } from "@akanjs/constant";
|
|
28
|
-
|
|
29
|
-
import {
|
|
30
|
-
libUserFilters,
|
|
31
|
-
libUserInputs,
|
|
32
|
-
libUserInsights,
|
|
33
|
-
libUsers,
|
|
34
|
-
libUserSummaries,
|
|
35
|
-
root,
|
|
36
|
-
} from "../__lib/lib.constant";
|
|
37
|
-
|
|
38
|
-
@Model.Input("${dict.LibName}UserInput")
|
|
39
|
-
export class ${dict.LibName}UserInput {}
|
|
40
|
-
|
|
41
|
-
@Model.Object("${dict.LibName}User")
|
|
42
|
-
export class ${dict.LibName}User extends as(${dict.LibName}UserInput) {}
|
|
43
|
-
|
|
44
|
-
@Model.Insight("${dict.LibName}UserInsight")
|
|
45
|
-
export class ${dict.LibName}UserInsight {}
|
|
46
|
-
|
|
47
|
-
@Model.Summary("${dict.LibName}UserSummary")
|
|
48
|
-
export class ${dict.LibName}UserSummary {}
|
|
49
|
-
|
|
50
|
-
@Model.Filter("${dict.LibName}UserFilter")
|
|
51
|
-
export class ${dict.LibName}UserFilter extends sortOf(root.User, {}) {}
|
|
52
|
-
|
|
53
|
-
export class UserInput extends from(...libUserInputs, ${dict.LibName}UserInput) {}
|
|
54
|
-
export class UserObject extends from(...libUsers, ${dict.LibName}User) {}
|
|
55
|
-
|
|
56
|
-
@Model.Light("LightUser")
|
|
57
|
-
export class LightUser extends via(UserObject, ["nickname", "image", "roles", "status"] as const) {}
|
|
58
|
-
|
|
59
|
-
@Model.Full("User")
|
|
60
|
-
export class User extends via(UserObject, LightUser, root.User, root.LightUser) {}
|
|
61
|
-
|
|
62
|
-
export class UserSummary extends from(...libUserSummaries, ${dict.LibName}UserSummary) {}
|
|
63
|
-
export class UserInsight extends from(...libUserInsights, ${dict.LibName}UserInsight) {}
|
|
64
|
-
|
|
65
|
-
export class UserFilter extends from(...libUserFilters, ${dict.LibName}UserFilter) {}
|
|
66
|
-
`;
|
|
67
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.dictionary.ts
|
|
20
|
-
var user_dictionary_exports = {};
|
|
21
|
-
__export(user_dictionary_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(user_dictionary_exports);
|
|
25
|
-
function getContent(scanInfo, dict) {
|
|
26
|
-
return `
|
|
27
|
-
import { ExtendModelDictionary, SignalDictionary, SummaryDictionary } from "@akanjs/dictionary";
|
|
28
|
-
|
|
29
|
-
import type { ${dict.Libname}User, ${dict.Libname}UserFilter, ${dict.Libname}UserInsight, ${dict.Libname}UserSummary } from "./user.constant";
|
|
30
|
-
import type { UserSignal } from "./user.signal";
|
|
31
|
-
|
|
32
|
-
const modelDictionary = {
|
|
33
|
-
// * ==================== Model ==================== * //
|
|
34
|
-
// * ==================== Model ==================== * //
|
|
35
|
-
// * ==================== Insight ==================== * //
|
|
36
|
-
// * ==================== Insight ==================== * //
|
|
37
|
-
// * ==================== Filter ==================== * //
|
|
38
|
-
// * ==================== Filter ==================== * //
|
|
39
|
-
// * ==================== Etc ==================== * //
|
|
40
|
-
// * ==================== Etc ==================== * //
|
|
41
|
-
} satisfies ExtendModelDictionary<${dict.Libname}User, ${dict.Libname}UserInsight, ${dict.Libname}UserFilter>;
|
|
42
|
-
|
|
43
|
-
export const userSummaryDictionary = {} satisfies SummaryDictionary<${dict.Libname}UserSummary>;
|
|
44
|
-
|
|
45
|
-
const signalDictionary = {
|
|
46
|
-
// * ==================== Endpoint ==================== * //
|
|
47
|
-
// * ==================== Endpoint ==================== * //
|
|
48
|
-
} satisfies SignalDictionary<UserSignal, ${dict.Libname}User>;
|
|
49
|
-
|
|
50
|
-
export const userDictionary = { ...modelDictionary, ...signalDictionary };
|
|
51
|
-
`;
|
|
52
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.document.ts
|
|
20
|
-
var user_document_exports = {};
|
|
21
|
-
__export(user_document_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(user_document_exports);
|
|
25
|
-
function getContent(scanInfo, dict) {
|
|
26
|
-
return `
|
|
27
|
-
import { beyond, by, Database, into, type SchemaOf } from "@akanjs/document";
|
|
28
|
-
|
|
29
|
-
import { rootUser } from "../__lib/lib.document";
|
|
30
|
-
import { cnst } from "../cnst";
|
|
31
|
-
|
|
32
|
-
@Database.Input(() => cnst.UserInput)
|
|
33
|
-
export class UserInput extends by(rootUser.Input, cnst.UserInput) {}
|
|
34
|
-
|
|
35
|
-
@Database.Document(() => cnst.User)
|
|
36
|
-
export class User extends by(rootUser.Doc, cnst.User) {}
|
|
37
|
-
|
|
38
|
-
@Database.Model(() => cnst.User)
|
|
39
|
-
export class UserModel extends into(User, cnst.userCnst) {}
|
|
40
|
-
|
|
41
|
-
@Database.Middleware(() => cnst.User)
|
|
42
|
-
export class UserMiddleware extends beyond(UserModel, User) {
|
|
43
|
-
onSchema(schema: SchemaOf<UserModel, User>) {
|
|
44
|
-
//
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.service.ts
|
|
20
|
-
var user_service_exports = {};
|
|
21
|
-
__export(user_service_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(user_service_exports);
|
|
25
|
-
function getContent(scanInfo, dict) {
|
|
26
|
-
return `
|
|
27
|
-
import { ExtendedUserService, Service } from "@akanjs/service";
|
|
28
|
-
|
|
29
|
-
import { LibUserService } from "../__lib/lib.service";
|
|
30
|
-
import { cnst } from "../cnst";
|
|
31
|
-
import * as db from "../db";
|
|
32
|
-
|
|
33
|
-
@Service("UserService")
|
|
34
|
-
export class UserService extends ExtendedUserService(db.userDb, LibUserService) {}
|
|
35
|
-
`;
|
|
36
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.signal.ts
|
|
20
|
-
var user_signal_exports = {};
|
|
21
|
-
__export(user_signal_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(user_signal_exports);
|
|
25
|
-
function getContent(scanInfo, dict = {}) {
|
|
26
|
-
return `
|
|
27
|
-
import { LogSignal, Signal } from "@akanjs/signal";
|
|
28
|
-
|
|
29
|
-
import { cnst, Srvs } from "../cnst";
|
|
30
|
-
|
|
31
|
-
@Signal(() => cnst.User)
|
|
32
|
-
export class UserSignal extends LogSignal(Srvs) {}
|
|
33
|
-
`;
|
|
34
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.signal.spec.ts
|
|
20
|
-
var user_signal_spec_exports = {};
|
|
21
|
-
__export(user_signal_spec_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(user_signal_spec_exports);
|
|
25
|
-
function getContent(scanInfo, dict = {}) {
|
|
26
|
-
return `
|
|
27
|
-
import * as adminSpec from "@shared/lib/admin/admin.signal.spec";
|
|
28
|
-
import * as userSpec from "@shared/lib/user/user.signal.spec";
|
|
29
|
-
|
|
30
|
-
import { cnst } from "../cnst";
|
|
31
|
-
import { fetch } from "../fetch";
|
|
32
|
-
|
|
33
|
-
export * from "@shared/lib/user/user.signal.spec";
|
|
34
|
-
export type UserAgent = userSpec.UserAgent<typeof fetch, cnst.User, cnst.UserInput>;
|
|
35
|
-
export type AdminAgent = adminSpec.AdminAgent<typeof fetch>;
|
|
36
|
-
`;
|
|
37
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.signal.test.ts
|
|
20
|
-
var user_signal_test_exports = {};
|
|
21
|
-
__export(user_signal_test_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(user_signal_test_exports);
|
|
25
|
-
function getContent(scanInfo, dict) {
|
|
26
|
-
return `
|
|
27
|
-
import * as userSpec from "@${dict.libName}/lib/user/user.signal.spec";
|
|
28
|
-
|
|
29
|
-
describe("User Signal", () => {
|
|
30
|
-
describe("Sign", () => {
|
|
31
|
-
let adminAgent: userSpec.AdminAgent;
|
|
32
|
-
let userAgent: userSpec.UserAgent;
|
|
33
|
-
it("can signup", async () => {
|
|
34
|
-
//
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/src/templates/libRoot/lib/user/user.store.ts
|
|
20
|
-
var user_store_exports = {};
|
|
21
|
-
__export(user_store_exports, {
|
|
22
|
-
default: () => getContent
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(user_store_exports);
|
|
25
|
-
function getContent(scanInfo, dict = {}) {
|
|
26
|
-
return `
|
|
27
|
-
import { stateOf, Store } from "@akanjs/store";
|
|
28
|
-
|
|
29
|
-
import { cnst } from "../cnst";
|
|
30
|
-
import { fetch, userGql } from "../fetch";
|
|
31
|
-
|
|
32
|
-
@Store(() => cnst.User)
|
|
33
|
-
export class UserStore extends stateOf(userGql, {
|
|
34
|
-
self: fetch.defaultUser as cnst.User,
|
|
35
|
-
}) {
|
|
36
|
-
//
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.Template.tsx
|
|
2
|
-
function getContent(scanInfo, dict) {
|
|
3
|
-
return {
|
|
4
|
-
filename: "Setting.Template.tsx",
|
|
5
|
-
content: `
|
|
6
|
-
"use client";
|
|
7
|
-
import { clsx } from "@akanjs/client";
|
|
8
|
-
import { st, usePage } from "@${dict.appName}/client";
|
|
9
|
-
|
|
10
|
-
interface GeneralProps {
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const General = ({ className }: GeneralProps) => {
|
|
15
|
-
const settingForm = st.use.settingForm();
|
|
16
|
-
const { l } = usePage();
|
|
17
|
-
return <div className={clsx("", className)}></div>; // update your UI here
|
|
18
|
-
};
|
|
19
|
-
`
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
getContent as default
|
|
24
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.Unit.tsx
|
|
2
|
-
function getContent(scanInfo, dict = {}) {
|
|
3
|
-
return {
|
|
4
|
-
filename: "Setting.Unit.tsx",
|
|
5
|
-
content: `
|
|
6
|
-
import { clsx, ModelProps } from "@akanjs/client";
|
|
7
|
-
|
|
8
|
-
import { cnst } from "../cnst";
|
|
9
|
-
|
|
10
|
-
export const Card = ({ className, setting }: ModelProps<"setting", cnst.LightSetting>) => {
|
|
11
|
-
return <div className={clsx("", className)}>{setting.id}</div>; // update your UI here
|
|
12
|
-
};
|
|
13
|
-
`
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
getContent as default
|
|
18
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.Util.tsx
|
|
2
|
-
function getContent(scanInfo, dict = {}) {
|
|
3
|
-
return {
|
|
4
|
-
filename: "Setting.Util.tsx",
|
|
5
|
-
content: `
|
|
6
|
-
"use client";
|
|
7
|
-
import { clsx } from "@akanjs/client";
|
|
8
|
-
|
|
9
|
-
interface CustomUtilProps {
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
export const CustomUtil = ({ className }: CustomUtilProps) => {
|
|
13
|
-
return <div className={clsx("", className)}></div>; // update your UI here
|
|
14
|
-
};
|
|
15
|
-
`
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
getContent as default
|
|
20
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.View.tsx
|
|
2
|
-
function getContent(scanInfo, dict) {
|
|
3
|
-
return {
|
|
4
|
-
filename: "Setting.View.tsx",
|
|
5
|
-
content: `
|
|
6
|
-
import { clsx } from "@akanjs/client";
|
|
7
|
-
import { usePage } from "@${dict.appName}/client";
|
|
8
|
-
|
|
9
|
-
import { cnst } from "../cnst";
|
|
10
|
-
|
|
11
|
-
interface SettingViewProps {
|
|
12
|
-
className?: string;
|
|
13
|
-
setting: cnst.Setting;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const General = ({ className, setting }: SettingViewProps) => {
|
|
17
|
-
const { l } = usePage();
|
|
18
|
-
return (
|
|
19
|
-
<div className={clsx("", className)}>
|
|
20
|
-
{setting.id}
|
|
21
|
-
</div>
|
|
22
|
-
);
|
|
23
|
-
};`
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
getContent as default
|
|
28
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// pkgs/@akanjs/cli/src/templates/app/lib/setting/Setting.Zone.tsx
|
|
2
|
-
function getContent(scanInfo, dict) {
|
|
3
|
-
return {
|
|
4
|
-
filename: "Setting.Zone.tsx",
|
|
5
|
-
content: `
|
|
6
|
-
"use client";
|
|
7
|
-
import { ModelsProps } from "@akanjs/client";
|
|
8
|
-
import { cnst, Setting, st, usePage } from "@${dict.appName}/client";
|
|
9
|
-
import { Model } from "@akanjs/ui";
|
|
10
|
-
import { Loading } from "@akanjs/ui";
|
|
11
|
-
import { useEffect } from "react";
|
|
12
|
-
import { AiOutlineEdit } from "react-icons/ai";
|
|
13
|
-
|
|
14
|
-
export const Admin = ({ sliceName = "setting" }: ModelsProps<cnst.Setting>) => {
|
|
15
|
-
const { l } = usePage();
|
|
16
|
-
const setting = st.use.setting();
|
|
17
|
-
const settingModal = st.use.settingModal();
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
void st.do.getActiveSetting();
|
|
20
|
-
}, []);
|
|
21
|
-
if (!setting) return <Loading.Skeleton active />;
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<div>
|
|
25
|
-
<div className="my-2 flex items-center gap-4 text-3xl">
|
|
26
|
-
{l("setting.modelName")}
|
|
27
|
-
{settingModal ? null : (
|
|
28
|
-
<button className="btn btn-sm" onClick={() => st.do.editSetting(setting.id)}>
|
|
29
|
-
<AiOutlineEdit /> {l("shared.edit")}
|
|
30
|
-
</button>
|
|
31
|
-
)}
|
|
32
|
-
</div>
|
|
33
|
-
{settingModal === "edit" ? (
|
|
34
|
-
<Model.EditModal
|
|
35
|
-
sliceName="setting"
|
|
36
|
-
type="form"
|
|
37
|
-
onCancel={() => {
|
|
38
|
-
st.do.resetSetting(setting);
|
|
39
|
-
}}
|
|
40
|
-
>
|
|
41
|
-
<Setting.Template.General />
|
|
42
|
-
</Model.EditModal>
|
|
43
|
-
) : (
|
|
44
|
-
<Setting.View.General setting={setting} />
|
|
45
|
-
)}
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
`
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
getContent as default
|
|
54
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// pkgs/@akanjs/cli/src/templates/app/lib/setting/setting.constant.ts
|
|
2
|
-
function getContent(scanInfo, dict) {
|
|
3
|
-
return `
|
|
4
|
-
import { from, Model, via } from "@akanjs/constant";
|
|
5
|
-
|
|
6
|
-
import { libSettingInputs, libSettings, root } from "../__lib/lib.constant";
|
|
7
|
-
|
|
8
|
-
@Model.Input("${dict.AppName}SettingInput")
|
|
9
|
-
export class ${dict.AppName}SettingInput {}
|
|
10
|
-
|
|
11
|
-
@Model.Input("SettingInput")
|
|
12
|
-
export class SettingInput extends from(...libSettingInputs, ${dict.AppName}SettingInput) {}
|
|
13
|
-
|
|
14
|
-
@Model.Object("SettingObject")
|
|
15
|
-
export class SettingObject extends from(...libSettings, SettingInput) {}
|
|
16
|
-
|
|
17
|
-
@Model.Light("LightSetting")
|
|
18
|
-
export class LightSetting extends via(SettingObject, ["status"] as const) {}
|
|
19
|
-
|
|
20
|
-
@Model.Full("Setting")
|
|
21
|
-
export class Setting extends via(SettingObject, LightSetting, root.Setting, root.LightSetting) {}
|
|
22
|
-
`;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
getContent as default
|
|
26
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// pkgs/@akanjs/cli/src/templates/app/lib/setting/setting.dictionary.ts
|
|
2
|
-
function getContent(scanInfo, dict) {
|
|
3
|
-
return `
|
|
4
|
-
import { ExtendModelDictionary, SignalDictionary } from "@akanjs/dictionary";
|
|
5
|
-
|
|
6
|
-
import type { ${dict.AppName}SettingInput } from "./setting.constant";
|
|
7
|
-
import type { SettingSignal } from "./setting.signal";
|
|
8
|
-
|
|
9
|
-
const modelDictionary = {
|
|
10
|
-
// * ==================== Model ==================== * //
|
|
11
|
-
// * ==================== Model ==================== * //
|
|
12
|
-
// * ==================== Etc ==================== * //
|
|
13
|
-
// * ==================== Etc ==================== * //
|
|
14
|
-
} satisfies ExtendModelDictionary<${dict.AppName}SettingInput>;
|
|
15
|
-
|
|
16
|
-
const signalDictionary = {
|
|
17
|
-
// * ==================== Endpoint ==================== * //
|
|
18
|
-
// * ==================== Endpoint ==================== * //
|
|
19
|
-
} satisfies SignalDictionary<SettingSignal, ${dict.AppName}SettingInput>;
|
|
20
|
-
|
|
21
|
-
export const settingDictionary = { ...modelDictionary, ...signalDictionary };
|
|
22
|
-
`;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
getContent as default
|
|
26
|
-
};
|