-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from Sphereon-Opensource/feature/expo-20
Feature/expo 20
- Loading branch information
Showing
78 changed files
with
2,833 additions
and
4,373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export type ParsedBase64Uri = { | ||
base64Uri: string | ||
base64: string | ||
mimeType: string | ||
base64Uri: string | ||
base64: string | ||
mimeType: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import {ParsedBase64Uri} from '../types'; | ||
import {ParsedBase64Uri} from '../types' | ||
|
||
export const getFileSizeDisplay = (bytes: number): string => { | ||
if (bytes < 1024) { | ||
return `${bytes} B` | ||
} else if (bytes <= 1024 * 1024) { | ||
return `${(bytes / 1024).toFixed(1)} KB` | ||
} else if (bytes <= 1024 * 1024 * 1024) { | ||
return `${(bytes / (1024 * 1024)).toFixed(1)} MB` | ||
} else { | ||
return `${(bytes / (1024 * 1024 * 1024)).toFixed(1)} GB` | ||
} | ||
if (bytes < 1024) { | ||
return `${bytes} B` | ||
} else if (bytes <= 1024 * 1024) { | ||
return `${(bytes / 1024).toFixed(1)} KB` | ||
} else if (bytes <= 1024 * 1024 * 1024) { | ||
return `${(bytes / (1024 * 1024)).toFixed(1)} MB` | ||
} else { | ||
return `${(bytes / (1024 * 1024 * 1024)).toFixed(1)} GB` | ||
} | ||
} | ||
|
||
export const parseBase64Uri = (base64Uri: string): ParsedBase64Uri => { | ||
const base64Parts = base64Uri.split(';base64,'); | ||
const mimeType = base64Parts[0].replace('data:', '') | ||
const base64Parts = base64Uri.split(';base64,') | ||
const mimeType = base64Parts[0].replace('data:', '') | ||
|
||
return { | ||
base64Uri, | ||
base64: base64Parts[1], | ||
mimeType | ||
} | ||
return { | ||
base64Uri, | ||
base64: base64Parts[1], | ||
mimeType, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
declare module 'uint8arrays' { | ||
export function fromString(input: string, encoding?: string): Uint8Array; | ||
// Add other functions from the uint8arrays module if needed | ||
export function fromString(input: string, encoding?: string): Uint8Array | ||
// Add other functions from the uint8arrays module if needed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/ssi-react/src/components/assets/icons/DocumentIcon/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/ssi-react/src/components/assets/icons/SSIProfileIcon/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/ssi-react/src/components/assets/logos/SSILogo/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
packages/ssi-react/src/components/buttons/SSIIconButton/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/ssi-react/src/components/buttons/SSIPrimaryButton/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/ssi-react/src/components/buttons/SSISecondaryButton/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.