@liase/cli 1.0.0

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.
@@ -0,0 +1,133 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>liase preview</title>
6
+ </head>
7
+
8
+ <body>
9
+ <div id="app"></div>
10
+ <style>
11
+ #app {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 1em;
15
+ }
16
+ .options {
17
+ display: flex;
18
+ flex-wrap: wrap;
19
+ gap: 1em;
20
+
21
+ #request {
22
+ field-sizing: content;
23
+ flex: 1 1 auto;
24
+ min-height: 10lh;
25
+ }
26
+ .group {
27
+ display: flex;
28
+ flex-direction: column;
29
+ flex: 0 1 auto;
30
+ min-width: min(20em, 100%);
31
+ gap: 1em;
32
+
33
+ .group {
34
+ display: flex;
35
+ flex-direction: row;
36
+ flex-wrap: wrap;
37
+ gap: 0.5em;
38
+ }
39
+ }
40
+ }
41
+ #response {
42
+ width: 100%;
43
+ }
44
+ .error {
45
+ text-wrap: auto;
46
+ }
47
+ .buttons {
48
+ display: flex;
49
+ flex-wrap: wrap;
50
+ gap: 1em;
51
+
52
+ :first-child {
53
+ flex: 1 1 auto;
54
+ }
55
+ }
56
+ .DisplayMedia {
57
+ display: flex;
58
+ flex-wrap: wrap;
59
+ padding-left: 0;
60
+ gap: 1em;
61
+ justify-content: center;
62
+ li {
63
+ list-style-type: none;
64
+ }
65
+ }
66
+ .MediaPreview {
67
+ display: flex;
68
+ gap: 1em;
69
+
70
+ .videoContainer {
71
+ display: grid;
72
+ grid-template-rows: 1fr;
73
+ grid-template-columns: 1fr;
74
+
75
+ img,
76
+ video {
77
+ grid-area: 1 / 1 / 2 / 2;
78
+ }
79
+
80
+ video {
81
+ grid-area: 1 / 1 / 2 / 2;
82
+ z-index: 1;
83
+ }
84
+ }
85
+
86
+ img,
87
+ video {
88
+ max-height: 200px;
89
+ }
90
+ img,
91
+ mux-player {
92
+ width: auto;
93
+ }
94
+ .info {
95
+ max-width: 200px;
96
+ }
97
+ }
98
+ </style>
99
+ </body>
100
+ <script type="importmap">
101
+ {
102
+ "imports": {
103
+ "@alenaksu/json-viewer": "https://unpkg.com/@alenaksu/json-viewer@2.1.0/dist/json-viewer.bundle.js",
104
+ "hls.js": "https://unpkg.com/hls.js@1.5.17/dist/hls.js",
105
+ "vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js"
106
+ }
107
+ }
108
+ </script>
109
+ <script type="module">
110
+ import { createApp, ref } from "vue";
111
+ import Page from "./components/page.js";
112
+
113
+ const app = createApp(Page);
114
+ app.config.compilerOptions.isCustomElement = (tag) =>
115
+ ["json-viewer"].includes(tag);
116
+ app.mount("#app");
117
+ </script>
118
+ <script type="module">
119
+ let buildId;
120
+ const pollInterval = 200;
121
+ setInterval(async () => {
122
+ const res = await fetch("/build-id", {
123
+ signal: AbortSignal.timeout(pollInterval),
124
+ }).catch(() => {});
125
+ if (!res) return;
126
+ const newBuildId = await res.json();
127
+ if (buildId && buildId !== newBuildId) {
128
+ location.reload();
129
+ }
130
+ buildId = newBuildId;
131
+ }, pollInterval);
132
+ </script>
133
+ </html>
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@liase/cli",
3
+ "version": "1.0.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "main": "dist/index.js",
8
+ "files": [
9
+ "dist/*"
10
+ ],
11
+ "bin": {
12
+ "liase": "dist/index.js",
13
+ "mf": "dist/index.js"
14
+ },
15
+ "scripts": {
16
+ "build": "rm -rf ./dist && tsc -p ./tsconfig.dist.json && cp -r src/web-ui dist",
17
+ "lint": "biome check",
18
+ "lint:fix": "biome check --fix"
19
+ },
20
+ "type": "module",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/callumgare/liase.git"
24
+ },
25
+ "author": "Callum Gare <callum@gare.au>",
26
+ "license": "MIT",
27
+ "bugs": {
28
+ "url": "https://github.com/callumgare/liase/issues"
29
+ },
30
+ "homepage": "https://github.com/callumgare/liase#readme",
31
+ "description": "",
32
+ "dependencies": {
33
+ "@loopback/http-caching-proxy": "^2.1.15",
34
+ "@refactorjs/http-proxy": "^0.2.14",
35
+ "@types/mime-types": "^2.1.4",
36
+ "ansi-to-html": "^0.7.2",
37
+ "commander": "^12.1.0",
38
+ "mime-types": "^2.1.35",
39
+ "open": "^10.1.0",
40
+ "zod": "^3.24.1"
41
+ },
42
+ "devDependencies": {
43
+ "@tsconfig/node21": "^21.0.3",
44
+ "semantic-release": "^24.2.0",
45
+ "semantic-release-monorepo": "^8.0.2",
46
+ "tsx": "^4.19.2",
47
+ "typescript": "^5.7.2"
48
+ },
49
+ "peerDependencies": {
50
+ "@liase/core": "*"
51
+ },
52
+ "overrides": {
53
+ "conventional-changelog-conventionalcommits": ">= 8.0.0"
54
+ }
55
+ }