diff --git a/package.json b/package.json index 0a9c16cb..e7c20ffd 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,8 @@ "start": "REACT_APP_BUILD_TIME=$(date +%s) node scripts/start.js", "build": "rm -rf build && REACT_APP_BUILD_TIME=$(date +%s) GENERATE_SOURCEMAP=false node scripts/build.js", "build:release": "rm -rf build && REACT_APP_BUILD_TIME=$(date +%s) REACT_APP_RELEASE=true GENERATE_SOURCEMAP=false node scripts/build.js", - "deploy:demo": "REACT_APP_OFFICIAL_DEMO=true pnpm build && gh-pages -d build" + "deploy:demo": "REACT_APP_OFFICIAL_DEMO=true pnpm build && gh-pages -d build", + "push:demo": "gh-pages -d build" }, "browserslist": { "production": [ diff --git a/public/locales/en/chat.json b/public/locales/en/chat.json index 0409178c..b2b97e48 100644 --- a/public/locales/en/chat.json +++ b/public/locales/en/chat.json @@ -66,7 +66,7 @@ "file_expired": "File Expired", "only_owner_can_send": "only Channel owner can send message!", - "remark": "add friend nickname", + "remark": "Add friend nickname", "remark_clear": "reset friend nickname", "remark_intro": "Find a friend faster with a personal nickname. It will only be visible to you in your direct messages.", "remark_placeholder": "Set Nickname" diff --git a/src/app/slices/ui.ts b/src/app/slices/ui.ts index 63356506..b1fa63af 100644 --- a/src/app/slices/ui.ts +++ b/src/app/slices/ui.ts @@ -41,8 +41,8 @@ const initialState: UIState = { // todo: typo rememberedNavs: { chat: null, - user: null - } + user: null, + }, }; const uiSlice = createSlice({ @@ -54,12 +54,12 @@ const uiSlice = createSlice({ SSEStatus, ready, online, - msgSound = false, + msgSound = true, fileListView = "item", ...rest } = action.payload; window.MSG_SOUND = msgSound; - return { ...state, msgSound,fileListView, ...rest }; + return { ...state, msgSound, fileListView, ...rest }; }, setReady(state, action: PayloadAction) { state.ready = action.payload; @@ -188,8 +188,8 @@ const uiSlice = createSlice({ break; } state.selectMessages[`${context}_${id}`] = currData; - } - } + }, + }, }); export const { @@ -205,7 +205,7 @@ export const { updateDraftMarkdown, updateDraftMixedText, updateRememberedNavs, - updateMsgSoundSetting + updateMsgSoundSetting, } = uiSlice.actions; export default uiSlice.reducer;