mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 03:41:03 +00:00
Rebrand to Pezkuwichain Telemetry
- Rename PolkadotIcon to PezkuwiIcon - Update pinned chains for Pezkuwichain - Add pezkuwichain, bizinikiwi, pezkuwichain-js icons - Update favicon with Pezkuwi branding - Update package.json author to Dijital Kurdistan Tech Institute - Update GitHub links to pezkuwichain/pezkuwi-telemetry - Update backend Cargo.toml authors - Rewrite README with Pezkuwichain documentation - Add GitHub workflows (frontend-ci, backend-ci, docker, lock)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<svg width="278" height="278" viewBox="0 0 250 278" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M122.222 127.504L23.3996 71.0796C18.5633 68.3182 18.5334 61.3555 23.346 58.5528L122.199 0.982327C124.442 -0.3236 127.212 -0.32769 129.458 0.971606L228.12 58.0407C232.937 60.8269 232.933 67.7821 228.112 70.5624L129.42 127.488C127.194 128.772 124.454 128.778 122.222 127.504Z" fill="#E6007A"/>
|
||||
<path d="M246.368 219.626L148.092 276.997C143.282 279.805 137.237 276.349 137.216 270.78L136.785 156.385C136.776 153.791 138.157 151.389 140.406 150.094L239.16 93.1846C243.981 90.4063 250.002 93.8876 250 99.4522L249.953 213.385C249.952 215.955 248.587 218.331 246.368 219.626Z" fill="#E6007A"/>
|
||||
<path d="M113.198 156.338L113.745 270.133C113.771 275.702 107.756 279.21 102.923 276.443L3.63874 219.619C1.38658 218.33 -0.00209701 215.933 2.37701e-06 213.338L0.0923778 99.3597C0.0968919 93.7951 6.12245 90.3212 10.9404 93.1055L109.586 150.113C111.81 151.399 113.186 153.769 113.198 156.338Z" fill="#E6007A"/>
|
||||
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="32" cy="32" r="30" fill="#0066CC"/>
|
||||
<text x="32" y="42" font-size="28" fill="white" text-anchor="middle" font-weight="bold">P</text>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1013 B After Width: | Height: | Size: 252 B |
@@ -7,7 +7,7 @@
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
||||
/>
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<title>Polkadot Telemetry</title>
|
||||
<title>Pezkuwichain Telemetry</title>
|
||||
<script type="text/javascript" src="/tmp/env-config.js"></script>
|
||||
<style>
|
||||
body,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "@dotstats/frontend",
|
||||
"version": "0.2.1",
|
||||
"author": "Parity Technologies Ltd. <admin@parity.io>",
|
||||
"name": "@pezkuwi/telemetry-frontend",
|
||||
"version": "1.0.0",
|
||||
"author": "Dijital Kurdistan Tech Institute <admin@pezkuwichain.io>",
|
||||
"license": "GPL-3.0",
|
||||
"description": "Polkadot Telemetry frontend",
|
||||
"description": "Pezkuwichain Telemetry frontend",
|
||||
"scripts": {
|
||||
"start": "webpack serve --mode=development",
|
||||
"build": "webpack --mode=production",
|
||||
|
||||
@@ -77,8 +77,8 @@ export class Chains extends React.Component<ChainsProps> {
|
||||
) : null;
|
||||
|
||||
const githubLink = this.props.gitHash
|
||||
? `https://github.com/paritytech/substrate-telemetry/tree/${this.props.gitHash}`
|
||||
: 'https://github.com/paritytech/substrate-telemetry';
|
||||
? `https://github.com/pezkuwichain/pezkuwi-telemetry/tree/${this.props.gitHash}`
|
||||
: 'https://github.com/pezkuwichain/pezkuwi-telemetry';
|
||||
|
||||
return (
|
||||
<div className="Chains">
|
||||
|
||||
@@ -20,9 +20,9 @@ import { Node } from '../../../state';
|
||||
import { Tooltip, Icon } from '../../';
|
||||
import icon from '../../../icons/terminal.svg';
|
||||
|
||||
import parityPolkadotIcon from '../../../icons/dot.svg';
|
||||
import paritySubstrateIcon from '../../../icons/substrate.svg';
|
||||
import polkadotJsIcon from '../../../icons/polkadot-js.svg';
|
||||
import pezkuwichainIcon from '../../../icons/pezkuwichain.svg';
|
||||
import bizinikiwiiIcon from '../../../icons/bizinikiwi.svg';
|
||||
import pezkuwichainJsIcon from '../../../icons/pezkuwichain-js.svg';
|
||||
import airalabRobonomicsIcon from '../../../icons/robonomics.svg';
|
||||
import chainXIcon from '../../../icons/chainx.svg';
|
||||
import edgewareIcon from '../../../icons/edgeware.svg';
|
||||
@@ -43,12 +43,12 @@ import crustIcon from '../../../icons/crust.svg';
|
||||
import gossamerIcon from '../../../icons/gossamer.svg';
|
||||
|
||||
const ICONS = {
|
||||
'parity-polkadot': parityPolkadotIcon,
|
||||
'Parity Polkadot': parityPolkadotIcon,
|
||||
'polkadot-js': polkadotJsIcon,
|
||||
'pezkuwichain': pezkuwichainIcon,
|
||||
'Pezkuwichain': pezkuwichainIcon,
|
||||
'pezkuwichain-js': pezkuwichainJsIcon,
|
||||
'airalab-robonomics': airalabRobonomicsIcon,
|
||||
'substrate-node': paritySubstrateIcon,
|
||||
'Substrate Node': paritySubstrateIcon,
|
||||
'bizinikiwi-node': bizinikiwiiIcon,
|
||||
'Bizinikiwi Node': bizinikiwiiIcon,
|
||||
'edgeware-node': edgewareIcon,
|
||||
'Edgeware Node': edgewareIcon,
|
||||
'joystream-node': joystreamIcon,
|
||||
@@ -101,7 +101,7 @@ export class ImplementationColumn extends React.Component<ColumnProps> {
|
||||
this.version = version;
|
||||
|
||||
const [semver] = version.match(SEMVER_PATTERN) || ['?.?.?'];
|
||||
const implIcon = ICONS[implementation] || paritySubstrateIcon;
|
||||
const implIcon = ICONS[implementation] || bizinikiwiiIcon;
|
||||
|
||||
return (
|
||||
<td className="Column">
|
||||
|
||||
@@ -18,7 +18,7 @@ import * as React from 'react';
|
||||
import { Maybe } from '../../../common';
|
||||
import { ColumnProps } from './';
|
||||
import { Node } from '../../../state';
|
||||
import { Tooltip, PolkadotIcon, TooltipCopyCallback } from '../../';
|
||||
import { Tooltip, PezkuwiIcon, TooltipCopyCallback } from '../../';
|
||||
import icon from '../../../icons/shield.svg';
|
||||
|
||||
export class ValidatorColumn extends React.Component<ColumnProps> {
|
||||
@@ -47,7 +47,7 @@ export class ValidatorColumn extends React.Component<ColumnProps> {
|
||||
return (
|
||||
<td className="Column" onClick={this.onClick}>
|
||||
<Tooltip text={validator} copy={this.onCopy} />
|
||||
<PolkadotIcon
|
||||
<PezkuwiIcon
|
||||
className="Column-validator"
|
||||
account={validator}
|
||||
size={16}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
//Column for specifying which polkadot version node is running on
|
||||
//Column for specifying which Pezkuwi node version is running
|
||||
|
||||
import * as React from 'react';
|
||||
import { ColumnProps } from './';
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
milliOrSecond,
|
||||
secondsWithPrecision,
|
||||
} from '../../utils';
|
||||
import { Ago, Icon, PolkadotIcon } from '../';
|
||||
import { Ago, Icon, PezkuwiIcon } from '../';
|
||||
import { Node } from '../../state';
|
||||
|
||||
import nodeIcon from '../../icons/server.svg';
|
||||
@@ -116,7 +116,7 @@ export class Location extends React.Component<LocationProps, LocationState> {
|
||||
<td colSpan={5}>
|
||||
{trimHash(validator, 30)}
|
||||
<span className="Location-validator">
|
||||
<PolkadotIcon account={validator} size={16} />
|
||||
<PezkuwiIcon account={validator} size={16} />
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
|
||||
// Copyright 2018 @polkadot/ui-shared authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
// This has been converted from the original version that can be found at
|
||||
//
|
||||
// https://github.com/paritytech/oo7/blob/251ba2b7c45503b68eab4320c270b5afa9bccb60/packages/polkadot-identicon/src/index.jsx
|
||||
// Pezkuwi Identicon Component
|
||||
// Based on polkadot-identicon by Parity Technologies
|
||||
// Copyright (C) 2024 Dijital Kurdistan Tech Institute
|
||||
// Licensed under GPL-3.0
|
||||
import * as React from 'react';
|
||||
import { blake2AsU8a, decodeAddress } from '@polkadot/util-crypto';
|
||||
import { getSVGShadowRoot, W3SVG } from '../utils';
|
||||
@@ -193,7 +189,7 @@ function generate(address: string, isSixPoint = false): Circle[] {
|
||||
);
|
||||
}
|
||||
|
||||
interface PolkadotIconProps {
|
||||
interface PezkuwiIconProps {
|
||||
account: string;
|
||||
size: number;
|
||||
className?: string;
|
||||
@@ -227,8 +223,8 @@ function renderShadowIcon(account: string) {
|
||||
}
|
||||
}
|
||||
|
||||
export class PolkadotIcon extends React.Component<PolkadotIconProps> {
|
||||
public shouldComponentUpdate(nextProps: PolkadotIconProps) {
|
||||
export class PezkuwiIcon extends React.Component<PezkuwiIconProps> {
|
||||
public shouldComponentUpdate(nextProps: PezkuwiIconProps) {
|
||||
return (
|
||||
this.props.account !== nextProps.account ||
|
||||
this.props.size !== nextProps.size
|
||||
@@ -29,4 +29,4 @@ export * from './Sparkline';
|
||||
export * from './Truncate';
|
||||
export * from './Tooltip';
|
||||
export * from './Filter';
|
||||
export * from './PolkadotIcon';
|
||||
export * from './PezkuwiIcon';
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="12" cy="12" r="10" fill="#24CC85"/>
|
||||
<text x="12" y="16" font-size="10" fill="white" text-anchor="middle" font-weight="bold">B</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 252 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="12" cy="12" r="10" fill="#FF8C00"/>
|
||||
<text x="12" y="16" font-size="8" fill="white" text-anchor="middle" font-weight="bold">JS</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 252 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="12" cy="12" r="10" fill="#0066CC"/>
|
||||
<text x="12" y="16" font-size="10" fill="white" text-anchor="middle" font-weight="bold">P</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 252 B |
@@ -19,10 +19,9 @@ import { Types, Maybe, SortedCollection } from './common';
|
||||
import { Column } from './components/List';
|
||||
|
||||
export const PINNED_CHAINS = {
|
||||
// Kusama
|
||||
'0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe': 2,
|
||||
// Polkadot
|
||||
'0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3': 1,
|
||||
// Pezkuwichain (main relay chain)
|
||||
// Genesis hash will be set after mainnet launch
|
||||
// '0x...': 1,
|
||||
};
|
||||
|
||||
export function comparePinnedChains(a: string, b: string) {
|
||||
|
||||
Reference in New Issue
Block a user