desi76-uis 0.1.3 → 0.1.4
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/README.md +6 -16
- package/dist/desi76-uis.js +7 -168
- package/dist/public/_app/immutable/chunks/BKdNeMqa.js +1 -0
- package/dist/public/_app/immutable/chunks/BNjcc32Y.js +1 -0
- package/dist/public/_app/immutable/chunks/BOrZJ9wv.js +1 -0
- package/dist/public/_app/immutable/chunks/BxJOUYDg.js +212 -0
- package/dist/public/_app/immutable/chunks/CEHVxybU.js +1 -0
- package/dist/public/_app/immutable/chunks/{BRdIJQZf.js → CK7by8jY.js} +2 -2
- package/dist/public/_app/immutable/chunks/CWj6FrbW.js +1 -0
- package/dist/public/_app/immutable/chunks/CfOtT4kq.js +3 -0
- package/dist/public/_app/immutable/chunks/CkvDUNFw.js +1 -0
- package/dist/public/_app/immutable/chunks/DS7v80KP.js +1 -0
- package/dist/public/_app/immutable/chunks/fGd2jOqN.js +1 -0
- package/dist/public/_app/immutable/entry/app.C55m83Nl.js +2 -0
- package/dist/public/_app/immutable/entry/start.CcMSN52c.js +1 -0
- package/dist/public/_app/immutable/nodes/0.BqRHARdi.js +2 -0
- package/dist/public/_app/immutable/nodes/1.C44HVQn_.js +1 -0
- package/dist/public/_app/immutable/nodes/2.r7UppAc0.js +1 -0
- package/dist/public/_app/immutable/nodes/3.DW-iX7zv.js +10 -0
- package/dist/public/_app/version.json +1 -1
- package/dist/public/desi76/catamaran.html +20 -20
- package/dist/public/desi76/voila.html +20 -20
- package/dist/public/index.html +18 -18
- package/dist/public/pgdsvg/catamaran_front.svg +1 -1
- package/dist/public/pgdsvg/catamaran_side.svg +1 -1
- package/dist/public/pgdsvg/catamaran_top.svg +1 -1
- package/dist/public/pgdsvg/src_catamaran.svg +1 -1
- package/dist/public/pgdsvg/src_voila.svg +1 -1
- package/dist/public/pgdsvg/voila_face.svg +1 -1
- package/package.json +10 -16
- package/dist/public/_app/immutable/chunks/-3dB4sfD.js +0 -212
- package/dist/public/_app/immutable/chunks/18MFFskO.js +0 -1
- package/dist/public/_app/immutable/chunks/B9BqEnKL.js +0 -1
- package/dist/public/_app/immutable/chunks/BSLmW63Z.js +0 -1
- package/dist/public/_app/immutable/chunks/C-VTTiGA.js +0 -1
- package/dist/public/_app/immutable/chunks/C5iDnTlf.js +0 -1
- package/dist/public/_app/immutable/chunks/CJYxW1X_.js +0 -3
- package/dist/public/_app/immutable/chunks/DRkHJv_W.js +0 -1
- package/dist/public/_app/immutable/chunks/DUjaY1IQ.js +0 -1
- package/dist/public/_app/immutable/chunks/Dk5AQsxB.js +0 -1
- package/dist/public/_app/immutable/entry/app.BwjncBAl.js +0 -2
- package/dist/public/_app/immutable/entry/start.DhlfGYA2.js +0 -1
- package/dist/public/_app/immutable/nodes/0.BI-IRSXP.js +0 -2
- package/dist/public/_app/immutable/nodes/1.IbnFFSpg.js +0 -1
- package/dist/public/_app/immutable/nodes/2.CROdb7Gn.js +0 -1
- package/dist/public/_app/immutable/nodes/3.CYhouG5p.js +0 -10
package/README.md
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
Desi76-uis
|
|
2
2
|
==========
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
Presentation
|
|
6
6
|
------------
|
|
7
7
|
|
|
8
|
-
*desi76-uis* is the
|
|
8
|
+
*desi76-uis* is the mini-server package for enabling the local installation of the web-ui *desi76-ui*.
|
|
9
|
+
|
|
10
|
+
Usually, this mini-server package desi76-uis is part of a mono-repo containing an other package for the web-ui and potentially an *universal* library backing the web-ui.
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
Requirements
|
|
12
14
|
------------
|
|
13
15
|
|
|
14
|
-
- [node](https://nodejs.org) >
|
|
15
|
-
- [npm](https://docs.npmjs.com/cli) >
|
|
16
|
+
- [node](https://nodejs.org) > 22.0.0
|
|
17
|
+
- [npm](https://docs.npmjs.com/cli) > 11.0.0
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
Installation
|
|
@@ -41,15 +43,3 @@ npx --package=desi76-uis desi76-uis
|
|
|
41
43
|
npx --package=desi76-uis desi76-uis --help
|
|
42
44
|
```
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
Development
|
|
46
|
-
-----------
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
git clone https://github.com/charlyoleg2/parame76
|
|
50
|
-
cd parame76
|
|
51
|
-
npm install
|
|
52
|
-
npm run ci
|
|
53
|
-
npm -w desi76-uis run run
|
|
54
|
-
```
|
|
55
|
-
|
package/dist/desi76-uis.js
CHANGED
|
@@ -1,174 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/desi76-uis.ts
|
|
4
|
-
import
|
|
5
|
-
import { hideBin } from "yargs/helpers";
|
|
6
|
-
import fs from "fs";
|
|
4
|
+
import { feli_cli } from "feli";
|
|
7
5
|
import process from "process";
|
|
8
|
-
import
|
|
9
|
-
import open from "open";
|
|
10
|
-
import getport from "get-port";
|
|
11
|
-
|
|
12
|
-
// package.json
|
|
13
|
-
var package_default = {
|
|
14
|
-
name: "desi76-uis",
|
|
15
|
-
description: "mini-server for the web-app desi76-ui",
|
|
16
|
-
version: "0.1.3",
|
|
17
|
-
private: false,
|
|
18
|
-
repository: {
|
|
19
|
-
type: "git",
|
|
20
|
-
url: "git+https://github.com/charlyoleg2/parame76.git"
|
|
21
|
-
},
|
|
22
|
-
homepage: "https://charlyoleg2.github.io/parame76/",
|
|
23
|
-
author: "charlyoleg",
|
|
24
|
-
license: "ISC",
|
|
25
|
-
keywords: [
|
|
26
|
-
"parametrix",
|
|
27
|
-
"3D",
|
|
28
|
-
"CAD"
|
|
29
|
-
],
|
|
30
|
-
type: "module",
|
|
31
|
-
exports: {
|
|
32
|
-
".": {
|
|
33
|
-
types: "./dist/desi76-uis.d.ts",
|
|
34
|
-
default: "./dist/desi76-uis.js"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
bin: {
|
|
38
|
-
"desi76-uis": "dist/desi76-uis.js"
|
|
39
|
-
},
|
|
40
|
-
files: [
|
|
41
|
-
"dist/",
|
|
42
|
-
"!dist/**/*.d.ts",
|
|
43
|
-
"!dist/**/*.map",
|
|
44
|
-
"!dist/**/*.test.*",
|
|
45
|
-
"!dist/**/*.spec.*"
|
|
46
|
-
],
|
|
47
|
-
engines: {
|
|
48
|
-
node: ">=20.10.0"
|
|
49
|
-
},
|
|
50
|
-
tsup: {
|
|
51
|
-
entry: [
|
|
52
|
-
"src/desi76-uis.ts"
|
|
53
|
-
],
|
|
54
|
-
format: "esm",
|
|
55
|
-
splitting: false,
|
|
56
|
-
dts: false,
|
|
57
|
-
sourcemap: false,
|
|
58
|
-
clean: true
|
|
59
|
-
},
|
|
60
|
-
prettier: {
|
|
61
|
-
useTabs: true,
|
|
62
|
-
singleQuote: true,
|
|
63
|
-
trailingComma: "none",
|
|
64
|
-
printWidth: 100,
|
|
65
|
-
plugins: [],
|
|
66
|
-
overrides: []
|
|
67
|
-
},
|
|
68
|
-
scripts: {
|
|
69
|
-
dev: "tsup --watch",
|
|
70
|
-
build: "tsup",
|
|
71
|
-
check: "tsc --noEmit",
|
|
72
|
-
pretty: "prettier --check .",
|
|
73
|
-
format: "prettier --write .",
|
|
74
|
-
lint: "eslint .",
|
|
75
|
-
"test:unit": "vitest",
|
|
76
|
-
"test:unit:once": "vitest --run",
|
|
77
|
-
clean_public: "rimraf dist/public",
|
|
78
|
-
copy_ui: "fse copy ../desi76-ui/build dist/public",
|
|
79
|
-
checkCopy: "ls -l dist/public/index.html",
|
|
80
|
-
copy_public: "run-s clean_public copy_ui checkCopy",
|
|
81
|
-
ci: "run-s check build pretty lint test:unit:once copy_public",
|
|
82
|
-
run: "node dist/desi76-uis.js",
|
|
83
|
-
"run-help": "node dist/desi76-uis.js --help",
|
|
84
|
-
clean: "rimraf node_modules build dist tmp"
|
|
85
|
-
},
|
|
86
|
-
dependencies: {
|
|
87
|
-
express: "^5.1.0",
|
|
88
|
-
"fs-extra": "^11.3.0",
|
|
89
|
-
"get-port": "^7.1.0",
|
|
90
|
-
open: "^10.1.2",
|
|
91
|
-
yargs: "^18.0.0"
|
|
92
|
-
},
|
|
93
|
-
devDependencies: {
|
|
94
|
-
"@atao60/fse-cli": "^0.1.9",
|
|
95
|
-
"@eslint/js": "^9.10.0",
|
|
96
|
-
"@types/eslint__js": "^8.42.3",
|
|
97
|
-
"@types/express": "^5.0.3",
|
|
98
|
-
"@types/fs-extra": "^11.0.4",
|
|
99
|
-
"@types/yargs": "^17.0.33",
|
|
100
|
-
eslint: "^9.29.0",
|
|
101
|
-
"eslint-config-prettier": "^10.1.5",
|
|
102
|
-
"npm-run-all2": "^8.0.4",
|
|
103
|
-
prettier: "^3.5.3",
|
|
104
|
-
rimraf: "^6.0.1",
|
|
105
|
-
tsup: "^8.5.0",
|
|
106
|
-
typescript: "^5.8.3",
|
|
107
|
-
"typescript-eslint": "^8.34.1",
|
|
108
|
-
vitest: "^3.2.4"
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
// src/desi76-uis.ts
|
|
6
|
+
import path from "path";
|
|
113
7
|
var scrDir = import.meta.dirname;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (aDirectory !== "") {
|
|
120
|
-
if (!fs.existsSync(aDirectory)) {
|
|
121
|
-
console.error(`ERR339: Error, the path ${aDirectory} doesn't exist!`);
|
|
122
|
-
process.exit(-1);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
let portnumber = aPort;
|
|
126
|
-
if (portnumber === 0) {
|
|
127
|
-
portnumber = await getport();
|
|
128
|
-
}
|
|
129
|
-
const app = express();
|
|
130
|
-
if (aDirectory !== "") {
|
|
131
|
-
app.use(express.static(aDirectory));
|
|
132
|
-
}
|
|
133
|
-
app.listen(portnumber, chost, () => {
|
|
134
|
-
console.log(
|
|
135
|
-
`${package_default.name} serves on port ${portnumber} for host ${chost} the directory:
|
|
136
|
-
${aDirectory} ...`
|
|
137
|
-
);
|
|
138
|
-
});
|
|
139
|
-
await sleep(1e3);
|
|
140
|
-
const url = `http://localhost:${portnumber}`;
|
|
141
|
-
if (aBrowser) {
|
|
142
|
-
console.log(`Your browser should open automatically at ${url}`);
|
|
143
|
-
await open(url);
|
|
144
|
-
} else {
|
|
145
|
-
console.log(`Please, open the browser at ${url}`);
|
|
146
|
-
}
|
|
147
|
-
console.log("Press ctrl-c to stop this http-server ...");
|
|
148
|
-
}
|
|
149
|
-
async function mini_cli(argv) {
|
|
150
|
-
const args = await yargs(hideBin(argv)).version(package_default.version).usage("Usage: $0 --port <port> --directoy <directory-path>").example([
|
|
151
|
-
[
|
|
152
|
-
"$0 -p 2022 -d MyPublic",
|
|
153
|
-
"run the webserver on port 2022 and serve the content of the folder MyPublic"
|
|
154
|
-
]
|
|
155
|
-
]).option("directory", {
|
|
156
|
-
alias: "d",
|
|
157
|
-
type: "string",
|
|
158
|
-
description: "path to the directory to be served.",
|
|
159
|
-
//default: `${__dirname}/webui`,
|
|
160
|
-
default: `${scrDir}/public`
|
|
161
|
-
}).option("browser", {
|
|
162
|
-
alias: "b",
|
|
163
|
-
type: "boolean",
|
|
164
|
-
description: "Open the browser at the corresponding URL.",
|
|
165
|
-
default: true
|
|
166
|
-
}).option("port", {
|
|
167
|
-
alias: "p",
|
|
168
|
-
type: "number",
|
|
169
|
-
description: "port-number used by this web-server. If set to 0 an available port-number is automatically selected",
|
|
170
|
-
default: 0
|
|
171
|
-
}).strict().parseAsync();
|
|
172
|
-
await mini_server(args.directory, args.browser, args.port);
|
|
8
|
+
var defaultPublicDir = path.join(scrDir, "public");
|
|
9
|
+
try {
|
|
10
|
+
await feli_cli(defaultPublicDir, process.argv);
|
|
11
|
+
} catch (err) {
|
|
12
|
+
console.error(`Error from feli: ${err}`);
|
|
173
13
|
}
|
|
174
|
-
await mini_cli(process.argv);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,u as v,g as n,h as f,i as y,j as b,k as _,m as d,n as c,o as x,q as h,v as C,w as k,x as S,y as w,z as A,A as j,B as z}from"./fGd2jOqN.js";import{c as D}from"./BOrZJ9wv.js";function E(){var t;return f===null&&y(),((t=f).ac??(t.ac=new AbortController)).signal}function p(t){n===null&&o(),d&&n.l!==null?u(n).m.push(t):v(()=>{const e=c(t);if(typeof e=="function")return e})}function M(t){n===null&&o(),p(()=>()=>c(t))}function O(t,e,{bubbles:s=!1,cancelable:l=!1}={}){return new CustomEvent(t,{detail:e,bubbles:s,cancelable:l})}function P(){const t=n;return t===null&&o(),(e,s,l)=>{var r;const a=(r=t.s.$$events)==null?void 0:r[e];if(a){const m=b(a)?a.slice():[a],i=O(e,s,l);for(const g of m)g.call(t.x,i);return!i.defaultPrevented}return!0}}function U(t){n===null&&o(),n.l===null&&_(),u(n).b.push(t)}function $(t){n===null&&o(),n.l===null&&_(),u(n).a.push(t)}function u(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const R=Object.freeze(Object.defineProperty({__proto__:null,afterUpdate:$,beforeUpdate:U,createEventDispatcher:P,createRawSnippet:D,flushSync:x,getAbortSignal:E,getAllContexts:h,getContext:C,hasContext:k,hydrate:S,mount:w,onDestroy:M,onMount:p,setContext:A,tick:j,unmount:z,untrack:c},Symbol.toStringTag,{value:"Module"}));export{M as a,p as o,R as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as B,D as E,E as M,I as q,V as C,W as Z,X as $,Y as F,Z as H,_ as N,$ as O,J as L,a0 as D,a1 as m,M as w,a2 as y,a3 as z,n as Y,a4 as G,a5 as U,a6 as J,a7 as V,a8 as W,P as R,U as X,a9 as j,aa as K,ab as Q,ac as k,m as p,ad as x,ae as aa,af as ra,ag as sa}from"./fGd2jOqN.js";function na(a,r,[f,i]=[0,0]){E&&f===0&&M();var e=a,s=null,v=null,t=m,S=f>0?q:0,I=!1;const d=(l,_=!0)=>{I=!0,P(_,l)},P=(l,_)=>{if(t===(t=l))return;let c=!1;if(E&&i!==-1){if(f===0){const u=C(e);u===Z?i=0:u===$?i=1/0:(i=parseInt(u.substring(1)),i!==i&&(i=t?1/0:-1))}const A=i>f;!!t===A&&(e=F(),H(e),N(!1),c=!0,i=-1)}t?(s?O(s):_&&(s=L(()=>_(e))),v&&D(v,()=>{v=null})):(v?O(v):_&&(v=L(()=>_(e,[f+1,i]))),s&&D(s,()=>{s=null})),c&&N(!0)};B(()=>{I=!1,r(d),I||P(null,null)},S),E&&(e=w)}function o(a,r){return a===r||(a==null?void 0:a[U])===r}function ta(a={},r,f,i){return y(()=>{var e,s;return z(()=>{e=s,s=[],Y(()=>{a!==f(...s)&&(r(a,...s),e&&o(f(...e),a)&&r(null,...e))})}),()=>{G(()=>{s&&o(f(...s),a)&&r(null,...s)})}}),a}let g=!1;function ea(a){var r=g;try{return g=!1,[a(),g]}finally{g=r}}function ia(a){var r;return((r=a.ctx)==null?void 0:r.d)??!1}function ua(a,r,f,i){var b;var e=!p||(f&x)!==0,s=(f&k)!==0,v=(f&ra)!==0,t=i,S=!0,I=()=>(S&&(S=!1,t=v?Y(i):i),t),d;if(s){var P=U in a||sa in a;d=((b=J(a,r))==null?void 0:b.set)??(P&&r in a?n=>a[r]=n:void 0)}var l,_=!1;s?[l,_]=ea(()=>a[r]):l=a[r],l===void 0&&i!==void 0&&(l=I(),d&&(e&&V(),d(l)));var c;if(e?c=()=>{var n=a[r];return n===void 0?I():(S=!0,n)}:c=()=>{var n=a[r];return n!==void 0&&(t=void 0),n===void 0?t:n},e&&(f&W)===0)return c;if(d){var A=a.$$legacy;return function(n,T){return arguments.length>0?((!e||!T||A||_)&&d(T?c():n),n):c()}}var u=((f&aa)!==0?X:j)(c);return s&&R(u),function(n,T){if(arguments.length>0){const h=T?R(u):e&&s?K(n):n;return Q(u,h),t!==void 0&&(t=h),n}return ia(u)?u.v:R(u)}}export{ta as b,na as i,ua as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as _,D as i,E as d,F as l,G as u,H as h,I as m,J as v,K as y,L as g,M as c,N as E}from"./fGd2jOqN.js";function F(t,s,...n){var a=t,e=y,r;_(()=>{e!==(e=s())&&(r&&(g(r),r=null),r=v(()=>e(a,...n)))},m),i&&(a=c)}function N(t){return(s,...n)=>{var o;var a=t(...n),e;if(i)e=c,d();else{var r=a.render().trim(),p=l(r);e=E(p),s.before(e)}const f=(o=a.setup)==null?void 0:o.call(a,e);u(e,e),typeof f=="function"&&h(f)}}export{N as c,F as s};
|