+13
flake.lock
+13
flake.lock
···
32
32
"url": "https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js"
33
33
}
34
34
},
35
+
"htmx-ws-src": {
36
+
"flake": false,
37
+
"locked": {
38
+
"narHash": "sha256-XbUFiv94ZPB6VVULoTWOsje5Gq1I+IT72lMc4CpUYrY=",
39
+
"type": "file",
40
+
"url": "https://unpkg.com/htmx.org@2.0.4/dist/ext/ws.js"
41
+
},
42
+
"original": {
43
+
"type": "file",
44
+
"url": "https://unpkg.com/htmx.org@2.0.4/dist/ext/ws.js"
45
+
}
46
+
},
35
47
"ibm-plex-mono-src": {
36
48
"flake": false,
37
49
"locked": {
···
107
119
"inputs": {
108
120
"gitignore": "gitignore",
109
121
"htmx-src": "htmx-src",
122
+
"htmx-ws-src": "htmx-ws-src",
110
123
"ibm-plex-mono-src": "ibm-plex-mono-src",
111
124
"indigo": "indigo",
112
125
"inter-fonts-src": "inter-fonts-src",
+7
-2
flake.nix
+7
-2
flake.nix
···
11
11
url = "https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js";
12
12
flake = false;
13
13
};
14
+
htmx-ws-src = {
15
+
url = "https://unpkg.com/htmx.org@2.0.4/dist/ext/ws.js";
16
+
flake = false;
17
+
};
14
18
lucide-src = {
15
19
url = "https://github.com/lucide-icons/lucide/releases/download/0.483.0/lucide-icons-0.483.0.zip";
16
20
flake = false;
···
38
42
nixpkgs,
39
43
indigo,
40
44
htmx-src,
45
+
htmx-ws-src,
41
46
lucide-src,
42
47
gitignore,
43
48
inter-fonts-src,
···
56
61
overlays.default = final: prev: let
57
62
goModHash = "sha256-G+59ZwQwBbnO9ZjAB5zMEmWZbeG4k7ko/lPz+ceqYKs=";
58
63
appviewDeps = {
59
-
inherit htmx-src lucide-src inter-fonts-src ibm-plex-mono-src goModHash gitignoreSource;
64
+
inherit htmx-src htmx-ws-src lucide-src inter-fonts-src ibm-plex-mono-src goModHash gitignoreSource;
60
65
};
61
66
knotDeps = {
62
67
inherit goModHash gitignoreSource;
···
119
124
];
120
125
shellHook = ''
121
126
mkdir -p appview/pages/static/{fonts,icons}
122
-
cp -f ${htmx-src} appview/pages/static/htmx.min.js
127
+
${pkgs.uglify-js}/bin/uglifyjs ${htmx-src} ${htmx-ws-src} -c -m > appview/pages/static/htmx.min.js
123
128
cp -rf ${lucide-src}/*.svg appview/pages/static/icons/
124
129
cp -f ${inter-fonts-src}/web/InterVariable*.woff2 appview/pages/static/fonts/
125
130
cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 appview/pages/static/fonts/
+3
go.mod
+3
go.mod
···
82
82
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
83
83
github.com/hashicorp/golang-lru v1.0.2 // indirect
84
84
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
85
+
github.com/hpcloud/tail v1.0.0 // indirect
85
86
github.com/ipfs/bbloom v0.0.4 // indirect
86
87
github.com/ipfs/boxo v0.30.0 // indirect
87
88
github.com/ipfs/go-block-format v0.2.1 // indirect
···
150
151
google.golang.org/genproto/googleapis/rpc v0.0.0-20250519155744-55703ea1f237 // indirect
151
152
google.golang.org/grpc v1.72.1 // indirect
152
153
google.golang.org/protobuf v1.36.6 // indirect
154
+
gopkg.in/fsnotify.v1 v1.4.7 // indirect
155
+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
153
156
gopkg.in/warnings.v0 v0.1.2 // indirect
154
157
gotest.tools/v3 v3.5.2 // indirect
155
158
lukechampine.com/blake3 v1.4.1 // indirect
+2
go.sum
+2
go.sum
···
182
182
github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
183
183
github.com/hiddeco/sshsig v0.2.0 h1:gMWllgKCITXdydVkDL+Zro0PU96QI55LwUwebSwNTSw=
184
184
github.com/hiddeco/sshsig v0.2.0/go.mod h1:nJc98aGgiH6Yql2doqH4CTBVHexQA40Q+hMMLHP4EqE=
185
+
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
185
186
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
186
187
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
187
188
github.com/ipfs/bbloom v0.0.4 h1:Gi+8EGJ2y5qiD5FbsbpX/TMNcJw8gSqr7eyjHa4Fhvs=
···
577
578
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
578
579
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
579
580
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
581
+
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
580
582
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
581
583
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
582
584
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
+3
-1
nix/pkgs/appview.nix
+3
-1
nix/pkgs/appview.nix
···
2
2
buildGoModule,
3
3
stdenv,
4
4
htmx-src,
5
+
htmx-ws-src,
5
6
lucide-src,
6
7
inter-fonts-src,
7
8
ibm-plex-mono-src,
···
9
10
sqlite-lib,
10
11
goModHash,
11
12
gitignoreSource,
13
+
uglify-js,
12
14
}:
13
15
buildGoModule {
14
16
inherit stdenv;
···
20
22
postUnpack = ''
21
23
pushd source
22
24
mkdir -p appview/pages/static/{fonts,icons}
23
-
cp -f ${htmx-src} appview/pages/static/htmx.min.js
25
+
${uglify-js}/bin/uglifyjs ${htmx-src} ${htmx-ws-src} -c -m > appview/pages/static/htmx.min.js
24
26
cp -rf ${lucide-src}/*.svg appview/pages/static/icons/
25
27
cp -f ${inter-fonts-src}/web/InterVariable*.woff2 appview/pages/static/fonts/
26
28
cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 appview/pages/static/fonts/