85 Commits

Author SHA1 Message Date
nocobase[bot]
090e012384 Merge branch 'main' into next 2025-04-28 11:48:43 +00:00
Junyi
3b1b4cfef5
fix(plugin-file-manager): add oss timeout option default to 10min (#6795) 2025-04-28 19:48:18 +08:00
Sheldon Guo
c2521a04c1
feat(file-manager): add getFileStream api (#6741) 2025-04-27 19:50:24 +08:00
nocobase[bot]
0fa82f0404 Merge branch 'main' into next 2025-04-20 07:24:32 +00:00
Junyi
ec0e1787d4
refactor(plugin-file-manager): expose utils api (#6705) 2025-04-20 15:24:11 +08:00
Katherine
f99cdb5f02
fix(attachment-url): only allow file collections with public URL access (#6664)
* refactor: isPublicAccessStorage

* fix: bug

* fix: bug

* fix: only allow file collections with public URL access

* fix: build

* fix: test
2025-04-14 22:35:17 +08:00
nocobase[bot]
3b7120fd46 Merge branch 'main' into next 2025-04-01 09:49:02 +00:00
Junyi
b04d4a82d9
refactor(file-manager-storage): add trim option for text fields (#6604) 2025-04-01 17:48:41 +08:00
nocobase[bot]
ab6440c2a9 Merge branch 'main' into next 2025-03-27 10:52:42 +00:00
mytharcher
5f85b9ab9a fix(plugin-file-manager): fix error of getting file key when path is null 2025-03-27 18:51:52 +08:00
Zeke Zhang
dcbaa767d2
feat(Vditor): support s3 pro (#6441)
* feat(Vditor): support s3 pro

* fix(Edit): refactor upload handling to improve custom request support

* fix(Edit): enhance file upload handling with custom request support and add localization for upload messages

* fix: input issue

* feat: enhance upload functionality by integrating collection manager in markdown editor

* feat: add upload error handling and improve localization messages for storage configuration

* fix: streamline upload loading message handling and improve baseUrl retrieval in storage actions

* fix: remove unused imports and refactor storage afterSave and afterDestroy hooks for better async handling

* refactor: enhance file upload functionality and improve loading messages across multiple locales

* refactor: streamline upload method selection process in PluginFileManagerClient

* fix: implement file upload support check and streamline storage retrieval process

* fix: add ACL permission check for logged-in users in Vditor plugin

* fix: change ACL permission from 'loggedIn' to 'public' for Vditor plugin

* fix: update file storage description in Markdown editor to include default attachments

* test: add unit tests for vditor storage check functionality

* test: add unit tests for PluginFileManagerClient uploadFile method

* fix: handle optional chaining for collection options in public forms plugin

* fix: add getStorageByCollectionName action and update permissions

* fix: update storage response structure in vditor plugin

* fix: update ACL permissions for vditor and storages to require logged-in users

* fix: simplify uploadFile method by removing redundant storageId retrieval

* fix: update storage assertions in vditor tests to use inline snapshots

* fix: enhance file upload functionality with improved storage handling and error messages

* fix: remove getStorageByCollectionName method and update ACL permissions for storages

* fix: remove commonUpload method from storage types and update imports

* fix: update parseCollectionData method to include dataSourceKey for improved data handling

* fix: update useStorageUploadProps to enhance storage upload properties handling

* fix: update action handling for storages to include createPresignedUrl

* fix: ensure focus in input box before file upload
2025-03-26 14:32:15 +08:00
Junyi
bad6ac5c96
refactor(plugin-file-manager): adjust getFileData API (#6553)
* refactor(plugin-file-manager): adjust getFileData API

* fix(plugin-file-manager): fix cache and test case

* fix(plugin-file-manager): fix test case
2025-03-25 21:35:09 +08:00
chenos
44ee058730
fix: getFileKey (#6523)
* fix: getFileKey

* fix: storage cannot be deleted
2025-03-22 05:13:24 +08:00
chenos
bd51bd545e
fix: unable to access files stored in COS (#6512)
* fix: unable to access files stored in COS

* fix: ensureUrlEncoded
2025-03-20 14:56:42 +08:00
chenos
00cd51c14e
fix: encode url (#6497) 2025-03-18 21:18:43 +08:00
Junyi
5144d47eb9
refactor(plugin-file-manager): refactor file url generating (#6472)
* refactor(plugin-file-manager): change file url generation to a better way

* fix(plugin-file-manager): use url field first

* fix(client): remove unused function call

* fix(plugin-file-manager): fix test cases

* fix: local getURL

* fix: md5

* fix: getFileURL

* fix(plugin-file-manager): fix FileModel class

* fix: use DeleteObjectCommand

* fix(plugin-file-manager): fix package version and require

* test(plugin-file-manager): fix test cases

* fix: storageInstance

* fix: test case error

* fix: url-join

* fix: autoGenId false

* fix: url

* fix: file.url

* fix: file preview

* fix: test error

* fix: isURL

* fix: only

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2025-03-17 08:54:26 +08:00
Junyi
4b91d890cf
refactor(utils): move md5 to utils (#6468)
* refactor(utils): move md5 to utils

* fix(utils): fix export

* fix(utils): add missed file
2025-03-14 22:19:20 +08:00
chenos
7331cc78f5
fix: unable to delete files stored in S3 (#6467) 2025-03-14 20:18:14 +08:00
Junyi
cc0e13dce0
fix(plugin-file-manager): fix file issues (#6436)
* fix(plugin-file-manager): fix file issues

* fix(plugin-file-manager): fix special char in windows
2025-03-12 23:35:14 +08:00
nocobase[bot]
4362709ccd Merge branch 'main' into next 2025-03-01 07:12:32 +00:00
chenos
f778b2f5d6 fix(upload): resolve Chinese filename encoding issue 2025-03-01 15:11:02 +08:00
nocobase[bot]
d48adaac6a Merge branch 'main' into next 2025-02-26 12:09:01 +00:00
Junyi
22869ca184
fix(plugin-file-manager): fix migration for inherited collection (#6310) 2025-02-26 20:08:35 +08:00
nocobase[bot]
6cc13958de Merge branch 'main' into next 2025-02-25 15:29:30 +00:00
Junyi
80633ce079
fix(plugin-file-manager): fix migration and add test cases (#6288) (#6293)
* fix(plugin-file-manager): fix migration and add test cases

* fix(plugin-file-manager): fix test case fails for mysql

* fix(plugin-file-manager): fix test cases

* fix(plugin-file-manager): change migration name
2025-02-25 23:29:02 +08:00
mytharcher
d76ca21d29 Merge branch 'main' into next 2025-02-25 21:09:10 +08:00
Junyi
aa8b98d615
fix(plugin-file-manager): fix migration and add test cases (#6288)
* fix(plugin-file-manager): fix migration and add test cases

* fix(plugin-file-manager): fix test case fails for mysql

* fix(plugin-file-manager): fix test cases

* fix(plugin-file-manager): change migration name
2025-02-25 20:53:13 +08:00
Jiannx
669c7f6335
feat: add backend code to generate file preview url for next (#6281)
* feat: adjust preview field of file collection

* fix: add banckend to generate preview

* fix: undefined error
2025-02-25 09:33:11 +08:00
Zeke Zhang
739fecbbe7 Merge branch 'main' into next 2025-02-25 05:57:38 +08:00
Junyi
cdcea99e30
fix(plugin-file-manager): increase url length (#6275)
* fix(plugin-file-manager): increase url length

* fix(client): fix null value
2025-02-24 22:53:57 +08:00
chenos
7857993dcd
fix: getFilename (#6217) 2025-02-24 22:00:39 +08:00
Junyi
f8a5999903 refactor(plugin-file-manager): change storage type api and add plugin api (#6246)
* refactor(plugin-file-manager): change storage type api and add plugin api

* fix(plugin-file-manager): fix test cases
2025-02-24 19:04:37 +08:00
nocobase[bot]
f53c2d836b Merge branch 'next' into develop 2025-01-25 14:21:24 +00:00
nocobase[bot]
4c3b4c8497 Merge branch 'main' into next 2025-01-25 14:20:56 +00:00
ChengLei Shao
49cad7ed3f
chore: append acl strategy resource (#6137) 2025-01-25 22:20:32 +08:00
Chareice
2b58c13aa5
chore: migration rules 2025-01-24 22:31:39 +08:00
Zeke Zhang
e29f9fa39e Merge branch 'next' into develop 2025-01-24 16:46:21 +08:00
katherinehhh
955c167f5e Merge branch 'main' into next 2025-01-24 15:51:52 +08:00
chenos
225278602c
Update server.ts 2025-01-24 15:22:21 +08:00
Junyi
55a7d9a828
refactor(plugin-file-manager): move destroy to collection event (#6127) 2025-01-23 22:27:11 +08:00
Jiannx
7ccf088a06
Feat/support s3 storage next (#6096)
* feat: change upload components

* feat: restore original component in schema, support useUploadProps register

* feat: s3 upload support relation fileds

* feat: export buildin storages

* chore: remove invalid file

* fix: change getStorage action name

* fix: change action name getDesensitizedStorage to getDesensitized

* fix: add storage get action

* fix: remove useStorageRules

* fix: change action get to getBasicInfo

* fix: adjust server test case
2025-01-20 14:34:43 +08:00
chenos
5aec227032 Merge branch 'next' into develop
# Conflicts:
#	packages/plugins/@nocobase/plugin-workflow/src/client/variable.tsx
2025-01-15 21:09:10 +08:00
nocobase[bot]
e5d398d8a1 Merge branch 'main' into next 2025-01-15 13:06:02 +00:00
chenos
2c936b6eb1
feat: improve the extensibility of file-storage (#6071) 2025-01-15 21:05:35 +08:00
Katherine
5d5f455b3c
feat: supports configuring dynamic environment variables and secrets (#5966)
* feat: environments plugin

* feat: improve code

* fix: improve code

* feat: improve code

* refactor: package description

* feat: bulk import

* fix: remove

* refactor: file manager support environment variables

* refactor: file manager support environment variables

* refactor: map manager support environment variables

* refactor: support environment variables

* refactor: support environment variables

* refactor: support delete environment variables

* fix: bug

* refactor: workflow support environment variables

* refactor: email  environment variables

* refactor: support bulk import

* refactor: support bulk import

* refactor: support bulk import

* refactor: support bulk import

* refactor: code improve

* feat: env

* chore: update

* feat: environment

* fix: bug

* fix: acl snippet

* fix: acl snippets

* chore: map manager

* refactor: support line break

* refactor: support password

* chore: environment variables

* fix: bug

* fix: bug

* chore: enviroment variables

* chore: system settings

* fix: improve code

* feat: verification

* feat: map

* feat: file-manager

* feat: notification

* fix: bug

* feat: workflow

* fix: improve code

* fix: bug

* feat: data-source

* feat: auth

* fix: error

* fix: bug

* refactor: description

* refactor: locale

* refactor: locale

* refactor: locale

* refactor: code improve

* refactor: locale

* refactor: locale

* style: style improve

* fix: error

* fix: bug

* fix: bug

* refactor: environment

* fix: ellipsis

* refactor: password

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* chore: test

* fix: cache

* fix: mysql dialect options

* refactor: email config form

* fix: bug

* fix: bug

* fix: authenticator.dataValues parse

* fix: include undefined

* fix: json

* fix: json parse

* chore: enviromentProvider

* fix: acl

* fix: rowKey

* fix: update ProviderOptions.tsx

* feat: get app instance

* fix: bug

* fix: text

* fix: build error

* fix: error

* chore: migration rules options

* chore: migration rules

* refactor: code improve

* feat: env v2

* chore: environment varibales

* chore: environment serve

* fix: getVariables

* feat: improve code

* fix: bug

* chore: collection options for migration

* chore: tree collection options

* chore: migration rules

* chore: migration rules

* chore: env api

* chore: env api

* fix: optionsKeysNotAllowedInEnv

* fix: required true

* fix: improve code

* fix: app refresh

* fix: remove db.import

* fix: type error

* fix: map

* refactor: locale improve

* refactor: tx-cos

* fix: undefined

* refactor: code improve

* chore: use bookworm

* fix: npm add user

* fix: npm login

* fix: npm adduser

* fix: npm adduser

* fix: expect

* fix: expect

* fix: environmentVariables

* refactor: support bulk delete & filter

* refactor: locale improve

* feat: filter

* refactor: useGlobalVariable

* fix: scope

* fix: bug

* fix: optionsKeysNotAllowedInEnv

* fix: test error

* fix: test

* fix: test

* feat: improve code

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: Chareice <chareice@live.com>
2025-01-08 09:32:49 +08:00
Jiannx
af66ddb80f
feat: support s3 compatible storage (#5930)
* feat: change upload components

* feat: restore original component in schema, support useUploadProps register

* feat: s3 upload support relation fileds

* feat: export buildin storages

* chore: remove invalid file

* fix: change getStorage action name

* fix: change action name getDesensitizedStorage to getDesensitized

* fix: add storage get action

* fix: remove useStorageRules

* fix: change action get to getBasicInfo

* fix: adjust server test case

---------

Co-authored-by: mytharcher <mytharcher@gmail.com>
2025-01-04 11:31:52 +08:00
nocobase[bot]
e5d61b3b58 Merge branch 'next' into develop 2024-11-23 06:59:25 +00:00
chenos
6bf52c2eef fix(file-manager): when the endpoint is an empty string, set it to undefined 2024-11-23 14:19:57 +08:00
nocobase[bot]
8d896bbb9b Merge branch 'next' into develop 2024-11-22 13:04:53 +00:00
chenos
e7e7c6dc00
fix(file-manager): when the endpoint is not empty, forcePathStyle is set to true (#5712) 2024-11-22 20:29:33 +08:00