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

Tabula v.2.1 #228

Merged
merged 148 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
a6541f5
Adds styles for Sidebar and CreateArticle Page/Header
cedricwaxwing Jan 30, 2023
bfacd36
Create Rich Text Component
juliopavila Jan 31, 2023
2b0e558
Header/Sidebar layout adjusments
cedricwaxwing Feb 6, 2023
8418256
Create editor block component
juliopavila Feb 8, 2023
a16240a
Refactor editable block component
juliopavila Feb 10, 2023
18148a8
update yarn lock
juliopavila Feb 10, 2023
7fdacec
Updates contenteditable styles
cedricwaxwing Feb 10, 2023
a54f21b
Merge branch 'main' into create-article-updates
cedricwaxwing Feb 10, 2023
c1cc232
Merge branch 'create-article-updates' into editor-block-component
cedricwaxwing Feb 10, 2023
6b6c8b7
Add image tag
juliopavila Feb 10, 2023
511bfbd
Merge branch 'editor-block-component' of ssh://github.com/gnosis/tabu…
juliopavila Feb 10, 2023
9a13f10
Solved merge conflicts
juliopavila Feb 10, 2023
5a5579d
Updates image block style
cedricwaxwing Feb 10, 2023
5cc887e
Only show setting icon when sidebar is not active.
cedricwaxwing Feb 10, 2023
eac4f72
feat: add divider component, and close menu clicking outside
juliopavila Feb 13, 2023
978c63d
Updates user dropdown
cedricwaxwing Feb 13, 2023
062d183
Update ArticleSidebar scrolling/overflows
cedricwaxwing Feb 13, 2023
ce51c22
Updates editor typography/element styles
cedricwaxwing Feb 13, 2023
dd7fd2b
refine heading typography
cedricwaxwing Feb 14, 2023
17bf5e9
WIP - adds initial Inline Style UI
cedricwaxwing Feb 14, 2023
21e30ad
feat: Create/Edit Article improvements
juliopavila Feb 21, 2023
45d9172
Merge branch 'editor-block-component' of ssh://github.com/gnosis/tabu…
juliopavila Feb 21, 2023
c09b65c
Solved warnings
juliopavila Feb 21, 2023
236d03a
Update ArticleHeader.tsx
cedricwaxwing Feb 23, 2023
5253e6d
updates turndown location
cedricwaxwing Feb 23, 2023
905efeb
Delete yarn.lock
cedricwaxwing Feb 23, 2023
9b49ddb
updates yarn.lock
cedricwaxwing Feb 23, 2023
f78dee4
Update yarn.lock
cedricwaxwing Feb 24, 2023
41e5fd8
Temporarily removes author info from article
cedricwaxwing Feb 24, 2023
1518cea
WIP - Adds edit button to publication page
cedricwaxwing Feb 27, 2023
c29fecc
Adds overflowWrap to article view
cedricwaxwing Feb 27, 2023
5a58ce7
feat: improve create/edit/read article
juliopavila Feb 28, 2023
bb6b4d8
Merge branch 'editor-block-component' of ssh://github.com/gnosis/tabu…
juliopavila Feb 28, 2023
d97b447
Merge branch 'editor-block-component' of https://github.com/gnosis/ta…
cedricwaxwing Feb 28, 2023
4370419
feat: Improve how we transform html to article blocks
juliopavila Feb 28, 2023
6409ee8
feat: add new row button and implement quote/code tags
juliopavila Feb 28, 2023
fe33eb8
minor style updates
cedricwaxwing Feb 28, 2023
36273e5
Resize upload button
cedricwaxwing Mar 1, 2023
16d60dd
feat: add edit article from article view page
juliopavila Mar 7, 2023
d1a3d11
Merge branch 'main' into editor-block-component
juliopavila Mar 7, 2023
9316d27
solve build issue
juliopavila Mar 7, 2023
86f97fd
feat: improve the UX when they wanna create a new article
juliopavila Mar 8, 2023
bfcefec
feat: edit article from Article view screen
juliopavila Mar 13, 2023
1aa5ea9
feat: improve of how to handle the update article flow
juliopavila Mar 13, 2023
c3cbc9d
Removes sans styling from preview title
cedricwaxwing Mar 13, 2023
62b6333
fix: Solved build issue
juliopavila Mar 13, 2023
97bda41
[Feat]: Improve performance entire app, refactor deterministic avatar…
juliopavila May 5, 2023
1b03737
bug: solve empty state process
juliopavila May 9, 2023
1478c7e
feat: apply PR comments
juliopavila May 10, 2023
df1dbb9
Update vertical alignment of menu on smaller sizes and removes unfocu…
cedricwaxwing May 16, 2023
fc5a05e
feat: Create new editor component with draftJS
juliopavila May 22, 2023
23d6191
Initial inline style menu positioning updates
cedricwaxwing May 22, 2023
3196431
feat: implement divider component
juliopavila May 23, 2023
2bb8234
Resolves OL and UL styling issues
cedricwaxwing May 23, 2023
f7185e6
feat: Add link changes
juliopavila May 23, 2023
6dce111
bug: solve link issue
juliopavila May 29, 2023
a3fb10c
chore: remove old code
juliopavila May 29, 2023
41c5819
chore: remove warning
juliopavila May 29, 2023
ef0b107
feat: create image component
juliopavila May 31, 2023
9f6799e
bug: Duplicate transaction creation
juliopavila May 31, 2023
4ec0c8e
bug: solved update article content without images
juliopavila May 31, 2023
a72fc53
bug: solution article hash update
juliopavila May 31, 2023
d2aa400
Merge branch 'editor-block-component' into inline-text-component
juliopavila May 31, 2023
a7d9976
Merge pull request #227 from gnosis/inline-text-component
juliopavila May 31, 2023
7df7f78
chore: remove unnecessary dependencies
juliopavila May 31, 2023
a7b9215
chore: clean general package json
juliopavila May 31, 2023
14c222a
feat: Deselect the text after inline selection
juliopavila Jun 2, 2023
3ec0358
feat: solved cursor should be focused in the contenteditable input an…
juliopavila Jun 5, 2023
8c78231
bug: solve link url persistence after inline component close
juliopavila Jun 5, 2023
e327bd2
bug: solved code-block component
juliopavila Jun 5, 2023
89ddbd9
revert Ipfs change
juliopavila Jun 5, 2023
ed784af
bug: solved strikethrough issue
juliopavila Jun 5, 2023
67d40dd
bug: solved code inline style in the editor component
juliopavila Jun 7, 2023
0cbeed4
bug: show article content error when is empty
juliopavila Jun 7, 2023
c469017
feat: refactor ipfsHttpClient to handle personal node, public node an…
juliopavila Jun 7, 2023
8c7588a
feat: change IPFS order
juliopavila Jun 8, 2023
11ff158
Only connect to a public IPFS node if the in-browser-ipfs-node-setup …
asgeir-s Jun 9, 2023
79f1a95
Pluralize the articles section
asgeir-s Jun 9, 2023
26ad311
feat: change target for link component
juliopavila Jun 13, 2023
eb7148f
feat: show placeholder for every empty and focus block
juliopavila Jun 13, 2023
8480232
feat: improve underline for markdown
juliopavila Jun 13, 2023
08abd60
bug: show article content if the article content coming without hash
juliopavila Jun 13, 2023
9884833
bug: solved double transaction
juliopavila Jun 13, 2023
91ca7f8
feat: improve link flow
juliopavila Jun 20, 2023
8a6fcf4
Resolves left offset issue
cedricwaxwing Jun 20, 2023
4ac6e50
Adds top offset logic back
cedricwaxwing Jun 21, 2023
d45c780
Handle positioning for showUrlnput and left offset
cedricwaxwing Jun 21, 2023
448e9ec
chore: add useEffect dependecies
juliopavila Jun 27, 2023
5ee3b85
chore: comment browser ipfs node because ipfs-js is deprecated
juliopavila Jun 27, 2023
6a00793
bug: Add error handling to fetchArticleContent function
juliopavila Jun 28, 2023
58f43bc
bug: handle invalid hash content
juliopavila Jun 29, 2023
5e8ecee
feat: If the upload fails, it attempts to upload the file using the I…
juliopavila Jul 6, 2023
ee6b1b1
Merge pull request #217 from gnosis/editor-block-component
juliopavila Jul 6, 2023
74f6829
comments sepolia error
juliopavila Jul 6, 2023
f05fbab
Merge branch 'tabula-v.2.1' of ssh://github.com/gnosis/tabula into ta…
juliopavila Jul 6, 2023
f848a72
bug: fix placeholder styles
juliopavila Jul 20, 2023
d8a7421
bug: Fix deterministic avatar functionality in PublicationAvatar.tsx
juliopavila Jul 20, 2023
39444e5
feat: active spell check
juliopavila Jul 20, 2023
9026114
bug: Fix auto-scrolling issue when adding new lines
juliopavila Jul 20, 2023
9a6bc14
Merge pull request #240 from gnosis/issue-#239_editor_placeholder
juliopavila Jul 20, 2023
bbc2435
Merge pull request #243 from gnosis/issue-#230
juliopavila Jul 20, 2023
b548795
Merge pull request #242 from gnosis/issue-#234
juliopavila Jul 20, 2023
d765914
bug: solve code and quote break/return
juliopavila Jul 24, 2023
a5edd65
apply PR comments
juliopavila Jul 24, 2023
4904b24
chore: fix code-block styles
juliopavila Jul 24, 2023
b568f5b
Merge pull request #244 from gnosis/issue-#231-#233
juliopavila Jul 24, 2023
ebd2ede
feat: change the logic to remove the icon
juliopavila Jul 24, 2023
0c01f4f
Merge pull request #241 from gnosis/issue-#223_settings
juliopavila Jul 25, 2023
d790a1b
feat: Implement Markdown parsing in useHandlePastedText
juliopavila Jul 25, 2023
2b19ac6
chore: fix array dependencies
juliopavila Jul 25, 2023
b3d2576
Merge pull request #245 from gnosis/issue-#236
juliopavila Jul 25, 2023
5e7406e
feat: Enhance UI for User-Configured Pinning Service in Tabula
juliopavila Aug 6, 2023
dab9e51
feat:apply PR comments
juliopavila Aug 15, 2023
9882fde
Update PinningConfigurationModal.tsx
juliopavila Aug 15, 2023
fb644e8
Update UserOptions.tsx
juliopavila Aug 15, 2023
9808fc3
Make the development start script runnable on newer versions of Node
asgeir-s Aug 15, 2023
384a749
feat: new modal for configure pinning service
juliopavila Sep 4, 2023
976de4c
chore: clean code
juliopavila Sep 4, 2023
06120a6
feat: update yarn.lock
juliopavila Sep 5, 2023
51681db
bug: solved cache issue from ci.yaml
juliopavila Sep 5, 2023
d74d008
fix: build issue
juliopavila Sep 5, 2023
c5a2a68
Adds zero state for articles
cedricwaxwing Sep 6, 2023
ca8be00
bug: solved stat bug
juliopavila Sep 12, 2023
571bbb9
Merge pull request #248 from gnosis/issue-#238
juliopavila Sep 14, 2023
9f3b0a5
chore: change tabula version
juliopavila Sep 14, 2023
25716d9
Merge branch 'tabula-v.2.1' of ssh://github.com/gnosis/tabula into ta…
juliopavila Sep 14, 2023
9a78800
Merge branch 'tabula-v.2.1' into adds-articles-zero-state
juliopavila Sep 14, 2023
cb561aa
Merge pull request #252 from gnosis/adds-articles-zero-state
juliopavila Sep 14, 2023
afb90c7
Integrate ENS Record Setting in UI
juliopavila Sep 26, 2023
8117e82
feat: add ens subgraph to fetch the ens name list
juliopavila Sep 27, 2023
931883b
feat: Use mainnet ENS names for all chains
juliopavila Oct 6, 2023
0b0887a
chore: use setText instead multicall
juliopavila Oct 8, 2023
f1d0616
feat: add switch network modal
juliopavila Oct 9, 2023
d832e75
bug: set up and rename env variables
juliopavila Oct 10, 2023
27c5c94
chore: rename ens infura key
juliopavila Oct 10, 2023
a573d24
chore: add network modal types
juliopavila Oct 11, 2023
b3019de
Merge pull request #256 from gnosis/issue-#253_ens
juliopavila Oct 11, 2023
ea3ced8
Merge branch 'tabula-v.2.1' into issue-#260
juliopavila Oct 11, 2023
d3a6a42
bug: solved upload image without pinning service
juliopavila Oct 11, 2023
7b64e99
chore: force push
juliopavila Oct 11, 2023
21f83e4
Merge pull request #266 from gnosis/issue-#260
juliopavila Oct 12, 2023
3fdeafe
chore: add article and publication tag limit
juliopavila Oct 12, 2023
b5faaa4
Merge pull request #267 from gnosis/issue-#257
juliopavila Oct 17, 2023
c18441c
bugfix: refactor how we update articles
juliopavila Oct 17, 2023
b68147d
Merge branch 'tabula-v.2.1' into issue-#262
juliopavila Oct 17, 2023
31b5c76
chore: update matchstick-as lib to solve ci error
juliopavila Oct 17, 2023
00985ad
chore: update graphprotocol/lib
juliopavila Oct 17, 2023
666ff5a
Merge pull request #268 from gnosis/issue-#262
juliopavila Oct 17, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
- run: yarn install
- run: yarn build
- name: Generate subgraph.yaml for Goerli
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/dev-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:

