-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
25 changed files
with
10,028 additions
and
157 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 | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
/_*/ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "departure-front-end", | ||
"version": "1.0.1", | ||
"private": true, | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.21.0", | ||
"bootstrap": "4.5.2", | ||
"core-js": "^3.6.5", | ||
"jquery": "3.5.1", | ||
"lodash": "^4.17.20", | ||
"notyf": "^3.9.0", | ||
"popper.js": "1.16.1", | ||
"vue": "^2.6.11", | ||
"vue-axios": "^3.1.3", | ||
"vue-router": "^3.2.0" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "~4.5.0", | ||
"@vue/cli-plugin-eslint": "~4.5.0", | ||
"@vue/cli-plugin-router": "~4.5.0", | ||
"@vue/cli-service": "~4.5.0", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^6.7.2", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"vue-template-compiler": "^2.6.11" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"plugin:vue/essential", | ||
"eslint:recommended" | ||
], | ||
"parserOptions": { | ||
"parser": "babel-eslint" | ||
}, | ||
"rules": {} | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not dead" | ||
] | ||
} |
File renamed without changes.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en" style="overflow-y: scroll;"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<title>Departure</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Vue from 'vue'; | ||
import App from './App.vue'; | ||
import router from './router'; | ||
import axios from 'axios'; | ||
import VueAxios from 'vue-axios'; | ||
|
||
import 'bootstrap/dist/css/bootstrap.css'; | ||
import 'bootstrap'; | ||
|
||
import { Notyf } from 'notyf'; | ||
import 'notyf/notyf.min.css'; | ||
|
||
Vue.config.productionTip = false; | ||
|
||
Vue.use(VueAxios, axios); | ||
|
||
new Vue({ | ||
router, | ||
provide: () => { | ||
return { | ||
notyf: new Notyf({ | ||
duration: 4000 | ||
}) | ||
} | ||
}, | ||
render: h => h(App) | ||
}).$mount('#app') |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Vue from 'vue' | ||
import VueRouter from 'vue-router' | ||
|
||
import Ratp from '../views/Ratp.vue' | ||
import Transilien from '../views/Transilien.vue' | ||
import Sncf from '../views/Sncf.vue' | ||
import NationalRail from '../views/NationalRail.vue' | ||
import TflTube from '../views/TflTube.vue' | ||
import Ns from '../views/NS.vue' | ||
import Admin from '../views/Admin.vue' | ||
|
||
Vue.use(VueRouter) | ||
|
||
const routes = [ | ||
{ path: '/ratp', component: Ratp }, | ||
{ path: '/transilien', component: Transilien }, | ||
{ path: '/sncf', component: Sncf }, | ||
{ path: '/national-rail', component: NationalRail }, | ||
{ path: '/tfl-tube', component: TflTube }, | ||
{ path: '/ns', component: Ns }, | ||
{ path: '/admin', component: Admin }, | ||
] | ||
|
||
const router = new VueRouter({ | ||
routes // short for `routes: routes` | ||
}) | ||
|
||
export default router |
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
Oops, something went wrong.