Skip to content

Commit

Permalink
删除了旧版前端,添加了指向新版前端的链接
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Nov 16, 2024
1 parent c15b07f commit 39e43fe
Show file tree
Hide file tree
Showing 63 changed files with 121 additions and 6,684 deletions.
25 changes: 6 additions & 19 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,6 @@ app.use("/user", router_register);
var router_admin = require("./server/router_my.js");
app.use("/my", router_admin);

//系统平台路由
var router_admin = require("./server/router_admin.js");
app.use("/admin", router_admin);

//搜索api
var router_search = require("./server/router_search.js");
app.use("/searchapi", router_search);
Expand All @@ -232,20 +228,6 @@ app.use("/project", router_project);
//项目处理路由
var router_comment = require("./server/router_comment.js");
app.use("/comment", router_comment);
app.get("/about", function (req, res, next) {
res.render("about.ejs");
});
app.get("/share", function (req, res, next) {
res.render("share.ejs");
});

app.get("/search", function (req, res, next) {
res.render("search.ejs");
});

//python路由
var router_python = require("./server/router_python.js");
app.use("/python", router_python);

app.get("/check", function (req, res, next) {
res.status(200).json({
Expand All @@ -270,7 +252,12 @@ app.use((err, req, res, next) => {
//放在最后,友好的处理地址不存在的访问
app.all("*", function (req, res, next) {
res.locals.tipType = "访问错误";
res.render("404.ejs");
res.status(404).json({
status: "error",
code: "404",
message: "找不到页面",
});

});

module.exports = app;
1 change: 0 additions & 1 deletion data/material/asset/0a5b8c55b5ef147f5fdf67ddab3bab28.svg

This file was deleted.

Binary file not shown.
1 change: 0 additions & 1 deletion data/material/asset/365a43dce18a8020c6e2ba44f4507836.svg

This file was deleted.

1 change: 0 additions & 1 deletion data/material/asset/7cb4e1f10e1b712eed814f04b40c7882.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion data/material/asset/f4f02527595957f021eca4b4bcdc5b45.svg

This file was deleted.

Binary file removed data/upload_tmp/-O_f2MCqcNuLSJ-rCl8mRwU7.webp
Binary file not shown.
Binary file removed data/upload_tmp/Sylosv78BeOaO5J-HwshiAKd.original
Binary file not shown.
Binary file removed data/upload_tmp/bPExd9Zi7VKQ5FIvSFQDKLYn
Binary file not shown.
Binary file removed data/upload_tmp/gJkgHghb4BcEmrmP89tPX66l.webp
Binary file not shown.
Binary file removed data/upload_tmp/ulFgB7e0JFp7f4T7zQfeK8ha
Binary file not shown.
Binary file removed data/upload_tmp/vY5xvnoDu4gSPQ1EEuzq2c1n.webp
Binary file not shown.
Binary file removed data/upload_tmp/zEv8nHojae-h0eweDNxjNvuq.webp
Binary file not shown.
Binary file removed data/user/1
Binary file not shown.
19 changes: 1 addition & 18 deletions server/router_account.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,9 @@ router.all("*", function (req, res, next) {
}
})();
*/
const request = require("request");
router.get("/", function (req, res) {
res.render("user.ejs");
});

router.get("/login", function (req, res, next) {
var SQL = `SELECT id FROM sys_ini WHERE iniKey='regist' AND iniValue=1 LIMIT 1`;
DB.query(SQL, function (err, Regist) {
if (err || Regist.length == 0) {
res.locals.reg = 0;
} else {
res.locals.reg = 1;
}
res.render("login_or_register.ejs");
});
});

router.get("/repw", function (req, res) {
res.render("repw.ejs");
});

const geetest = require("./lib/captcha/geetest.js");
//geetest,
router.post("/login", async function (req, res, next) {
Expand Down
Loading

0 comments on commit 39e43fe

Please sign in to comment.