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:
schroda
2024-01-05 20:11:29 +01:00
committed by GitHub
parent 779dafe1dc
commit b42c3103f1
17 changed files with 32 additions and 32 deletions

View File

@@ -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 => {},

View File

@@ -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],

View File

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

View File

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