Commit Graph

233 Commits (1780225da5ab2d41cc916f69bfcc49128b51a2d9)

Author SHA1 Message Date
boojack 5e20094386
chore: add indexes ()
boojack 40a30d46af
chore: update db connection params ()
Athurg Gooth d9b3501fae
feat: add support for auto backup db file ()
Add support for auto backup db file
boojack 698380f940
chore: update seed data ()
boojack 7e391bd53d
chore: remove resource public id ()
* chore: remove resource public id

* chore: update
boojack 0e05c62a3b
chore: update common utils ()
boojack a7573d5705
refactor: migrate memo to apiv1 ()
* refactor: migrate memo to apiv1

* chore: update

* chore: update

* chore: update

* chore: upate

* chore: update

* chore: update
boojack 1fa9f162a5
refactor: migrate resource to apiv1 ()
boojack 5b6c98582e
refactor: migrate storage to apiv1 ()
* refactor: migrate storage to apiv1

* chore: update

* chore: update

* chore: update
boojack 223404a240
chore: update memo seed data ()
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 9a8d43bf88
chore: update user store names ()
* chore: update user store names

* chore: update
Vespa314 63d6b6f9f9
chore: listMemos sort by id for memos post/update at the same time ()
boojack 6a78887f1d
chore: update store types name ()
boojack 7226a9ad47
chore: update idp store ()
boojack b44f2b5ffb
chore: migrate user setting to api v1 package ()
* chore: migrate to api v1 package

* chore: update
boojack 07e82c3f4a
fix: schema migrate ()
* fix: schema migrate

* chore: update
boojack b34aded376
refactor: migration idp api ()
* refactor: migration idp api

* chore: update
boojack 4ed9a3a0ea
refactor: migrate auth routes to v1 package ()
* feat: add api v1 packages

* chore: migrate auth to v1

* chore: update test
Athurg Gooth 25ce36e495
feat: resource visibility ()
* 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>
Athurg Gooth ddf4cae537
feat: disable CGO_ENABLED ()
* Replace mattn/go-sqlite3 with modernc.org/sqlite

* Disable CGO to make binary work without special c lib

* Replace mattn/go-sqlite3 with modernc.org/sqlite in testing code

* Tidy go module

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
boojack beb4d8ccb9
chore: order by updated ts in memo store ()
boojack c40aeb91e6
fix: patch memo row status ()
boojack 2e34ce90a1
chore: upgrade version `0.13.1` ()
Athurg Gooth 4ea5426e18
feat: add support for content search ()
* Change MemoFind.ContentSearch to slice

* Add support for content search

* Change for go-simple sugguest

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
Athurg Gooth 1282fe732e
feat: implement telegram bot plugin ()
boojack de8014dfe8
feat: resource store cache ()
boojack ea728d232d
refactor: memo store ()
boojack 1d7627dd72
chore: upgrade version `0.13.0` ()
* chore: upgrade version `0.13.0`

* chore: update
boojack a07d5d38d6
feat: memo relation part1 ()
* feat: memo relation part1

* chore: update
boojack 1a8310f027
chore: update system setting default value ()
Zeng1998 9eafb6bfb5
chore: add the default value of MaxUploadSizeMiB ()
Lincoln Nogueira 96021e518a
feat: add max upload size setting to UI & UI improvements ()
* 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  (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
boojack 5c5199920e
chore: seed data for new user ()
CorrectRoadH 700fe6b0e4
fix: return pinned status after edit ()
* stash

* query pinned status after patch

* eslint

* refactor query

* eslint

* process specify case

* add test

* Update memo.go
boojack 9b8d69b2dd
chore: add vacuum memo relation to dev guard ()
* chore: add vacuum memo relation to dev guard

* chore: update
boojack b6564bcd77
feat: implement memo relation server ()
boojack 4603f414db
chore: add system setting cache ()
boojack fab8a71fd2
feat: implement memo relation store ()
* feat: implement memo relation store

* chore: update
boojack cd6ab61c2d
chore: add memo_relation ()
boojack 6ff7cfddda
fix: return external link directly ()
* fix: return external link directly

* chore: update
boojack bdc00d67b2
chore: add default local storage path ()
boojack 5aa4ba32c9
fix: system setting field name ()
boojack 4419b4d4ae
chore: update version and remove isDev flag ()
* chore: update version and remove isDev flag

* chore: update
boojack 1cab30f32f
feat: add public id field to resource ()
* feat: add public id field to resource

* feat: support reset resource link
boojack 4f2adfef7b
chore: update system setting name convention ()
boojack 8a33290722
chore: update user setting key convention ()
* chore: update user settng key convention

* chore: update
boojack 41c50e758a
chore: revert resource visibility changes ()
CorrectRoadH 424f10e180
feat: request pagination for resource()
* 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>
boojack 993ea024fd
chore: update demo seed data ()