Browse Source

Use minified version of bootstrap.css

As downloaded from https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css (as documented on getbootstrap.com)
pull/1499/head
Jake Howard 4 years ago
parent
commit
30951c2cf3
No known key found for this signature in database GPG Key ID: 57AFB45680EDD477
  1. 2
      src/api/web.rs
  2. 10263
      src/static/scripts/bootstrap.css
  3. 7
      src/static/scripts/bootstrap.min.css
  4. 2
      src/static/templates/admin/base.hbs

2
src/api/web.rs

@ -82,7 +82,7 @@ fn static_files(filename: String) -> Result<Content<&'static [u8]>, Error> {
"error-x.svg" => Ok(Content(ContentType::SVG, include_bytes!("../static/images/error-x.svg"))), "error-x.svg" => Ok(Content(ContentType::SVG, include_bytes!("../static/images/error-x.svg"))),
"hibp.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/hibp.png"))), "hibp.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/hibp.png"))),
"bootstrap.css" => Ok(Content(ContentType::CSS, include_bytes!("../static/scripts/bootstrap.css"))), "bootstrap.min.css" => Ok(Content(ContentType::CSS, include_bytes!("../static/scripts/bootstrap.min.css"))),
"bootstrap-native.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/bootstrap-native.js"))), "bootstrap-native.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/bootstrap-native.js"))),
"identicon.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/identicon.js"))), "identicon.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/identicon.js"))),
"datatables.min.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/datatables.min.js"))), "datatables.min.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/datatables.min.js"))),

10263
src/static/scripts/bootstrap.css

File diff suppressed because it is too large

7
src/static/scripts/bootstrap.min.css

File diff suppressed because one or more lines are too long

2
src/static/templates/admin/base.hbs

@ -6,7 +6,7 @@
<meta name="robots" content="noindex,nofollow" /> <meta name="robots" content="noindex,nofollow" />
<link rel="icon" type="image/png" href="{{urlpath}}/bwrs_static/shield-white.png"> <link rel="icon" type="image/png" href="{{urlpath}}/bwrs_static/shield-white.png">
<title>Bitwarden_rs Admin Panel</title> <title>Bitwarden_rs Admin Panel</title>
<link rel="stylesheet" href="{{urlpath}}/bwrs_static/bootstrap.css" /> <link rel="stylesheet" href="{{urlpath}}/bwrs_static/bootstrap.min.css" />
<style> <style>
body { body {
padding-top: 75px; padding-top: 75px;

Loading…
Cancel
Save