forked from phpjavac/Xun-Z
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
121fad2
commit 9e36c6f
Showing
46 changed files
with
10,291 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# compiled output | ||
/dist | ||
/node_modules | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
pnpm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# OS | ||
.DS_Store | ||
|
||
# Tests | ||
/coverage | ||
/.nyc_output | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json |
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,16 @@ | ||
# VUE-ADMIN-BLOG | ||
|
||
**说明** | ||
|
||
https://github.com/phpjavac/nuxt-blog 的后端管理系统 | ||
施工中.. | ||
|
||
# 使用 | ||
|
||
> git clone https://github.com/phpjavac/adminBlog.git | ||
> cd adminBlog | ||
> yarn | ||
> yarn server |
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/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,34 @@ | ||
{ | ||
"name": "blogadmin", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.19.0", | ||
"core-js": "^2.6.5", | ||
"element-ui": "^2.10.1", | ||
"mavon-editor": "^2.7.5", | ||
"pug": "^2.0.4", | ||
"pug-plain-loader": "^1.0.0", | ||
"register-service-worker": "^1.6.2", | ||
"stylus": "^0.54.5", | ||
"vue": "^2.6.10", | ||
"vue-quill-editor": "^3.0.6", | ||
"vue-router": "^3.0.3" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "^3.9.0", | ||
"@vue/cli-plugin-eslint": "^3.9.0", | ||
"@vue/cli-plugin-pwa": "^3.9.0", | ||
"@vue/cli-service": "^3.9.0", | ||
"babel-eslint": "^10.0.1", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"stylus-loader": "^3.0.2", | ||
"vue-template-compiler": "^2.6.10" | ||
} | ||
} |
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 = { | ||
plugins: { | ||
autoprefixer: {} | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,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>blogadmin</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong>We're sorry but blogadmin 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> |
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,20 @@ | ||
{ | ||
"name": "blogadmin", | ||
"short_name": "blogadmin", | ||
"icons": [ | ||
{ | ||
"src": "./img/icons/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "./img/icons/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"background_color": "#000000", | ||
"theme_color": "#4DBA87" | ||
} |
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,2 @@ | ||
User-agent: * | ||
Disallow: |
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,16 @@ | ||
<template> | ||
<div id="app"> | ||
<router-view/> | ||
</div> | ||
</template> | ||
<style lang="stylus"> | ||
body | ||
margin 0 | ||
padding 0 | ||
#app | ||
font-family 'Avenir', Helvetica, Arial, sans-serif | ||
-webkit-font-smoothing antialiased | ||
-moz-osx-font-smoothing grayscale | ||
text-align center | ||
color #2c3e50 | ||
</style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,70 @@ | ||
import axios from 'axios'; | ||
|
||
class Api { | ||
$http = axios.create({ | ||
baseURL: '//localhost:3000/api/v1/', | ||
headers: { | ||
token: `${localStorage.token}`, | ||
}, | ||
}); | ||
catch () { | ||
console.log(this); | ||
} | ||
|
||
register(data) { | ||
return this.$http.post('./api/user/register', data); | ||
} | ||
/** 登录接口 */ | ||
login(data) { | ||
return this.$http.post('user/login', data); | ||
} | ||
|
||
getUser() { | ||
return this.$http.get('./api/user'); | ||
} | ||
|
||
addTag(data) { | ||
return this.$http.post('./api/article/addtag', data); | ||
} | ||
getTagList() { | ||
return this.$http.get('./api/article/taglist'); | ||
|
||
} | ||
deleteTag(id) { | ||
return this.$http.delete(`./api/article/deletetag/${id}`); | ||
} | ||
createArticle(data) { | ||
return this.$http.post('blog/submitBlog', data); | ||
} | ||
getArticleList(data) { | ||
return this.$http.post(`blog/findAll`, { | ||
pageNo: data.page, | ||
pageSize: data.pageSize | ||
}); | ||
} | ||
// 获取文章详情 | ||
getArticle(id) { | ||
return this.$http.get(`blog/findOne/${id}`); | ||
} | ||
deleteArticle(id) { | ||
return this.$http.delete(`./api/article`, { | ||
params: { | ||
id: id | ||
} | ||
}); | ||
} | ||
// 获取数据库里的工时 | ||
getworkingHours() { | ||
return this.$http.get(`./api/tool/getworkingHours`); | ||
} | ||
// 同步数据库里的工时 | ||
synchronizationWorkingHours() { | ||
return this.$http.get(`./api/tool/workingday`); | ||
} | ||
pulSynchronizationWorkingHours(data) { | ||
return this.$http.post("./api/tool/synchronizationWorkingHours", data); | ||
} | ||
|
||
} | ||
|
||
export default Api; |
Oops, something went wrong.