Skip to content

Commit

Permalink
chore: fix build error, add tiptap config, update AiSelector, refacto…
Browse files Browse the repository at this point in the history
…r text editor and article flow, permissions, setting section and ens interaction, order publications by lastUpdated, refactor custom pinning screen and index transactions, refactor ipfs flow, merge branch 'vite-ipfs', remove goerli from app and subgraph, add web3modal and remove old code, remove strict mode
  • Loading branch information
juliopavila committed May 27, 2024
1 parent 652cf09 commit be0cfa6
Show file tree
Hide file tree
Showing 114 changed files with 12,127 additions and 8,351 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
- run: yarn install
- run: yarn build
- name: Generate subgraph.yaml for Goerli
working-directory: packages/subgraph
run: yarn prepare:goerli
- name: Generate subgraph.yaml for Sepolia
working-directory: packages/subgraph
run: yarn prepare:sepolia
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/dev-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ env:
VITE_APP_SUBGRAPH_BASE_URL: https://api.thegraph.com/subgraphs/name/
VITE_APP_SUBGRAPH_GNOSIS_CHAIN: auryn-macmillan/tabula-gnosis-chain
VITE_APP_SUBGRAPH_MAINNET: auryn-macmillan/tabula-mainnet
VITE_APP_SUBGRAPH_GOERLI: auryn-macmillan/tabula-goerli
VITE_APP_SUBGRAPH_SEPOLIA: auryn-macmillan/tabula-sepolia
VITE_APP_SUBGRAPH_POLYGON: auryn-macmillan/tabula-polygon
VITE_APP_SUBGRAPH_ARBITRUM: auryn-macmillan/tabula-arbitrum
VITE_APP_SUBGRAPH_OPTIMISM: auryn-macmillan/tabula-optimism
VITE_APP_SUBGRAPH_OPTIMISM_ON_GNOSIS_CHAIN: auryn-macmillan/tabula-optimism-on-gnosis-chain
VITE_APP_IPFS_GATEWAY: https://ipfs.io/ipfs
VITE_APP_ENS_SUBGRAPH_MAINNET: ensdomains/ens
VITE_APP_ENS_SUBGRAPH_GOERLI: ensdomains/ensgoerli
VITE_APP_ENS_SUBGRAPH_SEPOLIA: ensdomains/enssepolia
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,14 +77,8 @@ jobs:
working-directory: packages/subgraph
run: yarn run graph auth --product hosted-service ${{ secrets.GRAPH_ACCESS_TOKEN }}

- name: Deploy Goerli subgraphs
working-directory: packages/subgraph
env:
HOSTED_SERVICE_SUBGRAPH__GOERLI: auryn-macmillan/tabula-goerli
run: yarn deploy:goerli

- name: Deploy Sepolia subgraphs
working-directory: packages/subgraph
env:
HOSTED_SERVICE_SUBGRAPH__GOERLI: auryn-macmillan/tabula-sepolia
HOSTED_SERVICE_SUBGRAPH__SEPOLIA: auryn-macmillan/tabula-sepolia
run: yarn deploy:sepolia
11 changes: 2 additions & 9 deletions .github/workflows/prod-release-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ env:
VITE_APP_SUBGRAPH_BASE_URL: https://api.thegraph.com/subgraphs/name/
VITE_APP_SUBGRAPH_GNOSIS_CHAIN: auryn-macmillan/tabula-gnosis-chain
VITE_APP_SUBGRAPH_MAINNET: auryn-macmillan/tabula-mainnet
VITE_APP_SUBGRAPH_GOERLI: auryn-macmillan/tabula-goerli
VITE_APP_SUBGRAPH_SEPOLIA: auryn-macmillan/tabula-sepolia
VITE_APP_SUBGRAPH_POLYGON: auryn-macmillan/tabula-polygon
VITE_APP_SUBGRAPH_ARBITRUM: auryn-macmillan/tabula-arbitrum
VITE_APP_SUBGRAPH_OPTIMISM: auryn-macmillan/tabula-optimism
VITE_APP_SUBGRAPH_OPTIMISM_ON_GNOSIS_CHAIN: auryn-macmillan/tabula-optimism-on-gnosis-chain
VITE_APP_IPFS_GATEWAY: https://ipfs.io/ipfs
VITE_APP_ENS_SUBGRAPH_MAINNET: ensdomains/ens
VITE_APP_ENS_SUBGRAPH_GOERLI: ensdomains/ensgoerli
VITE_APP_ENS_SUBGRAPH_SEPOLIA: ensdomains/enssepolia
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -110,16 +109,10 @@ jobs:
HOSTED_SERVICE_SUBGRAPH__GNOSIS_CHAIN: auryn-macmillan/tabula-gnosis-chain
run: yarn deploy:gnosis-chain

