Commit Graph

61 Commits (b3ca9969c480dc300f348cb9171deef6bff25a9f)

Author SHA1 Message Date
Aleksandr Baryshnikov fa17dce046
feat: pre-signed URL for S3 storage (#2855)
Adds automatically background refresh of all external links if they are belongs to the current blob (S3) storage. The feature is disabled by default in order to keep backward compatibility.

The background go-routine spawns once during startup and periodically signs and updates external links if that links belongs to current S3 storage.

The original idea was to sign external links on-demand, however, with current architecture it will require duplicated code in plenty of places. If do it, the changes will be quite invasive and in the end pointless: I believe, the architecture will be eventually updated to give more scalable way for pluggable storage. For example - Upload/Download interface without hard dependency on external link. There are stubs already, but I don't feel confident enough to change significant part of the application architecture.
1 year ago
Steven 582cc6609c feat: add user-defined id to resource 1 year ago
Lincoln Nogueira 411e807dcc
chore: use consistent relative paths for resources (#2683)
- always store resources with a relative path with forward slashes, which will be transformed as needed when the file is accessed

- fix an issue with thumbnail generation on Windows

- add several validations for local storage setting

- improve front-end error feedback when changing local storage

- add migrations to make existing resource paths relative (not needed, but improves database consistency)
1 year ago
Steven dca712d273 chore: fix resource tests 1 year ago
Steven ac81d856f6 chore: delete resource file sync 1 year ago
Steven a6ee61e96d chore: update package name 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 6007f48b7d chore: retire memo resource relation table 1 year ago
Athurg Gooth d3a6fa50d6
chore: move sql code of Resource into driver (#2286)
Move sql code of Resource into driver
1 year ago
Steven 465b173b36 chore: fix resource int type 1 year ago
Steven 9bf1979fa8 fix: list resources 1 year ago
Steven fb1490c183 feat: impl resources list page 1 year ago
Steven 4424c8a231 chore: add resource service definition 1 year ago
boojack 7c5296cf35
chore: update id type to int32 (#2076) 2 years ago
Athurg Gooth 11abc45440
feat: add command to move blob from local to db (#2026)
* Add `mvrss` command to move blob from local to db

* Add comment for mvrss command
2 years ago
boojack 4c33d8d762
chore: remove unused transaction in store (#1995)
* chore: remove unused transaction in store

* chore: update
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
boojack de8014dfe8
feat: resource store cache (#1742) 2 years ago
boojack ea728d232d
refactor: memo store (#1741) 2 years ago
boojack 9b8d69b2dd
chore: add vacuum memo relation to dev guard (#1644)
* chore: add vacuum memo relation to dev guard

* chore: update
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 41c50e758a
chore: revert resource visibility changes (#1444) 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
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 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 977e7f55e5
feat: add visibility field to resource (#1185) 2 years ago
boojack f74d1b7bf8
chore: remove resource cache (#1059) 2 years ago
boojack 6c3ff6de63
chore: get resource blob optional (#991) 2 years ago
boojack c5368fe8d3
chore: update resource dialog style (#982) 2 years ago
boojack 575a0610a3
chore: revert "feat: add `visibility` field to resource (#743)" (#751)
Revert "feat: add `visibility` field to resource (#743)"

This reverts commit b68cc08592.
2 years ago
boojack b68cc08592
feat: add `visibility` field to resource (#743) 2 years ago
boojack dc5d705f8c
feat: vacuum records manually (#420) 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
Steven 349c383604 chore: reorder memo resource 2 years ago
steven 0b9b89db81 chore: update `VACUUM` 2 years ago
steven 85dc29bfb9 feat: add `linkedMemoAmount` to resource 2 years ago
steven 9f8c0ce567 fix: raw data cache 2 years ago
steven 4c465bef2d feat: add memo resource apis 2 years ago
Steven 4608894e56 fix: add `_foreign_keys` to sqlite dsn 2 years ago
boojack 76801dfa4f
chore: vacuum db file after deleting resource (#210) 3 years ago
Steven 4743818fe7 chore: update not found handler in deleting 3 years ago
boojack d8e10ba399 chore: use `tx` for stores 3 years ago
boojack da333b0b1e chore: add store cache service 3 years ago
boojack 84564891be feat: add view resource dialog 3 years ago
boojack 7b1bad5b29 feat: update delete user api 3 years ago