Skip to content

Commit

Permalink
refactor: ic-it's code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ddystopia committed Feb 2, 2024
1 parent d712118 commit b850c80
Show file tree
Hide file tree
Showing 17 changed files with 245 additions and 869 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
with:
version: 'latest'

- name: SSR
run: ./generate_static.sh

- name: Build project
run: trunk build --release --public-url ram-webgui

Expand Down
33 changes: 28 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ description = "Webgui for ramemu"
readme = "README.md"
repository = "https://github.com/AVO-cado-team/ram-webgui"
license = "GPL3"
keywords = ["yew", "trunk", "ram"]
categories = ["gui", "wasm", "web-programming"]
keywords = ["yew", "ram", "monaco"]
categories = ["gui", "wasm", "web-programming", "editor", "ide"]
default-run = "ram-webgui"

[[bin]]
name = "ram-webgui"
path = "src/main.rs"

# [[bin]]
# name = "hydrated"
# path = "src/bin/hydrated.rs"
[[bin]]
name = "hydrated"
path = "src/bin/hydrated.rs"

[features]
default = ["log/max_level_info"]
ssr = ["yew/ssr", "yew/hydration", "futures"]

[profile.release]
Expand Down Expand Up @@ -54,3 +55,25 @@ features = ["yew", "yew-components"]
git = "https://github.com/AVO-cado-team/ramemu.git"


[workspace.lints]

[workspace.lints.clippy]
use_self = "warn"
pedantic = "warn"
perf = "warn"
missing-assert-message = "warn"

module-name-repetitions = "allow"
default-trait-access = "allow"
similar-names = "allow"
manual-assert = "allow"
redundant-closure-for-method-calls = "allow"
redundant_closure = "allow"
single-match-else = "allow"
too-many-lines = "allow"

cast-precision-loss = "allow"
cast-possible-wrap = "allow"
cast-possible-truncation = "allow"
cast-sign-loss = "allow"
cast-lossless = "allow"
6 changes: 6 additions & 0 deletions generate_static.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

sed -i '/<body>/,$d' index.html
printf "<body>\n" >> index.html
cargo run --bin hydrated --target x86_64-unknown-linux-gnu -F ssr 2>/dev/null >> index.html
printf "</body>\n\n</html>\n" >> index.html
Loading

0 comments on commit b850c80

Please sign in to comment.