feat:修改数据库配置密码,修改星榜样式
This commit is contained in:
parent
b38174917a
commit
19890d5908
@ -22,9 +22,9 @@ DUBBO_STARBOOK_SERVICE_URL=tri://127.0.0.1:20007
|
|||||||
# PostgreSQL数据库配置
|
# PostgreSQL数据库配置
|
||||||
DB_HOST=localhost
|
DB_HOST=localhost
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_USER=haihuizhu
|
DB_USER=postgres
|
||||||
DB_PASSWORD=admin
|
DB_PASSWORD=postgres
|
||||||
DB_NAME=top-fans
|
DB_NAME=topfans
|
||||||
|
|
||||||
# ==================== Redis Configuration ====================
|
# ==================== Redis Configuration ====================
|
||||||
REDIS_HOST=127.0.0.1
|
REDIS_HOST=127.0.0.1
|
||||||
|
|||||||
@ -10,6 +10,6 @@ LOG_LEVEL=info
|
|||||||
# PostgreSQL 连接配置(多机部署时改为数据库服务器IP)
|
# PostgreSQL 连接配置(多机部署时改为数据库服务器IP)
|
||||||
DB_HOST=localhost
|
DB_HOST=localhost
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_USER=haihuizhu
|
DB_USER=postgres
|
||||||
DB_PASSWORD=admin
|
DB_PASSWORD=postgres
|
||||||
DB_NAME=top-fans
|
DB_NAME=topfans
|
||||||
|
|||||||
@ -85,7 +85,7 @@ DB_HOST="${DB_HOST:-localhost}"
|
|||||||
DB_PORT="${DB_PORT:-15432}"
|
DB_PORT="${DB_PORT:-15432}"
|
||||||
DB_USER="${DB_USER:-postgres}"
|
DB_USER="${DB_USER:-postgres}"
|
||||||
DB_PASSWORD="${DB_PASSWORD:-123456}"
|
DB_PASSWORD="${DB_PASSWORD:-123456}"
|
||||||
DB_NAME="${DB_NAME:-top-fans}"
|
DB_NAME="${DB_NAME:-topfans}"
|
||||||
REDIS_HOST="${REDIS_HOST:-localhost}"
|
REDIS_HOST="${REDIS_HOST:-localhost}"
|
||||||
REDIS_PORT="${REDIS_PORT:-6379}"
|
REDIS_PORT="${REDIS_PORT:-6379}"
|
||||||
REDIS_PASSWORD="${REDIS_PASSWORD:-123456}"
|
REDIS_PASSWORD="${REDIS_PASSWORD:-123456}"
|
||||||
|
|||||||
@ -4,16 +4,16 @@
|
|||||||
# 自动编译并启动所有微服务和网关,支持指定数据库连接
|
# 自动编译并启动所有微服务和网关,支持指定数据库连接
|
||||||
#
|
#
|
||||||
# 使用方式:
|
# 使用方式:
|
||||||
# 1. 默认数据库(localhost/top-fans): ./start.sh
|
# 1. 默认数据库(localhost/topfans): ./start.sh
|
||||||
# 2. 通过环境变量指定数据库(推荐): DB_HOST=192.168.1.1 DB_USER=myuser DB_PASSWORD=secret DB_NAME=mydb ./start.sh
|
# 2. 通过环境变量指定数据库(推荐): DB_HOST=192.168.1.1 DB_USER=myuser DB_PASSWORD=secret DB_NAME=mydb ./start.sh
|
||||||
# 3. 先导出再启动: export DB_HOST=192.168.1.1 DB_USER=myuser DB_PASSWORD=secret DB_NAME=mydb && ./start.sh
|
# 3. 先导出再启动: export DB_HOST=192.168.1.1 DB_USER=myuser DB_PASSWORD=secret DB_NAME=mydb && ./start.sh
|
||||||
#
|
#
|
||||||
# 可选环境变量(未设置时使用默认值):
|
# 可选环境变量(未设置时使用默认值):
|
||||||
# DB_HOST 数据库主机(默认 localhost)
|
# DB_HOST 数据库主机(默认 localhost)
|
||||||
# DB_PORT 数据库端口(默认 5432)
|
# DB_PORT 数据库端口(默认 5432)
|
||||||
# DB_USER 数据库用户(默认 haihuizhu)
|
# DB_USER 数据库用户(默认 postgres)
|
||||||
# DB_PASSWORD 数据库密码(默认 admin)
|
# DB_PASSWORD 数据库密码(默认 postgres)
|
||||||
# DB_NAME 数据库名称(默认 top-fans)
|
# DB_NAME 数据库名称(默认 topfans)
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -37,9 +37,9 @@ fi
|
|||||||
# ---------- 数据库配置(可从环境变量覆盖)----------
|
# ---------- 数据库配置(可从环境变量覆盖)----------
|
||||||
DB_HOST="${DB_HOST:-localhost}"
|
DB_HOST="${DB_HOST:-localhost}"
|
||||||
DB_PORT="${DB_PORT:-5432}"
|
DB_PORT="${DB_PORT:-5432}"
|
||||||
DB_USER="${DB_USER:-haihuizhu}"
|
DB_USER="${DB_USER:-postgres}"
|
||||||
DB_PASSWORD="${DB_PASSWORD:-admin}"
|
DB_PASSWORD="${DB_PASSWORD:-postgres}"
|
||||||
DB_NAME="${DB_NAME:-top-fans}"
|
DB_NAME="${DB_NAME:-topfans}"
|
||||||
|
|
||||||
# 供需要连接数据库的服务使用的参数(使用数组以便密码中含空格时也能正确传递)
|
# 供需要连接数据库的服务使用的参数(使用数组以便密码中含空格时也能正确传递)
|
||||||
DB_ARGS=(-db-host="$DB_HOST" -db-port="$DB_PORT" -db-user="$DB_USER" -db-password="$DB_PASSWORD" -db-name="$DB_NAME")
|
DB_ARGS=(-db-host="$DB_HOST" -db-port="$DB_PORT" -db-user="$DB_USER" -db-password="$DB_PASSWORD" -db-name="$DB_NAME")
|
||||||
|
|||||||
1889
docker/init-db.sql
1889
docker/init-db.sql
File diff suppressed because it is too large
Load Diff
@ -447,9 +447,11 @@ onUnmounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0 9.5rpx;
|
// padding: 0 9.5rpx;
|
||||||
border-radius: 24rpx;
|
border-radius: 24rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background: url("/static/square/galaxy/xbbj.png") center no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-scroll {
|
.content-scroll {
|
||||||
@ -463,25 +465,22 @@ onUnmounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 16rpx;
|
padding: 0 80rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 16rpx;
|
top: 16rpx;
|
||||||
margin: 0 auto;
|
margin: 0 24rpx;
|
||||||
width: 480rpx;
|
// width: 480rpx;
|
||||||
height: 96rpx;
|
height: 96rpx;
|
||||||
// clip-path: inset(-200rpx 0 16rpx 0);
|
// clip-path: inset(-200rpx 0 16rpx 0);
|
||||||
&::before {
|
&::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
background: linear-gradient(
|
background: linear-gradient(184deg, rgba(255, 90, 93, 0.47) -36.55%, rgba(194, 235, 255, 0.47) 121.2%);
|
||||||
183deg,
|
filter: blur(5.849999904632568px);
|
||||||
#FF5A5D -36.55%, #C2EBFF 121.2%
|
// opacity: 0.8;
|
||||||
|
|
||||||
);
|
|
||||||
opacity: 0.8;
|
|
||||||
// Figma 用的就是 filter: blur(图形模糊),不是 backdrop-filter(背景模糊)
|
// Figma 用的就是 filter: blur(图形模糊),不是 backdrop-filter(背景模糊)
|
||||||
filter: blur(3.7px);
|
// filter: blur(3.7px);
|
||||||
-webkit-filter: blur(3.7px);
|
-webkit-filter: blur(3.7px);
|
||||||
border-top-left-radius: 14px;
|
border-top-left-radius: 14px;
|
||||||
border-top-right-radius: 13px;
|
border-top-right-radius: 13px;
|
||||||
@ -616,8 +615,7 @@ onUnmounted(() => {
|
|||||||
// rgba(76, 237, 255, 0.2) 48.19%,
|
// rgba(76, 237, 255, 0.2) 48.19%,
|
||||||
// rgba(255, 122, 124, 0.2) 83.71%
|
// rgba(255, 122, 124, 0.2) 83.71%
|
||||||
// );
|
// );
|
||||||
background: url("/static/square/galaxy/xbbj.png") center no-repeat;
|
|
||||||
background-size: 100% 100%;
|
|
||||||
// pointer-events: none;
|
// pointer-events: none;
|
||||||
// backdrop-filter: blur(4.65px);
|
// backdrop-filter: blur(4.65px);
|
||||||
border-top-left-radius: 13px;
|
border-top-left-radius: 13px;
|
||||||
|
|||||||
@ -360,7 +360,8 @@ onUnmounted(() => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
/* 100vh - header(208rpx) - banner(360rpx) - tabs(88rpx) = 可用 body 高度 */
|
/* 100vh - header(208rpx) - banner(360rpx) - tabs(88rpx) = 可用 body 高度 */
|
||||||
height: calc(100vh - 208rpx - 360rpx - 88rpx);
|
height: calc(100vh - 208rpx - 360rpx - 88rpx);
|
||||||
top: -8rpx;
|
top: 8rpx;
|
||||||
|
padding: 0 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 蒙层 */
|
/* 蒙层 */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user