create-gardener 1.1.6 → 1.1.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.
Files changed (32) hide show
  1. package/Readme.md +2 -313
  2. package/package.json +1 -1
  3. package/template/package.json +11 -12
  4. package/template/pnpm-lock.yaml +1545 -0
  5. package/template/src/backend/controllers/gardener.controller.ts +7 -32
  6. package/template/src/backend/routes/gardener.route.ts +2 -1
  7. package/template/src/backend/server.ts +1 -1
  8. package/template/src/frontend/frontendtemplate.ejs +4 -4
  9. package/template/src/frontend/gardenerST.js +430 -0
  10. package/template/src/frontend/static/components/emailsvg.js +55 -0
  11. package/template/src/frontend/{components → static/components}/eyeoff.js +1 -1
  12. package/template/src/frontend/static/components/eyeon.js +43 -0
  13. package/template/src/frontend/{components → static/components}/notification.js +1 -1
  14. package/template/src/frontend/{components → static/components}/passwordBox.js +3 -3
  15. package/template/src/frontend/static/components/test.js +54 -0
  16. package/template/src/frontend/{gardener.js → static/gardener.js} +76 -4
  17. package/template/src/frontend/static/style.css +1048 -0
  18. package/template/src/frontend/style.css +148 -350
  19. package/template/src/frontend/views/_.ejs +17 -8
  20. package/template/src/frontend/views/_login.ejs +8 -8
  21. package/template/tsconfig.json +1 -1
  22. package/.direnv/bin/nix-direnv-reload +0 -19
  23. package/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc +0 -2140
  24. package/.envrc +0 -1
  25. package/template/Readme.md +0 -349
  26. package/template/src/frontend/components/emailsvg.js +0 -55
  27. package/template/src/frontend/components/eyeon.js +0 -44
  28. package/template/src/frontend/components/test.js +0 -54
  29. /package/template/src/{backend → frontend/static}/cache/gardener_500x500.webp +0 -0
  30. /package/template/src/frontend/{components → static/components}/nonui/api.js +0 -0
  31. /package/template/src/frontend/{global.js → static/global.js} +0 -0
  32. /package/template/src/frontend/{style2.css → static/style2.css} +0 -0
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Gardener – Declarative DOM Library</title>
7
7
  <!-- Assume your custom styles are still here -->
8
- <link href="/style.css" rel="stylesheet"/>
9
- <link href="/style2.css" rel="stylesheet"/>
8
+ <link href="/static/style.css" rel="stylesheet"/>
9
+ <link href="/static/style2.css" rel="stylesheet"/>
10
10
  </head>
11
11
 
12
12
  <body>
@@ -32,7 +32,7 @@
32
32
  </div>
33
33
 
34
34
  <img
35
- src="/cache/gardener_500x500.webp"
35
+ src="/static/cache/gardener_500x500.webp"
36
36
  alt="Gardener logo"
37
37
  class="w-64 lg:w-80 rounded-2xl shadow-2xl"
38
38
  />
@@ -42,7 +42,7 @@
42
42
  </section>
43
43
 
44
44
  <!-- Design Philosophy -->
45
- <section class="bg-linear-to-br from-slate-900 to-slate-800 rounded-3xl p-10 lg:p-12 shadow-2xl space-y-6">
45
+ <section class="rounded-3xl p-10 lg:p-12 shadow-2xl space-y-6">
46
46
  <h2 class="text-3xl font-bold">Design Philosophy</h2>
47
47
  <ul class="list-disc list-inside space-y-3 text-lg">
48
48
  <li>No virtual DOM</li>
