Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosoul committed Jun 24, 2024
1 parent 54e2bad commit f6e7599
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 39 deletions.
8 changes: 4 additions & 4 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"files": {
"main.css": "/static/css/main.11cbe8ba.css",
"main.js": "/static/js/main.4fd34451.js",
"main.js": "/static/js/main.7f177b60.js",
"widget.css": "/static/css/widget.8ea5015b.css",
"widget.js": "/static/js/widget.92093a3e.js",
"widget.js": "/static/js/widget.d7d44f99.js",
"static/js/143.ae4a4c3c.chunk.js": "/static/js/143.ae4a4c3c.chunk.js",
"static/js/97.23b15631.chunk.js": "/static/js/97.23b15631.chunk.js",
"static/js/455.145c7e6d.chunk.js": "/static/js/455.145c7e6d.chunk.js",
Expand All @@ -17,7 +17,7 @@
"static/js/912.8d624b10.chunk.js": "/static/js/912.8d624b10.chunk.js",
"static/js/652.93d9d477.chunk.js": "/static/js/652.93d9d477.chunk.js",
"static/css/157.cdf1fe26.chunk.css": "/static/css/157.cdf1fe26.chunk.css",
"static/js/157.40c1618b.chunk.js": "/static/js/157.40c1618b.chunk.js",
"static/js/157.d10e557c.chunk.js": "/static/js/157.d10e557c.chunk.js",
"static/js/59.948a6235.chunk.js": "/static/js/59.948a6235.chunk.js",
"static/js/695.5442daca.chunk.js": "/static/js/695.5442daca.chunk.js",
"static/js/940.b85fa24c.chunk.js": "/static/js/940.b85fa24c.chunk.js",
Expand Down Expand Up @@ -59,6 +59,6 @@
},
"entrypoints": [
"static/css/main.11cbe8ba.css",
"static/js/main.4fd34451.js"
"static/js/main.7f177b60.js"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"/><meta name="theme-color" content="#527ff1"/><meta name="description" content="Your private chat APP"/><link rel="apple-touch-icon" href="/apple-touch-icon.png"/><link href="/splash/iphone5_splash.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/iphone6_splash.png" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/iphoneplus_splash.png" media="(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image"/><link href="/splash/iphonex_splash.png" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image"/><link href="/splash/iphonexr_splash.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/iphonexsmax_splash.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image"/><link href="/splash/ipad_splash.png" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/ipadpro1_splash.png" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/ipadpro3_splash.png" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/ipadpro2_splash.png" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link rel="manifest" href="/manifest.json"/><title>VoceChat WebAPP</title><style>html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif!important}</style><script defer="defer" src="/static/js/main.4fd34451.js"></script><link href="/static/css/main.11cbe8ba.css" rel="stylesheet"></head><style>#modal-modal,#root-modal{pointer-events:none;position:fixed;z-index:999;left:0;top:0;width:100%;height:100%}#modal-modal>.wrapper,#root-modal>.wrapper{display:flex;justify-content:center;align-items:center}#modal-modal.mask>.wrapper,#root-modal.mask>.wrapper{background-color:rgba(2,2,2,.4);pointer-events:all;width:100vw;height:100vh}</style><style>body{overflow:hidden;width:100%;height:100%}@supports (-webkit-touch-callout:none){body{height:-webkit-fill-available}.h-screen{height:-webkit-fill-available!important;overflow:auto}}body.iframe{position:fixed;top:0}body.iframe .guest-container{padding:0}body.iframe .guest-container .left-container,body.iframe .guest-container .right-container{border-radius:0}body.electron .guest-container{padding:0}body.electron .guest-container .left-container,body.electron .guest-container .right-container{border-radius:0}</style><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div id="root-modal"></div><div id="modal-modal"></div></body><script>navigator.userAgent.indexOf("Electron/")>-1&&document.body.classList.add("electron"),window.location!==window.parent.location&&document.body.classList.add("iframe")</script></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"/><meta name="theme-color" content="#527ff1"/><meta name="description" content="Your private chat APP"/><link rel="apple-touch-icon" href="/apple-touch-icon.png"/><link href="/splash/iphone5_splash.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/iphone6_splash.png" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/iphoneplus_splash.png" media="(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image"/><link href="/splash/iphonex_splash.png" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image"/><link href="/splash/iphonexr_splash.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/iphonexsmax_splash.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image"/><link href="/splash/ipad_splash.png" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/ipadpro1_splash.png" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/ipadpro3_splash.png" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link href="/splash/ipadpro2_splash.png" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image"/><link rel="manifest" href="/manifest.json"/><title>VoceChat WebAPP</title><style>html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif!important}</style><script defer="defer" src="/static/js/main.7f177b60.js"></script><link href="/static/css/main.11cbe8ba.css" rel="stylesheet"></head><style>#modal-modal,#root-modal{pointer-events:none;position:fixed;z-index:999;left:0;top:0;width:100%;height:100%}#modal-modal>.wrapper,#root-modal>.wrapper{display:flex;justify-content:center;align-items:center}#modal-modal.mask>.wrapper,#root-modal.mask>.wrapper{background-color:rgba(2,2,2,.4);pointer-events:all;width:100vw;height:100vh}</style><style>body{overflow:hidden;width:100%;height:100%}@supports (-webkit-touch-callout:none){body{height:-webkit-fill-available}.h-screen{height:-webkit-fill-available!important;overflow:auto}}body.iframe{position:fixed;top:0}body.iframe .guest-container{padding:0}body.iframe .guest-container .left-container,body.iframe .guest-container .right-container{border-radius:0}body.electron .guest-container{padding:0}body.electron .guest-container .left-container,body.electron .guest-container .right-container{border-radius:0}</style><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div id="root-modal"></div><div id="modal-modal"></div></body><script>navigator.userAgent.indexOf("Electron/")>-1&&document.body.classList.add("electron"),window.location!==window.parent.location&&document.body.classList.add("iframe")</script></html>
1 change: 1 addition & 0 deletions locales/en/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@
"default_value": "Default Value",
"remark": "Remarks",
"custom_style_tip": "if you want customize the widget position more precisely, use the widget element ID in your HTML or CSS file, like this",
"param_id": "Widget ID (server version>=v0.3.12)",
"param_host": "Assign the user chatting with visitor(User ID)",
"param_auto_reg": "true: Auto register a new user if not exist, false: need visitor to input email and name to register",
"param_login_token": "If you are using your own platform's existing user info to generate VoceChat new account, this is the login token generated by your platform, for more details, please refer to: https://doc.voce.chat/zh-cn/login-with-other-account. Don't fill this out for default scenarios (no 3-rd party user system)!",
Expand Down
51 changes: 26 additions & 25 deletions locales/jp/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"widget": "ウィジェット",
"license": "ライセンス",
"about": "このアプリについて",
"api_doc": "APIドキュメント",
"api_doc": "API ドキュメント",
"version": "Version"
},
"channel": {
Expand All @@ -37,7 +37,7 @@
"overview": {
"name": "サーバー名",
"desc": "サーバーの説明",
"upload_desc": "画像サイズとして、128x128は必須、512x512はおすすめ。大きさは5Mを超えないでください",
"upload_desc": "画像サイズとして、128x128 は必須、512x512 はおすすめ。大きさは 5M を超えないでください",

"sign_up": {
"title": "登録方法",
Expand Down Expand Up @@ -76,8 +76,8 @@
},
"firebase": {
"enable": "有効にする",
"token_url": "トークンURL",
"project_id": "プロジェクトID",
"token_url": "トークン URL",
"project_id": "プロジェクト ID",
"private_key": "秘密鍵",
"client_email": "クライアントメール"
},
Expand All @@ -88,40 +88,41 @@
"from": "from",
"username": "ユーザー名",
"password": "パスワード",
"how_to": "SMTPの設定方法",
"how_to": "SMTP の設定方法",
"send_test_email": "テストメールを送信する"
},
"third_app": {
"key": "API key",
"update": "API keyを更新する",
"update_tip": "API keyを更新すると、以前発行するkeyは無効になります",
"key_tip": "API keyはサーバとサードパーティーとの安全な通信に使用されますので、大切に保管してください。"
"update": "API key を更新する",
"update_tip": "API key を更新すると、以前発行する key は無効になります",
"key_tip": "API key はサーバとサードパーティーとの安全な通信に使用されますので、大切に保管してください。"
},
"login": {
"password": "パスワードでログイン可能",
"password_desc": "パスワードでログイン可能にする",
"magic_link": "招待リンクでログイン可能",
"magic_link_desc": "招待リンクでログイン可能にする",
"google": "Googleでログイン可能",
"google_desc": "Googleでログイン可能にする",
"github": "GitHubでログイン可能",
"github_desc": "GitHubでログイン可能にする",
"metamask": "MetaMaskでログイン可能",
"metamask_desc": "MetaMaskでログイン可能にする",
"oidc": "OIDCでログイン可能",
"oidc_desc": "OIDCでログイン可能にする",
"google": "Google でログイン可能",
"google_desc": "Google でログイン可能にする",
"github": "GitHub でログイン可能",
"github_desc": "GitHub でログイン可能にする",
"metamask": "MetaMask でログイン可能",
"metamask_desc": "MetaMask でログイン可能にする",
"oidc": "OIDC でログイン可能",
"oidc_desc": "OIDC でログイン可能にする",
"oidc_custom": "カスタマイズ",
"more_details": "<0>ドキュメント</0> を参照してください."
"more_details": "<0>ドキュメント</0> を参照してください"
},
"widget": {
"tip": "ストラップSDKをwebページに埋め込み、VoceChat拡張を実現できます",
"tip": "ストラップ SDK を web ページに埋め込み、VoceChat 拡張を実現できます",
"code": "コード",
"code_comment": "コードをコピーして、webページに貼り付けてください",
"code_comment": "コードをコピーして、web ページに貼り付けてください",
"config": "説明",
"param_key": "パラメータ",
"default_value": "デフォルト値",
"remark": "メモ",
"param_host": "ユーザーIDでチットの相手を指定する",
"param_id": "Widget ID (server version>=v0.3.12)",
"param_host": "ユーザーID でチットの相手を指定する",
"param_close_width": "ウィジェット閉じたままの幅",
"param_close_height": "ウィジェット閉じたままの高さ",
"param_open_width": "ウィジェット開きままの幅",
Expand All @@ -133,12 +134,12 @@
"build_time": "ビルド時間"
},
"api_doc": {
"desc": "VoceChat APIドキュメントを参照しで、VoceChatをカスタマイズできます",
"access": "アクセス:",
"use_method": "使用方法:",
"desc": "VoceChat API ドキュメントを参照しで、VoceChat をカスタマイズできます",
"access": "アクセス",
"use_method": "使用方法",
"step_1": "1. 自分のサーバーに切り替えください",
"step_2": "2. 登録済みのトークンを入力してください",
"step_2_desc": "トークンを取得するには、http headerのX-API-Keyにアクセスしてください、もしくは以下のテキストを直接コピーで使用してください👇",
"last": "3. 最後に各APIにはTry it Outオプションが付いてる、あれを使ってAPIを試すことができます"
"step_2_desc": "トークンを取得するには、http header の X-API-Key にアクセスしてください、もしくは以下のテキストを直接コピーで使用してください👇",
"last": "3. 最後に各 API には Try it Out オプションが付いてる、あれを使って API を試すことができます"
}
}
1 change: 1 addition & 0 deletions locales/zh/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@
"default_value": "默认值",
"remark": "备注",
"custom_style_tip": "如果你想更精确控制挂件的样式,可以借助 widget 元素的 ID,自行写 CSS 样式,加到自己的 html 或者 css 文件中,如下所示:",
"param_id": "挂件 ID,可选设置 (服务器版本不低于 v0.3.12)",
"param_host": "指定和谁聊天 (用户 ID)",
"param_auto_reg": "true:访客无需输入邮箱,直接注册;false:访客需要输入邮箱和用户名注册",
"param_login_token": "仅在用您的自有平台账号生成 voce 账号时需要,普通场景请不要填写,详见:https://doc.voce.chat/zh-cn/login-with-other-account",
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions static/js/main.4fd34451.js → static/js/main.7f177b60.js

Large diffs are not rendered by default.

File renamed without changes.
4 changes: 2 additions & 2 deletions static/js/widget.92093a3e.js → static/js/widget.d7d44f99.js

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 1 addition & 1 deletion widget.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"/><meta name="theme-color" content="#527ff1"/><meta name="description" content="VoceChat Embed"/><title>VoceChat Widget</title><script defer="defer" src="/static/js/widget.92093a3e.js"></script><link href="/static/css/widget.8ea5015b.css" rel="stylesheet"></head><style>#root,body,html{height:100%;background:0 0;overflow:hidden}html.dark #root{background:rgb(64 67 71)}html.dark.close #root{background:0 0}</style><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div id="root-modal"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"/><meta name="theme-color" content="#527ff1"/><meta name="description" content="VoceChat Embed"/><title>VoceChat Widget</title><script defer="defer" src="/static/js/widget.d7d44f99.js"></script><link href="/static/css/widget.8ea5015b.css" rel="stylesheet"></head><style>#root,body,html{height:100%;background:0 0;overflow:hidden}html.dark #root{background:rgb(64 67 71)}html.dark.close #root{background:0 0}</style><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div id="root-modal"></div></body></html>
3 changes: 2 additions & 1 deletion widget.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// IIFC
((w, d) => {
const {
id = "",
hostId = 1,
autoReg = "true",
loginToken = "",
Expand Down Expand Up @@ -28,7 +29,7 @@
Object.assign(wrapper.style, styles);
wrapper.src = `${
new URL(_src).origin
}/widget.html?host=${hostId}&autoReg=${autoReg}&token=${loginToken}&themeColor=${encodeURIComponent(
}/widget.html?id=${id}&host=${hostId}&autoReg=${autoReg}&token=${loginToken}&themeColor=${encodeURIComponent(
themeColor
)}&from=${encodeURIComponent(location.hostname)}&welcome=${encodeURIComponent(welcome)}`;
wrapper.width = closeWidth;
Expand Down

0 comments on commit f6e7599

Please sign in to comment.