taon 18.0.25 → 18.0.26
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/README.md +112 -51
- package/browser/esm2022/lib/endpoint-context.mjs +4 -1
- package/browser/esm2022/lib/index.mjs +2 -2
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
- package/browser/fesm2022/taon.mjs +3 -0
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/models.d.ts +5 -0
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
- package/cli.js +11 -17
- package/cli.js.map +1 -1
- package/client/esm2022/lib/endpoint-context.mjs +4 -1
- package/client/esm2022/lib/index.mjs +2 -2
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
- package/client/fesm2022/taon.mjs +3 -0
- package/client/fesm2022/taon.mjs.map +1 -1
- package/client/lib/models.d.ts +5 -0
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
- package/index.js +15 -2
- package/index.js.map +1 -1
- package/lib/base-classes/base-abstract-entity.js +30 -28
- package/lib/base-classes/base-abstract-entity.js.map +1 -1
- package/lib/base-classes/base-class.js +9 -17
- package/lib/base-classes/base-class.js.map +1 -1
- package/lib/base-classes/base-context.js +4 -4
- package/lib/base-classes/base-context.js.map +1 -1
- package/lib/base-classes/base-controller.js +15 -15
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/base-classes/base-crud-controller.js +211 -329
- package/lib/base-classes/base-crud-controller.js.map +1 -1
- package/lib/base-classes/base-entity.js +15 -15
- package/lib/base-classes/base-entity.js.map +1 -1
- package/lib/base-classes/base-injector.js +99 -124
- package/lib/base-classes/base-injector.js.map +1 -1
- package/lib/base-classes/base-migration.js +15 -31
- package/lib/base-classes/base-migration.js.map +1 -1
- package/lib/base-classes/base-provider.js +3 -9
- package/lib/base-classes/base-provider.js.map +1 -1
- package/lib/base-classes/base-repository.js +310 -444
- package/lib/base-classes/base-repository.js.map +1 -1
- package/lib/base-classes/base-subscriber-for-entity.js +73 -73
- package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
- package/lib/base-classes/base.js +10 -10
- package/lib/base-classes/base.js.map +1 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/constants.js.map +1 -1
- package/lib/context-db-migrations.js +325 -581
- package/lib/context-db-migrations.js.map +1 -1
- package/lib/create-context.js +80 -109
- package/lib/create-context.js.map +1 -1
- package/lib/decorators/classes/controller-decorator.js +15 -13
- package/lib/decorators/classes/controller-decorator.js.map +1 -1
- package/lib/decorators/classes/entity-decorator.js +23 -20
- package/lib/decorators/classes/entity-decorator.js.map +1 -1
- package/lib/decorators/classes/migration-decorator.js +7 -13
- package/lib/decorators/classes/migration-decorator.js.map +1 -1
- package/lib/decorators/classes/provider-decorator.js +7 -13
- package/lib/decorators/classes/provider-decorator.js.map +1 -1
- package/lib/decorators/classes/repository-decorator.js +7 -13
- package/lib/decorators/classes/repository-decorator.js.map +1 -1
- package/lib/decorators/classes/subscriber-decorator.js +8 -13
- package/lib/decorators/classes/subscriber-decorator.js.map +1 -1
- package/lib/decorators/http/http-decorators.js +4 -4
- package/lib/decorators/http/http-decorators.js.map +1 -1
- package/lib/decorators/http/http-methods-decorators.js +19 -25
- package/lib/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib/decorators/http/http-params-decorators.js +7 -9
- package/lib/decorators/http/http-params-decorators.js.map +1 -1
- package/lib/dependency-injection/di-container.js +13 -18
- package/lib/dependency-injection/di-container.js.map +1 -1
- package/lib/endpoint-context.js +1196 -1543
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.js +102 -112
- package/lib/entity-process.js.map +1 -1
- package/lib/env.js +2 -2
- package/lib/env.js.map +1 -1
- package/lib/formly/formly-group-wrapper-component.js +45 -23
- package/lib/formly/formly-group-wrapper-component.js.map +1 -1
- package/lib/formly/formly-repeat-component.js +74 -27
- package/lib/formly/formly-repeat-component.js.map +1 -1
- package/lib/formly/formly.models.js.map +1 -1
- package/lib/formly/fromly.js +57 -61
- package/lib/formly/fromly.js.map +1 -1
- package/lib/formly/type-from-entity.js +11 -16
- package/lib/formly/type-from-entity.js.map +1 -1
- package/lib/get-response-value.js +22 -33
- package/lib/get-response-value.js.map +1 -1
- package/lib/helpers/class-helpers.js +62 -73
- package/lib/helpers/class-helpers.js.map +1 -1
- package/lib/helpers/taon-helpers.js +33 -31
- package/lib/helpers/taon-helpers.js.map +1 -1
- package/lib/index._auto-generated_.d.ts +1 -0
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.d.ts +1 -25
- package/lib/index.js +44 -41
- package/lib/index.js.map +1 -1
- package/lib/inject.js +15 -15
- package/lib/inject.js.map +1 -1
- package/lib/models.d.ts +5 -0
- package/lib/models.js +124 -100
- package/lib/models.js.map +1 -1
- package/lib/orm.js +13 -27
- package/lib/orm.js.map +1 -1
- package/lib/realtime/realtime-client.js +70 -65
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-core.js +48 -29
- package/lib/realtime/realtime-core.js.map +1 -1
- package/lib/realtime/realtime-server.js +81 -80
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime-strategy/index.js +18 -5
- package/lib/realtime/realtime-strategy/index.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js +132 -172
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js +158 -241
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js +18 -29
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy.js +9 -13
- package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -1
- package/lib/realtime/realtime-subs-manager.js +29 -30
- package/lib/realtime/realtime-subs-manager.js.map +1 -1
- package/lib/realtime/realtime.models.js.map +1 -1
- package/lib/storage.js +1 -1
- package/lib/storage.js.map +1 -1
- package/lib/symbols.js +62 -66
- package/lib/symbols.js.map +1 -1
- package/lib/ui/directives/index.js +2 -2
- package/lib/ui/directives/index.js.map +1 -1
- package/lib/ui/directives/view-mode.js.map +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +29 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +8 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +13 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js.map +1 -1
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +5 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +3 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +14 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +1 -1
- package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
- package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -1
- package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -1
- package/lib/ui/taon-notifications/index.js +15 -2
- package/lib/ui/taon-notifications/index.js.map +1 -1
- package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
- package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -1
- package/lib/ui/taon-progress-bar/index.js +2 -2
- package/lib/ui/taon-progress-bar/index.js.map +1 -1
- package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +2 -1
- package/lib/ui/taon-session-passcode/index.js +2 -2
- package/lib/ui/taon-session-passcode/index.js.map +1 -1
- package/lib/ui/taon-table/index.js +2 -2
- package/lib/ui/taon-table/index.js.map +1 -1
- package/lib/ui/taon.models.js.map +1 -1
- package/lib/validators.js +48 -16
- package/lib/validators.js.map +1 -1
- package/migrations/index.js +15 -2
- package/migrations/index.js.map +1 -1
- package/migrations/migrations_index._auto-generated_.d.ts +1 -0
- package/migrations/migrations_index._auto-generated_.js.map +1 -1
- package/old-app .d.ts +1 -0
- package/old-app .js +67 -78
- package/old-app .js.map +1 -1
- package/package.json +17 -64
- package/playground.d.ts +1 -0
- package/playground.js.map +1 -1
- package/src.d.ts +1 -1
- package/taon.jsonc +39 -42
- package/tmp-environment.json +8 -401
- package/websql/esm2022/lib/endpoint-context.mjs +4 -1
- package/websql/esm2022/lib/index.mjs +2 -2
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
- package/websql/fesm2022/taon.mjs +3 -0
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/models.d.ts +5 -0
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
- package/browser/package.json +0 -25
- package/websql/package.json +0 -25
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<p style="text-align: center;"><img src="./
|
|
1
|
+
<p style="text-align: center;"><img src="./images/logo-header-bold-taon.png" ></p>
|
|
2
2
|
|
|
3
3
|
<!-- cspell: disable-next-line -->
|
|
4
4
|
TAON **T**ypescript **A**ngular **O**rm **N**ode )
|
|
@@ -6,50 +6,90 @@ TAON **T**ypescript **A**ngular **O**rm **N**ode )
|
|
|
6
6
|
|
|
7
7
|
( BETA VERSION - MAJOR REFACTOR IN PROGRESS )
|
|
8
8
|
|
|
9
|
-
**Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework**) for
|
|
9
|
+
**Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework** & **cloud**) for
|
|
10
10
|
|
|
11
11
|
\+
|
|
12
|
-
[TypesScript](https://www.typescriptlang.org/)
|
|
12
|
+
[TypesScript](https://www.typescriptlang.org/) isomorphic libraries/backends/frontends
|
|
13
13
|
|
|
14
14
|
\+
|
|
15
|
-
[Angular](https://angular.io/)
|
|
15
|
+
[Angular](https://angular.io/) libraries and PWA-s
|
|
16
16
|
|
|
17
|
-
\+
|
|
18
|
-
- [sql.js](https://sql.js.org) -
|
|
19
|
-
- [sql.js](https://sql.js.org) -
|
|
20
|
-
- [mysql](https://www.mysql.com/) -
|
|
17
|
+
\+ Databases with Orm ([TypeORM](https://typeorm.io/)) <br>
|
|
18
|
+
- [sql.js](https://sql.js.org) - NodeJs Server Mode <br>
|
|
19
|
+
- [sql.js](https://sql.js.org) - WEBSQL Server Mode (backend in browser) <br>
|
|
20
|
+
- [mysql](https://www.mysql.com/) - Mysql Server Mode (inside docker) <br>
|
|
21
21
|
|
|
22
22
|
\+
|
|
23
|
-
[NodeJS](https://nodejs.org/en/)
|
|
23
|
+
[NodeJS](https://nodejs.org/en/) backends
|
|
24
24
|
|
|
25
25
|
\+
|
|
26
|
-
[
|
|
26
|
+
[Electron](https://www.electronjs.org/) desktop apps
|
|
27
27
|
|
|
28
28
|
\+
|
|
29
|
-
[
|
|
29
|
+
[Ionic](https://www.electronjs.org/) mobile apps
|
|
30
30
|
|
|
31
31
|
\+
|
|
32
|
-
[
|
|
32
|
+
[Visual Studio Code](https://www.electronjs.org/) plugins
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
\+ Documentation:<br>
|
|
35
|
+
- [MkDocs](https://www.mkdocs.org/) beautifull material wrapper for *.md docs files <br>
|
|
36
|
+
- [Storybook](https://storybook.js.org/docs/get-started/angular) ui elements documentation <br>
|
|
37
|
+
- [Compodoc](https://compodoc.app/) docs from comments <br>
|
|
38
|
+
|
|
39
|
+
backend/frontend **[*isomorphic](https://en.wikipedia.org/wiki/Isomorphic_JavaScript)** apps/libs.
|
|
35
40
|
|
|
36
|
-
**[READ DOCUMENTATION](https://taon.
|
|
37
|
-
|
|
38
|
-
<br>
|
|
39
|
-
<br>
|
|
41
|
+
**[READ DOCUMENTATION](https://taon.dev/#/docs)**
|
|
40
42
|
|
|
41
43
|
### Initial requirements of taon
|
|
42
|
-
1. (
|
|
44
|
+
1. Git (gitbash [https://gitforwindows.org](https://gitforwindows.org) on windows)
|
|
43
45
|
|
|
44
|
-
2.
|
|
45
|
-
|
|
46
|
+
2. Increased watchers limit (only on linux):
|
|
47
|
+
```bash
|
|
46
48
|
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
|
|
47
49
|
```
|
|
50
|
+
3. Installed [python3](https://www.python.org/downloads/release/python-3123/)
|
|
51
|
+
and [mkdocs](https://www.mkdocs.org/user-guide/installation/):<br>
|
|
52
|
+
|
|
53
|
+
Windwos/Linux
|
|
54
|
+
```bash
|
|
55
|
+
pip3 install mkdocs
|
|
56
|
+
pip3 install mkdocs-material --user
|
|
57
|
+
```
|
|
58
|
+
MacOs
|
|
59
|
+
```bash
|
|
60
|
+
brew install mkdocs
|
|
61
|
+
brew install mkdocs-material
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Supported OS-es:
|
|
65
|
+
- Win10, Win11 (gitbash)
|
|
66
|
+
- MacOS
|
|
67
|
+
- Linux
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## Required version of NodeJS
|
|
71
|
+
- Windows 10/11 (gitbash): >= v18
|
|
72
|
+
- MacOS: >= v18
|
|
73
|
+
- Linux: >= v18
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## How to install taon
|
|
77
|
+
```
|
|
78
|
+
npm i -g taon
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## How to uninstall taon from local machine
|
|
83
|
+
Taon stores a big global container (in ~/.taon) for npm packages <br>
|
|
84
|
+
that are being shared across all taon projects.
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm uninstall -g taon
|
|
88
|
+
rm -rf ~/.taon # taon local packages repository
|
|
89
|
+
```
|
|
48
90
|
|
|
49
|
-
<br>
|
|
50
|
-
<br>
|
|
51
91
|
|
|
52
|
-
|
|
92
|
+
## Projects that are part of taon.dev:
|
|
53
93
|
- taon https://github.com/darekf77/taon
|
|
54
94
|
+ framework library
|
|
55
95
|
- tnp https://github.com/darekf77/tnp
|
|
@@ -83,32 +123,53 @@ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo s
|
|
|
83
123
|
|
|
84
124
|
|
|
85
125
|
|
|
86
|
-
|
|
126
|
+
## Global npm dependencies installed with taon
|
|
87
127
|
Installation happens when you first time use taon
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
{ name: '
|
|
92
|
-
|
|
93
|
-
{ name: '
|
|
94
|
-
|
|
95
|
-
{ name: '
|
|
96
|
-
|
|
97
|
-
{ name: '
|
|
98
|
-
|
|
99
|
-
{ name: '
|
|
100
|
-
|
|
101
|
-
{ name: '
|
|
102
|
-
|
|
103
|
-
{ name: '
|
|
104
|
-
|
|
105
|
-
{ name: '
|
|
106
|
-
|
|
107
|
-
{ name: '
|
|
108
|
-
|
|
109
|
-
{ name: '
|
|
110
|
-
|
|
111
|
-
{ name: '
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
128
|
+
```jsonc
|
|
129
|
+
[
|
|
130
|
+
// tool for minifying js (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
131
|
+
{ name: 'ncc', version: '0.36.0', installName: '@vercel/ncc' },
|
|
132
|
+
// zip extractor.. no needed anymore (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
133
|
+
{ name: 'extract-zip', version: '1.6.7' },
|
|
134
|
+
// copy catalogs (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
135
|
+
{ name: 'cpr' },
|
|
136
|
+
// check version of your nodejs
|
|
137
|
+
{ name: 'check-node-version' },
|
|
138
|
+
// alternative not npx ( it wil not download package from npm if is not installed )
|
|
139
|
+
{ name: 'npm-run', version: '4.1.2' },
|
|
140
|
+
//handy for removing files
|
|
141
|
+
{ name: 'rimraf', version: '3.0.2' },
|
|
142
|
+
//handy for recreating catalogs
|
|
143
|
+
{ name: 'mkdirp' },
|
|
144
|
+
// rename files in build (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
145
|
+
{ name: 'renamer', version: '2.0.1' },
|
|
146
|
+
// run/watch node server (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
147
|
+
{ name: 'nodemon' },
|
|
148
|
+
// check circural deps (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
149
|
+
{ name: 'madge' },
|
|
150
|
+
// package manager
|
|
151
|
+
{ name: 'yarn' },
|
|
152
|
+
// https server with --base-href
|
|
153
|
+
{ name: 'taon-http-server' },
|
|
154
|
+
// code formatter
|
|
155
|
+
{ name: 'prettier' },
|
|
156
|
+
// process killer
|
|
157
|
+
{ name: 'fkill', installName: 'fkill-cli' },
|
|
158
|
+
// for unit tests runner (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
159
|
+
{ name: 'mocha' },
|
|
160
|
+
// for unit tests runner
|
|
161
|
+
{ name: 'jest' },
|
|
162
|
+
// run ts code directly
|
|
163
|
+
{ name: 'ts-node' },
|
|
164
|
+
// oficial vsce package striped out from some restrictions
|
|
165
|
+
{ name: 'taon-vsce' },
|
|
166
|
+
// analyze you final bundle (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
167
|
+
{ name: 'webpack-bundle-analyzer' },
|
|
168
|
+
// strip types from TypeScript
|
|
169
|
+
{ name: 'babel', installName: 'babel-cli' },
|
|
170
|
+
// create js bundle that are not human readable (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
171
|
+
{ name: 'javascript-obfuscator', version: '4' },
|
|
172
|
+
// minify js (WILL EB REMOVED SOON FROM GLOBAL DEPS)
|
|
173
|
+
{ name: 'uglifyjs', installName: 'uglify-js' },
|
|
174
|
+
]
|
|
175
|
+
```
|