aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/dependabot.yml4
-rw-r--r--.gitignore15
-rw-r--r--Cargo.toml15
-rw-r--r--clients/www/package.json2
-rw-r--r--clients/www/src-tauri/.gitignore3
-rw-r--r--clients/www/src-tauri/Cargo.toml26
-rw-r--r--clients/www/src-tauri/build.rs3
-rw-r--r--clients/www/src-tauri/icons/128x128.pngbin0 -> 19051 bytes
-rw-r--r--clients/www/src-tauri/icons/128x128@2x.pngbin0 -> 60404 bytes
-rw-r--r--clients/www/src-tauri/icons/32x32.pngbin0 -> 2460 bytes
-rw-r--r--clients/www/src-tauri/icons/Square107x107Logo.pngbin0 -> 14066 bytes
-rw-r--r--clients/www/src-tauri/icons/Square142x142Logo.pngbin0 -> 22800 bytes
-rw-r--r--clients/www/src-tauri/icons/Square150x150Logo.pngbin0 -> 24992 bytes
-rw-r--r--clients/www/src-tauri/icons/Square284x284Logo.pngbin0 -> 71207 bytes
-rw-r--r--clients/www/src-tauri/icons/Square30x30Logo.pngbin0 -> 2330 bytes
-rw-r--r--clients/www/src-tauri/icons/Square310x310Logo.pngbin0 -> 81804 bytes
-rw-r--r--clients/www/src-tauri/icons/Square44x44Logo.pngbin0 -> 3899 bytes
-rw-r--r--clients/www/src-tauri/icons/Square71x71Logo.pngbin0 -> 7563 bytes
-rw-r--r--clients/www/src-tauri/icons/Square89x89Logo.pngbin0 -> 10320 bytes
-rw-r--r--clients/www/src-tauri/icons/StoreLogo.pngbin0 -> 4609 bytes
-rw-r--r--clients/www/src-tauri/icons/icon.icnsbin0 -> 951142 bytes
-rw-r--r--clients/www/src-tauri/icons/icon.icobin0 -> 76415 bytes
-rw-r--r--clients/www/src-tauri/icons/icon.pngbin0 -> 171843 bytes
-rw-r--r--clients/www/src-tauri/src/main.rs8
-rw-r--r--clients/www/src-tauri/tauri.conf.json66
-rw-r--r--clients/www/static/font/ZeldaOracles.woff2bin0 -> 6460 bytes
-rw-r--r--clients/www/static/img/favicon (Custom).pngbin0 -> 213853 bytes
-rw-r--r--clients/www/static/img/favicon.pngbin17774 -> 36238 bytes
-rw-r--r--clients/www/static/img/pwa-192x192.pngbin36317 -> 35407 bytes
-rw-r--r--clients/www/vite.config.ts4
-rw-r--r--libs/zora-rs/.gitignore6
-rw-r--r--libs/zora-rs/Cargo.toml26
-rw-r--r--libs/zora-rs/README.md0
-rw-r--r--libs/zora-rs/src/lib.rs13
-rw-r--r--libs/zora-rs/src/utils.rs10
-rw-r--r--libs/zora-rs/tests/web.rs13
-rw-r--r--package.json7
-rw-r--r--packages/zora-rs/.travis.yml69
-rw-r--r--packages/zorascript/package.json15
-rw-r--r--packages/zorascript/src/enums.ts31
-rw-r--r--packages/zorascript/tsconfig.json11
-rw-r--r--pnpm-lock.yaml202
42 files changed, 487 insertions, 62 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 9900085..c470d1b 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -13,3 +13,7 @@ updates:
directory: "/"
schedule:
interval: "daily"
+ - package-ecosystem: cargo
+ directory: "/"
+ schedule:
+ interval: daily
diff --git a/.gitignore b/.gitignore
index c6bba59..707f3ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -128,3 +128,18 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
+
+# Generated by Cargo
+# will have compiled files and executables
+debug/
+target/
+
+# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
+# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
+Cargo.lock
+
+# These are backup files generated by rustfmt
+**/*.rs.bk
+
+# MSVC Windows builds of rustc generate these, which store debugging information
+*.pdb \ No newline at end of file
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..3df8c92
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,15 @@
+[workspace]
+members = [
+ "libs/zora-rs",
+ "clients/www/src-tauri"
+]
+resolver = "2"
+package.authors = ["Matt Strapp <matt@mattstrapp.net>"]
+package.license = "MIT"
+
+[profile.release]
+panic = "abort" # Strip expensive panic clean-up logic
+codegen-units = 1 # Compile crates one after another so the compiler can optimize better
+lto = true # Enables link to optimizations
+opt-level = "s" # Optimize for binary size
+strip = true # Remove debug symbols
diff --git a/clients/www/package.json b/clients/www/package.json
index 63678cd..ae00942 100644
--- a/clients/www/package.json
+++ b/clients/www/package.json
@@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"dev": "vite dev",
- "build": "vite build && cp .svelte-kit/output/server/sw.js.map .svelte-kit/output/server/workbox-*.map build/",
+ "build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
diff --git a/clients/www/src-tauri/.gitignore b/clients/www/src-tauri/.gitignore
new file mode 100644
index 0000000..aba21e2
--- /dev/null
+++ b/clients/www/src-tauri/.gitignore
@@ -0,0 +1,3 @@
+# Generated by Cargo
+# will have compiled files and executables
+/target/
diff --git a/clients/www/src-tauri/Cargo.toml b/clients/www/src-tauri/Cargo.toml
new file mode 100644
index 0000000..70db707
--- /dev/null
+++ b/clients/www/src-tauri/Cargo.toml
@@ -0,0 +1,26 @@
+[package]
+name = "app"
+version = "0.1.0"
+description = "A Tauri App"
+authors = ["you"]
+license = ""
+repository = ""
+default-run = "app"
+edition = "2021"
+rust-version = "1.60"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[build-dependencies]
+tauri-build = { version = "1.5.1", features = [] }
+
+[dependencies]
+serde_json = "1.0"
+serde = { version = "1.0", features = ["derive"] }
+tauri = { version = "1.6.1", features = [] }
+
+[features]
+# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
+# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
+# DO NOT REMOVE!!
+custom-protocol = [ "tauri/custom-protocol" ]
diff --git a/clients/www/src-tauri/build.rs b/clients/www/src-tauri/build.rs
new file mode 100644
index 0000000..795b9b7
--- /dev/null
+++ b/clients/www/src-tauri/build.rs
@@ -0,0 +1,3 @@
+fn main() {
+ tauri_build::build()
+}
diff --git a/clients/www/src-tauri/icons/128x128.png b/clients/www/src-tauri/icons/128x128.png
new file mode 100644
index 0000000..8c4c97f
--- /dev/null
+++ b/clients/www/src-tauri/icons/128x128.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/128x128@2x.png b/clients/www/src-tauri/icons/128x128@2x.png
new file mode 100644
index 0000000..b286aeb
--- /dev/null
+++ b/clients/www/src-tauri/icons/128x128@2x.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/32x32.png b/clients/www/src-tauri/icons/32x32.png
new file mode 100644
index 0000000..4beac50
--- /dev/null
+++ b/clients/www/src-tauri/icons/32x32.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square107x107Logo.png b/clients/www/src-tauri/icons/Square107x107Logo.png
new file mode 100644
index 0000000..2413270
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square107x107Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square142x142Logo.png b/clients/www/src-tauri/icons/Square142x142Logo.png
new file mode 100644
index 0000000..de9f5c5
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square142x142Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square150x150Logo.png b/clients/www/src-tauri/icons/Square150x150Logo.png
new file mode 100644
index 0000000..fe22cb2
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square150x150Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square284x284Logo.png b/clients/www/src-tauri/icons/Square284x284Logo.png
new file mode 100644
index 0000000..cfe18ea
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square284x284Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square30x30Logo.png b/clients/www/src-tauri/icons/Square30x30Logo.png
new file mode 100644
index 0000000..28cc9c9
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square30x30Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square310x310Logo.png b/clients/www/src-tauri/icons/Square310x310Logo.png
new file mode 100644
index 0000000..b898e37
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square310x310Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square44x44Logo.png b/clients/www/src-tauri/icons/Square44x44Logo.png
new file mode 100644
index 0000000..959a52b
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square44x44Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square71x71Logo.png b/clients/www/src-tauri/icons/Square71x71Logo.png
new file mode 100644
index 0000000..2a24711
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square71x71Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/Square89x89Logo.png b/clients/www/src-tauri/icons/Square89x89Logo.png
new file mode 100644
index 0000000..8057e3a
--- /dev/null
+++ b/clients/www/src-tauri/icons/Square89x89Logo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/StoreLogo.png b/clients/www/src-tauri/icons/StoreLogo.png
new file mode 100644
index 0000000..4ca0243
--- /dev/null
+++ b/clients/www/src-tauri/icons/StoreLogo.png
Binary files differ
diff --git a/clients/www/src-tauri/icons/icon.icns b/clients/www/src-tauri/icons/icon.icns
new file mode 100644
index 0000000..71ba99b
--- /dev/null
+++ b/clients/www/src-tauri/icons/icon.icns
Binary files differ
diff --git a/clients/www/src-tauri/icons/icon.ico b/clients/www/src-tauri/icons/icon.ico
new file mode 100644
index 0000000..7643815
--- /dev/null
+++ b/clients/www/src-tauri/icons/icon.ico
Binary files differ
diff --git a/clients/www/src-tauri/icons/icon.png b/clients/www/src-tauri/icons/icon.png
new file mode 100644
index 0000000..8276154
--- /dev/null
+++ b/clients/www/src-tauri/icons/icon.png
Binary files differ
diff --git a/clients/www/src-tauri/src/main.rs b/clients/www/src-tauri/src/main.rs
new file mode 100644
index 0000000..f5c5be2
--- /dev/null
+++ b/clients/www/src-tauri/src/main.rs
@@ -0,0 +1,8 @@
+// Prevents additional console window on Windows in release, DO NOT REMOVE!!
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
+fn main() {
+ tauri::Builder::default()
+ .run(tauri::generate_context!())
+ .expect("error while running tauri application");
+}
diff --git a/clients/www/src-tauri/tauri.conf.json b/clients/www/src-tauri/tauri.conf.json
new file mode 100644
index 0000000..24cb318
--- /dev/null
+++ b/clients/www/src-tauri/tauri.conf.json
@@ -0,0 +1,66 @@
+{
+ "$schema": "../../../node_modules/@tauri-apps/cli/schema.json",
+ "build": {
+ "beforeBuildCommand": "pnpm run build",
+ "beforeDevCommand": "pnpm run dev",
+ "devPath": "http://localhost:5173",
+ "distDir": "../build"
+ },
+ "package": {
+ "productName": "zorascript",
+ "version": "0.1.0"
+ },
+ "tauri": {
+ "allowlist": {
+ "all": false
+ },
+ "bundle": {
+ "active": true,
+ "category": "DeveloperTool",
+ "copyright": "",
+ "deb": {
+ "depends": []
+ },
+ "externalBin": [],
+ "icon": [
+ "icons/32x32.png",
+ "icons/128x128.png",
+ "icons/128x128@2x.png",
+ "icons/icon.icns",
+ "icons/icon.ico"
+ ],
+ "identifier": "io.github.rosstheross.zorascript",
+ "longDescription": "",
+ "macOS": {
+ "entitlements": null,
+ "exceptionDomain": "",
+ "frameworks": [],
+ "providerShortName": null,
+ "signingIdentity": null
+ },
+ "resources": [],
+ "shortDescription": "",
+ "targets": "all",
+ "windows": {
+ "certificateThumbprint": null,
+ "digestAlgorithm": "sha256",
+ "timestampUrl": ""
+ }
+ },
+ "security": {
+ "csp": null
+ },
+ "updater": {
+ "active": false
+ },
+ "windows": [
+ {
+ "fullscreen": false,
+ "height": 600,
+ "resizable": true,
+ "title": "Zorascript",
+ "width": 800
+ }
+ ]
+ }
+}
diff --git a/clients/www/static/font/ZeldaOracles.woff2 b/clients/www/static/font/ZeldaOracles.woff2
new file mode 100644
index 0000000..5dc300c
--- /dev/null
+++ b/clients/www/static/font/ZeldaOracles.woff2
Binary files differ
diff --git a/clients/www/static/img/favicon (Custom).png b/clients/www/static/img/favicon (Custom).png
new file mode 100644
index 0000000..64dfd1e
--- /dev/null
+++ b/clients/www/static/img/favicon (Custom).png
Binary files differ
diff --git a/clients/www/static/img/favicon.png b/clients/www/static/img/favicon.png
index d4307cd..dc855a8 100644
--- a/clients/www/static/img/favicon.png
+++ b/clients/www/static/img/favicon.png
Binary files differ
diff --git a/clients/www/static/img/pwa-192x192.png b/clients/www/static/img/pwa-192x192.png
index d7fcf17..9f06844 100644
--- a/clients/www/static/img/pwa-192x192.png
+++ b/clients/www/static/img/pwa-192x192.png
Binary files differ
diff --git a/clients/www/vite.config.ts b/clients/www/vite.config.ts
index bd89f2f..6fbadb8 100644
--- a/clients/www/vite.config.ts
+++ b/clients/www/vite.config.ts
@@ -5,10 +5,10 @@ import { SvelteKitPWA } from '@vite-pwa/sveltekit';
export default defineConfig({
build: {
- sourcemap: true
+ // sourcemap: true
},
css: {
- devSourcemap: false
+ devSourcemap: true
},
plugins: [
sveltekit(),
diff --git a/libs/zora-rs/.gitignore b/libs/zora-rs/.gitignore
new file mode 100644
index 0000000..4e30131
--- /dev/null
+++ b/libs/zora-rs/.gitignore
@@ -0,0 +1,6 @@
+/target
+**/*.rs.bk
+Cargo.lock
+bin/
+pkg/
+wasm-pack.log
diff --git a/libs/zora-rs/Cargo.toml b/libs/zora-rs/Cargo.toml
new file mode 100644
index 0000000..bb5172f
--- /dev/null
+++ b/libs/zora-rs/Cargo.toml
@@ -0,0 +1,26 @@
+[package]
+name = "zora-rs"
+description = "A Rust implementation of the GBC Zelda Password Generator"
+repository = "https://github.com/RosstheRoss/zorascript"
+license = "MIT"
+version = "0.1.0"
+authors = ["Matt Strapp <matt@mattstrapp.net>"]
+edition = "2018"
+
+[lib]
+crate-type = ["cdylib", "rlib"]
+
+[features]
+default = ["console_error_panic_hook"]
+
+[dependencies]
+wasm-bindgen = "0.2.84"
+
+# The `console_error_panic_hook` crate provides better debugging of panics by
+# logging them with `console.error`. This is great for development, but requires
+# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
+# code size when deploying.
+console_error_panic_hook = { version = "0.1.7", optional = true }
+
+[dev-dependencies]
+wasm-bindgen-test = "0.3.34"
diff --git a/libs/zora-rs/README.md b/libs/zora-rs/README.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/libs/zora-rs/README.md
diff --git a/libs/zora-rs/src/lib.rs b/libs/zora-rs/src/lib.rs
new file mode 100644
index 0000000..239f3af
--- /dev/null
+++ b/libs/zora-rs/src/lib.rs
@@ -0,0 +1,13 @@
+mod utils;
+
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+extern "C" {
+ fn alert(s: &str);
+}
+
+#[wasm_bindgen]
+pub fn greet() {
+ alert("Hello, zora-rs!");
+}
diff --git a/libs/zora-rs/src/utils.rs b/libs/zora-rs/src/utils.rs
new file mode 100644
index 0000000..b1d7929
--- /dev/null
+++ b/libs/zora-rs/src/utils.rs
@@ -0,0 +1,10 @@
+pub fn set_panic_hook() {
+ // When the `console_error_panic_hook` feature is enabled, we can call the
+ // `set_panic_hook` function at least once during initialization, and then
+ // we will get better error messages if our code ever panics.
+ //
+ // For more details see
+ // https://github.com/rustwasm/console_error_panic_hook#readme
+ #[cfg(feature = "console_error_panic_hook")]
+ console_error_panic_hook::set_once();
+}
diff --git a/libs/zora-rs/tests/web.rs b/libs/zora-rs/tests/web.rs
new file mode 100644
index 0000000..de5c1da
--- /dev/null
+++ b/libs/zora-rs/tests/web.rs
@@ -0,0 +1,13 @@
+//! Test suite for the Web and headless browsers.
+
+#![cfg(target_arch = "wasm32")]
+
+extern crate wasm_bindgen_test;
+use wasm_bindgen_test::*;
+
+wasm_bindgen_test_configure!(run_in_browser);
+
+#[wasm_bindgen_test]
+fn pass() {
+ assert_eq!(1 + 1, 2);
+}
diff --git a/package.json b/package.json
index f052236..07b5d75 100644
--- a/package.json
+++ b/package.json
@@ -1,16 +1,19 @@
{
"name": "zorascript",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "build-wasm": "wasm-pack build ./libs/zora-rs",
+ "build-tauri": "tauri build"
},
"keywords": [],
"author": "Matt Strapp <matt@mattstrapp.net>",
"private": true,
"devDependencies": {
+ "@tauri-apps/cli": "^1.5.11",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"prettier": "^3.2.5",
- "typescript": "^5.4.4"
+ "typescript": "^5.4.4",
+ "wasm-pack": "^0.12.1"
}
}
diff --git a/packages/zora-rs/.travis.yml b/packages/zora-rs/.travis.yml
new file mode 100644
index 0000000..7a91325
--- /dev/null
+++ b/packages/zora-rs/.travis.yml
@@ -0,0 +1,69 @@
+language: rust
+sudo: false
+
+cache: cargo
+
+matrix:
+ include:
+
+ # Builds with wasm-pack.
+ - rust: beta
+ env: RUST_BACKTRACE=1
+ addons:
+ firefox: latest
+ chrome: stable
+ before_script:
+ - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
+ - (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
+ - cargo install-update -a
+ - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
+ script:
+ - cargo generate --git . --name testing
+ # Having a broken Cargo.toml (in that it has curlies in fields) anywhere
+ # in any of our parent dirs is problematic.
+ - mv Cargo.toml Cargo.toml.tmpl
+ - cd testing
+ - wasm-pack build
+ - wasm-pack test --chrome --firefox --headless
+
+ # Builds on nightly.
+ - rust: nightly
+ env: RUST_BACKTRACE=1
+ before_script:
+ - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
+ - (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
+ - cargo install-update -a
+ - rustup target add wasm32-unknown-unknown
+ script:
+ - cargo generate --git . --name testing
+ - mv Cargo.toml Cargo.toml.tmpl
+ - cd testing
+ - cargo check
+ - cargo check --target wasm32-unknown-unknown
+ - cargo check --no-default-features
+ - cargo check --target wasm32-unknown-unknown --no-default-features
+ - cargo check --no-default-features --features console_error_panic_hook
+ - cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
+ - cargo check --no-default-features --features "console_error_panic_hook wee_alloc"
+ - cargo check --target wasm32-unknown-unknown --no-default-features --features "console_error_panic_hook wee_alloc"
+
+ # Builds on beta.
+ - rust: beta
+ env: RUST_BACKTRACE=1
+ before_script:
+ - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
+ - (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
+ - cargo install-update -a
+ - rustup target add wasm32-unknown-unknown
+ script:
+ - cargo generate --git . --name testing
+ - mv Cargo.toml Cargo.toml.tmpl
+ - cd testing
+ - cargo check
+ - cargo check --target wasm32-unknown-unknown
+ - cargo check --no-default-features
+ - cargo check --target wasm32-unknown-unknown --no-default-features
+ - cargo check --no-default-features --features console_error_panic_hook
+ - cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
+ # Note: no enabling the `wee_alloc` feature here because it requires
+ # nightly for now.
diff --git a/packages/zorascript/package.json b/packages/zorascript/package.json
deleted file mode 100644
index ce749e9..0000000
--- a/packages/zorascript/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "zorascript",
- "version": "1.0.0",
- "description": "",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "keywords": [],
- "author": "Matt Strapp <matt@mattstrapp.net>",
- "license": "LGPL-3.0-only",
- "devDependencies": {
-
- }
-}
diff --git a/packages/zorascript/src/enums.ts b/packages/zorascript/src/enums.ts
deleted file mode 100644
index 221292d..0000000
--- a/packages/zorascript/src/enums.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * The region for the game
- *
- * @remarks
- *
- * In most cases NA and EU are the same, but there are some small differences mainly involving name encoding.
- */
-const enum Region {
- Japan = "JP",
- NorthAmerica = "NA",
- Europe = "EU"
-}
-
-/**
- * Specifies the specific Oracle game
- */
-const enum Game {
- Ages = 0,
- Seasons = 1
-}
-
-const enum AnimalFriend {
- Ricky = 0x0b,
- Dimitri = 0x0c,
- Moosh = 0x0d
-}
-
-const enum ChildQuestion {
- NoEgg = 0,
- YesChicken = 0x2,
-}
diff --git a/packages/zorascript/tsconfig.json b/packages/zorascript/tsconfig.json
deleted file mode 100644
index 1b2dbb2..0000000
--- a/packages/zorascript/tsconfig.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "target": "es2015",
- "declaration": true,
- "outDir": "./dist"
- },
- "include": [
- "src/**/*"
- ]
-} \ No newline at end of file
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1cd70a1..08bac9f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,6 +8,9 @@ importers:
.:
devDependencies:
+ '@tauri-apps/cli':
+ specifier: ^1.5.11
+ version: 1.5.11
eslint:
specifier: ^8.57.0
version: 8.57.0
@@ -23,6 +26,9 @@ importers:
typescript:
specifier: ^5.4.4
version: 5.4.4
+ wasm-pack:
+ specifier: ^0.12.1
+ version: 0.12.1
clients/www:
devDependencies:
@@ -1935,6 +1941,113 @@ packages:
tailwindcss: 3.4.3
dev: true
+ /@tauri-apps/cli-darwin-arm64@1.5.11:
+ resolution: {integrity: sha512-2NLSglDb5VfvTbMtmOKWyD+oaL/e8Z/ZZGovHtUFyUSFRabdXc6cZOlcD1BhFvYkHqm+TqGaz5qtPR5UbqDs8A==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-darwin-x64@1.5.11:
+ resolution: {integrity: sha512-/RQllHiJRH2fJOCudtZlaUIjofkHzP3zZgxi71ZUm7Fy80smU5TDfwpwOvB0wSVh0g/ciDjMArCSTo0MRvL+ag==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-linux-arm-gnueabihf@1.5.11:
+ resolution: {integrity: sha512-IlBuBPKmMm+a5LLUEK6a21UGr9ZYd6zKuKLq6IGM4tVweQa8Sf2kP2Nqs74dMGIUrLmMs0vuqdURpykQg+z4NQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-linux-arm64-gnu@1.5.11:
+ resolution: {integrity: sha512-w+k1bNHCU/GbmXshtAhyTwqosThUDmCEFLU4Zkin1vl2fuAtQry2RN7thfcJFepblUGL/J7yh3Q/0+BCjtspKQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-linux-arm64-musl@1.5.11:
+ resolution: {integrity: sha512-PN6/dl+OfYQ/qrAy4HRAfksJ2AyWQYn2IA/2Wwpaa7SDRz2+hzwTQkvajuvy0sQ5L2WCG7ymFYRYMbpC6Hk9Pg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-linux-x64-gnu@1.5.11:
+ resolution: {integrity: sha512-MTVXLi89Nj7Apcvjezw92m7ZqIDKT5SFKZtVPCg6RoLUBTzko/BQoXYIRWmdoz2pgkHDUHgO2OMJ8oKzzddXbw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-linux-x64-musl@1.5.11:
+ resolution: {integrity: sha512-kwzAjqFpz7rvTs7WGZLy/a5nS5t15QKr3E9FG95MNF0exTl3d29YoAUAe1Mn0mOSrTJ9Z+vYYAcI/QdcsGBP+w==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-win32-arm64-msvc@1.5.11:
+ resolution: {integrity: sha512-L+5NZ/rHrSUrMxjj6YpFYCXp6wHnq8c8SfDTBOX8dO8x+5283/vftb4vvuGIsLS4UwUFXFnLt3XQr44n84E67Q==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-win32-ia32-msvc@1.5.11:
+ resolution: {integrity: sha512-oVlD9IVewrY0lZzTdb71kNXkjdgMqFq+ohb67YsJb4Rf7o8A9DTlFds1XLCe3joqLMm4M+gvBKD7YnGIdxQ9vA==}
+ engines: {node: '>= 10'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli-win32-x64-msvc@1.5.11:
+ resolution: {integrity: sha512-1CexcqUFCis5ypUIMOKllxUBrna09McbftWENgvVXMfA+SP+yPDPAVb8fIvUcdTIwR/yHJwcIucmTB4anww4vg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@tauri-apps/cli@1.5.11:
+ resolution: {integrity: sha512-B475D7phZrq5sZ3kDABH4g2mEoUIHtnIO+r4ZGAAfsjMbZCwXxR/jlMGTEL+VO3YzjpF7gQe38IzB4vLBbVppw==}
+ engines: {node: '>= 10'}
+ hasBin: true
+ optionalDependencies:
+ '@tauri-apps/cli-darwin-arm64': 1.5.11
+ '@tauri-apps/cli-darwin-x64': 1.5.11
+ '@tauri-apps/cli-linux-arm-gnueabihf': 1.5.11
+ '@tauri-apps/cli-linux-arm64-gnu': 1.5.11
+ '@tauri-apps/cli-linux-arm64-musl': 1.5.11
+ '@tauri-apps/cli-linux-x64-gnu': 1.5.11
+ '@tauri-apps/cli-linux-x64-musl': 1.5.11
+ '@tauri-apps/cli-win32-arm64-msvc': 1.5.11
+ '@tauri-apps/cli-win32-ia32-msvc': 1.5.11
+ '@tauri-apps/cli-win32-x64-msvc': 1.5.11
+ dev: true
+
/@types/cookie@0.6.0:
resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}
dev: true
@@ -2269,6 +2382,14 @@ packages:
engines: {node: '>= 0.4'}
dev: true
+ /axios@0.26.1:
+ resolution: {integrity: sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==}
+ dependencies:
+ follow-redirects: 1.15.6
+ transitivePeerDependencies:
+ - debug
+ dev: true
+
/axobject-query@4.0.0:
resolution: {integrity: sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==}
dependencies:
@@ -2320,6 +2441,17 @@ packages:
engines: {node: '>=8'}
dev: true
+ /binary-install@1.1.0:
+ resolution: {integrity: sha512-rkwNGW+3aQVSZoD0/o3mfPN6Yxh3Id0R/xzTVBVVpGNlVz8EGwusksxRlbk/A5iKTZt9zkMn3qIqmAt3vpfbzg==}
+ engines: {node: '>=10'}
+ dependencies:
+ axios: 0.26.1
+ rimraf: 3.0.2
+ tar: 6.2.1
+ transitivePeerDependencies:
+ - debug
+ dev: true
+
/brace-expansion@1.1.11:
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
dependencies:
@@ -2418,6 +2550,11 @@ packages:
fsevents: 2.3.3
dev: true
+ /chownr@2.0.0:
+ resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}
+ engines: {node: '>=10'}
+ dev: true
+
/code-red@1.0.4:
resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==}
dependencies:
@@ -2951,6 +3088,16 @@ packages:
resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==}
dev: true
+ /follow-redirects@1.15.6:
+ resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==}
+ engines: {node: '>=4.0'}
+ peerDependencies:
+ debug: '*'
+ peerDependenciesMeta:
+ debug:
+ optional: true
+ dev: true
+
/for-each@0.3.3:
resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==}
dependencies:
@@ -2979,6 +3126,13 @@ packages:
universalify: 2.0.1
dev: true
+ /fs-minipass@2.1.0:
+ resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==}
+ engines: {node: '>= 8'}
+ dependencies:
+ minipass: 3.3.6
+ dev: true
+
/fs.realpath@1.0.0:
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
dev: true
@@ -3637,11 +3791,31 @@ packages:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
dev: true
+ /minipass@3.3.6:
+ resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==}
+ engines: {node: '>=8'}
+ dependencies:
+ yallist: 4.0.0
+ dev: true
+
+ /minipass@5.0.0:
+ resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==}
+ engines: {node: '>=8'}
+ dev: true
+
/minipass@7.0.4:
resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==}
engines: {node: '>=16 || 14 >=14.17'}
dev: true
+ /minizlib@2.1.2:
+ resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==}
+ engines: {node: '>= 8'}
+ dependencies:
+ minipass: 3.3.6
+ yallist: 4.0.0
+ dev: true
+
/mkdirp@0.5.6:
resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}
hasBin: true
@@ -3649,6 +3823,12 @@ packages:
minimist: 1.2.8
dev: true
+ /mkdirp@1.0.4:
+ resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}
+ engines: {node: '>=10'}
+ hasBin: true
+ dev: true
+
/mri@1.2.0:
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
engines: {node: '>=4'}
@@ -4584,6 +4764,18 @@ packages:
- ts-node
dev: true
+ /tar@6.2.1:
+ resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==}
+ engines: {node: '>=10'}
+ dependencies:
+ chownr: 2.0.0
+ fs-minipass: 2.1.0
+ minipass: 5.0.0
+ minizlib: 2.1.2
+ mkdirp: 1.0.4
+ yallist: 4.0.0
+ dev: true
+
/temp-dir@2.0.0:
resolution: {integrity: sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==}
engines: {node: '>=8'}
@@ -4888,6 +5080,16 @@ packages:
vite: 5.2.8(@types/node@20.12.4)
dev: true
+ /wasm-pack@0.12.1:
+ resolution: {integrity: sha512-dIyKWUumPFsGohdndZjDXRFaokUT/kQS+SavbbiXVAvA/eN4riX5QNdB6AhXQx37zNxluxQkuixZUgJ8adKjOg==}
+ hasBin: true
+ requiresBuild: true
+ dependencies:
+ binary-install: 1.1.0
+ transitivePeerDependencies:
+ - debug
+ dev: true
+
/webidl-conversions@4.0.2:
resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==}
dev: true