chore: rename everything

This commit is contained in:
Tristan Yang
2022-06-27 10:37:03 +08:00
parent 69b4e7aac2
commit 585f8a3661
31 changed files with 79 additions and 79 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "RustChat",
"name": "VoceChat",
"short_name": "Your private chat APP",
"icons": [
{
+1 -1
View File
@@ -31,7 +31,7 @@ import useUploadFile from "../../hook/useUploadFile";
import Styled from "./styled";
import { CONFIG } from "./config";
import Contact from "../Contact";
export const TEXT_EDITOR_PREFIX = "rustchat_text_editor";
export const TEXT_EDITOR_PREFIX = "_text_editor";
let components = createPlateUI({
// [ELEMENT_IMAGE]: ImageElement,
+1 -1
View File
@@ -65,7 +65,7 @@ export default function useMessageFeed({ context = "channel", id = null }) {
}, [context, id]);
useEffect(() => {
if (items.length) {
containerRef.current = document.querySelector(`#RUSTCHAT_FEED_${context}_${id}`);
containerRef.current = document.querySelector(`#VOCECHAT_FEED_${context}_${id}`);
if (containerRef.current) {
const newScroll = containerRef.current.scrollHeight - containerRef.current.clientHeight;
containerRef.current.scrollTop = curScrollPos + (newScroll - oldScroll);
+1 -1
View File
@@ -39,7 +39,7 @@ export default function useUploadFile(props = {}) {
if (!file) return;
setData(null);
const {
name = `rustchat-${+new Date()}.${file.type.split("/")[1]}`,
name = `-${+new Date()}.${file.type.split("/")[1]}`,
type: file_type,
size: file_size
} = file;