Commit Graph

64 Commits (d665adf78b7a3b05d7c95679edd87a83650b5280)

Author SHA1 Message Date
Steven b452d63fa6 chore: skip compose memo error 1 year ago
Steven 8fbd33be09 chore: update username matcher 1 year ago
Steven bff41a8957 fix: invalid username checks 1 year ago
Vespa314 58026c52ea
fix: heatmap show on wrong date (#2243)
fix: heatmap show wrong date
1 year ago
Steven cd0ea6558d chore: update golangci-lint config 1 year ago
Steven 4424c8a231 chore: add resource service definition 1 year ago
Steven e65282dcc5 chore: fix user state loader 1 year ago
Steven f5802a7d82 chore: update access token ui 1 year ago
Steven 33d9c13b7e chore: remove openid field from user 1 year ago
Steven 42bd9b194b feat: impl user access token api 1 year ago
Athurg Gooth c87df8791b
chore: optimize performance of /memo/stats (#2218)
Optimize performance of /memo/stats
1 year ago
Athurg Gooth 626ff5e3a7
feat: notify by telegram while new memo create by HTTP (#2215)
* Inject telegram bot into API service

* Add support for send telegram message

* Send notification by telegram while new memo post
1 year ago
Steven 3df550927d chore: update user profile page 1 year ago
boojack 18fb02a1ec
chore: update swag docs (#2178)
* chore: update swag docs

* chore: update
2 years ago
boojack 4af0d03e93
chore: add user profile page (#2175)
chore: some enhancements
2 years ago
YuNing Chen 409d686f7d
chore: minor cleanup (#2124) 2 years ago
Jianwei Zhang c835231d32
feat: add header into resource response (#2120)
Update - add header for get resource
2 years ago
boojack 723c444910
chore: update server tests (#2118) 2 years ago
boojack 35f2d399e2
chore: update api v1 docs (#2117)
* chore: update apiv1 docs

* chore: update
2 years ago
Lincoln Nogueira 4491c75135
feat: add SwaggerUI and v1 API docs (#2115)
* - 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
2 years ago
boojack 5d5d8de9fe
fix: get all memo api (#2091) 2 years ago
boojack 218159bf83
chore: remove openai setting section (#2084) 2 years ago
boojack 238f896907
feat: add system service (#2083)
* feat: add system service

* chore: update
2 years ago
boojack 57dd1fc49f
chore: initial memo service definition (#2077)
* chore: initial memo service definition

* chore: update

* chore: update

* chore: update
2 years ago
boojack 7c5296cf35
chore: update id type to int32 (#2076) 2 years ago
boojack 1ce82ba0d6
chore: remove shortcut related api (#2072) 2 years ago
boojack 5f819fc86f
chore: update auth middleware (#2057)
* chore: update auth middleware

* chore: update

* chore: update
2 years ago
boojack cc3a47fc65
feat: impl auth interceptor (#2055)
* feat: impl auth interceptor

* chore: update

* chore: update

* chore: update
2 years ago
Lilith c1cbfd5766
feat: add system setting to disable password-based login (#2039)
* 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>
2 years ago
boojack d8d6de9fca
fix: get user by username api (#2034) 2 years ago
boojack 56c321aeaa
revert: fix: exclude all punctuation chars except underscore in tags (#2033)
Revert "fix: exclude all punctuation chars except underscore in tags (#1974)"

This reverts commit 8c61531671.
2 years ago
Mason Sun a9eb605b0f
fix: auth api json format (#2021)
Update auth.go

api/v1/auth/相关接口未应用convertUserFromStore方法,会导致User对象获得类型存在问题,导致User定义的`json:`相关的字段转化失效。
导致输出json未被正确格式化
2 years ago
boojack 04b7a26c03
chore: fix request path (#2014) 2 years ago
boojack 28203bbaf9
chore: fix rss route (#2010) 2 years ago
boojack 9138ab8095
fix: rss route (#2008)
* fix: rss route

* chore: update
2 years ago
Ajay Kumbhare 55975a46d8
feat: add hindi language translation for i18n support (#2001) 2 years ago
Alexandr Tumaykin f91f09adea
feat: use username instead of uid (#1977)
* #1916 replace userId to username

* resolve

---------

Co-authored-by: Александр Тумайкин <AATumaykin@tsum.ru>
2 years ago
Athurg Gooth 336b32004d
feat: add AutoBackupInterval in SystemSetting (#1989)
Add AutoBackupInterval in SystemSetting page
2 years ago
Jianwei Zhang 8bcc2bd715
fix: access token will expired after 24h (#1988) 2 years ago
Felipe Martínez 8c61531671
fix: exclude all punctuation chars except underscore in tags (#1974)
* Change tag regex

* Update tests

* Add more tag tests
2 years ago
boojack 2effacd0a6
chore: add api docs (#1965) 2 years ago
boojack 40a30d46af
chore: update db connection params (#1960) 2 years ago
Felipe Martínez 2a7104e564
fix: exclude commas in tags (#1957) 2 years ago
Athurg Gooth d9b3501fae
feat: add support for auto backup db file (#1950)
Add support for auto backup db file
2 years ago
Athurg Gooth 06dbd87311
chore: split save resource asset (#1939)
* Move resource blob save into a independent function

* Support save resouce blob from Telegram like HTTP API

* Support save resouce blob download from URL to LocalStorage or S3

* fix typo
2 years ago
Athurg Gooth 3093f80d68
fix: visibility param override the user auth state (#1942)
fix visibility param override the user auth state
2 years ago
Athurg Gooth 11aa01ee2e
fix: visibility param override the user auth state (#1941)
fix visibility param override the user auth state
2 years ago
CorrectRoadH d8b6e92813
feat: implement memos chat backend function (#1934)
* feat: implment backend function

* eslint

* eslint

* eslint
2 years ago
boojack da70917b08
chore: update auth page (#1920)
* chore: update auth page

* chore: update
2 years ago
boojack 7e391bd53d
chore: remove resource public id (#1912)
* chore: remove resource public id

* chore: update
2 years ago