mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-11 02:05:15 +08:00
升级后端springboot和mysql依赖版本;升级前端依赖;移除前端无用依赖;微调分类详情页表格鼠标悬浮样式
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var debug = require('debug')('my express app');
|
|
||||||
var express = require('express');
|
var express = require('express');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var favicon = require('serve-favicon');
|
var favicon = require('serve-favicon');
|
||||||
@@ -84,7 +83,7 @@ app.use(function (err, req, res, next) {
|
|||||||
app.set('port', process.env.PORT || 3000);
|
app.set('port', process.env.PORT || 3000);
|
||||||
|
|
||||||
var server = app.listen(app.get('port'), function () {
|
var server = app.listen(app.get('port'), function () {
|
||||||
debug('Express server listening on port ' + server.address().port);
|
console.log('Express server listening on port ' + server.address().port);
|
||||||
|
|
||||||
// 引入站点配置文件
|
// 引入站点配置文件
|
||||||
global.site = require("./settings.json");
|
global.site = require("./settings.json");
|
||||||
|
@@ -12,20 +12,16 @@
|
|||||||
},
|
},
|
||||||
"description": "书栖网",
|
"description": "书栖网",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.15.0",
|
"body-parser": "^1.20.0",
|
||||||
"compression": "^1.7.4",
|
"compression": "^1.7.4",
|
||||||
"cookie-parser": "^1.4.0",
|
"cookie-parser": "^1.4.6",
|
||||||
"crypto": "^1.0.1",
|
|
||||||
"debug": "^2.2.0",
|
|
||||||
"dotenv": "^16.0.0",
|
"dotenv": "^16.0.0",
|
||||||
"ejs": "^3.1.6",
|
"ejs": "^3.1.6",
|
||||||
"element-plus": "^1.2.0-beta.6",
|
"express": "^4.17.3",
|
||||||
"express": "^4.14.0",
|
|
||||||
"fontmin": "^0.9.9",
|
"fontmin": "^0.9.9",
|
||||||
"fs": "^0.0.1-security",
|
"fs": "^0.0.1-security",
|
||||||
"gulp-rename": "^2.0.0",
|
"gulp-rename": "^2.0.0",
|
||||||
"morgan": "^1.7.0",
|
"morgan": "^1.10.0",
|
||||||
"mysql": "^2.18.1",
|
"serve-favicon": "^2.5.0"
|
||||||
"serve-favicon": "^2.3.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2,10 +2,32 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<%- include("./component/header.html"); %>
|
<%- include("./component/header.html"); %>
|
||||||
|
<style>
|
||||||
|
.main {
|
||||||
|
width: 80vw !important;
|
||||||
|
max-width: initial !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#book-table {
|
||||||
|
width: 100%;
|
||||||
|
/* border: 1px solid black; */
|
||||||
|
margin-top: 30px;
|
||||||
|
line-height: 2.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:hover {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr a {
|
||||||
|
cursor: pointer;
|
||||||
|
/* cursor: alias; */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%- include("./component/navbar.html"); %>
|
<%- include("./component/navbar.html"); %>
|
||||||
<main class="main" style="max-width: 80vw;">
|
<main class="main">
|
||||||
<!-- <h1><%= title %></h1> -->
|
<!-- <h1><%= title %></h1> -->
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<!-- <a href="./book">书本详情页</a> -->
|
<!-- <a href="./book">书本详情页</a> -->
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<version>2.3.12.RELEASE</version>
|
<version>2.5.12</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -49,14 +49,14 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
<version>2.3.12.RELEASE</version>
|
<version>2.5.12</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--MySQL依赖-->
|
<!--MySQL依赖-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>5.1.49</version>
|
<version>8.0.28</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--连接池(用于管理MySQL连接)-->
|
<!--连接池(用于管理MySQL连接)-->
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
<version>2.6.4</version>
|
<version>2.5.12</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>5.1.49</version>
|
<version>8.0.28</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<executions>
|
<executions>
|
||||||
@@ -325,7 +325,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
<version>2.4.3</version>
|
<version>2.5.12</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- 拉姆达表达式需要支持 Java 8 语法 -->
|
<!-- 拉姆达表达式需要支持 Java 8 语法 -->
|
||||||
|
@@ -45,6 +45,14 @@ public interface FileObjectDOMapper {
|
|||||||
*/
|
*/
|
||||||
int updateByPrimaryKeySelective(FileObjectDO record);
|
int updateByPrimaryKeySelective(FileObjectDO record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method corresponds to the database table file_object_info
|
||||||
|
*
|
||||||
|
* @mbg.generated
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeyWithBLOBs(FileObjectDO record);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method was generated by MyBatis Generator.
|
* This method was generated by MyBatis Generator.
|
||||||
* This method corresponds to the database table file_object_info
|
* This method corresponds to the database table file_object_info
|
||||||
|
@@ -53,20 +53,8 @@ public interface ThirdPartyUserAuthDOMapper {
|
|||||||
*/
|
*/
|
||||||
int updateByPrimaryKey(ThirdPartyUserAuthDO record);
|
int updateByPrimaryKey(ThirdPartyUserAuthDO record);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table third_party_user_auth_relation
|
|
||||||
*
|
|
||||||
* @mbg.generated
|
|
||||||
*/
|
|
||||||
ThirdPartyUserAuthDO selectByThirdPartyUserId(Integer id);
|
ThirdPartyUserAuthDO selectByThirdPartyUserId(Integer id);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table third_party_user_auth_relation
|
|
||||||
*
|
|
||||||
* @mbg.generated
|
|
||||||
*/
|
|
||||||
ThirdPartyUserAuthDO selectByUserId(Integer id);
|
ThirdPartyUserAuthDO selectByUserId(Integer id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -18,7 +18,6 @@ spring.datasource.password=
|
|||||||
|
|
||||||
# 使用druid数据源
|
# 使用druid数据源
|
||||||
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
||||||
spring.datasource.driverClassName=com.mysql.jdbc.Driver
|
|
||||||
|
|
||||||
## 配置SpringBoot对Redis的依赖
|
## 配置SpringBoot对Redis的依赖
|
||||||
#spring.redis.host=127.0.0.1
|
#spring.redis.host=127.0.0.1
|
||||||
|
@@ -12,22 +12,37 @@
|
|||||||
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
||||||
<result column="file_pwd" jdbcType="VARCHAR" property="filePwd" />
|
<result column="file_pwd" jdbcType="VARCHAR" property="filePwd" />
|
||||||
<result column="file_share_code" jdbcType="VARCHAR" property="fileShareCode" />
|
<result column="file_share_code" jdbcType="VARCHAR" property="fileShareCode" />
|
||||||
<result column="additional_fields" jdbcType="CHAR" property="additionalFields" />
|
</resultMap>
|
||||||
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
<result column="additional_fields" jdbcType="LONGVARCHAR" property="additionalFields" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--
|
<!--
|
||||||
WARNING - @mbg.generated
|
WARNING - @mbg.generated
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
-->
|
-->
|
||||||
id, fileId, storage_medium_type, file_path, file_pwd, file_share_code, additional_fields
|
id, fileId, storage_medium_type, file_path, file_pwd, file_share_code
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
<sql id="Blob_Column_List">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
additional_fields
|
||||||
|
</sql>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
||||||
<!--
|
<!--
|
||||||
WARNING - @mbg.generated
|
WARNING - @mbg.generated
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
-->
|
-->
|
||||||
select
|
select
|
||||||
<include refid="Base_Column_List" />
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
from file_object_info
|
from file_object_info
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
</select>
|
</select>
|
||||||
@@ -49,7 +64,7 @@
|
|||||||
additional_fields)
|
additional_fields)
|
||||||
values (#{id,jdbcType=INTEGER}, #{fileid,jdbcType=INTEGER}, #{storageMediumType,jdbcType=TINYINT},
|
values (#{id,jdbcType=INTEGER}, #{fileid,jdbcType=INTEGER}, #{storageMediumType,jdbcType=TINYINT},
|
||||||
#{filePath,jdbcType=VARCHAR}, #{filePwd,jdbcType=VARCHAR}, #{fileShareCode,jdbcType=VARCHAR},
|
#{filePath,jdbcType=VARCHAR}, #{filePwd,jdbcType=VARCHAR}, #{fileShareCode,jdbcType=VARCHAR},
|
||||||
#{additionalFields,jdbcType=CHAR})
|
#{additionalFields,jdbcType=LONGVARCHAR})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||||
<!--
|
<!--
|
||||||
@@ -100,7 +115,7 @@
|
|||||||
#{fileShareCode,jdbcType=VARCHAR},
|
#{fileShareCode,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="additionalFields != null">
|
<if test="additionalFields != null">
|
||||||
#{additionalFields,jdbcType=CHAR},
|
#{additionalFields,jdbcType=LONGVARCHAR},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
@@ -127,11 +142,25 @@
|
|||||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="additionalFields != null">
|
<if test="additionalFields != null">
|
||||||
additional_fields = #{additionalFields,jdbcType=CHAR},
|
additional_fields = #{additionalFields,jdbcType=LONGVARCHAR},
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
</update>
|
</update>
|
||||||
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||||
|
<!--
|
||||||
|
WARNING - @mbg.generated
|
||||||
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
|
-->
|
||||||
|
update file_object_info
|
||||||
|
set fileId = #{fileid,jdbcType=INTEGER},
|
||||||
|
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||||
|
file_path = #{filePath,jdbcType=VARCHAR},
|
||||||
|
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||||
|
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||||
|
additional_fields = #{additionalFields,jdbcType=LONGVARCHAR}
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||||
<!--
|
<!--
|
||||||
WARNING - @mbg.generated
|
WARNING - @mbg.generated
|
||||||
@@ -142,8 +171,7 @@
|
|||||||
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||||
file_path = #{filePath,jdbcType=VARCHAR},
|
file_path = #{filePath,jdbcType=VARCHAR},
|
||||||
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
file_share_code = #{fileShareCode,jdbcType=VARCHAR}
|
||||||
additional_fields = #{additionalFields,jdbcType=CHAR}
|
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
Reference in New Issue
Block a user