Add dotreasury to external links (#6011)

This commit is contained in:
Yongfeng LI 2021-08-27 17:06:36 +08:00 committed by GitHub
parent 0a2b58023c
commit d85637bd15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type BN from 'bn.js';
import { externalLogos } from '../ui/logos';
export default {
chains: {
Kusama: 'ksm',
Polkadot: 'dot'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://www.dotreasury.com/${chain}/${path}/${data.toString()}`,
isActive: true,
logo: externalLogos.dotreasury as string,
paths: {
bounty: 'bounties',
tip: 'tips',
treasury: 'proposals'
},
url: 'https://dotreasury.com/'
};

View File

@ -4,6 +4,7 @@
import type { ExternalDef } from './types';
import Commonwealth from './commonwealth';
import Dotreasury from './dotreasury';
import DotScanner from './dotscanner';
import Polkascan from './polkascan';
import Polkassembly from './polkassembly';
@ -14,6 +15,7 @@ import Subscan from './subscan';
export const externalLinks: Record<string, ExternalDef> = {
Commonwealth,
DotScanner,
Dotreasury,
Polkascan,
Polkassembly,
Polkastats,

View File

@ -0,0 +1,9 @@
<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M139.471 96.2353C139.471 72.3571 120.113 53 96.2353 53C72.3571 53 53 72.3571 53 96.2353C53 120.113 72.3571 139.471 96.2353 139.471C120.113 139.471 139.471 120.113 139.471 96.2353Z" fill="#F23252"/>
<path d="M326 53H281.529C269.931 53 260.529 62.402 260.529 74V118.471C260.529 130.069 269.931 139.471 281.529 139.471H326C337.598 139.471 347 130.069 347 118.471V74C347 62.402 337.598 53 326 53Z" fill="#F2B12F"/>
<path d="M243.236 200C243.236 176.121 223.878 156.764 200 156.764C176.122 156.764 156.765 176.121 156.765 200C156.765 223.878 176.122 243.235 200 243.235C223.878 243.235 243.236 223.878 243.236 200Z" fill="#F23252"/>
<path d="M118.471 156.764H74C62.402 156.764 53 166.166 53 177.764V222.235C53 233.833 62.402 243.235 74 243.235H118.471C130.069 243.235 139.471 233.833 139.471 222.235V177.764C139.471 166.166 130.069 156.764 118.471 156.764Z" fill="#F2B12F"/>
<path d="M118.471 260.529H74C62.402 260.529 53 269.931 53 281.529V325.999C53 337.597 62.402 346.999 74 346.999H118.471C130.069 346.999 139.471 337.597 139.471 325.999V281.529C139.471 269.931 130.069 260.529 118.471 260.529Z" fill="#F2B12F"/>
<path d="M222.236 260.529H177.765C166.167 260.529 156.765 269.931 156.765 281.529V325.999C156.765 337.597 166.167 346.999 177.765 346.999H222.236C233.834 346.999 243.236 337.597 243.236 325.999V281.529C243.236 269.931 233.834 260.529 222.236 260.529Z" fill="#F2B12F"/>
<path d="M347 303.764C347 279.886 327.643 260.529 303.765 260.529C279.887 260.529 260.529 279.886 260.529 303.764C260.529 327.642 279.887 346.999 303.765 346.999C327.643 346.999 347 327.642 347 303.764Z" fill="#F23252"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -28,6 +28,7 @@ import chainSnakenet from './chains/snakenet.svg';
import chainUnique from './chains/unique.svg';
import extensionPolkadotJs from './extensions/polkadot-js.svg';
import externalCommonwealth from './external/commonwealth.png';
import externalDotreasury from './external/dotreasury.svg';
import externalDotScanner from './external/dotscanner.png';
import externalPolkascan from './external/polkascan.png';
import externalPolkassembly from './external/polkassembly.png';
@ -579,6 +580,7 @@ export const extensionLogos: Record<string, unknown> = {
// external logos, i.e. for explorers
export const externalLogos: Record<string, unknown> = {
commonwealth: externalCommonwealth,
dotreasury: externalDotreasury,
dotscanner: externalDotScanner,
polkascan: externalPolkascan,
polkassembly: externalPolkassembly,