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

@@ -23,7 +23,7 @@ Note that the issue will be automatically closed if you do not fill out the titl
--- ---
## Device information ## Device information
- Tachidesk version: (Example: v0.2.3-r255-win32) - Suwayomi version: (Example: v0.2.3-r255-win32)
- Server Operating System: (Example: Ubuntu 20.04) - Server Operating System: (Example: Ubuntu 20.04)
- Server Desktop Environment: N/A or (Example: Gnome 40) - Server Desktop Environment: N/A or (Example: Gnome 40)
- Server JVM version: bundled with win32 or (Example: Java 8 Update 281 or OpenJDK 8u281) - Server JVM version: bundled with win32 or (Example: Java 8 Update 281 or OpenJDK 8u281)

View File

@@ -22,7 +22,7 @@ Note that the issue will be automatically closed if you do not fill out the titl
--- ---
## What feature should be added to Tachidesk? ## What feature should be added to Suwayomi?
Explain What the feature is and how it should work in detail. Remove this line after you are done. Explain What the feature is and how it should work in detail. Remove this line after you are done.
## Why/Project's Benefit/Existing Problem ## Why/Project's Benefit/Existing Problem

View File

@@ -51,7 +51,7 @@ jobs:
- name: Checkout preview branch - name: Checkout preview branch
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
repository: "Suwayomi/Tachidesk-WebUI-preview" repository: "Suwayomi/Suwayomi-WebUI-preview"
ref: main ref: main
path: preview path: preview
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
@@ -77,13 +77,13 @@ jobs:
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
artifacts: "master/buildZip/*" artifacts: "master/buildZip/*"
owner: "Suwayomi" owner: "Suwayomi"
repo: "Tachidesk-WebUI-preview" repo: "Suwayomi-WebUI-preview"
tag: ${{ steps.GenTagName.outputs.value }} tag: ${{ steps.GenTagName.outputs.value }}
- name: Checkout github pages repo - name: Checkout github pages repo
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
repository: "Tachidesk-WebUI-preview/tachidesk-webui-preview.github.io" repository: "Suwayomi-WebUI-preview/suwayomi-webui-preview.github.io"
ref: main ref: main
path: gh-pages path: gh-pages
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}

View File

@@ -1,6 +1,6 @@
# Contributing # Contributing
## Where should I start? ## Where should I start?
Everything from https://github.com/Suwayomi/Tachidesk-Server/blob/master/CONTRIBUTING.md#where-should-i-start applies here. Everything from https://github.com/Suwayomi/Suwayomi-Server/blob/master/CONTRIBUTING.md#where-should-i-start applies here.
## About this project ## About this project
@@ -16,7 +16,7 @@ See [BUILDING.md](./BUILDING.md) for more information
2. Update the [version to server version mapping file](versionToServerVersionMapping.json) 2. Update the [version to server version mapping file](versionToServerVersionMapping.json)
1. See [wWen to update](#when-to-update) 1. See [wWen to update](#when-to-update)
## WebUI to [Server](https://github.com/Suwayomi/Tachidesk-Server) mapping ## WebUI to [Server](https://github.com/Suwayomi/Suwayomi-Server) mapping
### Explanation ### Explanation
For the server to be able to automatically download the latest compatible WebUI version, the [version to server version mapping file](versionToServerVersionMapping.json) has to be provided.<br/> For the server to be able to automatically download the latest compatible WebUI version, the [version to server version mapping file](versionToServerVersionMapping.json) has to be provided.<br/>

View File

@@ -1,23 +1,23 @@
## Hold up! ## Hold up!
If you got here hoping to download Tachidesk-WebUI, go back and download [Tachidesk-Server](https://github.com/Suwayomi/Tachidesk-Server), Tachidesk-WebUI is distributed as an embedded web interface along with Tachidesk-Server. If you got here hoping to download Suwayomi-WebUI, go back and download [Suwayomi-Server](https://github.com/Suwayomi/Suwayomi-Server), Suwayomi-WebUI is distributed as an embedded web interface along with Suwayomi-Server.
# Tachidesk-WebUI # Suwayomi-WebUI
WebUI doesn't have it's own Tachidesk distribution and is version locked by Tachidesk-Server, In other words the Tachidesk-WebUI distribution is actually the Tachidesk-Server distribution. WebUI doesn't have it's own Suwayomi distribution and is version locked by Suwayomi-Server, In other words the Suwayomi-WebUI distribution is actually the Suwayomi-Server distribution.
Online builds of WebUI of are always available [here](https://tachidesk-webui-preview.github.io/). Online builds of WebUI of are always available [here](https://suwayomi-webui-preview.github.io/).
*Make sure to set your Tachidesk-Server hostname in Settings or you'll get infinite loading.* Also note that its the **latest** revision of WebUI and might not work correctly if you connect to a stable build of Tachidesk-Server. *Make sure to set your Suwayomi-Server hostname in Settings or you'll get infinite loading.* Also note that its the **latest** revision of WebUI and might not work correctly if you connect to a stable build of Suwayomi-Server.
You can find minified builds of WebUI in [Tachidesk-WebUI-preview](https://github.com/Suwayomi/Tachidesk-WebUI-preview) You can find minified builds of WebUI in [Suwayomi-WebUI-preview](https://github.com/Suwayomi/Suwayomi-WebUI-preview)
## Contributing and Technical info ## Contributing and Technical info
See [CONTRIBUTING.md](./CONTRIBUTING.md). See [CONTRIBUTING.md](./CONTRIBUTING.md).
## Translation ## Translation
Feel free to translate the project on [Weblate](https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/) Feel free to translate the project on [Weblate](https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/)
<details><summary>Translation Progress</summary> <details><summary>Translation Progress</summary>
<a href="https://hosted.weblate.org/engage/tachidesk-webui/"> <a href="https://hosted.weblate.org/engage/suwayomi-webui/">
<img src="https://hosted.weblate.org/widgets/suwayomi/-/tachidesk-webui/multi-auto.svg" alt="Translation status" /> <img src="https://hosted.weblate.org/widgets/suwayomi/-/suwayomi-webui/multi-auto.svg" alt="Translation status" />
</a> </a>
</details> </details>

View File

@@ -15,7 +15,7 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
--> -->
<link rel="manifest" href="/manifest.json"/> <link rel="manifest" href="/manifest.json"/>
<title>Tachidesk</title> <title>Suwayomi</title>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>

View File

@@ -8,7 +8,7 @@
"build": "vite build", "build": "vite build",
"test": "node -e \"console.log('imagine')\"", "test": "node -e \"console.log('imagine')\"",
"build-md5": "find build -type f | sort | xargs md5sum | awk '{ print $1 }' | tr -d '\n' | md5sum| awk '{ print $1 }' > buildZip/md5sum ", "build-md5": "find build -type f | sort | xargs md5sum | awk '{ print $1 }' | tr -d '\n' | md5sum| awk '{ print $1 }' > buildZip/md5sum ",
"build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Tachidesk-WebUI-r$rev *", "build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Suwayomi-WebUI-r$rev *",
"lint": "eslint src --ext .ts,.tsx,.js,.jsx", "lint": "eslint src --ext .ts,.tsx,.js,.jsx",
"createChangelog": "ts-node tools/scripts/createReleaseChangelog.ts", "createChangelog": "ts-node tools/scripts/createReleaseChangelog.ts",
"updateDeps": "yarn upgrade && yarn syncyarnlock -s -k && yarn && git add package.json yarn.lock && git commit -m \"Update dependencies\" && echo Updated non breaking dependencies. Check potential breaking changes below... && yarn outdated", "updateDeps": "yarn upgrade && yarn syncyarnlock -s -k && yarn && git add package.json yarn.lock && git commit -m \"Update dependencies\" && echo Updated non breaking dependencies. Check potential breaking changes below... && yarn outdated",

View File

@@ -1,6 +1,6 @@
{ {
"short_name": "Tachidesk", "short_name": "Suwayomi",
"name": "Tachidesk", "name": "Suwayomi",
"icons": [ "icons": [
{ {
"src": "favicon.ico", "src": "favicon.ico",

View File

@@ -30,7 +30,7 @@ type ContextType = {
export const NavBarContext = React.createContext<ContextType>({ export const NavBarContext = React.createContext<ContextType>({
defaultBackTo: undefined, defaultBackTo: undefined,
setDefaultBackTo: (): void => {}, setDefaultBackTo: (): void => {},
title: 'Tachidesk', title: 'Suwayomi',
setTitle: (): void => {}, setTitle: (): void => {},
action: <div />, action: <div />,
setAction: (): void => {}, setAction: (): void => {},

View File

@@ -16,7 +16,7 @@ interface IProps {
export function NavBarContextProvider({ children }: IProps) { export function NavBarContextProvider({ children }: IProps) {
const [defaultBackTo, setDefaultBackTo] = useState<string | undefined>(); 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 [action, setAction] = useState<any>(<div />);
const [override, setOverride] = useState<INavbarOverride>({ const [override, setOverride] = useState<INavbarOverride>({
status: false, status: false,
@@ -25,7 +25,7 @@ export function NavBarContextProvider({ children }: IProps) {
const updateTitle = useCallback( const updateTitle = useCallback(
(newTitle: string | React.ReactNode, browserTitle: string = typeof newTitle === 'string' ? newTitle : '') => { (newTitle: string | React.ReactNode, browserTitle: string = typeof newTitle === 'string' ? newTitle : '') => {
document.title = `${browserTitle} - Tachidesk`; document.title = `${browserTitle} - Suwayomi`;
setTitle(newTitle); setTitle(newTitle);
}, },
[setTitle], [setTitle],

View File

@@ -151,7 +151,7 @@ export function HorizontalPager(props: IReaderProps) {
// Special case if scroll is moved all the way to the edge // Special case if scroll is moved all the way to the edge
// This handles cases when last page is show, but is smaller then // This handles cases when last page is show, but is smaller then
// window, in which case it would never get marked as read. // 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()) { if (settings.readerType === 'ContinuesHorizontalLTR' ? isAtEnd() : isAtStart()) {
currentPageRef.current = pages.length - 1; currentPageRef.current = pages.length - 1;
setCurPage(currentPageRef.current); setCurPage(currentPageRef.current);

View File

@@ -57,7 +57,7 @@ export function VerticalPager(props: IReaderProps) {
// If scroll is moved all the way to the bottom // If scroll is moved all the way to the bottom
// This handles cases when last page is show, but is smaller then // This handles cases when last page is show, but is smaller then
// window, in which case it would never get marked as read. // 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; currentPageRef.current = pages.length - 1;
setCurPage(currentPageRef.current); setCurPage(currentPageRef.current);

View File

@@ -135,7 +135,7 @@ export function Settings() {
secondary={ secondary={
<> <>
<span>{t('settings.label.language_description')} </span> <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')} {t('global.language.title.weblate')}
</Link> </Link>
</> </>

View File

@@ -243,7 +243,7 @@ export function SourceMangas() {
const messageExtra = isLocalSource ? ( const messageExtra = isLocalSource ? (
<> <>
<span>{t('source.local_source.label.checkout')} </span> <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')} {t('source.local_source.label.guide')}
</Link> </Link>
</> </>

View File

@@ -360,10 +360,10 @@ export function About() {
<ListItemLink to={aboutServer.github}> <ListItemLink to={aboutServer.github}>
<ListItemText primary={t('settings.about.server.label.github')} secondary={aboutServer.github} /> <ListItemText primary={t('settings.about.server.label.github')} secondary={aboutServer.github} />
</ListItemLink> </ListItemLink>
<ListItemLink to="https://github.com/Suwayomi/Tachidesk-WebUI"> <ListItemLink to="https://github.com/Suwayomi/Suwayomi-WebUI">
<ListItemText <ListItemText
primary={t('settings.about.webui.label.github')} primary={t('settings.about.webui.label.github')}
secondary="https://github.com/Suwayomi/Tachidesk-WebUI" secondary="https://github.com/Suwayomi/Suwayomi-WebUI"
/> />
</ListItemLink> </ListItemLink>
<ListItemLink to={aboutServer.discord}> <ListItemLink to={aboutServer.discord}>

View File

@@ -28,7 +28,7 @@ export const createTheme = (dark?: boolean) => {
}, },
} as Theme); } as Theme);
const tachideskTheme = createMuiTheme( const suwayomiTheme = createMuiTheme(
{ {
palette: { palette: {
custom: { custom: {
@@ -60,5 +60,5 @@ export const createTheme = (dark?: boolean) => {
baseTheme, baseTheme,
); );
return tachideskTheme; return suwayomiTheme;
}; };

View File

@@ -107,7 +107,7 @@ const createChangelogCommitLine = (commit: Commit): string => {
const createChangelog = async (prevReleaseLastCommitSha: string) => { const createChangelog = async (prevReleaseLastCommitSha: string) => {
const owner = 'Suwayomi'; const owner = 'Suwayomi';
const repo = 'Tachidesk-WebUI'; const repo = 'Suwayomi-WebUI';
const numberOfCommits = await fetchTotalCommitCount(owner, repo); const numberOfCommits = await fetchTotalCommitCount(owner, repo);
const githubCommits = await fetchCommits(owner, repo, prevReleaseLastCommitSha); const githubCommits = await fetchCommits(owner, repo, prevReleaseLastCommitSha);