Skip to content

Commit

Permalink
Initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Richmond committed Sep 18, 2018
1 parent 89cf87d commit be690c3
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 123 deletions.
31 changes: 4 additions & 27 deletions README.md
@@ -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
```
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -10,6 +10,7 @@
"test:e2e": "vue-cli-service test:e2e" "test:e2e": "vue-cli-service test:e2e"
}, },
"dependencies": { "dependencies": {
"bootstrap": "4.1.3",
"vue": "^2.5.17", "vue": "^2.5.17",
"vue-router": "^3.0.1" "vue-router": "^3.0.1"
}, },
Expand Down
41 changes: 29 additions & 12 deletions src/App.vue
@@ -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 removed src/assets/logo.png
Binary file not shown.
63 changes: 0 additions & 63 deletions src/components/HelloWorld.vue

This file was deleted.

10 changes: 1 addition & 9 deletions src/router.ts
Expand Up @@ -10,14 +10,6 @@ export default new Router({
path: '/', path: '/',
name: 'home', name: 'home',
component: Home component: Home
},
{
path: '/about',
name: 'about',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
} }
] ]
}) })
5 changes: 0 additions & 5 deletions src/views/About.vue

This file was deleted.

8 changes: 1 addition & 7 deletions src/views/Home.vue
@@ -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>
2 changes: 2 additions & 0 deletions tsconfig.json
Expand Up @@ -8,6 +8,8 @@
"moduleResolution": "node", "moduleResolution": "node",
"esModuleInterop": true, "esModuleInterop": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"strictPropertyInitialization": false,
"experimentalDecorators": true,
"sourceMap": true, "sourceMap": true,
"baseUrl": ".", "baseUrl": ".",
"types": [ "types": [
Expand Down
3 changes: 3 additions & 0 deletions vue.config.js
@@ -1,3 +1,6 @@
module.exports = { module.exports = {
devServer: {
proxy: process.env.PROXY
},
lintOnSave: false lintOnSave: false
} }
4 changes: 4 additions & 0 deletions yarn.lock
Expand Up @@ -1445,6 +1445,10 @@ boolbase@^1.0.0, boolbase@~1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"


bootstrap@4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.1.3.tgz#0eb371af2c8448e8c210411d0cb824a6409a12be"

brace-expansion@^1.0.0, brace-expansion@^1.1.7: brace-expansion@^1.0.0, brace-expansion@^1.1.7:
version "1.1.11" version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
Expand Down

0 comments on commit be690c3

Please sign in to comment.