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

Skip to content

Authentication views #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'import/extensions': 'off',
'import/no-cycle': 'off'
},
parserOptions: {
parser: 'babel-eslint',
Expand Down
42 changes: 42 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
},
"dependencies": {
"@mdi/font": "^3.6.95",
"axios": "^0.19.0",
"codemirror": "^5.48.4",
"core-js": "^2.6.5",
"roboto-fontface": "*",
"vue": "^2.6.10",
"vue-codemirror": "^4.0.6",
"vue-fragment": "^1.5.1",
"vue-router": "^3.0.3",
"vuetify": "^2.0.0",
"vuex": "^3.0.1",
Expand Down
15 changes: 3 additions & 12 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
<template>
<Layout>
<template v-slot:navigation>
<v-btn
text
href="https://github.com/vuetifyjs/vuetify/releases/latest"
target="_blank"
>
<span class="mr-2">Latest Release</span>
</v-btn>
</template>
<HelloWorld />
<v-container>
<router-view></router-view>
</v-container>
</Layout>
</template>

<script>
import HelloWorld from './components/HelloWorld';
import Layout from './components/layout';

export default {
name: 'App',
components: {
HelloWorld,
Layout,
},
data: () => ({
Expand Down
Binary file modified src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/components/Card.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<v-card
:loading="false"
class="mx-auto my-12"
>
<v-card-title>
<slot name="title"></slot>
</v-card-title>
<v-card-text>
<slot></slot>
</v-card-text>
<v-divider class="mx-4"></v-divider>
<v-card-actions>
<slot name="actions"></slot>
</v-card-actions>
</v-card>
</template>

<script>
export default {
name: 'Card',
};
</script>

<style scoped>

</style>
27 changes: 27 additions & 0 deletions src/components/FormAlerts.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<fragment>
<v-alert
v-for="({type, message}, index) in alerts"
dismissible
:type="type"
class="mb-4"
:value="!!message"
:key="index"
>
{{ message }}
</v-alert>
</fragment>
</template>

<script>
export default {
name: 'FormAlerts',
props: {
alerts: Array,
},
};
</script>

<style scoped>

</style>
27 changes: 27 additions & 0 deletions src/components/FormButtons.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<fragment>
<v-btn
v-for="({ icon, value, click }, index) in buttons"
color="deep-purple accent-4"
text
@click="click"
:key="index"
>
<v-icon left>{{ icon }}</v-icon>
{{ value }}
</v-btn>
</fragment>
</template>

<script>
export default {
name: 'FormButtons',
props: {
buttons: Array,
},
};
</script>

<style scoped>

</style>
28 changes: 28 additions & 0 deletions src/components/FormFields.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<fragment>
<v-text-field
v-for="({ label, placeholder, type, icon, value, input }, index) in fields"
:label="label"
:placeholder="placeholder"
:type="type"
:prepend-icon="icon"
:value="value"
@input="input"
:key="index"
>
</v-text-field>
</fragment>
</template>

<script>
export default {
name: 'FormFields',
props: {
fields: Array,
},
};
</script>

<style scoped>

</style>
115 changes: 3 additions & 112 deletions src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,128 +15,19 @@

<v-flex mb-4>
<h1 class="display-2 font-weight-bold mb-3">
Welcome to Vuetify
Welcome to OpenRank
</h1>
<p class="subheading font-weight-regular">
For help and collaboration with other Vuetify developers,
For help and collaboration with other OpenRank developers,
<br>please join our online
<a href="https://community.vuetifyjs.com" target="_blank">Discord Community</a>
<a href="https://discord.gg/qEA8vxd" target="_blank">Discord Community</a>
</p>
</v-flex>

<v-flex
mb-5
xs12
>
<h2 class="headline font-weight-bold mb-3">What's next?</h2>

<v-layout justify-center>
<a
v-for="(next, i) in whatsNext"
:key="i"
:href="next.href"
class="subheading mx-3"
target="_blank"
>
{{ next.text }}
</a>
</v-layout>
</v-flex>

<v-flex
xs12
mb-5
>
<h2 class="headline font-weight-bold mb-3">Important Links</h2>

<v-layout justify-center>
<a
v-for="(link, i) in importantLinks"
:key="i"
:href="link.href"
class="subheading mx-3"
target="_blank"
>
{{ link.text }}
</a>
</v-layout>
</v-flex>

<v-flex
xs12
mb-5
>
<h2 class="headline font-weight-bold mb-3">Ecosystem</h2>

<v-layout justify-center>
<a
v-for="(eco, i) in ecosystem"
:key="i"
:href="eco.href"
class="subheading mx-3"
target="_blank"
>
{{ eco.text }}
</a>
</v-layout>
</v-flex>
</v-layout>
</v-container>
</template>

<script>
export default {
data: () => ({
ecosystem: [
{
text: 'vuetify-loader',
href: 'https://github.com/vuetifyjs/vuetify-loader',
},
{
text: 'github',
href: 'https://github.com/vuetifyjs/vuetify',
},
{
text: 'awesome-vuetify',
href: 'https://github.com/vuetifyjs/awesome-vuetify',
},
],
importantLinks: [
{
text: 'Documentation',
href: 'https://vuetifyjs.com',
},
{
text: 'Chat',
href: 'https://community.vuetifyjs.com',
},
{
text: 'Made with Vuetify',
href: 'https://madewithvuejs.com/vuetify',
},
{
text: 'Twitter',
href: 'https://twitter.com/vuetifyjs',
},
{
text: 'Articles',
href: 'https://medium.com/vuetify',
},
],
whatsNext: [
{
text: 'Explore components',
href: 'https://vuetifyjs.com/components/api-explorer',
},
{
text: 'Select a layout',
href: 'https://vuetifyjs.com/layout/pre-defined',
},
{
text: 'Frequently Asked Questions',
href: 'https://vuetifyjs.com/getting-started/frequently-asked-questions',
},
],
}),
};
</script>
5 changes: 5 additions & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export { default as HelloWorld } from './HelloWorld';
export { default as Card } from './Card';
export { default as FormAlerts } from './FormAlerts';
export { default as FormFields } from './FormFields';
export { default as FormButtons } from './FormButtons';
Loading