@currentjs/gen 0.3.1 → 0.3.2
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/CHANGELOG.md
CHANGED
|
@@ -7,38 +7,78 @@ All notable changes to this project will be documented in this file.
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
## [0.3.2] - 2025-12-28
|
|
12
|
+
|
|
13
|
+
fixed an issue 6
|
|
14
|
+
|
|
10
15
|
## [0.3.1] - 2025-10-03
|
|
11
16
|
|
|
12
17
|
bug fixed with overwriting committed changes
|
|
13
18
|
|
|
19
|
+
|
|
20
|
+
## [0.3.2] - 2025-12-28
|
|
21
|
+
|
|
22
|
+
fixed an issue 6
|
|
23
|
+
|
|
14
24
|
## [0.3.0] - 2025-10-03
|
|
15
25
|
|
|
16
26
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
17
27
|
|
|
18
28
|
|
|
29
|
+
|
|
30
|
+
## [0.3.2] - 2025-12-28
|
|
31
|
+
|
|
32
|
+
fixed an issue 6
|
|
33
|
+
|
|
19
34
|
## [0.3.1] - 2025-10-03
|
|
20
35
|
|
|
21
36
|
bug fixed with overwriting committed changes
|
|
22
37
|
|
|
38
|
+
|
|
39
|
+
## [0.3.2] - 2025-12-28
|
|
40
|
+
|
|
41
|
+
fixed an issue 6
|
|
42
|
+
|
|
23
43
|
## [0.2.2] - 2025-10-02
|
|
24
44
|
|
|
25
45
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
26
46
|
|
|
27
47
|
|
|
28
48
|
|
|
49
|
+
|
|
50
|
+
## [0.3.2] - 2025-12-28
|
|
51
|
+
|
|
52
|
+
fixed an issue 6
|
|
53
|
+
|
|
29
54
|
## [0.3.1] - 2025-10-03
|
|
30
55
|
|
|
31
56
|
bug fixed with overwriting committed changes
|
|
32
57
|
|
|
58
|
+
|
|
59
|
+
## [0.3.2] - 2025-12-28
|
|
60
|
+
|
|
61
|
+
fixed an issue 6
|
|
62
|
+
|
|
33
63
|
## [0.3.0] - 2025-10-03
|
|
34
64
|
|
|
35
65
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
36
66
|
|
|
37
67
|
|
|
68
|
+
|
|
69
|
+
## [0.3.2] - 2025-12-28
|
|
70
|
+
|
|
71
|
+
fixed an issue 6
|
|
72
|
+
|
|
38
73
|
## [0.3.1] - 2025-10-03
|
|
39
74
|
|
|
40
75
|
bug fixed with overwriting committed changes
|
|
41
76
|
|
|
77
|
+
|
|
78
|
+
## [0.3.2] - 2025-12-28
|
|
79
|
+
|
|
80
|
+
fixed an issue 6
|
|
81
|
+
|
|
42
82
|
## [0.2.1] - 2025-09-18
|
|
43
83
|
|
|
44
84
|
Improve generated package.json
|
|
@@ -46,38 +86,78 @@ Improve generated package.json
|
|
|
46
86
|
|
|
47
87
|
|
|
48
88
|
|
|
89
|
+
|
|
90
|
+
## [0.3.2] - 2025-12-28
|
|
91
|
+
|
|
92
|
+
fixed an issue 6
|
|
93
|
+
|
|
49
94
|
## [0.3.1] - 2025-10-03
|
|
50
95
|
|
|
51
96
|
bug fixed with overwriting committed changes
|
|
52
97
|
|
|
98
|
+
|
|
99
|
+
## [0.3.2] - 2025-12-28
|
|
100
|
+
|
|
101
|
+
fixed an issue 6
|
|
102
|
+
|
|
53
103
|
## [0.3.0] - 2025-10-03
|
|
54
104
|
|
|
55
105
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
56
106
|
|
|
57
107
|
|
|
108
|
+
|
|
109
|
+
## [0.3.2] - 2025-12-28
|
|
110
|
+
|
|
111
|
+
fixed an issue 6
|
|
112
|
+
|
|
58
113
|
## [0.3.1] - 2025-10-03
|
|
59
114
|
|
|
60
115
|
bug fixed with overwriting committed changes
|
|
61
116
|
|
|
117
|
+
|
|
118
|
+
## [0.3.2] - 2025-12-28
|
|
119
|
+
|
|
120
|
+
fixed an issue 6
|
|
121
|
+
|
|
62
122
|
## [0.2.2] - 2025-10-02
|
|
63
123
|
|
|
64
124
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
65
125
|
|
|
66
126
|
|
|
67
127
|
|
|
128
|
+
|
|
129
|
+
## [0.3.2] - 2025-12-28
|
|
130
|
+
|
|
131
|
+
fixed an issue 6
|
|
132
|
+
|
|
68
133
|
## [0.3.1] - 2025-10-03
|
|
69
134
|
|
|
70
135
|
bug fixed with overwriting committed changes
|
|
71
136
|
|
|
137
|
+
|
|
138
|
+
## [0.3.2] - 2025-12-28
|
|
139
|
+
|
|
140
|
+
fixed an issue 6
|
|
141
|
+
|
|
72
142
|
## [0.3.0] - 2025-10-03
|
|
73
143
|
|
|
74
144
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
75
145
|
|
|
76
146
|
|
|
147
|
+
|
|
148
|
+
## [0.3.2] - 2025-12-28
|
|
149
|
+
|
|
150
|
+
fixed an issue 6
|
|
151
|
+
|
|
77
152
|
## [0.3.1] - 2025-10-03
|
|
78
153
|
|
|
79
154
|
bug fixed with overwriting committed changes
|
|
80
155
|
|
|
156
|
+
|
|
157
|
+
## [0.3.2] - 2025-12-28
|
|
158
|
+
|
|
159
|
+
fixed an issue 6
|
|
160
|
+
|
|
81
161
|
## [0.2.0] - 2025-09-18
|
|
82
162
|
|
|
83
163
|
implement multi-model generation (controllers, services); fix service-controller interaction; update documentation: more clear & reflect important things
|
|
@@ -86,38 +166,78 @@ implement multi-model generation (controllers, services); fix service-controller
|
|
|
86
166
|
|
|
87
167
|
|
|
88
168
|
|
|
169
|
+
|
|
170
|
+
## [0.3.2] - 2025-12-28
|
|
171
|
+
|
|
172
|
+
fixed an issue 6
|
|
173
|
+
|
|
89
174
|
## [0.3.1] - 2025-10-03
|
|
90
175
|
|
|
91
176
|
bug fixed with overwriting committed changes
|
|
92
177
|
|
|
178
|
+
|
|
179
|
+
## [0.3.2] - 2025-12-28
|
|
180
|
+
|
|
181
|
+
fixed an issue 6
|
|
182
|
+
|
|
93
183
|
## [0.3.0] - 2025-10-03
|
|
94
184
|
|
|
95
185
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
96
186
|
|
|
97
187
|
|
|
188
|
+
|
|
189
|
+
## [0.3.2] - 2025-12-28
|
|
190
|
+
|
|
191
|
+
fixed an issue 6
|
|
192
|
+
|
|
98
193
|
## [0.3.1] - 2025-10-03
|
|
99
194
|
|
|
100
195
|
bug fixed with overwriting committed changes
|
|
101
196
|
|
|
197
|
+
|
|
198
|
+
## [0.3.2] - 2025-12-28
|
|
199
|
+
|
|
200
|
+
fixed an issue 6
|
|
201
|
+
|
|
102
202
|
## [0.2.2] - 2025-10-02
|
|
103
203
|
|
|
104
204
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
105
205
|
|
|
106
206
|
|
|
107
207
|
|
|
208
|
+
|
|
209
|
+
## [0.3.2] - 2025-12-28
|
|
210
|
+
|
|
211
|
+
fixed an issue 6
|
|
212
|
+
|
|
108
213
|
## [0.3.1] - 2025-10-03
|
|
109
214
|
|
|
110
215
|
bug fixed with overwriting committed changes
|
|
111
216
|
|
|
217
|
+
|
|
218
|
+
## [0.3.2] - 2025-12-28
|
|
219
|
+
|
|
220
|
+
fixed an issue 6
|
|
221
|
+
|
|
112
222
|
## [0.3.0] - 2025-10-03
|
|
113
223
|
|
|
114
224
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
115
225
|
|
|
116
226
|
|
|
227
|
+
|
|
228
|
+
## [0.3.2] - 2025-12-28
|
|
229
|
+
|
|
230
|
+
fixed an issue 6
|
|
231
|
+
|
|
117
232
|
## [0.3.1] - 2025-10-03
|
|
118
233
|
|
|
119
234
|
bug fixed with overwriting committed changes
|
|
120
235
|
|
|
236
|
+
|
|
237
|
+
## [0.3.2] - 2025-12-28
|
|
238
|
+
|
|
239
|
+
fixed an issue 6
|
|
240
|
+
|
|
121
241
|
## [0.2.1] - 2025-09-18
|
|
122
242
|
|
|
123
243
|
Improve generated package.json
|
|
@@ -125,38 +245,78 @@ Improve generated package.json
|
|
|
125
245
|
|
|
126
246
|
|
|
127
247
|
|
|
248
|
+
|
|
249
|
+
## [0.3.2] - 2025-12-28
|
|
250
|
+
|
|
251
|
+
fixed an issue 6
|
|
252
|
+
|
|
128
253
|
## [0.3.1] - 2025-10-03
|
|
129
254
|
|
|
130
255
|
bug fixed with overwriting committed changes
|
|
131
256
|
|
|
257
|
+
|
|
258
|
+
## [0.3.2] - 2025-12-28
|
|
259
|
+
|
|
260
|
+
fixed an issue 6
|
|
261
|
+
|
|
132
262
|
## [0.3.0] - 2025-10-03
|
|
133
263
|
|
|
134
264
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
135
265
|
|
|
136
266
|
|
|
267
|
+
|
|
268
|
+
## [0.3.2] - 2025-12-28
|
|
269
|
+
|
|
270
|
+
fixed an issue 6
|
|
271
|
+
|
|
137
272
|
## [0.3.1] - 2025-10-03
|
|
138
273
|
|
|
139
274
|
bug fixed with overwriting committed changes
|
|
140
275
|
|
|
276
|
+
|
|
277
|
+
## [0.3.2] - 2025-12-28
|
|
278
|
+
|
|
279
|
+
fixed an issue 6
|
|
280
|
+
|
|
141
281
|
## [0.2.2] - 2025-10-02
|
|
142
282
|
|
|
143
283
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
144
284
|
|
|
145
285
|
|
|
146
286
|
|
|
287
|
+
|
|
288
|
+
## [0.3.2] - 2025-12-28
|
|
289
|
+
|
|
290
|
+
fixed an issue 6
|
|
291
|
+
|
|
147
292
|
## [0.3.1] - 2025-10-03
|
|
148
293
|
|
|
149
294
|
bug fixed with overwriting committed changes
|
|
150
295
|
|
|
296
|
+
|
|
297
|
+
## [0.3.2] - 2025-12-28
|
|
298
|
+
|
|
299
|
+
fixed an issue 6
|
|
300
|
+
|
|
151
301
|
## [0.3.0] - 2025-10-03
|
|
152
302
|
|
|
153
303
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
154
304
|
|
|
155
305
|
|
|
306
|
+
|
|
307
|
+
## [0.3.2] - 2025-12-28
|
|
308
|
+
|
|
309
|
+
fixed an issue 6
|
|
310
|
+
|
|
156
311
|
## [0.3.1] - 2025-10-03
|
|
157
312
|
|
|
158
313
|
bug fixed with overwriting committed changes
|
|
159
314
|
|
|
315
|
+
|
|
316
|
+
## [0.3.2] - 2025-12-28
|
|
317
|
+
|
|
318
|
+
fixed an issue 6
|
|
319
|
+
|
|
160
320
|
## [0.1.2] - 2025-09-18
|
|
161
321
|
|
|
162
322
|
fix: failed to generate with empty permissions actions
|
|
@@ -166,38 +326,78 @@ fix: failed to generate with empty permissions actions
|
|
|
166
326
|
|
|
167
327
|
|
|
168
328
|
|
|
329
|
+
|
|
330
|
+
## [0.3.2] - 2025-12-28
|
|
331
|
+
|
|
332
|
+
fixed an issue 6
|
|
333
|
+
|
|
169
334
|
## [0.3.1] - 2025-10-03
|
|
170
335
|
|
|
171
336
|
bug fixed with overwriting committed changes
|
|
172
337
|
|
|
338
|
+
|
|
339
|
+
## [0.3.2] - 2025-12-28
|
|
340
|
+
|
|
341
|
+
fixed an issue 6
|
|
342
|
+
|
|
173
343
|
## [0.3.0] - 2025-10-03
|
|
174
344
|
|
|
175
345
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
176
346
|
|
|
177
347
|
|
|
348
|
+
|
|
349
|
+
## [0.3.2] - 2025-12-28
|
|
350
|
+
|
|
351
|
+
fixed an issue 6
|
|
352
|
+
|
|
178
353
|
## [0.3.1] - 2025-10-03
|
|
179
354
|
|
|
180
355
|
bug fixed with overwriting committed changes
|
|
181
356
|
|
|
357
|
+
|
|
358
|
+
## [0.3.2] - 2025-12-28
|
|
359
|
+
|
|
360
|
+
fixed an issue 6
|
|
361
|
+
|
|
182
362
|
## [0.2.2] - 2025-10-02
|
|
183
363
|
|
|
184
364
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
185
365
|
|
|
186
366
|
|
|
187
367
|
|
|
368
|
+
|
|
369
|
+
## [0.3.2] - 2025-12-28
|
|
370
|
+
|
|
371
|
+
fixed an issue 6
|
|
372
|
+
|
|
188
373
|
## [0.3.1] - 2025-10-03
|
|
189
374
|
|
|
190
375
|
bug fixed with overwriting committed changes
|
|
191
376
|
|
|
377
|
+
|
|
378
|
+
## [0.3.2] - 2025-12-28
|
|
379
|
+
|
|
380
|
+
fixed an issue 6
|
|
381
|
+
|
|
192
382
|
## [0.3.0] - 2025-10-03
|
|
193
383
|
|
|
194
384
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
195
385
|
|
|
196
386
|
|
|
387
|
+
|
|
388
|
+
## [0.3.2] - 2025-12-28
|
|
389
|
+
|
|
390
|
+
fixed an issue 6
|
|
391
|
+
|
|
197
392
|
## [0.3.1] - 2025-10-03
|
|
198
393
|
|
|
199
394
|
bug fixed with overwriting committed changes
|
|
200
395
|
|
|
396
|
+
|
|
397
|
+
## [0.3.2] - 2025-12-28
|
|
398
|
+
|
|
399
|
+
fixed an issue 6
|
|
400
|
+
|
|
201
401
|
## [0.2.1] - 2025-09-18
|
|
202
402
|
|
|
203
403
|
Improve generated package.json
|
|
@@ -205,38 +405,78 @@ Improve generated package.json
|
|
|
205
405
|
|
|
206
406
|
|
|
207
407
|
|
|
408
|
+
|
|
409
|
+
## [0.3.2] - 2025-12-28
|
|
410
|
+
|
|
411
|
+
fixed an issue 6
|
|
412
|
+
|
|
208
413
|
## [0.3.1] - 2025-10-03
|
|
209
414
|
|
|
210
415
|
bug fixed with overwriting committed changes
|
|
211
416
|
|
|
417
|
+
|
|
418
|
+
## [0.3.2] - 2025-12-28
|
|
419
|
+
|
|
420
|
+
fixed an issue 6
|
|
421
|
+
|
|
212
422
|
## [0.3.0] - 2025-10-03
|
|
213
423
|
|
|
214
424
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
215
425
|
|
|
216
426
|
|
|
427
|
+
|
|
428
|
+
## [0.3.2] - 2025-12-28
|
|
429
|
+
|
|
430
|
+
fixed an issue 6
|
|
431
|
+
|
|
217
432
|
## [0.3.1] - 2025-10-03
|
|
218
433
|
|
|
219
434
|
bug fixed with overwriting committed changes
|
|
220
435
|
|
|
436
|
+
|
|
437
|
+
## [0.3.2] - 2025-12-28
|
|
438
|
+
|
|
439
|
+
fixed an issue 6
|
|
440
|
+
|
|
221
441
|
## [0.2.2] - 2025-10-02
|
|
222
442
|
|
|
223
443
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
224
444
|
|
|
225
445
|
|
|
226
446
|
|
|
447
|
+
|
|
448
|
+
## [0.3.2] - 2025-12-28
|
|
449
|
+
|
|
450
|
+
fixed an issue 6
|
|
451
|
+
|
|
227
452
|
## [0.3.1] - 2025-10-03
|
|
228
453
|
|
|
229
454
|
bug fixed with overwriting committed changes
|
|
230
455
|
|
|
456
|
+
|
|
457
|
+
## [0.3.2] - 2025-12-28
|
|
458
|
+
|
|
459
|
+
fixed an issue 6
|
|
460
|
+
|
|
231
461
|
## [0.3.0] - 2025-10-03
|
|
232
462
|
|
|
233
463
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
234
464
|
|
|
235
465
|
|
|
466
|
+
|
|
467
|
+
## [0.3.2] - 2025-12-28
|
|
468
|
+
|
|
469
|
+
fixed an issue 6
|
|
470
|
+
|
|
236
471
|
## [0.3.1] - 2025-10-03
|
|
237
472
|
|
|
238
473
|
bug fixed with overwriting committed changes
|
|
239
474
|
|
|
475
|
+
|
|
476
|
+
## [0.3.2] - 2025-12-28
|
|
477
|
+
|
|
478
|
+
fixed an issue 6
|
|
479
|
+
|
|
240
480
|
## [0.2.0] - 2025-09-18
|
|
241
481
|
|
|
242
482
|
implement multi-model generation (controllers, services); fix service-controller interaction; update documentation: more clear & reflect important things
|
|
@@ -245,38 +485,78 @@ implement multi-model generation (controllers, services); fix service-controller
|
|
|
245
485
|
|
|
246
486
|
|
|
247
487
|
|
|
488
|
+
|
|
489
|
+
## [0.3.2] - 2025-12-28
|
|
490
|
+
|
|
491
|
+
fixed an issue 6
|
|
492
|
+
|
|
248
493
|
## [0.3.1] - 2025-10-03
|
|
249
494
|
|
|
250
495
|
bug fixed with overwriting committed changes
|
|
251
496
|
|
|
497
|
+
|
|
498
|
+
## [0.3.2] - 2025-12-28
|
|
499
|
+
|
|
500
|
+
fixed an issue 6
|
|
501
|
+
|
|
252
502
|
## [0.3.0] - 2025-10-03
|
|
253
503
|
|
|
254
504
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
255
505
|
|
|
256
506
|
|
|
507
|
+
|
|
508
|
+
## [0.3.2] - 2025-12-28
|
|
509
|
+
|
|
510
|
+
fixed an issue 6
|
|
511
|
+
|
|
257
512
|
## [0.3.1] - 2025-10-03
|
|
258
513
|
|
|
259
514
|
bug fixed with overwriting committed changes
|
|
260
515
|
|
|
516
|
+
|
|
517
|
+
## [0.3.2] - 2025-12-28
|
|
518
|
+
|
|
519
|
+
fixed an issue 6
|
|
520
|
+
|
|
261
521
|
## [0.2.2] - 2025-10-02
|
|
262
522
|
|
|
263
523
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
264
524
|
|
|
265
525
|
|
|
266
526
|
|
|
527
|
+
|
|
528
|
+
## [0.3.2] - 2025-12-28
|
|
529
|
+
|
|
530
|
+
fixed an issue 6
|
|
531
|
+
|
|
267
532
|
## [0.3.1] - 2025-10-03
|
|
268
533
|
|
|
269
534
|
bug fixed with overwriting committed changes
|
|
270
535
|
|
|
536
|
+
|
|
537
|
+
## [0.3.2] - 2025-12-28
|
|
538
|
+
|
|
539
|
+
fixed an issue 6
|
|
540
|
+
|
|
271
541
|
## [0.3.0] - 2025-10-03
|
|
272
542
|
|
|
273
543
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
274
544
|
|
|
275
545
|
|
|
546
|
+
|
|
547
|
+
## [0.3.2] - 2025-12-28
|
|
548
|
+
|
|
549
|
+
fixed an issue 6
|
|
550
|
+
|
|
276
551
|
## [0.3.1] - 2025-10-03
|
|
277
552
|
|
|
278
553
|
bug fixed with overwriting committed changes
|
|
279
554
|
|
|
555
|
+
|
|
556
|
+
## [0.3.2] - 2025-12-28
|
|
557
|
+
|
|
558
|
+
fixed an issue 6
|
|
559
|
+
|
|
280
560
|
## [0.2.1] - 2025-09-18
|
|
281
561
|
|
|
282
562
|
Improve generated package.json
|
|
@@ -284,38 +564,78 @@ Improve generated package.json
|
|
|
284
564
|
|
|
285
565
|
|
|
286
566
|
|
|
567
|
+
|
|
568
|
+
## [0.3.2] - 2025-12-28
|
|
569
|
+
|
|
570
|
+
fixed an issue 6
|
|
571
|
+
|
|
287
572
|
## [0.3.1] - 2025-10-03
|
|
288
573
|
|
|
289
574
|
bug fixed with overwriting committed changes
|
|
290
575
|
|
|
576
|
+
|
|
577
|
+
## [0.3.2] - 2025-12-28
|
|
578
|
+
|
|
579
|
+
fixed an issue 6
|
|
580
|
+
|
|
291
581
|
## [0.3.0] - 2025-10-03
|
|
292
582
|
|
|
293
583
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
294
584
|
|
|
295
585
|
|
|
586
|
+
|
|
587
|
+
## [0.3.2] - 2025-12-28
|
|
588
|
+
|
|
589
|
+
fixed an issue 6
|
|
590
|
+
|
|
296
591
|
## [0.3.1] - 2025-10-03
|
|
297
592
|
|
|
298
593
|
bug fixed with overwriting committed changes
|
|
299
594
|
|
|
595
|
+
|
|
596
|
+
## [0.3.2] - 2025-12-28
|
|
597
|
+
|
|
598
|
+
fixed an issue 6
|
|
599
|
+
|
|
300
600
|
## [0.2.2] - 2025-10-02
|
|
301
601
|
|
|
302
602
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
303
603
|
|
|
304
604
|
|
|
305
605
|
|
|
606
|
+
|
|
607
|
+
## [0.3.2] - 2025-12-28
|
|
608
|
+
|
|
609
|
+
fixed an issue 6
|
|
610
|
+
|
|
306
611
|
## [0.3.1] - 2025-10-03
|
|
307
612
|
|
|
308
613
|
bug fixed with overwriting committed changes
|
|
309
614
|
|
|
615
|
+
|
|
616
|
+
## [0.3.2] - 2025-12-28
|
|
617
|
+
|
|
618
|
+
fixed an issue 6
|
|
619
|
+
|
|
310
620
|
## [0.3.0] - 2025-10-03
|
|
311
621
|
|
|
312
622
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
313
623
|
|
|
314
624
|
|
|
625
|
+
|
|
626
|
+
## [0.3.2] - 2025-12-28
|
|
627
|
+
|
|
628
|
+
fixed an issue 6
|
|
629
|
+
|
|
315
630
|
## [0.3.1] - 2025-10-03
|
|
316
631
|
|
|
317
632
|
bug fixed with overwriting committed changes
|
|
318
633
|
|
|
634
|
+
|
|
635
|
+
## [0.3.2] - 2025-12-28
|
|
636
|
+
|
|
637
|
+
fixed an issue 6
|
|
638
|
+
|
|
319
639
|
## [0.1.1] - 2025-09-17
|
|
320
640
|
|
|
321
641
|
Initial release
|
|
@@ -394,8 +394,7 @@ window.AppConfig = {
|
|
|
394
394
|
target.innerHTML = html;
|
|
395
395
|
// Update browser history
|
|
396
396
|
window.history.pushState({}, '', url);
|
|
397
|
-
//
|
|
398
|
-
initializeEventListeners();
|
|
397
|
+
// No need to re-initialize - delegation handles new content automatically
|
|
399
398
|
})
|
|
400
399
|
.catch(error => {
|
|
401
400
|
console.error('Navigation failed:', error);
|
|
@@ -616,56 +615,52 @@ window.AppConfig = {
|
|
|
616
615
|
// ===== INITIALIZATION =====
|
|
617
616
|
|
|
618
617
|
/**
|
|
619
|
-
* Initialize event
|
|
618
|
+
* Initialize event delegation for links and forms
|
|
619
|
+
* Uses document-level listeners that work for all current and future elements
|
|
620
620
|
*/
|
|
621
621
|
function initializeEventListeners() {
|
|
622
|
-
//
|
|
623
|
-
|
|
622
|
+
// Only initialize once
|
|
623
|
+
if (window._appEventListenersInitialized) return;
|
|
624
|
+
window._appEventListenersInitialized = true;
|
|
625
|
+
|
|
626
|
+
// Handle all link clicks via delegation
|
|
627
|
+
document.addEventListener('click', function(event) {
|
|
628
|
+
const link = event.target.closest('a[href]');
|
|
629
|
+
if (!link) return;
|
|
630
|
+
|
|
624
631
|
const href = link.getAttribute('href');
|
|
625
|
-
|
|
632
|
+
|
|
626
633
|
// Skip external links, anchors, and special protocols
|
|
627
|
-
if (!href ||
|
|
628
|
-
href.startsWith('http://') ||
|
|
629
|
-
href.startsWith('https://') ||
|
|
630
|
-
href.startsWith('mailto:') ||
|
|
631
|
-
href.startsWith('tel:') ||
|
|
634
|
+
if (!href ||
|
|
635
|
+
href.startsWith('http://') ||
|
|
636
|
+
href.startsWith('https://') ||
|
|
637
|
+
href.startsWith('mailto:') ||
|
|
638
|
+
href.startsWith('tel:') ||
|
|
632
639
|
href.startsWith('#') ||
|
|
633
640
|
href.startsWith('javascript:')) {
|
|
634
641
|
return;
|
|
635
642
|
}
|
|
636
|
-
|
|
637
|
-
// Remove any existing event listeners and add new one
|
|
638
|
-
link.removeEventListener('click', handleLinkClick);
|
|
639
|
-
link.addEventListener('click', handleLinkClick);
|
|
640
|
-
});
|
|
641
|
-
|
|
642
|
-
// Handle forms with strategy
|
|
643
|
-
document.querySelectorAll('form[data-strategy]').forEach(form => {
|
|
644
|
-
// Remove any existing event listeners and add new one
|
|
645
|
-
form.removeEventListener('submit', handleFormSubmit);
|
|
646
|
-
form.addEventListener('submit', handleFormSubmit);
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
643
|
|
|
650
|
-
|
|
651
|
-
* Handle link click for internal navigation
|
|
652
|
-
* @param {Event} event - Click event
|
|
653
|
-
*/
|
|
654
|
-
function handleLinkClick(event) {
|
|
655
|
-
event.preventDefault();
|
|
656
|
-
const href = event.currentTarget.getAttribute('href');
|
|
657
|
-
if (href) {
|
|
644
|
+
event.preventDefault();
|
|
658
645
|
navigateToPage(href);
|
|
659
|
-
}
|
|
646
|
+
});
|
|
647
|
+
|
|
648
|
+
// Handle all form submissions via delegation
|
|
649
|
+
document.addEventListener('submit', function(event) {
|
|
650
|
+
const form = event.target.closest('form[data-strategy]');
|
|
651
|
+
if (!form) return;
|
|
652
|
+
|
|
653
|
+
event.preventDefault();
|
|
654
|
+
handleFormSubmit(event, form);
|
|
655
|
+
});
|
|
660
656
|
}
|
|
661
657
|
|
|
662
658
|
/**
|
|
663
659
|
* Handle form submission
|
|
664
660
|
* @param {Event} event - Submit event
|
|
665
661
|
*/
|
|
666
|
-
function handleFormSubmit(event) {
|
|
667
|
-
event.
|
|
668
|
-
const form = event.target;
|
|
662
|
+
function handleFormSubmit(event, form) {
|
|
663
|
+
//const form = event.target.closest ? event.target.closest('form') : event.target;
|
|
669
664
|
|
|
670
665
|
// Check for confirmation message
|
|
671
666
|
const confirmMessage = form.getAttribute('data-confirm-message');
|