调整目录结构
17
package.json
@ -2,25 +2,28 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "npm run development",
|
"dev": "npm run development",
|
||||||
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"development": "mix",
|
||||||
"watch": "npm run development -- --watch",
|
"watch": "mix watch",
|
||||||
"watch-poll": "npm run watch -- --watch-poll",
|
"watch-poll": "mix watch -- --watch-options-poll=1000",
|
||||||
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"hot": "mix watch --hot",
|
||||||
"prod": "npm run production",
|
"prod": "npm run production",
|
||||||
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
|
"production": "mix --production"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"axios": "^0.21",
|
"axios": "^0.21",
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"css-loader": "^0.28.7",
|
"css-loader": "^0.28.7",
|
||||||
"internal-ip": "^6.2.0",
|
|
||||||
"jquery": "^3.5.1",
|
"jquery": "^3.5.1",
|
||||||
"laravel-mix": "^2.0",
|
"laravel-mix": "^6.0.6",
|
||||||
"lodash": "^4.17.19",
|
"lodash": "^4.17.19",
|
||||||
"postcss": "^8.1.14",
|
"postcss": "^8.1.14",
|
||||||
|
"resolve-url-loader": "^3.1.3",
|
||||||
|
"sass": "^1.34.0",
|
||||||
|
"sass-loader": "^11.1.1",
|
||||||
"stylus": "^0.54.8",
|
"stylus": "^0.54.8",
|
||||||
"stylus-loader": "^3.0.2",
|
"stylus-loader": "^3.0.2",
|
||||||
"vue": "^2.6.12",
|
"vue": "^2.6.12",
|
||||||
|
"vue-loader": "^15.9.7",
|
||||||
"vue-router": "^3.4.2",
|
"vue-router": "^3.4.2",
|
||||||
"vue-template-compiler": "^2.6.11"
|
"vue-template-compiler": "^2.6.11"
|
||||||
},
|
},
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Spinner from "./common/components/Spinner";
|
import Spinner from "./components/Spinner";
|
||||||
export default {
|
export default {
|
||||||
components: {Spinner},
|
components: {Spinner},
|
||||||
data () {
|
data () {
|
16
resources/js/app.js → resources/assets/js/app.js
vendored
@ -3,21 +3,21 @@ import App from './App.vue'
|
|||||||
import routes from './routes'
|
import routes from './routes'
|
||||||
import VueRouter from 'vue-router'
|
import VueRouter from 'vue-router'
|
||||||
import ViewUI from 'view-design-hi';
|
import ViewUI from 'view-design-hi';
|
||||||
import Language from './common/language/index'
|
import Language from './language/index'
|
||||||
import Mixins from './common/mixins/index'
|
import Mixins from './mixins/index'
|
||||||
|
|
||||||
import './common/functions/index'
|
import './functions/common'
|
||||||
import './main'
|
import './functions/app'
|
||||||
|
|
||||||
Vue.use(VueRouter);
|
Vue.use(VueRouter);
|
||||||
Vue.use(ViewUI);
|
Vue.use(ViewUI);
|
||||||
Vue.use(Language);
|
Vue.use(Language);
|
||||||
Vue.use(Mixins);
|
Vue.use(Mixins);
|
||||||
|
|
||||||
import PageTitle from './common/components/PageTitle.vue'
|
import PageTitle from './components/PageTitle.vue'
|
||||||
import Loading from './common/components/Loading.vue'
|
import Loading from './components/Loading.vue'
|
||||||
import AutoTip from './common/components/AutoTip.vue'
|
import AutoTip from './components/AutoTip.vue'
|
||||||
import TableAction from './common/components/TableAction.vue'
|
import TableAction from './components/TableAction.vue'
|
||||||
|
|
||||||
Vue.component('PageTitle', PageTitle);
|
Vue.component('PageTitle', PageTitle);
|
||||||
Vue.component('Loading', Loading);
|
Vue.component('Loading', Loading);
|
47
resources/assets/js/pages/404.vue
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<template>
|
||||||
|
<div class="page-404">
|
||||||
|
<div class="flex-center position-ref full-height">
|
||||||
|
<div class="code">404</div>
|
||||||
|
<div class="message">Not Found</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
:global {
|
||||||
|
.page-404 {
|
||||||
|
background-color: #fff;
|
||||||
|
color: #636b6f;
|
||||||
|
font-weight: 400;
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
.full-height {
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-center {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.position-ref {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code {
|
||||||
|
border-right: 2px solid;
|
||||||
|
font-size: 26px;
|
||||||
|
padding: 0 15px 0 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message {
|
||||||
|
font-size: 18px;
|
||||||
|
padding: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
27
resources/assets/js/routes.js
vendored
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
export default [
|
||||||
|
{
|
||||||
|
name: 'index',
|
||||||
|
path: '/',
|
||||||
|
component: () => import('./pages/index.vue')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'dashboard',
|
||||||
|
path: '/dashboard',
|
||||||
|
component: () => import('./pages/dashboard/index.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'project-detail',
|
||||||
|
path: '/project/:id',
|
||||||
|
component: () => import('./pages/project/detail.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'users-login',
|
||||||
|
path: '/users/login',
|
||||||
|
component: () => import('./pages/users/login.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '404',
|
||||||
|
path: '*',
|
||||||
|
component: () => import('./pages/404.vue')
|
||||||
|
},
|
||||||
|
]
|
1
resources/assets/statics/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
## public目录所有资源将拷贝到public下
|
BIN
resources/assets/statics/images/loading.png
Normal file
After Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 542 KiB After Width: | Height: | Size: 542 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |