feat(MyShares): show information about own share security options (#720)

* Provide security information about owned shares

* Add visitor count display for shares with max views

* Add password protection indicator to shares table

* Remove validation from MyShareSecurityDTO

* center lock icon and add spacing

* refactor: run formatter

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Aaron
2024-12-31 15:21:00 +01:00
committed by GitHub
parent 4d3aa398a2
commit b58dcdba0b
7 changed files with 60 additions and 9 deletions

View File

@@ -34,9 +34,10 @@ export type ShareMetaData = {
isZipReady: boolean;
};
export type MyShare = Share & {
export type MyShare = Omit<Share, "hasPassword"> & {
views: number;
createdAt: Date;
security: MyShareSecurity;
};
export type MyReverseShare = {
@@ -52,3 +53,8 @@ export type ShareSecurity = {
maxViews?: number;
password?: string;
};
export type MyShareSecurity = {
passwordProtected: boolean;
maxViews: number;
};