logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 5bb9ceaf942420ed0bdd3b7680f84e442f9bb362
parent 34f2a306889b5b02b3a89efe12872549a9d4e2e0
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 30 Dec 2024 03:18:45 +0200

no more piss

Diffstat:

Msrc/components/settings_modal/tabs/appearance_tab.js8++++----
Msrc/components/settings_modal/tabs/style_tab/style_tab.js4++--
Rstatic/styles/Breezy DX.piss -> static/styles/Breezy DX.iss0
Rstatic/styles/Redmond DX.piss -> static/styles/Redmond DX.iss0
Mstatic/styles/index.json4++--
5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/components/settings_modal/tabs/appearance_tab.js b/src/components/settings_modal/tabs/appearance_tab.js @@ -43,7 +43,7 @@ const AppearanceTab = { bundledPalettes: [], compilationCache: {}, fileImporter: newImporter({ - accept: '.json, .piss', + accept: '.json, .iss', validator: this.importValidator, onImport: this.onImport, parser: this.importParser, @@ -305,14 +305,14 @@ const AppearanceTab = { importParser (file, filename) { if (filename.endsWith('.json')) { return JSON.parse(file) - } else if (filename.endsWith('.piss')) { + } else if (filename.endsWith('.iss')) { return deserialize(file) } }, onImport (parsed, filename) { if (filename.endsWith('.json')) { this.$store.dispatch('setThemeCustom', parsed.source || parsed.theme) - } else if (filename.endsWith('.piss')) { + } else if (filename.endsWith('.iss')) { this.$store.dispatch('setStyleCustom', parsed) } }, @@ -324,7 +324,7 @@ const AppearanceTab = { if (filename.endsWith('.json')) { const version = parsed._pleroma_theme_version return version >= 1 || version <= 2 - } else if (filename.endsWith('.piss')) { + } else if (filename.endsWith('.iss')) { if (!Array.isArray(parsed)) return false if (parsed.length < 1) return false if (parsed.find(x => x.component === '@meta') == null) return false diff --git a/src/components/settings_modal/tabs/style_tab/style_tab.js b/src/components/settings_modal/tabs/style_tab/style_tab.js @@ -604,7 +604,7 @@ export default { const styleExporter = newExporter({ filename: () => exports.name.value ?? 'pleroma_theme', mime: 'text/plain', - extension: 'piss', + extension: 'iss', getExportedObject: () => exportStyleData.value }) @@ -636,7 +636,7 @@ export default { } const styleImporter = newImporter({ - accept: '.piss', + accept: '.iss', parser (string) { return deserialize(string) }, onImportFailure (result) { console.error('Failure importing style:', result) diff --git a/static/styles/Breezy DX.piss b/static/styles/Breezy DX.iss diff --git a/static/styles/Redmond DX.piss b/static/styles/Redmond DX.iss diff --git a/static/styles/index.json b/static/styles/index.json @@ -1,4 +1,4 @@ { - "RedmondDX": "/static/styles/Redmond DX.piss", - "BreezyDX": "/static/styles/Breezy DX.piss" + "RedmondDX": "/static/styles/Redmond DX.iss", + "BreezyDX": "/static/styles/Breezy DX.iss" }