From df0a28c906989ea8f84f151d7650a7581e39c675 Mon Sep 17 00:00:00 2001 From: Matt Spencer Date: Thu, 13 Jan 2022 14:49:18 +0000 Subject: [PATCH] Cleanup of stale resources Remove unused popper.js Remove unused script partial Remove unused overview.html Use a single main.js entrypoint, and minify the output Remove debut output from cookie concent script Removed unused static style.css --- themes/soafee/assets/js/cookie_consent.js | 2 +- themes/soafee/assets/js/main.js | 1 + themes/soafee/assets/jsconfig.json | 10 ++++++++++ themes/soafee/layouts/_default/baseof.html | 5 ++--- themes/soafee/layouts/partials/head.html | 2 +- themes/soafee/layouts/partials/script.html | 4 ---- themes/soafee/layouts/partials/soafee/overview.html | 10 ---------- themes/soafee/static/css/style.css | 0 8 files changed, 15 insertions(+), 19 deletions(-) create mode 100644 themes/soafee/assets/js/main.js create mode 100644 themes/soafee/assets/jsconfig.json delete mode 100644 themes/soafee/layouts/partials/script.html delete mode 100644 themes/soafee/layouts/partials/soafee/overview.html delete mode 100644 themes/soafee/static/css/style.css diff --git a/themes/soafee/assets/js/cookie_consent.js b/themes/soafee/assets/js/cookie_consent.js index 7861a56..339c70b 100644 --- a/themes/soafee/assets/js/cookie_consent.js +++ b/themes/soafee/assets/js/cookie_consent.js @@ -23,7 +23,7 @@ function eraseCookie(name) { } function cookieConsent() { - console.log("Checking for cookie consent"); +// console.log("Checking for cookie consent"); if (!getCookie('cookieConsent')) { var element=document.getElementById('cookieConsent'); var toast = new bootstrap.Toast(element); diff --git a/themes/soafee/assets/js/main.js b/themes/soafee/assets/js/main.js new file mode 100644 index 0000000..4153f9a --- /dev/null +++ b/themes/soafee/assets/js/main.js @@ -0,0 +1 @@ +import { cookie_consent } from "./cookie_consent.js" \ No newline at end of file diff --git a/themes/soafee/assets/jsconfig.json b/themes/soafee/assets/jsconfig.json new file mode 100644 index 0000000..377218c --- /dev/null +++ b/themes/soafee/assets/jsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "*": [ + "*" + ] + } + } +} \ No newline at end of file diff --git a/themes/soafee/layouts/_default/baseof.html b/themes/soafee/layouts/_default/baseof.html index 3edd89b..58fa13e 100644 --- a/themes/soafee/layouts/_default/baseof.html +++ b/themes/soafee/layouts/_default/baseof.html @@ -3,7 +3,7 @@ {{- partial "head.html" . -}} - {{ partial "google_analytics_body.html" . }} + {{- partial "google_analytics_body.html" . -}}
@@ -20,10 +20,9 @@ - - {{ partial "cookie_consent.html" . }} + {{- partial "cookie_consent.html" . -}} \ No newline at end of file diff --git a/themes/soafee/layouts/partials/head.html b/themes/soafee/layouts/partials/head.html index 7df219c..ffb873e 100644 --- a/themes/soafee/layouts/partials/head.html +++ b/themes/soafee/layouts/partials/head.html @@ -20,7 +20,7 @@ {{ $style := resources.Get "sass/main.scss" | toCSS $options | minify }} - {{ $js := resources.Get "js/cookie_consent.js" | js.Build "main.js" }} + {{ $js := resources.Get "js/main.js" | js.Build "main.js" | minify }} diff --git a/themes/soafee/layouts/partials/script.html b/themes/soafee/layouts/partials/script.html deleted file mode 100644 index 697a509..0000000 --- a/themes/soafee/layouts/partials/script.html +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file diff --git a/themes/soafee/layouts/partials/soafee/overview.html b/themes/soafee/layouts/partials/soafee/overview.html deleted file mode 100644 index 91e5635..0000000 --- a/themes/soafee/layouts/partials/soafee/overview.html +++ /dev/null @@ -1,10 +0,0 @@ -
-
-

Overview

-

The Scalable Open Architecture for Embedded Edge (SOAFEE) project is an industry-led collaboration defined by automakers, semiconductor suppliers, open source and independent software vendors, and cloud technology leaders. The initiative intends to deliver a cloud-native architecture enhanced for mixed-criticality automotive applications with corresponding open-source reference implementations to enable commercial and non-commercial offerings. - - Building on Project Cassini and SystemReady standards, which define standard boot and security requirements for Arm architecture, SOAFEE adds the cloud-native development and deployment framework while introducing functional safety, security, and real-time capabilities required for automotive workloads.

-
-

That's right

-

Only 5 lines

-
\ No newline at end of file diff --git a/themes/soafee/static/css/style.css b/themes/soafee/static/css/style.css deleted file mode 100644 index e69de29..0000000 -- GitLab