Skip to content

Commit fb500ea

Browse files
gideonairexCMCDragonkai
authored andcommitted
fix: linting
1 parent 2eab026 commit fb500ea

File tree

7 files changed

+162
-168
lines changed

7 files changed

+162
-168
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
"@typescript-eslint"
1818
],
1919
"rules": {
20+
"space-before-function-paren" : 0
2021
}
2122
}

src/renderer/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default defineComponent({
3939
// Footer
4040
// Login
4141
},
42-
setup () {
42+
setup() {
4343
const alertModule = useModule('Alert')
4444
console.log(alertModule.state)
4545
alertModule.dispatch('toggle')

src/renderer/components/navigation/Drawer.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
</ui-drawer-header>
88
<ui-drawer-content>
99
<ui-nav>
10-
<NavigationButton faIcon="lock" route="/Vaults" />
11-
<NavigationButton faIcon="users" route="/Social" />
12-
<NavigationButton faIcon="key" route="/Keys" />
13-
<NavigationButton faIcon="key" route="/Configuration" />
10+
<NavigationButton faIcon="lock" route="/Vaults" name="Vault" />
11+
<NavigationButton faIcon="users" route="/Social" name="Social"/>
12+
<NavigationButton faIcon="key" route="/Keys" name="Keys"/>
13+
<NavigationButton faIcon="key" route="/Configuration" name="Configuration"/>
1414
</ui-nav>
1515
</ui-drawer-content>
1616
</ui-drawer>

src/renderer/components/navigation/NavigationButton.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<ui-nav-item href="javascript:void(0)" active @click="goToRoute(route)">{{route}}</ui-nav-item>
2+
<ui-nav-item href="javascript:void(0)" active @click="goToRoute(route)">{{name}}</ui-nav-item>
33
</template>
44

55
<script lang="ts">
@@ -8,16 +8,18 @@ import { useRouter } from 'vue-router'
88
export default defineComponent({
99
props: {
1010
faIcon: String,
11-
route: String
11+
route: String,
12+
name: String
1213
},
13-
setup ({ faIcon, route }) {
14+
setup ({ faIcon, route, name }) {
1415
const router = useRouter()
1516
return {
1617
goToRoute: route => {
1718
router.push(route)
1819
},
1920
faIcon,
20-
route
21+
route,
22+
name
2123
}
2224
}
2325
})

src/renderer/components/vaults/NewVault.vue

Lines changed: 58 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<template>
2-
<v-card color="FloralWhite" style="margin: 10px;">
2+
<div color="FloralWhite" style="margin: 10px;">
33
<v-form width="100%" v-model="valid" ref="newVaultForm">
4-
<v-container fluid width="100%">
5-
<h2>New Vault - Vault Information</h2>
6-
<v-row>
7-
<v-col cols="12" md="12">
8-
<ui-textfield
9-
v-model="vaultName"
10-
:rules="vaultNameRules"
11-
label="Vault Name"
12-
counter="100"
13-
required
14-
outlined
15-
placeholder="Enter a unique vault Name"
16-
></ui-textfield>
17-
</v-col>
18-
</v-row>
19-
<v-row>
4+
<ui-grid fluid width="100%">
5+
<ui-grid-cell columns="12">
6+
<h2>New Vault - Vault Information</h2>
7+
</ui-grid-cell>
8+
<ui-grid-cell columns="12">
9+
<ui-textfield
10+
v-model="vaultName"
11+
:rules="vaultNameRules"
12+
label="Vault Name"
13+
counter="100"
14+
required
15+
outlined
16+
style="padding-left: 10px; padding-right: 10px; width: 100%"
17+
placeholder="Enter a unique vault Name"
18+
></ui-textfield>
19+
</ui-grid-cell>
20+
<ui-grid-cell columns="12">
2021
<v-col cols="12" md="12">
2122
<v-list subheader two-line flat outlined>
2223
<v-subheader>Share with Peers (optional)</v-subheader>
@@ -29,58 +30,62 @@
2930
</v-container>
3031
</v-list>
3132
</v-col>
32-
</v-row>
33-
<v-row>
33+
</ui-grid-cell>
34+
<ui-grid-cell columns="12">
3435
<v-col>
3536
<v-list outlined>
36-
<v-subheader>Initial Secret (optional)</v-subheader>
37-
38-
<ui-textfield
39-
v-model="initialSecretName"
40-
:rules="initialSecretNameRules"
41-
label="Secret Name"
42-
counter="100"
43-
required
44-
outlined
45-
style="padding-left: 10px; padding-right: 10px"
46-
placeholder="Enter a new secret name"
47-
></ui-textfield>
48-
49-
<ui-textfield
50-
v-model="initialSecretContent"
51-
label="Secret Content"
52-
required
53-
outlined
54-
style="padding-left: 10px; padding-right: 10px"
55-
placeholder="Enter the content of the secret"
56-
></ui-textfield>
37+
<ui-grid-cell columns="12">
38+
<v-subheader>Initial Secret (optional)</v-subheader>
39+
</ui-grid-cell>
40+
<ui-grid-cell columns="12">
41+
<ui-textfield
42+
v-model="initialSecretName"
43+
:rules="initialSecretNameRules"
44+
label="Secret Name"
45+
counter="100"
46+
required
47+
outlined
48+
style="padding-left: 10px; padding-right: 10px; width: 100%"
49+
placeholder="Enter a new secret name"
50+
></ui-textfield>
51+
</ui-grid-cell>
52+
<ui-grid-cell columns="12">
53+
<ui-textfield
54+
v-model="initialSecretContent"
55+
label="Secret Content"
56+
required
57+
outlined
58+
style="padding-left: 10px; padding-right: 10px; width: 100%"
59+
placeholder="Enter the content of the secret"
60+
></ui-textfield>
61+
</ui-grid-cell>
5762
</v-list>
5863
</v-col>
59-
</v-row>
60-
</v-container>
64+
</ui-grid-cell>
65+
</ui-grid>
6166

67+
<br />
6268
<v-card-actions>
63-
<v-btn @click="cancel">Cancel</v-btn>
64-
<v-btn color="warning" @click="resetValidation">Clear</v-btn>
65-
<v-spacer></v-spacer>
66-
<v-btn color="success" @click="newVault">Create</v-btn>
69+
<ui-button raised @click="cancel">Cancel</ui-button>
70+
<ui-button raised @click="resetValidation">Clear</ui-button>
71+
<ui-button raised @click="newVault">Create</ui-button>
6772
</v-card-actions>
6873
</v-form>
69-
</v-card>
74+
</div>
7075
</template>
7176

7277
<script lang="ts">
73-
import { defineComponent } from 'vue'
78+
import { defineComponent } from 'vue';
7479
7580
export default defineComponent({
76-
setup () {
81+
setup() {
7782
return {
7883
cancel: () => {},
7984
resetValidation: () => {},
80-
newVault: () => {}
81-
}
82-
}
83-
})
85+
newVault: () => {},
86+
};
87+
},
88+
});
8489
8590
// import { Component, Vue, Prop } from 'vue-property-decorator';
8691
// import { namespace } from 'vuex-class';

0 commit comments

Comments
 (0)