Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin/changelog): 在「帮助」菜单下增加「更新日志」页面
链接到 Github 上仓库 master 分支的 CHANGELOG.md 文件。 resolve #25
- Loading branch information
1 parent
cea3e69
commit 2283500
Showing
4 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template lang="pug"> | ||
.sua-container-changelog.typo | ||
h2 更新日志 | ||
p.indent | ||
span 完整更新日志可以参考 Github 上此仓库的 | ||
| | ||
| | ||
a( | ||
target='_blank', | ||
href='//github.com/frederick-wang/scu-urp-assistant/blob/master/CHANGELOG.md' | ||
) CHANGELOG.md | ||
| | ||
| | ||
span 文件。 | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Vue, Component } from 'vue-property-decorator' | ||
@Component | ||
export default class Changelog extends Vue {} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
p.indent { | ||
text-indent: 2em; | ||
} | ||
</style> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import App from './Changelog.vue' | ||
import { getPluginIcon } from '@/helper/getter' | ||
import { SUAPlugin } from '@/core/types' | ||
|
||
export const Changelog: SUAPlugin = { | ||
name: 'changelog', | ||
displayName: '更新日志', | ||
icon: getPluginIcon('changelog'), | ||
isNecessary: true, | ||
defaultEnabledState: true, | ||
brief: '更新日志页面,是助手界面的一部分,不可关闭。', | ||
route: { | ||
path: 'help/changelog', | ||
component: App | ||
}, | ||
menu: { | ||
rootMenuId: 'sua-menu-list', | ||
rootMenuName: 'SCU URP 助手', | ||
id: 'menu-help', | ||
name: '帮助', | ||
item: { | ||
name: '更新日志', | ||
route: 'help/changelog' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters