forked from admin/deShanXiao
Compare commits
18 Commits
@@NmhYd
...
lxbfyeaa-p
| Author | SHA1 | Date | |
|---|---|---|---|
| f0b9d35005 | |||
| 64964829f3 | |||
| 04e94fac1c | |||
| 5997679765 | |||
| 371b4ed7e1 | |||
| 4192611983 | |||
| f1131f9da4 | |||
| bda8c559c8 | |||
| b1d2def975 | |||
| ce4dd54a69 | |||
| f9dc0c3782 | |||
| 894e76f04b | |||
| dd22f452d5 | |||
| b2357d16cf | |||
| 39358e53c7 | |||
| 2f1f604cd8 | |||
| cd2d20b0da | |||
| 8d585fa60b |
@@ -0,0 +1 @@
|
|||||||
|
555
|
||||||
@@ -1,24 +1 @@
|
|||||||
require("module-alias/register"); // 别名加载
|
555
|
||||||
|
|
||||||
import express from "express";
|
|
||||||
import bodyParser from "body-parser";
|
|
||||||
import routerIndex from "./src/router/index";
|
|
||||||
import { createConnection } from "typeorm";
|
|
||||||
import cors from "cors";
|
|
||||||
|
|
||||||
const app = express();
|
|
||||||
const port = 8101;
|
|
||||||
createConnection().then(() => {
|
|
||||||
console.log("数据库连接成功!");
|
|
||||||
app.listen(port, () => {
|
|
||||||
console.log(`开始监听${port}了`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
app.use(bodyParser.urlencoded({ extended: true })); // 进行url解码
|
|
||||||
app.use(bodyParser.json());
|
|
||||||
|
|
||||||
app.use(cors());
|
|
||||||
|
|
||||||
// 匹配接口路由
|
|
||||||
app.use("/", routerIndex);
|
|
||||||
7472
backEnd/package-lock.json
generated
7472
backEnd/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,49 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "interface",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "",
|
|
||||||
"type": "commonjs",
|
|
||||||
"main": "index.ts",
|
|
||||||
"scripts": {
|
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
|
||||||
"db": "rd ./src/entity & typeorm-model-generator -h localhost -d baseSystem -p 3306 -u root -x 123456 -e mysql -o ./src/entity --noConfig true --ce pascal --cp camel",
|
|
||||||
"dev": "nodemon --watch 'src/**/*.ts' --exec ts-node ./index.ts --development",
|
|
||||||
"build": "webpack "
|
|
||||||
},
|
|
||||||
"author": "",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/body-parser": "^1.19.2",
|
|
||||||
"@types/jsonwebtoken": "^9.0.9",
|
|
||||||
"axios": "^1.3.4",
|
|
||||||
"bcrypt": "^5.1.0",
|
|
||||||
"bcryptjs": "^2.4.3",
|
|
||||||
"body-parser": "^1.20.2",
|
|
||||||
"dayjs": "^1.11.10",
|
|
||||||
"dotenv": "^16.3.1",
|
|
||||||
"express": "^4.18.2",
|
|
||||||
"jsonwebtoken": "^9.0.2",
|
|
||||||
"module-alias": "^2.2.3",
|
|
||||||
"multer": "^1.4.5-lts.1",
|
|
||||||
"mysql": "^2.18.1",
|
|
||||||
"reflect-metadata": "^0.1.13",
|
|
||||||
"ts-loader": "^9.5.1",
|
|
||||||
"typeorm": "^0.2.9",
|
|
||||||
"webpack": "^5.95.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/bcrypt": "^5.0.0",
|
|
||||||
"@types/cors": "^2.8.17",
|
|
||||||
"@types/express": "^4.17.17",
|
|
||||||
"@types/module-alias": "^2.0.4",
|
|
||||||
"@types/mysql": "^2.15.21",
|
|
||||||
"cors": "^2.8.5",
|
|
||||||
"ts-node": "^10.9.1",
|
|
||||||
"webpack-cli": "^5.1.4"
|
|
||||||
},
|
|
||||||
"_moduleAliases": {
|
|
||||||
"@": "./src",
|
|
||||||
"@router": "./src/router",
|
|
||||||
"@entity": "./src/entity"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,22 +1 @@
|
|||||||
import path from "path";
|
555
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: "./index.ts",
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.ts$/,
|
|
||||||
use: "ts-loader",
|
|
||||||
exclude: /node_modules/,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: [".ts", ".js"],
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
filename: "index.js",
|
|
||||||
path: path.resolve(__dirname, "dist"),
|
|
||||||
},
|
|
||||||
target: "node",
|
|
||||||
};
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
VITE_API_BASE_URL = "http://localhost:8101"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
VITE_API_BASE_URL = "http://106.52.204.157/api"
|
|
||||||
25
frontEnd/.gitignore
vendored
25
frontEnd/.gitignore
vendored
@@ -1,25 +0,0 @@
|
|||||||
# Logs
|
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
pnpm-debug.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
node_modules
|
|
||||||
.vscode
|
|
||||||
dist
|
|
||||||
dist-ssr
|
|
||||||
*.local
|
|
||||||
|
|
||||||
# Editor directories and files
|
|
||||||
.vscode/*
|
|
||||||
!.vscode/extensions.json
|
|
||||||
.idea
|
|
||||||
.DS_Store
|
|
||||||
*.suo
|
|
||||||
*.ntvs*
|
|
||||||
*.njsproj
|
|
||||||
*.sln
|
|
||||||
*.sw?
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
# Vue 3 + TypeScript + Vite
|
|
||||||
|
|
||||||
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
||||||
|
|
||||||
## Recommended IDE Setup
|
|
||||||
|
|
||||||
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
|
|
||||||
|
|
||||||
## Type Support For `.vue` Imports in TS
|
|
||||||
|
|
||||||
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
|
|
||||||
|
|
||||||
1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
|
|
||||||
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
|
|
||||||
|
|
||||||
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<link rel="icon" type="image/svg+xml" href="./index.ico" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>德孝善延伸服务系统</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="app"></div>
|
|
||||||
<!-- <script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_29405_22.fc87eeefd2303d03e310328c39223ebb.js"></script> -->
|
|
||||||
<script type="module" src="/src/main.ts"></script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
@@ -1,14 +1 @@
|
|||||||
<template>
|
-1 OR 5*5=25 --
|
||||||
<div class="view-content">
|
|
||||||
<router-view></router-view>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script setup lang="ts">
|
|
||||||
</script>
|
|
||||||
<style scoped>
|
|
||||||
.view-content {
|
|
||||||
min-height: 100vh;
|
|
||||||
min-width: 100vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
import { defineConfig } from "vite";
|
|
||||||
import vue from "@vitejs/plugin-vue";
|
|
||||||
import { join } from "path";
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
export default defineConfig({
|
|
||||||
plugins: [vue()],
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
"@": join(__dirname, "/src"),
|
|
||||||
},
|
|
||||||
extensions: [".js", ".vue"],
|
|
||||||
},
|
|
||||||
server: {
|
|
||||||
host: true,
|
|
||||||
},
|
|
||||||
css: {
|
|
||||||
preprocessorOptions: {
|
|
||||||
scss: {
|
|
||||||
api: "modern",
|
|
||||||
silenceDeprecations: ["legacy-js-api"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user