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>

src/components/HelloWorld.vue

Lines changed: 3 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -15,128 +15,19 @@
1515

1616
<v-flex mb-4>
1717
<h1 class="display-2 font-weight-bold mb-3">
18-
Welcome to Vuetify
18+
Welcome to OpenRank
1919
</h1>
2020
<p class="subheading font-weight-regular">
21-
For help and collaboration with other Vuetify developers,
21+
For help and collaboration with other OpenRank developers,
2222
<br>please join our online
23-
<a href="https://community.vuetifyjs.com" target="_blank">Discord Community</a>
23+
<a href="https://discord.gg/qEA8vxd" target="_blank">Discord Community</a>
2424
</p>
2525
</v-flex>
26-
27-
<v-flex
28-
mb-5
29-
xs12
30-
>
31-
<h2 class="headline font-weight-bold mb-3">What's next?</h2>
32-
33-
<v-layout justify-center>
34-
<a
35-
v-for="(next, i) in whatsNext"
36-
:key="i"
37-
:href="next.href"
38-
class="subheading mx-3"
39-
target="_blank"
40-
>
41-
{{ next.text }}
42-
</a>
43-
</v-layout>
44-
</v-flex>
45-
46-
<v-flex
47-
xs12
48-
mb-5
49-
>
50-
<h2 class="headline font-weight-bold mb-3">Important Links</h2>
51-
52-
<v-layout justify-center>
53-
<a
54-
v-for="(link, i) in importantLinks"
55-
:key="i"
56-
:href="link.href"
57-
class="subheading mx-3"
58-
target="_blank"
59-
>
60-
{{ link.text }}
61-
</a>
62-
</v-layout>
63-
</v-flex>
64-
65-
<v-flex
66-
xs12
67-
mb-5
68-
>
69-
<h2 class="headline font-weight-bold mb-3">Ecosystem</h2>
70-
71-
<v-layout justify-center>
72-
<a
73-
v-for="(eco, i) in ecosystem"
74-
:key="i"
75-
:href="eco.href"
76-
class="subheading mx-3"
77-
target="_blank"
78-
>
79-
{{ eco.text }}
80-
</a>
81-
</v-layout>
82-
</v-flex>
8326
</v-layout>
8427
</v-container>
8528
</template>
8629

8730
<script>
8831
export default {
89-
data: () => ({
90-
ecosystem: [
91-
{
92-
text: 'vuetify-loader',
93-
href: 'https://github.com/vuetifyjs/vuetify-loader',
94-
},
95-
{
96-
text: 'github',
97-
href: 'https://github.com/vuetifyjs/vuetify',
98-
},
99-
{
100-
text: 'awesome-vuetify',
101-
href: 'https://github.com/vuetifyjs/awesome-vuetify',
102-
},
103-
],
104-
importantLinks: [
105-
{
106-
text: 'Documentation',
107-
href: 'https://vuetifyjs.com',
108-
},
109-
{
110-
text: 'Chat',
111-
href: 'https://community.vuetifyjs.com',
112-
},
113-
{
114-
text: 'Made with Vuetify',
115-
href: 'https://madewithvuejs.com/vuetify',
116-
},
117-
{
118-
text: 'Twitter',
119-
href: 'https://twitter.com/vuetifyjs',
120-
},
121-
{
122-
text: 'Articles',
123-
href: 'https://medium.com/vuetify',
124-
},
125-
],
126-
whatsNext: [
127-
{
128-
text: 'Explore components',
129-
href: 'https://vuetifyjs.com/components/api-explorer',
130-
},
131-
{
132-
text: 'Select a layout',
133-
href: 'https://vuetifyjs.com/layout/pre-defined',
134-
},
135-
{
136-
text: 'Frequently Asked Questions',
137-
href: 'https://vuetifyjs.com/getting-started/frequently-asked-questions',
138-
},
139-
],
140-
}),
14132
};
14233
</script>

src/components/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export { default as HelloWorld } from './HelloWorld';
2+
export { default as Card } from './Card';
3+
export { default as FormAlerts } from './FormAlerts';
4+
export { default as FormFields } from './FormFields';
5+
export { default as FormButtons } from './FormButtons';

0 commit comments

Comments
 (0)