@windrun-huaiin/lib 3.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/LICENSE +21 -0
- package/README.md +80 -0
- package/dist/common-app-config.d.mts +126 -0
- package/dist/common-app-config.d.ts +126 -0
- package/dist/common-app-config.js +178 -0
- package/dist/common-app-config.js.map +1 -0
- package/dist/common-app-config.mjs +154 -0
- package/dist/common-app-config.mjs.map +1 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +445 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +407 -0
- package/dist/index.mjs.map +1 -0
- package/dist/limited-lucide-icons.d.mts +1 -0
- package/dist/limited-lucide-icons.d.ts +1 -0
- package/dist/limited-lucide-icons.js +185 -0
- package/dist/limited-lucide-icons.js.map +1 -0
- package/dist/limited-lucide-icons.mjs +162 -0
- package/dist/limited-lucide-icons.mjs.map +1 -0
- package/dist/llm-utils.d.mts +3 -0
- package/dist/llm-utils.d.ts +3 -0
- package/dist/llm-utils.js +100 -0
- package/dist/llm-utils.js.map +1 -0
- package/dist/llm-utils.mjs +66 -0
- package/dist/llm-utils.mjs.map +1 -0
- package/dist/utils.d.mts +6 -0
- package/dist/utils.d.ts +6 -0
- package/dist/utils.js +58 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +32 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +85 -0
- package/src/common-app-config.ts +165 -0
- package/src/index.ts +11 -0
- package/src/limited-lucide-icons.ts +86 -0
- package/src/llm-utils.ts +50 -0
- package/src/utils.ts +37 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __async = (__this, __arguments, generator) => {
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
var fulfilled = (value) => {
|
|
23
|
+
try {
|
|
24
|
+
step(generator.next(value));
|
|
25
|
+
} catch (e) {
|
|
26
|
+
reject(e);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var rejected = (value) => {
|
|
30
|
+
try {
|
|
31
|
+
step(generator.throw(value));
|
|
32
|
+
} catch (e) {
|
|
33
|
+
reject(e);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/utils.ts
|
|
42
|
+
import { clsx } from "clsx";
|
|
43
|
+
import { twMerge } from "tailwind-merge";
|
|
44
|
+
import { format, isValid } from "date-fns";
|
|
45
|
+
function cn(...inputs) {
|
|
46
|
+
return twMerge(clsx(inputs));
|
|
47
|
+
}
|
|
48
|
+
function formatTimestamp(timestamp, formatter) {
|
|
49
|
+
const fail = "";
|
|
50
|
+
if (!timestamp) {
|
|
51
|
+
return fail;
|
|
52
|
+
}
|
|
53
|
+
const timestampMs = parseInt(timestamp, 10);
|
|
54
|
+
if (isNaN(timestampMs)) {
|
|
55
|
+
return fail;
|
|
56
|
+
}
|
|
57
|
+
const date = new Date(timestampMs);
|
|
58
|
+
if (!isValid(date)) {
|
|
59
|
+
return fail;
|
|
60
|
+
}
|
|
61
|
+
try {
|
|
62
|
+
return format(date, formatter);
|
|
63
|
+
} catch (error) {
|
|
64
|
+
console.error("Error formatting date:", error);
|
|
65
|
+
return fail;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// src/limited-lucide-icons.ts
|
|
70
|
+
import {
|
|
71
|
+
AlbumIcon,
|
|
72
|
+
AlignHorizontalJustifyEnd,
|
|
73
|
+
ArrowLeft,
|
|
74
|
+
ArrowRight,
|
|
75
|
+
ArrowUp,
|
|
76
|
+
Binary,
|
|
77
|
+
Blocks,
|
|
78
|
+
BookX,
|
|
79
|
+
BringToFront,
|
|
80
|
+
Building2,
|
|
81
|
+
Bug,
|
|
82
|
+
Car,
|
|
83
|
+
Circle,
|
|
84
|
+
CircleAlert,
|
|
85
|
+
CircleSmall,
|
|
86
|
+
Check,
|
|
87
|
+
ChevronDown,
|
|
88
|
+
ChevronLeft,
|
|
89
|
+
ChevronRight,
|
|
90
|
+
ChevronUp,
|
|
91
|
+
Cpu,
|
|
92
|
+
ComponentIcon,
|
|
93
|
+
DatabaseZap,
|
|
94
|
+
Dot,
|
|
95
|
+
Download,
|
|
96
|
+
Eye,
|
|
97
|
+
ExternalLink,
|
|
98
|
+
Facebook,
|
|
99
|
+
FileLock2,
|
|
100
|
+
Fingerprint,
|
|
101
|
+
Gift,
|
|
102
|
+
GitPullRequestArrow,
|
|
103
|
+
Globe,
|
|
104
|
+
GlobeLock,
|
|
105
|
+
GripVertical,
|
|
106
|
+
HandHeart,
|
|
107
|
+
Handshake,
|
|
108
|
+
Highlighter,
|
|
109
|
+
HousePlus,
|
|
110
|
+
Info,
|
|
111
|
+
ImageDown,
|
|
112
|
+
ImageOff,
|
|
113
|
+
ImageUp,
|
|
114
|
+
Keyboard,
|
|
115
|
+
LandPlot,
|
|
116
|
+
Layout,
|
|
117
|
+
LayoutTemplate,
|
|
118
|
+
LibraryIcon,
|
|
119
|
+
Link,
|
|
120
|
+
Loader2,
|
|
121
|
+
LogIn,
|
|
122
|
+
LogOut,
|
|
123
|
+
MoreHorizontal,
|
|
124
|
+
MousePointerClick,
|
|
125
|
+
PanelLeft,
|
|
126
|
+
PanelsTopLeft,
|
|
127
|
+
Pencil,
|
|
128
|
+
Pi,
|
|
129
|
+
Palette,
|
|
130
|
+
ReceiptText,
|
|
131
|
+
Regex,
|
|
132
|
+
Replace,
|
|
133
|
+
Rss,
|
|
134
|
+
Scale,
|
|
135
|
+
Search,
|
|
136
|
+
Share,
|
|
137
|
+
ShieldUser,
|
|
138
|
+
SquareDashedBottomCode,
|
|
139
|
+
SquareTerminal,
|
|
140
|
+
Server,
|
|
141
|
+
SplinePointer,
|
|
142
|
+
Sparkles,
|
|
143
|
+
Star,
|
|
144
|
+
Tablets,
|
|
145
|
+
Terminal,
|
|
146
|
+
Twitter,
|
|
147
|
+
X,
|
|
148
|
+
Zap
|
|
149
|
+
} from "lucide-react";
|
|
150
|
+
|
|
151
|
+
// src/llm-utils.ts
|
|
152
|
+
import { remark } from "remark";
|
|
153
|
+
import remarkGfm from "remark-gfm";
|
|
154
|
+
import remarkMdx from "remark-mdx";
|
|
155
|
+
import remarkFrontmatter from "remark-frontmatter";
|
|
156
|
+
import { visit } from "unist-util-visit";
|
|
157
|
+
function remarkRemoveFrontmatter() {
|
|
158
|
+
return (tree) => {
|
|
159
|
+
visit(tree, "yaml", (_node, index, parent) => {
|
|
160
|
+
if (parent && typeof index === "number") {
|
|
161
|
+
parent.children.splice(index, 1);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
var processor = remark().use(remarkFrontmatter, ["yaml"]).use(remarkRemoveFrontmatter).use(remarkMdx).use(remarkGfm);
|
|
167
|
+
function getLLMText(mdxContent, title, description) {
|
|
168
|
+
return __async(this, null, function* () {
|
|
169
|
+
if (typeof mdxContent !== "string") {
|
|
170
|
+
console.error("getLLMText: mdxContent received was not a string. Type:", typeof mdxContent);
|
|
171
|
+
return `# Error
|
|
172
|
+
|
|
173
|
+
Invalid content received by text processor.`;
|
|
174
|
+
}
|
|
175
|
+
try {
|
|
176
|
+
const processed = yield processor.process(mdxContent);
|
|
177
|
+
const contentWithoutFrontmatter = processed.value;
|
|
178
|
+
const markdownParts = [
|
|
179
|
+
title ? `# ${title}` : null,
|
|
180
|
+
description,
|
|
181
|
+
contentWithoutFrontmatter.trim()
|
|
182
|
+
];
|
|
183
|
+
return markdownParts.filter((part) => part != null).join("\n\n");
|
|
184
|
+
} catch (processingError) {
|
|
185
|
+
console.error("Error during remark processing in getLLMText:", processingError);
|
|
186
|
+
return `# Error
|
|
187
|
+
|
|
188
|
+
Error processing MDX content.`;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// src/common-app-config.ts
|
|
194
|
+
var ALL_LOCALE_LABELS = {
|
|
195
|
+
en: "English",
|
|
196
|
+
zh: "\u7B80\u4F53\u4E2D\u6587",
|
|
197
|
+
ja: "\u65E5\u672C\u8A9E",
|
|
198
|
+
ko: "\uD55C\uAD6D\uC5B4",
|
|
199
|
+
fr: "Fran\xE7ais",
|
|
200
|
+
de: "Deutsch",
|
|
201
|
+
es: "Espa\xF1ol",
|
|
202
|
+
it: "Italiano",
|
|
203
|
+
pt: "Portugu\xEAs",
|
|
204
|
+
tr: "T\xFCrk\xE7e",
|
|
205
|
+
pl: "Polski",
|
|
206
|
+
ru: "\u0420\u0443\u0441\u0441\u043A\u0438\u0439",
|
|
207
|
+
ar: "\u0627\u0644\u0639\u0631\u0628\u064A\u0629",
|
|
208
|
+
hi: "\u0939\u093F\u0928\u094D\u0926\u0940",
|
|
209
|
+
th: "\u0E44\u0E17\u0E22",
|
|
210
|
+
vi: "Ti\u1EBFng Vi\u1EC7t"
|
|
211
|
+
};
|
|
212
|
+
function getLocaleLabels(locales) {
|
|
213
|
+
return Object.fromEntries(
|
|
214
|
+
locales.map((locale) => [
|
|
215
|
+
locale,
|
|
216
|
+
ALL_LOCALE_LABELS[locale] || locale
|
|
217
|
+
])
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
function createCommonAppConfig(options) {
|
|
221
|
+
var _a, _b, _c, _d, _e;
|
|
222
|
+
const locales = (_c = (_b = options == null ? void 0 : options.locales) != null ? _b : (_a = process.env.NEXT_PUBLIC_I18N_LOCALES) == null ? void 0 : _a.split(",").map((s) => s.trim())) != null ? _c : ["en", "zh"];
|
|
223
|
+
const defaultLocale = (_e = (_d = options == null ? void 0 : options.defaultLocale) != null ? _d : process.env.NEXT_PUBLIC_I18N_DEFAULT_LOCALE) != null ? _e : "en";
|
|
224
|
+
const storagePrefix = process.env.NEXT_PUBLIC_I18N_STORAGE_PREFIX || "WINDRUN-HUAIIN";
|
|
225
|
+
const config = {
|
|
226
|
+
// Basic configuration
|
|
227
|
+
baseUrl: process.env.NEXT_PUBLIC_BASE_URL || "",
|
|
228
|
+
githubBaseUrl: process.env.NEXT_PUBLIC_GITHUB_BASE_URL || "",
|
|
229
|
+
github: process.env.NEXT_PUBLIC_GITHUB || "",
|
|
230
|
+
githubInfoToken: process.env.NEXT_PUBLIC_FUMA_GITHUB_TOKEN || "",
|
|
231
|
+
// Internationalization configuration
|
|
232
|
+
i18n: {
|
|
233
|
+
locales,
|
|
234
|
+
defaultLocale,
|
|
235
|
+
localeLabels: getLocaleLabels(locales),
|
|
236
|
+
detector: {
|
|
237
|
+
storageKey: process.env.NEXT_PUBLIC_I18N_STORAGE_KEY || "language-preference-status",
|
|
238
|
+
autoCloseTimeout: parseInt(process.env.NEXT_PUBLIC_I18N_AUTO_CLOSE_TIMEOUT || "10000"),
|
|
239
|
+
expirationDays: parseInt(process.env.NEXT_PUBLIC_I18N_EXPIRATION_DAYS || "30"),
|
|
240
|
+
storagePrefix
|
|
241
|
+
},
|
|
242
|
+
messageRoot: process.env.NEXT_PUBLIC_I18N_MESSAGE_ROOT || "messages"
|
|
243
|
+
},
|
|
244
|
+
// Style configuration
|
|
245
|
+
style: {
|
|
246
|
+
icon: {
|
|
247
|
+
uniformColor: process.env.NEXT_PUBLIC_STYLE_ICON_COLOR || "text-purple-500"
|
|
248
|
+
},
|
|
249
|
+
showBanner: process.env.NEXT_PUBLIC_STYLE_SHOW_BANNER === "true",
|
|
250
|
+
clerkAuthInModal: process.env.NEXT_PUBLIC_STYLE_CLERK_AUTH_IN_MODAL === "true",
|
|
251
|
+
clerkPageBanner: process.env.NEXT_PUBLIC_STYLE_CLERK_PAGE_BANNER === "true",
|
|
252
|
+
watermark: {
|
|
253
|
+
enabled: process.env.NEXT_PUBLIC_STYLE_WATERMARK_ENABLED === "true",
|
|
254
|
+
text: process.env.NEXT_PUBLIC_STYLE_WATERMARK_TEXT || "\u5DFD\u5DDD\xB7\u6000\u56E0"
|
|
255
|
+
},
|
|
256
|
+
cdnBaseUrl: process.env.NEXT_PUBLIC_STYLE_CDN_BASE_URL || "https://raw.githubusercontent.com/caofanCPU/wind-run-1/main/public",
|
|
257
|
+
placeHolder: {
|
|
258
|
+
image: process.env.NEXT_PUBLIC_STYLE_PLACEHOLDER_IMAGE || "/default.webp"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
// Clerk configuration
|
|
262
|
+
clerk: {
|
|
263
|
+
signInUrl: process.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL || "/sign-in",
|
|
264
|
+
fallbackSignInUrl: process.env.NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL || "/",
|
|
265
|
+
signUpUrl: process.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL || "/sign-up",
|
|
266
|
+
fallbackSignUpUrl: process.env.NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL || "/",
|
|
267
|
+
waitlistUrl: process.env.NEXT_PUBLIC_CLERK_WAITLIST_URL || "/waitlist",
|
|
268
|
+
debug: process.env.CLERK_DEBUG === "true"
|
|
269
|
+
},
|
|
270
|
+
// MDX source file directory configuration
|
|
271
|
+
mdxSourceDir: {
|
|
272
|
+
docs: process.env.NEXT_PUBLIC_MDX_DOCS_DIR || "src/mdx/docs",
|
|
273
|
+
blog: process.env.NEXT_PUBLIC_MDX_BLOG_DIR || "src/mdx/blog",
|
|
274
|
+
legal: process.env.NEXT_PUBLIC_MDX_LEGAL_DIR || "src/mdx/legal"
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
const shortcuts = {
|
|
278
|
+
iconColor: config.style.icon.uniformColor,
|
|
279
|
+
watermark: config.style.watermark,
|
|
280
|
+
showBanner: config.style.showBanner,
|
|
281
|
+
clerkPageBanner: config.style.clerkPageBanner,
|
|
282
|
+
clerkAuthInModal: config.style.clerkAuthInModal,
|
|
283
|
+
placeHolderImage: config.style.placeHolder.image,
|
|
284
|
+
clerk: config.clerk
|
|
285
|
+
};
|
|
286
|
+
return __spreadProps(__spreadValues({}, config), {
|
|
287
|
+
shortcuts
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
function createI18nHelpers(i18nConfig) {
|
|
291
|
+
function isSupportedLocale(locale) {
|
|
292
|
+
return i18nConfig.locales.includes(locale);
|
|
293
|
+
}
|
|
294
|
+
function getValidLocale(locale) {
|
|
295
|
+
return isSupportedLocale(locale) ? locale : i18nConfig.defaultLocale;
|
|
296
|
+
}
|
|
297
|
+
const generatedLocales = i18nConfig.locales.map((loc) => ({
|
|
298
|
+
name: i18nConfig.localeLabels[loc] || loc,
|
|
299
|
+
locale: loc
|
|
300
|
+
}));
|
|
301
|
+
return {
|
|
302
|
+
isSupportedLocale,
|
|
303
|
+
getValidLocale,
|
|
304
|
+
generatedLocales
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
var LOCALE_PRESETS = {
|
|
308
|
+
// Only support English
|
|
309
|
+
EN_ONLY: { locales: ["en"], defaultLocale: "en" },
|
|
310
|
+
// English and Chinese
|
|
311
|
+
EN_ZH: { locales: ["en", "zh"], defaultLocale: "en" },
|
|
312
|
+
// Main Asian languages
|
|
313
|
+
ASIA: { locales: ["en", "zh", "ja", "ko"], defaultLocale: "en" },
|
|
314
|
+
// Main European languages
|
|
315
|
+
EUROPE: { locales: ["en", "fr", "de", "es", "it"], defaultLocale: "en" },
|
|
316
|
+
// Globalization
|
|
317
|
+
GLOBAL: { locales: ["en", "zh", "ja", "ko", "fr", "de", "es", "it", "pt", "ru"], defaultLocale: "en" },
|
|
318
|
+
// No internationalization (only default language)
|
|
319
|
+
NONE: { locales: [], defaultLocale: "en" }
|
|
320
|
+
};
|
|
321
|
+
export {
|
|
322
|
+
AlbumIcon,
|
|
323
|
+
AlignHorizontalJustifyEnd,
|
|
324
|
+
ArrowLeft,
|
|
325
|
+
ArrowRight,
|
|
326
|
+
ArrowUp,
|
|
327
|
+
Binary,
|
|
328
|
+
Blocks,
|
|
329
|
+
BookX,
|
|
330
|
+
BringToFront,
|
|
331
|
+
Bug,
|
|
332
|
+
Building2,
|
|
333
|
+
Car,
|
|
334
|
+
Check,
|
|
335
|
+
ChevronDown,
|
|
336
|
+
ChevronLeft,
|
|
337
|
+
ChevronRight,
|
|
338
|
+
ChevronUp,
|
|
339
|
+
Circle,
|
|
340
|
+
CircleAlert,
|
|
341
|
+
CircleSmall,
|
|
342
|
+
ComponentIcon,
|
|
343
|
+
Cpu,
|
|
344
|
+
DatabaseZap,
|
|
345
|
+
Dot,
|
|
346
|
+
Download,
|
|
347
|
+
ExternalLink,
|
|
348
|
+
Eye,
|
|
349
|
+
Facebook,
|
|
350
|
+
FileLock2,
|
|
351
|
+
Fingerprint,
|
|
352
|
+
Gift,
|
|
353
|
+
GitPullRequestArrow,
|
|
354
|
+
Globe,
|
|
355
|
+
GlobeLock,
|
|
356
|
+
GripVertical,
|
|
357
|
+
HandHeart,
|
|
358
|
+
Handshake,
|
|
359
|
+
Highlighter,
|
|
360
|
+
HousePlus,
|
|
361
|
+
ImageDown,
|
|
362
|
+
ImageOff,
|
|
363
|
+
ImageUp,
|
|
364
|
+
Info,
|
|
365
|
+
Keyboard,
|
|
366
|
+
LOCALE_PRESETS,
|
|
367
|
+
LandPlot,
|
|
368
|
+
Layout,
|
|
369
|
+
LayoutTemplate,
|
|
370
|
+
LibraryIcon,
|
|
371
|
+
Link,
|
|
372
|
+
Loader2,
|
|
373
|
+
LogIn,
|
|
374
|
+
LogOut,
|
|
375
|
+
MoreHorizontal,
|
|
376
|
+
MousePointerClick,
|
|
377
|
+
Palette,
|
|
378
|
+
PanelLeft,
|
|
379
|
+
PanelsTopLeft,
|
|
380
|
+
Pencil,
|
|
381
|
+
Pi,
|
|
382
|
+
ReceiptText,
|
|
383
|
+
Regex,
|
|
384
|
+
Replace,
|
|
385
|
+
Rss,
|
|
386
|
+
Scale,
|
|
387
|
+
Search,
|
|
388
|
+
Server,
|
|
389
|
+
Share,
|
|
390
|
+
ShieldUser,
|
|
391
|
+
Sparkles,
|
|
392
|
+
SplinePointer,
|
|
393
|
+
SquareDashedBottomCode,
|
|
394
|
+
SquareTerminal,
|
|
395
|
+
Star,
|
|
396
|
+
Tablets,
|
|
397
|
+
Terminal,
|
|
398
|
+
Twitter,
|
|
399
|
+
X,
|
|
400
|
+
Zap,
|
|
401
|
+
cn,
|
|
402
|
+
createCommonAppConfig,
|
|
403
|
+
createI18nHelpers,
|
|
404
|
+
formatTimestamp,
|
|
405
|
+
getLLMText
|
|
406
|
+
};
|
|
407
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils.ts","../src/limited-lucide-icons.ts","../src/llm-utils.ts","../src/common-app-config.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\nimport { format, isValid } from 'date-fns';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n\nexport function formatTimestamp(timestamp: string, formatter: string) {\n const fail = \"\";\n if (!timestamp) {\n return fail;\n }\n\n // Assume gitTimestamp is a millisecond timestamp string\n const timestampMs = parseInt(timestamp, 10);\n if (isNaN(timestampMs)) {\n return fail;\n }\n\n const date = new Date(timestampMs); // or if it is determined to be seconds, use fromUnixTime(timestampSeconds)\n\n // Check if the date is valid\n if (!isValid(date)) {\n return fail;\n }\n\n // Format the date\n try {\n // 'yyyy-MM-dd HH:mm:ss' is the date-fns formatting pattern\n return format(date, formatter);\n } catch (error) {\n // format may also throw an error due to an invalid date (although isValid should have already caught it)\n console.error(\"Error formatting date:\", error);\n return fail;\n }\n} ","/*\n * This file re-exports selected icons from 'lucide-react'.\n * This is the single place to manage which lucide-react icons are available globally.\n * Editing the list of exports here will automatically update their availability\n * in globalLucideIcons.\n */\nexport {\n AlbumIcon,\n AlignHorizontalJustifyEnd,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n Binary,\n Blocks,\n BookX,\n BringToFront,\n Building2,\n Bug,\n Car,\n Circle,\n CircleAlert,\n CircleSmall,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n Cpu,\n ComponentIcon,\n DatabaseZap,\n Dot,\n Download,\n Eye,\n ExternalLink,\n Facebook,\n FileLock2,\n Fingerprint,\n Gift,\n GitPullRequestArrow,\n Globe,\n GlobeLock,\n GripVertical,\n HandHeart,\n Handshake,\n Highlighter,\n HousePlus,\n Info,\n ImageDown,\n ImageOff,\n ImageUp,\n Keyboard,\n LandPlot,\n Layout,\n LayoutTemplate,\n LibraryIcon,\n Link,\n Loader2,\n LogIn,\n LogOut,\n MoreHorizontal,\n MousePointerClick,\n PanelLeft,\n PanelsTopLeft,\n Pencil,\n Pi,\n Palette,\n ReceiptText,\n Regex,\n Replace,\n Rss,\n Scale,\n Search,\n Share,\n ShieldUser,\n SquareDashedBottomCode,\n SquareTerminal,\n Server,\n SplinePointer,\n Sparkles,\n Star,\n Tablets,\n Terminal,\n Twitter,\n X,\n Zap\n} from 'lucide-react'; ","import { remark } from 'remark';\nimport remarkGfm from 'remark-gfm';\nimport remarkMdx from 'remark-mdx';\nimport remarkFrontmatter from 'remark-frontmatter';\nimport { visit } from 'unist-util-visit';\n\nfunction remarkRemoveFrontmatter() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (tree: any) => {\n visit(tree, 'yaml', (_node, index, parent) => {\n if (parent && typeof index === 'number') {\n parent.children.splice(index, 1);\n }\n });\n };\n}\n\n// remark(), parse the MDX file into MDAST\n// remarkPlugins(), parse the MDAST into HAST\n// rehypePlugins(), render the HAST into React components, i.e. HTML code\nconst processor = remark()\n // parse the md file header\n .use(remarkFrontmatter, ['yaml'])\n // remove the md file header\n .use(remarkRemoveFrontmatter)\n .use(remarkMdx)\n .use(remarkGfm);\n\nexport async function getLLMText(mdxContent: string, title?: string, description?: string) {\n if (typeof mdxContent !== 'string') {\n console.error('getLLMText: mdxContent received was not a string. Type:', typeof mdxContent);\n return `# Error\\n\\nInvalid content received by text processor.`;\n }\n\n try {\n const processed = await processor.process(mdxContent);\n const contentWithoutFrontmatter = processed.value as string;\n\n const markdownParts = [\n title ? `# ${title}` : null,\n description,\n contentWithoutFrontmatter.trim()\n ];\n\n return markdownParts.filter(part => part != null).join('\\n\\n');\n } catch (processingError) {\n console.error('Error during remark processing in getLLMText:', processingError);\n return `# Error\\n\\nError processing MDX content.`;\n }\n} ","// Supported languages and their labels\nconst ALL_LOCALE_LABELS = {\n en: \"English\",\n zh: \"简体中文\",\n ja: \"日本語\", \n ko: \"한국어\",\n fr: \"Français\",\n de: \"Deutsch\",\n es: \"Español\",\n it: \"Italiano\",\n pt: \"Português\",\n tr: \"Türkçe\",\n pl: \"Polski\",\n ru: \"Русский\",\n ar: \"العربية\",\n hi: \"हिन्दी\",\n th: \"ไทย\",\n vi: \"Tiếng Việt\",\n} as const;\n\nexport type SupportedLocale = keyof typeof ALL_LOCALE_LABELS;\n\n// Helper function to get language configuration from environment variables\nfunction getLocaleLabels(locales: string[]) {\n return Object.fromEntries(\n locales.map(locale => [\n locale, \n ALL_LOCALE_LABELS[locale as SupportedLocale] || locale\n ])\n );\n}\n\n// Common application configuration creation function\nexport function createCommonAppConfig(options?: {\n // Optional: manually specify supported languages, otherwise read from environment variables\n locales?: string[];\n defaultLocale?: string;\n}) {\n // Priority: manual configuration > environment variables > default values\n const locales = options?.locales ?? \n process.env.NEXT_PUBLIC_I18N_LOCALES?.split(',').map(s => s.trim()) ?? \n ['en', 'zh'];\n \n const defaultLocale = options?.defaultLocale ?? \n process.env.NEXT_PUBLIC_I18N_DEFAULT_LOCALE ?? \n 'en';\n \n const storagePrefix = process.env.NEXT_PUBLIC_I18N_STORAGE_PREFIX || 'WINDRUN-HUAIIN';\n\n const config = {\n // Basic configuration\n baseUrl: process.env.NEXT_PUBLIC_BASE_URL || '',\n githubBaseUrl: process.env.NEXT_PUBLIC_GITHUB_BASE_URL || '',\n github: process.env.NEXT_PUBLIC_GITHUB || '',\n githubInfoToken: process.env.NEXT_PUBLIC_FUMA_GITHUB_TOKEN || '',\n\n // Internationalization configuration\n i18n: {\n locales: locales as readonly string[],\n defaultLocale,\n localeLabels: getLocaleLabels(locales),\n detector: {\n storageKey: process.env.NEXT_PUBLIC_I18N_STORAGE_KEY || 'language-preference-status',\n autoCloseTimeout: parseInt(process.env.NEXT_PUBLIC_I18N_AUTO_CLOSE_TIMEOUT || '10000'),\n expirationDays: parseInt(process.env.NEXT_PUBLIC_I18N_EXPIRATION_DAYS || '30'),\n storagePrefix\n },\n messageRoot: process.env.NEXT_PUBLIC_I18N_MESSAGE_ROOT || 'messages',\n },\n\n // Style configuration\n style: {\n icon: {\n uniformColor: process.env.NEXT_PUBLIC_STYLE_ICON_COLOR || \"text-purple-500\"\n },\n showBanner: process.env.NEXT_PUBLIC_STYLE_SHOW_BANNER === 'true',\n clerkAuthInModal: process.env.NEXT_PUBLIC_STYLE_CLERK_AUTH_IN_MODAL === 'true',\n clerkPageBanner: process.env.NEXT_PUBLIC_STYLE_CLERK_PAGE_BANNER === 'true',\n watermark: {\n enabled: process.env.NEXT_PUBLIC_STYLE_WATERMARK_ENABLED === 'true',\n text: process.env.NEXT_PUBLIC_STYLE_WATERMARK_TEXT || \"巽川·怀因\"\n },\n cdnBaseUrl: process.env.NEXT_PUBLIC_STYLE_CDN_BASE_URL || \"https://raw.githubusercontent.com/caofanCPU/wind-run-1/main/public\",\n placeHolder: {\n image: process.env.NEXT_PUBLIC_STYLE_PLACEHOLDER_IMAGE || \"/default.webp\"\n }\n },\n\n // Clerk configuration\n clerk: {\n signInUrl: process.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL || \"/sign-in\",\n fallbackSignInUrl: process.env.NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL || \"/\",\n signUpUrl: process.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL || \"/sign-up\", \n fallbackSignUpUrl: process.env.NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL || \"/\",\n waitlistUrl: process.env.NEXT_PUBLIC_CLERK_WAITLIST_URL || \"/waitlist\",\n debug: process.env.CLERK_DEBUG === 'true',\n },\n\n // MDX source file directory configuration\n mdxSourceDir: {\n docs: process.env.NEXT_PUBLIC_MDX_DOCS_DIR || \"src/mdx/docs\",\n blog: process.env.NEXT_PUBLIC_MDX_BLOG_DIR || \"src/mdx/blog\", \n legal: process.env.NEXT_PUBLIC_MDX_LEGAL_DIR || \"src/mdx/legal\"\n },\n };\n\n // Convenient constants - avoid deep nested access\n const shortcuts = {\n iconColor: config.style.icon.uniformColor,\n watermark: config.style.watermark,\n showBanner: config.style.showBanner,\n clerkPageBanner: config.style.clerkPageBanner,\n clerkAuthInModal: config.style.clerkAuthInModal,\n placeHolderImage: config.style.placeHolder.image,\n clerk: config.clerk,\n };\n\n return {\n ...config,\n shortcuts\n };\n}\n\n// Create internationalization helper functions\nexport function createI18nHelpers(i18nConfig: ReturnType<typeof createCommonAppConfig>['i18n']) {\n function isSupportedLocale(locale: string): locale is typeof i18nConfig.locales[number] {\n return (i18nConfig.locales as readonly string[]).includes(locale);\n }\n\n function getValidLocale(locale: string): typeof i18nConfig.locales[number] {\n return isSupportedLocale(locale) ? locale : i18nConfig.defaultLocale;\n }\n\n const generatedLocales = i18nConfig.locales.map((loc) => ({\n name: i18nConfig.localeLabels[loc as keyof typeof i18nConfig.localeLabels] || loc,\n locale: loc,\n }));\n\n return {\n isSupportedLocale,\n getValidLocale,\n generatedLocales\n };\n}\n\n// Convenient configuration presets\nexport const LOCALE_PRESETS = {\n // Only support English\n EN_ONLY: { locales: ['en'] as string[], defaultLocale: 'en' as string },\n \n // English and Chinese\n EN_ZH: { locales: ['en', 'zh'] as string[], defaultLocale: 'en' as string },\n \n // Main Asian languages\n ASIA: { locales: ['en', 'zh', 'ja', 'ko'] as string[], defaultLocale: 'en' as string },\n \n // Main European languages\n EUROPE: { locales: ['en', 'fr', 'de', 'es', 'it'] as string[], defaultLocale: 'en' as string },\n \n // Globalization\n GLOBAL: { locales: ['en', 'zh', 'ja', 'ko', 'fr', 'de', 'es', 'it', 'pt', 'ru'] as string[], defaultLocale: 'en' as string },\n \n // No internationalization (only default language)\n NONE: { locales: [] as string[], defaultLocale: 'en' as string }\n}; "],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAA6B;AACtC,SAAS,eAAe;AACxB,SAAS,QAAQ,eAAe;AAEzB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAEO,SAAS,gBAAgB,WAAmB,WAAmB;AACpE,QAAM,OAAO;AACb,MAAI,CAAC,WAAW;AACd,WAAO;AAAA,EACT;AAGA,QA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IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAGO,IAAM,iBAAiB;AAAA;AAAA,EAE5B,SAAS,EAAE,SAAS,CAAC,IAAI,GAAe,eAAe,KAAe;AAAA;AAAA,EAGtE,OAAO,EAAE,SAAS,CAAC,MAAM,IAAI,GAAe,eAAe,KAAe;AAAA;AAAA,EAG1E,MAAM,EAAE,SAAS,CAAC,MAAM,MAAM,MAAM,IAAI,GAAe,eAAe,KAAe;AAAA;AAAA,EAGrF,QAAQ,EAAE,SAAS,CAAC,MAAM,MAAM,MAAM,MAAM,IAAI,GAAe,eAAe,KAAe;AAAA;AAAA,EAG7F,QAAQ,EAAE,SAAS,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI,GAAe,eAAe,KAAe;AAAA;AAAA,EAG3H,MAAM,EAAE,SAAS,CAAC,GAAe,eAAe,KAAe;AACjE;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AlbumIcon, AlignHorizontalJustifyEnd, ArrowLeft, ArrowRight, ArrowUp, Binary, Blocks, BookX, BringToFront, Bug, Building2, Car, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Circle, CircleAlert, CircleSmall, ComponentIcon, Cpu, DatabaseZap, Dot, Download, ExternalLink, Eye, Facebook, FileLock2, Fingerprint, Gift, GitPullRequestArrow, Globe, GlobeLock, GripVertical, HandHeart, Handshake, Highlighter, HousePlus, ImageDown, ImageOff, ImageUp, Info, Keyboard, LandPlot, Layout, LayoutTemplate, LibraryIcon, Link, Loader2, LogIn, LogOut, MoreHorizontal, MousePointerClick, Palette, PanelLeft, PanelsTopLeft, Pencil, Pi, ReceiptText, Regex, Replace, Rss, Scale, Search, Server, Share, ShieldUser, Sparkles, SplinePointer, SquareDashedBottomCode, SquareTerminal, Star, Tablets, Terminal, Twitter, X, Zap } from 'lucide-react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AlbumIcon, AlignHorizontalJustifyEnd, ArrowLeft, ArrowRight, ArrowUp, Binary, Blocks, BookX, BringToFront, Bug, Building2, Car, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Circle, CircleAlert, CircleSmall, ComponentIcon, Cpu, DatabaseZap, Dot, Download, ExternalLink, Eye, Facebook, FileLock2, Fingerprint, Gift, GitPullRequestArrow, Globe, GlobeLock, GripVertical, HandHeart, Handshake, Highlighter, HousePlus, ImageDown, ImageOff, ImageUp, Info, Keyboard, LandPlot, Layout, LayoutTemplate, LibraryIcon, Link, Loader2, LogIn, LogOut, MoreHorizontal, MousePointerClick, Palette, PanelLeft, PanelsTopLeft, Pencil, Pi, ReceiptText, Regex, Replace, Rss, Scale, Search, Server, Share, ShieldUser, Sparkles, SplinePointer, SquareDashedBottomCode, SquareTerminal, Star, Tablets, Terminal, Twitter, X, Zap } from 'lucide-react';
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/limited-lucide-icons.ts
|
|
21
|
+
var limited_lucide_icons_exports = {};
|
|
22
|
+
__export(limited_lucide_icons_exports, {
|
|
23
|
+
AlbumIcon: () => import_lucide_react.AlbumIcon,
|
|
24
|
+
AlignHorizontalJustifyEnd: () => import_lucide_react.AlignHorizontalJustifyEnd,
|
|
25
|
+
ArrowLeft: () => import_lucide_react.ArrowLeft,
|
|
26
|
+
ArrowRight: () => import_lucide_react.ArrowRight,
|
|
27
|
+
ArrowUp: () => import_lucide_react.ArrowUp,
|
|
28
|
+
Binary: () => import_lucide_react.Binary,
|
|
29
|
+
Blocks: () => import_lucide_react.Blocks,
|
|
30
|
+
BookX: () => import_lucide_react.BookX,
|
|
31
|
+
BringToFront: () => import_lucide_react.BringToFront,
|
|
32
|
+
Bug: () => import_lucide_react.Bug,
|
|
33
|
+
Building2: () => import_lucide_react.Building2,
|
|
34
|
+
Car: () => import_lucide_react.Car,
|
|
35
|
+
Check: () => import_lucide_react.Check,
|
|
36
|
+
ChevronDown: () => import_lucide_react.ChevronDown,
|
|
37
|
+
ChevronLeft: () => import_lucide_react.ChevronLeft,
|
|
38
|
+
ChevronRight: () => import_lucide_react.ChevronRight,
|
|
39
|
+
ChevronUp: () => import_lucide_react.ChevronUp,
|
|
40
|
+
Circle: () => import_lucide_react.Circle,
|
|
41
|
+
CircleAlert: () => import_lucide_react.CircleAlert,
|
|
42
|
+
CircleSmall: () => import_lucide_react.CircleSmall,
|
|
43
|
+
ComponentIcon: () => import_lucide_react.ComponentIcon,
|
|
44
|
+
Cpu: () => import_lucide_react.Cpu,
|
|
45
|
+
DatabaseZap: () => import_lucide_react.DatabaseZap,
|
|
46
|
+
Dot: () => import_lucide_react.Dot,
|
|
47
|
+
Download: () => import_lucide_react.Download,
|
|
48
|
+
ExternalLink: () => import_lucide_react.ExternalLink,
|
|
49
|
+
Eye: () => import_lucide_react.Eye,
|
|
50
|
+
Facebook: () => import_lucide_react.Facebook,
|
|
51
|
+
FileLock2: () => import_lucide_react.FileLock2,
|
|
52
|
+
Fingerprint: () => import_lucide_react.Fingerprint,
|
|
53
|
+
Gift: () => import_lucide_react.Gift,
|
|
54
|
+
GitPullRequestArrow: () => import_lucide_react.GitPullRequestArrow,
|
|
55
|
+
Globe: () => import_lucide_react.Globe,
|
|
56
|
+
GlobeLock: () => import_lucide_react.GlobeLock,
|
|
57
|
+
GripVertical: () => import_lucide_react.GripVertical,
|
|
58
|
+
HandHeart: () => import_lucide_react.HandHeart,
|
|
59
|
+
Handshake: () => import_lucide_react.Handshake,
|
|
60
|
+
Highlighter: () => import_lucide_react.Highlighter,
|
|
61
|
+
HousePlus: () => import_lucide_react.HousePlus,
|
|
62
|
+
ImageDown: () => import_lucide_react.ImageDown,
|
|
63
|
+
ImageOff: () => import_lucide_react.ImageOff,
|
|
64
|
+
ImageUp: () => import_lucide_react.ImageUp,
|
|
65
|
+
Info: () => import_lucide_react.Info,
|
|
66
|
+
Keyboard: () => import_lucide_react.Keyboard,
|
|
67
|
+
LandPlot: () => import_lucide_react.LandPlot,
|
|
68
|
+
Layout: () => import_lucide_react.Layout,
|
|
69
|
+
LayoutTemplate: () => import_lucide_react.LayoutTemplate,
|
|
70
|
+
LibraryIcon: () => import_lucide_react.LibraryIcon,
|
|
71
|
+
Link: () => import_lucide_react.Link,
|
|
72
|
+
Loader2: () => import_lucide_react.Loader2,
|
|
73
|
+
LogIn: () => import_lucide_react.LogIn,
|
|
74
|
+
LogOut: () => import_lucide_react.LogOut,
|
|
75
|
+
MoreHorizontal: () => import_lucide_react.MoreHorizontal,
|
|
76
|
+
MousePointerClick: () => import_lucide_react.MousePointerClick,
|
|
77
|
+
Palette: () => import_lucide_react.Palette,
|
|
78
|
+
PanelLeft: () => import_lucide_react.PanelLeft,
|
|
79
|
+
PanelsTopLeft: () => import_lucide_react.PanelsTopLeft,
|
|
80
|
+
Pencil: () => import_lucide_react.Pencil,
|
|
81
|
+
Pi: () => import_lucide_react.Pi,
|
|
82
|
+
ReceiptText: () => import_lucide_react.ReceiptText,
|
|
83
|
+
Regex: () => import_lucide_react.Regex,
|
|
84
|
+
Replace: () => import_lucide_react.Replace,
|
|
85
|
+
Rss: () => import_lucide_react.Rss,
|
|
86
|
+
Scale: () => import_lucide_react.Scale,
|
|
87
|
+
Search: () => import_lucide_react.Search,
|
|
88
|
+
Server: () => import_lucide_react.Server,
|
|
89
|
+
Share: () => import_lucide_react.Share,
|
|
90
|
+
ShieldUser: () => import_lucide_react.ShieldUser,
|
|
91
|
+
Sparkles: () => import_lucide_react.Sparkles,
|
|
92
|
+
SplinePointer: () => import_lucide_react.SplinePointer,
|
|
93
|
+
SquareDashedBottomCode: () => import_lucide_react.SquareDashedBottomCode,
|
|
94
|
+
SquareTerminal: () => import_lucide_react.SquareTerminal,
|
|
95
|
+
Star: () => import_lucide_react.Star,
|
|
96
|
+
Tablets: () => import_lucide_react.Tablets,
|
|
97
|
+
Terminal: () => import_lucide_react.Terminal,
|
|
98
|
+
Twitter: () => import_lucide_react.Twitter,
|
|
99
|
+
X: () => import_lucide_react.X,
|
|
100
|
+
Zap: () => import_lucide_react.Zap
|
|
101
|
+
});
|
|
102
|
+
module.exports = __toCommonJS(limited_lucide_icons_exports);
|
|
103
|
+
var import_lucide_react = require("lucide-react");
|
|
104
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
105
|
+
0 && (module.exports = {
|
|
106
|
+
AlbumIcon,
|
|
107
|
+
AlignHorizontalJustifyEnd,
|
|
108
|
+
ArrowLeft,
|
|
109
|
+
ArrowRight,
|
|
110
|
+
ArrowUp,
|
|
111
|
+
Binary,
|
|
112
|
+
Blocks,
|
|
113
|
+
BookX,
|
|
114
|
+
BringToFront,
|
|
115
|
+
Bug,
|
|
116
|
+
Building2,
|
|
117
|
+
Car,
|
|
118
|
+
Check,
|
|
119
|
+
ChevronDown,
|
|
120
|
+
ChevronLeft,
|
|
121
|
+
ChevronRight,
|
|
122
|
+
ChevronUp,
|
|
123
|
+
Circle,
|
|
124
|
+
CircleAlert,
|
|
125
|
+
CircleSmall,
|
|
126
|
+
ComponentIcon,
|
|
127
|
+
Cpu,
|
|
128
|
+
DatabaseZap,
|
|
129
|
+
Dot,
|
|
130
|
+
Download,
|
|
131
|
+
ExternalLink,
|
|
132
|
+
Eye,
|
|
133
|
+
Facebook,
|
|
134
|
+
FileLock2,
|
|
135
|
+
Fingerprint,
|
|
136
|
+
Gift,
|
|
137
|
+
GitPullRequestArrow,
|
|
138
|
+
Globe,
|
|
139
|
+
GlobeLock,
|
|
140
|
+
GripVertical,
|
|
141
|
+
HandHeart,
|
|
142
|
+
Handshake,
|
|
143
|
+
Highlighter,
|
|
144
|
+
HousePlus,
|
|
145
|
+
ImageDown,
|
|
146
|
+
ImageOff,
|
|
147
|
+
ImageUp,
|
|
148
|
+
Info,
|
|
149
|
+
Keyboard,
|
|
150
|
+
LandPlot,
|
|
151
|
+
Layout,
|
|
152
|
+
LayoutTemplate,
|
|
153
|
+
LibraryIcon,
|
|
154
|
+
Link,
|
|
155
|
+
Loader2,
|
|
156
|
+
LogIn,
|
|
157
|
+
LogOut,
|
|
158
|
+
MoreHorizontal,
|
|
159
|
+
MousePointerClick,
|
|
160
|
+
Palette,
|
|
161
|
+
PanelLeft,
|
|
162
|
+
PanelsTopLeft,
|
|
163
|
+
Pencil,
|
|
164
|
+
Pi,
|
|
165
|
+
ReceiptText,
|
|
166
|
+
Regex,
|
|
167
|
+
Replace,
|
|
168
|
+
Rss,
|
|
169
|
+
Scale,
|
|
170
|
+
Search,
|
|
171
|
+
Server,
|
|
172
|
+
Share,
|
|
173
|
+
ShieldUser,
|
|
174
|
+
Sparkles,
|
|
175
|
+
SplinePointer,
|
|
176
|
+
SquareDashedBottomCode,
|
|
177
|
+
SquareTerminal,
|
|
178
|
+
Star,
|
|
179
|
+
Tablets,
|
|
180
|
+
Terminal,
|
|
181
|
+
Twitter,
|
|
182
|
+
X,
|
|
183
|
+
Zap
|
|
184
|
+
});
|
|
185
|
+
//# sourceMappingURL=limited-lucide-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/limited-lucide-icons.ts"],"sourcesContent":["/*\n * This file re-exports selected icons from 'lucide-react'.\n * This is the single place to manage which lucide-react icons are available globally.\n * Editing the list of exports here will automatically update their availability\n * in globalLucideIcons.\n */\nexport {\n AlbumIcon,\n AlignHorizontalJustifyEnd,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n Binary,\n Blocks,\n BookX,\n BringToFront,\n Building2,\n Bug,\n Car,\n Circle,\n CircleAlert,\n CircleSmall,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n Cpu,\n ComponentIcon,\n DatabaseZap,\n Dot,\n Download,\n Eye,\n ExternalLink,\n Facebook,\n FileLock2,\n Fingerprint,\n Gift,\n GitPullRequestArrow,\n Globe,\n GlobeLock,\n GripVertical,\n HandHeart,\n Handshake,\n Highlighter,\n HousePlus,\n Info,\n ImageDown,\n ImageOff,\n ImageUp,\n Keyboard,\n LandPlot,\n Layout,\n LayoutTemplate,\n LibraryIcon,\n Link,\n Loader2,\n LogIn,\n LogOut,\n MoreHorizontal,\n MousePointerClick,\n PanelLeft,\n PanelsTopLeft,\n Pencil,\n Pi,\n Palette,\n ReceiptText,\n Regex,\n Replace,\n Rss,\n Scale,\n Search,\n Share,\n ShieldUser,\n SquareDashedBottomCode,\n SquareTerminal,\n Server,\n SplinePointer,\n Sparkles,\n Star,\n Tablets,\n Terminal,\n Twitter,\n X,\n Zap\n} from 'lucide-react'; "],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,0BA+EO;","names":[]}
|