Skip to content

Commit

Permalink
πŸ— : init new frontend application
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubuisson committed Apr 9, 2020
1 parent 997808c commit 3c69763
Show file tree
Hide file tree
Showing 9 changed files with 12,160 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 1%
last 2 versions
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
};
12,067 changes: 12,067 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "client",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.6.4",
"vue": "^2.6.11",
"vue-router": "^3.1.5",
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.2.0",
"@vue/cli-plugin-eslint": "~4.2.0",
"@vue/cli-plugin-router": "~4.2.0",
"@vue/cli-plugin-vuex": "~4.2.0",
"@vue/cli-service": "~4.2.0",
"@vue/eslint-config-airbnb": "^5.0.2",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-vue": "^6.1.2",
"vue-template-compiler": "^2.6.11"
}
}
11 changes: 11 additions & 0 deletions src/main/client/app/app-routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const appRoutes = [];

export default new Router({
mode: 'history',
routes: [...appRoutes],
});
9 changes: 9 additions & 0 deletions src/main/client/app/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<div id="app">
<router-view />
</div>
</template>

<style>
</style>
10 changes: 10 additions & 0 deletions src/main/client/app/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Vue from 'vue';
import App from './app.vue';
import router from './app-routes';

Vue.config.productionTip = false;

new Vue({
router,
render: (h) => h(App),
}).$mount('#app');
Binary file added src/main/client/public/favicon.ico
Binary file not shown.
27 changes: 27 additions & 0 deletions src/main/client/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<!-- mobile metas -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">

<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">

<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>Gaia - A terraform UI</title>
</head>
<body>
<noscript>
<strong>
We're sorry but frontend doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
</body>
</html>

0 comments on commit 3c69763

Please sign in to comment.