From 8dfb40662c681108fd89876f1630137ab6f47dfd Mon Sep 17 00:00:00 2001
From: John Smith Custom HTML templates allow complete customization of the room page, including DOM structure and CSS styles.
+ Templates may be developed by third-party authors, and their security and quality are the responsibility of the template author.
+ You can find some published templates on GitHub Discussions To install a template: Put the extracted template directory into the "data/custom_public/templates" directory, then wait
+ about 10 seconds and refresh the webpage. Alternatively, you can directly enter the template URL to use an online template Note: After modifying the template setting, the custom CSS in OBS will not take effect Template Development Documentation
Plugin installation method: Put the extracted plugin directory into the "data/plugins" directory, then restart blivechat
+To install a plugin: Put the extracted plugin directory into the "data/plugins" directory, then restart blivechat
Notes: Most plugins require enabling the "Relay messages by the server" option and connecting to the room in order to receive messages
- -- Plugin development documentation
+ +Plugin Development Documentation
`, author: 'Author: ', disabledByServer: 'Administration for plugins is disabled by the server', diff --git a/frontend/src/lang/ja.js b/frontend/src/lang/ja.js index 957c4f0..ce2156c 100644 --- a/frontend/src/lang/ja.js +++ b/frontend/src/lang/ja.js @@ -66,8 +66,20 @@ export default { emoticonFileTooLarge: 'ファイルサイズが大きすぎます。最大サイズは1MBです', template: 'カスタムHTMLテンプレート', + templateHelp: 'ヘルプ', + templateHelpContent: `\ +カスタムHTMLテンプレートを使用すると、DOM構造やCSSスタイルを含むフロントエンドページを完全にカスタマイズできます。 + テンプレートはサードパーティの作者によって開発される場合があり、そのセキュリティと品質はテンプレート作者の責任となります。 + 公開されているテンプレートはGitHub Discussionsで入手できます
+テンプレートのインストール方法:解凍したテンプレートディレクトリを「data/custom_public/templates」フォルダに配置し、 + 約10秒待ってからウェブページを更新してください。また、テンプレートURLを直接入力してオンラインテンプレートを使用することもできます
+注意:カスタムテンプレートを変更した場合、OBS内のカスタムCSSは反映されません
+ +`, templateDefaultTitle: 'デフォルト', - templateDefaultDescription: 'YouTube風のテンプレートで、カスタムCSSでスタイルを変更できます。カスタムHTMLテンプレートの機能に慣れていない場合はこれを選択してください。そうでない場合、カスタムCSSが適用されない', + templateDefaultDescription: 'YouTube風のテンプレートで、カスタムCSSでスタイルを変更できます。カスタムHTMLテンプレートの機能に慣れていない場合はこれを選択してください。そうでない場合、OBS内のカスタムCSSは反映されません', templateCustomUrlTitle: 'テンプレートURLを入力', templateCustomUrlDescription: 'リストにないテンプレートは、作者が提供するURLをここで手動で入力できます', author: '作者:', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 2cf8355..b2ef761 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -66,8 +66,18 @@ export default { emoticonFileTooLarge: '文件尺寸太大,最大1MB', template: '自定义HTML模板', + templateHelp: '帮助', + templateHelpContent: `\ +自定义HTML模板可以完全自定义房间页面,包括DOM结构、CSS样式。模板可能由第三方作者开发,其安全性和质量由模板作者负责。 + 你可以在GitHub Discussions获取一些已发布的模板
+模板安装方法:把解压后的模板目录放到“data/custom_public/templates”目录,然后等待约10秒后刷新网页。 + 另外你也可以直接输入模板URL来使用在线模板
+注意:修改自定义模板设置后,OBS中的自定义CSS将不会生效
+ +`, templateDefaultTitle: '默认', - templateDefaultDescription: '仿YouTube风格的模板,可以用自定义CSS修改样式。如果你不了解自定义HTML模板的功能,就选择这个,否则自定义CSS不会生效', + templateDefaultDescription: '仿YouTube风格的模板,可以用自定义CSS修改样式。如果你不了解自定义HTML模板的功能,就选择这个,否则OBS中的自定义CSS不会生效', templateCustomUrlTitle: '输入模板URL', templateCustomUrlDescription: '没有列出的模板,也可以在这里手动输入作者提供的URL', author: '作者:', @@ -193,7 +203,7 @@ export default { 你可以在GitHub Discussions获取一些已发布的插件插件安装方法:把解压后的插件目录放到“data/plugins”目录,然后重启blivechat
-注意事项:大部分插件需要开启“通过服务器转发消息”,并且连接到房间,才能接收消息
+注意:大部分插件需要开启“通过服务器转发消息”,并且连接到房间,才能接收消息
`, diff --git a/frontend/src/views/Home/TemplateSelect.vue b/frontend/src/views/Home/TemplateSelect.vue index 17ecfeb..8e13a5a 100644 --- a/frontend/src/views/Home/TemplateSelect.vue +++ b/frontend/src/views/Home/TemplateSelect.vue @@ -1,5 +1,12 @@
+