- name: Deploy subgraph to Goerli
working-directory: packages/subgraph
env:
HOSTED_SERVICE_SUBGRAPH__GOERLI: auryn-macmillan/tabula-goerli
run: yarn deploy:goerli

- name: Deploy subgraph to Sepolia
working-directory: packages/subgraph
env:
HOSTED_SERVICE_SUBGRAPH__GOERLI: auryn-macmillan/tabula-sepolia
HOSTED_SERVICE_SUBGRAPH__SEPOLIA: auryn-macmillan/tabula-sepolia
run: yarn deploy:sepolia

- name: Deploy subgraph to Polygon
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ packages/subgraph/tests/.bin
packages/subgraph/subgraph.yaml
**/.env
.vscode/*
packages/app/tsconfig.tsbuildinfo
6 changes: 2 additions & 4 deletions packages/app/.env.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@

VITE_APP_INFURA_NETWORK_ACCESS_KEY=
VITE_APP_WALLET_CONNECT_ID=
VITE_APP_POSTER_CONTRACT=0x000000000000cd17345801aa8147b8D3950260FF
VITE_APP_SUBGRAPH_BASE_URL=https://api.thegraph.com/subgraphs/name/
VITE_APP_SUBGRAPH_GNOSIS_CHAIN=auryn-macmillan/tabula-gnosis-chain
VITE_APP_SUBGRAPH_MAINNET=auryn-macmillan/tabula-mainnet
VITE_APP_SUBGRAPH_GOERLI=auryn-macmillan/tabula-goerli
VITE_APP_SUBGRAPH_SEPOLIA=auryn-macmillan/tabula-sepolia
VITE_APP_SUBGRAPH_POLYGON=auryn-macmillan/tabula-polygon
VITE_APP_SUBGRAPH_ARBITRUM=auryn-macmillan/tabula-arbitrum
VITE_APP_SUBGRAPH_OPTIMISM=auryn-macmillan/tabula-optimism
VITE_APP_ENS_SUBGRAPH_MAINNET=ensdomains/ens
VITE_APP_ENS_SUBGRAPH_GOERLI=ensdomains/ensgoerli
VITE_APP_ENS_SUBGRAPH_SEPOLIA=ensdomains/enssepolia
VITE_APP_IPFS_GATEWAY=https://ipfs.io/ipfs
VITE_APP_SUBGRAPH_OPTIMISM_ON_GNOSIS_CHAIN=auryn-macmillan/tabula-optimism-on-gnosis-chain
VITE_APP_INFURA_IPFS_API_KEY=
VITE_APP_INFURA_IPFS_API_SECRET=

5 changes: 2 additions & 3 deletions packages/app/declarations.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

declare module "react-helmet";
declare module "react-helmet"

interface Window {
ethereum: any
}
}
1 change: 0 additions & 1 deletion packages/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<title>Tabula</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
Expand Down
79 changes: 56 additions & 23 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,86 @@
"version": "2.1.1",
"private": true,
"license": "LGPL-2.1",
"homepage": "https://onposter.github.io",
"homepage": "https://tabual.gg",
"type": "module",
"dependencies": {
"@chainsafe/web3-context": "^1.3.1",
"@chainsafe/libp2p-gossipsub": "^13.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@emotion/babel-plugin": "^11.11.0",
"@emotion/react": "^11.8.2",
"@emotion/styled": "^11.8.1",
"@hookform/resolvers": "^2.8.8",
"@ensdomains/ensjs": "^3.7.0",
"@helia/delegated-routing-v1-http-api-client": "^3.0.1",
"@helia/unixfs": "^3.0.5",
"@helia/verified-fetch": "^1.3.14",
"@hookform/resolvers": "^3.3.4",
"@ipfs-shipyard/pinning-service-client": "^1.0.3",
"@libp2p/autonat": "^1.0.19",
"@libp2p/bootstrap": "^10.0.22",
"@libp2p/circuit-relay-v2": "^1.0.22",
"@libp2p/dcutr": "^1.0.19",
"@libp2p/identify": "^2.0.0",
"@libp2p/interface": "^1.3.1",
"@libp2p/ipni-content-routing": "^2.0.2",
"@libp2p/kad-dht": "^12.0.15",
"@libp2p/keychain": "^4.0.14",
"@libp2p/mplex": "^10.0.22",
"@libp2p/ping": "^1.0.17",
"@libp2p/webrtc": "^4.0.31",
"@libp2p/websockets": "^8.0.22",
"@libp2p/webtransport": "^4.0.30",
"@mui/icons-material": "^5.5.1",
"@mui/material": "^5.5.0",
"@mui/styles": "^5.5.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"@web3-react/walletconnect-connector": "^6.2.13",
"@web3-react/walletlink-connector": "^6.2.13",
"add": "^2.0.6",
"@nanostores/react": "ai/react",
"@tiptap/extension-code-block": "^2.4.0",
"@tiptap/extension-code-block-lowlight": "^2.4.0",
"@tiptap/html": "^2.4.0",
"@types/dompurify": "^3.0.5",
"@web3modal/ethers5": "^4.1.11",
"ai": "^3.1.12",
"axios": "^0.26.1",
"blockies-ts": "^1.0.0",
"blockstore-core": "^4.0.0",
"blockstore-level": "^1.1.3",
"browserslist-to-esbuild": "^1.2.0",
"draft-convert": "^2.1.13",
"draft-js": "^0.11.7",
"draft-js-export-html": "^1.4.1",
"draft-js-import-html": "^1.4.1",
"class-variance-authority": "^0.7.0",
"datastore-core": "^9.0.0",
"dompurify": "^3.1.4",
"ethers": "^5.7.2",
"gh-pages": "^3.2.3",
"graphql": "^16.3.0",
"helia": "^4.1.2",
"highlight.js": "^11.9.0",
"ipfs-core": "0.14.3",
"ipfs-http-client": "54.0.0",
"ipns": "^7.0.1",
"is-ipfs": "^6.0.2",
"kubo-rpc-client": "^4.1.1",
"libp2p": "^1.0.3",
"lodash": "^4.17.21",
"lowlight": "^3.1.0",
"markdown-to-jsx": "^7.1.7",
"marked": "^5.1.2",
"moment": "^2.29.2",
"notistack": "^2.0.8",
"novel": "^0.2.13",
"openai": "^4.47.1",
"path": "^0.12.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.29.0",
"react-hook-form": "^7.51.3",
"react-p5": "^1.3.33",
"react-query": "^3.34.16",
"react-router-dom": "^6.2.2",
"react-select": "^5.3.2",
"turndown": "^7.1.1",
"typescript": "^4.4.2",
"uid": "^2.0.1",
"urql": "^2.2.0",
"use-debounce": "^10.0.0",
"viem": "^2.9.28",
"web-vitals": "^2.1.0",
"webpack": "4.44.2",
"yarn": "^1.22.21",
"yup": "^0.32.11"
},
"scripts": {
Expand Down Expand Up @@ -93,19 +122,23 @@
},
"devDependencies": {
"@svgr/rollup": "^8.1.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/draft-convert": "^2.1.4",
"@types/draft-js": "^0.11.10",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.180",
"@types/marked": "^5.0.1",
"@types/node": "^16.7.13",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.9",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-helmet": "^6.1.11",
"@types/turndown": "^5.0.1",
"@vitejs/plugin-react": "^4.2.1",
"prettier": "^2.5.1",
"typescript": "^5",
"vite": "^5.0.10",
"vite-tsconfig-paths": "^4.2.2"
"vite-tsconfig-paths": "^4.3.2"
}
}
Loading

0 comments on commit be0cfa6

Please sign in to comment.