Compare commits
No commits in common. "0ffa1419bc6de139eabad5658d1a00c776040b9a" and "9cf01f59913b860ad21027f1f3b261c434dd2333" have entirely different histories.
0ffa1419bc
...
9cf01f5991
5 changed files with 8 additions and 21 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -386,7 +386,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bunbun"
|
name = "bunbun"
|
||||||
version = "0.6.2"
|
version = "0.6.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-rt 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"actix-rt 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"actix-web 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"actix-web 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bunbun"
|
name = "bunbun"
|
||||||
version = "0.6.2"
|
version = "0.6.1"
|
||||||
authors = ["Edward Shen <code@eddie.sh>"]
|
authors = ["Edward Shen <code@eddie.sh>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Re-implementation of bunny1 in Rust"
|
description = "Re-implementation of bunny1 in Rust"
|
||||||
|
|
|
@ -121,9 +121,6 @@ fn compile_templates() -> Handlebars {
|
||||||
handlebars
|
handlebars
|
||||||
.register_partial("bunbun_version", env!("CARGO_PKG_VERSION"))
|
.register_partial("bunbun_version", env!("CARGO_PKG_VERSION"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
handlebars
|
|
||||||
.register_partial("bunbun_src", env!("CARGO_PKG_REPOSITORY"))
|
|
||||||
.unwrap();
|
|
||||||
macro_rules! register_template {
|
macro_rules! register_template {
|
||||||
[ $( $template:expr ),* ] => {
|
[ $( $template:expr ),* ] => {
|
||||||
$(
|
$(
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
use crate::{template_args, BunBunError, Route, State};
|
use crate::{template_args, BunBunError, Route, State};
|
||||||
|
use actix_web::http::header::ContentType;
|
||||||
use actix_web::web::{Data, Query};
|
use actix_web::web::{Data, Query};
|
||||||
use actix_web::{get, http::header};
|
use actix_web::{get, http::header};
|
||||||
use actix_web::{HttpRequest, HttpResponse, Responder};
|
use actix_web::{HttpRequest, HttpResponse, Responder};
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 0;
|
|
||||||
min-height: 100vh;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: #212121;
|
background-color: #212121;
|
||||||
|
@ -16,18 +14,11 @@
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
}
|
}
|
||||||
h1, p { margin: 0; }
|
h1, p { margin: 0; }
|
||||||
h1 { margin-top: 1rem; }
|
|
||||||
main { display: flex; }
|
main { display: flex; }
|
||||||
a { color: white; }
|
a { color: white; }
|
||||||
footer {
|
footer {
|
||||||
display: flex;
|
margin-top: 1rem;
|
||||||
justify-self: end;
|
color: #444;
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
.spacer { flex-grow: 1; }
|
|
||||||
footer p, footer p a {
|
|
||||||
margin: 1rem 0.5rem;
|
|
||||||
color: #555;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="search"
|
<link rel="search"
|
||||||
|
@ -37,7 +28,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Bunbun</h1>
|
<h1>Bunbun</h1>
|
||||||
<p>Welcome to bunbun! To setup bunbun for your web browser, follow these steps:</p>
|
<p>Thanks for installing bunbun! To setup bunbun for your web browser, follow these steps:</p>
|
||||||
<main>
|
<main>
|
||||||
<section>
|
<section>
|
||||||
<h2>Firefox</h2>
|
<h2>Firefox</h2>
|
||||||
|
@ -62,11 +53,9 @@
|
||||||
</ol>
|
</ol>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
<p>To view a full list of commands currently available on this instance, check out the <a href="/ls">command list</a>.</p>
|
<p>To view a full list of commands, check out the <a href="/ls">command list</a>.</p>
|
||||||
</body>
|
</body>
|
||||||
<div class="spacer"></div>
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>{{> bunbun_version }}</p>
|
<p>{{> bunbun_version}}</p>
|
||||||
<p><a href="{{> bunbun_src }}">Source Code</a></p>
|
|
||||||
</footer>
|
</footer>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue