diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 760a6de1fd..369ae439f2 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -2,11 +2,11 @@ "build": { "beforeBuildCommand": "yarn build", "beforeDevCommand": "yarn run dev", - "devPath": "http://localhost:3000", + "devPath": "http://localhost:3000/ShanRenMaLTS-Typing", "distDir": "../build" }, "package": { - "productName": "qwerty-learner", + "productName": "ShanRenMaLTS-Typing", "version": "0.1.0" }, "tauri": { @@ -51,7 +51,7 @@ "fullscreen": false, "height": 600, "resizable": true, - "title": "qwerty-learner", + "title": "ShanRenMaLTS-Typing", "width": 800 } ] diff --git a/src/pages/Typing/components/ShareButton/SharePicDialog.tsx b/src/pages/Typing/components/ShareButton/SharePicDialog.tsx index 475da98a32..ecca3d4eed 100644 --- a/src/pages/Typing/components/ShareButton/SharePicDialog.tsx +++ b/src/pages/Typing/components/ShareButton/SharePicDialog.tsx @@ -81,7 +81,7 @@ export default function SharePicDialog({ showState, setShowState, randomChoose } const { saveAs } = await import('file-saver') if (imageURL) { - saveAs(imageURL, 'Qwerty-learner.png') + saveAs(imageURL, 'ShanRenMaLTS-Typing.png') recordShareAction('download') } }, [imageURL]) diff --git a/src/resources/soundResource.ts b/src/resources/soundResource.ts index c7a2244326..a8c376bdce 100644 --- a/src/resources/soundResource.ts +++ b/src/resources/soundResource.ts @@ -1,6 +1,6 @@ import type { LanguagePronunciationMap, SoundResource } from '@/typings' -export const SOUND_URL_PREFIX = REACT_APP_DEPLOY_ENV === 'pages' ? '/qwerty-learner/sounds/' : './sounds/' +export const SOUND_URL_PREFIX = REACT_APP_DEPLOY_ENV === 'pages' ? '/ShanRenMaLTS-Typing/sounds/' : './sounds/' export const KEY_SOUND_URL_PREFIX = SOUND_URL_PREFIX + 'key-sound/' // will add more sound resource and add config ui in the future diff --git a/src/utils/db/data-export.ts b/src/utils/db/data-export.ts index c7d932a709..3dcb1f8882 100644 --- a/src/utils/db/data-export.ts +++ b/src/utils/db/data-export.ts @@ -27,7 +27,7 @@ export async function exportDatabase(callback: (exportProgress: ExportProgress) const compressed = pako.gzip(json) const compressedBlob = new Blob([compressed]) const currentDate = getCurrentDate() - saveAs(compressedBlob, `Qwerty-Learner-User-Data-${currentDate}.gz`) + saveAs(compressedBlob, `ShanRenMaLTS-Typing-User-Data-${currentDate}.gz`) recordDataAction({ type: 'export', size: compressedBlob.size, wordCount, chapterCount }) } diff --git a/src/utils/wordListFetcher.ts b/src/utils/wordListFetcher.ts index 5581a6fa5b..401c1e4f53 100644 --- a/src/utils/wordListFetcher.ts +++ b/src/utils/wordListFetcher.ts @@ -1,7 +1,7 @@ import type { Word } from '@/typings' export async function wordListFetcher(url: string): Promise { - const URL_PREFIX: string = REACT_APP_DEPLOY_ENV === 'pages' ? '/qwerty-learner' : '' + const URL_PREFIX: string = REACT_APP_DEPLOY_ENV === 'pages' ? '/ShanRenMaLTS-Typing' : '' const response = await fetch(URL_PREFIX + url) const words: Word[] = await response.json()