env:
REACT_APP_POSTER_CONTRACT: ${{ secrets.REACT_APP_POSTER_CONTRACT }}
REACT_APP_INFURA_KEY: ${{ secrets.REACT_APP_INFURA_KEY }}
REACT_APP_INFURA_NETWORK_ACCESS_KEY: ${{ secrets.REACT_APP_INFURA_NETWORK_ACCESS_KEY }}
REACT_APP_INFURA_IPFS_API_KEY: ${{ secrets.REACT_APP_INFURA_IPFS_API_KEY }}
REACT_APP_INFURA_IPFS_API_SECRET: ${{ secrets.REACT_APP_INFURA_IPFS_API_SECRET }}
REACT_APP_SUBGRAPH_BASE_URL: https://api.thegraph.com/subgraphs/name/
REACT_APP_SUBGRAPH_GNOSIS_CHAIN: auryn-macmillan/tabula-gnosis-chain
REACT_APP_SUBGRAPH_MAINNET: auryn-macmillan/tabula-mainnet
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prod-release-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:

env:
REACT_APP_POSTER_CONTRACT: ${{ secrets.REACT_APP_POSTER_CONTRACT }}
REACT_APP_INFURA_KEY: ${{ secrets.REACT_APP_INFURA_KEY }}
REACT_APP_INFURA_NETWORK_ACCESS_KEY: ${{ secrets.REACT_APP_INFURA_NETWORK_ACCESS_KEY }}
REACT_APP_INFURA_IPFS_API_KEY: ${{ secrets.REACT_APP_INFURA_IPFS_API_KEY }}
REACT_APP_INFURA_IPFS_API_SECRET: ${{ secrets.REACT_APP_INFURA_IPFS_API_SECRET }}
REACT_APP_SUBGRAPH_BASE_URL: https://api.thegraph.com/subgraphs/name/
REACT_APP_SUBGRAPH_GNOSIS_CHAIN: auryn-macmillan/tabula-gnosis-chain
REACT_APP_SUBGRAPH_MAINNET: auryn-macmillan/tabula-mainnet
Expand Down
7 changes: 6 additions & 1 deletion packages/app/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REACT_APP_INFURA_KEY=
REACT_APP_INFURA_NETWORK_ACCESS_KEY=
REACT_APP_POSTER_CONTRACT=0x000000000000cd17345801aa8147b8D3950260FF
REACT_APP_SUBGRAPH_BASE_URL=https://api.thegraph.com/subgraphs/name/
REACT_APP_SUBGRAPH_GNOSIS_CHAIN=auryn-macmillan/tabula-gnosis-chain
Expand All @@ -8,5 +8,10 @@ REACT_APP_SUBGRAPH_SEPOLIA=auryn-macmillan/tabula-sepolia
REACT_APP_SUBGRAPH_POLYGON=auryn-macmillan/tabula-polygon
REACT_APP_SUBGRAPH_ARBITRUM=auryn-macmillan/tabula-arbitrum
REACT_APP_SUBGRAPH_OPTIMISM=auryn-macmillan/tabula-optimism
REACT_APP_ENS_SUBGRAPH_MAINNET=ensdomains/ens
REACT_APP_ENS_SUBGRAPH_GOERLI=ensdomains/ensgoerli
REACT_APP_IPFS_GATEWAY=https://ipfs.io/ipfs
REACT_APP_SUBGRAPH_OPTIMISM_ON_GNOSIS_CHAIN=auryn-macmillan/tabula-optimism-on-gnosis-chain
REACT_APP_INFURA_IPFS_API_KEY=
REACT_APP_INFURA_IPFS_API_SECRET=

