@windrun-huaiin/diaomao 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  ---
2
- "@windrun-huaiin/diaomao": none
2
+ "@windrun-huaiin/diaomao": major
3
3
  ---
4
4
 
5
+ fix(createApp): one command for standtard project init
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/diaomao",
3
- "version": "1.0.1",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,6 +25,9 @@
25
25
  "@radix-ui/react-slot": "^1.2.2",
26
26
  "@tailwindcss/typography": "latest",
27
27
  "@types/mdx": "^2.0.13",
28
+ "@windrun-huaiin/base-ui": "^5.3.1",
29
+ "@windrun-huaiin/lib": "^5.7.0",
30
+ "@windrun-huaiin/third-ui": "^5.9.3",
28
31
  "autoprefixer": "^10.4.21",
29
32
  "class-variance-authority": "^0.7.1",
30
33
  "clsx": "^2.1.1",
@@ -49,13 +52,11 @@
49
52
  "shiki": "^3.4.2",
50
53
  "tailwind-merge": "^3.3.0",
51
54
  "tailwindcss-animate": "^1.0.7",
52
- "zod": "^3.24.4",
53
- "@windrun-huaiin/base-ui": "^5.3.1",
54
- "@windrun-huaiin/lib": "^5.7.0",
55
- "@windrun-huaiin/third-ui": "^5.9.3"
55
+ "zod": "^3.24.4"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@changesets/cli": "^2.29.5",
59
+ "@windrun-huaiin/dev-scripts": "^6.6.0",
59
60
  "@tailwindcss/cli": "^4.1.11",
60
61
  "@tailwindcss/postcss": "^4.1.7",
61
62
  "@types/hast": "^3.0.4",
@@ -76,8 +77,7 @@
76
77
  "ts-node": "^10.9.2",
77
78
  "typescript": "^5.8.3",
78
79
  "ts-morph": "25.0.1",
79
- "unist-util-visit": "^5.0.0",
80
- "@windrun-huaiin/dev-scripts": "6.6.0"
80
+ "unist-util-visit": "^5.0.0"
81
81
  },
