create-gardener 2.0.7 → 2.0.8
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/package.json +1 -1
- package/template/src/backend/controllers/gardener/addPage.ts +3 -3
- package/template/src/backend/routes/gardener.route.ts +1 -1
- package/template/src/frontend/static/gardenerDev.js +1 -1
- package/template/src/frontend/static/style.css +21 -32
- package/template/src/frontend/template/template._.ejs +1 -0
- package/template/src/frontend/views/_.ejs +1 -0
package/package.json
CHANGED
|
@@ -41,12 +41,12 @@ async function findTemplate(fileName: string) {
|
|
|
41
41
|
|
|
42
42
|
export async function addPage(req: Request, res: Response) {
|
|
43
43
|
try {
|
|
44
|
-
const
|
|
45
|
-
const name = pagename.replaceAll('/', '_');
|
|
44
|
+
const name: string = req.body.page;
|
|
45
|
+
// const name = pagename.replaceAll('/', '_');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
const templatePath = await findTemplate(name);//path.join(frontendDir, findTemplate(name)); //path.join(frontendDir, 'frontendtemplate.ejs');
|
|
49
|
+
const templatePath = await findTemplate(name + '.ejs');//path.join(frontendDir, findTemplate(name)); //path.join(frontendDir, 'frontendtemplate.ejs');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
@@ -78,7 +78,7 @@ const pagebtns = gardener({
|
|
|
78
78
|
const result = await fetch('/savetemplate', {
|
|
79
79
|
method: 'POST',
|
|
80
80
|
headers: { "Content-Type": 'application/json' },
|
|
81
|
-
body: JSON.stringify({ path:
|
|
81
|
+
body: JSON.stringify({ path: fetchElement('#fileName').innerText })
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
const data = await result.json(); // ✅ fix
|
|
@@ -273,9 +273,6 @@
|
|
|
273
273
|
.bottom-4 {
|
|
274
274
|
bottom: calc(var(--spacing) * 4);
|
|
275
275
|
}
|
|
276
|
-
.bottom-6 {
|
|
277
|
-
bottom: calc(var(--spacing) * 6);
|
|
278
|
-
}
|
|
279
276
|
.bottom-20 {
|
|
280
277
|
bottom: calc(var(--spacing) * 20);
|
|
281
278
|
}
|
|
@@ -306,6 +303,24 @@
|
|
|
306
303
|
.z-100 {
|
|
307
304
|
z-index: 100;
|
|
308
305
|
}
|
|
306
|
+
.container {
|
|
307
|
+
width: 100%;
|
|
308
|
+
@media (width >= 40rem) {
|
|
309
|
+
max-width: 40rem;
|
|
310
|
+
}
|
|
311
|
+
@media (width >= 48rem) {
|
|
312
|
+
max-width: 48rem;
|
|
313
|
+
}
|
|
314
|
+
@media (width >= 64rem) {
|
|
315
|
+
max-width: 64rem;
|
|
316
|
+
}
|
|
317
|
+
@media (width >= 80rem) {
|
|
318
|
+
max-width: 80rem;
|
|
319
|
+
}
|
|
320
|
+
@media (width >= 96rem) {
|
|
321
|
+
max-width: 96rem;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
309
324
|
.m-2 {
|
|
310
325
|
margin: calc(var(--spacing) * 2);
|
|
311
326
|
}
|
|
@@ -351,6 +366,9 @@
|
|
|
351
366
|
.grid {
|
|
352
367
|
display: grid;
|
|
353
368
|
}
|
|
369
|
+
.hidden {
|
|
370
|
+
display: none;
|
|
371
|
+
}
|
|
354
372
|
.inline {
|
|
355
373
|
display: inline;
|
|
356
374
|
}
|
|
@@ -369,9 +387,6 @@
|
|
|
369
387
|
.h-15 {
|
|
370
388
|
height: calc(var(--spacing) * 15);
|
|
371
389
|
}
|
|
372
|
-
.h-35 {
|
|
373
|
-
height: calc(var(--spacing) * 35);
|
|
374
|
-
}
|
|
375
390
|
.h-96 {
|
|
376
391
|
height: calc(var(--spacing) * 96);
|
|
377
392
|
}
|
|
@@ -393,12 +408,6 @@
|
|
|
393
408
|
.w-15 {
|
|
394
409
|
width: calc(var(--spacing) * 15);
|
|
395
410
|
}
|
|
396
|
-
.w-35 {
|
|
397
|
-
width: calc(var(--spacing) * 35);
|
|
398
|
-
}
|
|
399
|
-
.w-50 {
|
|
400
|
-
width: calc(var(--spacing) * 50);
|
|
401
|
-
}
|
|
402
411
|
.w-96 {
|
|
403
412
|
width: calc(var(--spacing) * 96);
|
|
404
413
|
}
|
|
@@ -555,9 +564,6 @@
|
|
|
555
564
|
.bg-gray-200 {
|
|
556
565
|
background-color: var(--color-gray-200);
|
|
557
566
|
}
|
|
558
|
-
.bg-gray-400 {
|
|
559
|
-
background-color: var(--color-gray-400);
|
|
560
|
-
}
|
|
561
567
|
.bg-gray-500 {
|
|
562
568
|
background-color: var(--color-gray-500);
|
|
563
569
|
}
|
|
@@ -570,9 +576,6 @@
|
|
|
570
576
|
.bg-green-300 {
|
|
571
577
|
background-color: var(--color-green-300);
|
|
572
578
|
}
|
|
573
|
-
.bg-green-500 {
|
|
574
|
-
background-color: var(--color-green-500);
|
|
575
|
-
}
|
|
576
579
|
.bg-green-700 {
|
|
577
580
|
background-color: var(--color-green-700);
|
|
578
581
|
}
|
|
@@ -793,13 +796,6 @@
|
|
|
793
796
|
}
|
|
794
797
|
}
|
|
795
798
|
}
|
|
796
|
-
.hover\:bg-gray-800 {
|
|
797
|
-
&:hover {
|
|
798
|
-
@media (hover: hover) {
|
|
799
|
-
background-color: var(--color-gray-800);
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
799
|
.hover\:bg-gray-900 {
|
|
804
800
|
&:hover {
|
|
805
801
|
@media (hover: hover) {
|
|
@@ -807,13 +803,6 @@
|
|
|
807
803
|
}
|
|
808
804
|
}
|
|
809
805
|
}
|
|
810
|
-
.hover\:bg-green-600 {
|
|
811
|
-
&:hover {
|
|
812
|
-
@media (hover: hover) {
|
|
813
|
-
background-color: var(--color-green-600);
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
806
|
.hover\:bg-green-800 {
|
|
818
807
|
&:hover {
|
|
819
808
|
@media (hover: hover) {
|