Commit graph

99 commits

Author SHA1 Message Date
hexxa
b6000771d7 test(userstore): fix flaky test 2021-08-13 05:00:09 -05:00
hexxa
7752733fb9 feat(files): disallow normal users to access home dir 2021-08-13 05:00:09 -05:00
hexxa
8eac11afda chore(deps): upgrade gin to 1.7.3 2021-08-13 05:00:09 -05:00
hexxa
b1a723be21 test(files/sharings): add e2e tests 2021-08-13 05:00:09 -05:00
hexxa
df0264ecfd feat(sharing): enable APIs for sharing 2021-08-13 05:00:09 -05:00
hexxa
a96f552323 feat(deps, server): add FileInfoStore to deps 2021-08-13 05:00:09 -05:00
hexxa
e74c3c34e3 feat(fileinfostore): support GetSharing 2021-08-13 05:00:09 -05:00
hexxa
c78692df52 feat(store): add FileInfoStore 2021-08-13 05:00:09 -05:00
dependabot[bot]
834c577a71 chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /src/client/web
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 02:47:00 -05:00
dependabot[bot]
e7163c5c1c chore(deps): bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 02:46:37 -05:00
hexxa
832c65f94f test(e2e): add quota configs 2021-08-08 21:32:43 -05:00
hexxa
f986015c0b fix(fe/be): clean up and enable quota in ui 2021-08-08 21:32:43 -05:00
hexxa
cdd15be4aa feat(files): enable limiter for download 2021-08-08 21:32:43 -05:00
hexxa
fd5da3db37 feat(files): enable upload limiter 2021-08-08 21:32:43 -05:00
hexxa
e01f5f8351 feat(pkg): add limiter 2021-08-08 21:32:43 -05:00
hexxa
e73947de0d feat(users): enable quota in handlers 2021-08-08 21:32:43 -05:00
hexxa
75e10e6ad9 feat(user_store): add quota to user info 2021-08-08 21:32:43 -05:00
Hexxa
1fcb2223a0
feat(be/fe): enable captcha (#69)
* feat(ui): enable captcha

* feat(server): enable captcha

* fix(ui): fix login pane layout

* fix(config): remove unused config and files

* fix(be/fe): clean up code

* chore(fe/be): clean up code
2021-08-07 11:27:24 +08:00
Hexxa
021e5090be
feat(): refactor uploader (#68)
* chore(src): delete unused codes

* fix(client/worker): refactor uploading part and fix issues

* fix(ui/worker): rename fg worker file name

* fix(ui/worker): cleanups

* feat(ui/uploader): switch from file_uploader to chunk_uploader with tests

* fix(ui/worker): clean up code
2021-08-05 11:00:51 +08:00
Hexxa
aefaca98b3
feat(admin): enable multi-users (#67)
* feat(userstore): support ListUsers

* feat(userstore): support del users

* feat(multiusers): support list users and delete user apis

* feat(client/web): add new apis to web client

* fix(ui/panes): move each pane out of the container

* feat(ui): add admin pane

* feat(users): support force set password api

* feat(ui/admin-pane): add functions to admin pane

* feat(users): support self API and move uploading folder to home

* fix(users): remove home folder when deleting user

* fix(ui): remove useless function

* feat(ui/panes): hide admin menu if user is not admin

* fix(server/files): list home path is incorrect

* fix(server): 1.listHome return incorrect cwd 2.addUser init folder with incorrect uid 3.check ns before using

* test(server): add regression test cases

* test(users, files): add e2e test for concurrent operations

* fix(test): clean ups
2021-07-31 10:59:33 +08:00
Hexxa
916ec7c2dc
fix(ui): fix layout of list & pane (#66)
* fix(ui): refine pane layout

* fix(test): add pane_admin component
2021-07-25 16:19:57 +08:00
Hexxa
df46915147
fix(client/web): refine list layout (#65) 2021-07-25 10:19:23 +08:00
Hexxa
81da97650b
feat(multi-home): enable separated home dir for each user (#64)
* feat(files): make files service supporting home dir

* fix(files): add path access control and avoid redirecting path in the backend

* feat(files): add ListHome API

* fix(server): fix access control issues

* feat(client/web): support multi-home

* feat(server): cleanup

* fix(server): failed to init admin folder
2021-07-25 10:05:36 +08:00
Hexxa
9748d0cab4
feat(users): add roles APIs (#63)
* feat(kvstore): add namespace operations for bool

* feat(userstore): add methods for roles

* chore(multiusers): remove useless todo

* feat(multiusers): add apis for roles

* test(roles): add e2e tests for role APIs

* test(e2e/files): enable files tests
2021-07-10 20:08:32 +08:00
Hexxa
4b6f6d9e1f
feat(server): Replace single-user service with muti-users service (#62)
* feat(svc/multiusers): add multi-users service

* test(multiusers): add unit tests for user store

* feat(multiusers): add multiusers service and refactor userstore

* feat(multiusers): add adduser api and tests

* feat(client): add adduser api
2021-07-10 16:59:59 +08:00
dependabot[bot]
1680c5cb2f
chore(deps): bump acorn from 6.1.1 to 6.4.2 in /src/client/web (#61)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.1.1 to 6.4.2.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.1.1...6.4.2)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-01 14:56:35 +08:00
dependabot[bot]
6f595c446d
chore(deps): bump ws from 6.2.1 to 6.2.2 in /src/client/web (#60)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-16 13:51:56 +08:00
dependabot[bot]
e42a73de74
chore(deps): bump ws from 6.2.1 to 6.2.2 (#59)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-16 13:51:43 +08:00
dependabot[bot]
c9ddea88e4
chore(deps): bump browserslist from 4.5.6 to 4.16.6 in /src/client/web (#58)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.5.6 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.5.6...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-28 16:57:14 +08:00
Hexxa
047e3a8601
fix(client/web): remove css loader (#57) 2021-05-21 15:19:28 +08:00
Hexxa
10c13f5ad8
[files] auto rename file if there is a duplicated one (#56) 2021-05-20 15:59:36 +08:00
dependabot[bot]
884f255e2d
chore(deps): bump postcss from 7.0.16 to 8.2.15 in /src/client/web (#55)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.16 to 8.2.15.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.16...8.2.15)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-20 15:50:08 +08:00
Hexxa
2ba04bfea9
[client/web] upgrade css-loader (#54) 2021-05-18 17:11:57 +08:00
Hexxa
68548051d5
test(e2e): test uploading randomly (#53) 2021-05-13 17:06:00 +08:00
dependabot[bot]
36844eb2e0
chore(deps): bump lodash from 4.17.20 to 4.17.21 in /src/client/web (#52)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 14:48:36 +08:00
dependabot[bot]
d7d91bc114
chore(deps): bump hosted-git-info from 2.7.1 to 2.8.9 in /src/client/web (#51)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 14:48:05 +08:00
dependabot[bot]
873fe56879
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#50)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 18:21:34 +08:00
dependabot[bot]
9ff19f21a0
chore(deps): bump lodash from 4.17.20 to 4.17.21 (#49)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 18:20:58 +08:00
dependabot[bot]
79f0473ad3
chore(deps): bump ssri from 6.0.1 to 6.0.2 in /src/client/web (#48)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 18:07:19 +08:00
dependabot[bot]
431febc265
chore(deps): bump ssri from 6.0.1 to 6.0.2 (#47)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 13:20:29 +08:00
dependabot[bot]
85109ace26
chore(deps): bump y18n from 4.0.0 to 4.0.1 in /src/client/web (#44)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 13:19:44 +08:00
Hexxa
8b5a80f766
fix(server/files): fix Content-Disposition is not set (#46)
* fix(server/files): fix Content-Disposition is not set

* test(header): check content disposition header
2021-04-21 11:38:59 +08:00
Hexxa
a9ccb4506c
Fix append (#43)
* fix(fs/local): remove O_APPEND for write_at

* fix(files): clean download api

* chore(workflows): add manual dispatch for docker

* test(files): close fd in the progress of uploading
2021-03-19 23:00:22 +08:00
Hexxa
9b2157ac6a
feat(log): tee logs to file and stdout (#42) 2021-03-06 10:44:24 +08:00
Hexxa
6bd8d2422b
chore(docs): fix a mistake in readme (#41) 2021-03-04 15:28:39 +08:00
Hexxa
8bf1aebaf6
chore(cicd): add docker workflow and refine READMEs (#40) 2021-02-02 19:09:03 +08:00
Hexxa
76334b808d
fix(client/worker): incorrect uploading list filtering logic (#39) 2021-02-02 12:02:32 +08:00
Hexxa
b0d1cdccfc
fix(docker): add dockfile and small fixes (#38)
* fix(docker): add dockfile and small fixes

* chore(readme): small fixes
2021-02-01 21:36:56 +08:00
Hexxa
c8a3f911e8
Release 0.3.0 (#37)
* chore(cicd): add build and start script

* fix(client/web): fix fail to reupload same file, avoid default worker

* test(client/web): add case for worker list filtering
2021-01-31 19:37:05 +08:00
Hexxa
ede6c239f0
chore(ci/cd): refine scripts and docs (#36)
* chore(ci/cd): refine scripts and docs

* text(server): fix incorrect server port
2021-01-30 22:03:59 +08:00