@taon-dev/vscode-plugin 21.0.7 → 21.0.11
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/fesm2022/vscode-plugin-browser-my-organization-proj.ts.en-US.i18n.data-CoSik70Y.mjs.map +1 -1
- package/browser/fesm2022/vscode-plugin-browser-my-organization-proj.ts.pl-PL.i18n.data-BZPsT3Zk.mjs.map +1 -1
- package/browser/fesm2022/vscode-plugin-browser.mjs +15 -2
- package/browser/fesm2022/vscode-plugin-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/vscode-plugin-browser.d.ts +8 -2
- package/browser-prod/fesm2022/vscode-plugin-browser-prod-my-organization-proj.ts.en-US.i18n.data-CoSik70Y.mjs.map +1 -1
- package/browser-prod/fesm2022/vscode-plugin-browser-prod-my-organization-proj.ts.pl-PL.i18n.data-BZPsT3Zk.mjs.map +1 -1
- package/browser-prod/fesm2022/vscode-plugin-browser-prod.mjs +15 -2
- package/browser-prod/fesm2022/vscode-plugin-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/vscode-plugin-browser-prod.d.ts +8 -2
- package/full-dts/build-info._auto-generated_.d.ts +24 -0
- package/full-dts/env/env.angular-node-app.d.ts +68 -0
- package/full-dts/env/env.docs-webapp.d.ts +68 -0
- package/full-dts/env/env.electron-app.d.ts +68 -0
- package/full-dts/env/env.mobile-app.d.ts +68 -0
- package/full-dts/env/env.npm-lib-and-cli-tool.d.ts +68 -0
- package/full-dts/env/env.vscode-plugin.d.ts +68 -0
- package/full-dts/env/index.d.ts +6 -0
- package/full-dts/i18n/lib.translation.d.ts +4 -0
- package/full-dts/i18n/my-organization-proj.ts.en-US.i18n.data.d.ts +15 -0
- package/full-dts/i18n/my-organization-proj.ts.pl-PL.i18n.data.d.ts +16 -0
- package/full-dts/index._auto-generated_.d.ts +4 -0
- package/full-dts/index.d.ts +7 -0
- package/full-dts/migrations/index.d.ts +1 -0
- package/full-dts/my-organization-proj.d.ts +1 -0
- package/full-dts/start-cli.d.ts +7 -0
- package/html/assets/generated/pwa/html-pwa.html +53 -53
- package/i18n/app.ts.en-US.i18n.data.d.ts +1 -1
- package/i18n/app.ts.en-US.i18n.data.js +1 -42
- package/i18n/app.ts.en-US.i18n.data.js.map +1 -1
- package/i18n/app.ts.pl-PL.i18n.data.d.ts +1 -1
- package/i18n/app.ts.pl-PL.i18n.data.js +1 -50
- package/i18n/app.ts.pl-PL.i18n.data.js.map +1 -1
- package/i18n/src.translation.d.ts +1 -1
- package/i18n/src.translation.js +1 -4
- package/i18n/src.translation.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/env/env.angular-node-app.d.ts +1 -0
- package/lib/env/env.angular-node-app.js +6 -2
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +1 -0
- package/lib/env/env.docs-webapp.js +6 -2
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +1 -0
- package/lib/env/env.electron-app.js +6 -2
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +1 -0
- package/lib/env/env.mobile-app.js +6 -2
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +6 -2
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +1 -0
- package/lib/env/env.vscode-plugin.js +6 -2
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/i18n/lib.translation.d.ts +2 -2
- package/lib/my-organization-proj.js +1 -2
- package/lib/my-organization-proj.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib-esm/app.d.ts +0 -3
- package/lib-esm/app.electron.d.ts +0 -1
- package/lib-esm/app.electron.js +1 -1
- package/lib-esm/app.electron.js.map +1 -1
- package/lib-esm/app.hosts.d.ts +0 -95
- package/lib-esm/app.hosts.js +1 -156
- package/lib-esm/app.hosts.js.map +1 -1
- package/lib-esm/app.js +1 -474
- package/lib-esm/app.js.map +1 -1
- package/lib-esm/app.vscode.d.ts +0 -9
- package/lib-esm/app.vscode.js +1 -36
- package/lib-esm/app.vscode.js.map +1 -1
- package/lib-esm/i18n/app.ts.en-US.i18n.data.d.ts +0 -22
- package/lib-esm/i18n/app.ts.en-US.i18n.data.js +1 -40
- package/lib-esm/i18n/app.ts.en-US.i18n.data.js.map +1 -1
- package/lib-esm/i18n/app.ts.pl-PL.i18n.data.d.ts +0 -23
- package/lib-esm/i18n/app.ts.pl-PL.i18n.data.js +1 -48
- package/lib-esm/i18n/app.ts.pl-PL.i18n.data.js.map +1 -1
- package/lib-esm/i18n/src.translation.d.ts +0 -4
- package/lib-esm/i18n/src.translation.js +1 -3
- package/lib-esm/i18n/src.translation.js.map +1 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js.map +1 -1
- package/lib-esm/lib/env/env.angular-node-app.d.ts +1 -0
- package/lib-esm/lib/env/env.angular-node-app.js +3 -0
- package/lib-esm/lib/env/env.angular-node-app.js.map +1 -1
- package/lib-esm/lib/env/env.docs-webapp.d.ts +1 -0
- package/lib-esm/lib/env/env.docs-webapp.js +3 -0
- package/lib-esm/lib/env/env.docs-webapp.js.map +1 -1
- package/lib-esm/lib/env/env.electron-app.d.ts +1 -0
- package/lib-esm/lib/env/env.electron-app.js +3 -0
- package/lib-esm/lib/env/env.electron-app.js.map +1 -1
- package/lib-esm/lib/env/env.mobile-app.d.ts +1 -0
- package/lib-esm/lib/env/env.mobile-app.js +3 -0
- package/lib-esm/lib/env/env.mobile-app.js.map +1 -1
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js +3 -0
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib-esm/lib/env/env.vscode-plugin.d.ts +1 -0
- package/lib-esm/lib/env/env.vscode-plugin.js +3 -0
- package/lib-esm/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib-esm/lib/my-organization-proj.js +1 -2
- package/lib-esm/lib/my-organization-proj.js.map +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/build-info._auto-generated_.js.map +1 -1
- package/lib-prod/env/env.angular-node-app.d.ts +1 -0
- package/lib-prod/env/env.angular-node-app.js +3 -0
- package/lib-prod/env/env.angular-node-app.js.map +1 -1
- package/lib-prod/env/env.docs-webapp.d.ts +1 -0
- package/lib-prod/env/env.docs-webapp.js +3 -0
- package/lib-prod/env/env.docs-webapp.js.map +1 -1
- package/lib-prod/env/env.electron-app.d.ts +1 -0
- package/lib-prod/env/env.electron-app.js +3 -0
- package/lib-prod/env/env.electron-app.js.map +1 -1
- package/lib-prod/env/env.mobile-app.d.ts +1 -0
- package/lib-prod/env/env.mobile-app.js +3 -0
- package/lib-prod/env/env.mobile-app.js.map +1 -1
- package/lib-prod/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.js +3 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib-prod/env/env.vscode-plugin.d.ts +1 -0
- package/lib-prod/env/env.vscode-plugin.js +3 -0
- package/lib-prod/env/env.vscode-plugin.js.map +1 -1
- package/lib-prod/my-organization-proj.js +1 -2
- package/lib-prod/my-organization-proj.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/package.json +1 -1
- package/src.d.ts +1 -1
- package/websql/fesm2022/vscode-plugin-websql-my-organization-proj.ts.en-US.i18n.data-CoSik70Y.mjs.map +1 -1
- package/websql/fesm2022/vscode-plugin-websql-my-organization-proj.ts.pl-PL.i18n.data-BZPsT3Zk.mjs.map +1 -1
- package/websql/fesm2022/vscode-plugin-websql.mjs +15 -2
- package/websql/fesm2022/vscode-plugin-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/vscode-plugin-websql.d.ts +8 -2
- package/websql-prod/fesm2022/vscode-plugin-websql-prod-my-organization-proj.ts.en-US.i18n.data-CoSik70Y.mjs.map +1 -1
- package/websql-prod/fesm2022/vscode-plugin-websql-prod-my-organization-proj.ts.pl-PL.i18n.data-BZPsT3Zk.mjs.map +1 -1
- package/websql-prod/fesm2022/vscode-plugin-websql-prod.mjs +15 -2
- package/websql-prod/fesm2022/vscode-plugin-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/vscode-plugin-websql-prod.d.ts +8 -2
- package/lib-esm/app.cloudflare.js +0 -4
- package/lib-esm/app.cloudflare.js.map +0 -1
- /package/{lib-esm/app.cloudflare.d.ts → full-dts/migrations/migrations_index._auto-generated_.d.ts} +0 -0
package/lib-esm/app.js
CHANGED
|
@@ -1,475 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as os from 'os'; // @backend
|
|
3
|
-
/* */
|
|
4
|
-
import { Translation, TranslationManager } from '@taon-dev/i18n/lib-esm';
|
|
5
|
-
import { Taon, TaonBaseContext, TaonEntity, StringColumn, TaonBaseAbstractEntity, TaonBaseCrudController, TaonController, GET, TaonMigration, TaonBaseMigration, } from 'taon/lib-esm';
|
|
6
|
-
import { HOST_CONFIG } from './app.hosts';
|
|
7
|
-
// @placeholder-for-imports
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region constants
|
|
10
|
-
console.log('🚀 [ TAON IS STARTING ]');
|
|
11
|
-
const t = Translation.for(Taon.__FILE_RELATIVE_PATH, Taon.LANG_IMPORT_MAP, {
|
|
12
|
-
// debug: true
|
|
13
|
-
});
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region vscode-plugin component
|
|
16
|
-
/* */
|
|
17
|
-
/* */
|
|
18
|
-
/* */
|
|
19
|
-
/* */
|
|
20
|
-
/* */
|
|
21
|
-
/* */
|
|
22
|
-
/* */
|
|
23
|
-
/* */
|
|
24
|
-
/* */
|
|
25
|
-
/* */
|
|
26
|
-
/* */
|
|
27
|
-
/* */
|
|
28
|
-
/* */
|
|
29
|
-
/* */
|
|
30
|
-
/* */
|
|
31
|
-
/* */
|
|
32
|
-
/* */
|
|
33
|
-
/* */
|
|
34
|
-
/* */
|
|
35
|
-
/* */
|
|
36
|
-
/* */
|
|
37
|
-
/* */
|
|
38
|
-
/* */
|
|
39
|
-
/* */
|
|
40
|
-
/* */
|
|
41
|
-
/* */
|
|
42
|
-
/* */
|
|
43
|
-
/* */
|
|
44
|
-
/* */
|
|
45
|
-
/* */
|
|
46
|
-
/* */
|
|
47
|
-
/* */
|
|
48
|
-
/* */
|
|
49
|
-
/* */
|
|
50
|
-
/* */
|
|
51
|
-
/* */
|
|
52
|
-
/* */
|
|
53
|
-
/* */
|
|
54
|
-
/* */
|
|
55
|
-
/* */
|
|
56
|
-
/* */
|
|
57
|
-
/* */
|
|
58
|
-
/* */
|
|
59
|
-
/* */
|
|
60
|
-
/* */
|
|
61
|
-
/* */
|
|
62
|
-
/* */
|
|
63
|
-
/* */
|
|
64
|
-
/* */
|
|
65
|
-
/* */
|
|
66
|
-
/* */
|
|
67
|
-
/* */
|
|
68
|
-
/* */
|
|
69
|
-
/* */
|
|
70
|
-
/* */
|
|
71
|
-
/* */
|
|
72
|
-
/* */
|
|
73
|
-
/* */
|
|
74
|
-
/* */
|
|
75
|
-
/* */
|
|
76
|
-
/* */
|
|
77
|
-
/* */
|
|
78
|
-
/* */
|
|
79
|
-
/* */
|
|
80
|
-
/* */
|
|
81
|
-
/* */
|
|
82
|
-
/* */
|
|
83
|
-
/* */
|
|
84
|
-
/* */
|
|
85
|
-
/* */
|
|
86
|
-
/* */
|
|
87
|
-
/* */
|
|
88
|
-
/* */
|
|
89
|
-
/* */
|
|
90
|
-
/* */
|
|
91
|
-
/* */
|
|
92
|
-
/* */
|
|
93
|
-
/* */
|
|
94
|
-
/* */
|
|
95
|
-
/* */
|
|
96
|
-
/* */
|
|
97
|
-
/* */
|
|
98
|
-
/* */
|
|
99
|
-
/* */
|
|
100
|
-
/* */
|
|
101
|
-
/* */
|
|
102
|
-
/* */
|
|
103
|
-
/* */
|
|
104
|
-
/* */
|
|
105
|
-
/* */
|
|
106
|
-
/* */
|
|
107
|
-
/* */
|
|
108
|
-
/* */
|
|
109
|
-
/* */
|
|
110
|
-
/* */
|
|
111
|
-
/* */
|
|
112
|
-
/* */
|
|
113
|
-
/* */
|
|
114
|
-
/* */
|
|
115
|
-
/* */
|
|
116
|
-
/* */
|
|
117
|
-
/* */
|
|
118
|
-
/* */
|
|
119
|
-
/* */
|
|
120
|
-
/* */
|
|
121
|
-
/* */
|
|
122
|
-
/* */
|
|
123
|
-
/* */
|
|
124
|
-
/* */
|
|
125
|
-
/* */
|
|
126
|
-
/* */
|
|
127
|
-
/* */
|
|
128
|
-
/* */
|
|
129
|
-
/* */
|
|
130
|
-
/* */
|
|
131
|
-
/* */
|
|
132
|
-
/* */
|
|
133
|
-
/* */
|
|
134
|
-
/* */
|
|
135
|
-
/* */
|
|
136
|
-
/* */
|
|
137
|
-
/* */
|
|
138
|
-
/* */
|
|
139
|
-
/* */
|
|
140
|
-
/* */
|
|
141
|
-
/* */
|
|
142
|
-
/* */
|
|
143
|
-
/* */
|
|
144
|
-
/* */
|
|
145
|
-
/* */
|
|
146
|
-
/* */
|
|
147
|
-
/* */
|
|
148
|
-
/* */
|
|
149
|
-
/* */
|
|
150
|
-
/* */
|
|
151
|
-
/* */
|
|
152
|
-
/* */
|
|
153
|
-
/* */
|
|
154
|
-
/* */
|
|
155
|
-
/* */
|
|
156
|
-
/* */
|
|
157
|
-
/* */
|
|
158
|
-
/* */
|
|
159
|
-
/* */
|
|
160
|
-
/* */
|
|
161
|
-
/* */
|
|
162
|
-
/* */
|
|
163
|
-
/* */
|
|
164
|
-
/* */
|
|
165
|
-
/* */
|
|
166
|
-
/* */
|
|
167
|
-
/* */
|
|
168
|
-
/* */
|
|
169
|
-
/* */
|
|
170
|
-
/* */
|
|
171
|
-
/* */
|
|
172
|
-
/* */
|
|
173
|
-
/* */
|
|
174
|
-
/* */
|
|
175
|
-
/* */
|
|
176
|
-
/* */
|
|
177
|
-
/* */
|
|
178
|
-
/* */
|
|
179
|
-
/* */
|
|
180
|
-
/* */
|
|
181
|
-
/* */
|
|
182
|
-
/* */
|
|
183
|
-
/* */
|
|
184
|
-
/* */
|
|
185
|
-
/* */
|
|
186
|
-
/* */
|
|
187
|
-
/* */
|
|
188
|
-
/* */
|
|
189
|
-
/* */
|
|
190
|
-
/* */
|
|
191
|
-
/* */
|
|
192
|
-
/* */
|
|
193
|
-
/* */
|
|
194
|
-
/* */
|
|
195
|
-
/* */
|
|
196
|
-
/* */
|
|
197
|
-
/* */
|
|
198
|
-
/* */
|
|
199
|
-
/* */
|
|
200
|
-
/* */
|
|
201
|
-
/* */
|
|
202
|
-
/* */
|
|
203
|
-
/* */
|
|
204
|
-
/* */
|
|
205
|
-
/* */
|
|
206
|
-
/* */
|
|
207
|
-
/* */
|
|
208
|
-
/* */
|
|
209
|
-
/* */
|
|
210
|
-
/* */
|
|
211
|
-
/* */
|
|
212
|
-
/* */
|
|
213
|
-
/* */
|
|
214
|
-
/* */
|
|
215
|
-
/* */
|
|
216
|
-
/* */
|
|
217
|
-
/* */
|
|
218
|
-
/* */
|
|
219
|
-
/* */
|
|
220
|
-
/* */
|
|
221
|
-
/* */
|
|
222
|
-
/* */
|
|
223
|
-
/* */
|
|
224
|
-
/* */
|
|
225
|
-
/* */
|
|
226
|
-
/* */
|
|
227
|
-
/* */
|
|
228
|
-
/* */
|
|
229
|
-
/* */
|
|
230
|
-
/* */
|
|
231
|
-
/* */
|
|
232
|
-
/* */
|
|
233
|
-
/* */
|
|
234
|
-
/* */
|
|
235
|
-
/* */
|
|
236
|
-
/* */
|
|
237
|
-
/* */
|
|
238
|
-
/* */
|
|
239
|
-
/* */
|
|
240
|
-
/* */
|
|
241
|
-
/* */
|
|
242
|
-
/* */
|
|
243
|
-
/* */
|
|
244
|
-
/* */
|
|
245
|
-
/* */
|
|
246
|
-
/* */
|
|
247
|
-
/* */
|
|
248
|
-
/* */
|
|
249
|
-
/* */
|
|
250
|
-
/* */
|
|
251
|
-
/* */
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region vscode-plugin api service
|
|
254
|
-
/* */
|
|
255
|
-
/* */
|
|
256
|
-
/* */
|
|
257
|
-
/* */
|
|
258
|
-
/* */
|
|
259
|
-
/* */
|
|
260
|
-
/* */
|
|
261
|
-
/* */
|
|
262
|
-
/* */
|
|
263
|
-
/* */
|
|
264
|
-
/* */
|
|
265
|
-
/* */
|
|
266
|
-
/* */
|
|
267
|
-
/* */
|
|
268
|
-
//#endregion
|
|
269
|
-
//#region vscode-plugin routes
|
|
270
|
-
/* */
|
|
271
|
-
/* */
|
|
272
|
-
/* */
|
|
273
|
-
/* */
|
|
274
|
-
/* */
|
|
275
|
-
/* */
|
|
276
|
-
/* */
|
|
277
|
-
/* */
|
|
278
|
-
/* */
|
|
279
|
-
/* */
|
|
280
|
-
/* */
|
|
281
|
-
/* */
|
|
282
|
-
/* */
|
|
283
|
-
/* */
|
|
284
|
-
/* */
|
|
285
|
-
/* */
|
|
286
|
-
/* */
|
|
287
|
-
/* */
|
|
288
|
-
/* */
|
|
289
|
-
/* */
|
|
290
|
-
/* */
|
|
291
|
-
/* */
|
|
292
|
-
/* */
|
|
293
|
-
/* */
|
|
294
|
-
/* */
|
|
295
|
-
/* */
|
|
296
|
-
/* */
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region vscode-plugin app configs
|
|
299
|
-
/* */
|
|
300
|
-
/* */
|
|
301
|
-
/* */
|
|
302
|
-
/* */
|
|
303
|
-
/* */
|
|
304
|
-
/* */
|
|
305
|
-
/* */
|
|
306
|
-
/* */
|
|
307
|
-
/* */
|
|
308
|
-
/* */
|
|
309
|
-
/* */
|
|
310
|
-
/* */
|
|
311
|
-
/* */
|
|
312
|
-
/* */
|
|
313
|
-
/* */
|
|
314
|
-
/* */
|
|
315
|
-
/* */
|
|
316
|
-
/* */
|
|
317
|
-
/* */
|
|
318
|
-
/* */
|
|
319
|
-
/* */
|
|
320
|
-
/* */
|
|
321
|
-
/* */
|
|
322
|
-
/* */
|
|
323
|
-
/* */
|
|
324
|
-
/* */
|
|
325
|
-
/* */
|
|
326
|
-
/* */
|
|
327
|
-
/* */
|
|
328
|
-
/* */
|
|
329
|
-
/* */
|
|
330
|
-
/* */
|
|
331
|
-
/* */
|
|
332
|
-
/* */
|
|
333
|
-
/* */
|
|
334
|
-
/* */
|
|
335
|
-
/* */
|
|
336
|
-
/* */
|
|
337
|
-
/* */
|
|
338
|
-
/* */
|
|
339
|
-
/* */
|
|
340
|
-
/* */
|
|
341
|
-
//#endregion
|
|
342
|
-
//#region vscode-plugin entity
|
|
343
|
-
let User = class User extends TaonBaseAbstractEntity {
|
|
344
|
-
//#region @websql
|
|
345
|
-
//#endregion
|
|
346
|
-
name;
|
|
347
|
-
getHello() {
|
|
348
|
-
return `hello ${this.name}`;
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
__decorate([
|
|
352
|
-
StringColumn()
|
|
353
|
-
//#endregion
|
|
354
|
-
,
|
|
355
|
-
__metadata("design:type", String)
|
|
356
|
-
], User.prototype, "name", void 0);
|
|
357
|
-
User = __decorate([
|
|
358
|
-
TaonEntity({ className: 'User' })
|
|
359
|
-
], User);
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region vscode-plugin controller
|
|
362
|
-
let UserController = class UserController extends TaonBaseCrudController {
|
|
363
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
364
|
-
entityClassResolveFn = () => User;
|
|
365
|
-
helloWorld() {
|
|
366
|
-
//#region @websqlFunc
|
|
367
|
-
return async (req, res) => 'hello world';
|
|
368
|
-
//#endregion
|
|
369
|
-
}
|
|
370
|
-
getOsPlatform() {
|
|
371
|
-
//#region @websqlFunc
|
|
372
|
-
return async (req, res) => {
|
|
373
|
-
//#region @backend
|
|
374
|
-
return os.platform(); // for normal nodejs backend return real value
|
|
375
|
-
//#endregion
|
|
376
|
-
return 'no-platform-inside-browser-and-websql-mode';
|
|
377
|
-
};
|
|
378
|
-
//#endregion
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
__decorate([
|
|
382
|
-
GET(),
|
|
383
|
-
__metadata("design:type", Function),
|
|
384
|
-
__metadata("design:paramtypes", []),
|
|
385
|
-
__metadata("design:returntype", Object)
|
|
386
|
-
], UserController.prototype, "helloWorld", null);
|
|
387
|
-
__decorate([
|
|
388
|
-
GET(),
|
|
389
|
-
__metadata("design:type", Function),
|
|
390
|
-
__metadata("design:paramtypes", []),
|
|
391
|
-
__metadata("design:returntype", Object)
|
|
392
|
-
], UserController.prototype, "getOsPlatform", null);
|
|
393
|
-
UserController = __decorate([
|
|
394
|
-
TaonController({ className: 'UserController' })
|
|
395
|
-
], UserController);
|
|
396
|
-
//#endregion
|
|
397
|
-
//#region vscode-plugin migration
|
|
398
|
-
//#region @websql
|
|
399
|
-
let UserMigration = class UserMigration extends TaonBaseMigration {
|
|
400
|
-
userController = this.injectRepo(User);
|
|
401
|
-
async up() {
|
|
402
|
-
const superAdmin = new User();
|
|
403
|
-
superAdmin.name = 'super-admin';
|
|
404
|
-
await this.userController.save(superAdmin);
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
|
-
UserMigration = __decorate([
|
|
408
|
-
TaonMigration({
|
|
409
|
-
className: 'UserMigration',
|
|
410
|
-
})
|
|
411
|
-
], UserMigration);
|
|
412
|
-
//#endregion
|
|
413
|
-
//#endregion
|
|
414
|
-
//#region vscode-plugin context
|
|
415
|
-
var VscodePluginContext = Taon.createContext(() => ({
|
|
416
|
-
...HOST_CONFIG['VscodePluginContext'],
|
|
417
|
-
contexts: { TaonBaseContext },
|
|
418
|
-
//#region @websql
|
|
419
|
-
/**
|
|
420
|
-
* In production use specyfic for this context name
|
|
421
|
-
* generated migration object from ./migrations/index.ts.
|
|
422
|
-
*/
|
|
423
|
-
migrations: {
|
|
424
|
-
UserMigration,
|
|
425
|
-
},
|
|
426
|
-
//#endregion
|
|
427
|
-
controllers: {
|
|
428
|
-
UserController,
|
|
429
|
-
},
|
|
430
|
-
entities: {
|
|
431
|
-
User,
|
|
432
|
-
},
|
|
433
|
-
database: true,
|
|
434
|
-
disabledRealtime: true,
|
|
435
|
-
}));
|
|
436
|
-
//#endregion
|
|
437
|
-
//#region vscode-plugin start function
|
|
438
|
-
export const VscodePluginStartFunction = async (startParams) => {
|
|
439
|
-
TranslationManager.Instance.visibleLanguages = ['en-US', 'pl-PL'];
|
|
440
|
-
// await TranslationManager.Instance.changeGlobalLang('en-US');
|
|
441
|
-
// await TranslationManager.Instance.setOneLanguagePernament('en-US')
|
|
442
|
-
/* */
|
|
443
|
-
/* */
|
|
444
|
-
/* */
|
|
445
|
-
await VscodePluginContext.initialize();
|
|
446
|
-
//#region initialize auto generated active contexts
|
|
447
|
-
const autoGeneratedActiveContextsForApp = [
|
|
448
|
-
// @placeholder-for-contexts-init
|
|
449
|
-
];
|
|
450
|
-
const priorityContexts = [
|
|
451
|
-
// put here manual priority for contexts if needed
|
|
452
|
-
];
|
|
453
|
-
const activeContextsForApp = [
|
|
454
|
-
...priorityContexts,
|
|
455
|
-
...autoGeneratedActiveContextsForApp.filter(c => !priorityContexts.includes(c)),
|
|
456
|
-
];
|
|
457
|
-
for (const activeContext of activeContextsForApp) {
|
|
458
|
-
await activeContext.initialize();
|
|
459
|
-
}
|
|
460
|
-
//#endregion
|
|
461
|
-
//#region @backend
|
|
462
|
-
if (startParams?.onlyMigrationRun ||
|
|
463
|
-
startParams?.onlyMigrationRevertToTimestamp) {
|
|
464
|
-
process.exit(0);
|
|
465
|
-
}
|
|
466
|
-
//#endregion
|
|
467
|
-
//#region @backend
|
|
468
|
-
console.log(`Hello in NodeJs backend! os=${os.platform()}`);
|
|
469
|
-
//#endregion
|
|
470
|
-
};
|
|
471
|
-
//#endregion
|
|
472
|
-
//#region default export
|
|
473
|
-
export default VscodePluginStartFunction;
|
|
474
|
-
//#endregion
|
|
1
|
+
/* skipping app files for release build */
|
|
475
2
|
//# sourceMappingURL=app.js.map
|
package/lib-esm/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,0CAA0C"}
|
package/lib-esm/app.vscode.d.ts
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CommandType } from 'tnp-helpers/lib-esm';
|
|
2
|
-
import type { ExtensionContext } from 'vscode';
|
|
3
|
-
export declare const commands: CommandType[];
|
|
4
|
-
export declare function activate(context: ExtensionContext): void;
|
|
5
|
-
export declare function deactivate(): void;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
commands: CommandType[];
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
package/lib-esm/app.vscode.js
CHANGED
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { executeCommand } from 'tnp-helpers/lib-esm';
|
|
3
|
-
const group = 'VscodePlugin CLI essentials';
|
|
4
|
-
export const commands = [
|
|
5
|
-
{
|
|
6
|
-
title: 'hello world VscodePlugin',
|
|
7
|
-
exec: ({ vscode }) => {
|
|
8
|
-
vscode.window.showInformationMessage('Hello World! VscodePlugin');
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
title: 'hey VscodePlugin! show platform',
|
|
13
|
-
exec: ({ vscode }) => {
|
|
14
|
-
vscode.window.showInformationMessage(`VscodePlugin platform is "${process.platform}"`);
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
].map(c => {
|
|
18
|
-
if (!c.group) {
|
|
19
|
-
c.group = group;
|
|
20
|
-
}
|
|
21
|
-
if (!c.command) {
|
|
22
|
-
c.command = `extension.${Utils.camelize(c.group ?? 'ROOT')}.${Utils.camelize(c.title)}`;
|
|
23
|
-
}
|
|
24
|
-
return c;
|
|
25
|
-
});
|
|
26
|
-
export function activate(context) {
|
|
27
|
-
for (let index = 0; index < commands.length; index++) {
|
|
28
|
-
const { title = '', command = '', exec = '', options, isDefaultBuildCommand, } = commands[index];
|
|
29
|
-
const sub = executeCommand(title, command, exec, options, isDefaultBuildCommand, context);
|
|
30
|
-
if (sub) {
|
|
31
|
-
context.subscriptions.push(sub);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export function deactivate() { }
|
|
36
|
-
export default { commands };
|
|
1
|
+
/* skipping app files for release build */
|
|
37
2
|
//# sourceMappingURL=app.vscode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.vscode.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"app.vscode.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,0CAA0C"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface EnUsTraslationOverrideSrcAppTs {
|
|
2
|
-
"en-US": {
|
|
3
|
-
"": {
|
|
4
|
-
"Angular version:"?: string;
|
|
5
|
-
"Basic app info"?: string;
|
|
6
|
-
"Copyright"?: string;
|
|
7
|
-
"Example hello world from backend API:"?: string;
|
|
8
|
-
"Example users from backend API:"?: string;
|
|
9
|
-
"Name"?: string;
|
|
10
|
-
"Taon backend:"?: string;
|
|
11
|
-
"hello world from backend:"?: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
declare const _default: {
|
|
16
|
-
fileRelativePath: string;
|
|
17
|
-
tags: {
|
|
18
|
-
gettextString: string;
|
|
19
|
-
lineNumber: number;
|
|
20
|
-
}[];
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
3
|
-
export default {
|
|
4
|
-
"fileRelativePath": "src/app.ts",
|
|
5
|
-
"tags": [
|
|
6
|
-
{
|
|
7
|
-
"gettextString": "Example users from backend API:",
|
|
8
|
-
"lineNumber": 225
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"gettextString": "Example hello world from backend API:",
|
|
12
|
-
"lineNumber": 206
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"gettextString": "Basic app info",
|
|
16
|
-
"lineNumber": 172
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"gettextString": "Name",
|
|
20
|
-
"lineNumber": 173
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"gettextString": "Angular version:",
|
|
24
|
-
"lineNumber": 174
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"gettextString": "Taon backend:",
|
|
28
|
-
"lineNumber": 175
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"gettextString": "hello world from backend:",
|
|
32
|
-
"lineNumber": 207
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"gettextString": "Copyright",
|
|
36
|
-
"lineNumber": 215
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
};
|
|
40
|
-
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
1
|
+
/* skipping app files for release build */
|
|
41
2
|
//# sourceMappingURL=app.ts.en-US.i18n.data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.ts.en-US.i18n.data.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"app.ts.en-US.i18n.data.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,0CAA0C"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface PlPlTraslationOverrideSrcAppTs {
|
|
2
|
-
"pl-PL": {
|
|
3
|
-
"": {
|
|
4
|
-
"Angular version:"?: string;
|
|
5
|
-
"Basic app info"?: string;
|
|
6
|
-
"Copyright"?: string;
|
|
7
|
-
"Example hello world from backend API:"?: string;
|
|
8
|
-
"Example users from backend API:"?: string;
|
|
9
|
-
"Name"?: string;
|
|
10
|
-
"Taon backend:"?: string;
|
|
11
|
-
"hello world from backend:"?: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
declare const _default: {
|
|
16
|
-
fileRelativePath: string;
|
|
17
|
-
tags: {
|
|
18
|
-
gettextString: string;
|
|
19
|
-
lineNumber: number;
|
|
20
|
-
translation: string;
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
3
|
-
export default {
|
|
4
|
-
"fileRelativePath": "src/app.ts",
|
|
5
|
-
"tags": [
|
|
6
|
-
{
|
|
7
|
-
"gettextString": "Example users from backend API:",
|
|
8
|
-
"lineNumber": 225,
|
|
9
|
-
"translation": "Przykładowi użytkownicy z serwera API"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"gettextString": "Example hello world from backend API:",
|
|
13
|
-
"lineNumber": 206,
|
|
14
|
-
"translation": "Przykładowe witaj świecie z server-a API"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"gettextString": "Basic app info",
|
|
18
|
-
"lineNumber": 172,
|
|
19
|
-
"translation": "Podstawowe informacje o aplikacji"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"gettextString": "Name",
|
|
23
|
-
"lineNumber": 173,
|
|
24
|
-
"translation": "Nazwa"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"gettextString": "Angular version:",
|
|
28
|
-
"lineNumber": 174,
|
|
29
|
-
"translation": "Wersja Angulara:"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"gettextString": "Taon backend:",
|
|
33
|
-
"lineNumber": 175,
|
|
34
|
-
"translation": "Taon server:"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"gettextString": "hello world from backend:",
|
|
38
|
-
"lineNumber": 207,
|
|
39
|
-
"translation": "witaj świecie z servera:"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"gettextString": "Copyright",
|
|
43
|
-
"lineNumber": 215,
|
|
44
|
-
"translation": "Wszelkie prawa zastrzeżone"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
};
|
|
48
|
-
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
1
|
+
/* skipping app files for release build */
|
|
49
2
|
//# sourceMappingURL=app.ts.pl-PL.i18n.data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.ts.pl-PL.i18n.data.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"app.ts.pl-PL.i18n.data.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,0CAA0C"}
|