35 changes: 20 additions & 15 deletions packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tabula",
"version": "0.1.0",
"version": "2.1.0",
"private": true,
"license": "LGPL-2.1",
"homepage": "https://onposter.github.io",
Expand All @@ -17,14 +17,18 @@
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.13",
"@types/react": "^18.0.27",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.9",
"@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",
"axios": "^0.26.1",
"blockies-ts": "^1.0.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",
"ethers": "^5.7.2",
"gh-pages": "^3.2.3",
"graphql": "^16.3.0",
Expand All @@ -33,6 +37,7 @@
"is-ipfs": "^6.0.2",
"lodash": "^4.17.21",
"markdown-to-jsx": "^7.1.7",
"marked": "^5.1.2",
"moment": "^2.29.2",
"notistack": "^2.0.8",
"react": "^17.0.2",
Expand All @@ -44,14 +49,17 @@
"react-router-dom": "^6.2.2",
"react-scripts": "4.0.3",
"react-select": "^5.3.2",
"turndown": "^7.1.1",
"typescript": "^4.4.2",
"uid": "^2.0.1",
"urql": "^2.2.0",
"web-vitals": "^2.1.0",
"webpack": "4.44.2",
"yup": "^0.32.11"
},
"scripts": {
"start": "react-scripts start",
"start": "react-scripts --openssl-legacy-provider start",
"old-start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
Expand All @@ -64,23 +72,20 @@
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all"
],
"browser": {
"crypto": false
},
"devDependencies": {
"@types/draft-convert": "^2.1.4",
"@types/draft-js": "^0.11.10",
"@types/lodash": "^4.14.180",
"@types/marked": "^5.0.1",
"@types/turndown": "^5.0.1",
"prettier": "^2.5.1"
},
"resolutions": {
Expand Down
67 changes: 35 additions & 32 deletions packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ import { Provider as UrqlProvider } from "urql"
import { LandingView } from "./components/views/home/LandingView"
import { WalletView } from "./components/views/wallet/WalletView"
import { PublicationsView } from "./components/views/publication/PublicationsView"
import { PublicationProvider } from "./services/publications/contexts"
import { ArticleProvider, PublicationProvider } from "./services/publications/contexts"
import { CreateArticleView } from "./components/views/publication/CreateArticleView"
import { CreateArticleView2 } from "./components/views/publication/CreateArticleView2"
import { ArticleView } from "./components/views/publication/ArticleView"
import ScrollToTop from "./components/commons/ScrollToTop"
import { subgraphClient } from "./services/graphql"
import { PermissionView } from "./components/views/publication/PermissionView"
import SetupIpfsView from "./components/views/pinning/SetupIpfsView"
import { useWeb3React } from "@web3-react/core"
import { PosterProvider } from "./services/poster/context"
import { WalletProvider } from "./connectors/WalletProvider"
import { RedirectOldRoute } from "./components/commons/RedicrectOldRoute"
import PreviewArticleView from "./components/views/publication/PreviewArticleView"
import { EnsProvider } from "./services/ens/context"

const App: React.FC = () => {
// the chainId should be from the publication if its present
Expand All @@ -45,38 +45,41 @@ const App: React.FC = () => {
<SnackbarProvider maxSnack={1}>
<UrqlProvider value={currentSubgraphClient}>
<WalletProvider>
<PublicationProvider>
<PosterProvider>
<ScrollToTop />
<Routes>
{" "}
<Route path="/" element={<LandingView />} />
<Route path="/wallet" element={<WalletView />} />
<Route path="/pinning" element={<SetupIpfsView />} />
<Route path="/publications" element={<PublicationsView updateChainId={updateChainId} />} />
<Route path=":publicationSlug" element={<PublicationView updateChainId={updateChainId} />} />
{/* Redirect old routes to new routes */}
<Route path="/goerli/*" element={<RedirectOldRoute />} />
<Route path="/mainnet/*" element={<RedirectOldRoute />} />
<Route path="/gnosis_chain/*" element={<RedirectOldRoute />} />
<Route path="/polygon/*" element={<RedirectOldRoute />} />
<Route path="/arbitrum/*" element={<RedirectOldRoute />} />
<Route path="/optimism/*" element={<RedirectOldRoute />} />
{/* New routes */}
<Route path=":publicationSlug">
<Route path="permissions/:type" element={<PermissionView />} />
<EnsProvider>
<PublicationProvider>
<ArticleProvider>
<PosterProvider>
<ScrollToTop />
<Routes>
{" "}
<Route path="/" element={<LandingView />} />
<Route path="/wallet" element={<WalletView />} />
<Route path="/publications" element={<PublicationsView updateChainId={updateChainId} />} />
<Route path=":publicationSlug" element={<PublicationView updateChainId={updateChainId} />} />
{/* Redirect old routes to new routes */}
<Route path="/goerli/*" element={<RedirectOldRoute />} />
<Route path="/mainnet/*" element={<RedirectOldRoute />} />
<Route path="/gnosis_chain/*" element={<RedirectOldRoute />} />
<Route path="/polygon/*" element={<RedirectOldRoute />} />
<Route path="/arbitrum/*" element={<RedirectOldRoute />} />
<Route path="/optimism/*" element={<RedirectOldRoute />} />
{/* New routes */}
<Route path=":publicationSlug">
<Route path="permissions/:type" element={<PermissionView />} />

<Route path="new" element={<CreateArticleView type="new" />} />
<Route path="new/2" element={<CreateArticleView2 type="new" />} />
<Route path="new" element={<CreateArticleView type="new" />} />

<Route path=":articleId" element={<ArticleView updateChainId={updateChainId} />} />
<Route path=":type/preview" element={<PreviewArticleView />} />

<Route path=":articleId/edit" element={<CreateArticleView type="edit" />} />
<Route path=":articleId/edit/2" element={<CreateArticleView2 type="edit" />} />
</Route>
</Routes>
</PosterProvider>
</PublicationProvider>
<Route path=":articleId" element={<ArticleView updateChainId={updateChainId} />} />

<Route path=":articleId/edit" element={<CreateArticleView type="edit" />} />
</Route>
</Routes>
</PosterProvider>
</ArticleProvider>
</PublicationProvider>
</EnsProvider>
</WalletProvider>
</UrqlProvider>
</SnackbarProvider>
Expand Down
Binary file not shown.
3 changes: 3 additions & 0 deletions packages/app/src/assets/images/boldIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/app/src/assets/images/codeIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/app/src/assets/images/dividerIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions packages/app/src/assets/images/emojiIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions packages/app/src/assets/images/icons/link.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Box, BoxProps } from "@mui/material"

const LinkIcon = ({ ...props }: BoxProps) => {
return (
<Box width={24} height={24} {...props}>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M11.4656 6.69381L13.3219 4.83756C14.1078 4.12124 15.1395 3.73529 16.2026 3.7599C17.2657 3.78451 18.2784 4.2178 19.0303 4.96972C19.7823 5.72164 20.2156 6.73438 20.2402 7.79748C20.2648 8.86057 19.8788 9.89227 19.1625 10.6782L16.5094 13.3219C16.127 13.7057 15.6726 14.0103 15.1723 14.2181C14.672 14.4259 14.1355 14.5328 13.5938 14.5328C13.052 14.5328 12.5156 14.4259 12.0152 14.2181C11.5149 14.0103 11.0605 13.7057 10.6781 13.3219"
stroke="currentColor"
strokeOpacity="0.8"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M12.5344 17.3063L10.6781 19.1625C9.89221 19.8789 8.86051 20.2648 7.79741 20.2402C6.73432 20.2156 5.72158 19.7823 4.96966 19.0304C4.21774 18.2785 3.78445 17.2657 3.75984 16.2026C3.73522 15.1395 4.12118 14.1078 4.8375 13.3219L7.49063 10.6782C7.873 10.2944 8.32738 9.98984 8.82771 9.78204C9.32805 9.57425 9.86449 9.46729 10.4063 9.46729C10.948 9.46729 11.4845 9.57425 11.9848 9.78204C12.4851 9.98984 12.9395 10.2944 13.3219 10.6782"
stroke="currentColor"
strokeOpacity="0.8"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</Box>
)
}

export default LinkIcon
21 changes: 21 additions & 0 deletions packages/app/src/assets/images/icons/node.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Box, BoxProps } from "@mui/material"

const NodeIcon = ({ ...props }: BoxProps) => {
return (
<Box width={24} height={24} {...props}>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="12" fill="currentColor" fillOpacity="0.1" />
<path
d="M8.5 15C8.5 15.9665 7.7165 16.75 6.75 16.75C5.7835 16.75 5 15.9665 5 15C5 14.0335 5.7835 13.25 6.75 13.25C7.7165 13.25 8.5 14.0335 8.5 15ZM8.5 15H9C9.79565 15 10.5587 14.6839 11.1213 14.1213C11.6839 13.5587 12 12.7956 12 12C12 11.2044 12.3161 10.4413 12.8787 9.87868C13.4413 9.31607 14.2044 9 15 9H19M16.5 6.5L19 9M19 9L16.5 11.5"
stroke="currentColor"
strokeOpacity="0.8"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</Box>
)
}

export default NodeIcon
26 changes: 26 additions & 0 deletions packages/app/src/assets/images/icons/settings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Box, BoxProps } from "@mui/material"

