Fix spinch deployment
This commit is contained in:
parent
a92ef78133
commit
f4eb4d58b0
13 changed files with 21 additions and 13 deletions
10
Cargo.lock
generated
10
Cargo.lock
generated
|
|
@ -1845,6 +1845,15 @@ version = "0.1.6"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
|
||||
|
||||
[[package]]
|
||||
name = "openssl-src"
|
||||
version = "300.4.2+3.4.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "168ce4e058f975fe43e89d9ccf78ca668601887ae736090aacc23ae353c298e2"
|
||||
dependencies = [
|
||||
"cc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "openssl-sys"
|
||||
version = "0.9.106"
|
||||
|
|
@ -1853,6 +1862,7 @@ checksum = "8bb61ea9811cc39e3c2069f40b8b8e2e70d8569b361f879786cc7ed48b777cdd"
|
|||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
"openssl-src",
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ showbits-typst.path = "./showbits-typst"
|
|||
tokio = "1.43.0"
|
||||
typst = "0.13.0"
|
||||
typst-assets = { version = "0.13.0", features = ["fonts"] }
|
||||
typst-kit = "0.13.0"
|
||||
typst-kit = { version = "0.13.0", features = ["vendor-openssl"] }
|
||||
typst-render = "0.13.0"
|
||||
|
||||
[workspace.dependencies.mark]
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@ echo "## Build ##"
|
|||
echo "###########"
|
||||
set_color normal
|
||||
|
||||
./meta/build-typst-plugin
|
||||
or return 1
|
||||
|
||||
./meta/build-thermal-printer-ui
|
||||
or return 1
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Description=Showbits Thermal Printer
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/home/bondrucker/showbits-thermal-printer 0.0.0.0:8001 queue -p /dev/usb/lp0
|
||||
ExecStart=/home/bondrucker/showbits-thermal-printer queue -a 0.0.0.0:8001 -p /dev/usb/lp0
|
||||
Restart=on-failure
|
||||
|
||||
User=bondrucker
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ function submit() {
|
|||
data.append("year", String(year.value));
|
||||
data.append("month", String(month.value));
|
||||
data.append("feed", String(feed.value));
|
||||
void makeRequest("/api/calendar", data);
|
||||
void makeRequest("api/calendar", data);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ function submit() {
|
|||
data.append("rows", rows.value.toFixed());
|
||||
data.append("scale", scale.value.toFixed());
|
||||
data.append("feed", String(feed.value));
|
||||
void makeRequest("/api/cells", data);
|
||||
void makeRequest("api/cells", data);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ function submit() {
|
|||
data.append("username", username.value);
|
||||
data.append("content", content.value);
|
||||
data.append("feed", String(feed.value));
|
||||
void makeRequest("/api/chat", data);
|
||||
void makeRequest("api/chat", data);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ function submit() {
|
|||
if (typeof seed.value === "number") data.append("seed", seed.value.toFixed());
|
||||
data.append("mode", mode.value);
|
||||
data.append("feed", String(feed.value));
|
||||
void makeRequest("/api/egg", data);
|
||||
void makeRequest("api/egg", data);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ function submit() {
|
|||
data.append("bright", String(bright.value));
|
||||
data.append("seamless", String(seamless.value));
|
||||
data.append("feed", String(feed.value));
|
||||
void makeRequest("/api/image", data);
|
||||
void makeRequest("api/image", data);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ function submit() {
|
|||
data.append("text", text.value);
|
||||
data.append("force_wrap", String(forceWrap.value));
|
||||
data.append("feed", String(feed.value));
|
||||
void makeRequest("/api/text", data);
|
||||
void makeRequest("api/text", data);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const feed = ref(true);
|
|||
function submit() {
|
||||
const data = new URLSearchParams();
|
||||
data.append("feed", String(feed.value));
|
||||
void makeRequest("/api/tictactoe", data);
|
||||
void makeRequest("api/tictactoe", data);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ const mode = ref<
|
|||
<button @click="mode = 'image'">Image</button>
|
||||
<button @click="mode = 'text'">Text</button>
|
||||
<button @click="mode = 'tictactoe'">Tic Tac Toe</button>
|
||||
<a href="/photo.html">Take a photo</a>
|
||||
<a href="photo.html">Take a photo</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import vueDevTools from "vite-plugin-vue-devtools";
|
|||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue(), vueDevTools()],
|
||||
base: "",
|
||||
resolve: {
|
||||
alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) },
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue