chore: updates
This commit is contained in:
+21
-21
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "vocechat-web",
|
||||
"version": "0.7.6",
|
||||
"version": "0.7.7",
|
||||
"homepage": "https://voce.chat",
|
||||
"dependencies": {
|
||||
"@metamask/onboarding": "^1.0.1",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
||||
"@radix-ui/react-popover": "^1.0.7",
|
||||
"@react-oauth/google": "^0.12.1",
|
||||
"@reduxjs/toolkit": "^2.2.2",
|
||||
"@reduxjs/toolkit": "^2.2.3",
|
||||
"@svgr/webpack": "^8.1.0",
|
||||
"@tippyjs/react": "^4.2.6",
|
||||
"@toast-ui/editor": "^3.2.2",
|
||||
@@ -15,11 +15,11 @@
|
||||
"@toast-ui/react-editor": "^3.2.3",
|
||||
"@udecode/plate-break": "^31.0.0",
|
||||
"@udecode/plate-combobox": "^31.0.0",
|
||||
"@udecode/plate-common": "^31.0.0",
|
||||
"@udecode/plate-common": "^31.3.2",
|
||||
"@udecode/plate-emoji": "^31.0.0",
|
||||
"@udecode/plate-floating": "^31.0.0",
|
||||
"@udecode/plate-font": "^31.0.0",
|
||||
"@udecode/plate-mention": "^31.0.0",
|
||||
"@udecode/plate-mention": "^31.3.5",
|
||||
"@udecode/plate-node-id": "^31.0.0",
|
||||
"@udecode/plate-paragraph": "^31.0.0",
|
||||
"@udecode/plate-trailing-block": "^31.0.0",
|
||||
@@ -29,17 +29,17 @@
|
||||
"browserslist": "^4.23.0",
|
||||
"clsx": "^2.1.0",
|
||||
"copy-image-clipboard": "^2.1.2",
|
||||
"css-loader": "^6.10.0",
|
||||
"css-loader": "^7.1.1",
|
||||
"css-minimizer-webpack-plugin": "^6.0.0",
|
||||
"dayjs": "^1.11.10",
|
||||
"eslint": "^8.57.0",
|
||||
"firebase": "^10.9.0",
|
||||
"framer-motion": "11.0.8",
|
||||
"firebase": "^10.11.0",
|
||||
"framer-motion": "11.0.28",
|
||||
"fs-extra": "^11.2.0",
|
||||
"heic2any": "^0.0.4",
|
||||
"html-webpack-plugin": "^5.6.0",
|
||||
"i18next": "^23.10.1",
|
||||
"i18next-browser-languagedetector": "^7.2.0",
|
||||
"i18next": "^23.11.2",
|
||||
"i18next-browser-languagedetector": "^7.2.1",
|
||||
"i18next-http-backend": "^2.5.0",
|
||||
"linkify-plugin-mention": "^4.1.3",
|
||||
"linkify-react": "^4.1.3",
|
||||
@@ -60,26 +60,26 @@
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-hot-toast": "^2.4.1",
|
||||
"react-i18next": "^14.1.0",
|
||||
"react-redux": "^9.1.0",
|
||||
"react-redux": "^9.1.1",
|
||||
"react-refresh": "0.14.0",
|
||||
"react-router-dom": "^6.22.3",
|
||||
"react-syntax-highlighter": "^15.5.0",
|
||||
"react-textarea-autosize": "^8.5.3",
|
||||
"react-use-wizard": "^2.3.0",
|
||||
"react-viewport-list": "^7.1.2",
|
||||
"react-virtuoso": "^4.7.5",
|
||||
"react-virtuoso": "^4.7.8",
|
||||
"rooks": "^7.14.1",
|
||||
"slate": "^0.102.0",
|
||||
"slate-history": "^0.100.0",
|
||||
"slate-hyperscript": "^0.100.0",
|
||||
"slate-react": "0.102.0",
|
||||
"source-map-loader": "^5.0.0",
|
||||
"style-loader": "^3.3.4",
|
||||
"style-loader": "^4.0.0",
|
||||
"tailwind-merge": "2.2.2",
|
||||
"terser-webpack-plugin": "^5.3.10",
|
||||
"tippy.js": "^6.3.7",
|
||||
"typescript": "^5.4.3",
|
||||
"wavesurfer.js": "^7.7.5",
|
||||
"typescript": "^5.4.5",
|
||||
"wavesurfer.js": "^7.7.11",
|
||||
"webpack": "^5.91.0",
|
||||
"webpack-dev-server": "^4.15.1",
|
||||
"webpack-manifest-plugin": "^5.0.0",
|
||||
@@ -115,16 +115,16 @@
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.24.3",
|
||||
"@babel/core": "^7.24.4",
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
||||
"@types/masonry-layout": "^4.2.7",
|
||||
"@types/node": "^20.11.30",
|
||||
"@types/react": "18.2.73",
|
||||
"@types/react-dom": "^18.2.22",
|
||||
"@types/node": "^20.12.7",
|
||||
"@types/react": "18.2.79",
|
||||
"@types/react-dom": "^18.2.25",
|
||||
"@types/react-helmet": "^6.1.11",
|
||||
"@types/react-syntax-highlighter": "^15.5.11",
|
||||
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
||||
"@typescript-eslint/parser": "^7.4.0",
|
||||
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
||||
"@typescript-eslint/parser": "^7.7.0",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"babel-loader": "^9.1.3",
|
||||
"babel-plugin-named-asset-import": "^0.3.8",
|
||||
@@ -142,6 +142,6 @@
|
||||
"postinstall-postinstall": "^2.1.0",
|
||||
"prettier": "^3.2.5",
|
||||
"tailwindcss": "^3.4.3",
|
||||
"webpack-bundle-analyzer": "^4.10.1"
|
||||
"webpack-bundle-analyzer": "^4.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+1047
-1035
File diff suppressed because it is too large
Load Diff
Vendored
+1
-1
@@ -53,7 +53,7 @@ const tables = [
|
||||
];
|
||||
const initCache = () => {
|
||||
const uid = localStorage.getItem(KEY_UID) || "";
|
||||
// 没有uid,就没有本地缓存
|
||||
// 没有 uid,就没有本地缓存
|
||||
if (!uid) return;
|
||||
const name = `local_db_${uid}_v_${CACHE_VERSION.split(".").join("_")}`;
|
||||
window.CACHE = {};
|
||||
|
||||
@@ -88,12 +88,12 @@ export default function useStreaming() {
|
||||
console.info("debug SSE: start new timeout", aliveInter);
|
||||
};
|
||||
const startStreaming = useCallback(async () => {
|
||||
console.info("debug SSE: clear timeout at startStreaming", aliveInter);
|
||||
clearTimeout(aliveInter);
|
||||
if (SSE && (SSE.readyState === EventSource.OPEN || SSE.readyState === EventSource.CONNECTING)) {
|
||||
console.info("debug SSE: SSE not disconnect");
|
||||
return;
|
||||
}
|
||||
// stop first
|
||||
stopStreaming();
|
||||
// if (SSE && (SSE.readyState === EventSource.OPEN || SSE.readyState === EventSource.CONNECTING)) {
|
||||
// console.info("debug SSE: SSE not disconnect");
|
||||
// return;
|
||||
// }
|
||||
const { token, refreshToken, expireTime } = getLocalAuthData();
|
||||
// token 非空
|
||||
if (!token) {
|
||||
@@ -107,10 +107,10 @@ export default function useStreaming() {
|
||||
if ("error" in resp) {
|
||||
console.error("renew error from sse", resp.error);
|
||||
// 还有网,而且在当前页,则停止循环
|
||||
const tabHidden = isTabHidden();
|
||||
if (navigator.onLine || !tabHidden) {
|
||||
stopStreaming();
|
||||
}
|
||||
// const tabHidden = isTabHidden();
|
||||
// if (navigator.onLine || !tabHidden) {
|
||||
// stopStreaming();
|
||||
// }
|
||||
// 返回,开始下次 polling(如果有)
|
||||
return;
|
||||
} else {
|
||||
|
||||
@@ -19,7 +19,7 @@ type Props = {
|
||||
|
||||
const Index = ({ handleClose, hostId }: Props) => {
|
||||
const { embed, inviteOnly } = useWidget();
|
||||
// 建立SSE连接
|
||||
// 建立 SSE 连接
|
||||
useSSE();
|
||||
const loginUser = useAppSelector((store) => store.authData.user, shallowEqual);
|
||||
const token = useAppSelector((store) => store.authData.token, shallowEqual);
|
||||
|
||||
@@ -15,7 +15,7 @@ function Widget({ hostId }: Props) {
|
||||
const [visible, setVisible] = useState(!!new URLSearchParams(location.search).get("open"));
|
||||
|
||||
const toggleVisible = () => {
|
||||
// 有无iframe内嵌
|
||||
// 有无 iframe 内嵌
|
||||
const parentWindow = window.parent;
|
||||
if (parentWindow) {
|
||||
parentWindow.postMessage(visible ? "CLOSE" : "OPEN", "*");
|
||||
|
||||
Reference in New Issue
Block a user