Skip to content

Commit

Permalink
breaking(phpjavac#4): 💥后台页面迁移
Browse files Browse the repository at this point in the history
  • Loading branch information
CurryPaste committed Nov 5, 2021
1 parent 121fad2 commit 9e36c6f
Show file tree
Hide file tree
Showing 46 changed files with 10,291 additions and 0 deletions.
35 changes: 35 additions & 0 deletions blog_admin/.gitignore
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
16 changes: 16 additions & 0 deletions blog_admin/README.md
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
5 changes: 5 additions & 0 deletions blog_admin/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/app'
]
}
34 changes: 34 additions & 0 deletions blog_admin/package.json
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"
}
}
5 changes: 5 additions & 0 deletions blog_admin/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {}
}
}
Binary file added blog_admin/public/favicon.ico
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.
Binary file added blog_admin/public/img/icons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog_admin/public/img/icons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog_admin/public/img/icons/favicon-32x32.png
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.
Binary file added blog_admin/public/img/icons/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
149 changes: 149 additions & 0 deletions blog_admin/public/img/icons/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions blog_admin/public/index.html
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>
20 changes: 20 additions & 0 deletions blog_admin/public/manifest.json
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"
}
2 changes: 2 additions & 0 deletions blog_admin/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
16 changes: 16 additions & 0 deletions blog_admin/src/App.vue
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>
Binary file added blog_admin/src/assets/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog_admin/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions blog_admin/src/axios/api.js
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;
Loading

0 comments on commit 9e36c6f

Please sign in to comment.