Browse Source

Use minified version of bootstrap-native

As retrieved from https://github.com/thednp/bootstrap.native/blob/3.0.15/dist/bootstrap-native.min.js
pull/1499/head
Jake Howard 4 years ago
parent
commit
7dc9f334bd
No known key found for this signature in database GPG Key ID: 57AFB45680EDD477
  1. 2
      src/api/web.rs
  2. 1673
      src/static/scripts/bootstrap-native.js
  3. 2
      src/static/scripts/bootstrap-native.min.js
  4. 2
      src/static/templates/admin/base.hbs

2
src/api/web.rs

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

1673
src/static/scripts/bootstrap-native.js

File diff suppressed because it is too large

2
src/static/scripts/bootstrap-native.min.js

File diff suppressed because one or more lines are too long

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

@ -131,6 +131,6 @@
})();
</script>
<!-- This script needs to be at the bottom, else it will fail! -->
<script src="{{urlpath}}/bwrs_static/bootstrap-native.js"></script>
<script src="{{urlpath}}/bwrs_static/bootstrap-native.min.js"></script>
</body>
</html>

Loading…
Cancel
Save