Skip to content

Commit

Permalink
Add btn info
Browse files Browse the repository at this point in the history
  • Loading branch information
dark-flames committed Jan 26, 2018
1 parent 2b5e5f3 commit 1e38a28
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/components/toolbar-button/btn-info.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default {
name: 'info',
icon: 'fa-info-circle',
title: '关于',
action: {
insert: function () {
window.location.href="https://github.com/luogu-dev/markdown-palettes";
}
}
}
5 changes: 4 additions & 1 deletion src/components/toolbar-button/toolbarBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import BtnHr from './btn-hr'
import BtnCode from './btn-code'
import BtnHide from './btn-hide'
import BtnFullscreen from './btn-fullscreen'
import BtnInfo from './btn-info'

export const defaultBtns = [
BtnBold,
Expand All @@ -35,7 +36,9 @@ export const defaultBtns = [
BtnTable,
Divider,
BtnHide,
BtnFullscreen
BtnFullscreen,
Divider,
BtnInfo
]

function getDefaultBtnsMap () {
Expand Down

0 comments on commit 1e38a28

Please sign in to comment.