base Vue client files (config, App, yarn [!] lock & packages, ignore)

This commit is contained in:
Xevion
2020-08-27 01:33:43 -05:00
parent 49de7dbd3d
commit d83cbf512b
10 changed files with 9078 additions and 0 deletions

23
client/.gitignore vendored Normal file
View File

@@ -0,0 +1,23 @@
.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?

5
client/babel.config.js Normal file
View File

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

47
client/package.json Normal file
View File

@@ -0,0 +1,47 @@
{
"name": "power-math",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@babel/parser": "^7.11.5",
"axios": "^0.20.0",
"core-js": "^3.6.5",
"gsap": "^3.5.1",
"vue": "^2.6.11"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"node-sass": "^4.14.1",
"sass-loader": "^10.0.1",
"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"
]
}

BIN
client/public/favicon.ico Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

19
client/public/index.html Normal file
View File

@@ -0,0 +1,19 @@
<!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="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,500,700,400italic|Material+Icons">
<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>

22
client/src/App.vue Normal file
View File

@@ -0,0 +1,22 @@
<template>
<div id="app">
</div>
</template>
<style lang="css">
</style>
<script>
export default {
name: 'App',
data() {
return {
currentQuestion: null
}
},
methods: {
fetchQuestion() {
}
}
}
</script>

BIN
client/src/assets/logo.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

27
client/src/main.js Normal file
View File

@@ -0,0 +1,27 @@
import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
import VueHighlightJS from 'vue-highlightjs'
import VueMaterial from 'vue-material'
import json from 'highlight.js/lib/languages/css';
import 'vue-material/dist/vue-material.min.css'
import 'vue-material/dist/theme/default.css'
import 'highlight.js/styles/default.css';
import InfiniteLoading from "vue-infinite-loading";
Vue.use(VueHighlightJS, {languages: {json}})
Vue.use(VueMaterial)
Vue.use(VueAxios, axios)
Vue.use(InfiniteLoading, {
system: {
// throttleLimit: 500,
/* other settings need to configure */
},
});
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')

3
client/vue.config.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
outputDir: './dist/',
}

8932
client/yarn.lock Normal file
View File

File diff suppressed because it is too large Load Diff