Commit Graph

39 Commits

Author SHA1 Message Date
Paul van Tilburg f119d1ac38
Rename the Root component to App 2020-07-17 11:40:04 +02:00
Paul van Tilburg b96ad9ecbd
Fix the target for the stoptime-ui build in GitLab CI 2020-07-16 18:48:01 +02:00
Paul van Tilburg ba8c53a2ed
Also fix the crate names for GitLab CI 2020-07-16 18:38:44 +02:00
Paul van Tilburg 075737c252
Import missing regular/solid FontAwesome styles 2020-07-16 18:16:31 +02:00
Paul van Tilburg 9d8a2c427d
Update Bootstrap to version 4.5.0 2020-07-16 17:15:13 +02:00
Paul van Tilburg 6cc1a9e967
Simplify the app bootstrapping 2020-07-16 17:02:38 +02:00
Paul van Tilburg 0808252ad2
Cargo update; fix crate names in Makefile.toml 2020-07-16 16:12:23 +02:00
Paul van Tilburg d34861ed93
More Cargo.toml tweaks 2020-07-16 15:52:45 +02:00
Paul van Tilburg 701698e990
Set the repository and license in Cargo.toml 2020-07-16 14:42:20 +02:00
Paul van Tilburg 011a4f0361
Use a separate pkg subdirectory for wasm-pack output 2020-07-16 14:40:49 +02:00
Paul van Tilburg ae8dbbe41d
Update the Sass/CSS build stop to return a proper error message 2020-07-14 21:42:30 +02:00
Paul van Tilburg 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
Paul van Tilburg 2748224d48
Drop diesel as external crate (for now); fixes warning 2020-07-14 16:58:27 +02:00
Paul van Tilburg e6bbb62c07
Replace cargo-web by wasm-pack in build-ui task; drop copy-wasm-assets task 2020-07-14 16:51:16 +02:00
Paul van Tilburg 8d9dd0477e
Switch to the new Cargo.lock format 2020-07-14 16:14:29 +02:00
Paul van Tilburg 58441e82aa
Run cargo update to fix build on nightly 2020-07-14 16:14:05 +02:00
Paul van Tilburg 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
Paul van Tilburg 991fa2800c Small README tweak 2020-07-14 14:50:48 +02:00
Paul van Tilburg 9f0449cc53 Build both crates seperately; use correct target
Also make the wasm32-unknown-unknown target available.
2019-07-26 15:06:30 +02:00
Paul van Tilburg 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
Paul van Tilburg 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
Paul van Tilburg 05a96934f3 Ignore generated assets 2019-07-26 14:23:21 +02:00
Paul van Tilburg cd5e220b50 Add main index that loads the CSS assets and WASM application 2019-07-26 14:23:00 +02:00
Paul van Tilburg 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
Paul van Tilburg 1bd7166313 Add asset pipeline and webfont files from Font Awesome 5.9.0 2019-07-26 14:16:48 +02:00
Paul van Tilburg a29c2f593b Add asset pipeline files from Boostrap 4.3.1 2019-07-26 14:16:48 +02:00
Paul van Tilburg ffa7b34abf Add a basic Yew-basic stoptime_ui crate 2019-07-26 14:16:43 +02:00
Paul van Tilburg 2f096c33b4 Rename the server crate to stoptime_server 2019-07-26 14:08:45 +02:00
Paul van Tilburg 3e1528b9cb Set up a workspace; the Rocket app is the server member 2019-07-26 10:26:07 +02:00
Paul van Tilburg 66cb47d619 Bump rocket depends to 0.4.2 (for Rust ≥ 1.36) 2019-07-08 20:03:13 +02:00
Paul van Tilburg 4082a45d5d Add a README and LICENSE file 2019-06-15 11:44:33 +02:00
Paul van Tilburg d88f970107 Add GitLab CI 2019-06-10 12:29:42 +02:00
Paul van Tilburg 5e7e4c658e Add error catchers 2019-06-10 10:24:53 +02:00
Paul van Tilburg 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
Paul van Tilburg 4a8b3a48e1 Add first version of the diesel schema and models 2019-06-10 10:24:50 +02:00
Paul van Tilburg 420a366b38 Add stub handlers for the complete application
No handler is implemented!
2019-06-10 10:23:33 +02:00
Paul van Tilburg 48164aea40 Add support for serving static files from ./static 2019-06-10 10:23:31 +02:00
Paul van Tilburg 228aa5ab11 Import initial version into Git 2019-06-10 10:16:31 +02:00
Paul van Tilburg 1f44ff1e37 Initial commit 2019-06-08 13:58:20 +02:00