@windrun-huaiin/diaomao 31.0.0 → 31.1.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.
package/next-env.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /// <reference types="next" />
2
+ /// <reference types="next/image-types/global" />
3
+ import "./.next/types/routes.d.ts";
4
+
5
+ // NOTE: This file should not be edited
6
+ // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/diaomao",
3
- "version": "31.0.0",
3
+ "version": "31.1.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -71,8 +71,9 @@
71
71
  "LICENSE",
72
72
  "next-env.d.ts",
73
73
  "next.config.ts",
74
+ "prisma.config.ts",
75
+ "pnpm-workspace.yaml",
74
76
  "postcss.config.mjs",
75
- "tailwind.config.ts",
76
77
  "source.config.ts",
77
78
  "tsconfig.json",
78
79
  "tsconfig.node.json",
@@ -0,0 +1,9 @@
1
+ packages: [ '.' ]
2
+ allowBuilds:
3
+ '@clerk/shared': true
4
+ '@parcel/watcher': true
5
+ '@prisma/engines': true
6
+ '@swc/core': true
7
+ prisma: true
8
+ sharp: true
9
+ unrs-resolver: true
@@ -0,0 +1,11 @@
1
+ import { defineConfig, env } from 'prisma/config';
2
+ import { config as loadEnv } from 'dotenv';
3
+
4
+ loadEnv({ path: '.env.local', quiet: true });
5
+
6
+ export default defineConfig({
7
+ schema: 'prisma/schema.prisma',
8
+ datasource: {
9
+ url: env('DATABASE_URL'),
10
+ },
11
+ });
@@ -6,7 +6,7 @@ import { LLMCopyButton } from '@windrun-huaiin/third-ui/fuma/mdx';
6
6
  const sourceKey = 'blog';
