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