From 9ce1ca907965b0cf7c99a3bac919d7aee341ea2e Mon Sep 17 00:00:00 2001 From: Benjamin Sattler Date: Thu, 21 May 2020 12:03:55 +0200 Subject: [PATCH] move css in separate files --- .eslintrc.json | 2 +- lib/OsWindow/OsWindow.js | 516 +------------------------------ package.json | 2 +- style/OsWindow/OsWindow.css | 43 +++ style/OsWindow/index.css | 6 + style/OsWindow/theme/default.css | 116 +++++++ style/OsWindow/theme/mac.css | 116 +++++++ style/OsWindow/theme/win-xp.css | 198 ++++++++++++ style/OsWindow/variables.css | 41 +++ yarn.lock | 174 +++++------ 10 files changed, 606 insertions(+), 608 deletions(-) create mode 100644 style/OsWindow/OsWindow.css create mode 100644 style/OsWindow/index.css create mode 100644 style/OsWindow/theme/default.css create mode 100644 style/OsWindow/theme/mac.css create mode 100644 style/OsWindow/theme/win-xp.css create mode 100644 style/OsWindow/variables.css diff --git a/.eslintrc.json b/.eslintrc.json index eca5a25..b62f370 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,7 +19,7 @@ "quixote": true }, "parserOptions": { - "ecmaVersion": 2018, + "ecmaVersion": 2020, "sourceType": "module" }, "rules": { diff --git a/lib/OsWindow/OsWindow.js b/lib/OsWindow/OsWindow.js index a27eb31..4263cef 100644 --- a/lib/OsWindow/OsWindow.js +++ b/lib/OsWindow/OsWindow.js @@ -1,521 +1,11 @@ /* eslint-disable no-param-reassign */ const templateElement = document.createElement('template'); +const path = document.createElement('a'); +path.href = import.meta.url; templateElement.innerHTML = `