Skip to content

Commit

Permalink
prepare some GUI and structs/enums for scheme submission, lots missing
Browse files Browse the repository at this point in the history
  • Loading branch information
trappitsch committed Apr 3, 2024
1 parent 6e0299b commit f9a6c1f
Show file tree
Hide file tree
Showing 14 changed files with 545 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
build-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # repo checkout
- uses: actions/checkout@v4 # repo checkout
- uses: actions-rs/toolchain@v1 # get rust toolchain for wasm
with:
profile: minimal
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/target
/dist

.idea
85 changes: 59 additions & 26 deletions Cargo.lock

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

10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "eframe_template"
name = "scheme_submission"
version = "0.1.0"
authors = ["Emil Ernerfeldt <[email protected]>"]
authors = ["Reto Trappitsch <[email protected]>"]
edition = "2021"
rust-version = "1.72"


[dependencies]
egui = "0.27.0"
eframe = { version = "0.27.0", default-features = false, features = [
egui = "0.27.2"
eframe = { version = "0.27.2", default-features = false, features = [
"accesskit", # Make egui comptaible with screen readers. NOTE: adds a lot of dependencies.
"default_fonts", # Embed the default egui fonts.
"glow", # Use the glow rendering backend. Alternative: "wgpu".
Expand All @@ -18,6 +18,8 @@ log = "0.4"

# You only need serde if you want app persistence:
serde = { version = "1", features = ["derive"] }
strum = "0.26.2"
strum_macros = "0.26.2"

# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
Expand Down
Binary file removed assets/icon-1024.png
Binary file not shown.
Binary file removed assets/icon-256.png
Binary file not shown.
Binary file removed assets/icon_ios_touch_192.png
Binary file not shown.
22 changes: 2 additions & 20 deletions assets/manifest.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
{
"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"
}
],
"name": "Resonance Ionization Scheme Submission",
"short_name": "scheme_submission",
"lang": "en-US",
"id": "/index.html",
"start_url": "./index.html",
Expand Down
Binary file removed assets/maskable_icon_x512.png
Binary file not shown.
6 changes: 3 additions & 3 deletions assets/sw.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var cacheName = 'egui-template-pwa';
var cacheName = 'scheme_submission';
var filesToCache = [
'./',
'./index.html',
'./eframe_template.js',
'./eframe_template_bg.wasm',
'./scheme_submission.js',
'./scheme_submission_bg.wasm',
];

/* Start the service worker and cache all of the app's content */
Expand Down
2 changes: 1 addition & 1 deletion 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>Resonance Ionization Scheme Submission</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 Down
Loading

0 comments on commit f9a6c1f

Please sign in to comment.