/admin --> /soapbox/admin

next
Alex Gleason 2022-04-30 11:31:04 -05:00
rodzic e08a297eff
commit f19bd32e52
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
7 zmienionych plików z 19 dodań i 19 usunięć

Wyświetl plik

@ -73,7 +73,7 @@ const SidebarNavigation = () => {
if (account.staff) {
menu.push({
to: '/admin',
to: '/soapbox/admin',
icon: require('@tabler/icons/icons/dashboard.svg'),
text: <FormattedMessage id='tabs_bar.dashboard' defaultMessage='Dashboard' />,
count: dashboardCount,

Wyświetl plik

@ -61,7 +61,7 @@ const ThumbNavigation: React.FC = (): JSX.Element => {
<ThumbNavigationLink
src={require('@tabler/icons/icons/dashboard.svg')}
text={<FormattedMessage id='navigation.dashboard' defaultMessage='Dashboard' />}
to='/admin'
to='/soapbox/admin'
count={dashboardCount}
/>
)}

Wyświetl plik

@ -19,18 +19,18 @@ const AdminTabs: React.FC = () => {
const reportsCount = useAppSelector(state => state.admin.openReports.count());
const tabs = [{
name: '/admin',
name: '/soapbox/admin',
text: intl.formatMessage(messages.dashboard),
to: '/admin',
to: '/soapbox/admin',
}, {
name: '/admin/reports',
name: '/soapbox/admin/reports',
text: intl.formatMessage(messages.reports),
to: '/admin/reports',
to: '/soapbox/admin/reports',
count: reportsCount,
}, {
name: '/admin/approval',
name: '/soapbox/admin/approval',
text: intl.formatMessage(messages.waitlist),
to: '/admin/approval',
to: '/soapbox/admin/approval',
count: approvalCount,
}];

Wyświetl plik

@ -46,7 +46,7 @@ const LatestAccountsPanel: React.FC<ILatestAccountsPanel> = ({ limit = 5 }) => {
}
const handleAction = () => {
history.push('/admin/users');
history.push('/soapbox/admin/users');
};
return (

Wyświetl plik

@ -26,9 +26,9 @@ const Admin: React.FC = () => {
<AdminTabs />
<Switch>
<Route path='/admin' exact component={Dashboard} />
<Route path='/admin/reports' exact component={Reports} />
<Route path='/admin/approval' exact component={Waitlist} />
<Route path='/soapbox/admin' exact component={Dashboard} />
<Route path='/soapbox/admin/reports' exact component={Reports} />
<Route path='/soapbox/admin/approval' exact component={Waitlist} />
</Switch>
</Column>
);

Wyświetl plik

@ -77,7 +77,7 @@ const Dashboard: React.FC = () => {
</div>
)}
{isNumber(userCount) && (
<Link className='dashcounter' to='/admin/users'>
<Link className='dashcounter' to='/soapbox/admin/users'>
<Text align='center' size='2xl' weight='medium'>
<FormattedNumber value={userCount} />
</Text>

Wyświetl plik

@ -227,7 +227,7 @@ const SwitchingColumnsArea: React.FC = ({ children }) => {
<Redirect from='/home' to='/' />
{/* Mastodon rendered pages */}
<Redirect from='/admin/dashboard' to='/admin' exact />
<Redirect from='/admin' to='/soapbox/admin' />
<Redirect from='/terms' to='/about' />
<Redirect from='/settings/preferences' to='/settings' />
<Redirect from='/settings/two_factor_authentication_methods' to='/settings/mfa' />
@ -302,11 +302,11 @@ const SwitchingColumnsArea: React.FC = ({ children }) => {
{/* <WrappedRoute path='/backups' page={DefaultPage} component={Backups} content={children} /> */}
<WrappedRoute path='/soapbox/config' adminOnly page={DefaultPage} component={SoapboxConfig} content={children} />
<WrappedRoute path='/admin' staffOnly page={AdminPage} component={Dashboard} content={children} exact />
<WrappedRoute path='/admin/approval' staffOnly page={AdminPage} component={Dashboard} content={children} exact />
<WrappedRoute path='/admin/reports' staffOnly page={AdminPage} component={Dashboard} content={children} exact />
<WrappedRoute path='/admin/log' staffOnly page={AdminPage} component={ModerationLog} content={children} exact />
<WrappedRoute path='/admin/users' staffOnly page={AdminPage} component={UserIndex} content={children} exact />
<WrappedRoute path='/soapbox/admin' staffOnly page={AdminPage} component={Dashboard} content={children} exact />
<WrappedRoute path='/soapbox/admin/approval' staffOnly page={AdminPage} component={Dashboard} content={children} exact />
<WrappedRoute path='/soapbox/admin/reports' staffOnly page={AdminPage} component={Dashboard} content={children} exact />
<WrappedRoute path='/soapbox/admin/log' staffOnly page={AdminPage} component={ModerationLog} content={children} exact />
<WrappedRoute path='/soapbox/admin/users' staffOnly page={AdminPage} component={UserIndex} content={children} exact />
<WrappedRoute path='/info' page={EmptyPage} component={ServerInfo} content={children} />
<WrappedRoute path='/developers/apps/create' developerOnly page={DefaultPage} component={CreateApp} content={children} />