create base app structure with vue cli

This commit is contained in:
Axolotle 2020-07-06 19:08:34 +02:00
parent 7a8ee11040
commit dfd447f333
7 changed files with 11576 additions and 2 deletions

8
.gitignore vendored
View file

@ -7,8 +7,12 @@ debian/files
debian/yunohost-admin* debian/yunohost-admin*
# npm files # npm files
src/node_modules node_modules
src/npm-debug.log npm-debug.log
dist
# old
# Symlink to ca.crt file # Symlink to ca.crt file
ca.crt ca.crt

5
app/babel.config.js Normal file
View file

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}

11473
app/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

53
app/package.json Normal file
View file

@ -0,0 +1,53 @@
{
"name": "yunohost-admin",
"description": "YunoHost Admin web interface",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/YunoHost/yunohost-admin"
},
"author": "Yunohost",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/YunoHost/issues"
},
"homepage": "https://github.com/YunoHost/yunohost-admin",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.4.0",
"@vue/cli-plugin-eslint": "~4.4.0",
"@vue/cli-service": "~4.4.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"
]
}

17
app/public/index.html Normal file
View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

14
app/src/App.vue Normal file
View file

@ -0,0 +1,14 @@
<template>
<div id="app">
<p>Hello</p>
</div>
</template>
<script>
export default {
name: 'App',
}
</script>
<style>
</style>

8
app/src/main.js Normal file
View file

@ -0,0 +1,8 @@
import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')