Compare commits
1 Commits
49665b3a3f
...
f3508de4eb
| Author | SHA1 | Date | |
|---|---|---|---|
|
f3508de4eb
|
4
.github/workflows/rust-check.yaml
vendored
4
.github/workflows/rust-check.yaml
vendored
@@ -34,7 +34,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: .env symlink creation
|
- name: .env symlink creation
|
||||||
run: ln -s .env.dev .env
|
run: ln -s .env.example .env
|
||||||
|
- name: npm build
|
||||||
|
run: npm install && npm run build
|
||||||
- name: rustfmt check
|
- name: rustfmt check
|
||||||
run: cargo fmt --all --check
|
run: cargo fmt --all --check
|
||||||
- name: Clippy check
|
- name: Clippy check
|
||||||
|
|||||||
19
Dioxus.toml
19
Dioxus.toml
@@ -2,5 +2,20 @@
|
|||||||
|
|
||||||
[web.app]
|
[web.app]
|
||||||
|
|
||||||
# HTML title tag content.
|
# HTML title tag content
|
||||||
title = "Todo Baggins"
|
title = "todo_baggins"
|
||||||
|
|
||||||
|
# include `assets` in web platform
|
||||||
|
[web.resource]
|
||||||
|
|
||||||
|
# Additional CSS style files
|
||||||
|
style = []
|
||||||
|
|
||||||
|
# Additional JavaScript files
|
||||||
|
script = []
|
||||||
|
|
||||||
|
[web.resource.dev]
|
||||||
|
|
||||||
|
# Javascript code file
|
||||||
|
# serve: [dev-server] only
|
||||||
|
script = []
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
FROM rust:1.92.0-bookworm@sha256:9676d0547a259997add8f5924eb6b959c589ed39055338e23b99aba7958d6d31
|
FROM rust:1.92.0-bookworm@sha256:9676d0547a259997add8f5924eb6b959c589ed39055338e23b99aba7958d6d31
|
||||||
|
|
||||||
RUN useradd -m -u 1000 -s /bin/bash app_user \
|
RUN useradd -m -u 1000 -s /bin/bash app_user
|
||||||
&& rustup target add wasm32-unknown-unknown
|
|
||||||
|
RUN rustup target add wasm32-unknown-unknown
|
||||||
|
|
||||||
USER app_user
|
USER app_user
|
||||||
|
|
||||||
RUN cargo install --git https://github.com/diesel-rs/diesel --rev 2e85ba060d3d70ea605ea58a79b8a435749a7adc diesel_cli \
|
RUN cargo install --locked dioxus-cli --version 0.7.2 \
|
||||||
&& cargo install --git https://github.com/DioxusLabs/dioxus --rev 8f8b58ea80ba0ec8057807bcd58fb609f7a5f2b1 dioxus-cli
|
&& cargo install --locked diesel_cli --version 2.3.4
|
||||||
|
|
||||||
COPY --chown=app_user . /srv/app
|
COPY --chown=app_user . /srv/app
|
||||||
WORKDIR /srv/app
|
WORKDIR /srv/app
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
/* stylelint-disable-next-line import-notation */
|
|
||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
|||||||
Reference in New Issue
Block a user