Skip to content

Commit b1dac3a

Browse files
committed
Merge branch 'linaria'
2 parents fb2f8e3 + 82abd9d commit b1dac3a

File tree

337 files changed

+7095
-7733
lines changed

Some content is hidden

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

337 files changed

+7095
-7733
lines changed

next.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const withLinaria = require('next-with-linaria');
12
const withBundleAnalyzer = require('@next/bundle-analyzer')({
23
enabled: process.env.ANALYZE === 'true',
34
});
@@ -23,10 +24,7 @@ const nextConfig = {
2324
experimental: {
2425
optimizePackageImports: ['@phosphor-icons/react', '@httptoolkit/accounts'],
2526
},
26-
compiler: {
27-
styledComponents: true,
28-
},
29-
// Configure `pageExtensions` to include MDX files
27+
// Configure `pageExtensions` to include MDX files
3028
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
3129
trailingSlash: true,
3230
webpack(config) {
@@ -45,4 +43,4 @@ const nextConfig = {
4543
},
4644
};
4745

48-
module.exports = withBundleAnalyzer(nextConfig);
46+
module.exports = withBundleAnalyzer(withLinaria(nextConfig));

package-lock.json

Lines changed: 256 additions & 186 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@
2828
"@docsearch/react": "^3.6.0",
2929
"@httptoolkit/accounts": "^3.0.1",
3030
"@httptoolkit/util": "^0.1.5",
31+
"@linaria/core": "^7.0.0",
32+
"@linaria/react": "^7.0.1",
3133
"@phosphor-icons/react": "^2.1.4",
3234
"@radix-ui/react-accordion": "^1.1.2",
3335
"@radix-ui/react-dropdown-menu": "^2.0.6",
3436
"@radix-ui/react-tooltip": "^1.0.7",
37+
"@wyw-in-js/babel-preset": "^1.0.6",
38+
"@wyw-in-js/transform": "^1.0.6",
3539
"core-js": "^3.47.0",
3640
"date-fns": "^1.29.0",
3741
"fs-extra": "^6.0.0",
@@ -45,6 +49,7 @@
4549
"next-mdx-remote": "^4.4.1",
4650
"next-sitemap": "^4.2.3",
4751
"next-themes": "^0.2.1",
52+
"next-with-linaria": "^1.3.0",
4853
"posthog-js": "^1.188.1",
4954
"prismjs": "^1.27.0",
5055
"react": "^18.2.0",
@@ -56,8 +61,6 @@
5661
"react-use": "^17.5.0",
5762
"react-use-clipboard": "^1.0.9",
5863
"server-only": "^0.0.1",
59-
"styled-components": "^6.1.8",
60-
"styled-reset": "^4.5.2",
6164
"vaul": "^0.9.0"
6265
},
6366
"devDependencies": {

src/app/(alternatives)/charles-alternative/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export default async function CharlesAlternativePage() {
2222
video={{id: 'chrome'}}
2323
/>
2424
<IntegrationCTA
25-
$variant="cta"
25+
variant="cta"
2626
title="One-click setup integrations for every tool you use"
2727
text={["HTTP Toolkit includes one-click automated setup to provide precisely targeted interception of individual mobile apps, browsers, terminal windows, Docker containers & more."]}
2828
button={{
29-
$small: true,
30-
$variant: 'secondary',
29+
small: true,
30+
variant: 'secondary',
3131
children: 'See all integrations',
3232
href: '/all-integrations',
3333
}}

src/app/(alternatives)/chrome-devtools-alternative/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export default async function ChromeDevToolsAlternativePage() {
2121
video={{id: 'chrome'}}
2222
/>
2323
<IntegrationCTA
24-
$variant="cta"
24+
variant="cta"
2525
title="One-click setup integrations for every tool you use"
2626
text={["HTTP Toolkit includes one-click automated setup to provide precisely targeted interception of individual browser windows, mobile apps, terminal sessions, Docker containers & more."]}
2727
button={{
28-
$small: true,
29-
$variant: 'secondary',
28+
small: true,
29+
variant: 'secondary',
3030
children: 'See all integrations',
3131
href: '/all-integrations',
3232
}}

src/app/(alternatives)/fiddler-alternative/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export default async function FiddlerPage() {
2121
video={{id: 'chrome'}}
2222
/>
2323
<IntegrationCTA
24-
$variant="cta"
24+
variant="cta"
2525
title="One-click setup integrations for every tool you use"
2626
text={["HTTP Toolkit includes one-click automated setup to provide precisely targeted interception of individual mobile apps, browsers, terminal windows, Docker containers & more."]}
2727
button={{
28-
$small: true,
29-
$variant: 'secondary',
28+
small: true,
29+
variant: 'secondary',
3030
children: 'See all integrations',
3131
href: '/all-integrations',
3232
}}

src/app/(integrations)/android/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ export default function AndroidIntegrationPage() {
2929
subtitle="what is http toolkit?"
3030
cards={[
3131
{
32-
$variant: 'default',
32+
variant: 'default',
3333
title: 'Get started instantly',
3434
text: 'No messing around with certificate files and wifi settings.\n\nClick the button, accept permissions, start capturing traffic, toggle off & on again in one tap.\n\nGet straight to the data with zero hassle.',
3535
icon: RocketLaunch,
3636
},
3737
{
38-
$variant: 'default',
38+
variant: 'default',
3939
title: "Flexible setup for every environment",
4040
text: 'Setup automatically using ADB or by scanning a QR code.\n\nIntercept the entire device, or target just a single app.\n\nSupports Android versions from Android Lollipop (v5 / API level 21+) through to the latest releases.',
4141
icon: Wrench,
4242
},
4343
{
44-
$variant: 'default',
44+
variant: 'default',
4545
title: 'Capture & inspect encrypted HTTPS',
4646
text: 'Immediately view HTTPS on any device for apps that trust user-installed certificates, like Chrome, or your own app with a tiny manifest change.\n\nOn emulators & rooted devices, easily intercept HTTPS from any app, with automatic injection of a system certificate authority and automatic certificate unpinning powered by built-in Frida integration.',
4747
icon: SealCheck,
4848
},
4949
{
50-
$variant: 'default',
50+
variant: 'default',
5151
title: 'See all your Android HTTP',
5252
text: 'Powered by Android\'s VPN APIs and built-in Frida support, HTTP Toolkit intercepts everything, even HTTP traffic from apps that try to ignore your system proxy settings.',
5353
icon: MagnifyingGlass,
5454
},
5555
{
56-
$variant: 'highlighted',
56+
variant: 'highlighted',
5757
title: 'Want the full details?',
5858
text: 'Take a look at the in-depth guide to Android HTTP debugging.',
5959
buttonText: 'Learn more',

src/app/(pricing)/get-pro/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function PricingPage() {
2424
withDownload={false}
2525
>
2626
<Suspense>
27-
<PricingPlans downloadButton={<DownloadButton />} $hideFree />
27+
<PricingPlans downloadButton={<DownloadButton />} hideFree />
2828
</Suspense>
2929
</CTA>
3030
</>

src/app/(pricing)/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export default function PricingLayout({ children }: { children: React.ReactNode
2525
title="Frequently Asked Questions"
2626
text=""
2727
cta={{
28-
$small: true,
29-
$variant: 'secondary',
28+
small: true,
29+
variant: 'secondary',
3030
children: 'See more FAQs',
3131
icon: CaretRight,
3232
as: 'link',

src/app/(pricing)/pricing/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { PricingComparisonProps } from '@/components/sections/pricing/comparison/comparison.types';
2-
import type { TextWithAccordionProps } from '@/components/sections/text-with-accordion/text-with-accordion.types';
1+
import type { PricingComparisonProps } from '@/components/sections/pricing/comparison';
2+
import type { TextWithAccordionProps } from '@/components/sections/text-with-accordion';
33

44
export const comparisonPlans: PricingComparisonProps['plans'] = [
55
{

0 commit comments

Comments
 (0)