|
2 | 2 | <nav>
|
3 | 3 | <img class="logo" src="~@/assets/img/code-notes-logo-white-full.png" alt="Code Notes logo">
|
4 | 4 | <div class="is-pulled-right">
|
5 |
| - <a id="about-code-notes" @click="aboutBlocCodesModal = true" title="About Code Notes..."> |
| 5 | + <a id="help" @click="helpTokenModalActive = true" title="Help"> |
| 6 | + <b-icon icon="question-circle"></b-icon> |
| 7 | + </a> |
| 8 | + |
| 9 | + <a id="about-code-notes" @click="aboutCodeNotesModalActive = true" title="About Code Notes..."> |
6 | 10 | <b-icon icon="info-circle"></b-icon>
|
7 | 11 | </a>
|
8 | 12 | <a id="github" @click="open('https://github.com/lauthieb/code-notes')" title="Show on Github...">
|
9 | 13 | <b-icon icon="github"></b-icon>
|
10 | 14 | </a>
|
11 | 15 | </div>
|
12 | 16 |
|
13 |
| - <b-modal :active.sync="aboutBlocCodesModal" :width="580" scroll="keep"> |
| 17 | + <b-modal :active.sync="aboutCodeNotesModalActive" :width="580" scroll="keep"> |
14 | 18 | <div class="card">
|
15 | 19 | <div class="card-content">
|
16 | 20 | <div class="media">
|
|
24 | 28 | <p>A simple code snippet manager for developers built with Electron & Vue.js 🚀</p>
|
25 | 29 |
|
26 | 30 | <p>Feel free to contribute on <a @click="open('https://github.com/lauthieb/code-notes')">Github</a> 🍻</p>
|
27 |
| - |
28 |
| - <img class="badge" src="http://forthebadge.com/images/badges/built-with-love.svg" alt="Built with love"> |
29 | 31 | </div>
|
30 | 32 | </div>
|
31 | 33 | </div>
|
32 | 34 | </b-modal>
|
| 35 | + |
| 36 | + |
| 37 | + <b-modal :active.sync="helpTokenModalActive" has-modal-card> |
| 38 | + <cn-help-token-modal></cn-help-token-modal> |
| 39 | + </b-modal> |
33 | 40 | </nav>
|
34 | 41 | </template>
|
35 | 42 |
|
36 | 43 | <script>
|
37 |
| -// eslint-disable-next-line |
38 |
| -import { remote } from 'electron'; |
| 44 | + // eslint-disable-next-line |
| 45 | + import {remote} from 'electron'; |
| 46 | + import HelpTokenModal from './components/modals/help-token-modal/HelpTokenModal'; |
39 | 47 |
|
40 |
| -export default { |
41 |
| - name: 'cn-navbar', |
42 |
| - data() { |
43 |
| - return { |
44 |
| - appVersion: remote.app.getVersion(), |
45 |
| - aboutBlocCodesModal: false, |
46 |
| - }; |
47 |
| - }, |
48 |
| - methods: { |
49 |
| - open(link) { |
50 |
| - this.$electron.shell.openExternal(link); |
| 48 | + export default { |
| 49 | + name: 'cn-navbar', |
| 50 | + components: { |
| 51 | + 'cn-help-token-modal': HelpTokenModal, |
| 52 | + }, |
| 53 | + data() { |
| 54 | + return { |
| 55 | + appVersion: remote.app.getVersion(), |
| 56 | + aboutCodeNotesModalActive: false, |
| 57 | + helpTokenModalActive: false, |
| 58 | + }; |
51 | 59 | },
|
52 |
| - }, |
53 |
| -}; |
| 60 | + methods: { |
| 61 | + open(link) { |
| 62 | + this.$electron.shell.openExternal(link); |
| 63 | + }, |
| 64 | + }, |
| 65 | + }; |
54 | 66 | </script>
|
55 | 67 |
|
56 | 68 | <style lang="scss" scoped>
|
57 |
| -nav { |
58 |
| - -webkit-app-region: drag; |
59 |
| - background-color: $primary; |
60 |
| - text-align: center; |
61 |
| - position: fixed; |
62 |
| - top: 0; |
63 |
| - width: 100%; |
64 |
| - z-index: 1000; |
65 |
| -
|
66 |
| - .logo { |
67 |
| - padding: 10px 10px 4px 10px; |
68 |
| - width: 110px; |
69 |
| - position: relative; |
70 |
| - left: 4%; |
71 |
| - } |
| 69 | + nav { |
| 70 | + -webkit-app-region: drag; |
| 71 | + background-color: $primary; |
| 72 | + text-align: center; |
| 73 | + position: fixed; |
| 74 | + top: 0; |
| 75 | + width: 100%; |
| 76 | + z-index: 1000; |
72 | 77 |
|
73 |
| - #about-code-notes, |
74 |
| - #github { |
75 |
| - color: $light; |
76 |
| - position: relative; |
77 |
| - top: 20px; |
78 |
| - right: 20px; |
79 |
| - } |
80 |
| -
|
81 |
| - .modal { |
82 |
| - .media-content { |
83 |
| - text-align: center; |
| 78 | + .logo { |
| 79 | + padding: 10px 10px 4px 10px; |
| 80 | + width: 110px; |
| 81 | + position: relative; |
| 82 | + left: 4%; |
84 | 83 | }
|
85 | 84 |
|
86 |
| - img { |
87 |
| - width: 250px; |
| 85 | + #about-code-notes, |
| 86 | + #github, |
| 87 | + #help { |
| 88 | + color: $light; |
| 89 | + position: relative; |
| 90 | + top: 20px; |
| 91 | + right: 20px; |
88 | 92 | }
|
89 | 93 |
|
90 |
| - .badge { |
91 |
| - width: 160px; |
| 94 | + .modal { |
| 95 | + .media-content { |
| 96 | + text-align: center; |
| 97 | + } |
| 98 | +
|
| 99 | + img { |
| 100 | + width: 250px; |
| 101 | + } |
| 102 | +
|
| 103 | + .badge { |
| 104 | + width: 160px; |
| 105 | + } |
92 | 106 | }
|
93 | 107 | }
|
94 |
| -} |
95 | 108 | </style>
|
0 commit comments