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

Commit 95cd0d2

Browse files
committed
fix(config): package.json
Closes #1
1 parent edae19b commit 95cd0d2

File tree

12 files changed

+3027
-2978
lines changed

12 files changed

+3027
-2978
lines changed

package-lock.json

Lines changed: 2533 additions & 2504 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/index.js

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ function createWindow() {
2323
mainWindow = new BrowserWindow({
2424
useContentSize: true,
2525
height: 700,
26-
titleBarStyle: 'hiddenInset',
26+
titleBarStyle: 'hiddenInset',
2727
width: 1160,
2828
minHeight: 500,
29-
minWidth: 900
29+
minWidth: 900,
3030
});
3131

3232
mainWindow.loadURL(winURL);
@@ -35,23 +35,40 @@ function createWindow() {
3535
mainWindow = null;
3636
});
3737

38-
const template = [{
39-
label: "Application",
40-
submenu: [
41-
{ label: "About Application", selector: "orderFrontStandardAboutPanel:" },
42-
{ type: "separator" },
43-
{ label: "Quit", accelerator: "Command+Q", click: () => { app.quit(); }}
44-
]}, {
45-
label: "Edit",
46-
submenu: [
47-
{ label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
48-
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
49-
{ type: "separator" },
50-
{ label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
51-
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
52-
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
53-
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" }
54-
]}
38+
const template = [
39+
{
40+
label: 'Application',
41+
submenu: [
42+
{
43+
label: 'About Application',
44+
selector: 'orderFrontStandardAboutPanel:',
45+
},
46+
{ type: 'separator' },
47+
{
48+
label: 'Quit',
49+
accelerator: 'Command+Q',
50+
click: () => {
51+
app.quit();
52+
},
53+
},
54+
],
55+
},
56+
{
57+
label: 'Edit',
58+
submenu: [
59+
{ label: 'Undo', accelerator: 'CmdOrCtrl+Z', selector: 'undo:' },
60+
{ label: 'Redo', accelerator: 'Shift+CmdOrCtrl+Z', selector: 'redo:' },
61+
{ type: 'separator' },
62+
{ label: 'Cut', accelerator: 'CmdOrCtrl+X', selector: 'cut:' },
63+
{ label: 'Copy', accelerator: 'CmdOrCtrl+C', selector: 'copy:' },
64+
{ label: 'Paste', accelerator: 'CmdOrCtrl+V', selector: 'paste:' },
65+
{
66+
label: 'Select All',
67+
accelerator: 'CmdOrCtrl+A',
68+
selector: 'selectAll:',
69+
},
70+
],
71+
},
5572
];
5673

5774
Menu.setApplicationMenu(Menu.buildFromTemplate(template));

src/renderer/App.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@
1515
</template>
1616

1717
<script>
18-
import Navbar from './Navbar';
19-
import Sidebar from './Sidebar';
18+
import Navbar from './Navbar';
19+
import Sidebar from './Sidebar';
2020
21-
export default {
22-
name: 'cb-app',
23-
components: {
24-
'cb-navbar': Navbar,
25-
'cb-sidebar': Sidebar
26-
}
27-
};
21+
export default {
22+
name: 'cb-app',
23+
components: {
24+
'cb-navbar': Navbar,
25+
'cb-sidebar': Sidebar,
26+
},
27+
};
2828
</script>
2929

3030
<style lang="scss">
31-
body {
32-
font-family: 'Source Sans Pro', sans-serif;
33-
}
31+
body {
32+
font-family: 'Source Sans Pro', sans-serif;
33+
}
3434
35-
#content {
36-
padding: 0 24px;
37-
}
35+
#content {
36+
padding: 0 24px;
37+
}
3838
</style>

src/renderer/Navbar.vue

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -34,62 +34,62 @@
3434
</template>
3535

3636
<script>
37-
// eslint-disable-next-line
38-
import { remote } from 'electron';
37+
// eslint-disable-next-line
38+
import { remote } from 'electron';
3939
40-
export default {
41-
name: 'cb-navbar',
42-
data() {
43-
return {
44-
appVersion: remote.app.getVersion(),
45-
aboutBlocCodesModal: false
46-
}
40+
export default {
41+
name: 'cb-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);
4751
},
48-
methods: {
49-
open(link) {
50-
this.$electron.shell.openExternal(link)
51-
}
52-
}
53-
};
52+
},
53+
};
5454
</script>
5555

5656
<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-
}
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;
7265
73-
#about-code-notes, #github {
74-
color: $light;
75-
position: relative;
76-
top: 20px;
77-
right: 20px;
78-
}
66+
.logo {
67+
padding: 10px 10px 4px 10px;
68+
width: 110px;
69+
position: relative;
70+
left: 4%;
71+
}
7972
80-
.modal {
73+
#about-code-notes,
74+
#github {
75+
color: $light;
76+
position: relative;
77+
top: 20px;
78+
right: 20px;
79+
}
8180
82-
.media-content {
83-
text-align: center;
84-
}
81+
.modal {
82+
.media-content {
83+
text-align: center;
84+
}
8585
86-
img {
87-
width: 250px;
88-
}
86+
img {
87+
width: 250px;
88+
}
8989
90-
.badge {
91-
width: 160px;
92-
}
90+
.badge {
91+
width: 160px;
9392
}
9493
}
94+
}
9595
</style>

src/renderer/Sidebar.vue

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,37 @@
1515
</template>
1616

1717
<script>
18-
import Vuex from 'vuex';
18+
import Vuex from 'vuex';
1919
20-
export default {
21-
name: 'cb-sidebar',
22-
data() {
23-
return {}
20+
export default {
21+
name: 'cb-sidebar',
22+
data() {
23+
return {};
24+
},
25+
methods: {
26+
selectLanguage(language) {
27+
this.$store.dispatch('selectLanguage', language);
2428
},
25-
methods: {
26-
selectLanguage(language) {
27-
this.$store.dispatch('selectLanguage', language);
28-
}
29-
},
30-
computed: {
31-
...Vuex.mapGetters(['languages', 'snippets', 'languageSelected']),
32-
}
33-
};
29+
},
30+
computed: {
31+
...Vuex.mapGetters(['languages', 'snippets', 'languageSelected']),
32+
},
33+
};
3434
</script>
3535

3636
<style lang="scss" scoped>
37-
aside {
38-
position: fixed;
39-
top: 48px;
40-
width: 22%;
41-
margin-top: 24px;
37+
aside {
38+
position: fixed;
39+
top: 48px;
40+
width: 22%;
41+
margin-top: 24px;
4242
43-
li {
44-
margin: 5px 0;
43+
li {
44+
margin: 5px 0;
4545
46-
a {
47-
padding-bottom: 11px!important;
48-
}
46+
a {
47+
padding-bottom: 11px !important;
4948
}
5049
}
50+
}
5151
</style>

0 commit comments

Comments
 (0)