Skip to content

Commit 59446fb

Browse files
committed
lazer -> pro
1 parent 9bf2317 commit 59446fb

File tree

141 files changed

+591
-301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+591
-301
lines changed

components/LazerPriceIdTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const LoadedLazerPriceIdTable = ({
8484
<div>
8585
<input
8686
type="text"
87-
placeholder="Search by symbol, name, description, or pyth lazer id..."
87+
placeholder="Search by symbol, name, description, or pyth pro id..."
8888
value={search}
8989
onChange={updateSearch}
9090
className="w-full p-2 mb-4 border border-gray-300 rounded-md"
@@ -96,7 +96,7 @@ const LoadedLazerPriceIdTable = ({
9696
<th>Description</th>
9797
<th>Name</th>
9898
<th>Symbol</th>
99-
<th>Pyth Lazer Id</th>
99+
<th>Pyth Pro Id</th>
100100
<th>Exponent</th>
101101
</tr>
102102
</thead>

components/ProductCard.tsx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ interface ProductCardProps {
1414
ctaText: string;
1515
href: string;
1616
className?: string;
17+
quickActions?: Array<{
18+
title: string;
19+
href: string;
20+
icon: React.ReactNode;
21+
}>;
1722
}
1823

1924
export function ProductCard({
@@ -26,6 +31,7 @@ export function ProductCard({
2631
ctaText,
2732
href,
2833
className = "",
34+
quickActions = [],
2935
}: ProductCardProps) {
3036
return (
3137
<div
@@ -65,6 +71,39 @@ export function ProductCard({
6571
))}
6672
</div>
6773

74+
{/* Quick Actions */}
75+
{quickActions.length > 0 && (
76+
<div className="grid grid-cols-1 gap-2 mb-6">
77+
{quickActions.map((action, index) => (
78+
<Link
79+
key={index}
80+
href={action.href}
81+
className="flex items-center gap-3 p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border border-gray-200 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-600 transition-colors text-sm"
82+
>
83+
<div className="text-blue-600 dark:text-blue-400 text-sm flex-shrink-0">
84+
{action.icon}
85+
</div>
86+
<span className="text-gray-700 dark:text-gray-300 font-medium">
87+
{action.title}
88+
</span>
89+
<svg
90+
className="w-3 h-3 ml-auto text-gray-400"
91+
fill="none"
92+
stroke="currentColor"
93+
viewBox="0 0 24 24"
94+
>
95+
<path
96+
strokeLinecap="round"
97+
strokeLinejoin="round"
98+
strokeWidth={2}
99+
d="M9 5l7 7-7 7"
100+
/>
101+
</svg>
102+
</Link>
103+
))}
104+
</div>
105+
)}
106+
68107
{/* Call to action button - pushed to bottom */}
69108
<div className="mt-auto">
70109
<Link

components/icons/ProductIcons.tsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import {
99
Clock,
1010
ArrowsOutCardinal,
1111
DiceSixIcon,
12+
ListBullets,
13+
Key,
14+
Play,
15+
BookOpen,
16+
MoneyWavy,
1217
} from "@phosphor-icons/react";
1318

1419
export function BarChartIcon() {
@@ -46,3 +51,23 @@ export function MultiChainIcon() {
4651
export function DiceIcon() {
4752
return <DiceSixIcon className="w-5 h-5" weight="regular" />;
4853
}
54+
55+
export function ListIcon() {
56+
return <ListBullets className="w-5 h-5" weight="regular" />;
57+
}
58+
59+
export function KeyIcon() {
60+
return <Key className="w-5 h-5" weight="regular" />;
61+
}
62+
63+
export function PlayIcon() {
64+
return <Play className="w-5 h-5" weight="regular" />;
65+
}
66+
67+
export function BookIcon() {
68+
return <BookOpen className="w-5 h-5" weight="regular" />;
69+
}
70+
71+
export function MoneyWavyIcon() {
72+
return <MoneyWavy className="w-5 h-5" weight="regular" />;
73+
}

next.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,20 @@ const permanentRedirectArray = [
121121
],
122122
["/benchmarks/api-instances", "/price-feeds/api-reference/"],
123123
["/benchmarks/rate-limits", "/price-feeds/rate-limits/"],
124+
125+
// Lazer (top-level) to Pyth Pro Redirects - MUST come before general price-feeds redirects
126+
["/lazer", "/price-feeds/pro"],
127+
["/lazer/:path*", "/price-feeds/pro/:path*"],
128+
129+
// Explicitly map legacy lazer paths under /price-feeds to Pro - MUST come before general price-feeds redirects
130+
["/price-feeds/lazer", "/price-feeds/pro"],
131+
["/price-feeds/lazer/:path*", "/price-feeds/pro/:path*"],
132+
133+
["/price-feeds/:path((?!core|pro).*?)", "/price-feeds/core/:path*"],
134+
135+
// // Price Feeds to Core Redirects - general catch-all (comes last)
136+
// ["/price-feeds", "/price-feeds/core"],
137+
// ["/price-feeds/:path*", "/price-feeds/core/:path*"],
124138
];
125139

126140
/** @type {import('next').NextConfig} */

pages/_meta.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
"type": "page"
1010
},
1111

12-
"lazer": {
13-
"title": "Lazer",
14-
"type": "page"
15-
},
16-
1712
"express-relay": {
1813
"title": "Express Relay",
1914
"type": "page"

pages/home/_meta.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
"href": "/price-feeds"
1212
},
1313

14-
"Lazer": {
15-
"title": "Lazer →",
16-
"href": "/lazer"
17-
},
18-
1914
"Express Relay": {
2015
"title": "Express Relay →",
2116
"href": "/express-relay"

pages/home/index.mdx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,6 @@ Pyth Network is the leading oracle protocol that connects the owners of market d
3333

3434
{" "}
3535

36-
<ProductCard
37-
badge="Lazer"
38-
icon={<LightningIcon />}
39-
title="Lazer"
40-
description="High-performance, low-latency price feeds for institutional applications."
41-
features={[
42-
{ icon: <LightningIcon />, text: "Ultra-low latency" },
43-
{ icon: <ShieldIcon />, text: "Institutional grade" },
44-
{ icon: <BarChartIcon />, text: "High-frequency data" },
45-
]}
46-
ctaText="Learn About Lazer"
47-
href="../lazer"
48-
/>
49-
50-
{" "}
51-
5236
<ProductCard
5337
badge="MEV Protection"
5438
icon={<GlobeIcon />}
@@ -83,7 +67,6 @@ Pyth Network is the leading oracle protocol that connects the owners of market d
8367
Get started with Pyth Network by exploring our comprehensive documentation:
8468

8569
- **[Price Feeds Getting Started](../price-feeds/getting-started)** - Integrate real-time price data
86-
- **[Lazer Documentation](../lazer)** - High-performance price feeds
8770
- **[Express Relay Integration](../express-relay)** - Better orderflow mechanism to eliminate MEV
8871
- **[Entropy Implementation](../entropy)** - Secure randomness generation
8972

pages/lazer/how-lazer-works.mdx

Lines changed: 0 additions & 5 deletions
This file was deleted.

pages/lazer/index.mdx

Lines changed: 0 additions & 20 deletions
This file was deleted.

pages/lazer/integrate-as-consumer.mdx

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)