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
Changes from 2 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 config/model.go
Original file line number Diff line number Diff line change
@@ -49,5 +49,5 @@ type Sonic struct {
TemplateDir string `mapstructure:"template_dir"`
ThemeDir string
AdminResourcesDir string
AdminUrlPath string `mapstructure:"admin_url_path"`
AdminURLPath string `mapstructure:"admin_url_path"`
}
4 changes: 2 additions & 2 deletions event/listener/start.go
Original file line number Diff line number Diff line change
@@ -87,11 +87,11 @@ func (s *StartListener) printStartInfo(ctx context.Context) error {
log.Info(site)
fmt.Println(site)

adminUrlPath, err := s.optionService.GetAdminUrlPath(ctx)
adminURLPath, err := s.optionService.GetAdminURLPath(ctx)
if err != nil {
return err
}
adminSite := logger.BlueBold + "Sonic admin started at " + blogURL + "/" + adminUrlPath + logger.Reset
adminSite := logger.BlueBold + "Sonic admin started at " + blogURL + "/" + adminURLPath + logger.Reset
log.Info(adminSite)
fmt.Println(adminSite)
return nil
4 changes: 2 additions & 2 deletions service/impl/option.go
Original file line number Diff line number Diff line change
@@ -470,6 +470,6 @@ func (o *optionServiceImpl) GetAttachmentType(ctx context.Context) consts.Attach
}
}

func (o *optionServiceImpl) GetAdminUrlPath(ctx context.Context) (string, error) {
return o.Config.Sonic.AdminUrlPath, nil
func (o *optionServiceImpl) GetAdminURLPath(ctx context.Context) (string, error) {
return o.Config.Sonic.AdminURLPath, nil
}
2 changes: 1 addition & 1 deletion service/option.go
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ type OptionService interface {
GetLinkPrefix(ctx context.Context) (string, error)
GetSheetPrefix(ctx context.Context) (string, error)
GetAttachmentType(ctx context.Context) consts.AttachmentType
GetAdminUrlPath(ctx context.Context) (string, error)
GetAdminURLPath(ctx context.Context) (string, error)
}

type ClientOptionService interface {