Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu999 committed Aug 25, 2024
1 parent 3ccd465 commit 1593999
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "eframe_template"
name = "web_value_tracker"
version = "0.1.0"
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
authors = ["Ashu999"]
edition = "2021"
include = ["LICENSE-APACHE", "LICENSE-MIT", "**/*.rs", "Cargo.toml"]
rust-version = "1.76"
Expand Down
4 changes: 2 additions & 2 deletions assets/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var cacheName = 'egui-template-pwa';
var filesToCache = [
'./',
'./index.html',
'./eframe_template.js',
'./eframe_template_bg.wasm',
'./web_value_tracker.js',
'./web_value_tracker_bg.wasm',
];

/* Start the service worker and cache all of the app's content */
Expand Down
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<head>
<!-- change this to your project name -->
<title>eframe template</title>
<title>web value tracker</title>

<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
<link data-trunk rel="rust" data-wasm-opt="2" />
Expand All @@ -17,12 +17,12 @@
<link data-trunk rel="icon" href="assets/favicon.ico">


<link data-trunk rel="copy-file" href="assets/sw.js"/>
<link data-trunk rel="copy-file" href="assets/manifest.json" data-target-path="assets"/>
<link data-trunk rel="copy-file" href="assets/icon-1024.png" data-target-path="assets"/>
<link data-trunk rel="copy-file" href="assets/icon-256.png" data-target-path="assets"/>
<link data-trunk rel="copy-file" href="assets/icon_ios_touch_192.png" data-target-path="assets"/>
<link data-trunk rel="copy-file" href="assets/maskable_icon_x512.png" data-target-path="assets"/>
<link data-trunk rel="copy-file" href="assets/sw.js" />
<link data-trunk rel="copy-file" href="assets/manifest.json" data-target-path="assets" />
<link data-trunk rel="copy-file" href="assets/icon-1024.png" data-target-path="assets" />
<link data-trunk rel="copy-file" href="assets/icon-256.png" data-target-path="assets" />
<link data-trunk rel="copy-file" href="assets/icon_ios_touch_192.png" data-target-path="assets" />
<link data-trunk rel="copy-file" href="assets/maskable_icon_x512.png" data-target-path="assets" />


<link rel="manifest" href="assets/manifest.json">
Expand Down Expand Up @@ -145,4 +145,4 @@

</html>

<!-- Powered by egui: https://github.com/emilk/egui/ -->
<!-- Powered by egui: https://github.com/emilk/egui/ -->
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn main() -> eframe::Result {
eframe::run_native(
"eframe template",
native_options,
Box::new(|cc| Ok(Box::new(eframe_template::TemplateApp::new(cc)))),
Box::new(|cc| Ok(Box::new(web_value_tracker::TemplateApp::new(cc)))),
)
}

Expand All @@ -37,7 +37,7 @@ fn main() {
.start(
"the_canvas_id",
web_options,
Box::new(|cc| Ok(Box::new(eframe_template::TemplateApp::new(cc)))),
Box::new(|cc| Ok(Box::new(web_value_tracker::TemplateApp::new(cc)))),
)
.await;

Expand Down

0 comments on commit 1593999

Please sign in to comment.