@microcosmmoney/portal-react 1.5.1 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dashboard/dashboard-overview.js +5 -1
- package/dist/components/dashboard/ecosystem-stats.d.ts +1 -0
- package/dist/components/dashboard/ecosystem-stats.js +17 -0
- package/dist/components/dashboard/mcc-token-stats.d.ts +1 -0
- package/dist/components/dashboard/mcc-token-stats.js +17 -0
- package/dist/components/dashboard/mcd-stats.d.ts +1 -0
- package/dist/components/dashboard/mcd-stats.js +17 -0
- package/dist/components/dashboard/my-mining.d.ts +5 -0
- package/dist/components/dashboard/my-mining.js +30 -0
- package/dist/components/dashboard/quick-actions.js +1 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +9 -1
- package/dist/menu-config.js +0 -7
- package/package.json +35 -35
|
@@ -11,6 +11,10 @@ const assets_summary_1 = require("./assets-summary");
|
|
|
11
11
|
const price_chart_1 = require("./price-chart");
|
|
12
12
|
const minting_stats_1 = require("./minting-stats");
|
|
13
13
|
const mining_weight_1 = require("./mining-weight");
|
|
14
|
+
const my_mining_1 = require("./my-mining");
|
|
15
|
+
const ecosystem_stats_1 = require("./ecosystem-stats");
|
|
16
|
+
const mcc_token_stats_1 = require("./mcc-token-stats");
|
|
17
|
+
const mcd_stats_1 = require("./mcd-stats");
|
|
14
18
|
const lock_periods_1 = require("./lock-periods");
|
|
15
19
|
class SafeRender extends react_1.Component {
|
|
16
20
|
constructor() {
|
|
@@ -21,5 +25,5 @@ class SafeRender extends react_1.Component {
|
|
|
21
25
|
render() { return this.state.hasError ? null : this.props.children; }
|
|
22
26
|
}
|
|
23
27
|
function MicrocosmDashboardOverview({ basePath = '', onNavigate, showHeader = true, headerText = 'SHARED NETWORK · SHARED FUTURE', }) {
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "max-w-7xl mx-auto font-mono p-6 space-y-6", children: [showHeader && ((0, jsx_runtime_1.jsx)("div", { className: "text-center", children: (0, jsx_runtime_1.jsx)("h1", { className: "text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold tracking-tight text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-cyan-200", children: headerText }) })), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(market_overview_bar_1.MicrocosmMarketBar, {}) }), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(quick_actions_1.MicrocosmQuickActions, { basePath: basePath, onNavigate: onNavigate }) }), (0, jsx_runtime_1.jsxs)("div", { className: "grid lg:grid-cols-2 gap-6", children: [(0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "max-w-7xl mx-auto font-mono p-6 space-y-6", children: [showHeader && ((0, jsx_runtime_1.jsx)("div", { className: "text-center", children: (0, jsx_runtime_1.jsx)("h1", { className: "text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold tracking-tight text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-cyan-200", children: headerText }) })), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(market_overview_bar_1.MicrocosmMarketBar, {}) }), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(quick_actions_1.MicrocosmQuickActions, { basePath: basePath, onNavigate: onNavigate }) }), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(assets_summary_1.MicrocosmAssetsSummary, { basePath: basePath, onNavigate: onNavigate }) }), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(price_chart_1.MicrocosmPriceChart, {}) }), (0, jsx_runtime_1.jsxs)("div", { className: "grid lg:grid-cols-2 gap-6", children: [(0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(my_mining_1.MicrocosmMyMining, { detailsPath: `${basePath}/mcc/mining`, onNavigate: onNavigate }) }), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(mining_weight_1.MicrocosmMiningWeight, {}) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "grid lg:grid-cols-2 gap-6", children: [(0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(minting_stats_1.MicrocosmMintingStats, {}) }), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(ecosystem_stats_1.MicrocosmEcosystemStats, {}) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "grid lg:grid-cols-2 gap-6", children: [(0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(mcc_token_stats_1.MicrocosmMCCTokenStats, {}) }), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(mcd_stats_1.MicrocosmMCDStats, {}) })] }), (0, jsx_runtime_1.jsx)(SafeRender, { children: (0, jsx_runtime_1.jsx)(lock_periods_1.MicrocosmLockPeriods, {}) })] }));
|
|
25
29
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MicrocosmEcosystemStats(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// AI-generated · AI-managed · AI-maintained
|
|
3
|
+
'use client';
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.MicrocosmEcosystemStats = MicrocosmEcosystemStats;
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const auth_react_1 = require("@microcosmmoney/auth-react");
|
|
8
|
+
function MicrocosmEcosystemStats() {
|
|
9
|
+
const { data, loading } = (0, auth_react_1.usePlatformStats)();
|
|
10
|
+
const stats = [
|
|
11
|
+
{ label: 'total_users', value: data?.total_users },
|
|
12
|
+
{ label: '24h_active', value: data?.active_users_24h },
|
|
13
|
+
{ label: 'miners', value: data?.miners_count },
|
|
14
|
+
{ label: 'territories', value: data?.total_territories },
|
|
15
|
+
];
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "bg-neutral-900 border border-neutral-700 rounded-lg h-full hover:border-cyan-400/50 transition-colors", children: (0, jsx_runtime_1.jsxs)("div", { className: "p-6", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-400 text-xs font-mono tracking-wider mb-4 block", children: "ECOSYSTEM" }), loading ? ((0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center py-8", children: (0, jsx_runtime_1.jsx)("span", { className: "inline-block w-5 h-5 border-2 border-cyan-400 border-t-transparent rounded-full animate-spin" }) })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-2 gap-3", children: stats.map((s) => ((0, jsx_runtime_1.jsxs)("div", { className: "bg-neutral-800 rounded p-3", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-[10px] text-neutral-400 font-mono tracking-wider", children: s.label }), (0, jsx_runtime_1.jsx)("div", { className: "text-xl font-bold font-mono text-white", children: s.value != null ? s.value.toLocaleString() : '--' })] }, s.label))) }))] }) }));
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MicrocosmMCCTokenStats(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// AI-generated · AI-managed · AI-maintained
|
|
3
|
+
'use client';
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.MicrocosmMCCTokenStats = MicrocosmMCCTokenStats;
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const auth_react_1 = require("@microcosmmoney/auth-react");
|
|
8
|
+
function MicrocosmMCCTokenStats() {
|
|
9
|
+
const { data, loading } = (0, auth_react_1.useMCCStats)();
|
|
10
|
+
const stats = [
|
|
11
|
+
{ label: 'holders', value: data?.holder_count, format: (v) => v.toLocaleString() },
|
|
12
|
+
{ label: 'circulating', value: data?.circulating_supply, format: (v) => `${(v / 1e6).toFixed(2)}M` },
|
|
13
|
+
{ label: 'total_mined', value: data?.total_mined, format: (v) => `${(v / 1e6).toFixed(2)}M` },
|
|
14
|
+
{ label: 'market_cap', value: data?.market_cap, format: (v) => `$${v.toLocaleString()}` },
|
|
15
|
+
];
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "bg-neutral-900 border border-neutral-700 rounded-lg h-full hover:border-cyan-400/50 transition-colors", children: (0, jsx_runtime_1.jsxs)("div", { className: "p-6", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-400 text-xs font-mono tracking-wider mb-4 block", children: "MCC_STATS" }), loading ? ((0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center py-8", children: (0, jsx_runtime_1.jsx)("span", { className: "inline-block w-5 h-5 border-2 border-cyan-400 border-t-transparent rounded-full animate-spin" }) })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-2 gap-3", children: stats.map((s) => ((0, jsx_runtime_1.jsxs)("div", { className: "bg-neutral-800 rounded p-3", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-[10px] text-neutral-400 font-mono tracking-wider", children: s.label }), (0, jsx_runtime_1.jsx)("div", { className: "text-lg font-bold font-mono text-white", children: s.value != null ? s.format(s.value) : '--' })] }, s.label))) }))] }) }));
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MicrocosmMCDStats(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// AI-generated · AI-managed · AI-maintained
|
|
3
|
+
'use client';
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.MicrocosmMCDStats = MicrocosmMCDStats;
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const auth_react_1 = require("@microcosmmoney/auth-react");
|
|
8
|
+
function MicrocosmMCDStats() {
|
|
9
|
+
const { data, loading } = (0, auth_react_1.useMCDStats)();
|
|
10
|
+
const stats = [
|
|
11
|
+
{ label: 'holders', value: data?.holders_count, format: (v) => v.toLocaleString() },
|
|
12
|
+
{ label: 'active_vaults', value: data?.active_vaults, format: (v) => v.toLocaleString() },
|
|
13
|
+
{ label: 'daily_distribution', value: data?.daily_distribution, format: (v) => v > 0 ? v.toLocaleString('en-US', { maximumFractionDigits: 2 }) : '0' },
|
|
14
|
+
{ label: 'total_vault_balance', value: data?.total_vault_balance, format: (v) => v > 0 ? `${(v / 1e6).toFixed(2)}M` : '0' },
|
|
15
|
+
];
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "bg-neutral-900 border border-neutral-700 rounded-lg h-full hover:border-cyan-400/50 transition-colors", children: (0, jsx_runtime_1.jsxs)("div", { className: "p-6", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-400 text-xs font-mono tracking-wider mb-4 block", children: "MCD_STATS" }), loading ? ((0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center py-8", children: (0, jsx_runtime_1.jsx)("span", { className: "inline-block w-5 h-5 border-2 border-cyan-400 border-t-transparent rounded-full animate-spin" }) })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-2 gap-3", children: stats.map((s) => ((0, jsx_runtime_1.jsxs)("div", { className: "bg-neutral-800 rounded p-3", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-[10px] text-neutral-400 font-mono tracking-wider", children: s.label }), (0, jsx_runtime_1.jsx)("div", { className: "text-lg font-bold font-mono text-white", children: s.value != null ? s.format(s.value) : '--' })] }, s.label))) }))] }) }));
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// AI-generated · AI-managed · AI-maintained
|
|
3
|
+
'use client';
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.MicrocosmMyMining = MicrocosmMyMining;
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const auth_react_1 = require("@microcosmmoney/auth-react");
|
|
8
|
+
function MicrocosmMyMining({ detailsPath, onNavigate }) {
|
|
9
|
+
const { data, loading } = (0, auth_react_1.useMiningStats)();
|
|
10
|
+
const fmt = (v) => v.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
11
|
+
const formatDateTime = (iso) => {
|
|
12
|
+
if (!iso)
|
|
13
|
+
return '-';
|
|
14
|
+
const d = new Date(iso);
|
|
15
|
+
return d.toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' });
|
|
16
|
+
};
|
|
17
|
+
const items = data ? [
|
|
18
|
+
{ label: 'total_mined', value: fmt(data.total_mined ?? 0) },
|
|
19
|
+
{ label: 'total_paid', value: fmt(data.total_paid ?? 0) },
|
|
20
|
+
{ label: 'mining_count', value: `${data.mining_count ?? 0}` },
|
|
21
|
+
{ label: 'last_30d', value: fmt(data.last_30d_mined ?? 0) },
|
|
22
|
+
{ label: 'active_days', value: `${data.active_days_30d ?? 0}` },
|
|
23
|
+
{ label: 'last_mined', value: formatDateTime(data.last_mined_at) },
|
|
24
|
+
] : [];
|
|
25
|
+
const handleDetailsClick = () => {
|
|
26
|
+
if (onNavigate && detailsPath)
|
|
27
|
+
onNavigate(detailsPath);
|
|
28
|
+
};
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "bg-neutral-900 border border-neutral-700 rounded-lg h-full hover:border-cyan-400/50 transition-colors", children: (0, jsx_runtime_1.jsxs)("div", { className: "p-6", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between mb-4", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-400 text-xs font-mono tracking-wider", children: "MY_MINING" }), detailsPath && ((0, jsx_runtime_1.jsx)("button", { onClick: handleDetailsClick, className: "text-xs text-neutral-500 hover:text-cyan-400 font-mono", children: "details >" }))] }), loading ? ((0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center py-8", children: (0, jsx_runtime_1.jsx)("span", { className: "inline-block w-5 h-5 border-2 border-cyan-400 border-t-transparent rounded-full animate-spin" }) })) : !data || (data.mining_count ?? 0) === 0 ? ((0, jsx_runtime_1.jsx)("div", { className: "text-center py-8 text-neutral-500 font-mono text-sm", children: "no mining records" })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-2 gap-3", children: items.map((s) => ((0, jsx_runtime_1.jsxs)("div", { className: "bg-neutral-800 rounded p-3", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-[10px] text-neutral-400 font-mono tracking-wider", children: s.label }), (0, jsx_runtime_1.jsx)("div", { className: "text-xl font-bold font-mono text-white", children: s.value })] }, s.label))) }))] }) }));
|
|
30
|
+
}
|
|
@@ -6,8 +6,7 @@ exports.MicrocosmQuickActions = MicrocosmQuickActions;
|
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const actions = [
|
|
8
8
|
{ label: 'Mining', path: '/mcc/mining', color: 'text-cyan-300 border-cyan-400/30 hover:bg-cyan-950/30' },
|
|
9
|
-
{ label: '
|
|
10
|
-
{ label: 'Jupiter Trade', href: 'https://jup.ag/swap/USDT-MCCpDtigJLYnfGe1fW5xrSA8AXo6AeAj8ECE7wVqP5e', color: 'text-cyan-300 border-cyan-400/30 hover:bg-cyan-950/30', external: true },
|
|
9
|
+
{ label: 'Jupiter Trade', href: 'https://jup.ag/swap/USDT-MCCn6eqiTGzaiPKECg3viPmkdkS9YmkguqKvRcTxCsb', color: 'text-cyan-300 border-cyan-400/30 hover:bg-cyan-950/30', external: true },
|
|
11
10
|
{ label: 'Market Data', path: '/market', color: 'text-white border-neutral-700 hover:bg-neutral-800' },
|
|
12
11
|
];
|
|
13
12
|
function MicrocosmQuickActions({ basePath = '', onNavigate }) {
|
package/dist/index.d.ts
CHANGED
|
@@ -33,4 +33,9 @@ export type { MicrocosmAssetsSummaryProps } from './components/dashboard/assets-
|
|
|
33
33
|
export { MicrocosmPriceChart } from './components/dashboard/price-chart';
|
|
34
34
|
export { MicrocosmMintingStats } from './components/dashboard/minting-stats';
|
|
35
35
|
export { MicrocosmMiningWeight } from './components/dashboard/mining-weight';
|
|
36
|
+
export { MicrocosmMyMining } from './components/dashboard/my-mining';
|
|
37
|
+
export type { MicrocosmMyMiningProps } from './components/dashboard/my-mining';
|
|
38
|
+
export { MicrocosmEcosystemStats } from './components/dashboard/ecosystem-stats';
|
|
39
|
+
export { MicrocosmMCCTokenStats } from './components/dashboard/mcc-token-stats';
|
|
40
|
+
export { MicrocosmMCDStats } from './components/dashboard/mcd-stats';
|
|
36
41
|
export { MicrocosmLockPeriods } from './components/dashboard/lock-periods';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MicrocosmLockPeriods = exports.MicrocosmMiningWeight = exports.MicrocosmMintingStats = exports.MicrocosmPriceChart = exports.MicrocosmAssetsSummary = exports.MicrocosmQuickActions = exports.MicrocosmMarketBar = exports.MicrocosmDashboardOverview = exports.KPIRadialChart = exports.VoteResultBar = exports.MiningProgressBar = exports.TerritoryCard = exports.TerminalTooltip = exports.TerminalInput = exports.TerminalCountdown = exports.TerminalDialog = exports.TerminalTabs = exports.TerminalTable = exports.TerminalProgress = exports.TerminalDataRow = exports.TerminalBadge = exports.TerminalEmpty = exports.TerminalError = exports.TerminalLoading = exports.TerminalPageHeader = exports.TerminalCommand = exports.StatBox = exports.TerminalCard = exports.resolveMenuPath = exports.getAllMenuItems = exports.microcosmMenuGroups = exports.dashboardMenu = exports.web3OsMenu = exports.blockchainMenu = exports.MicrocosmMenuSection = void 0;
|
|
3
|
+
exports.MicrocosmLockPeriods = exports.MicrocosmMCDStats = exports.MicrocosmMCCTokenStats = exports.MicrocosmEcosystemStats = exports.MicrocosmMyMining = exports.MicrocosmMiningWeight = exports.MicrocosmMintingStats = exports.MicrocosmPriceChart = exports.MicrocosmAssetsSummary = exports.MicrocosmQuickActions = exports.MicrocosmMarketBar = exports.MicrocosmDashboardOverview = exports.KPIRadialChart = exports.VoteResultBar = exports.MiningProgressBar = exports.TerritoryCard = exports.TerminalTooltip = exports.TerminalInput = exports.TerminalCountdown = exports.TerminalDialog = exports.TerminalTabs = exports.TerminalTable = exports.TerminalProgress = exports.TerminalDataRow = exports.TerminalBadge = exports.TerminalEmpty = exports.TerminalError = exports.TerminalLoading = exports.TerminalPageHeader = exports.TerminalCommand = exports.StatBox = exports.TerminalCard = exports.resolveMenuPath = exports.getAllMenuItems = exports.microcosmMenuGroups = exports.dashboardMenu = exports.web3OsMenu = exports.blockchainMenu = exports.MicrocosmMenuSection = void 0;
|
|
4
4
|
// AI-generated · AI-managed · AI-maintained
|
|
5
5
|
var menu_section_1 = require("./components/menu-section");
|
|
6
6
|
Object.defineProperty(exports, "MicrocosmMenuSection", { enumerable: true, get: function () { return menu_section_1.MicrocosmMenuSection; } });
|
|
@@ -56,5 +56,13 @@ var minting_stats_1 = require("./components/dashboard/minting-stats");
|
|
|
56
56
|
Object.defineProperty(exports, "MicrocosmMintingStats", { enumerable: true, get: function () { return minting_stats_1.MicrocosmMintingStats; } });
|
|
57
57
|
var mining_weight_1 = require("./components/dashboard/mining-weight");
|
|
58
58
|
Object.defineProperty(exports, "MicrocosmMiningWeight", { enumerable: true, get: function () { return mining_weight_1.MicrocosmMiningWeight; } });
|
|
59
|
+
var my_mining_1 = require("./components/dashboard/my-mining");
|
|
60
|
+
Object.defineProperty(exports, "MicrocosmMyMining", { enumerable: true, get: function () { return my_mining_1.MicrocosmMyMining; } });
|
|
61
|
+
var ecosystem_stats_1 = require("./components/dashboard/ecosystem-stats");
|
|
62
|
+
Object.defineProperty(exports, "MicrocosmEcosystemStats", { enumerable: true, get: function () { return ecosystem_stats_1.MicrocosmEcosystemStats; } });
|
|
63
|
+
var mcc_token_stats_1 = require("./components/dashboard/mcc-token-stats");
|
|
64
|
+
Object.defineProperty(exports, "MicrocosmMCCTokenStats", { enumerable: true, get: function () { return mcc_token_stats_1.MicrocosmMCCTokenStats; } });
|
|
65
|
+
var mcd_stats_1 = require("./components/dashboard/mcd-stats");
|
|
66
|
+
Object.defineProperty(exports, "MicrocosmMCDStats", { enumerable: true, get: function () { return mcd_stats_1.MicrocosmMCDStats; } });
|
|
59
67
|
var lock_periods_1 = require("./components/dashboard/lock-periods");
|
|
60
68
|
Object.defineProperty(exports, "MicrocosmLockPeriods", { enumerable: true, get: function () { return lock_periods_1.MicrocosmLockPeriods; } });
|
package/dist/menu-config.js
CHANGED
|
@@ -31,13 +31,6 @@ exports.blockchainMenu = {
|
|
|
31
31
|
icon: lucide_react_1.Pickaxe,
|
|
32
32
|
description: 'Mine MCC with stablecoin',
|
|
33
33
|
},
|
|
34
|
-
{
|
|
35
|
-
title: 'Reincarnation',
|
|
36
|
-
key: 'reincarnation',
|
|
37
|
-
path: '/mcc/reincarnation',
|
|
38
|
-
icon: lucide_react_1.ArrowDownUp,
|
|
39
|
-
description: 'Buyback MCC for stablecoin',
|
|
40
|
-
},
|
|
41
34
|
{
|
|
42
35
|
title: 'Wallet',
|
|
43
36
|
key: 'wallet',
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microcosmmoney/portal-react",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Microcosm Portal UI components for React/Next.js",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"dev": "tsc --watch"
|
|
13
|
-
},
|
|
14
|
-
"peerDependencies": {
|
|
15
|
-
"react": ">=18.0.0",
|
|
16
|
-
"react-dom": ">=18.0.0",
|
|
17
|
-
"recharts": ">=2.0.0"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@microcosmmoney/auth-core": "^
|
|
21
|
-
"@microcosmmoney/auth-react": "^
|
|
22
|
-
"lucide-react": ">=0.300.0"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@types/react": "^18.0.0",
|
|
26
|
-
"react": "^18.0.0",
|
|
27
|
-
"recharts": "^3.7.0",
|
|
28
|
-
"typescript": "^5.3.0"
|
|
29
|
-
},
|
|
30
|
-
"license": "MIT",
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "https://github.com/MicrocosmMoney/Microcosm"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microcosmmoney/portal-react",
|
|
3
|
+
"version": "2.1.1",
|
|
4
|
+
"description": "Microcosm Portal UI components for React/Next.js",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"dev": "tsc --watch"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"react": ">=18.0.0",
|
|
16
|
+
"react-dom": ">=18.0.0",
|
|
17
|
+
"recharts": ">=2.0.0"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@microcosmmoney/auth-core": "^2.2.1",
|
|
21
|
+
"@microcosmmoney/auth-react": "^2.2.2",
|
|
22
|
+
"lucide-react": ">=0.300.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/react": "^18.0.0",
|
|
26
|
+
"react": "^18.0.0",
|
|
27
|
+
"recharts": "^3.7.0",
|
|
28
|
+
"typescript": "^5.3.0"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/MicrocosmMoney/Microcosm"
|
|
34
|
+
}
|
|
35
|
+
}
|