@@ -178,7 +178,7 @@ replaceElement(
178
178
  <h2 class="text-3xl font-bold">Image Optimization & Caching</h2>
179
179
  <ul class="list-disc list-inside space-y-3 text-slate-700">
180
180
  <li>Place originals in <code>/src/frontend/assets/</code></li>
181
- <li>Use: <code>&lt;img src="/cache/photo_800x600.webp"&gt;</code></li>
181
+ <li>Use: <code>&lt;img src="/static/cache/photo_800x600.webp"&gt;</code></li>
182
182
  </ul>
183
183
  <p class="text-slate-600 mt-4">
184
184
  Server auto-converts to WebP, resizes, and caches on demand.
@@ -214,10 +214,19 @@ replaceElement(
214
214
 
215
215
  </div>
216
216
 
217
- <script src="/global.js" type="module"></script>
217
+ <!-- <div class='test'> -->
218
+ <!-- hi there you must be ?name? how old are you let me guess ?age? -->
219
+ <!-- </div> -->
220
+
221
+ <script src="/static/global.js" type="module"></script>
218
222
  <script type="module">
219
- import { parser, fetchElement } from "/gardener.js";
220
- // parser(fetchElement("#some-selector")); // uncomment when needed
223
+ import { gardener,parser, fetchElement,replaceElement } from "/static/gardener.js";
224
+ // import parameterised from '/static/components/para.js';
225
+
226
+ // parser('.test')
227
+ // replaceElement('.test', parameterised({name:'ritish',age:'39'}))
228
+
229
+
221
230
  </script>
222
231
  <div>
223
232
 
@@ -3,8 +3,8 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <link rel="stylesheet" href="/style.css">
7
- <link rel="stylesheet" href="/style2.css">
6
+ <link href="/static/style.css" rel="stylesheet"/>
7
+ <link href="/static/style2.css" rel="stylesheet"/>
8
8
  <title>Redvent:Login</title>
9
9
  </head>
10
10
  <body>
@@ -42,14 +42,14 @@
42
42
 
43
43
  </div>
44
44
  </div>
45
- <script src='/global.js' type="module"></script>
45
+ <script src='/static/global.js' type="module"></script>
46
46
  <script type="module">
47
47
 
48
- import { parser, fetchElement, replaceElement, appendElement } from "/gardener.js";
49
- import addNotification from "/components/notification.js";
50
- import emailsvg from '/components/emailsvg.js';
51
- import passwordbox from "/components/passwordBox.js";
52
- import { userlogin } from "/components/nonui/api.js";
48
+ import { parser, fetchElement, replaceElement, appendElement } from "/static/gardener.js";
49
+ import addNotification from "/static/components/notification.js";
50
+ import emailsvg from '/static/components/emailsvg.js';
51
+ import passwordbox from "/static/components/passwordBox.js";
52
+ import { userlogin } from "/static/components/nonui/api.js";
53
53
 
54
54
  // mount password input
55
55
  replaceElement(fetchElement(".passwordbox"), passwordbox(false));
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  // File Layout
5
5
  "rootDir": "./src/backend/",
6
- "outDir": "./build",
6
+ "outDir": "./src/build",
7
7
 
8
8
  // Environment Settings
9
9
  // See also https://aka.ms/tsconfig/module
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
- if [[ ! -d "/home/ritish/Workshop/web/Gardener/GardenerNPM" ]]; then
4
- echo "Cannot find source directory; Did you move it?"
5
- echo "(Looking for "/home/ritish/Workshop/web/Gardener/GardenerNPM")"
6
- echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
7
- exit 1
8
- fi
9
-
10
- # rebuild the cache forcefully
11
- _nix_direnv_force_reload=1 direnv exec "/home/ritish/Workshop/web/Gardener/GardenerNPM" true
12
-
13
- # Update the mtime for .envrc.
14
- # This will cause direnv to reload again - but without re-building.
15
- touch "/home/ritish/Workshop/web/Gardener/GardenerNPM/.envrc"
16
-
17
- # Also update the timestamp of whatever profile_rc we have.
18
- # This makes sure that we know we are up to date.
19
- touch -r "/home/ritish/Workshop/web/Gardener/GardenerNPM/.envrc" "/home/ritish/Workshop/web/Gardener/GardenerNPM/.direnv"/*.rc