create-gardener 1.1.6 → 1.1.7
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.controller.ts +6 -19
- package/template/src/backend/routes/gardener.route.ts +2 -1
- package/template/src/backend/server.ts +1 -1
- package/template/src/frontend/frontendtemplate.ejs +4 -4
- package/template/src/frontend/gardenerST.js +340 -0
- package/template/src/frontend/static/components/emailsvg.js +55 -0
- package/template/src/frontend/{components → static/components}/eyeoff.js +1 -1
- package/template/src/frontend/static/components/eyeon.js +43 -0
- package/template/src/frontend/{components → static/components}/notification.js +1 -1
- package/template/src/frontend/{components → static/components}/passwordBox.js +3 -3
- package/template/src/frontend/static/components/test.js +54 -0
- package/template/src/frontend/{gardener.js → static/gardener.js} +14 -1
- package/template/src/frontend/{style.css → static/style.css} +148 -347
- package/template/src/frontend/views/_.ejs +8 -8
- package/template/src/frontend/views/_login.ejs +8 -8
- package/.direnv/bin/nix-direnv-reload +0 -19
- package/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc +0 -2140
- package/.envrc +0 -1
- package/template/src/frontend/components/emailsvg.js +0 -55
- package/template/src/frontend/components/eyeon.js +0 -44
- package/template/src/frontend/components/test.js +0 -54
- /package/template/src/{backend → frontend/static}/cache/gardener_500x500.webp +0 -0
- /package/template/src/frontend/{components → static/components}/nonui/api.js +0 -0
- /package/template/src/frontend/{global.js → static/global.js} +0 -0
- /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="
|
|
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><img src="/cache/photo_800x600.webp"></code></li>
|
|
181
|
+
<li>Use: <code><img src="/static/cache/photo_800x600.webp"></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,10 @@ replaceElement(
|
|
|
214
214
|
|
|
215
215
|
</div>
|
|
216
216
|
|
|
217
|
-
<script src="/global.js" type="module"></script>
|
|
217
|
+
<script src="/static/global.js" type="module"></script>
|
|
218
218
|
<script type="module">
|
|
219
|
-
import { parser, fetchElement } from "/gardener.js";
|
|
220
|
-
// parser(fetchElement("
|
|
219
|
+
import { parser, fetchElement } from "/static/gardener.js";
|
|
220
|
+
// parser(fetchElement("body")); // uncomment when needed
|
|
221
221
|
</script>
|
|
222
222
|
<div>
|
|
223
223
|
|
|
@@ -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
|
-
|
|
7
|
-
|
|
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));
|
|
@@ -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
|