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

Pontusx demo #1

Draft
wants to merge 40 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
090739b
Add dynamically resizing component able to fill up space
csillag Feb 22, 2024
d43edd5
Re-style account link to fill space on mobile
csillag Feb 23, 2024
f5c192f
Make sure account links are always used correctly
csillag Feb 23, 2024
2144e7b
Update BlockHashLink for mobile
csillag Feb 23, 2024
3d8dde0
Fix token transfers table on tablet
csillag Feb 23, 2024
d2bf64c
Update TransactionLink for mobile
csillag Feb 23, 2024
35ccecc
Make sure TransactionLink is used correctly
csillag Feb 23, 2024
f561a26
Add adaptive shortener with dynamically content
csillag Feb 22, 2024
bf0f995
Components for displaying shortened text with highlights
csillag Feb 21, 2024
ba2da30
Add chance library (for random stuff)
csillag Feb 11, 2024
45a7e8a
Load the Pontus-X account names
csillag Feb 23, 2024
67e201d
Support displaying account names
csillag Feb 23, 2024
7c21f87
Support for searching for accounts by name
csillag Feb 23, 2024
898e803
Implement highlighting matches in account names
csillag Feb 11, 2024
14faeff
Apply configuration and branding for Pontus-X Explorer
csillag Feb 11, 2024
3deb614
Adjust Pontus-X dashboard
csillag Feb 13, 2024
89a040f
Update i18n texts
csillag Feb 13, 2024
1a52fca
Add support for displaying privacy policy when required
csillag Feb 28, 2024
d184612
Add PontusX Privacy Policy
csillag Feb 28, 2024
857d118
Update Pontus-X privacy policy (title levels only)
csillag Feb 29, 2024
cb2638a
ci: add vercel rewrites
moritzkirstein Feb 29, 2024
6cec680
style: adjust colors
moritzkirstein Feb 29, 2024
c1ecc92
fix: main color
moritzkirstein Mar 20, 2024
9d0918d
Add support for overriding names of special scopes
csillag May 29, 2024
1d1b558
Centralize how scope routes are built
csillag May 30, 2024
0258591
Add code for customizing scope paths
csillag Jun 3, 2024
673003a
Add config variable for skipping the graph
csillag May 29, 2024
5fed05e
Rename a component, preparing for extension
csillag Jun 4, 2024
97e2bf7
Rename a component, preparing for extension
csillag Jun 4, 2024
3295808
Change semantics of getThemesForNetworks function
csillag Jun 4, 2024
a8c3990
Rename a function
csillag Jun 5, 2024
3daebf4
Extend getThemeForScope function to accept layer
csillag Jun 5, 2024
fbe90b4
Add support for adding custom themes for specific paratimes
csillag Jun 5, 2024
e54b986
Apply configuration and branding for Pontus-X Explorer
csillag Feb 11, 2024
71aa3b2
Adjust Pontus-X dashboard
csillag Feb 13, 2024
c370129
Update i18n texts
csillag Feb 13, 2024
611ce3f
Add PontusX Privacy Policy
csillag Feb 28, 2024
33d9d8b
Merge remote-tracking branch 'upstream/csillag/pontusx' into pontusx-…
oceanByte Jun 11, 2024
d04437c
Merge pull request #2 from deltaDAO/feat/pontusx-updates
oceanByte Jun 11, 2024
a78f157
Update app.webmanifest
oceanByte Jul 30, 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
1 change: 1 addition & 0 deletions .changelog/1246.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Initial support for displaying account names
1 change: 1 addition & 0 deletions .changelog/1290.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update how links and hashes are displayed on mobile
1 change: 1 addition & 0 deletions .changelog/1355.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add Pontus-X branding and configuration
1 change: 1 addition & 0 deletions .changelog/1441.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add more configuration options for paratimes
46 changes: 24 additions & 22 deletions .env
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
REACT_APP_BUILD_DATETIME=0
REACT_APP_BUILD_SHA=sha0000000000000000000000000000000000000
REACT_APP_BUILD_VERSION=
REACT_APP_PRIVACY_POLICY=https://oasisprotocol.org/privacy-policy
REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS=true
REACT_APP_PRIVACY_POLICY=/privacy
# REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS=true
# REACT_APP_API=http://localhost:8008/v1/
# REACT_APP_API=https://nexus.stg.oasis.io/v1/
# REACT_APP_TESTNET_API=https://testnet.nexus.stg.oasis.io/v1/
REACT_APP_API=https://nexus.oasis.io/v1/
REACT_APP_TESTNET_API=https://testnet.nexus.oasis.io/v1/
REACT_APP_META_TITLE="Oasis Explorer"
REACT_APP_META_IMAGE="Oasis Explorer - OpenGraph Banner.png"
REACT_APP_META_MANIFEST=app.webmanifest
REACT_APP_META_FAVICON=favicon.svg
REACT_APP_META_APPLE_ICON="Icon Blue 192.png"
REACT_APP_META_DESC="Official explorer for the Oasis Network."
REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity
REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol
REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord
REACT_APP_SOCIAL_YOUTUBE=https://www.youtube.com/channel/UC35UFPcZ2F1wjPxhPrSsESQ
REACT_APP_SOCIAL_REDDIT=https://www.reddit.com/r/oasisnetwork/
# REACT_APP_SOCIAL_LINKEDIN=https://www.linkedin.com/company/oasisprotocol
# REACT_APP_SOCIAL_DOCS=https://oasisprotocol.org/developers#overview
# REACT_APP_SOCIAL_HOME=https://oasisprotocol.org/
REACT_APP_PRODUCTION_URLS="https://explorer.oasis.io, https://explorer.prd.oasis.io"
REACT_APP_STAGING_URLS=https://explorer.stg.oasis.io
REACT_APP_SHOW_BUILD_BANNERS=true
# REACT_APP_FIXED_NETWORK=testnet
# REACT_APP_FIXED_LAYER=sapphire
REACT_APP_SHOW_FIAT_VALUES=true
REACT_APP_META_TITLE=Pontus-X Explorer
REACT_APP_META_IMAGE=pontusx/og-image.png
REACT_APP_META_MANIFEST=pontusx.webmanifest
REACT_APP_META_FAVICON=pontusx/favicon.ico
REACT_APP_META_APPLE_ICON=pontusx/logo192.png
REACT_APP_META_DESC=Official explorer for the Pontus-X Network.
# REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity
# REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol
# REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord
# REACT_APP_SOCIAL_YOUTUBE=https://www.youtube.com/channel/UC35UFPcZ2F1wjPxhPrSsESQ
# REACT_APP_SOCIAL_REDDIT=https://www.reddit.com/r/oasisnetwork/
REACT_APP_SOCIAL_LINKEDIN=https://www.linkedin.com/company/76729586
REACT_APP_SOCIAL_DOCS=https://docs.pontus-x.eu/
REACT_APP_SOCIAL_HOME=https://www.pontus-x.eu/
#REACT_APP_PRODUCTION_URLS=https://explorer.oasis.io, https://explorer.prd.oasis.io
#REACT_APP_STAGING_URLS=https://explorer.stg.oasis.io
REACT_APP_SHOW_BUILD_BANNERS=false
REACT_APP_FIXED_NETWORK=testnet
# REACT_APP_FIXED_LAYER=pontusx
REACT_APP_SKIP_GRAPH=true
REACT_APP_SHOW_FIAT_VALUES=false
REACT_APP_SHOW_PRIVACY_POLICY=true
51 changes: 29 additions & 22 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
REACT_APP_BUILD_DATETIME=
REACT_APP_BUILD_SHA=
REACT_APP_BUILD_VERSION=
REACT_APP_PRIVACY_POLICY=https://oasisprotocol.org/privacy-policy
REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS=true
REACT_APP_META_TITLE="Oasis Explorer"
REACT_APP_META_IMAGE="Oasis Explorer - OpenGraph Banner.png"
REACT_APP_META_MANIFEST=app.webmanifest
REACT_APP_META_FAVICON=favicon.svg
REACT_APP_META_APPLE_ICON="Icon Blue 192.png"
REACT_APP_META_DESC="Official explorer for the Oasis Network."
REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity
REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol
REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord
REACT_APP_SOCIAL_YOUTUBE=https://www.youtube.com/channel/UC35UFPcZ2F1wjPxhPrSsESQ
REACT_APP_SOCIAL_REDDIT=https://www.reddit.com/r/oasisnetwork/
# REACT_APP_SOCIAL_LINKEDIN=https://www.linkedin.com/company/oasisprotocol
# REACT_APP_SOCIAL_DOCS=https://oasisprotocol.org/developers#overview
# REACT_APP_SOCIAL_HOME=https://oasisprotocol.org/
REACT_APP_PRODUCTION_URLS="https://explorer.oasis.io, https://explorer.prd.oasis.io"
REACT_APP_STAGING_URLS=https://explorer.stg.oasis.io
REACT_APP_SHOW_BUILD_BANNERS=true
# REACT_APP_FIXED_NETWORK=testnet
# REACT_APP_FIXED_LAYER=sapphire
REACT_APP_SHOW_FIAT_VALUES=true
REACT_APP_PRIVACY_POLICY=/privacy
# REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS=true
# REACT_APP_API=http://localhost:8008/v1/
# REACT_APP_API=https://nexus.stg.oasis.io/v1/
# REACT_APP_TESTNET_API=https://testnet.nexus.stg.oasis.io/v1/
REACT_APP_API=https://nexus.oasis.io/v1/
REACT_APP_TESTNET_API=https://testnet.nexus.oasis.io/v1/
REACT_APP_META_TITLE=Pontus-X Explorer
REACT_APP_META_IMAGE=pontusx/og-image.png
REACT_APP_META_MANIFEST=pontusx.webmanifest
REACT_APP_META_FAVICON=pontusx/favicon.ico
REACT_APP_META_APPLE_ICON=pontusx/logo192.png
REACT_APP_META_DESC=Official explorer for the Pontus-X Network.
# REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity
# REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol
# REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord
# REACT_APP_SOCIAL_YOUTUBE=https://www.youtube.com/channel/UC35UFPcZ2F1wjPxhPrSsESQ
# REACT_APP_SOCIAL_REDDIT=https://www.reddit.com/r/oasisnetwork/
REACT_APP_SOCIAL_LINKEDIN=https://www.linkedin.com/company/76729586
REACT_APP_SOCIAL_DOCS=https://docs.pontus-x.eu/
REACT_APP_SOCIAL_HOME=https://www.pontus-x.eu/
# REACT_APP_PRODUCTION_URLS=https://explorer.oasis.io, https://explorer.prd.oasis.io
# REACT_APP_STAGING_URLS=https://explorer.stg.oasis.io
REACT_APP_SHOW_BUILD_BANNERS=false
REACT_APP_FIXED_NETWORK=testnet
# REACT_APP_FIXED_LAYER=pontusx
REACT_APP_SKIP_GRAPH=true
REACT_APP_SHOW_FIAT_VALUES=false
REACT_APP_SHOW_PRIVACY_POLICY=true
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Preview } from '@storybook/react'
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
import '../src/locales/i18n'
import { withDefaultTheme } from '../src/app/components/ThemeByNetwork'
import { withDefaultTheme } from '../src/app/components/ThemeByScope'
import { initialize, mswLoader } from 'msw-storybook-addon'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { handlers } from '../internals/mocks/msw-handlers'
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@
},
"devDependencies": {
"@emotion/jest": "11.11.0",
"@mdx-js/react": "^1.6.22",
"@parcel/packager-raw-url": "2.12.0",
"@parcel/transformer-mdx": "^2.12.0",
"@parcel/transformer-webmanifest": "2.12.0",
"@plasmohq/parcel-transformer-inject-env": "^0.2.11",
"@storybook/addon-actions": "8.0.9",
Expand Down
4 changes: 2 additions & 2 deletions public/app.webmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/web-manifest-combined.json",
"short_name": "Oasis Explorer",
"name": "Official explorer for the Oasis Network.",
"short_name": "Pontus-X Explorer",
"name": "Official explorer for the Pontus-X Ecosystem.",
"icons": [
{
"src": "./favicon.svg",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<base href="/" />
<link rel="icon" href="$REACT_APP_META_FAVICON" type="image/svg+xml" />
<link rel="icon" href="$REACT_APP_META_FAVICON" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="apple-touch-icon" href="$REACT_APP_META_APPLE_ICON" />
Expand Down
Binary file added public/pontusx-og-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions public/pontusx.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "https://json.schemastore.org/web-manifest-combined.json",
"short_name": "Pontus-X Explorer",
"name": "Official explorer for the Pontus-X Network.",
"icons": [
{
"src": "./pontusx/favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "./pontusx/logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "./pontusx/logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
Binary file added public/pontusx/apple-touch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pontusx/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pontusx/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pontusx/favicon.ico
Binary file not shown.
Binary file added public/pontusx/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pontusx/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/pontusx/logo_blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading