Skip to content

Commit

Permalink
Merge branch 'master' into web-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayden2018 committed Oct 29, 2023
2 parents 3f6eae0 + 427d298 commit a2a0808
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DialogCraft",
"version": "1.0.0",
"version": "1.0.2",
"author": "Hayden Chiu",
"description": "Chat client for GPT API",
"main": "electron-src/main.js",
Expand Down
2 changes: 1 addition & 1 deletion public/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>
<img class="app-icon" src="./logo.svg" alt="DialogCraft Icon">
DialogCraft
</h1>
<p>Version: 1.0.0</p>
<p>Version: 1.0.2</p>
<p>Craft your conversations with GPT</p>
<p class="license" onclick="openLicense()">
LICENSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { styled } from '@mui/system';

import { toggleTheme, updateChatSetting } from 'redux/settingSlice';
import { AppState, SettingConfig, SettingStatus } from 'redux/type.d';
import { useDataActions } from './GlobalSettingModalHook';
import { useDataActions } from './GlobalSettingHook';
import { onElectronEnv, useBackButton, useScreenWidth } from 'utils';
import { back } from 'redux/pageSlice';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const releaseUrl = 'https://github.com/Hayden2018/dialogcraft/releases';
const videoUrl = 'https://www.youtube.com/watch?v=aVog4J6nIAU';
const openTarget = onElectronEnv() ? '' : '_blank';

export default function GreetingPage() {
export default function Login() {

const dispatch = useDispatch();
const { status } = useSelector((state: AppState) => state.setting.global);
Expand Down
File renamed without changes
8 changes: 4 additions & 4 deletions src/pages/PageSwitch.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useSelector } from "react-redux";
import { AppState, PageType } from "redux/type.d";

import GlobalSetting from "pages/GlobalSetting/GlobalSettingModal";
import GreetingPage from "./Greeting/Greeting";
import Login from "./Login/Login";
import Chat from "./Chat/Chat";
import GlobalSetting from "pages/GlobalSetting/GlobalSetting";
import ResetAppWarning from "./ResetAppWarning/ResetAppWarning";
import ImportChats from "components/ChatImport/ChatImport";

Expand All @@ -13,7 +13,7 @@ function PageSwitch() {

switch (current) {
case PageType.LOGIN:
return <GreetingPage />;
return <Login />;
case PageType.CHAT:
return <Chat />;
case PageType.SETTING_GLOBAL:
Expand All @@ -23,7 +23,7 @@ function PageSwitch() {
case PageType.SETTING_IMPORT:
return <ImportChats />;
default:
return <GreetingPage />;
return <Login />;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/redux/type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export enum ModalType {
RESTORE_MESSAGE = 'RESTORE_MESSAGE',
REGENERATE_MESSAGE = 'REGEN_MESSAGE',
CHAT_SETTING = 'CHAT_SETTING',
GLOBAL_SETTING = 'GLOBAL_SETTING',
CHAT_ERROR = 'CHAT_ERROR',
CHAT_TIMEOUT = 'CHAT_TIMEOUT',
RENAME_CHAT = 'RENAME_CHAT',
Expand Down

0 comments on commit a2a0808

Please sign in to comment.