Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加了收藏页面的管理功能 #376

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a95d9dd
feat: make admin path configurable
Oct 25, 2023
106e6ff
merge: Merge branch 'master' of github.com:textworld/sonic
textworld Nov 14, 2023
56157ba
feat: add manage apis for ApplicationPassword
textworld Nov 15, 2023
b77bcce
feat: add manage apis for ApplicationPassword
textworld Nov 17, 2023
8abb450
merge: merge master
textworld Nov 18, 2023
a314f69
Merge branch 'master' into rest-api
textworld Nov 20, 2023
013b939
feat: add some api for wordpress
textworld Nov 22, 2023
8cdafbc
feat: add manage apis for ApplicationPassword
textworld Nov 23, 2023
f0c92e1
refactorï: remove unused code
textworld Nov 23, 2023
6d3f54e
style: golint
textworld Nov 30, 2023
8e6de2e
style: use goimport
textworld Nov 30, 2023
9ba3842
style: golintci
textworld Dec 1, 2023
ad38517
style: style all project
textworld Dec 4, 2023
3fcf41f
style: fix imports
textworld Dec 5, 2023
949ab17
Merge branch 'master' into main
textworld Dec 5, 2023
97d9540
feat: for save
textworld Dec 6, 2023
927be7b
feat: no application_password
textworld Dec 7, 2023
6012ea7
feat: add scrap
textworld Dec 26, 2023
790ef8c
feat: update theme remotely
textworld Dec 26, 2023
7bd6749
feat: update release-docker to textworld/sonic
textworld Dec 26, 2023
e360c70
feat: support http minio
textworld Jan 4, 2024
85b3890
Merge pull request #1 from textworld/minio_http
textworld Jan 4, 2024
d8fe47d
feat: scrap api
Jan 8, 2024
919f5bf
feat: 切换console子模块到main分支
Jan 9, 2024
66a1143
feat: yarn build
Jan 9, 2024
3902faf
Update remote URL for resources/console submodule
Jan 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
platforms: linux/arm64,linux/amd64
push: true
file: ./scripts/Dockerfile
tags: gosonic/sonic:latest,gosonic/sonic:${{github.ref_name}}
tags: textworld/sonic:latest,textworld/sonic:${{github.ref_name}}
build-args: |
SONIC_VERSION=${{github.ref_name}}
BUILD_COMMIT=${{github.sha}}
Expand Down
6 changes: 5 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[submodule "resources/template/theme/default-theme-anatole"]
path = resources/template/theme/default-theme-anatole
url = https://github.com/go-sonic/default-theme-anatole.git
url = https://github.com/textworld/default-theme-anatole.git
[submodule "resources/console"]
path = resources/console
url = https://github.com/textworld/sonic-console.git
branch = main
3 changes: 2 additions & 1 deletion cmd/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func main() {
g.GenerateModel("category", gen.FieldType("type", "consts.CategoryType")),
g.GenerateModel("comment", gen.FieldType("type", "consts.CommentType"), gen.FieldType("status", "consts.CommentStatus")),
g.GenerateModel("comment_black"),
g.GenerateModel("flyway_schema_history"),
g.GenerateModel("journal", gen.FieldType("type", "consts.JournalType")),
g.GenerateModel("link"),
g.GenerateModel("log", gen.FieldType("type", "consts.LogType")),
Expand All @@ -57,6 +56,8 @@ func main() {
g.GenerateModel("tag"),
g.GenerateModel("theme_setting"),
g.GenerateModel("user", gen.FieldType("mfa_type", "consts.MFAType")),
g.GenerateModel("application_password"),
g.GenerateModel("scrap_page"),
)

// apply diy interfaces on structs or table models
Expand Down
12 changes: 6 additions & 6 deletions conf/config.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ server:
logging:
filename: sonic.log
level:
app: debug # debug,info,warn,error
gorm: info # info,warn,error,silent
app: error # debug,info,warn,error
gorm: error # info,warn,error,silent
maxsize: 10 # 单位 megabytes
maxage: 30 #单位 天
compress: false # 是否对旧日志使用gzip进行压缩
Expand All @@ -16,17 +16,17 @@ logging:
### The Database configuration,You should choose one between MySQL and SQLite3,if both MySQL and SQLite3 are configured ,use Sqlite3 first

sqlite3:
enable: true
enable: false

### mysql数据库配置,请将用户名、密码、ip地址、端口、数据库名称替换为你自己的配置
### mysql database configuration, please replace the user name, password, ip address, port, database name to your own configuration.
mysql:
dsn: root:12345678@tcp(127.0.0.1:3306)/sonicdb?charset=utf8mb4&parseTime=True&loc=Local&interpolateParams=true
dsn: root:${db_password}@tcp(127.0.0.1:33356)/sonic?charset=utf8mb4&parseTime=True&loc=Local&interpolateParams=true



sonic:
mode: "development"
mode: "production"
work_dir: "./" # 不填默认为当前路径,用来存放日志文件、数据库文件、模板、上传的附件等(The default is the current directory. Used to store log files, database files, templates, upload files)
log_dir: "./logs" # 不填则使用work_dir 路径下的log路径 (If it is empty, use the "log" path under work_dir)
admin_url_path: admin_random
admin_url_path: admin
4 changes: 4 additions & 0 deletions consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ var (
BuildTime string
BuildCommit string
)

const (
LocalDateTimeFormat = "2006-01-02T15:04:05"
)
Loading
Loading