Rename project to pl-fe

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-04-28 23:09:10 +02:00
parent 7ae2b4282f
commit 2b33d1d6aa
9 changed files with 24 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ const Portal: React.FC<IPortal> = ({ children }) => {
return (
ReactDOM.createPortal(
children,
document.getElementById('soapbox') as HTMLDivElement,
document.getElementById('plfe') as HTMLDivElement,
)
);
};

View File

@@ -50,7 +50,7 @@ const TestApp: FC<any> = ({ children, storeProps, routerProps = {} }) => {
};
return (
<div id='soapbox'>
<div id='plfe'>
<Provider store={props.store}>
<MemoryRouter {...routerProps}>
<StatProvider>

View File

@@ -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(<Soapbox />);

View File

@@ -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)})`;