82
82
  "files": [
83
83
  ".changeset",
@@ -110,6 +110,11 @@
110
110
  "build:prod": "next build",
111
111
  "start": "next start",
112
112
  "lint": "next lint",
113
+ "deep-clean": "dev-scripts deep-clean",
114
+ "d8": "pnpm run deep-clean",
115
+ "easy-changeset": "dev-scripts easy-changeset",
116
+ "dj": "pnpm run easy-changeset && pnpm changeset status",
117
+ "djv": "pnpm changeset version",
113
118
  "generate-blog-index": "dev-scripts generate-blog-index -v",
114
119
  "check-translations": "dev-scripts check-translations -v",
115
120
  "clean-translations": "dev-scripts clean-translations -v",
package/source.config.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { appConfig } from '@/lib/appConfig';
2
- import { createCommonDocsSchema, createCommonMetaSchema } from '@third-ui/lib/fuma-schema-check-util';
2
+ import { createCommonDocsSchema, createCommonMetaSchema } from '@windrun-huaiin/third-ui/lib/server';
3
3
  import { rehypeCodeDefaultOptions, remarkSteps } from 'fumadocs-core/mdx-plugins';
4
4
  import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
5
5
  import type { Element } from 'hast';
@@ -9,10 +9,10 @@
9
9
 
10
10
  import { baseOptions } from '@/app/[locale]/layout.config';
11
11
  import { HomeLayout, type HomeLayoutProps } from 'fumadocs-ui/layouts/home';
12
- import { FumaBannerSuit } from '@third-ui/fuma/mdx';
12
+ import { FumaBannerSuit } from '@windrun-huaiin/third-ui/fuma/mdx';
13
13
  import { ReactNode } from 'react';
14
14
  import { clerkPageBanner } from '@/lib/appConfig';
15
- import { ClerkProviderClient } from '@third-ui/clerk';
15
+ import { ClerkProviderClient } from '@windrun-huaiin/third-ui/clerk';
16
16
 
17
17
  async function homeOptions(locale: string): Promise<HomeLayoutProps>{
18
18
  const resolvedBaseOptions = await baseOptions(locale);
@@ -9,6 +9,6 @@
9
9
 
10
10
  'use client';
11
11
 
12
- import { createSignInPage } from '@third-ui/clerk';
12
+ import { createSignInPage } from '@windrun-huaiin/third-ui/clerk';
13
13
 
14
14
  export default createSignInPage();
@@ -9,6 +9,6 @@
9
9
 
10
10
  'use client';
11
11
 
12
- import { createSignUpPage } from '@third-ui/clerk';
12
+ import { createSignUpPage } from '@windrun-huaiin/third-ui/clerk';
13
13
 
14
14
  export default createSignUpPage();
@@ -9,6 +9,6 @@
9
9
 
10
10
  'use client';
11
11
 
12
- import { createWaitlistPage } from '@third-ui/clerk';
12
+ import { createWaitlistPage } from '@windrun-huaiin/third-ui/clerk';
13
13
 
14
14
  export default createWaitlistPage();
@@ -7,7 +7,7 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- import { NotFoundPage } from '@base-ui/components';
10
+ import { NotFoundPage } from '@windrun-huaiin/base-ui/components';
11
11
  import { SiteIcon } from '@/lib/site-config';
12
12
 
13
13
  export default function NotFound() {
@@ -1,10 +1,10 @@
1
1
  import { getMDXComponents } from '@/components/mdx-components';
2
2
  import { appConfig } from '@/lib/appConfig';
3
- import { NotFoundPage } from '@base-ui/components';
3
+ import { NotFoundPage } from '@windrun-huaiin/base-ui/components';
4
4
  import { blogSource } from '@/lib/source-blog';
5
- import { createFumaPage } from '@third-ui/fuma/server';
5
+ import { createFumaPage } from '@windrun-huaiin/third-ui/fuma/server';
6
6
  import { SiteIcon } from '@/lib/site-config';
7
- import { LLMCopyButton } from '@third-ui/fuma/mdx/toc-base';
7
+ import { LLMCopyButton } from '@windrun-huaiin/third-ui/fuma/mdx';
8
8
 
9
9
  const sourceKey = 'blog';
10
10
  const { Page, generateStaticParams, generateMetadata } = createFumaPage({
@@ -1,10 +1,10 @@
1
1
  import { baseOptions, homeNavLinks, levelNavLinks } from '@/app/[locale]/layout.config';
2
- import { Footer, GoToTop } from '@third-ui/main';
2
+ import { Footer, GoToTop } from '@windrun-huaiin/third-ui/main';
3
3
  import { HomeLayout, type HomeLayoutProps } from 'fumadocs-ui/layouts/home';
4
- import { FumaBannerSuit } from '@third-ui/fuma/mdx';
4
+ import { FumaBannerSuit } from '@windrun-huaiin/third-ui/fuma/mdx';
5
5
  import type { ReactNode } from 'react';
6
6
  import { showBanner } from '@/lib/appConfig';
7
- import { ClerkProviderClient } from '@third-ui/clerk';
7
+ import { ClerkProviderClient } from '@windrun-huaiin/third-ui/clerk';
8
8
 
9
9
  async function homeOptions(locale: string): Promise<HomeLayoutProps> {
10
10
  return {
@@ -2,8 +2,8 @@ import { getMDXComponents } from '@/components/mdx-components';
2
2
  import { appConfig } from '@/lib/appConfig';
3
3
  import { SiteIcon } from '@/lib/site-config';
4
4
  import { legalSource } from '@/lib/source-legal';
5
- import { NotFoundPage } from '@base-ui/components';
6
- import { createFumaPage } from '@third-ui/fuma/server';
5
+ import { NotFoundPage } from '@windrun-huaiin/base-ui/components';
6
+ import { createFumaPage } from '@windrun-huaiin/third-ui/fuma/server';
7
7
 
8
8
  const sourceKey = 'legal';
9
9
  const { Page, generateStaticParams, generateMetadata } = createFumaPage({
@@ -1,5 +1,7 @@
1
+ 'use client';
2
+
1
3
  import { Hero } from "@/components/hero"
2
- import { Gallery, Usage, Features, Tips, FAQ, SeoContent, CTA, PricePlan } from "@third-ui/main"
4
+ import { Gallery, Usage, Features, Tips, FAQ, SeoContent, CTA, PricePlan } from "@windrun-huaiin/third-ui/main"
3
5
  import { pricePlanConfig } from "@/lib/price-config"
4
6
 
5
7
  export default function Home() {
@@ -1,7 +1,7 @@
1
1
  @import 'tailwindcss';
2
2
 
3
- @source "../../../../../packages/third-ui/src/**/*.{js,ts,jsx,tsx}";
4
- @source "../../../../../packages/base-ui/src/**/*.{js,ts,jsx,tsx}";
3
+ @source "../../../node_modules/@windrun-huaiin/third-ui/src/**/*.{js,ts,jsx,tsx}";
4
+ @source "../../../node_modules/@windrun-huaiin/base-ui/src/**/*.{js,ts,jsx,tsx}";
5
5
  @source "../../../src/**/*.{js,ts,jsx,tsx}";
6
6
 
7
7
  @import '@windrun-huaiin/third-ui/styles/third-ui.css';
@@ -1,8 +1,8 @@
1
1
  import { i18n } from '@/i18n';
2
2
  import { appConfig } from '@/lib/appConfig';
3
3
  import { SiteIcon } from '@/lib/site-config';
4
- import { globalLucideIcons as icons } from '@base-ui/components/global-icon';
5
- import { ClerkUser } from '@third-ui/clerk';
4
+ import { globalLucideIcons as icons } from '@windrun-huaiin/base-ui/components/server';
5
+ import { ClerkUser } from '@windrun-huaiin/third-ui/clerk';
6
6
  import { type LinkItemType } from 'fumadocs-ui/layouts/docs';
7
7
  import { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
8
8
  import { getTranslations } from 'next-intl/server';
@@ -1,6 +1,6 @@
1
1
  import { appConfig, generatedLocales } from "@/lib/appConfig";
2
- import { fumaI18nCn } from '@third-ui/lib/server';
3
- import { NProgressBar } from '@third-ui/main/nprogress-bar';
2
+ import { fumaI18nCn } from '@windrun-huaiin/third-ui/lib/server';
3
+ import { NProgressBar } from '@windrun-huaiin/third-ui/main';
4
4
  import { RootProvider } from "fumadocs-ui/provider";
5
5
  import { NextIntlClientProvider } from 'next-intl';
6
6
  import { getMessages, getTranslations, setRequestLocale } from 'next-intl/server';
@@ -1,4 +1,4 @@
1
1
  'use client';
2
- import { Loading } from '@third-ui/main/loading';
2
+ import { Loading } from '@windrun-huaiin/third-ui/main';
3
3
 
4
4
  export default Loading;
@@ -2,17 +2,22 @@
2
2
 
3
3
  import { type NextRequest, NextResponse } from 'next/server';
4
4
 
5
- import { blogSource } from '@/lib/source-blog';
6
5
  import { appConfig } from '@/lib/appConfig';
7
- import { LLMCopyHandler } from '@third-ui/fuma/server';
6
+ import { LLMCopyHandler } from '@windrun-huaiin/third-ui/fuma/server';
7
+ import { blogSource } from '@/lib/source-blog';
8
8
 
9
9
  export async function GET(request: NextRequest) {
10
10
  const searchParams = request.nextUrl.searchParams;
11
11
  const locale = searchParams.get('locale') ?? appConfig.i18n.defaultLocale;
12
- const requestedPath = searchParams.get('path') || '';
12
+ const requestedPath = searchParams.get('path');
13
+
14
+ if (!requestedPath) {
15
+ console.error('API llm-content: Missing path query parameter');
16
+ return new NextResponse('Missing path query parameter', { status: 400 });
17
+ }
13
18
 
14
19
  const result = await LLMCopyHandler({
15
- sourceDir: appConfig.mdxSourceDir.blog,
20
+ sourceDir: appConfig.mdxSourceDir['blog'],
16
21
  dataSource: blogSource,
17
22
  requestedPath,
18
23
  locale,
@@ -4,7 +4,7 @@ import { type NextRequest, NextResponse } from 'next/server';
4
4
 
5
5
  import { legalSource } from '@/lib/source-legal';
6
6
  import { appConfig } from '@/lib/appConfig';
7
- import { LLMCopyHandler } from '@third-ui/fuma/server';
7
+ import { LLMCopyHandler } from '@windrun-huaiin/third-ui/fuma/server';
8
8
 
9
9
  export async function GET(request: NextRequest) {
10
10
  const searchParams = request.nextUrl.searchParams;
@@ -3,8 +3,8 @@
3
3
 
4
4
  import Image from "next/image"
5
5
  import { useTranslations } from 'next-intl'
6
- import { globalLucideIcons as icons} from '@base-ui/components/global-icon'
7
- import { GradientButton } from "@third-ui/fuma/mdx"
6
+ import { globalLucideIcons as icons} from '@windrun-huaiin/base-ui/components/server'
7
+ import { GradientButton } from "@windrun-huaiin/third-ui/fuma/mdx"
8
8
 
9
9
  export function Hero() {
10
10
  const t = useTranslations('hero');
@@ -10,7 +10,7 @@ import {
10
10
  SiteX,
11
11
  ZiaFile,
12
12
  ZiaFolder,
13
- } from "@third-ui/fuma/mdx";
13
+ } from "@windrun-huaiin/third-ui/fuma/mdx";
14
14
  import { CodeBlock, Pre } from "fumadocs-ui/components/codeblock";
15
15
  import { Callout } from "fumadocs-ui/components/callout";
16
16
  import { File, Folder, Files } from "fumadocs-ui/components/files";
@@ -18,7 +18,7 @@ import { Accordion, Accordions } from "fumadocs-ui/components/accordion";
18
18
  import type { MDXComponents, MDXProps } from "mdx/types";
19
19
  import { TypeTable } from "fumadocs-ui/components/type-table";
20
20
 
21
- import { globalLucideIcons as icons } from "@base-ui/components/global-icon";
21
+ import { globalLucideIcons as icons } from "@windrun-huaiin/base-ui/components/server";
22
22
  import { appConfig } from "@/lib/appConfig";
23
23
 
24
24
  // create a mapping from language identifier to icon component
@@ -1,4 +1,4 @@
1
- import { createCommonAppConfig, createI18nHelpers, LOCALE_PRESETS } from "@lib/common-app-config";
1
+ import { createCommonAppConfig, createI18nHelpers, LOCALE_PRESETS } from "@windrun-huaiin/lib/common-app-config";
2
2
 
3
3
  // 创建应用配置
4
4
  export const appConfig = {
@@ -1,4 +1,4 @@
1
- import { PricePlanAppConfig } from "@third-ui/main/price-plan";
1
+ import { PricePlanAppConfig } from "@windrun-huaiin/third-ui/main";
2
2
 
3
3
  export const pricePlanConfig: PricePlanAppConfig = {
4
4
  billingOptions: [
@@ -1,3 +1,3 @@
1
- import { createSiteIcon } from "@base-ui/components/server";
1
+ import { createSiteIcon } from "@windrun-huaiin/base-ui/components/server";
2
2
 
3
3
  export const SiteIcon = createSiteIcon('Pi');
@@ -1,5 +1,5 @@
1
1
  import { blog } from '.source';
2
- import { getIconElement } from '@base-ui/components/global-icon';
2
+ import { getIconElement } from '@windrun-huaiin/base-ui/components/server';
3
3
  import { i18n } from '@/i18n';
4
4
  import { loader } from 'fumadocs-core/source';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { legal } from '.source';
2
2
  import { i18n } from '@/i18n';
3
- import { getIconElement } from '@base-ui/components/global-icon';
3
+ import { getIconElement } from '@windrun-huaiin/base-ui/components/server';
4
4
  import { loader } from 'fumadocs-core/source';
5
5
 
6
6
  export const legalSource = loader({
package/tsconfig.json CHANGED
@@ -26,13 +26,10 @@
26
26
  "paths": {
27
27
  "@/*": [ "./src/*" ],
28
28
  ".source/*": ["./.source/*"],
29
- "@third-ui/*": ["../../packages/third-ui/src/*"],
30
- "@base-ui/*": ["../../packages/base-ui/src/*"],
31
- "@lib/*": ["../../packages/lib/src/*"]
32
29
  }
33
30
  },
34
31
  "include": [
35
- "apps/diaomao/next-env.d.ts",
32
+ "apps/zhengchengyan/next-env.d.ts",
36
33
  "**/*.ts",
37
34
  "**/*.tsx",
38
35
  ".next/types/**/*.ts"