Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lee Richmond
committed
Sep 18, 2018
1 parent
89cf87d
commit be690c3
Showing
11 changed files
with
45 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,31 +1,8 @@ | |||
# employee-directory-vue | # employee-directory-vue | ||
|
|
||
## Project setup | Frontend for [Graphiti Rails Sample App](https://github.com/graphiti-api/employee_directory) | ||
``` | |||
yarn install | |||
``` | |||
|
|||
### Compiles and hot-reloads for development | |||
``` | |||
yarn run serve | |||
``` | |||
|
|||
### Compiles and minifies for production | |||
``` | |||
yarn run build | |||
``` | |||
|
|
||
### Lints and fixes files | |||
``` | |||
yarn run lint | |||
``` | |||
|
|||
### Run your unit tests | |||
``` | |||
yarn run test:unit | |||
``` | |||
|
|||
### Run your end-to-end tests | |||
``` | |||
yarn run test:e2e | |||
``` | ``` | ||
yarn install | |||
PROXY=http://localhost:3000 yarn serve | |||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,29 +1,46 @@ | |||
<template> | <template> | ||
<div id="app"> | <div id="app"> | ||
<div id="nav"> | |||
<router-link to="/">Home</router-link> | | |||
<router-link to="/about">About</router-link> | |||
</div> | |||
<router-view/> | <router-view/> | ||
</div> | </div> | ||
</template> | </template> | ||
|
|
||
<style lang="scss"> | <style lang="scss"> | ||
@import '~bootstrap/scss/bootstrap.scss'; | |||
#app { | #app { | ||
font-family: 'Avenir', Helvetica, Arial, sans-serif; | font-family: 'Avenir', Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | -webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | -moz-osx-font-smoothing: grayscale; | ||
text-align: center; | text-align: center; | ||
color: #2c3e50; | color: #2c3e50; | ||
} | } | ||
#nav { | |||
padding: 30px; | .query { | ||
a { | padding: 1rem; | ||
font-weight: bold; | |||
color: #2c3e50; | th a { | ||
&.router-link-exact-active { | cursor: pointer; | ||
color: #42b983; | } | ||
.meta { | |||
margin-top: 0.5rem; | |||
} | |||
.pagination { | |||
margin-left: 1rem; | |||
a { | |||
&:hover { | |||
color: darken(#90CAF9, 20%); | |||
cursor: pointer; | |||
} | |||
&:nth-child(2) { | |||
margin-left: 0.5rem; | |||
} | |||
} | } | ||
} | } | ||
} | } | ||
</style> | |||
.persist { | |||
padding: 1rem; | |||
} | |||
</style> |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,18 +1,12 @@ | |||
<template> | <template> | ||
<div class="home"> | <div class="home"> | ||
<img alt="Vue logo" src="../assets/logo.png"> | |||
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/> | |||
</div> | </div> | ||
</template> | </template> | ||
|
|
||
<script lang="ts"> | <script lang="ts"> | ||
import Vue from 'vue'; | import Vue from 'vue'; | ||
import HelloWorld from '@/components/HelloWorld.vue'; // @ is an alias to /src | |||
export default Vue.extend({ | export default Vue.extend({ | ||
name: 'home', | name: 'home', | ||
components: { | |||
HelloWorld, | |||
}, | |||
}); | }); | ||
</script> | </script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,6 @@ | |||
module.exports = { | module.exports = { | ||
devServer: { | |||
proxy: process.env.PROXY | |||
}, | |||
lintOnSave: false | lintOnSave: false | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters