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

Commit

Permalink
feat(gists): integration
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
lauthieb committed Feb 10, 2018
1 parent b497293 commit abc9daf
Show file tree
Hide file tree
Showing 28 changed files with 930 additions and 249 deletions.
75 changes: 66 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
}
},
"dependencies": {
"@octokit/rest": "^14.0.8",
"axios": "^0.16.1",
"brace": "^0.11.0",
"buefy": "^0.6.2",
Expand Down
113 changes: 63 additions & 50 deletions src/renderer/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
<nav>
<img class="logo" src="~@/assets/img/code-notes-logo-white-full.png" alt="Code Notes logo">
<div class="is-pulled-right">
<a id="about-code-notes" @click="aboutBlocCodesModal = true" title="About Code Notes...">
<a id="help" @click="helpTokenModalActive = true" title="Help">
<b-icon icon="question-circle"></b-icon>
</a>

<a id="about-code-notes" @click="aboutCodeNotesModalActive = true" title="About Code Notes...">
<b-icon icon="info-circle"></b-icon>
</a>
<a id="github" @click="open('https://github.com/lauthieb/code-notes')" title="Show on Github...">
<b-icon icon="github"></b-icon>
</a>
</div>

<b-modal :active.sync="aboutBlocCodesModal" :width="580" scroll="keep">
<b-modal :active.sync="aboutCodeNotesModalActive" :width="580" scroll="keep">
<div class="card">
<div class="card-content">
<div class="media">
Expand All @@ -24,72 +28,81 @@
<p>A simple code snippet manager for developers built with Electron & Vue.js 🚀</p>

<p>Feel free to contribute on <a @click="open('https://github.com/lauthieb/code-notes')">Github</a> 🍻</p>

<img class="badge" src="http://forthebadge.com/images/badges/built-with-love.svg" alt="Built with love">
</div>
</div>
</div>
</b-modal>


<b-modal :active.sync="helpTokenModalActive" has-modal-card>
<cn-help-token-modal></cn-help-token-modal>
</b-modal>
</nav>
</template>

<script>
// eslint-disable-next-line
import { remote } from 'electron';
// eslint-disable-next-line
import {remote} from 'electron';
import HelpTokenModal from './components/modals/help-token-modal/HelpTokenModal';
export default {
name: 'cn-navbar',
data() {
return {
appVersion: remote.app.getVersion(),
aboutBlocCodesModal: false,
};
},
methods: {
open(link) {
this.$electron.shell.openExternal(link);
export default {
name: 'cn-navbar',
components: {
'cn-help-token-modal': HelpTokenModal,
},
data() {
return {
appVersion: remote.app.getVersion(),
aboutCodeNotesModalActive: false,
helpTokenModalActive: false,
};
},
},
};
methods: {
open(link) {
this.$electron.shell.openExternal(link);
},
},
};
</script>

<style lang="scss" scoped>
nav {
-webkit-app-region: drag;
background-color: $primary;
text-align: center;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
.logo {
padding: 10px 10px 4px 10px;
width: 110px;
position: relative;
left: 4%;
}
nav {
-webkit-app-region: drag;
background-color: $primary;
text-align: center;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
#about-code-notes,
#github {
color: $light;
position: relative;
top: 20px;
right: 20px;
}
.modal {
.media-content {
text-align: center;
.logo {
padding: 10px 10px 4px 10px;
width: 110px;
position: relative;
left: 4%;
}
img {
width: 250px;
#about-code-notes,
#github,
#help {
color: $light;
position: relative;
top: 20px;
right: 20px;
}
.badge {
width: 160px;
.modal {
.media-content {
text-align: center;
}
img {
width: 250px;
}
.badge {
width: 160px;
}
}
}
}
</style>
Loading

0 comments on commit abc9daf

Please sign in to comment.