Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
chore(release): 1.9.2 [skip ci]
Browse files Browse the repository at this point in the history
## [1.9.2](v1.9.1...v1.9.2) (2020-12-30)

### 🐛 Bug 修复

* 优化 友情链接国际化;修改部分错误 ([81ef84a](81ef84a))
  • Loading branch information
semantic-release-bot committed Dec 30, 2020
1 parent b545c7e commit 071fef3
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 15 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# shirakami-haruka-button(豹按钮(:3っ)∋)

## [1.9.2](https://github.com/CaoMeiYouRen/shirakami-haruka-button/compare/v1.9.1...v1.9.2) (2020-12-30)


### 🐛 Bug 修复

* 优化 友情链接国际化;修改部分错误 ([81ef84a](https://github.com/CaoMeiYouRen/shirakami-haruka-button/commit/81ef84a))

## [1.9.1](https://github.com/CaoMeiYouRen/shirakami-haruka-button/compare/v1.9.0...v1.9.1) (2020-12-12)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shirakami-haruka-button",
"version": "1.9.1",
"version": "1.9.2",
"private": true,
"author": "CaoMeiYouRen",
"license": "MIT",
Expand Down
12 changes: 6 additions & 6 deletions src/components/HarukaButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default defineComponent({
disabled.value = false
}, 10 * 1000) // 如果超过 10 秒还未加载成功则允许重新点击
audio.load()
audio.oncanplay = e => {
audio.oncanplay = (e) => {
playList.value.add(audio)
audio.play().then(() => {
Expand All @@ -167,7 +167,7 @@ export default defineComponent({
maskList.value.push(Date.now())
})
}
audio.onended = e => {
audio.onended = (e) => {
playList.value.delete(audio)
maskList.value.shift()
if (typeof cb === 'function') {
Expand All @@ -177,7 +177,7 @@ export default defineComponent({
play()
}
}
audio.onerror = e => {
audio.onerror = (e) => {
console.error(e)
// TODO: 音频资源加载优化,若 CDN 加载失败则从本地加载
// audio.src = localVoicesPath
Expand All @@ -186,16 +186,16 @@ export default defineComponent({
const { maxLength, rawTitle, title } = useButtonTile(messages)
watch(isPlay, val => {
watch(isPlay, (val) => {
if (val) {
play(() => {
ctx.emit('input', false)
})
}
})
watch(stopAll, val => {
watch(stopAll, (val) => {
if (val) {
playList.value.forEach(e => {
playList.value.forEach((e) => {
e.pause()
playList.value.delete(e)
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vue from 'vue'
import _ from 'lodash'
const requireComponent = require.context('@/components', true, /\.vue$/)
// 批量注册组件
requireComponent.keys().forEach(fileName => {
requireComponent.keys().forEach((fileName) => {
const componentConfig = requireComponent(fileName)
const componentName = _.upperFirst(// 调整风格为首字母大写驼峰
_.camelCase(fileName.replace(/^\.\//, '').replace(/\.\w+$/, '')),
Expand Down
2 changes: 1 addition & 1 deletion src/layout/HomeLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function switchLang(locale: string){
i18n.locale = locale
}
const langList: {lang: string, label: string}[] = Object.keys(messages).map(e => ({
const langList: {lang: string, label: string}[] = Object.keys(messages).map((e) => ({
lang: e,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ new Vue({
store,
i18n,
vuetify,
render: h => h(App),
render: (h) => h(App),
}).$mount('#app')
4 changes: 2 additions & 2 deletions src/utils/rssParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function rssParserURL(url: string, query: any = {}) {
if (rss.image) {
rss.image.title = rss.image.title?.trim()
}
rss.items = rss.items?.map(e => {
rss.items = rss.items?.map((e) => {
e.title = e.title?.trim()
e.content = e.content?.trim()
e.contentSnippet = e.contentSnippet?.trim()
Expand All @@ -45,7 +45,7 @@ export async function rssParserString(xml: string) {
if (rss.image) {
rss.image.title = rss.image.title?.trim()
}
rss.items = rss.items?.map(e => {
rss.items = rss.items?.map((e) => {
e.title = e.title?.trim()
e.content = e.content?.trim()
e.guid = e.guid?.trim()
Expand Down
2 changes: 1 addition & 1 deletion src/views/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function verFormat(ver: string) {
}
return list.join('.')
}
Object.keys(dep).forEach(e => {
Object.keys(dep).forEach((e) => {
const d = dep[e]
if (!d.includes('git+')) {
dep[e] = verFormat(d)
Expand Down
4 changes: 2 additions & 2 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function useBiliDynamic(uid: number) {
const rss = await rssParserString(val)
// console.log(rss)
if (rss.items){
dynamic.value = rss.items.slice(0, 3).map(e => {
dynamic.value = rss.items.slice(0, 3).map((e) => {
e.contentSnippet = e.contentSnippet?.replace(/(\n[\s|\t]*\r*\n)/g, '\n') // 去除多余换行符
e.isoDate = timeFormat(e.isoDate, 'YYYY-MM-DD HH:mm:ss')
return e
Expand All @@ -233,7 +233,7 @@ export default defineComponent({
name: 'Home',
props: {},
setup(props, ctx){
const _voices = ref(voices.map(e => {
const _voices = ref(voices.map((e) => {
e.isPlay = false
return e
}))
Expand Down

0 comments on commit 071fef3

Please sign in to comment.