Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
josepot committed Apr 15, 2024
0 parents commit 3a574d3
Show file tree
Hide file tree
Showing 69 changed files with 5,813 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Install deps
run: pnpm install
- name: Build
run: pnpm gh-build
env:
BASE_URL: https://polkadot-api.github.io/react-teleport-example/
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload dist repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Polkadot-API Teleporter
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
Binary file added dot.scale
Binary file not shown.
Binary file added dotAh.scale
Binary file not shown.
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Polkadot-API Teleporter</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
Binary file added ksm.scale
Binary file not shown.
Binary file added ksmAh.scale
Binary file not shown.
88 changes: 88 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"name": "react-teleport-example",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"postinstall": "papi",
"dev": "vite",
"build": "papi && tsc && vite build",
"gh-build": "papi && tsc && vite build --base=/react-teleport-example/",
"format": "prettier --write README.md \"src/**/*.{js,jsx,ts,tsx,json,md}\"",
"preview": "vite preview"
},
"pnpm": {
"overrides": {
"smoldot": "2.0.23"
}
},
"dependencies": {
"@polkadot-api/descriptors": "^0.0.1",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"lucide-react": "^0.368.0",
"polkadot-api": "^0.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "^7.8.1",
"smoldot": "2.0.23",
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/node": "^20.12.7",
"@types/react": "^18.2.77",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.3",
"typescript": "^5.2.2",
"vite": "^5.2.0"
},
"prettier": {
"printWidth": 80,
"semi": false,
"trailingComma": "all"
},
"polkadot-api": {
"wnd": {
"chain": "westend2",
"metadata": "wnd.scale"
},
"wndAssethub": {
"wsUrl": "wss://westend-asset-hub-rpc.polkadot.io",
"metadata": "wndAssethub.scale"
},
"dot": {
"chain": "polkadot",
"metadata": "dot.scale"
},
"ksm": {
"chain": "ksmcc3",
"metadata": "ksm.scale"
},
"dotAh": {
"wsUrl": "wss://polkadot-asset-hub-rpc.polkadot.io",
"metadata": "dotAh.scale"
},
"ksmAh": {
"wsUrl": "wss://kusama-asset-hub-rpc.polkadot.io",
"metadata": "ksmAh.scale"
},
"roc": {
"chain": "rococo_v2_2",
"metadata": "roc.scale"
},
"rocAh": {
"wsUrl": "wss://rococo-asset-hub-rpc.dwellir.com",
"metadata": "rocAh.scale"
}
}
}
Loading

0 comments on commit 3a574d3

Please sign in to comment.