Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 188e22f

Browse files
authored
Merge pull request #4 from coderplex/authentication
Authentication views
2 parents b47c5b5 + 093f678 commit 188e22f

25 files changed

+593
-152
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
1212
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
1313
'import/extensions': 'off',
14+
'import/no-cycle': 'off'
1415
},
1516
parserOptions: {
1617
parser: 'babel-eslint',

package-lock.json

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

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
},
1010
"dependencies": {
1111
"@mdi/font": "^3.6.95",
12+
"axios": "^0.19.0",
1213
"codemirror": "^5.48.4",
1314
"core-js": "^2.6.5",
1415
"roboto-fontface": "*",
1516
"vue": "^2.6.10",
1617
"vue-codemirror": "^4.0.6",
18+
"vue-fragment": "^1.5.1",
1719
"vue-router": "^3.0.3",
1820
"vuetify": "^2.0.0",
1921
"vuex": "^3.0.1",

src/App.vue

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
<template>
22
<Layout>
3-
<template v-slot:navigation>
4-
<v-btn
5-
text
6-
href="https://github.com/vuetifyjs/vuetify/releases/latest"
7-
target="_blank"
8-
>
9-
<span class="mr-2">Latest Release</span>
10-
</v-btn>
11-
</template>
12-
<HelloWorld />
3+
<v-container>
4+
<router-view></router-view>
5+
</v-container>
136
</Layout>
147
</template>
158

169
<script>
17-
import HelloWorld from './components/HelloWorld';
1810
import Layout from './components/layout';
1911
2012
export default {
2113
name: 'App',
2214
components: {
23-
HelloWorld,
2415
Layout,
2516
},
2617
data: () => ({

src/assets/logo.png

-4.97 KB
Loading

src/assets/logo.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/Card.vue

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<v-card
3+
:loading="false"
4+
class="mx-auto my-12"
5+
>
6+
<v-card-title>
7+
<slot name="title"></slot>
8+
</v-card-title>
9+
<v-card-text>
10+
<slot></slot>
11+
</v-card-text>
12+
<v-divider class="mx-4"></v-divider>
13+
<v-card-actions>
14+
<slot name="actions"></slot>
15+
</v-card-actions>
16+
</v-card>
17+
</template>
18+
19+
<script>
20+
export default {
21+
name: 'Card',
22+
};
23+
</script>
24+
25+
<style scoped>
26+
27+
</style>

src/components/FormAlerts.vue

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<fragment>
3+
<v-alert
4+
v-for="({type, message}, index) in alerts"
5+
dismissible
6+
:type="type"
7+
class="mb-4"
8+
:value="!!message"
9+
:key="index"
10+
>
11+
{{ message }}
12+
</v-alert>
13+
</fragment>
14+
</template>
15+
16+
<script>
17+
export default {
18+
name: 'FormAlerts',
19+
props: {
20+
alerts: Array,
21+
},
22+
};
23+
</script>
24+
25+
<style scoped>
26+
27+
</style>

src/components/FormButtons.vue

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<fragment>
3+
<v-btn
4+
v-for="({ icon, value, click }, index) in buttons"
5+
color="deep-purple accent-4"
6+
text
7+
@click="click"
8+
:key="index"
9+
>
10+
<v-icon left>{{ icon }}</v-icon>
11+
{{ value }}
12+
</v-btn>
13+
</fragment>
14+
</template>
15+
16+
<script>
17+
export default {
18+
name: 'FormButtons',
19+
props: {
20+
buttons: Array,
21+
},
22+
};
23+
</script>
24+
25+
<style scoped>
26+
27+
</style>

src/components/FormFields.vue

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<fragment>
3+
<v-text-field
4+
v-for="({ label, placeholder, type, icon, value, input }, index) in fields"
5+
:label="label"
6+
:placeholder="placeholder"
7+
:type="type"
8+
:prepend-icon="icon"
9+
:value="value"
10+
@input="input"
11+
:key="index"
12+
>
13+
</v-text-field>
14+
</fragment>
15+
</template>
16+
17+
<script>
18+
export default {
19+
name: 'FormFields',
20+
props: {
21+
fields: Array,
22+
},
23+
};
24+
</script>
25+
26+
<style scoped>
27+
28+
</style>

0 commit comments

Comments
 (0)