From 47b06d659d69e0e38b155bda4966c39be8780e7d 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 | 165 +++++----- 10 files changed, 597 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 d448142..796918c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -22,7 +22,7 @@ "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"], "parserOptions": { - "ecmaVersion": 2018, + "ecmaVersion": 2020, "sourceType": "module" }, "rules": { diff --git a/lib/OsWindow/OsWindow.js b/lib/OsWindow/OsWindow.js index 7782152..3753ae0 100644 --- a/lib/OsWindow/OsWindow.js +++ b/lib/OsWindow/OsWindow.js @@ -5,521 +5,11 @@ import Themes from './Theme.js'; import WindowStates from './WindowState.js'; const templateElement = document.createElement('template'); +const path = document.createElement('a'); +path.href = import.meta.url; templateElement.innerHTML = `