From 2b33d1d6aac5bf5854fe3f9cdd023edf3420430a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 28 Apr 2024 23:09:10 +0200 Subject: [PATCH] Rename project to pl-fe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- README.md | 4 ++++ app.json | 6 +++--- index.html | 2 +- package.json | 12 ++++++------ src/components/ui/portal/portal.tsx | 2 +- src/jest/test-helpers.tsx | 2 +- src/main.tsx | 2 +- src/schemas/instance.ts | 4 ++++ vite.config.ts | 6 +++--- 9 files changed, 24 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 55896b0eb..d6af896e6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +`pl-fe` is a web-based federated social media client, fork of Soapbox. + +--- + ![Soapbox Screenshot](soapbox-screenshot.png) **Soapbox** is customizable open-source software that puts the power of social media in the hands of the people. Feature-rich and hyper-focused on providing a user experience to rival Big Tech, Soapbox is already home to some of the biggest alternative social platforms. diff --git a/app.json b/app.json index bd168fb5a..3ed1d5299 100644 --- a/app.json +++ b/app.json @@ -1,7 +1,7 @@ { - "name": "Soapbox", - "description": "Software for the next generation of social media.", + "name": "pl-fe", + "description": "Web-based federated social media client, a fork of Soapbox.", "keywords": ["fediverse"], - "website": "https://soapbox.pub", + "website": "https://github.com/mkljczk/pl-fe", "stack": "container" } diff --git a/index.html b/index.html index 5e786dd97..9b173ed0d 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ <%- snippets %> -
+
diff --git a/package.json b/package.json index 9805e5ef5..2eb18bb19 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,20 @@ { - "name": "soapbox", - "displayName": "Soapbox", + "name": "pl-fe", + "displayName": "pl-fe", "version": "3.2.0", "type": "module", - "description": "Soapbox frontend for the Fediverse.", - "homepage": "https://soapbox.pub/", + "description": "Web-based federated social media client, a fork of Soapbox", + "homepage": "https://github.com/mkljczk/pl-fe", "repository": { "type": "git", - "url": "https://gitlab.com/soapbox-pub/soapbox" + "url": "https://github.com/mkljczk/pl-fe" }, "keywords": [ "fediverse", "pleroma" ], "bugs": { - "url": "https://gitlab.com/soapbox-pub/soapbox/-/issues" + "url": "https://github.com/mkljczk/pl-fe/issues" }, "funding": { "type": "lightning", diff --git a/src/components/ui/portal/portal.tsx b/src/components/ui/portal/portal.tsx index 9d9ae73e7..7d175628c 100644 --- a/src/components/ui/portal/portal.tsx +++ b/src/components/ui/portal/portal.tsx @@ -22,7 +22,7 @@ const Portal: React.FC = ({ children }) => { return ( ReactDOM.createPortal( children, - document.getElementById('soapbox') as HTMLDivElement, + document.getElementById('plfe') as HTMLDivElement, ) ); }; diff --git a/src/jest/test-helpers.tsx b/src/jest/test-helpers.tsx index 06087e9ca..142a58bb8 100644 --- a/src/jest/test-helpers.tsx +++ b/src/jest/test-helpers.tsx @@ -50,7 +50,7 @@ const TestApp: FC = ({ children, storeProps, routerProps = {} }) => { }; return ( -
+
diff --git a/src/main.tsx b/src/main.tsx index a204848da..a2e3844c0 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -36,7 +36,7 @@ if (BuildConfig.NODE_ENV === 'production') { } ready(() => { - const container = document.getElementById('soapbox') as HTMLElement; + const container = document.getElementById('plfe') as HTMLElement; const root = createRoot(container); root.render(); diff --git a/src/schemas/instance.ts b/src/schemas/instance.ts index 081f2f493..5740ffab6 100644 --- a/src/schemas/instance.ts +++ b/src/schemas/instance.ts @@ -21,6 +21,10 @@ const fixVersion = (version: string) => { version = '2.7.2 (compatible; Pleroma 2.4.50+akkoma)'; } + if (version.endsWith('+pl)')) { + version = version.slice(0, -3) + 'soapbox)'; + } + // Set Takahē version to a Pleroma-like string if (version.startsWith('takahe/')) { version = `0.0.0 (compatible; Takahe ${version.slice(7)})`; diff --git a/vite.config.ts b/vite.config.ts index a174b0644..167d2ea0b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -68,9 +68,9 @@ export default defineConfig(({ command }) => ({ }, manifestFilename: 'manifest.json', manifest: { - name: 'Soapbox', - short_name: 'Soapbox', - description: 'A social media frontend with a focus on custom branding and ease of use.', + name: 'pl-fe', + short_name: 'pl-fe', + description: 'Web-based federated social media client, a fork of Soapbox', }, srcDir: 'src/service-worker', filename: 'sw.ts',