This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openoffice-project.git
The following commit(s) were added to refs/heads/main by this push:
new 7334ec2 Update base.html (#10)
7334ec2 is described below
commit 7334ec232384a20e2f6586212341ea8f44dd7606
Author: Matthias Seidel <[email protected]>
AuthorDate: Sun Feb 18 22:23:49 2024 +0100
Update base.html (#10)
* Update base.html
Remove external content
* Add in the local css and js
---------
Co-authored-by: Dave Fisher <[email protected]>
---
theme/openoffice/static/css/bootstrap.min.css | 7 +++++++
theme/openoffice/static/css/github-markdown.min.css | 2 ++
theme/openoffice/static/js/bootstrap.min.js | 7 +++++++
theme/openoffice/static/js/jquery.slim.min.js | 2 ++
theme/openoffice/static/js/popper.min.js | 5 +++++
theme/openoffice/templates/base.html | 21 +++++----------------
6 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/theme/openoffice/static/css/bootstrap.min.css
b/theme/openoffice/static/css/bootstrap.min.css
new file mode 100644
index 0000000..92e3fe8
--- /dev/null
+++ b/theme/openoffice/static/css/bootstrap.min.css
@@ -0,0 +1,7 @@
+/*!
+ * Bootstrap v4.3.1 (https://getbootstrap.com/)
+ * Copyright 2011-2019 The Bootstrap Authors
+ * Copyright 2011-2019 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
*/:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-s
[...]
+/*# sourceMappingURL=bootstrap.min.css.map */
\ No newline at end of file
diff --git a/theme/openoffice/static/css/github-markdown.min.css
b/theme/openoffice/static/css/github-markdown.min.css
new file mode 100644
index 0000000..68dfbcf
--- /dev/null
+++ b/theme/openoffice/static/css/github-markdown.min.css
@@ -0,0 +1,2 @@
+@font-face{font-family:octicons-link;src:url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWU
[...]
+/*# sourceMappingURL=github-markdown.min.css.map */
\ No newline at end of file
diff --git a/theme/openoffice/static/js/bootstrap.min.js
b/theme/openoffice/static/js/bootstrap.min.js
new file mode 100644
index 0000000..c4c0d1f
--- /dev/null
+++ b/theme/openoffice/static/js/bootstrap.min.js
@@ -0,0 +1,7 @@
+/*!
+ * Bootstrap v4.3.1 (https://getbootstrap.com/)
+ * Copyright 2011-2019 The Bootstrap Authors
(https://github.com/twbs/bootstrap/graphs/contributors)
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ */
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof
module?e(exports,require("jquery"),require("popper.js")):"function"==typeof
define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){"use
strict";function i(t,e){for(var n=0;n<e.length;n++){var
i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in
i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return
e&&i(t.prototype,e),n [...]
+//# sourceMappingURL=bootstrap.min.js.map
\ No newline at end of file
diff --git a/theme/openoffice/static/js/jquery.slim.min.js
b/theme/openoffice/static/js/jquery.slim.min.js
new file mode 100644
index 0000000..7556941
--- /dev/null
+++ b/theme/openoffice/static/js/jquery.slim.min.js
@@ -0,0 +1,2 @@
+/*! jQuery v3.6.0
-ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector
| (c) OpenJS Foundation and other contributors | jquery.org/license */
+!function(e,t){"use strict";"object"==typeof module&&"object"==typeof
module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw
new Error("jQuery requires a window with a document");return
t(e)}:t(e)}("undefined"!=typeof window?window:this,function(g,e){"use
strict";var t=[],r=Object.getPrototypeOf,s=t.slice,v=t.flat?function(e){return
t.flat.call(e)}:function(e){return
t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=
[...]
diff --git a/theme/openoffice/static/js/popper.min.js
b/theme/openoffice/static/js/popper.min.js
new file mode 100644
index 0000000..94a5c26
--- /dev/null
+++ b/theme/openoffice/static/js/popper.min.js
@@ -0,0 +1,5 @@
+/*
+ Copyright (C) Federico Zivolo 2019
+ Distributed under the MIT License (license terms are at
http://opensource.org/licenses/MIT).
+ */(function(e,t){'object'==typeof exports&&'undefined'!=typeof
module?module.exports=t():'function'==typeof
define&&define.amd?define(t):e.Popper=t()})(this,function(){'use
strict';function e(e){return e&&'[object
Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var
o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return
t?n[t]:n}function
o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function
n(e){if(!e)return document.body;switch(e.nodeName) [...]
+//# sourceMappingURL=popper.min.js.map
diff --git a/theme/openoffice/templates/base.html
b/theme/openoffice/templates/base.html
index 0f7cfa8..8fe4ea5 100644
--- a/theme/openoffice/templates/base.html
+++ b/theme/openoffice/templates/base.html
@@ -92,26 +92,15 @@
</div>
</footer>
<!-- Start load of stylesheets (will need to upgrade periodically) -->
- <link rel="stylesheet"
-
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
-
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
- crossorigin="anonymous">
- <link rel="stylesheet"
-
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/3.0.1/github-markdown.min.css"
- crossorigin="anonymous">
+ <link href="/theme/css/bootstrap.min.css" rel="stylesheet" type="text/css">
+ <link href="/theme/css/github-markdown.min.css" rel="stylesheet"
type="text/css">
<link href="/theme/css/openoffice.css" rel="stylesheet" type="text/css">
<!-- End stylesheets -->
<!-- Start the loading of javascript frameworks (will need to upgrade
periodically) -->
<script src="https://www.apachecon.com/event-images/snippet.js"></script>
- <script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.slim.min.js"
-
integrity="sha512-6ORWJX/LrnSjBzwefdNUyLCMTIsGoNP6NftMy2UAm1JBm6PRZCO1d7OHBStWpVFZLO+RerTvqX/Z9mBFfCJZ4A=="
- crossorigin="anonymous"></script>
- <script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
-
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
- crossorigin="anonymous"></script>
- <script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
-
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
- crossorigin="anonymous"></script>
+ <script src="/theme/js/jquery.slim.min.js"></script>
+ <script src="/theme/js/popper.min.js"></script>
+ <script src="/theme/js/bootstrap.min.js"></script>
<!-- End the loading of javascript frameworks -->
{% if page %}<!-- Source: {{ page.relative_source_path }}; Template: {{
page.default_template }}; Url: {{ page.url }} -->{% endif %}
{% if article %}<!-- Source: {{ article.relative_source_path }}; Template:
{{ article.default_template }}; Url: {{ article.url }} -->{% endif %}