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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user