1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-15 11:50:34 +01:00
Commit Graph

244 Commits

Author SHA1 Message Date
Elias Schneider
2e1a2b60c4
release: 0.20.2 2023-11-11 20:29:24 +01:00
Qing Fu
fd44f42f28
fix(oauth): github and discord login error (#323)
* fix(oauth): github and discord login error
fixed #322, fixed #302

* feat(oauth): print log when ErrorPageException occurs

* refactor(oauth): migrate to Logger

* feat(oauth): add logger for OAuthExceptionFilter

* docs(oauth): update oauth login docs
2023-11-11 20:25:05 +01:00
Elias Schneider
966ce261cb
fix: reverse shares couldn't be created unauthenticated 2023-11-11 18:57:54 +01:00
Elias Schneider
b49ec93c54
release: 0.20.1 2023-11-05 12:38:13 +01:00
Elias Schneider
1ba8d0cbd1
release: 0.20.0 2023-11-04 20:40:20 +01:00
Ivan Li
98380e2d48
feat: ability to add and delete files of existing share (#306)
* feat(share): delete file api, revert complete share api.

* feat(share): share edit page.

* feat(share): Modify the DropZone title of the edit sharing UI.

* feat(share): i18n for edit share. (en, zh)

* feat(share): allow creator get share by id.

* feat(share): add edit button in account/shares.

* style(share): lint.

* chore: some minor adjustments.

* refactor: run formatter

* refactor: remove unused return

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
2023-11-04 20:39:58 +01:00
Elias Schneider
e377ed10e1
release: 0.19.2 2023-11-03 14:07:25 +01:00
Elias Schneider
33742a043d
fix: jwt secret changes on application restart 2023-11-03 13:06:59 +01:00
Elias Schneider
e0fbbeca3c
feat: change totp issuer to display logo in 2FAS app 2023-11-03 08:38:23 +01:00
Elias Schneider
bbfc9d6f14
feat: ability to limit the max expiration of a share 2023-10-23 15:17:47 +02:00
Elias Schneider
46b6e56c06
release: 0.19.1 2023-10-22 21:21:37 +02:00
Qing Fu
119b1ec840
fix(oauth): fix wrong redirectUri in oidc after change appUrl (#296) 2023-10-22 21:20:50 +02:00
Elias Schneider
e89e313712
release: 0.19.0 2023-10-22 16:15:25 +02:00
Qing Fu
02cd98fa9c
feat(auth): add OAuth2 login (#276)
* feat(auth): add OAuth2 login with GitHub and Google

* chore(translations): add files for Japanese

* fix(auth): fix link function for GitHub

* feat(oauth): basic oidc implementation

* feat(oauth): oauth guard

* fix: disable image optimizations for logo to prevent caching issues with custom logos

* fix: memory leak while downloading large files

* chore(translations): update translations via Crowdin (#278)

* New translations en-us.ts (Japanese)

* New translations en-us.ts (Japanese)

* New translations en-us.ts (Japanese)

* release: 0.18.2

* doc(translations): Add Japanese README (#279)

* Added Japanese README.

* Added JAPANESE README link to README.md.

* Updated Japanese README.

* Updated Environment Variable Table.

* updated zh-cn README.

* feat(oauth): unlink account

* refactor(oauth): make providers extensible

* fix(oauth): fix discoveryUri error when toggle google-enabled

* feat(oauth): add microsoft and discord as oauth provider

* docs(oauth): update README.md

* docs(oauth): update oauth2-guide.md

* set password to null for new oauth users

* New translations en-us.ts (Japanese) (#281)

* chore(translations): add Polish files

* fix(oauth): fix random username and password

* feat(oauth): add totp

* fix(oauth): fix totp throttle

* fix(oauth): fix qrcode and remove comment

* feat(oauth): add error page

* fix(oauth): i18n of error page

* feat(auth): add OAuth2 login

* fix(auth): fix link function for GitHub

* feat(oauth): basic oidc implementation

* feat(oauth): oauth guard

* feat(oauth): unlink account

* refactor(oauth): make providers extensible

* fix(oauth): fix discoveryUri error when toggle google-enabled

* feat(oauth): add microsoft and discord as oauth provider

* docs(oauth): update README.md

* docs(oauth): update oauth2-guide.md

* set password to null for new oauth users

* fix(oauth): fix random username and password

* feat(oauth): add totp

* fix(oauth): fix totp throttle

* fix(oauth): fix qrcode and remove comment

* feat(oauth): add error page

* fix(oauth): i18n of error page

* refactor: return null instead of `false` in `getIdOfCurrentUser` functiom

* feat: show original oauth error if available

* refactor: run formatter

* refactor(oauth): error message i18n

* refactor(oauth): make OAuth token available
someone may use it (to revoke token or get other info etc.)
also improved the i18n message

* chore(oauth): remove unused import

* chore: add database migration

* fix: missing python installation for nanoid

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
Co-authored-by: ふうせん <10260662+fusengum@users.noreply.github.com>
2023-10-22 16:09:53 +02:00
Elias Schneider
d327bc355c
fix: delete unfinished shares after a day 2023-10-21 18:51:27 +02:00
Elias Schneider
b088a5ef2a
release: 0.18.2 2023-10-09 11:20:06 +02:00
Elias Schneider
97e7d7190d
fix: memory leak while downloading large files 2023-10-09 11:14:51 +02:00
Elias Schneider
38919003e9
fix: disable image optimizations for logo to prevent caching issues with custom logos 2023-10-09 10:40:55 +02:00
Elias Schneider
92927b1373
release: 0.18.1 2023-09-22 11:31:03 +02:00
Elias Schneider
c9f1be2faf
release: 0.18.0 2023-09-21 16:24:07 +02:00
Elias Schneider
307d176430
release: 0.17.5 2023-09-03 22:14:34 +02:00
Elias Schneider
84aa100f84
chore: formatter ignore translations 2023-08-17 15:00:57 +02:00
iUnstable0
bddb87b9b3
feat(localization): Added thai language (#231)
* feat(localization): Added Thai translation

* Formatted

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
2023-08-17 14:54:26 +02:00
Elias Schneider
7304b54125
release: 0.17.4 2023-08-01 12:37:47 +02:00
Elias Schneider
62deb6c152
release: 0.17.3 2023-07-31 16:38:58 +02:00
Elias Schneider
72a52eb33f
release: 0.17.2 2023-07-31 15:37:12 +02:00
Elias Schneider
2ed5ecc1ea
release: 0.17.1 2023-07-30 22:34:33 +02:00
Elias Schneider
9bb05158c5
chore: update deps 2023-07-30 22:34:10 +02:00
Elias Schneider
2618bbb897
release: 0.17.0 2023-07-23 13:42:54 +02:00
Elias Schneider
231a2e95b9
feat: add share url alias /s 2023-07-22 16:09:10 +02:00
Elias Schneider
7827b687fa
feat: ability to define zip compression level 2023-07-22 15:44:45 +02:00
Elias Schneider
389dc87cac
feat: update default value of maxSize from 1073741824 to 1000000000 2023-07-22 15:33:45 +02:00
Elias Schneider
b9f6e3bd08
feat: localization (#196)
* Started adding locale translations :)

* Added some more translations

* Working on translating even more pages

* More translations

* Added test default locale retrieval

* replace `intl.formatMessage` with custom `t` hook

* add more translations

* improve title syntax

* add more translations

* translate admin config page

* translated error messages

* add language selecter

* minor fixes

* improve language handling

* add upcoming languages

* add `crowdin.yml`

* run formatter

---------

Co-authored-by: Steve Tautonico <stautonico@gmail.com>
2023-07-20 15:32:07 +02:00
Elias Schneider
7c5ec8d0ea
release: 0.16.1 2023-07-10 14:13:58 +02:00
Pierre Bidet
a1ea7c0265
fix: set link default value to random (#192)
* fix: set link default value to random

* fix: add auto EOL and add conventional-changelog package

* feat: Adding reverse shares' shares a clickable link (#178)

* Add clickable link to reverse share's shares

* Ran format

* Apply suggestions from code review

* fix: set link default value to random (#181)

* fix: set link default value to random

* fix: add auto EOL and add conventional-changelog package

* Apply suggestions from code review

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>

* feat: Adding reverse share ability to copy the link (#179)

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
2023-07-10 13:58:17 +02:00
Elias Schneider
adf0f8d57e
release: 0.16.0 2023-07-09 17:15:26 +02:00
Elias Schneider
447c86f1c9
chore: remove backend Dockerfile 2023-06-28 15:45:54 +02:00
pierrbt
1466240461
feat: Adding more informations on My Shares page (table and modal) (#174)
* Adding an information button to the shares and corrected MyShare interface

* Adding other informations and disk usage

* Adding description, disk usage

* Add case if the expiration is never

* Adding file size and better UI

* UI changes to Information Modal

* Adding description to the My Shares page

* Ran format

* Remove string type

Co-authored-by: Elias Schneider <login@eliasschneider.com>

* Remove string type check

Co-authored-by: Elias Schneider <login@eliasschneider.com>

* Remove string type conversion

Co-authored-by: Elias Schneider <login@eliasschneider.com>

* Variable name changes

Co-authored-by: Elias Schneider <login@eliasschneider.com>

* Remove color

Co-authored-by: Elias Schneider <login@eliasschneider.com>

* Requested changes made

* Ran format

* Adding MediaQuery

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
2023-06-26 08:22:15 +02:00
Elias Schneider
932496a121
release: 0.15.0 2023-05-09 09:18:31 +02:00
Elias Schneider
1df5c7123e
feat: allow to configure clamav with environment variables 2023-05-09 08:45:56 +02:00
Elias Schneider
2dc0fc9332
refactor: improve logging 2023-05-09 08:45:30 +02:00
Elias Schneider
98c0de78e8
feat: add env variables for port, database url and data dir 2023-05-05 11:37:02 +02:00
Elias Schneider
e5071cba12
feat: configure ports, db url and api url with env variables 2023-04-25 23:39:57 +02:00
Elias Schneider
b33c1d7f4b
release: 0.14.1 2023-04-07 23:13:54 +02:00
Elias Schneider
39a74510c1
fix: boolean config variables can't be set to false 2023-04-07 23:13:44 +02:00
Elias Schneider
f2e4019190
release: 0.14.0 2023-04-01 20:19:27 +02:00
iUnstable0
beece56327
feat(share, config): more variables, placeholder and reset default (#132)
* More email share vars + unfinished placeolders config

{desc} {expires} vars
(unfinished) config placeholder vals

* done

* migrate

* edit seed

* removed comments

* refactor: replace dependecy `luxon` with `moment`

* update shareRecipientsMessage message

* chore: remove `luxon`

* fix: grammatically incorrect `shareRecipientsMessage` message

* changed to defaultValue and value instead

* fix: don't expose defaultValue to non admin user

* fix: update default value if default value changes

* refactor: set config value to null instead of a empty string

* refactor: merge two migrations into one

* fix value check empty

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
2023-03-23 08:31:21 +01:00
Elias Schneider
ca73ccf629
release: 0.13.1 2023-03-14 20:26:04 +01:00
Elias Schneider
9f2097e788
fix: empty file can't be uploaded in chrome 2023-03-14 20:24:21 +01:00
Elias Schneider
2158df4228
release: 0.13.0 2023-03-14 16:09:20 +01:00
Elias Schneider
813ee4de2c
refactor: rename deprecated Prisma imports 2023-03-14 15:11:24 +01:00
Elias Schneider
6345e21db9
refactor: globalize modal title style 2023-03-13 08:50:54 +01:00
Elias Schneider
f55aa80516
fix: replace "pingvin share" with dynamic app name 2023-03-12 20:13:55 +01:00
Elias Schneider
0ce8b528e1
refactor: improve error handling for failed emails 2023-03-12 19:29:39 +01:00
Elias Schneider
cb1a0d4090
release: 0.12.1 2023-03-11 12:40:27 +01:00
Elias Schneider
753dbe83b7
fix: 48px icon does not update 2023-03-11 12:33:22 +01:00
Elias Schneider
0c2a62b0ca
release: 0.12.0 2023-03-10 09:40:19 +01:00
Elias Schneider
452c635933
chore: dump packages 2023-03-10 09:40:09 +01:00
Elias Schneider
8403d7e14d
feat: ability to change logo in frontend 2023-03-08 14:47:41 +01:00
Elias Schneider
8f71fd3435
fix: crypto is not defined 2023-03-08 13:10:10 +01:00
Elias Schneider
155c743197
release: 0.11.1 2023-03-05 10:50:32 +01:00
Elias Schneider
22d81b2220
release: 0.11.0 2023-03-04 23:41:11 +01:00
Elias Schneider
0317f3a508
fix: frontend error when user deleted 2023-03-04 23:40:02 +01:00
Elias Schneider
fddad3ef70
feat: custom branding (#112)
* add first concept

* remove setup status

* split config page in multiple components

* add custom branding docs

* add test email button

* fix invalid email from header

* add migration

* mount images to host

* update docs

* remove unused endpoint

* run formatter
2023-03-04 23:29:00 +01:00
Elias Schneider
f9840505b8
feat: invite new user with email 2023-02-21 08:51:04 +01:00
Elias Schneider
edb511252f
release: 0.10.2 2023-02-13 09:39:43 +01:00
Elias Schneider
6419da07fb
release: 0.10.1 2023-02-12 20:00:55 +01:00
Elias Schneider
4c6ef52a17
release: 0.10.0 2023-02-10 11:47:29 +01:00
Elias Schneider
b9662701c4
fix: share creation without reverseShareToken 2023-02-10 11:47:17 +01:00
Elias Schneider
e3f88d0826
refactor(jobs): clear expired tokens and reverse shares 2023-02-10 11:29:51 +01:00
Elias Schneider
86a7379519
fix: delete all shares of reverse share 2023-02-10 11:15:23 +01:00
Elias Schneider
ccdf8ea3ae
feat: allow multiple shares with one reverse share link 2023-02-10 11:10:07 +01:00
Elias Schneider
edc10b72b7
fix: share fails if a share was created with a reverse share link recently 2023-02-10 10:58:49 +01:00
Elias Schneider
5d1a7f0310
feat!: reset password with email 2023-02-09 18:17:53 +01:00
Elias Schneider
8ab359b71d
docs(backend): add swagger documentation 2023-02-07 11:23:43 +01:00
Elias Schneider
82f204e8a9
fix: invalid redirection after jwt expiry 2023-02-06 11:15:46 +01:00
Elias Schneider
4e840ecd29
refactor: handle authentication state in middleware 2023-02-04 18:12:49 +01:00
Elias Schneider
064ef38d78
fix: setup status doesn't change 2023-02-03 11:01:10 +01:00
Elias Schneider
b14e931d8d
test: adapt tests to new features 2023-01-31 15:43:54 +01:00
Elias Schneider
3d5c919110
release: 0.9.0 2023-01-31 15:25:01 +01:00
Elias Schneider
008df06b5c
feat: direct file link 2023-01-31 15:22:08 +01:00
Elias Schneider
cd9d828686
refactor: move guard checks to service 2023-01-31 13:53:23 +01:00
Elias Schneider
233c26e5cf
fix: improve send test email UX 2023-01-31 13:16:11 +01:00
Elias Schneider
91a6b3f716
feat: file preview 2023-01-31 09:03:03 +01:00
Elias Schneider
0a2b7b1243
refactor: use cookie instead of local storage for share token 2023-01-26 21:18:22 +01:00
Elias Schneider
b98fe7911f
release: 0.8.0 2023-01-26 16:10:16 +01:00
Elias Schneider
ad92cfc852
fix: admin users were created while the setup wizard wasn't finished 2023-01-26 15:43:13 +01:00
Elias Schneider
7e91038a24
chore: optimize prisma migration 2023-01-26 14:06:25 +01:00
Elias Schneider
4a5fb549c6
feat: reverse shares (#86)
* add first concept

* add reverse share funcionality to frontend

* allow creator to limit share expiration

* moved reverse share in seperate module

* add table to manage reverse shares

* delete complete share if reverse share was deleted

* optimize function names

* add db migration

* enable reverse share email notifications

* fix config variable descriptions

* fix migration for new installations
2023-01-26 13:44:04 +01:00
Elias Schneider
1ceb07b89e
refactor: fix typo of service name 2023-01-17 09:48:49 +01:00
Elias Schneider
e09213a295 release: 0.7.0 2023-01-13 10:59:52 +01:00
Elias Schneider
fc116d65c0 chore: dump packages 2023-01-13 10:31:22 +01:00
Elias Schneider
76088cc76a feat: add ClamAV to scan for malicious files 2023-01-13 10:16:35 +01:00
Elias Schneider
fccc4cbc02 release: 0.6.1 2023-01-11 13:08:09 +01:00
Elias Schneider
02e41e2437 feat: delete all sessions if password was changed 2023-01-10 13:32:37 +01:00
Elias Schneider
74e8956106 fix: update password doesn't work 2023-01-10 12:29:38 +01:00
Elias Schneider
dc9ec429c6 release: 0.6.0 2023-01-09 12:14:41 +01:00
Elias Schneider
653d72bcb9
feat: chunk uploads (#76)
* add first concept

* finished first concept

* allow 3 uploads at same time

* retry if chunk failed

* updated clean temporary files job

* fix throttling for chunk uploads

* update tests

* remove multer

* migrate from `MAX_FILE_SIZE` to `MAX_SHARE_SIZE`

* improve error handling if file failed to upload

* fix promise limit

* improve file progress
2023-01-09 11:43:48 +01:00
Elias Schneider
a5bef5d4a4 fix: refresh token expires after 1 day instead of 3 months 2023-01-07 12:16:03 +01:00
Elias Schneider
c8ad2225e3 fix: access token refreshes even it is still valid 2023-01-06 16:07:07 +01:00