Commit Graph

715 Commits (0200ce7681eb13e955c6f93ccaaaecbe46421ac9)

Author SHA1 Message Date
Steven 320963098f refactor: update storage setting 10 months ago
Steven f25c7d9b24 fix: serve frontend assets 10 months ago
Steven 1b291422e7 refactor: api version 10 months ago
Steven 92872118b9 refactor: tweak api definition 10 months ago
Steven 9b66ef5e26 chore: tweak api definition 10 months ago
Steven a6a62eb79c chore: update gitignore 10 months ago
Steven 5f26c52b49 feat: add goreleaser 10 months ago
Steven e8dfd579c3 chore: update background services 11 months ago
Steven 2a93b8d720 chore: tweak linter 11 months ago
Steven 5d967f41d9 chore: update server 11 months ago
Steven 339fecbfff chore: allow search comments 11 months ago
Steven 14d4cfd5a4 chore: tweak store methods name 11 months ago
Steven 95df647265 chore: tweak comments 11 months ago
coderwander 162521885c
chore: fix some typos in comments (#3243)
Signed-off-by: coderwander <770732124@qq.com>
11 months ago
Steven f9dd29ae07 chore: tweak tag store 11 months ago
Steven 1f0bfd2169 chore: update tag store 11 months ago
Eng Zer Jun 3b550a8ab8
chore: replace util.Min helper with built-in min (#3224) 11 months ago
Steven cb7886dc49 chore: retire telegram integration in frontend 11 months ago
Steven d00e4fdf17 chore: retire telegram plugin 11 months ago
Steven 9a2c423435 chore: update var-naming 11 months ago
Steven 49f8cfd5d1 chore: update jwt middleware 11 months ago
Steven 75359854cc chore: fix resource routes 11 months ago
Steven cebc46adc7 chore: tweak store definition 11 months ago
Steven bbd206e893 chore: retire legacy api 11 months ago
Steven c373131b89 chore: migrate idp service 11 months ago
Steven 8f51529c78 chore: implement storage service 11 months ago
Steven 707e5caf89 chore: update workspace setting store 11 months ago
Steven 074e7cf71a chore: fix resource path 11 months ago
Steven 133951328b chore: fix linter 11 months ago
Steven 755d5b83c6 chore: retire legacy setting api 11 months ago
Steven 3e6e56b008 refactor: update workspace store definition 11 months ago
Steven eb251a097e chore: update workspace setting service 11 months ago
Steven 4c47e93fce chore: tweak workspace setting store 11 months ago
Steven c93b1efbae chore: update workspace setting store 11 months ago
Steven b1e196bb4f fix: delete memo reaction 11 months ago
Steven ff81ea602d chore: tweak error message 11 months ago
Steven 8101a5e0b1 chore: add origin flag to config cors 11 months ago
stayweek 5aa633948e
chore: use the built-in slices library (#3172)
Signed-off-by: stayweek <jiangtengtao@outlook.com>
11 months ago
Steven 33e9b13665 chore: tweak linter 11 months ago
Steven b79f626a74 chore: fix memo comment inbox 11 months ago
Steven cbebbca7d6 chore: add idp definition 11 months ago
Steven bb10bb200c chore: implement search random memos 11 months ago
Steven 54a3c25ebd chore: update memo resource name definition 11 months ago
Steven ea6628066d chore: update sidebar components 11 months ago
Steven 90679cc33a chore: add explore sidebar 11 months ago
Steven 2ebea4dba9 chore: fix workspace profile api 11 months ago
Steven e703b4f70d fix: resource v1 definition 11 months ago
Steven 8fd1dff484 chore: update migration scripts 11 months ago
Steven c5fa4fe304 chore: tweak imports order 11 months ago
Steven 8f37d7490c chore: fix linter 11 months ago
Steven 18d16abdb5 chore: update workspace service 11 months ago
Steven 7c5261b5d2 chore: tweak resource definition 12 months ago
Steven 7cc8b951a3 refactor: update resource id naming 12 months ago
Steven 76c936357b chore: fix resource link 12 months ago
Steven 6db427e396 chore: update acl list 12 months ago
Steven 0a0ccbf6e1 chore: update acl list 12 months ago
Steven ed89cb8310 chore: update memo relation definition 12 months ago
Steven efb15a0453 chore: tweak naming 12 months ago
Steven 5f2d6b22be chore: tweak memo structure 12 months ago
Steven 2dc8ed773c chore: tweak linter 12 months ago
Steven 86db6d0254 chore: tweak user api definition 12 months ago
Steven 1e43c8d84b chore: disallow update workspace setting in demo mode 12 months ago
Steven 335a0312f2 chore: tweak link styles 12 months ago
Steven 14479347d8 chore: remove demo checks 12 months ago
Steven 606a30640d fix: check username in signup 12 months ago
Steven e795149186 chore: tweak memo view display 12 months ago
Steven 8fe6874b1b chore: add description field to user 12 months ago
Steven 5d740c3813 chore: update link service 12 months ago
Mehad Nadeem 0abe20df72
feat: implemented link previews (server files) (#3073)
* feat: implmented link previews (server files)

* chore: updated variable name

* chore: renamed service file from `metadata_service.go` to `link_service.go`

* fix: passing errors

* fix: fixed linter warnong about `ctx`
12 months ago
Steven 6b6edc3791 chore: update tg message handler 12 months ago
steven ed1954c58c chore: fix check setting value 12 months ago
WonSeok f46b64a17d
fix: check disallow public memo in Telegram(#3036) (#3037) 1 year ago
Steven 7d5f603482 chore: update compact view 1 year ago
Steven ac8a374ebd chore: bump version 1 year ago
Steven 95b02341eb chore: tweak logger 1 year ago
Steven cfb50f19aa chore: tweak linter 1 year ago
Steven e441e3882b chore: update error logger 1 year ago
Steven c1da87a819 chore: update get request origin 1 year ago
Steven dfa78cac49 chore: update logger 1 year ago
Steven 5f2a624c0c chore: tweak imports order 1 year ago
Steven 3e50bee7da chore: move api directory 1 year ago
ercd 1ae9bf23a0
fix: telegram callback query handler dereferencing nil pointer if memo not found (#3003)
* fix: telegram callback query handler dereferencing nil pointer if memo not found

* chore: add an answer to callback query if memo not found
1 year ago
Steven b0f52ade7a chore: remove metric service 1 year ago
Steven 51d58d3982 chore: add workspace setting migrator 1 year ago
Steven 4a6da91719 chore: fix serve frontend flag 1 year ago
Steven 8e11826db1 chore: update workspace setting service 1 year ago
Steven 3dddd3ec4c chore: tweak reaction store 1 year ago
Steven c30d7ab8f3 chore: update cors middleware 1 year ago
Steven 15c90871d9 chore: update request base url 1 year ago
Elliot Chen 7cd3fcbc61
fix: wrong order of the timeline in the resource page & add webhook when create memos using Telegram bot (#2886)
* fix: wrong order in resource page timeline

* feat: add webhook when create memos using Telegram bot

* rename variables and fix typos for static checks
1 year ago
Steven 79227021f5 chore: bump version 1 year ago
Steven 30ae4140f3 chore: update gomark source 1 year ago
Steven de8db63811 chore: rename workspace setting service 1 year ago
Steven 54c5039db3 chore: fix golang linter 1 year ago
Steven af646ce2de refactor: move gomark 1 year ago
Steven f4ac7ff529 chore: update memo resource url 1 year ago
Steven db3457e081 chore: bump version 1 year ago
Steven a620d140c5 chore: update embedded content renderers 1 year ago
Steven 582cc6609c feat: add user-defined id to resource 1 year ago
Steven 40bd75c725 fix: create memo with resource name 1 year ago
Lincoln Nogueira 089e04bcfd
chore: use webp compression on logo (#2756)
- Logo size reduced from 310 KB to 36 KB.
- Point metadata image URL to local logo instead of remote
1 year ago
Steven 2eba4e2cd4 chore: update version 1 year ago
Steven 0f8bfb6328 chore: update index.html 1 year ago
Steven 4cd01ece30 chore: update frontend metadata 1 year ago
Lincoln Nogueira 14b34edca3
chore: fix misuse of package path instead of filepath.path (#2684)
As stated by https://pkg.go.dev/path, "path" is mainly for URLs, "path.filepath" for file systems
1 year ago
Steven fcfb76a103 chore: remove user urlsets in sitemap 1 year ago
Steven 42608cdd8f chore: fix server context 1 year ago
Steven 2cfa4c3b76 chore: tweak frontend routes register 1 year ago
Steven 68413a5371 chore: update frontend service 1 year ago
Steven 273d6a6986 chore: update dockerfile 1 year ago
Steven eefce6ade3 chore: implement webhook dispatch in v2 api 1 year ago
Steven df3303dcd3 chore: update list users 1 year ago
Athurg Gooth b14334220f
fix: trim the dirname of attachment send by telegram bot (#2651) 1 year ago
Steven e0cacfc6d6 chore: retire auto backup for sqlite 1 year ago
Steven 2c4b5d75b3 chore: fix html escaping 1 year ago
Steven 1c7fb77e05 chore: update user setting names 1 year ago
Steven e8ca2ea5a0 chore: rename renderer package 1 year ago
Steven aee0e31b0a chore: update parser functions 1 year ago
Steven 7b0ceee57b chore: update memo metadata description 1 year ago
Steven e4070f7753 chore: bump version 1 year ago
Steven ff53187eae chore: add sitemap and robots routes 1 year ago
Steven 56b55ad941 chore: update memo metadata 1 year ago
Steven 24672e0c5e chore: update memo metadata 1 year ago
Steven 52743017a3 chore: implement memo route 1 year ago
Steven 6cf7192d6a chore: add ssr placeholder in `index.html` 1 year ago
Steven e5de8c08f5 chore: clean debug code 1 year ago
Steven c608877c3e chore: clean binary entries 1 year ago
Steven c50f4f4cb4 chore: update migration scripts 1 year ago
Steven 7fc7b19d64 chore: deprecate user setting legacy api 1 year ago
Steven f8f73d117b chore: update healthz message 1 year ago
Steven 8586ebf098 chore: add `/healthz` endpoint 1 year ago
Steven e7e83874cd chore: upgrade version 1 year ago
Athurg Gooth afd0e72e37
chore: skip timeout for blob upload (#2516)
Skip timeout for blob upload
1 year ago
Athurg Gooth 6814915c88
feat: backup file rotate (#2511)
Add support for rotate backup files
1 year ago
Steven 342d1aeefb fix: version checker 1 year ago
Steven 981bfe0464 feat: add version checker 1 year ago
Steven c24181b2be chore: fix jwt checks 1 year ago
Steven 88fb79e458 chore: impl inbox store for mysql 1 year ago
Athurg Gooth 4f1bb55e55
fix: metric env not affect (#2450)
fix metric env not affect
1 year ago
Athurg Gooth 20d3abb99a
chore: downgrade log level for auto backup disable (#2454)
downgrade log level for auto backup disable
1 year ago
Steven 36b4ba33fa chore: remove outdated activity definition 1 year ago
Athurg Gooth 0f4e5857f0
chore: remove gRPC listener (#2456)
Disable gRPC listener
1 year ago
Athurg Gooth 215981dfde
chore: remote context.Context pointer (#2448)
remote context.Context pointer
1 year ago
Steven 5b3af827e1 chore: move common packages to internal 1 year ago
Athurg Gooth fd5d51ee54
fix: some fields of profile leaked without auth (#2408)
* fix some fields of profile leaked without auth

* protect driver and dsn of profile
1 year ago
Steven a541e8d3e3 chore: upgrade version 1 year ago
Steven 9bfb2d60b9 chore: tweak wording 1 year ago
Steven a5df36eff2 chore: update metrics 1 year ago
Athurg Gooth d3e32f0d5a
chore: add latency in log (#2374)
* Print profile.Data in boot log

* Add latency in request log
1 year ago
Steven ab2c86640b chore: move rate limiter to apiv1 1 year ago
Athurg Gooth c00dac1bbf
fix: index page failed with 429 (#2363) 1 year ago
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