Commit Graph

34 Commits

Author SHA1 Message Date
6cc1a9e967
Simplify the app bootstrapping 2020-07-16 17:02:38 +02:00
0808252ad2
Cargo update; fix crate names in Makefile.toml 2020-07-16 16:12:23 +02:00
d34861ed93
More Cargo.toml tweaks 2020-07-16 15:52:45 +02:00
701698e990
Set the repository and license in Cargo.toml 2020-07-16 14:42:20 +02:00
011a4f0361
Use a separate pkg subdirectory for wasm-pack output 2020-07-16 14:40:49 +02:00
ae8dbbe41d
Update the Sass/CSS build stop to return a proper error message 2020-07-14 21:42:30 +02:00
98d4c6083a
Improve Makefile.toml for cargo-make
* Ensure that the `build-ui`/`build-server` tasks are callable
* Add some missing task categories
* Tweak the task descriptions
2020-07-14 19:49:10 +02:00
2748224d48
Drop diesel as external crate (for now); fixes warning 2020-07-14 16:58:27 +02:00
e6bbb62c07
Replace cargo-web by wasm-pack in build-ui task; drop copy-wasm-assets task 2020-07-14 16:51:16 +02:00
8d9dd0477e
Switch to the new Cargo.lock format 2020-07-14 16:14:29 +02:00
58441e82aa
Run cargo update to fix build on nightly 2020-07-14 16:14:05 +02:00
bb950fdc99
Switch to Yew 0.17; switch WASM build system
Use crates wasm-pack/web_sys instead of cargo-web/stdweb.
2020-07-14 16:12:20 +02:00
991fa2800c Small README tweak 2020-07-14 14:50:48 +02:00
9f0449cc53 Build both crates seperately; use correct target
Also make the wasm32-unknown-unknown target available.
2019-07-26 15:06:30 +02:00
b0a75662bf Add a cargo-make makefile
This will facilitate building each crate with the correct target,
placing the assets in the correct place before running and only
running tests on the stoptime_server crate.
2019-07-26 14:25:02 +02:00
6a70bbb13e Serve the static files from the stoptime_ui crate
Do this on the root path (/), not on /static.
2019-07-26 14:24:28 +02:00
05a96934f3 Ignore generated assets 2019-07-26 14:23:21 +02:00
cd5e220b50 Add main index that loads the CSS assets and WASM application 2019-07-26 14:23:00 +02:00
76a981444e Generate CSS assets during build
The main CSS file will import everything from Bootstrap and
Font Awesome and provide a way to override things.
2019-07-26 14:22:01 +02:00
1bd7166313 Add asset pipeline and webfont files from Font Awesome 5.9.0 2019-07-26 14:16:48 +02:00
a29c2f593b Add asset pipeline files from Boostrap 4.3.1 2019-07-26 14:16:48 +02:00
ffa7b34abf Add a basic Yew-basic stoptime_ui crate 2019-07-26 14:16:43 +02:00
2f096c33b4 Rename the server crate to stoptime_server 2019-07-26 14:08:45 +02:00
3e1528b9cb Set up a workspace; the Rocket app is the server member 2019-07-26 10:26:07 +02:00
66cb47d619 Bump rocket depends to 0.4.2 (for Rust ≥ 1.36) 2019-07-08 20:03:13 +02:00
4082a45d5d Add a README and LICENSE file 2019-06-15 11:44:33 +02:00
d88f970107 Add GitLab CI 2019-06-10 12:29:42 +02:00
5e7e4c658e Add error catchers 2019-06-10 10:24:53 +02:00
1559936d4b Add new (insertable) models and associations to models
Also make models updateable (by deriving `AsChangeset`), debuggable
(by deriving `Debug`) and identifiable (by deriving `Identifiable`).

Note that the `CompanyInfo` is not updateable as a new revision
should be created.  Leaving this derive out ensure we cannot
accidentally update it.
2019-06-10 10:24:53 +02:00
4a8b3a48e1 Add first version of the diesel schema and models 2019-06-10 10:24:50 +02:00
420a366b38 Add stub handlers for the complete application
No handler is implemented!
2019-06-10 10:23:33 +02:00
48164aea40 Add support for serving static files from ./static 2019-06-10 10:23:31 +02:00
228aa5ab11 Import initial version into Git 2019-06-10 10:16:31 +02:00
1f44ff1e37 Initial commit 2019-06-08 13:58:20 +02:00