mirror of
https://github.com/pezkuwichain/pezkuwi-sdk-ui.git
synced 2026-06-14 05:11:04 +00:00
Initial commit: Pezkuwi SDK UI
Comprehensive web interface for interacting with Pezkuwi blockchain. Features: - Blockchain explorer - Wallet management - Staking interface - Governance participation - Developer tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Browser, Extension, Known } from './types.js';
|
||||
|
||||
import { PezkuwiJs } from './pezkuwi-js.js';
|
||||
|
||||
// The list of known extensions including the links to tem on the store. This is
|
||||
// used when no extensions are actually available, promoting the user to install
|
||||
// one or more (Any known extension can and should be added here)
|
||||
|
||||
export const knownExtensions: Record<string, Known> = {
|
||||
'pezkuwi-js': PezkuwiJs
|
||||
};
|
||||
|
||||
export const availableExtensions = Object
|
||||
.values(knownExtensions)
|
||||
.reduce((available: Record<Browser, Extension[]>, { all, desc, name }) => {
|
||||
Object.entries(all).forEach(([browser, link]): void => {
|
||||
available[browser as Browser].push({ desc, link, name });
|
||||
});
|
||||
|
||||
return available;
|
||||
}, { chrome: [], firefox: [] });
|
||||
@@ -0,0 +1,21 @@
|
||||
// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Known } from './types.js';
|
||||
|
||||
import { extensionsPolkadotJsSVG } from '../ui/logos/extensions/index.js';
|
||||
import { externalEmptySVG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const PezkuwiJs: Known = {
|
||||
all: {
|
||||
chrome: 'https://chrome.google.com/webstore/detail/polkadot%7Bjs%7D-extension/mopnmbcafieddcagagdcbnhejhlodfdd',
|
||||
firefox: 'https://addons.mozilla.org/en-US/firefox/addon/pezkuwi-js-extension/'
|
||||
},
|
||||
desc: 'Basic account injection and signer',
|
||||
name: 'pezkuwi-js extension',
|
||||
ui: {
|
||||
// Don't copy this line as-is :) The '|| empty' here is just there for a build
|
||||
// check, aka it actually has no effect (the first part is always defined)
|
||||
logo: extensionsPolkadotJsSVG || externalEmptySVG
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export type Browser = 'chrome' | 'firefox';
|
||||
|
||||
export interface Extension {
|
||||
desc: string;
|
||||
link: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Known {
|
||||
all: Record<Browser, string>;
|
||||
desc: string;
|
||||
name: string;
|
||||
ui: { logo: string; }
|
||||
}
|
||||
Reference in New Issue
Block a user