Skip to content

Commit 4ea8ae8

Browse files
raspaceeyube01Ashmit72BeEnAyA
authored
Merge dev into main (#17)
* fix: github star count, footer font and animation block * fix: reuse component homepage card in mobile screen * fix: reuse component animation * fix: reuse animation timing and ref * fix: type errors in vite and broken links * chore(cli): updated the css file template * fix(cli): website url changed from localhost to radianos * chore(cli): new version v0.1.2 published * perf(website): get-package-info cache set to no-store and removed revalidate * chore: check to see if github stars is being shown * chore: github button implementation updated * chore: implemented the counting animation in github stars button * chore: check to see if github stars is being shown * chore: check to see if github stars is being shown * feat(website): get-early-updates dialog implemented on landing page * style(website): get-early-updates dialog styling changed * chore(website): get-product-updates parameter to open dialog * feat(blog): email-subscribe functionality added to the form * docs: inverted-section and replaced with & * fix: hover and link on animation list component removed * style: copy terminal command toast styles updated * style: website.css heading's letter tracking set to -1% * fix: figma docs update * fix: community card pattern and color update * fix: figma cover image width and cta card pattern width * fix: blur image in dark-mode-playground * fix: usesage of lunk button in alert * style: accordion trigger and chevron gap set for FAQs * fix: figma width * chore: video added * fix: video aspect ratio applied and youtube video link added * fix: youtube embeded link * fix: youtube embed * fix: video embed youtube * fix: video width and beam animation * fix: table hover bg-fill1 and beam alignment * chore: .env.example updated with clarity * fix: add missing border colors in docs and change tab active text color * fix: minor z index issues * chore: fix typography headings * refactor: dark and light image added in reuseable ui blocks component * fix: reuseable float animation removed and image update * fix: homepage home-interactive section height update for small screen * chore(og): og static and dynamic images updated to new * chore(og): static og image updated to new dimension * style: email template background set * fix: base component section image size and badge size * fix: gradient in base component * fix: fix font issue in docs * fix: blocks search icon and add extra block links * fix: svg height * fix: readme file image link updated for website * chore: ibm-plex-sans font import url fixed and global css template for cli updated * chore(cli): released v0.1.3 radianui * style: change search command badge variant * chore: figma-card.tsx and upload.tsx updated * fix: removed gradient in bottom of cta section * fix: correct signup form label id * feat(website): add virtualized list example for combobox * refactor: carousel image refactor * fix: safari browser video * fix: video format changed for safari * fix: video tag updated for safari compatibility * test: debug video issue for safari * test: safari test with simple video implementation * test: safari autoplay * test: safari video loading * test: fallback poster and webm video format added * fix: adding cache for version * fix: build error * feat(sidebar): add initial sidebar implementation * feat: add temporary sidebar route * chore: minor changes/fix - open blocks link in new tab - remove arrow in sidebar tooltip * style(sidebar): add collapsed icon styles for sidebar examples * style(sidebar): nested collapsible sidebar poc * fix: playground section bg color inverted * style(sidebar): remove nested collapsible hover logic * fix: playground color * chore: color input added * test: llms.txt file added * chore: llms text file of components and it's examples * fix: color updated * chore: llms.txt file updated * fix: url in llms.txt * fix: unused color removed, llms.txt update and playground border updated to soft * fix: border color update * docs: add sidebar docs page * refactor: replace custom CodeSnippet component with standard MDX code blocks - Remove all <CodeSnippet> component usages in MDX files - Use default MDX code fence (```) syntax for code formatting - This enables Contentlayer to handle code highlighting consistently and reduces custom component overhead The change simplifies the codebase by relying on MDX's native code block support, making future maintenance easier and improving compatibility with standard Markdown tooling. * perf: replace CodeSnippet with ComponentSource in ComponentPreview ComponentSource caches highlighted code output, avoiding redundant syntax highlighting on every render. CodeSnippet recomputes this on each call, making it slower for frequently rendered previews. * chore: formatting issue --------- Co-authored-by: yube01 <yubraja008@gmail.com> Co-authored-by: Ashmit72 <ashmitbastola@gmail.com> Co-authored-by: Be-En-AyA <bt.binaya@gmail.com> Co-authored-by: Ashmit Bastola <114178696+Ashmit72@users.noreply.github.com> Co-authored-by: Binaya Thapa <106618310+BeEnAyA@users.noreply.github.com>
1 parent bf83ef3 commit 4ea8ae8

551 files changed

Lines changed: 23810 additions & 6490 deletions

File tree

Some content is hidden

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

.prettierrc

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
2-
"$schema": "https://json.schemastore.org/prettierrc",
3-
"printWidth": 180,
4-
"tabWidth": 2,
5-
"useTabs": true,
6-
"semi": false,
7-
"singleQuote": false,
8-
"bracketSameLine": true,
9-
"trailingComma": "es5",
10-
"plugins": [
11-
"@trivago/prettier-plugin-sort-imports",
12-
"prettier-plugin-tailwindcss"
13-
],
14-
"importOrder": [
15-
"^react$",
16-
"^react/(.*)$",
17-
"<THIRD_PARTY_MODULES>",
18-
"^@/(.*)$",
19-
"^[./]"
20-
],
21-
"importOrderSeparation": false,
22-
"importOrderSortSpecifiers": true
23-
}
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"tabWidth": 2,
4+
"useTabs": true,
5+
"semi": false,
6+
"singleQuote": false,
7+
"bracketSameLine": true,
8+
"trailingComma": "es5",
9+
"plugins": [
10+
"@trivago/prettier-plugin-sort-imports",
11+
"prettier-plugin-tailwindcss"
12+
],
13+
"importOrder": [
14+
"^react$",
15+
"^react/(.*)$",
16+
"<THIRD_PARTY_MODULES>",
17+
"^@/(.*)$",
18+
"^[./]"
19+
],
20+
"importOrderSeparation": false,
21+
"importOrderSortSpecifiers": true,
22+
"printWidth": 80,
23+
"endOfLine": "lf"
24+
}

apps/website/contentlayer.config.ts

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
import { defineDocumentType, defineNestedType, makeSource } from "contentlayer2/source-files"
1+
import {
2+
defineDocumentType,
3+
defineNestedType,
4+
makeSource,
5+
} from "contentlayer2/source-files"
6+
import rehypePrettyCode from "rehype-pretty-code"
27
import rehypeSlug from "rehype-slug"
38
import remarkGfm from "remark-gfm"
9+
import { transformers } from "@/lib/highligh-code"
410

511
export const LinkProperties = defineNestedType(() => ({
612
name: "Links",
@@ -31,7 +37,11 @@ const LinksField = defineNestedType(() => ({
3137
name: "LinksField",
3238
fields: {
3339
github: { type: "nested", of: GithubLink, required: false },
34-
externalReference: { type: "list", of: ExternalReferenceLink, required: false },
40+
externalReference: {
41+
type: "list",
42+
of: ExternalReferenceLink,
43+
required: false,
44+
},
3545
},
3646
}))
3747

@@ -81,7 +91,8 @@ export const Doc = defineDocumentType(() => ({
8191
},
8292
slugAsParams: {
8393
type: "string",
84-
resolve: (doc: any) => doc._raw.flattenedPath.split("/").slice(1).join("/"),
94+
resolve: (doc: any) =>
95+
doc._raw.flattenedPath.split("/").slice(1).join("/"),
8596
},
8697
},
8798
}))
@@ -116,13 +127,18 @@ export const Blog = defineDocumentType(() => ({
116127
},
117128
slugAsParams: {
118129
type: "string",
119-
resolve: (doc: any) => doc._raw.flattenedPath.split("/").slice(1).join("/"),
130+
resolve: (doc: any) =>
131+
doc._raw.flattenedPath.split("/").slice(1).join("/"),
120132
},
121133
formattedDate: {
122134
type: "string",
123135
resolve: (doc) => {
124136
const date = new Date(doc.date)
125-
const options: Intl.DateTimeFormatOptions = { year: "numeric", month: "long", day: "numeric" }
137+
const options: Intl.DateTimeFormatOptions = {
138+
year: "numeric",
139+
month: "long",
140+
day: "numeric",
141+
}
126142
return date.toLocaleDateString("en-US", options)
127143
},
128144
},
@@ -135,6 +151,19 @@ export default makeSource({
135151
disableImportAliasWarning: true,
136152
mdx: {
137153
remarkPlugins: [remarkGfm],
138-
rehypePlugins: [rehypeSlug],
154+
rehypePlugins: [
155+
rehypeSlug,
156+
[
157+
rehypePrettyCode,
158+
{
159+
theme: {
160+
dark: "github-dark",
161+
light: "github-light",
162+
},
163+
keepBackground: true,
164+
transformers,
165+
},
166+
],
167+
],
139168
},
140169
})

apps/website/next.config.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ const nextConfig = {
102102
pathname: "/photo/**",
103103
search: "",
104104
},
105+
{
106+
protocol: "https",
107+
hostname: "images.unsplash.com",
108+
},
105109
],
106110
},
107111
compiler: {
@@ -114,6 +118,16 @@ const nextConfig = {
114118
experimental: {
115119
optimizePackageImports: ["lucide-react"],
116120
},
117-
compress: false, // Let cloudflare handle the compression
121+
compress: false, // Let cloudflare handle the compression,
122+
webpack: (config, { isServer }) => {
123+
if (!isServer) {
124+
config.resolve.fallback = {
125+
...config.resolve.fallback,
126+
fs: false,
127+
path: false,
128+
}
129+
}
130+
return config
131+
},
118132
}
119133
export default withBundleAnalyzer(withContentlayer(nextConfig))

apps/website/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"scripts": {
77
"dev": "next dev --port 3001",
8-
"build": "contentlayer2 build && pnpm run generate-component-json && pnpm run generate-examples-json && next build",
8+
"build": "contentlayer2 build && pnpm run generate-component-json && pnpm run generate-examples-json && pnpm run build:llms && next build",
99
"start": "next start",
1010
"db:generate": "drizzle-kit generate",
1111
"db:migrate": "drizzle-kit migrate",
@@ -14,7 +14,8 @@
1414
"lint": "next lint",
1515
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
1616
"generate-component-json": "tsx src/scripts/generate-component-json.ts",
17-
"generate-examples-json": "tsx src/scripts/generate-examples-json.ts"
17+
"generate-examples-json": "tsx src/scripts/generate-examples-json.ts",
18+
"build:llms": "tsx src/scripts/generate-llms.ts"
1819
},
1920
"dependencies": {
2021
"@dnd-kit/core": "^6.3.1",
@@ -58,6 +59,7 @@
5859
"@react-email/components": "^1.0.1",
5960
"@react-email/render": "^2.0.0",
6061
"@tanstack/react-table": "^8.21.2",
62+
"@tanstack/react-virtual": "^3.13.18",
6163
"@types/country-flag-icons": "^1.2.2",
6264
"@types/fs-extra": "^11.0.4",
6365
"@types/mdx": "^2.0.13",
@@ -81,6 +83,7 @@
8183
"github-slugger": "^2.0.0",
8284
"hast-util-to-jsx-runtime": "^2.3.6",
8385
"input-otp": "^1.4.2",
86+
"lru-cache": "^11.2.6",
8487
"lucide-react": "^0.486.0",
8588
"mdx-bundler": "^10.1.1",
8689
"motion": "^12.15.0",
@@ -102,6 +105,7 @@
102105
"react-resizable-panels": "^2.1.7",
103106
"react-shiki": "^0.7.2",
104107
"recharts": "2.15.4",
108+
"rehype-pretty-code": "^0.14.1",
105109
"remark": "^15.0.1",
106110
"remark-gfm": "^4.0.1",
107111
"resend": "^6.5.2",
Lines changed: 16 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)