7
7
  const { Page, generateStaticParams, generateMetadata } = createFumaPage({
8
8
  sourceKey: sourceKey,
9
- mdxContentSource: () => siteDocs.getContentSource('blog'),
9
+ mdxContentSource: () => siteDocs.getContentSource(sourceKey),
10
10
  getMDXComponents: siteDocs.getMDXComponents,
11
11
  mdxSourceDir: appConfig.mdxSourceDir[sourceKey],
12
12
  githubBaseUrl: appConfig.githubBaseUrl,
@@ -5,7 +5,7 @@ import { createFumaPage } from '@windrun-huaiin/third-ui/fuma/server/page-genera
5
5
  const sourceKey = 'legal';
6
6
  const { Page, generateStaticParams, generateMetadata } = createFumaPage({
7
7
  sourceKey: sourceKey,
8
- mdxContentSource: () => siteDocs.getContentSource('legal'),
8
+ mdxContentSource: () => siteDocs.getContentSource(sourceKey),
9
9
  getMDXComponents: siteDocs.getMDXComponents,
10
10
  mdxSourceDir: appConfig.mdxSourceDir[sourceKey],
11
11
  githubBaseUrl: appConfig.githubBaseUrl,
@@ -67,7 +67,7 @@ export async function levelNavLinks(locale: string): Promise<SiteNavItemConfig[]
67
67
  const blogsLinks: SiteMenuLeafConfig[] = [
68
68
  {
69
69
  text: 'async-architecture',
70
- description: '异步架构处理方案',
70
+ description: 'Async handler',
71
71
  path: '/blog/async-architecture',
72
72
  prefetch: false,
73
73
  icon: <T3PIcon />,
@@ -75,7 +75,7 @@ export async function levelNavLinks(locale: string): Promise<SiteNavItemConfig[]
75
75
  },
76
76
  {
77
77
  text: 'Config Sheet',
78
- description: '配置速查',
78
+ description: 'Quickstart config',
79
79
  path: '/blog/cheatsheet',
80
80
  prefetch: false,
81
81
  icon: <SettingsIcon />,
@@ -83,7 +83,7 @@ export async function levelNavLinks(locale: string): Promise<SiteNavItemConfig[]
83
83
  },
84
84
  {
85
85
  text: 'IOC',
86
- description: 'IOC统计',
86
+ description: 'IOC Analysis',
87
87
  path: '/blog/ioc',
88
88
  prefetch: false,
89
89
  icon: <ChartColumnStackedIcon />,
@@ -13,7 +13,6 @@ import React from 'react';
13
13
 
14
14
  export const dynamic = 'force-dynamic'
15
15
 
16
- // 网站元数据
17
16
  export async function generateMetadata({
18
17
  params: paramsPromise
19
18
  }: {
@@ -31,12 +30,12 @@ export async function generateMetadata({
31
30
 
32
31
  export default async function RootLayout({
33
32
  children,
34
- params: paramsPromise // 重命名参数
33
+ params: paramsPromise
35
34
  }: {
36
35
  children: React.ReactNode
37
36
  params: Promise<{ locale: string }>
38
37
  }) {
39
- const { locale } = await paramsPromise; // 使用新名称
38
+ const { locale } = await paramsPromise;
40
39
  setRequestLocale(locale);
41
40
  const messages = await getMessages();
42
41
  const fumaTranslations = await getFumaTranslations(locale);
@@ -0,0 +1,54 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file should be your main import to use Prisma-related types and utilities in a browser.
8
+ * Use it to get access to models, enums, and input types.
9
+ *
10
+ * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
11
+ * See `client.ts` for the standard, server-side entry point.
12
+ *
13
+ * 🟢 You can import this file directly.
14
+ */
15
+
16
+ import * as Prisma from './internal/prismaNamespaceBrowser'
17
+ export { Prisma }
18
+ export * as $Enums from './enums'
19
+ export * from './enums';
20
+ /**
21
+ * Model User
22
+ *
23
+ */
24
+ export type User = Prisma.UserModel
25
+ /**
26
+ * Model Subscription
27
+ *
28
+ */
29
+ export type Subscription = Prisma.SubscriptionModel
30
+ /**
31
+ * Model Credit
32
+ *
33
+ */
34
+ export type Credit = Prisma.CreditModel
35
+ /**
36
+ * Model Transaction
37
+ *
38
+ */
39
+ export type Transaction = Prisma.TransactionModel
40
+ /**
41
+ * Model CreditAuditLog
42
+ *
43
+ */
44
+ export type CreditAuditLog = Prisma.CreditAuditLogModel
45
+ /**
46
+ * Model UserBackup
47
+ *
48
+ */
49
+ export type UserBackup = Prisma.UserBackupModel
50
+ /**
51
+ * Model Apilog
52
+ *
53
+ */
54
+ export type Apilog = Prisma.ApilogModel
@@ -0,0 +1,78 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
8
+ * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
9
+ *
10
+ * 🟢 You can import this file directly.
11
+ */
12
+
13
+ import * as process from 'node:process'
14
+ import * as path from 'node:path'
15
+ import { fileURLToPath } from 'node:url'
16
+ globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
17
+
18
+ import * as runtime from "@prisma/client/runtime/client"
19
+ import * as $Enums from "./enums"
20
+ import * as $Class from "./internal/class"
21
+ import * as Prisma from "./internal/prismaNamespace"
22
+
23
+ export * as $Enums from './enums'
24
+ export * from "./enums"
25
+ /**
26
+ * ## Prisma Client
27
+ *
28
+ * Type-safe database client for TypeScript
29
+ * @example
30
+ * ```
31
+ * const prisma = new PrismaClient({
32
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
33
+ * })
34
+ * // Fetch zero or more Users
35
+ * const users = await prisma.user.findMany()
36
+ * ```
37
+ *
38
+ * Read more in our [docs](https://pris.ly/d/client).
39
+ */
40
+ export const PrismaClient = $Class.getPrismaClientClass()
41
+ export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
42
+ export { Prisma }
43
+
44
+ /**
45
+ * Model User
46
+ *
47
+ */
48
+ export type User = Prisma.UserModel
49
+ /**
50
+ * Model Subscription
51
+ *
52
+ */
53
+ export type Subscription = Prisma.SubscriptionModel
54
+ /**
55
+ * Model Credit
56
+ *
57
+ */
58
+ export type Credit = Prisma.CreditModel
59
+ /**
60
+ * Model Transaction
61
+ *
62
+ */
63
+ export type Transaction = Prisma.TransactionModel
64
+ /**
65
+ * Model CreditAuditLog
66
+ *
67
+ */
68
+ export type CreditAuditLog = Prisma.CreditAuditLogModel
69
+ /**
70
+ * Model UserBackup
71
+ *
72
+ */
73
+ export type UserBackup = Prisma.UserBackupModel
74
+ /**
75
+ * Model Apilog
76
+ *
77
+ */
78
+ export type Apilog = Prisma.ApilogModel