diff --git a/src/components/inputer.vue b/src/components/inputer.vue index b7bd01e..504d260 100644 --- a/src/components/inputer.vue +++ b/src/components/inputer.vue @@ -1,14 +1,29 @@ \ No newline at end of file diff --git a/src/components/lineNumber.vue b/src/components/lineNumber.vue new file mode 100644 index 0000000..9bb55ec --- /dev/null +++ b/src/components/lineNumber.vue @@ -0,0 +1,73 @@ + + + + + + \ No newline at end of file diff --git a/src/components/navBar.vue b/src/components/navBar.vue index d4c2f3a..49dd950 100644 --- a/src/components/navBar.vue +++ b/src/components/navBar.vue @@ -1,19 +1,81 @@ @@ -35,6 +97,14 @@ } export default { + computed: { + fullscreen() { + return this.$store.state.fullscreen; + }, + preview() { + return this.$store.state.preview; + } + }, methods: { showMenu () { this.$store.dispatch('showMenu') @@ -44,7 +114,7 @@ let startPosition = inputer.selectionStart let endPosition = inputer.selectionEnd let oldContent = inputer.value - + inputer.focus() let newContent = '' @@ -100,6 +170,12 @@ }, redirect (url) { window.open(url, '_blank') + }, + showFullscreen(){ + this.$store.commit('FULLSCREEN') + }, + showPreview(){ + this.$store.commit('PREVIEW') } } } @@ -135,6 +211,9 @@ background: none; outline: none; transition: all ease .3s; + &.active{ + background: #00796B; + } &:hover { background: #00897B; } diff --git a/src/components/outputer.vue b/src/components/outputer.vue index 760a481..3dc8f85 100644 --- a/src/components/outputer.vue +++ b/src/components/outputer.vue @@ -1,5 +1,5 @@