Skip to content

Commit

Permalink
feat: handle asset data from zip (#374)
Browse files Browse the repository at this point in the history
* feat: handle asset data from zip

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add branch to workflow

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add async to function

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add await

Signed-off-by: Jeroen Branje <[email protected]>

* feat: take out evolve

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add await function

Signed-off-by: Jeroen Branje <[email protected]>

* feat: update utility test

Signed-off-by: Jeroen Branje <[email protected]>

* feat: update async awaits

Signed-off-by: Jeroen Branje <[email protected]>

* feat: update tests and other utility functions

Signed-off-by: Jeroen Branje <[email protected]>

* feat: update tests and other utility functions

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add CIDs for publicUser and isRemoteUrl

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add promise all

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: prettier

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add displayUri

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add visualizationFiles

Signed-off-by: Jeroen Branje <[email protected]>

* feat: prettier

Signed-off-by: Jeroen Branje <[email protected]>

* feat: fix build

Signed-off-by: Jeroen Branje <[email protected]>

* feat: remove logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add CIDs to modified manifest file

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add role check ipfs to format link

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add file upload to ipfs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: remove file upload

Signed-off-by: Jeroen Branje <[email protected]>

* feat: rights visualization files to IPFS bucket

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add env to workflow

Signed-off-by: Jeroen Branje <[email protected]>

* refactor(envited.ascs.digital): use the raw encoder instead of json specific (#380)

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): add some comments

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* refactor(envited.ascs.digital): debug

Signed-off-by: Roy Scheeren <[email protected]>

* feat: add tests for remote files and licenses

Signed-off-by: Jeroen Branje <[email protected]>

* feat: change buffer typing

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add arrayBufer

Signed-off-by: Jeroen Branje <[email protected]>

* feat: take out arrayBuffer

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add log to getFileFromByteArray function

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add log to getFileFromByteArray function

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add arrayBuffer log

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add arrayBuffer log

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add arrayBuffer to object

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add getArrayBufferFromByteArray

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add assetData to asset bucket

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add pinata file upload

Signed-off-by: Jeroen Branje <[email protected]>

* feat: test pinata file as blob

Signed-off-by: Jeroen Branje <[email protected]>

* feat: test pinata file as buffer

Signed-off-by: Jeroen Branje <[email protected]>

* feat: update pinata to use stream upload

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add ReadableStream

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add NodeJs Readable

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add ENVs to lambda

Signed-off-by: Jeroen Branje <[email protected]>

* feat: add workflow envs

Signed-off-by: Jeroen Branje <[email protected]>

* feat: remove logs

Signed-off-by: Jeroen Branje <[email protected]>

* feat(envited.ascs.digital): add logging

Signed-off-by: Roy Scheeren <[email protected]>

* feat(envited.ascs.digital): add logging

Signed-off-by: Roy Scheeren <[email protected]>

* feat: cleanup createTokenMetadata and add dimension and mime type

Signed-off-by: Jeroen Branje <[email protected]>

* feat: remove getImageDimensionsandType

Signed-off-by: Jeroen Branje <[email protected]>

* feat: take out hardcoded dimensions and branch from workflow

Signed-off-by: Jeroen Branje <[email protected]>

* feat: function returns

Signed-off-by: Jeroen Branje <[email protected]>

* feat: replace any with correct type

Signed-off-by: Jeroen Branje <[email protected]>

---------

Signed-off-by: Jeroen Branje <[email protected]>
Signed-off-by: Roy Scheeren <[email protected]>
Co-authored-by: Roy Scheeren <[email protected]>
Co-authored-by: Roy Scheeren <[email protected]>
  • Loading branch information
3 people authored Dec 3, 2024
1 parent a473d47 commit 4956ae2
Show file tree
Hide file tree
Showing 29 changed files with 2,543 additions and 1,062 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
NEXT_PUBLIC_ENV: ${{ vars.NEXT_PUBLIC_ENV }}
NEXT_PUBLIC_URL: ${{ vars.NEXT_PUBLIC_URL }}
NEXT_PUBLIC_ASSET_BUCKET_NAME: ${{ vars.NEXT_PUBLIC_ASSET_BUCKET_NAME }}
NEXT_PUBLIC_IPFS_BUCKET_NAME: ${{ vars.NEXT_PUBLIC_IPFS_BUCKET_NAME }}
NEXT_PUBLIC_METADATA_BUCKET_NAME: ${{ vars.NEXT_PUBLIC_METADATA_BUCKET_NAME }}
NEXT_PUBLIC_UPLOAD_BUCKET_NAME: ${{ vars.NEXT_PUBLIC_UPLOAD_BUCKET_NAME }}
NEXTAUTH_URL: ${{ vars.NEXTAUTH_URL }}
Expand All @@ -40,6 +41,7 @@ jobs:
PINATA_SECRET: ${{ secrets.PINATA_SECRET }}
PINATA_JWT: ${{ vars.PINATA_JWT }}
PINATA_GATEWAY: ${{ vars.PINATA_GATEWAY }}
PINATA_GATEWAY_KEY: ${{ vars.PINATA_GATEWAY_KEY }}
ASSETS_CONTRACT: ${{ vars.ASSETS_CONTRACT }}
NEXT_PUBLIC_WEB3_RPC_URL: ${{ vars.NEXT_PUBLIC_WEB3_RPC_URL }}
steps:
Expand Down
7 changes: 7 additions & 0 deletions apps/envited.ascs.digital/common/archive/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ export const read = async (entry: Entry) => {
return new Response(stream.readable).text()
}

export const getFileBlob = async (entry: Entry) => {
const stream = new TransformStream()
entry.getData?.(stream.writable)

return new Response(stream.readable).blob()
}

export const _readContentFromJsonFile =
({ read }: { read: (file: Entry) => Promise<string> }) =>
async (file: Entry) =>
Expand Down
Loading

0 comments on commit 4956ae2

Please sign in to comment.