Rename project to pl-fe
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@@ -22,7 +22,7 @@ const Portal: React.FC<IPortal> = ({ children }) => {
|
||||
return (
|
||||
ReactDOM.createPortal(
|
||||
children,
|
||||
document.getElementById('soapbox') as HTMLDivElement,
|
||||
document.getElementById('plfe') as HTMLDivElement,
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 />);
|
||||
|
||||
@@ -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)})`;
|
||||
|
||||
Reference in New Issue
Block a user