chores: updates

This commit is contained in:
Tristan Yang
2023-07-27 19:15:20 +08:00
parent 32b4793aed
commit 44e4ff3ec5
16 changed files with 9 additions and 27 deletions
-2
View File
@@ -13,11 +13,9 @@ let prices: Price[] = [
];
const official_dev = `https://dev.voce.chat`;
const local_dev = `https://dev.voce.chat`;
// const local_dev = `https://vocechat.yangerxiao.com`;
// const local_dev = `http://localhost:3000`;
const dev_origin = process.env.REACT_APP_OFFICIAL_DEMO ? official_dev : local_dev;
// const local_dev = `http://07333.qicp.vip:3030`;
// const local_dev = `https://im.ttt.td`;
export const BASE_ORIGIN = process.env.REACT_APP_RELEASE ? `${location.origin}` : dev_origin;
export const IS_OFFICIAL_DEMO = BASE_ORIGIN === official_dev;
-4
View File
@@ -1,13 +1,9 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
// import BASE_URL from "../config";
export interface Favorite {
id: string;
created_at?: number;
messages?: any[];
}
const initialState: Favorite[] = [];
const favoritesSlice = createSlice({
-4
View File
@@ -1,8 +1,4 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
// import { ContentTypes } from "../config";
// import { normalizeFileMessage } from "../../common/utils";
// import { ContentType } from "@/types/message";
import { Archive } from "@/types/resource";
export interface State {
-2
View File
@@ -1,7 +1,5 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { ContentType } from "@/types/message";
// import { ContentTypes } from "../config";
import { normalizeFileMessage } from "@/utils";
export interface MessagePayload {
-1
View File
@@ -1,5 +1,4 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { Server } from "@/types/server";
export interface StoredServer extends Server {
-1
View File
@@ -162,7 +162,6 @@ const uiSlice = createSlice({
currData = null;
break;
}
default:
break;
}
-1
View File
@@ -1,6 +1,5 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { ConnectionState } from "agora-rtc-sdk-ng";
import { ChatContext } from "@/types/common";
import { KEY_UID } from "../config";
import { resetAuthData } from "./auth.data";