mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 05:37:56 +00:00
feat: nav 4x2 button grid + hero stats from correct chains
- Replace nav menu with 4x2 mobile-app-style button grid (responsive) - Fetch staking stats from Asset Hub instead of Relay Chain - Governance stats (proposals, voters) remain on Relay Chain - Trust score: show login prompt for guests, real score for users - Full-width root container, centered hero, node globals shim fix
This commit is contained in:
+24
-3
@@ -32,12 +32,33 @@ export default defineConfig(() => ({
|
||||
react(),
|
||||
nodePolyfills({
|
||||
globals: {
|
||||
Buffer: true,
|
||||
global: true,
|
||||
process: true,
|
||||
Buffer: false,
|
||||
global: false,
|
||||
process: false,
|
||||
},
|
||||
protocolImports: true,
|
||||
}),
|
||||
{
|
||||
name: 'node-globals-shim',
|
||||
transformIndexHtml() {
|
||||
return [
|
||||
{
|
||||
tag: 'script',
|
||||
children: `
|
||||
window.global = window.global || window;
|
||||
window.process = window.process || { env: {}, browser: true, version: "" };
|
||||
`,
|
||||
injectTo: 'head-prepend',
|
||||
},
|
||||
{
|
||||
tag: 'script',
|
||||
attrs: { type: 'module' },
|
||||
children: `import { Buffer } from 'buffer'; window.Buffer = window.Buffer || Buffer;`,
|
||||
injectTo: 'head-prepend',
|
||||
},
|
||||
];
|
||||
},
|
||||
},
|
||||
].filter(Boolean),
|
||||
resolve: {
|
||||
mainFields: ['module', 'main', 'exports'],
|
||||
|
||||
Reference in New Issue
Block a user