Feature/rebrand to suwayomi (#500)
* Rename "Tachidesk-WebUI" to "Suwayomi-WebUI" * Rename "Tachidesk-Server" to "Suwayomi-Server" * Rename "Tachidesk" to "Suwayomi" * Rename variables
This commit is contained in:
@@ -30,7 +30,7 @@ type ContextType = {
|
||||
export const NavBarContext = React.createContext<ContextType>({
|
||||
defaultBackTo: undefined,
|
||||
setDefaultBackTo: (): void => {},
|
||||
title: 'Tachidesk',
|
||||
title: 'Suwayomi',
|
||||
setTitle: (): void => {},
|
||||
action: <div />,
|
||||
setAction: (): void => {},
|
||||
|
||||
@@ -16,7 +16,7 @@ interface IProps {
|
||||
|
||||
export function NavBarContextProvider({ children }: IProps) {
|
||||
const [defaultBackTo, setDefaultBackTo] = useState<string | undefined>();
|
||||
const [title, setTitle] = useState<string | React.ReactNode>('Tachidesk');
|
||||
const [title, setTitle] = useState<string | React.ReactNode>('Suwayomi');
|
||||
const [action, setAction] = useState<any>(<div />);
|
||||
const [override, setOverride] = useState<INavbarOverride>({
|
||||
status: false,
|
||||
@@ -25,7 +25,7 @@ export function NavBarContextProvider({ children }: IProps) {
|
||||
|
||||
const updateTitle = useCallback(
|
||||
(newTitle: string | React.ReactNode, browserTitle: string = typeof newTitle === 'string' ? newTitle : '') => {
|
||||
document.title = `${browserTitle} - Tachidesk`;
|
||||
document.title = `${browserTitle} - Suwayomi`;
|
||||
setTitle(newTitle);
|
||||
},
|
||||
[setTitle],
|
||||
|
||||
@@ -151,7 +151,7 @@ export function HorizontalPager(props: IReaderProps) {
|
||||
// Special case if scroll is moved all the way to the edge
|
||||
// This handles cases when last page is show, but is smaller then
|
||||
// window, in which case it would never get marked as read.
|
||||
// See https://github.com/Suwayomi/Tachidesk-WebUI/issues/14 for more info
|
||||
// See https://github.com/Suwayomi/Suwayomi-WebUI/issues/14 for more info
|
||||
if (settings.readerType === 'ContinuesHorizontalLTR' ? isAtEnd() : isAtStart()) {
|
||||
currentPageRef.current = pages.length - 1;
|
||||
setCurPage(currentPageRef.current);
|
||||
|
||||
@@ -57,7 +57,7 @@ export function VerticalPager(props: IReaderProps) {
|
||||
// If scroll is moved all the way to the bottom
|
||||
// This handles cases when last page is show, but is smaller then
|
||||
// window, in which case it would never get marked as read.
|
||||
// See https://github.com/Suwayomi/Tachidesk-WebUI/issues/14 for more info
|
||||
// See https://github.com/Suwayomi/Suwayomi-WebUI/issues/14 for more info
|
||||
currentPageRef.current = pages.length - 1;
|
||||
setCurPage(currentPageRef.current);
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ export function Settings() {
|
||||
secondary={
|
||||
<>
|
||||
<span>{t('settings.label.language_description')} </span>
|
||||
<Link href="https://hosted.weblate.org/projects/suwayomi/tachidesk-webui">
|
||||
<Link href="https://hosted.weblate.org/projects/suwayomi/suwayomi-webui">
|
||||
{t('global.language.title.weblate')}
|
||||
</Link>
|
||||
</>
|
||||
|
||||
@@ -243,7 +243,7 @@ export function SourceMangas() {
|
||||
const messageExtra = isLocalSource ? (
|
||||
<>
|
||||
<span>{t('source.local_source.label.checkout')} </span>
|
||||
<Link href="https://github.com/Suwayomi/Tachidesk-Server/wiki/Local-Source">
|
||||
<Link href="https://github.com/Suwayomi/Suwayomi-Server/wiki/Local-Source">
|
||||
{t('source.local_source.label.guide')}
|
||||
</Link>
|
||||
</>
|
||||
|
||||
@@ -360,10 +360,10 @@ export function About() {
|
||||
<ListItemLink to={aboutServer.github}>
|
||||
<ListItemText primary={t('settings.about.server.label.github')} secondary={aboutServer.github} />
|
||||
</ListItemLink>
|
||||
<ListItemLink to="https://github.com/Suwayomi/Tachidesk-WebUI">
|
||||
<ListItemLink to="https://github.com/Suwayomi/Suwayomi-WebUI">
|
||||
<ListItemText
|
||||
primary={t('settings.about.webui.label.github')}
|
||||
secondary="https://github.com/Suwayomi/Tachidesk-WebUI"
|
||||
secondary="https://github.com/Suwayomi/Suwayomi-WebUI"
|
||||
/>
|
||||
</ListItemLink>
|
||||
<ListItemLink to={aboutServer.discord}>
|
||||
|
||||
@@ -28,7 +28,7 @@ export const createTheme = (dark?: boolean) => {
|
||||
},
|
||||
} as Theme);
|
||||
|
||||
const tachideskTheme = createMuiTheme(
|
||||
const suwayomiTheme = createMuiTheme(
|
||||
{
|
||||
palette: {
|
||||
custom: {
|
||||
@@ -60,5 +60,5 @@ export const createTheme = (dark?: boolean) => {
|
||||
baseTheme,
|
||||
);
|
||||
|
||||
return tachideskTheme;
|
||||
return suwayomiTheme;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user