Skip to content

Commit

Permalink
fix: 支持有效期和状态
Browse files Browse the repository at this point in the history
  • Loading branch information
ArronYR committed Feb 29, 2024
1 parent b222633 commit d66b3c5
Show file tree
Hide file tree
Showing 29 changed files with 3,388 additions and 516 deletions.
27 changes: 26 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "short-url"
version = "0.1.0"
edition = "2021"

authors = ["Arron"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand All @@ -17,10 +17,19 @@ rand = "0.8.4"
sea-orm = { version = "0.12.10", features = ["macros", "runtime-actix-rustls", "sqlx-mysql"] }
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0"
serde_repr = "0.1.6"
tera = "1.19.1"
url = "2.2.0"
sha-1 = "0.10.0"
sha2 = "0.10.0"
digest = "0.10.0"
hex = "0.4.3"
md5 = "0.7.0"
md5 = "0.7.0"
futures-util = "0.3.30"
num-traits = "0.2.17"
num-derive = "0.4.1"

[profile.release]
debug = true

[package.metadata.cargo-machete]
ignored = ["sha-1"]
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# 使用带有 Node.js 的官方基础镜像
FROM node:lts AS web-builder
FROM node:18.18.2-buster-slim AS web-builder

# 设置工作目录
WORKDIR /usr/src/app

# 复制项目文件
COPY web/tsconfig*.json ./
COPY web/package*.json ./
COPY web/yarn.lock ./
COPY web/.env*. ./
COPY web/package.json ./
COPY web/.env* ./
COPY web/index.html ./
COPY web/public ./public
COPY web/src ./src

# 安装依赖
RUN npm config set strict-ssl false
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install

# 构建应用
Expand Down
Loading

0 comments on commit d66b3c5

Please sign in to comment.