const SettingsIcon = ({ ...props }: BoxProps) => {
return (
<Box width={24} height={24} {...props}>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style={{ width: "100%" }}>
<path
d="M12 16.5C14.4853 16.5 16.5 14.4853 16.5 12C16.5 9.51472 14.4853 7.5 12 7.5C9.51472 7.5 7.5 9.51472 7.5 12C7.5 14.4853 9.51472 16.5 12 16.5Z"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M17.2218 6.10303C17.4593 6.32178 17.6843 6.54678 17.8968 6.77803L20.4562 7.14365C20.8732 7.86788 21.1947 8.64308 21.4125 9.4499L19.8562 11.5218C19.8562 11.5218 19.8843 12.1593 19.8562 12.478L21.4125 14.5499C21.1957 15.3571 20.8742 16.1324 20.4562 16.8562L17.8968 17.2218C17.8968 17.2218 17.4562 17.6812 17.2218 17.8968L16.8562 20.4562C16.132 20.8732 15.3568 21.1946 14.55 21.4124L12.4781 19.8562C12.16 19.8843 11.84 19.8843 11.5218 19.8562L9.44996 21.4124C8.6428 21.1956 7.86747 20.8741 7.14371 20.4562L6.77809 17.8968C6.54684 17.678 6.32184 17.453 6.10309 17.2218L3.54371 16.8562C3.1267 16.1319 2.80527 15.3567 2.58746 14.5499L4.14371 12.478C4.14371 12.478 4.11559 11.8405 4.14371 11.5218L2.58746 9.4499C2.80426 8.64274 3.12574 7.8674 3.54371 7.14365L6.10309 6.77803C6.32184 6.54678 6.54684 6.32178 6.77809 6.10303L7.14371 3.54365C7.86794 3.12664 8.64314 2.80521 9.44996 2.5874L11.5218 4.14365C11.84 4.11552 12.16 4.11552 12.4781 4.14365L14.55 2.5874C15.3571 2.8042 16.1325 3.12568 16.8562 3.54365L17.2218 6.10303Z"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</Box>
)
}

export default SettingsIcon
5 changes: 5 additions & 0 deletions packages/app/src/assets/images/imageIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/app/src/assets/images/inlineCodeIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/app/src/assets/images/italicIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions packages/app/src/assets/images/linkIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading