{{ $t('help.help') }}
{{ $t('help.p1_1') }} https://play-live.bilibili.com/ {{ $t('help.p1_2') }}
-
+
{{ $t('help.p2') }}
-
+
{{ $t('help.p3') }}
-
+
{{ $t('help.p4') }}
-
+
{{ $t('help.p5') }}
-
+
--------------------------------------------------------------------------------------------------------
使用前必看:注意事项和常见问题
喜欢的话可以推荐给别人 _(:з」∠)_
@@ -22,13 +22,3 @@ export default {
name: 'Help'
}
-
-
diff --git a/frontend/src/views/Home/TemplateSelect.vue b/frontend/src/views/Home/TemplateSelect.vue
new file mode 100644
index 00000000..8e13a5ac
--- /dev/null
+++ b/frontend/src/views/Home/TemplateSelect.vue
@@ -0,0 +1,222 @@
+
+
+
+ {{$t('home.templateHelp')}}
+
+
+
+
+
+
+
+
+
+
{{ $t('home.templateDefaultTitle') }}
+
+
+
+
{{ $t('home.templateDefaultDescription') }}
+
+
+
+
+
+
+
+
+
{{ $t('home.templateCustomUrlTitle') }}
+
+
+
+
{{ $t('home.templateCustomUrlDescription') }}
+
+
+
+
+
+
+
+
+
+
+
+
{{ template.name }}
+ {{ template.version }}
+ {{ $t('home.author') }}{{ template.author }}
+
+
+
+
+
{{ template.description }}
+
URL: {{ template.url }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home/index.vue
similarity index 96%
rename from frontend/src/views/Home.vue
rename to frontend/src/views/Home/index.vue
index 7ccf991a..b11ba569 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home/index.vue
@@ -100,19 +100,24 @@
-
+
-
+
+
+
+
+
+
-
+
@@ -130,7 +135,7 @@
-
+
@@ -217,6 +222,10 @@
{{$t('home.addEmoticon')}}
+
+
+
+
@@ -249,12 +258,14 @@
import _ from 'lodash'
import download from 'downloadjs'
+import TemplateSelect from './TemplateSelect'
import { mergeConfig } from '@/utils'
import * as mainApi from '@/api/main'
import * as chatConfig from '@/api/chatConfig'
export default {
name: 'Home',
+ components: { TemplateSelect },
data() {
return {
serverConfig: {
@@ -384,7 +395,8 @@ export default {
getUnvalidatedRoomUrl(isTestRoom) {
// 重要的字段放在前面,因为如果被截断就连接不了房间了
let frontFields = {
- roomKeyType: this.form.roomKeyType
+ roomKeyType: this.form.roomKeyType,
+ templateUrl: this.form.templateUrl,
}
let backFields = {
lang: this.$i18n.locale,
diff --git a/frontend/src/views/Room.vue b/frontend/src/views/Room.vue
index a43a2079..11bf53aa 100644
--- a/frontend/src/views/Room.vue
+++ b/frontend/src/views/Room.vue
@@ -1,5 +1,8 @@
-
+
+
+
+
+
+
diff --git a/frontend/src/views/StyleGenerator/FontSelect.vue b/frontend/src/views/StyleGenerator/FontSelect.vue
index 4403be01..8dd6d538 100644
--- a/frontend/src/views/StyleGenerator/FontSelect.vue
+++ b/frontend/src/views/StyleGenerator/FontSelect.vue
@@ -1,6 +1,6 @@
-
+
+
+
+
@@ -45,6 +49,7 @@ export default {
recentFonts: this.getRecentFonts(), // 这里只作为缓存,以localStorage为准
PRESET_FONTS: fonts.PRESET_FONTS,
NETWORK_FONTS: fonts.NETWORK_FONTS,
+ localFonts: [],
innerValue: [],
}
@@ -68,10 +73,21 @@ export default {
this.addRecentFont(font)
}
},
+ onSelectVisibleChange(visible) {
+ if (!visible) {
+ return
+ }
+ this.updateRecentFonts()
+ // 在这里更新第一次下拉时不会显示本地字体,但没什么好办法
+ this.updateLocalFonts()
+ },
+
updateRecentFonts() {
this.recentFonts = this.getRecentFonts()
},
-
+ async updateLocalFonts() {
+ this.localFonts = await fonts.getLocalFonts()
+ },
getRecentFonts() {
return common.fontsStrToArr(window.localStorage.recentFonts || '')
},
@@ -102,6 +118,12 @@ export default {
}
+
+