Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ipos): filebase IPFS worker #316

Merged
merged 24 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
82ae4d0
add(ipos): 🚀 init ipos worker
hassnian Jul 9, 2024
ccf9565
ref(ipos): remove log
hassnian Jul 9, 2024
cf74455
fix(ipos): single file upload type from file
hassnian Jul 9, 2024
64a96a8
ref(ipos): /pinJson use fs.stats
hassnian Jul 9, 2024
6b92859
fix(ipos): file array buffer and call helia stop
hassnian Jul 9, 2024
bfb33c8
fix(ipos): /pinFile types
hassnian Jul 9, 2024
3d2f4bd
add(ipos): /pinFile log adding file to dir
hassnian Jul 9, 2024
085b982
ref(ipos): /pinFile use `parseBody({ all: true }))`
hassnian Jul 9, 2024
2521c67
fix(ipos): /pinFile flat level
hassnian Jul 9, 2024
8d81e8a
fix(ipos): `/pinFile` route validation
hassnian Jul 10, 2024
a4f1624
ref(ipos): `/pinJson` use `@helia/json` package
hassnian Jul 10, 2024
6a9f4ef
ref(ipos): `/utils/format.ts` cleaner `getUint8ArrayFromFile` impleme…
hassnian Jul 10, 2024
490e0cb
add(ipos): `/pinJson` to filebase
hassnian Jul 16, 2024
c87aa1a
add(ipos): `/pinJson` save content to r2
hassnian Jul 16, 2024
c327a01
add(ipos): `/pinFile` to filebase
hassnian Jul 16, 2024
0f75cf3
add(ipos): move `getDirectoryCID` to `helia` and make `hashOf` util
hassnian Jul 17, 2024
d98c5d2
update(ipos): `wrangler.toml` with multiple envs
hassnian Jul 17, 2024
96aabae
fix(ipos): `wrangler.toml` duplicate beta keys
hassnian Jul 17, 2024
45c73f6
add(ipos): `/pinFile` file size
hassnian Jul 17, 2024
562bfc8
ref(ipos): `/pinFIle` use only one waitUntil`
hassnian Jul 17, 2024
d351436
fix(ipos): `wrangler.toml` beta `bucket_name` key
hassnian Jul 17, 2024
2864da5
:wrench: use cid V1
vikiival Jul 17, 2024
2720716
:wrench: setup
vikiival Jul 17, 2024
f001b9a
:bug: saving at incorrect location
vikiival Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7,783 changes: 7,451 additions & 332 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

172 changes: 172 additions & 0 deletions services/ipos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# Logs

logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)

report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# Runtime data

pids
_.pid
_.seed
\*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover

lib-cov

# Coverage directory used by tools like istanbul

coverage
\*.lcov

# nyc test coverage

.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)

.grunt

# Bower dependency directory (https://bower.io/)

bower_components

# node-waf configuration

.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)

build/Release

# Dependency directories

node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)

web_modules/

# TypeScript cache

\*.tsbuildinfo

# Optional npm cache directory

.npm

# Optional eslint cache

.eslintcache

# Optional stylelint cache

.stylelintcache

# Microbundle cache

.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history

.node_repl_history

# Output of 'npm pack'

\*.tgz

# Yarn Integrity file

.yarn-integrity

# dotenv environment variable files

.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)

.cache
.parcel-cache

# Next.js build output

.next
out

# Nuxt.js build / generate output

.nuxt
dist

# Gatsby files

.cache/

# Comment in the public line in if your project uses Gatsby and not Next.js

# https://nextjs.org/blog/next-9-1#public-directory-support

# public

# vuepress build output

.vuepress/dist

# vuepress v2.x temp and cache directory

.temp
.cache

# Docusaurus cache and generated files

.docusaurus

# Serverless directories

.serverless/

# FuseBox cache

.fusebox/

# DynamoDB Local files

.dynamodb/

# TernJS port file

.tern-port

# Stores VSCode versions used for testing VSCode extensions

.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.\*

# wrangler project

.dev.vars
.wrangler/
4 changes: 4 additions & 0 deletions services/ipos/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"semi": false
}
Loading
Loading