Steven
9410570195
chore: update version
1 year ago
Steven
7549c807ac
chore: update memo view activity
1 year ago
Steven
87ddeb2c79
chore: adjust store test for mysql
1 year ago
Athurg Gooth
c72f221fc0
feat: support mysql as backend storage driver ( #2300 )
...
* Rename checkDSN to checkDataDir
* Add option to set DSN and db driver
* Add mysql driver skeleton
* Add mysql container in compose for debug
* Add basic function for mysql driver
* Cleanup go mod with tidy
* Cleanup go.sum with tidy
* Add DeleteUser support for mysql driver
* Fix UpdateUser of mysql driver
* Add DeleteTag support for mysql driver
* Add DeleteResource support for mysql driver
* Add UpdateMemo and DeleteMemo support for mysql driver
* Add MemoRelation support for mysql driver
* Add MemoOrganizer support for mysql driver
* Add Idp support for mysql driver
* Add Storage support for mysql driver
* Add FindMemosVisibilityList support for mysql driver
* Add Vacuum support for mysql driver
* Add Migration support for mysql driver
* Add Migration support for mysql driver
* Fix ListMemo failed with referece
* Change Activity.CreateTs type in MySQL
* Change User.CreateTs type in MySQL
* Fix by golangci-lint
* Change Resource.CreateTs type in MySQL
* Change MigrationHistory.CreateTs type in MySQL
* Change Memo.CreateTs type in MySQL
1 year ago
Athurg Gooth
ca98367a0a
chore: store vacuum and clean ( #2293 )
...
* Move all vacuum code into driver
* Remove db from Store
1 year ago
Steven
71ee299de7
chore: drop shortcut
1 year ago
Steven
6007f48b7d
chore: retire memo resource relation table
1 year ago
Steven
27f3f6fbf0
chore: upgrade version
1 year ago
Steven
7da10cd367
chore: update telegram integration folder
1 year ago
Steven
6d45616dbe
chore: add cors middleware
1 year ago
Steven
1c27824e58
chore: upgrade version
1 year ago
Steven
cd0ea6558d
chore: update golangci-lint config
1 year ago
Steven
72ca4e74ee
refactor: impl part of grpcweb
1 year ago
Steven
d5c1706e9c
chore: update api middlewares
1 year ago
Steven
178a5c0130
chore: upgrade version to `0.15.0`
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
boojack
0d50f5bd08
chore: update comments ( #2195 )
2 years ago
Athurg Gooth
9987337eca
fix: all ID from int to int64 to avoid 32bits machine break ( #2191 )
...
Fix all ID from int to int64 to avoid 32bits machine break
2 years ago
boojack
18fb02a1ec
chore: update swag docs ( #2178 )
...
* chore: update swag docs
* chore: update
2 years ago
Sandu Liviu Catalin
6c01e84099
feat: add configuration option to bind server to specific address ( #2165 )
2 years ago
boojack
19e7731abb
chore: generate ts definition ( #2156 )
...
* chore: generate ts definition
* chore: update
2 years ago
boojack
95588542f9
chore: upgrade version to `0.14.4` ( #2132 )
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
Derek Reiff
f9d1080a7d
fix: minor spelling and wording changes for en and de ( #2096 )
...
Minor spelling and wording changes
I went through some of english and german localizations to correct or add minor things.
Added `invalid-tag-name` to json. Which also means it should be translated elsewhere.
2 years ago
boojack
e097e8331e
chore: upgrade version `0.14.3` ( #2086 )
2 years ago
boojack
218159bf83
chore: remove openai setting section ( #2084 )
2 years ago
boojack
7c5296cf35
chore: update id type to int32 ( #2076 )
2 years ago
boojack
cc3a47fc65
feat: impl auth interceptor ( #2055 )
...
* feat: impl auth interceptor
* chore: update
* chore: update
* chore: update
2 years ago
boojack
9ef0f8a901
feat: add user setting field ( #2054 )
2 years ago
boojack
470fe1df49
feat: implement part of user service ( #2053 )
...
* feat: implement part of user service
* chore: update
* chore: update
2 years ago
boojack
89ba2a6540
feat: implement part of tag service ( #2051 )
...
* feat: add grpc gateway tempalte
* chore: update
* chore: move directory
* chore: update
2 years ago
boojack
8328b5dd4a
chore: upgrade version to `0.14.2` ( #2035 )
...
* chore: upgrade version to `0.14.2`
* chore: remove TestConcurrentReadWrite test
2 years ago
boojack
4231ec5a1a
chore: upgrade version to `0.14.1` ( #2004 )
2 years ago
boojack
589b104671
chore: upgrade version to `v0.14.0` ( #1970 )
...
* chore: upgrade version
* chore: update
* chore: update
2 years ago
boojack
40a30d46af
chore: update db connection params ( #1960 )
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
CorrectRoadH
39351970d0
feat: implement memo chat frontend ( #1938 )
...
* feat: implment backend function
* feat: implment frontend component
* stash
* eslint
* eslint
* eslint
* delete node
* stash
* refactor the style
* eslint
* eslint
* eslint
* fix build error
* add dep
* Update web/src/components/MemosChat/ConversationTab.tsx
Co-authored-by: boojack <stevenlgtm@gmail.com>
* Update web/src/components/MemosChat/ConversationTab.tsx
Co-authored-by: boojack <stevenlgtm@gmail.com>
* feat: change the name
* disable for vistor
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
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
Alexandr Tumaykin
c5a1f4c839
feat: format message from telegram and upload attachments ( #1924 )
...
* feat: format message from telegram and download documents
* fix: remove bool in expression
* refactor: convert to markdown
* refactor: resolve remarks and add support new message types
* refactor: resolve remarks
* feat: add test for mime type
---------
Co-authored-by: Александр Тумайкин <AATumaykin@tsum.ru>
2 years ago
CorrectRoadH
d8b6e92813
feat: implement memos chat backend function ( #1934 )
...
* feat: implment backend function
* eslint
* eslint
* eslint
2 years ago
boojack
7e391bd53d
chore: remove resource public id ( #1912 )
...
* chore: remove resource public id
* chore: update
2 years ago
boojack
0e05c62a3b
chore: update common utils ( #1908 )
2 years ago
boojack
a7573d5705
refactor: migrate memo to apiv1 ( #1907 )
...
* refactor: migrate memo to apiv1
* chore: update
* chore: update
* chore: update
* chore: upate
* chore: update
* chore: update
2 years ago
boojack
1fa9f162a5
refactor: migrate resource to apiv1 ( #1901 )
2 years ago
Athurg Gooth
5ea561af3d
feat: add support for purged resource link ( #1897 )
...
Add support for purged resource link
2 years ago
boojack
5b6c98582e
refactor: migrate storage to apiv1 ( #1890 )
...
* refactor: migrate storage to apiv1
* chore: update
* chore: update
* chore: update
2 years ago
Athurg Gooth
0af14fc81a
fix: invalid orientation of image thumbnail in Apple devices ( #1891 )
2 years ago
boojack
66e65e4dc1
refactor: migrate definition to api v1 ( #1879 )
...
* 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
2 years ago
boojack
9a8d43bf88
chore: update user store names ( #1877 )
...
* chore: update user store names
* chore: update
2 years ago
boojack
ca770c87d6
chore: upgrade version to `v0.13.2` ( #1873 )
2 years ago
CorrectRoadH
30fae208c2
fix: pin memos of other people ( #1870 )
2 years ago
boojack
5fe644a3b6
chore: add jwt middleware in apiv1 ( #1869 )
2 years ago
CorrectRoadH
c9aa2eeb98
fix: validate access token ( #1867 )
...
* fix/to_valid_token
* eslint
* revert
* Update server/jwt.go
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack
6a78887f1d
chore: update store types name ( #1862 )
2 years ago
boojack
b44f2b5ffb
chore: migrate user setting to api v1 package ( #1855 )
...
* chore: migrate to api v1 package
* chore: update
2 years ago
boojack
b34aded376
refactor: migration idp api ( #1842 )
...
* refactor: migration idp api
* chore: update
2 years ago
boojack
4ed9a3a0ea
refactor: migrate auth routes to v1 package ( #1841 )
...
* feat: add api v1 packages
* chore: migrate auth to v1
* chore: update test
2 years ago
Athurg Gooth
4d59689126
feat: set memo visibility in telegram ( #1824 )
...
* Add telegram.Bot in MessageHandler
* Change single message handler like group messages
* Move message notify wrapper from plugin to server
* Add keyboard buttons on Telegram reply message
* Add support to telegram CallbackQuery update
* Set visibility in callbackQuery
* Change original reply message after callbackQuery
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth
e6c9f2a00e
feat: add support for download resource from link ( #1800 )
...
* Add support for download resource from link
* Parse external link and add file ext name from mime info
* Add zh-Hans locale for `download-link`
* fix typo on code and comments
* Update server/resource.go
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack
11a385cda6
chore: update upgrade version view ( #1791 )
2 years ago
boojack
32e2f1d339
chore: update page routes ( #1790 )
...
chore: update routers
2 years ago
Athurg Gooth
25ce36e495
feat: resource visibility ( #1777 )
...
* Add method to query visibility list by memoIDs
* Add function to get visibility by resourceID
* Check resource visibility in /r/:resourceId/:publicId/:filename
* Check resource visibility in /r/:resourceId/:publicId
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth
845297ec03
refactor: change all `Robot` to `Bot` ( #1767 )
...
* Change all `Robot` to `Bot`
* Change all `r` of `Bot` to `b`
* Change `Robot` to `bot` in comments
* Fix typo
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
boojack
beb4d8ccb9
chore: order by updated ts in memo store ( #1761 )
2 years ago
boojack
e0e59c5831
feat: display memo with updated ts ( #1760 )
2 years ago
boojack
2e34ce90a1
chore: upgrade version `0.13.1` ( #1754 )
2 years ago
Athurg Gooth
8628d1e4b2
feat: add Telegram bot config UI ( #1747 )
...
* Add retry wait for telegram.GetUpdates
* Add support to set telegram robot token from UI
* Change validator of UserSettingTelegramUserID
* Add support to set telegram user id from UI
* Fix typescript check
* Add validator for SystemSettingTelegramRobotTokenName
* Optimize error notice while config telegram params
* Change for review
* Fix telegram user id could not be empty
* Fix telegram robot could not be empty
* Fix for eslint (again)
* Update web/src/components/Settings/SystemSection.tsx
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Athurg Gooth
4ea5426e18
feat: add support for content search ( #1728 )
...
* Change MemoFind.ContentSearch to slice
* Add support for content search
* Change for go-simple sugguest
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth
1282fe732e
feat: implement telegram bot plugin ( #1740 )
2 years ago
boojack
de8014dfe8
feat: resource store cache ( #1742 )
2 years ago
boojack
ea728d232d
refactor: memo store ( #1741 )
2 years ago
Athurg Gooth
616b8b0ee6
feat: introduce publicid to filename template ( #1713 )
...
* Add support for `publicid` in PathTemplate
* Use `publicid` by default instead of `filename` in filesystem
* Fix blank string of `systemSettingLocalStoragePath` affect incorrectly
* Add ext name to compatible with OS's preview
* Optimize code for systemSettingLocalStoragePath empty
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth
0cea5ebaeb
fix: concurrent counter operates ( #1706 )
...
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
boojack
98b3a371f4
fix: patch memo visibility ( #1695 )
2 years ago
boojack
ba8e1e5dc2
chore: add available generator amount flag ( #1696 )
2 years ago
boojack
467f9080a1
feat: get or generate thumbnail image ( #1691 )
2 years ago
Athurg Gooth
0894bf13d2
fix: fail to open file while generate thumbnail ( #1687 )
...
* Fix fail to open file while generate thumbnail
* Fix for Uncontrolled data used in path expression check
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
boojack
1d7627dd72
chore: upgrade version `0.13.0` ( #1685 )
...
* chore: upgrade version `0.13.0`
* chore: update
2 years ago
boojack
d80aa67c97
feat: parse markdown to html format in rss ( #1683 )
2 years ago
boojack
ae1d9adf65
fix: initial system locale ( #1684 )
2 years ago
boojack
b40571095d
feat: update memo detail page ( #1682 )
...
* feat: update memo detail page
* chore: update
2 years ago
Athurg Gooth
04124a2ace
feat: generate thumbnail while get and improve thumbnail quality ( #1680 )
...
* Use disintegration/imaging to optimize thumbnail quality
* Generate thumbnail if not exists while GET it
* Changes for `go mod tidy`
* Changes for golang comments lint
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
boojack
a07d5d38d6
feat: memo relation part1 ( #1677 )
...
* feat: memo relation part1
* chore: update
2 years ago
Stephen Zhou
ca5859296a
fix: resource url in rss ( #1672 )
2 years ago
boojack
1a8310f027
chore: update system setting default value ( #1665 )
2 years ago
Athurg Gooth
041be46732
Add support for image thumbnail ( #1641 )
...
* Add a common function for resize image blob
* Auto generate thumbnail for image resources
* Auto thumbnail support for fetch image resources
* Add support for image thumbnail in view
* Fix missing error check
* Fix es-lint check
* Fix uncontrolled data used in path expression
* Remove thumbnail while origin resource been deleted
* Change the thumbnail's storage path
---------
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Lincoln Nogueira
668a9e88c6
fix: File size exceeds allowed limit of 0 MiB ( #1664 )
...
fix: File size exceeds allowed limit of 0 MiB
This could happen in databases without "max-upload-size-mib" setting.
Now, both the front-end and the back-end will start with a default
limit of 32 MiB, even if the key is absent.
It is still possible to disable uploads by setting the value to 0.
2 years ago
boojack
2cc5691efd
chore: update memo relation types ( #1658 )
2 years ago
Lincoln Nogueira
96021e518a
feat: add max upload size setting to UI & UI improvements ( #1646 )
...
* Add preliminar Windows support for both
development and production environments.
Default profile.Data will be set to "C:\ProgramData\memos" on Windows.
Folder will be created if it does not exist, as this behavior is
expected for Windows applications.
System service installation can be achieved with third-party tools,
explained in docs/windows-service.md.
Not sure if it's worth using https://github.com/kardianos/service
to make service support built-in.
This could be a nice addition alongside #1583 (add Windows artifacts)
* feat: improve Windows support
- Fix local file storage path handling on Windows
- Improve Windows dev script
* feat: add max upload size setting to UI & more
- feat: add max upload size setting to UI
- feat: max upload size setting is checked on UI during upload,
but also enforced by the server
- fix: overflowing mobile layout for Create SSO, Create Storage
and other Settings dialogs
- feat: add HelpButton component with some links to docs were appropriate
- remove LearnMore component in favor of HelpButton
- refactor: change some if/else to switch statements
- refactor: inline some err == nil checks
! Existing databases without the new setting 'max-upload-size-mib'
will show an upload error, but this can be user-fixed by simply
setting the value on system settings UI.
* improvements requested by @boojack
2 years ago
Lincoln Nogueira
5340008ad7
feat: improve Windows support ( #1645 )
...
* Add preliminar Windows support for both
development and production environments.
Default profile.Data will be set to "C:\ProgramData\memos" on Windows.
Folder will be created if it does not exist, as this behavior is
expected for Windows applications.
System service installation can be achieved with third-party tools,
explained in docs/windows-service.md.
Not sure if it's worth using https://github.com/kardianos/service
to make service support built-in.
This could be a nice addition alongside #1583 (add Windows artifacts)
* feat: improve Windows support
- Fix local file storage path handling on Windows
- Improve Windows dev script
2 years ago
Zeng1998
885a0ddad0
chore: add size for s3 resource ( #1638 )
2 years ago
Lincoln Nogueira
3b76c6792c
feat: add preliminar Windows support ( #1636 )
...
Add preliminar Windows support for both
development and production environments.
Default profile.Data will be set to "C:\ProgramData\memos" on Windows.
Folder will be created if it does not exist, as this behavior is
expected for Windows applications.
System service installation can be achieved with third-party tools,
explained in docs/windows-service.md.
Not sure if it's worth using https://github.com/kardianos/service
to make service support built-in.
This could be a nice addition alongside #1583 (add Windows artifacts)
2 years ago
boojack
34700a4c52
chore: check allow sign up setting in sso ( #1620 )
2 years ago
boojack
b6564bcd77
feat: implement memo relation server ( #1618 )
2 years ago
boojack
0e70de4003
chore: split memo resource api ( #1587 )
2 years ago
boojack
0aa7085303
chore: add enclosure to rss ( #1559 )
2 years ago
boojack
994d5dd891
feat: server tests ( #1556 )
...
* feat: server tests
* chore: update
2 years ago
boojack
73b8d1dd99
fix: revert hide ask ai button ( #1539 )
2 years ago
boojack
58fa00079b
chore: update version to `0.12.2` ( #1538 )
2 years ago
boojack
3060dafb45
chore: update resource link template ( #1537 )
2 years ago
boojack
7d6934d00c
fix: rss link ( #1534 )
2 years ago
João Nuno Mota
2c328a4540
feat: hide ask ai button when key is empty ( #1515 )
...
* Add option to hide Ask AI and update dev version
* Fix formatting according to eslint
* Replace option to hide Ask AI with auto hiding based on config
* Fix golangci-lint errors
* Remove showAskAI logic from OpenAPI
2 years ago
boojack
ef7381f032
chore: upgrade version to `0.12.1` ( #1499 )
2 years ago
boojack
3eac19d258
chore: add ignore version upgrade setting ( #1491 )
2 years ago
boojack
204c03e772
chore: update audience name ( #1484 )
2 years ago
boojack
d0ddac296f
chore: update store error handler ( #1479 )
2 years ago
Sönke Werner Köster
8c2224ae39
feat: allow instance moderators to post public via the API ( #1464 )
2 years ago
boojack
6ff7cfddda
fix: return external link directly ( #1465 )
...
* fix: return external link directly
* chore: update
2 years ago
boojack
5361f76b11
chore: update filename when creating resource ( #1460 )
2 years ago
boojack
5caa8cdec5
chore: delete resource related file ( #1456 )
2 years ago
boojack
4419b4d4ae
chore: update version and remove isDev flag ( #1452 )
...
* chore: update version and remove isDev flag
* chore: update
2 years ago
boojack
1cab30f32f
feat: add public id field to resource ( #1451 )
...
* feat: add public id field to resource
* feat: support reset resource link
2 years ago
boojack
4f2adfef7b
chore: update system setting name convention ( #1448 )
2 years ago
boojack
8a33290722
chore: update user setting key convention ( #1447 )
...
* chore: update user settng key convention
* chore: update
2 years ago
boojack
41c50e758a
chore: revert resource visibility changes ( #1444 )
2 years ago
boojack
c7a57191bd
feat: add jwt auth ( #1441 )
...
* feat: add jwt auth
* chore: update
2 years ago
CorrectRoadH
424f10e180
feat: request pagination for resource( #1425 )
...
* feat: add support for resource page on frontend
* [WIP]feat: add backend support for limit and offset search
* feat: add reducer to add resource
* support fetch all resource when first search
* beautify the fetch ui
* restore file
* feat: add all resource before clear resource
* eslint
* i18n
* chore:change the nane
* chore: change the name of param
* eslint
* feat: setIsComplete to true when first loading resource fully
* fix the bug of fetch
* feat change finally to then
* feat: add await and async to clear and search
* feat: return all resource when fetch
* chore: change variable name
* Update web/src/pages/ResourcesDashboard.tsx
Co-authored-by: boojack <stevenlgtm@gmail.com>
* fix missing const value
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Xudong Cai
d21abfc60c
feat: add URLSuffix resource option with S3 ( #1428 )
...
* feat: add URLSuffix resource option with S3
* feat: add URLSuffix resource option with S3
* fix: eslint
2 years ago
Zeng1998
f3090b115d
feat: support local storage ( #1383 )
...
* feat: support local storage
* update
* update
* update
* update
2 years ago
boojack
ff8851fd9f
fix: golangci-lint version ( #1381 )
...
* chore: update interface declare
* chore: update args
* chore: update
* chore: update
2 years ago
boojack
573f07ec82
feat: support messages to ask AI ( #1380 )
2 years ago
Zeng1998
7529296dd5
chore: remove {filetype} in path template ( #1377 )
...
* chore: remove {filetype} in path template
* fix go-static-check
* update
2 years ago
boojack
29f784cc20
feat: update find resource with linked memo amount ( #1354 )
...
* feat: update find resource with linked memo amount
* chore: remove unused test
2 years ago
boojack
8d88477538
chore: rename http getter package ( #1349 )
2 years ago
boojack
50f36e3ed5
chore: upgrade version to `0.11.2` ( #1336 )
2 years ago
boojack
e5cbb8cd56
refactor: openAI config system setting ( #1333 )
2 years ago
Cologler
8c774316ae
refactor: build storage key ( #1326 )
...
* refactor build storage key
* sort imports
* use gofmt to format code
2 years ago
Yunwei Xiao
c57cea1aaa
fix: fix the typo of openai ( #1298 )
2 years ago
Wujiao233
003161ea54
feat: support set openai api host ( #1292 )
...
* Docker
* feat: support set openai api host
* fix css
* fix eslint
* use API in backend & put host check in plugin/openai
* fix go-static-checks
2 years ago
Zeng1998
fd99c5461c
feat(s3): customize filenames via placeholders ( #1285 )
...
* feat(s3): customize filenames via placeholders
* fix go-static-checks
* add tips on the frontend
* fix eslint check
* remove yarn.lock
* remove Config.Path
* update tips
* fix
* update
2 years ago
boojack
4335897367
chore: remove metrics plugin ( #1276 )
...
* chore: remove metrics plugin
* chore: update
2 years ago
boojack
e150599274
chore: upgrade version to `v0.11.1` ( #1247 )
2 years ago
boojack
df04e852bf
feat: implement openai integration ( #1245 )
...
* feat: implement openai integration
* chore: update
2 years ago
Alex Zhao
9d4bb5b3af
feat: add support for s3 path ( #1233 )
...
* add support for path
* fix typo and switch positions with Path and Bucket
* using path method instead of string concatenation
2 years ago
Thareek Anvar M
e83ea7fd76
fix: login security issue ( #1198 )
...
* fix
* fix bug
* changes
* Revert "changes"
This reverts commit 2b2084c7bd
.
* should close the toast if its error also
* no internal errors + sso
* change the text to Incorrect login credentials, please try again
2 years ago
boojack
9577f6dbe8
feat: add resource visibility to user setting ( #1190 )
2 years ago
boojack
977e7f55e5
feat: add visibility field to resource ( #1185 )
2 years ago
Zhizhen He
50a99e9120
fix: correct comments for exported functions and variables ( #1158 )
2 years ago
Zeng1998
57479b250a
chore: remove validators on the frontend ( #1156 )
...
* chore: update minlength of username
* remove the validator on frontend
* update
2 years ago
boojack
6e2e7ac782
fix: remove memo list api ( #1151 )
2 years ago
boojack
cc23d5cafe
chore: upgrade version to `0.11.0` ( #1143 )
...
* chore: upgrade version to `0.11.0`
* chore: update
2 years ago
boojack
9c5b44d070
feat: update storage schema ( #1142 )
2 years ago
boojack
84fb8b2288
feat: update storage setting section ( #1140 )
2 years ago
boojack
6d2d322140
chore: show pinned memos in explore ( #1141 )
2 years ago
boojack
1517688076
chore: update code structure ( #1139 )
...
* chore: update code structure
* chore: update
2 years ago
boojack
29124f56bb
chore: update memo service ( #1138 )
...
* chore: update memo service
* chore: update
2 years ago
boojack
42d849abfc
chore: update explore header style ( #1137 )
2 years ago
boojack
ffe1073292
fix: schema path for demo mode ( #1124 )
2 years ago
Yoshino-s
afaaec8492
feat(mode): add demo mode ( #1121 )
...
* feat(mode): add demo mode
* chroe: Update store/db/db.go
Co-authored-by: boojack <stevenlgtm@gmail.com>
* chroe: Update store/db/db.go
Co-authored-by: boojack <stevenlgtm@gmail.com>
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack
d0b8b076cf
feat: implement sign in with SSO ( #1119 )
...
* feat: implement sign in with SSO
* chore: update
* chore: update
* chore: update
2 years ago
Stephen Zhou
65aa51d525
feat: generate RSS item title and limit item count ( #1117 )
...
* feat: generate RSS item title and limit item count
* Update server/rss.go
Co-authored-by: boojack <stevenlgtm@gmail.com>
* Update server/rss.go
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack
852903bdbd
fix: idp config definition ( #1115 )
...
fix: idp definition
2 years ago
boojack
0f57629d25
feat: implement idp server ( #1111 )
...
* feat: implement idp server
* chore: update
2 years ago
boojack
096a71c58b
feat: add `avatar_url` field to user table ( #1106 )
...
refactor: add `avatar_url` field to user table
2 years ago
boojack
c6e525b06f
chore: remove unused fields of storage table ( #1104 )
2 years ago
boojack
caf054bae7
chore: add beta badge to storage ( #1099 )
...
* chore: add beta badge to storage
* chore: update
2 years ago
boojack
7e8011ba34
chore: support deleting storage ( #1095 )
2 years ago
Zeng1998
2493bb0fb7
feat: storage service frontend ( #1088 )
2 years ago
Christopher
4641e89c17
feat(system): support for disabling public memos ( #1003 )
...
* feat(system): support for disabling public memos
* fix(web/editor): set visibility to private on disabled public memos
* feat(server/memo): find/check if public memos are disabled
* fix(server/memo): handle error for finding system error
* fix(server/memo): unmarshal visiblity when getting system settings
* chore(web): move side effect imports to end
* Update memo.go
---------
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Zeng1998
1e4a81dea9
feat: storage service backend ( #1086 )
...
* feat: storage service backend
* update go.mod
* update the column name (urlPrefix -> url_prefix)
* update
* update
2 years ago
boojack
870559046f
chore: update skipper name ( #1080 )
2 years ago
boojack
b11d2130a0
chore: validate external link ( #1069 )
2 years ago
boojack
aad97c4c54
chore: update signup api ( #1067 )
2 years ago
boojack
3590d3f8b6
feat: update store cache ( #1066 )
...
* feat: update store cache
* chore: update
2 years ago
boojack
b366ce7594
fix: delete tag ( #1062 )
2 years ago
Zeng1998
1eacf5367d
chore: upgrade version to `0.10.3` ( #1060 )
2 years ago
boojack
a004dcf320
fix: pass empty condition in rss ( #1058 )
...
fix: handle empty condition in rss
2 years ago
boojack
bec1558488
fix: patch resource id ( #1055 )
2 years ago
Stephen Zhou
168c4f6950
feat: more rss info ( #1052 )
...
* feat: more rss info
* fix: ci
2 years ago
boojack
1ace332152
feat: graceful shutdown server ( #1016 )
2 years ago
Zeng1998
2d14047c73
fix: pdf resource preview ( #1008 )
2 years ago
boojack
4a7b764ab3
chore: remove unused flags for sqlite ( #997 )
2 years ago
boojack
6c3ff6de63
chore: get resource blob optional ( #991 )
2 years ago
boojack
82f61f2a0e
chore: upgrade version to `0.10.2` ( #983 )
2 years ago
boojack
c5368fe8d3
chore: update resource dialog style ( #982 )
2 years ago
Wujiao233
0aaf153717
fix: video and audio can't play on safari ( #980 )
...
* fix: video can't play on safari
* fix: audio can't play on safari
2 years ago
Zeng1998
f8855ddb56
feat: support empty content memo ( #963 )
...
feat: support empty-text memo
2 years ago
boojack
fae0b64a08
fix: delete tag api ( #950 )
...
* fix: delete tag api
* chore: update
2 years ago
boojack
677750ef51
chore: upgrade version to `0.10.1` ( #949 )
2 years ago
boojack
219d2754a0
chore: remove existed tags in suggestion ( #944 )
2 years ago
boojack
40d25f7dca
fix: skip api error for static middleware ( #941 )
2 years ago
boojack
8c146aed68
feat: update memo resources style ( #933 )
...
* feat: update memo resources style
* chore: update
2 years ago
boojack
0f057e81e9
fix: version compare ( #916 )
...
* fix: version compare
* chore: update
2 years ago
boojack
e2e8130f4c
fix: sort version ( #914 )
2 years ago
boojack
46c13a4b7f
chore: add skipper for secure ( #913 )
2 years ago
boojack
491859bbf6
chore: update activity metrics ( #908 )
2 years ago
boojack
f16123a624
chore: update memo create activity ( #903 )
2 years ago
boojack
d50ad9433f
feat: persistent session name ( #902 )
...
* feat: persistent session name
* chore: update
2 years ago
boojack
79180928d4
chore: update server activity ( #898 )
2 years ago
boojack
e5550828a0
chore: update activity payload ( #891 )
2 years ago
boojack
5195012217
feat: add `activity` table ( #888 )
...
feat: introduce activity
2 years ago
boojack
a797280e3f
chore: update middleware skipper ( #887 )
...
* chore: update middleware skipper
* chore: update
2 years ago
boojack
861eeb7b0f
chore: add skipper in CSRF ( #885 )
2 years ago
boojack
24b21aa9d7
chore: update version to `0.9.1` ( #882 )
2 years ago
boojack
c9bb2b785d
chore: fix CSRF ( #876 )
2 years ago
boojack
b6f7a85a2a
fix: reload page when sign out ( #871 )
2 years ago
boojack
3556ae4e65
fix: access control ( #870 )
2 years ago
boojack
f888c62840
chore: update userinfo validator ( #868 )
...
* chore: update userinfo validator
* chore: update actions
* chore: update
2 years ago
boojack
afc9709484
chore: update dev config ( #857 )
2 years ago
boojack
05b41804e3
chore: hide host user email ( #856 )
2 years ago
boojack
27fd1e2880
chore: remove secure flag ( #848 )
2 years ago
boojack
99d9cc9168
fix: set csp header only for resource ( #836 )
2 years ago
boojack
119603da5d
chore: upgrade version to `0.9.0` ( #835 )
2 years ago
boojack
c07b4a57ca
feat: add secure middleware ( #832 )
2 years ago
boojack
9f25badde3
chore: update logo format to png ( #830 )
2 years ago
boojack
7efa749c66
feat: customize system profile ( #828 )
2 years ago
boojack
68a77b6e1f
feat: create tag dialog ( #814 )
2 years ago
boojack
c177db69d5
chore: update tag regexp ( #785 )
2 years ago
boojack
b704c20809
chore: return raw text for html ( #782 )
2 years ago
lujiefsi
726285e634
chore: restrict the html file ( #749 )
...
* restrict the html file
* replace spaces with table
* remove space
2 years ago
boojack
b67ed1ee13
feat: customize system profile ( #774 )
...
* feat: system setting for customized profile
* chore: update
* feat: update frontend
* chore: update
2 years ago
boojack
7ec22482c1
chore: upgrade version to `0.8.3` ( #755 )
2 years ago
Zeng1998
1dee8ae49f
fix: url resource filename decode ( #738 )
...
* fix: url resource filename decode
* update
* update
Co-authored-by: boojack <stevenlgtm@gmail.com>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack
dd6e2337e6
chore: update version to `0.8.2` ( #722 )
2 years ago
Zeng1998
147185309c
feat: vacuum database in setting ( #694 )
...
* feat: vacuum database in setting
* update
* update
* update
* update
2 years ago
boojack
a467a7c173
feat: upgrade dev version to `0.8.1` ( #656 )
...
* feat: upgrade version to `0.8.1`
* chore: update
2 years ago
boojack
7c6d7226f5
feat: update appearance selector ( #645 )
2 years ago
Zeng1998
0402cb7b27
fix: no user settings returns when patch user ( #622 )
2 years ago
Zeng1998
54271c1598
chore: fix some typos ( #587 )
2 years ago
boojack
85db6721de
chore: disable metrics collector ( #580 )
2 years ago
boojack
b511a7b634
fix: user patch with empty email ( #578 )
2 years ago
boojack
88c3b1ad0f
feat: update prod version ( #577 )
2 years ago
boojack
29880be283
chore: update tests ( #572 )
2 years ago
boojack
2042737004
feat: add username field ( #544 )
...
* feat: add username field
* chore: update
2 years ago
boojack
a0667abec8
chore: update data initial requests ( #538 )
2 years ago
boojack
17c1b97d23
fix: tag regexp ( #518 )
...
* fix: tag regexp
* chore: update
2 years ago
boojack
013ded1e04
chore: code clean ( #516 )
2 years ago
boojack
2d49e96a8a
feat: get image blob in backend ( #495 )
...
* feat: get image blob in backend
* chore: update
2 years ago
boojack
477130aa85
chore: update db filesize access control ( #493 )
2 years ago
boojack
878e0eabc8
feat: add crawler plugin ( #492 )
...
* feat: add crawler plugin
* chore: update
* chore: go mod tidy
* chore: update
2 years ago
boojack
a4a5e539ed
chore: update dev version ( #489 )
2 years ago
boojack
a2831b37c4
feat: add database filesize in UI ( #488 )
2 years ago
boojack
ceac53b6d0
feat: additional script system setting ( #467 )
2 years ago
Stephen Zhou
205ad0fd6d
chore: change rss item title ( #464 )
2 years ago
boojack
bf07ab9e2f
fix: remove duplicate tag ( #450 )
...
fix: remove dumplicate tag
2 years ago
boojack
fe05e6a464
chore: update version 0.7.2 ( #447 )
2 years ago
boojack
79af7e8abf
fix: parse tag list ( #446 )
2 years ago
boojack
a142d975d7
feat: additional style system setting ( #444 )
...
* feat: additional style system setting
* feat: remove editor font setting
2 years ago
boojack
8f119c4265
chore: update session key ( #440 )
2 years ago
boojack
dc5d705f8c
feat: vacuum records manually ( #420 )
2 years ago
boojack
0d6281ef6b
chore: update signin page ( #410 )
...
* chore: update signin page
* chore: update version `v0.7.1`
2 years ago
boojack
8e2844e0c5
fix: tag regexp ( #409 )
...
* chore: enable `no-unused-vars`
* fix: tag regexp
2 years ago
boojack
cf75054106
feat: add system setting to allow user signup ( #407 )
2 years ago
boojack
b7fbbed895
chore: update pagination for getting all memos ( #396 )
2 years ago
boojack
006cb56d28
fix: heatmap data ( #394 )
2 years ago
boojack
55dee0df7e
fix: session max age ( #392 )
2 years ago
boojack
2a275b2875
fix: memo list default value ( #390 )
2 years ago
boojack
ef5492074e
chore: update memo stats api ( #387 )
2 years ago
boojack
64f0662a61
fix: get memo list order ( #370 )
2 years ago
boojack
8fb59bbfb9
chore: release `v0.7.0` ( #367 )
...
chore: update release version
2 years ago
Zeng1998
e85d368f87
feat: patch resource filename ( #360 )
...
* feat: resource filename rename
* update: resource filename rename
* update: resource filename rename
* update: validation about the filename
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack
95376f78f6
feat: add metric plugin ( #361 )
2 years ago
boojack
94df09c8c0
chore: update memo list api ( #350 )
2 years ago
boojack
9705406b82
feat: remove foreign key and triggers ( #345 )
2 years ago
Zhou Yunliang
4e00b1b0cd
feat: rss support ( #343 )
...
* feat: rss support
* chore: go mod tidy
* chore: change route group prefix
* Update server/server.go
Co-authored-by: boojack <stevenlgtm@gmail.com>
* Update server/rss.go
Co-authored-by: boojack <stevenlgtm@gmail.com>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack
f09bb2689c
chore: release `v0.6.1` ( #332 )
2 years ago
boojack
1c2998c4d8
feat: pagination for memo list ( #330 )
2 years ago
Zeng1998
fc5d5cf231
fix: patch memo with resource list ( #328 )
...
fix: 修改memo时添加图片不显示
2 years ago
boojack
b68d6e2693
feat: update memo sort option setting ( #326 )
...
feat: add memo display ts
2 years ago
Steven
6c53bd00f6
chore: restore user email
2 years ago
Steven
d670adc11f
chore: release `v0.6.0`
2 years ago
Steven
f407488128
chore: update dev version
2 years ago
boojack
246851fdbe
fix: create memo with visibility ( #281 )
2 years ago
boojack
21c30ac157
chore: hide user email ( #282 )
2 years ago
steven
4477f47c25
chore: release version `0.5.0`
2 years ago
steven
85dc29bfb9
feat: add `linkedMemoAmount` to resource
2 years ago
boojack
222c792539
fix: tag regexp ( #253 )
2 years ago
steven
ae8f292306
feat: create memo with resourceIdList
2 years ago
steven
33d31b7dca
fix: delete memo resource
2 years ago
steven
4c465bef2d
feat: add memo resource apis
2 years ago
steven
3bde9543f3
chore: update dev version `v0.5.0`
2 years ago
Steven
dc3052e225
chore: release `v0.4.5`
2 years ago
Steven
9b2e57cee5
fix: api access checks
2 years ago
Steven
63468dbaf3
chore: update memo detail access handler
2 years ago
Steven
721aa3c907
chore: update `v0.4.4`
2 years ago
Steven
19ef97a7ec
chore: update dev version
2 years ago
Steven
707d1a96eb
chore: move `version` pkg to `server/version`
3 years ago
Steven
b8a7df21f2
chore: release `v0.4.3`
3 years ago
Steven
fbce43870f
chore: update resource base url
3 years ago
Steven
b1e6956441
chore: add cache for resource
3 years ago
boojack
e9ac6affef
feat: add explore page ( #205 )
3 years ago
Steven
f303dc21a0
chore: add get all memo api
3 years ago
Steven
d68891d91d
chore: fix tag regex
3 years ago
Steven
4743818fe7
chore: update not found handler in deleting
3 years ago
Steven
64332c3e6a
chore: update tag regexp
3 years ago
boojack
cdbd934c4e
fix: tag regexp ( #173 )
3 years ago
Steven
7d0407013e
chore: make `golangci-lint` happy
3 years ago
boojack
e54ff5ec9e
fix: unescape filename ( #158 )
3 years ago
Steven
f0a23f4620
fix: generate uuid when creating new user
3 years ago
Steven
c60bb12424
chore: update user setting validator
3 years ago
Steven
3b1bb4a95d
chore: disable setting memo visibility when creating
3 years ago
Steven
05a5c59a7e
chore: update user create validator
3 years ago
Steven
68b30063a9
chore: update prod schema
3 years ago
Steven
d5b88775d9
chore: update user setting keys
3 years ago
Steven
e3fac742c5
chore: update logger
3 years ago
Steven
ce390f3f79
chore: add memo visibility with user setting
3 years ago
boojack
90b881502d
feat: add `user_setting` model ( #145 )
...
* feat: add `user_setting` model
* chore: add global store
* chore: update settings in web
* chore: update `i18n` example
3 years ago
boojack
d8e10ba399
chore: use `tx` for stores
3 years ago
boojack
8c28721839
chore: use `tx` for user store
3 years ago
boojack
84564891be
feat: add view resource dialog
3 years ago
boojack
99df4acfe9
chore: use `cors` middleware
3 years ago
boojack
5617118fa8
fix: acl middleware
3 years ago
boojack
d83f204d8c
chore: update acl middleware
3 years ago
boojack
7b1bad5b29
feat: update delete user api
3 years ago
boojack
0c2adfa1d2
feat: add delete user api
3 years ago
boojack
b7339e00ba
feat: update finding memo with visibility
3 years ago
boojack
15e1037433
chore: create backup when migration
3 years ago
boojack
1b50ab5dca
chore: use echo static middleware to serve dist
3 years ago
boojack
6053df050c
chore: update create memo with visibility
3 years ago
boojack
46d7ecca88
feat: use go embed
3 years ago
boojack
0505598509
fix: data desensitize
3 years ago
boojack
7c94db0ca0
chore: use flags instead of env vars
3 years ago
boojack
6a8c559e8c
chore: update visitor view buttons
3 years ago
boojack
ac560dfcf9
chore: update get user by id
3 years ago
boojack
1afc183458
feat: update memo visibility in frontend
3 years ago
boojack
697d01e306
feat: add `visibility` field to memo ( #109 )
...
* feat: add `visibility` field to memo
* chore: fix typo
3 years ago
boojack
aed137472c
fix: open id checking order
3 years ago
boojack
bdc9632b5b
chore: rename user role ( #108 )
...
* chore: rename user role to `host`
* chore: related frontend changes
* chore: fix migration file
* chore: use tricky sql
3 years ago
boojack
6f32643d7c
refactor: visitor view ( #107 )
...
* refactor: update api
* refactor: visitor view
* chore: update seed data
3 years ago
Hyoban
6b5d5e757e
feat: personal memos page ( #105 )
...
* feat: no need to log in to view memos
* chore: add a normal user to seed
* feat: page for other members
* fix: replace window.location
* fix: can not get username on home
* fix: check userID
* fix: can visit other user's page after login
* fix: do not redirect on wrong path
* fix: path error when clicked heatmap
* refactor: revise for review
* chore: remove unused import
* refactor: revise for review
* feat: update each user's route to /u/:userId.
* chore: eslint for import sort
* refactor: revise for review
3 years ago
boojack
592e037f21
feat: use api with open_id instead of webhooks
3 years ago
boojack
2fe2b82809
chore: update seed data
3 years ago
boojack
536627007d
feat: schema migration handler ( #100 )
...
* chore: update about site dialog
* feat: schema migration
* chore: lint with golangci
3 years ago
boojack
5b2e6a568f
chore: get tags by openid ( #95 )
3 years ago
boojack
011fcc7dd4
chore: rename module
3 years ago
Hyoban
a62c982a3d
fix: cannot register in production ( #91 )
3 years ago
boojack
4ce728300b
chore: data desensitize for owner
3 years ago
boojack
ceef257348
chore: get tags from exist memos
3 years ago
boojack
85ce72282b
fix: response type
3 years ago
Steven
9f81362027
feat: add `/api/tag` ( #82 )
3 years ago
STEVEN
164873b344
chore: find memo by tag ( #74 )
3 years ago
boojack
7b6be96eb3
chore: add patch memo by open api
3 years ago
boojack
c3c2882dc5
chore: update server profile
3 years ago
boojack
7b668f17f5
chore: rename repo
3 years ago
boojack
7b8a825489
chore: add greeting banner
3 years ago
boojack
bc22f69ac5
refactor: raw struct for store
3 years ago
boojack
74ab42069f
chore: add service version
3 years ago
boojack
c492317ffe
feat: member manage section in setting dialog
3 years ago
boojack
fbf4afff8e
refactor: store
3 years ago
STEVEN
5fc0fb24f4
feat: upload resource by openid api ( #55 )
3 years ago
STEVEN
f1cca0f298
feat: add user role field ( #49 )
...
* feat: add user role field
* chore: fix typo
* feat: update signup api
3 years ago
boojack
d947a512e6
chore: typo `Id` to `ID`
3 years ago
boojack
da94b96b0e
chore: update mode flag
3 years ago
boojack
406109b091
update: db initialization
3 years ago
email
b3a431570c
feat: system api with profiles
3 years ago
email
1cebf1dbd0
feat: const session secret key in dev
3 years ago
email
8f76120e4e
chore: clean server
3 years ago
email
3874523e61
chore: format server code
3 years ago
email
6f3663cd96
feat: user hash password
3 years ago
email
c77996a891
feat: open api for get memos
3 years ago
email
ef8034836c
fix: get session handler
3 years ago
email
61cf4512b0
fix: delete response json
3 years ago
email
925773dbd6
chore: address comments
3 years ago
email
825bea59f0
fix: user api
3 years ago
email
4535e0ce6d
fix: resource api
3 years ago
email
d609f2741d
feat: compose response data
3 years ago
email
d6418f5ff9
chore(go): use `json` instead of `jsonapi`
3 years ago
email
a8f0c9a7b1
fix: get&set session
3 years ago
email
d661134b03
refactor: backend
3 years ago
email
9bec29a03e
feat: support open api with webhooks
3 years ago
STEVEN
aa40793a68
Add resources api ( #9 )
...
* feat: add resource api
* update delete model return variables
3 years ago
steven
50c8947ad5
feat: remove user wx_open_id key
3 years ago
steven
f70ad6891d
add dockerfile
3 years ago