Commit Graph

19 Commits (10c81ccba3707dbea922e9c86a868232663092a1)

Author SHA1 Message Date
Steven e0cacfc6d6 chore: retire auto backup for sqlite
Steven 89ef9b8531 chore: add instance url system setting
steven a928c4f845 chore: update error format
Steven cd0ea6558d chore: update golangci-lint config
Steven 33d9c13b7e chore: remove openid field from user
Steven 42bd9b194b feat: impl user access token api
YuNing Chen 409d686f7d
chore: minor cleanup ()
boojack 35f2d399e2
chore: update api v1 docs ()
* chore: update apiv1 docs

* chore: update
Lincoln Nogueira 4491c75135
feat: add SwaggerUI and v1 API docs ()
* - Refactor several API routes from anonymous functions to regular definitions. Required to add parseable documentation comments.

- Add API documentation comments using Swag Declarative Comments Format

- Add echo-swagger to serve Swagger-UI at /api/index.html

- Fix error response from extraneous parameter resourceId to relatedMemoId in DELETE("/memo/:memoId/relation/:relatedMemoId/type/:relationType")

- Add an auto-generated ./docs/api/v1.md for quick reference on repo (generated by swagger-markdown)

- Add auxiliary scripts to generate docs.go and swagger.yaml

* fix: golangci-lint errors

* fix: go fmt flag in swag scripts
boojack 218159bf83
chore: remove openai setting section ()
boojack 7c5296cf35
chore: update id type to int32 ()
boojack 5f819fc86f
chore: update auth middleware ()
* chore: update auth middleware

* chore: update

* chore: update
boojack cc3a47fc65
feat: impl auth interceptor ()
* feat: impl auth interceptor

* chore: update

* chore: update

* chore: update
Lilith c1cbfd5766
feat: add system setting to disable password-based login ()
* system setting to disable password login

* fix linter warning

* fix indentation warning

* Prohibit disable-password-login if no identity providers are configured

* Warnings and explicit confirmation when en-/disabling password-login

- Disabling password login now gives a warning and requires a second
  confirmation which needs to be explicitly typed.
- (Re)Enabling password login now also gives a simple warning.
- Removing an identity provider while password-login is disabled now
  also warns about possible problems.

* Fix formatting

* Fix code-style

---------

Co-authored-by: traumweh <5042134-traumweh@users.noreply.gitlab.com>
Athurg Gooth 336b32004d
feat: add AutoBackupInterval in SystemSetting ()
Add AutoBackupInterval in SystemSetting page
Athurg Gooth d9b3501fae
feat: add support for auto backup db file ()
Add support for auto backup db file
CorrectRoadH d8b6e92813
feat: implement memos chat backend function ()
* feat: implment backend function

* eslint

* eslint

* eslint
boojack 66e65e4dc1
refactor: migrate definition to api v1 ()
* refactor: user api v1

* refactor: system setting to apiv1

* chore: remove unused definition

* chore: update

* chore: refactor: system setting

* chore: update

* refactor: migrate tag

* feat: migrate activity store

* refactor: migrate shortcut apiv1

* chore: update
boojack b44f2b5ffb
chore: migrate user setting to api v1 package ()
* chore: migrate to api v1 package

* chore: update