mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
[skip ci] change default value for NEXT_PUBLIC_FEATURED_NETWORKS_MODE
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ const UI = Object.freeze({
|
||||
featuredNetworks: {
|
||||
items: getExternalAssetFilePath('NEXT_PUBLIC_FEATURED_NETWORKS'),
|
||||
allLink: getEnvValue('NEXT_PUBLIC_FEATURED_NETWORKS_ALL_LINK'),
|
||||
mode: (getEnvValue('NEXT_PUBLIC_FEATURED_NETWORKS_MODE') || 'tabs') as 'tabs' | 'list',
|
||||
mode: (getEnvValue('NEXT_PUBLIC_FEATURED_NETWORKS_MODE') || 'list') as 'tabs' | 'list',
|
||||
},
|
||||
footer: {
|
||||
links: getExternalAssetFilePath('NEXT_PUBLIC_FOOTER_LINKS'),
|
||||
|
||||
+1
-1
@@ -174,7 +174,7 @@ _Note_ Here, all values are arrays of up to two strings. The first string repres
|
||||
| --- | --- | --- | --- | --- | --- | --- |
|
||||
| NEXT_PUBLIC_FEATURED_NETWORKS | `string` | URL of configuration file (`.json` format only) or file content string representation. It contains list of featured networks that will be shown in the network menu. See [below](#featured-network-configuration-properties) list of available properties for particular network | - | - | `https://example.com/featured_networks_config.json` \| `[{'title':'Astar(EVM)','url':'https://astar.blockscout.com/','group':'Mainnets','icon':'https://example.com/astar.svg'}]` | v1.0.x+ |
|
||||
| NEXT_PUBLIC_FEATURED_NETWORKS_ALL_LINK | `string` | Link to the all chains resource. Will be displayed at the bottom of featured networks list. | Works only if NEXT_PUBLIC_FEATURED_NETWORKS is set | - | `https://example.com` | v2.3.0+ |
|
||||
| NEXT_PUBLIC_FEATURED_NETWORKS_MODE | `tabs \| list` | Indicates how the networks are presented: in one list or in separate tabs. | Works only if NEXT_PUBLIC_FEATURED_NETWORKS is set | `tabs` | `list` | upcoming |
|
||||
| NEXT_PUBLIC_FEATURED_NETWORKS_MODE | `tabs \| list` | Indicates how the networks are presented: in one list or in separate tabs. | Works only if NEXT_PUBLIC_FEATURED_NETWORKS is set | `list` | `tabs` | upcoming |
|
||||
|
||||
#### Featured network configuration properties
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ test('tabs +@dark-mode', async({ render, mockEnvs, mockConfigResponse, mockAsset
|
||||
await mockEnvs([
|
||||
[ 'NEXT_PUBLIC_FEATURED_NETWORKS', FEATURED_NETWORKS_URL ],
|
||||
[ 'NEXT_PUBLIC_FEATURED_NETWORKS_ALL_LINK', 'https://example.com' ],
|
||||
[ 'NEXT_PUBLIC_FEATURED_NETWORKS_MODE', 'tabs' ],
|
||||
]);
|
||||
await mockConfigResponse('NEXT_PUBLIC_FEATURED_NETWORKS', FEATURED_NETWORKS_URL, FEATURED_NETWORKS);
|
||||
await mockAssetResponse('https://localhost:3000/my-logo.png', './playwright/mocks/image_s.jpg');
|
||||
@@ -29,7 +30,6 @@ test('list +@dark-mode', async({ render, mockEnvs, mockConfigResponse, mockAsset
|
||||
await mockEnvs([
|
||||
[ 'NEXT_PUBLIC_FEATURED_NETWORKS', FEATURED_NETWORKS_URL ],
|
||||
[ 'NEXT_PUBLIC_FEATURED_NETWORKS_ALL_LINK', 'https://example.com' ],
|
||||
[ 'NEXT_PUBLIC_FEATURED_NETWORKS_MODE', 'list' ],
|
||||
]);
|
||||
await mockConfigResponse('NEXT_PUBLIC_FEATURED_NETWORKS', FEATURED_NETWORKS_URL, FEATURED_NETWORKS);
|
||||
await mockAssetResponse('https://localhost:3000/my-logo.png', './playwright/mocks/image_s.jpg');
|
||||
|
||||
Reference in New Issue
Block a user