From 15e8840eb6ea7ce67275c88c9fff4cd52b61b54b Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 13 Dec 2018 21:32:32 -0800 Subject: [PATCH] chore(git): remove ignored files from git (#801) --- .gitignore | 15 +++++---------- static/inline-script.js.map | 1 - static/theme-cobalt.css | 1 - static/theme-gecko.css | 1 - static/theme-hacker.css | 1 - static/theme-hotpants.css | 1 - static/theme-majesty.css | 1 - static/theme-native.css | 1 - static/theme-oaken.css | 1 - static/theme-ozark.css | 1 - static/theme-pitchblack.css | 1 - static/theme-punk.css | 1 - static/theme-riot.css | 1 - static/theme-scarlet.css | 1 - static/theme-seafoam.css | 1 - static/theme-sorcery.css | 1 - 16 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 static/inline-script.js.map delete mode 100644 static/theme-cobalt.css delete mode 100644 static/theme-gecko.css delete mode 100644 static/theme-hacker.css delete mode 100644 static/theme-hotpants.css delete mode 100644 static/theme-majesty.css delete mode 100644 static/theme-native.css delete mode 100644 static/theme-oaken.css delete mode 100644 static/theme-ozark.css delete mode 100644 static/theme-pitchblack.css delete mode 100644 static/theme-punk.css delete mode 100644 static/theme-riot.css delete mode 100644 static/theme-scarlet.css delete mode 100644 static/theme-seafoam.css delete mode 100644 static/theme-sorcery.css diff --git a/.gitignore b/.gitignore index 003b7c6..e9307c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,9 @@ .DS_Store node_modules -.sapper -__sapper__ -yarn.lock -templates/.* -static/*.css +/__sapper__ /mastodon -mastodon.log -static/robots.txt -/inline-script-checksum.json +/mastodon.log +/static/*.css +/static/robots.txt /static/inline-script.js.map -/templates/.* -/src/manifest/ +/inline-script-checksum.json diff --git a/static/inline-script.js.map b/static/inline-script.js.map deleted file mode 100644 index fae0b39..0000000 --- a/static/inline-script.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inline-script.js","sources":["src/routes/_utils/themeEngine.js","inline-script.js","src/routes/_utils/testStorage.js"],"sourcesContent":["let meta = process.browser && document.getElementById('theThemeColor')\nlet offlineStyle = process.browser && document.getElementById('theOfflineStyle')\n\nfunction getExistingThemeLink () {\n return document.head.querySelector('link[rel=stylesheet][href^=\"/theme-\"]')\n}\n\nfunction resetExistingTheme () {\n let existingLink = getExistingThemeLink()\n if (existingLink) {\n document.head.removeChild(existingLink)\n }\n}\n\nfunction loadCSS (href) {\n let existingLink = getExistingThemeLink()\n\n let link = document.createElement('link')\n link.rel = 'stylesheet'\n link.href = href\n\n link.addEventListener('load', function onload () {\n link.removeEventListener('load', onload)\n if (existingLink) { // remove after load to avoid flash of default theme\n document.head.removeChild(existingLink)\n }\n })\n\n // inserting before the offline