diff --git a/Cargo.lock b/Cargo.lock index 913699c..7e22599 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,16 +313,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "console_error_panic_hook" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" -dependencies = [ - "cfg-if 1.0.0", - "wasm-bindgen", -] - [[package]] name = "constant_time_eq" version = "0.1.5" @@ -1390,7 +1380,6 @@ dependencies = [ name = "northstar_dev_testing_helper_tool" version = "0.0.8" dependencies = [ - "console_error_panic_hook", "eframe", "egui", "reqwest", @@ -1398,7 +1387,6 @@ dependencies = [ "serde", "serde_json", "tracing-subscriber", - "tracing-wasm", "zip", ] @@ -2267,17 +2255,6 @@ dependencies = [ "tracing-log", ] -[[package]] -name = "tracing-wasm" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4575c663a174420fa2d78f4108ff68f65bf2fbb7dd89f33749b6e826b3626e07" -dependencies = [ - "tracing", - "tracing-subscriber", - "wasm-bindgen", -] - [[package]] name = "try-lock" version = "0.2.3" diff --git a/Cargo.toml b/Cargo.toml index e51412d..26747ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,17 +24,8 @@ serde_json = "1.0.81" reqwest = { version = "0.11", features = ["blocking"] } zip = "0.6.2" self_update = { version = "0.30.0", features = ["archive-zip", "archive-tar", "compression-flate2", "compression-zip-deflate", "compression-zip-bzip2"]} - -# native: -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] tracing-subscriber = "0.3" -# web: -[target.'cfg(target_arch = "wasm32")'.dependencies] -console_error_panic_hook = "0.1.6" -tracing-wasm = "0.2" - - [profile.release] opt-level = 2 # fast and small wasm diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index bf94f3e..0000000 --- a/docs/README.md +++ /dev/null @@ -1,3 +0,0 @@ -This folder contains the files required for the web app. - -The reason the folder is called "docs" is because that is the name that GitHub requires in order to host a web page from the `master` branch of a repository. You can test the `eframe_template` at . diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100755 index 61ad031..0000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/icon-1024.png b/docs/icon-1024.png deleted file mode 100644 index 1b5868a..0000000 Binary files a/docs/icon-1024.png and /dev/null differ diff --git a/docs/icon-256.png b/docs/icon-256.png deleted file mode 100644 index ae72287..0000000 Binary files a/docs/icon-256.png and /dev/null differ diff --git a/docs/icon_ios_touch_192.png b/docs/icon_ios_touch_192.png deleted file mode 100644 index 8472802..0000000 Binary files a/docs/icon_ios_touch_192.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 07707cd..0000000 --- a/docs/index.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - Northstar dev testing helper tool - - - - - - - - - - - -
-

- Loading… -

-
-
- - - - - - - - - - - - - - - diff --git a/docs/manifest.json b/docs/manifest.json deleted file mode 100644 index 0bb8b17..0000000 --- a/docs/manifest.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "Egui Template PWA", - "short_name": "egui-template-pwa", - "icons": [{ - "src": "./icon-256.png", - "sizes": "256x256", - "type": "image/png" - }, - { - "src": "./maskable_icon_x512.png", - "sizes": "512x512", - "type": "image/png", - "purpose": "any maskable" - }, - { - "src": "./icon-1024.png", - "sizes": "1024x1024", - "type": "image/png" - } - ], - "lang": "en-US", - "id": "/index.html", - "start_url": "./index.html", - "display": "standalone", - "background_color": "white", - "theme_color": "white" - } diff --git a/docs/maskable_icon_x512.png b/docs/maskable_icon_x512.png deleted file mode 100644 index db8df3e..0000000 Binary files a/docs/maskable_icon_x512.png and /dev/null differ diff --git a/docs/sw.js b/docs/sw.js deleted file mode 100644 index a7ec827..0000000 --- a/docs/sw.js +++ /dev/null @@ -1,25 +0,0 @@ -var cacheName = 'egui-template-pwa'; -var filesToCache = [ - './', - './index.html', - './northstar_dev_testing_helper_tool.js', - './northstar_dev_testing_helper_tool_bg.wasm', -]; - -/* Start the service worker and cache all of the app's content */ -self.addEventListener('install', function (e) { - e.waitUntil( - caches.open(cacheName).then(function (cache) { - return cache.addAll(filesToCache); - }) - ); -}); - -/* Serve cached content when offline */ -self.addEventListener('fetch', function (e) { - e.respondWith( - caches.match(e.request).then(function (response) { - return response || fetch(e.request); - }) - ); -});