valaxy 0.26.0 → 0.26.1

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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
3
 
4
- import { run } from '../dist/node/cli/index.js'
4
+ import { run } from '../dist/node/cli/index.mjs'
5
5
 
6
6
  function main() {
7
7
  run()
@@ -1,6 +1,6 @@
1
1
  import { useHead } from '@unhead/vue'
2
- import pkg from 'valaxy/package.json'
3
2
  import { computed } from 'vue'
3
+ import pkg from '../../../package.json' with { type: 'json' }
4
4
 
5
5
  import { useFrontmatter, useValaxyI18n } from '../../composables'
6
6
  import { useSiteConfig } from '../../config'
@@ -0,0 +1,65 @@
1
+ import 'node:process';
2
+ import 'yargs';
3
+ import 'yargs/helpers';
4
+ export { c as cli, d as registerDevCommand, r as run, a as startValaxyDev } from '../../shared/valaxy.DYu2a9p6.mjs';
5
+ import 'node:path';
6
+ import 'consola';
7
+ import 'consola/utils';
8
+ import 'fast-glob';
9
+ import 'fs-extra';
10
+ import 'gray-matter';
11
+ import '@antfu/utils';
12
+ import 'debug';
13
+ import 'pathe';
14
+ import 'defu';
15
+ import 'vite';
16
+ import 'node:crypto';
17
+ import 'floating-vue';
18
+ import 'define-config-ts';
19
+ import 'ora';
20
+ import 'cross-spawn';
21
+ import 'mlly';
22
+ import 'resolve-global';
23
+ import 'node:fs/promises';
24
+ import 'js-yaml';
25
+ import 'dayjs';
26
+ import 'feed';
27
+ import 'markdown-it';
28
+ import 'table';
29
+ import 'hookable';
30
+ import 'vite-ssg-sitemap';
31
+ import 'vite-ssg/node';
32
+ import '@intlify/unplugin-vue-i18n/vite';
33
+ import '@unhead/addons/vite';
34
+ import 'unplugin-vue-components/vite';
35
+ import 'vite-plugin-vue-layouts';
36
+ import 'vitepress-plugin-group-icons';
37
+ import 'markdown-it-async';
38
+ import '@shikijs/transformers';
39
+ import 'shiki';
40
+ import 'css-i18n';
41
+ import 'markdown-it-anchor';
42
+ import 'markdown-it-attrs';
43
+ import 'markdown-it-emoji';
44
+ import 'markdown-it-footnote';
45
+ import 'markdown-it-image-figures';
46
+ import 'markdown-it-task-lists';
47
+ import 'node:url';
48
+ import 'markdown-it-container';
49
+ import 'katex';
50
+ import 'unplugin-vue-markdown/vite';
51
+ import 'js-base64';
52
+ import 'node:fs';
53
+ import 'jiti';
54
+ import 'unocss';
55
+ import 'pascalcase';
56
+ import 'lru-cache';
57
+ import 'html-to-text';
58
+ import 'unplugin-vue-router/vite';
59
+ import 'node:os';
60
+ import '@clack/prompts';
61
+ import 'node:net';
62
+ import 'node:child_process';
63
+ import 'node:readline';
64
+ import 'qrcode';
65
+ import 'ejs';
@@ -2,8 +2,7 @@ import { ViteSSGOptions } from 'vite-ssg';
2
2
  import * as vite from 'vite';
3
3
  import { UserConfig, InlineConfig, ViteDevServer, PluginOption, Plugin } from 'vite';
4
4
  import { MarkdownEnv } from 'unplugin-vue-markdown/types';
5
- import * as valaxy_types from 'valaxy/types';
6
- import { DefaultTheme, ValaxyConfig, ValaxyAddon, PartialDeep, RuntimeConfig, RedirectItem, SiteConfig, UserSiteConfig } from 'valaxy/types';
5
+ import { DefaultTheme, ValaxyConfig, ValaxyAddon, PartialDeep as PartialDeep$1, RuntimeConfig, RedirectItem, SiteConfig, UserSiteConfig } from 'valaxy/types';
7
6
  import Vue from '@vitejs/plugin-vue';
8
7
  import { Options as Options$2 } from 'beasties';
9
8
  import { Hookable } from 'hookable';
@@ -16,25 +15,17 @@ import { EditableTreeNode } from 'unplugin-vue-router';
16
15
  import Router from 'unplugin-vue-router/vite';
17
16
  import Layouts from 'vite-plugin-vue-layouts';
18
17
  import { Options as Options$1 } from 'vitepress-plugin-group-icons';
19
- import { HeadersPluginOptions } from '@mdit-vue/plugin-headers';
20
- import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
21
- import { TocPluginOptions } from '@mdit-vue/plugin-toc';
22
18
  import { KatexOptions } from 'katex';
23
19
  import MarkdownIt from 'markdown-it';
24
20
  import anchorPlugin from 'markdown-it-anchor';
25
21
  import { Options, MarkdownItAsync } from 'markdown-it-async';
26
22
  import { ThemeRegistration, BuiltinTheme, LanguageInput, ShikiTransformer, Highlighter } from 'shiki';
27
- export { cli, registerDevCommand, run, startValaxyDev } from './cli/index.js';
23
+ export { cli, registerDevCommand, run, startValaxyDev } from './cli/index.mjs';
28
24
  import { Awaitable } from '@antfu/utils';
29
- import { V as ValaxyAddon$1, D as DefaultTheme$1, P as PartialDeep$1 } from '../config-Dz-VnMOz.js';
25
+ import { V as ValaxyAddon$1, D as DefaultTheme$1 } from '../shared/valaxy.D_ue8jlC.mjs';
30
26
  import * as defu from 'defu';
31
27
  import 'yargs';
32
- import '@vueuse/integrations/useFuse';
33
- import 'medium-zoom';
34
- import 'vanilla-lazyload';
35
- import 'vue-router';
36
28
  import '@vueuse/core';
37
- import '@unhead/schema-org';
38
29
 
39
30
  declare module 'vite' {
40
31
  interface UserConfig {
@@ -48,6 +39,233 @@ declare module 'vite' {
48
39
  */
49
40
  declare function createValaxyNode(options: ResolvedValaxyOptions): ValaxyNode;
50
41
 
42
+ interface MarkdownItHeader {
43
+ /**
44
+ * The level of the header
45
+ *
46
+ * `1` to `6` for `<h1>` to `<h6>`
47
+ */
48
+ level: number;
49
+ /**
50
+ * The title of the header
51
+ */
52
+ title: string;
53
+ /**
54
+ * The slug of the header
55
+ *
56
+ * Typically the `id` attr of the header anchor
57
+ */
58
+ slug: string;
59
+ /**
60
+ * Link of the header
61
+ *
62
+ * Typically using `#${slug}` as the anchor hash
63
+ */
64
+ link: string;
65
+ /**
66
+ * The children of the header
67
+ */
68
+ children: MarkdownItHeader[];
69
+ }
70
+
71
+ /**
72
+ * Options of @mdit-vue/plugin-headers
73
+ */
74
+ interface HeadersPluginOptions {
75
+ /**
76
+ * A custom slugification function
77
+ *
78
+ * Should use the same slugify function with markdown-it-anchor
79
+ * to ensure the link is matched
80
+ */
81
+ slugify?: (str: string) => string;
82
+ /**
83
+ * A function for formatting header title
84
+ */
85
+ format?: (str: string) => string;
86
+ /**
87
+ * Heading level that going to be extracted
88
+ *
89
+ * Should be a subset of markdown-it-anchor's `level` option
90
+ * to ensure the slug is existed
91
+ *
92
+ * @default [2,3]
93
+ */
94
+ level?: number[];
95
+ /**
96
+ * Should allow headers inside nested blocks or not
97
+ *
98
+ * If set to `true`, headers inside blockquote, list, etc. would also be extracted.
99
+ *
100
+ * @default false
101
+ */
102
+ shouldAllowNested?: boolean;
103
+ }
104
+ declare module '@mdit-vue/types' {
105
+ interface MarkdownItEnv {
106
+ /**
107
+ * The headers that extracted by `@mdit-vue/plugin-headers`
108
+ */
109
+ headers?: MarkdownItHeader[];
110
+ }
111
+ }
112
+
113
+ /**
114
+ * Options of @mdit-vue/plugin-sfc
115
+ */
116
+ interface SfcPluginOptions {
117
+ /**
118
+ * Custom blocks to be extracted
119
+ *
120
+ * @default []
121
+ */
122
+ customBlocks?: string[];
123
+ }
124
+ /**
125
+ * SFC block that extracted from markdown
126
+ */
127
+ interface SfcBlock {
128
+ /**
129
+ * The type of the block
130
+ */
131
+ type: string;
132
+ /**
133
+ * The content, including open-tag and close-tag
134
+ */
135
+ content: string;
136
+ /**
137
+ * The content that stripped open-tag and close-tag off
138
+ */
139
+ contentStripped: string;
140
+ /**
141
+ * The open-tag
142
+ */
143
+ tagOpen: string;
144
+ /**
145
+ * The close-tag
146
+ */
147
+ tagClose: string;
148
+ }
149
+ interface MarkdownSfcBlocks {
150
+ /**
151
+ * The `<template>` block
152
+ */
153
+ template: SfcBlock | null;
154
+ /**
155
+ * The common `<script>` block
156
+ */
157
+ script: SfcBlock | null;
158
+ /**
159
+ * The `<script setup>` block
160
+ */
161
+ scriptSetup: SfcBlock | null;
162
+ /**
163
+ * All `<script>` blocks.
164
+ *
165
+ * By default, SFC only allows one `<script>` block and one `<script setup>` block.
166
+ * However, some tools may support different types of `<script>`s, so we keep all of them here.
167
+ */
168
+ scripts: SfcBlock[];
169
+ /**
170
+ * All `<style>` blocks.
171
+ */
172
+ styles: SfcBlock[];
173
+ /**
174
+ * All custom blocks.
175
+ */
176
+ customBlocks: SfcBlock[];
177
+ }
178
+ declare module '@mdit-vue/types' {
179
+ interface MarkdownItEnv {
180
+ /**
181
+ * SFC blocks that extracted by `@mdit-vue/plugin-sfc`
182
+ */
183
+ sfcBlocks?: MarkdownSfcBlocks;
184
+ }
185
+ }
186
+
187
+ /**
188
+ * Options of @mdit-vue/plugin-toc
189
+ */
190
+ interface TocPluginOptions {
191
+ /**
192
+ * The pattern serving as the TOC placeholder in your markdown
193
+ *
194
+ * @default /^\[\[toc\]\]$/i
195
+ */
196
+ pattern?: RegExp;
197
+ /**
198
+ * A custom slugification function
199
+ *
200
+ * Should use the same slugify function with markdown-it-anchor
201
+ * to ensure the link is matched
202
+ */
203
+ slugify?: (str: string) => string;
204
+ /**
205
+ * A function for formatting headings
206
+ */
207
+ format?: (str: string) => string;
208
+ /**
209
+ * Heading level that going to be included in the TOC
210
+ *
211
+ * Should be a subset of markdown-it-anchor's `level` option
212
+ * to ensure the link is existed
213
+ *
214
+ * @default [2,3]
215
+ */
216
+ level?: number[];
217
+ /**
218
+ * Should allow headers inside nested blocks or not
219
+ *
220
+ * If set to `true`, headers inside blockquote, list, etc. would also be included.
221
+ *
222
+ * @default false
223
+ */
224
+ shouldAllowNested?: boolean;
225
+ /**
226
+ * HTML tag of the TOC container
227
+ *
228
+ * @default 'nav'
229
+ */
230
+ containerTag?: string;
231
+ /**
232
+ * The class for the TOC container
233
+ *
234
+ * @default 'table-of-contents'
235
+ */
236
+ containerClass?: string;
237
+ /**
238
+ * HTML tag of the TOC list
239
+ *
240
+ * @default 'ul'
241
+ */
242
+ listTag?: 'ol' | 'ul';
243
+ /**
244
+ * The class for the TOC list
245
+ *
246
+ * @default ''
247
+ */
248
+ listClass?: string;
249
+ /**
250
+ * The class for the `<li>` tag
251
+ *
252
+ * @default ''
253
+ */
254
+ itemClass?: string;
255
+ /**
256
+ * The tag of the link inside `<li>` tag
257
+ *
258
+ * @default 'a'
259
+ */
260
+ linkTag?: 'a' | 'router-link';
261
+ /**
262
+ * The class for the link inside the `<li>` tag
263
+ *
264
+ * @default ''
265
+ */
266
+ linkClass?: string;
267
+ }
268
+
51
269
  interface BlockItem {
52
270
  text?: string;
53
271
  icon?: string;
@@ -179,7 +397,7 @@ interface MarkdownOptions extends Options {
179
397
  }
180
398
 
181
399
  type ValaxyNodeConfig<ThemeConfig = DefaultTheme.Config> = ValaxyConfig<ThemeConfig> & ValaxyExtendConfig;
182
- type UserValaxyNodeConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyNodeConfig<ThemeConfig>>;
400
+ type UserValaxyNodeConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep$1<ValaxyNodeConfig<ThemeConfig>>;
183
401
  /**
184
402
  * fn with options for theme config
185
403
  */
@@ -503,7 +721,7 @@ declare function resolveOptions(options?: ValaxyEntryOptions, mode?: ResolvedVal
503
721
  * resolve theme config
504
722
  * @param options
505
723
  */
506
- declare function resolveThemeValaxyConfig(options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
724
+ declare function resolveThemeValaxyConfig(options: ResolvedValaxyOptions): Promise<any>;
507
725
 
508
726
  declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
509
727
  declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
@@ -533,7 +751,7 @@ declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptio
533
751
  setup?: ValaxyAddonResolver["setup"];
534
752
  };
535
753
  declare const defineAddon: typeof defineValaxyAddon;
536
- declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
754
+ declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<any>;
537
755
 
538
756
  interface LoadConfigFromFileOptions {
539
757
  cwd?: string;
@@ -544,24 +762,24 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
544
762
  config: T;
545
763
  configFile: string;
546
764
  }
547
- declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
765
+ declare function loadConfigFromFile<T extends UserInputConfig>(name: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
548
766
 
549
767
  declare const defaultSiteConfig: SiteConfig;
550
768
  /**
551
769
  * Type helper for site.config.ts
552
770
  * @param config
553
771
  */
554
- declare function defineSiteConfig(config: UserSiteConfig): valaxy_types.PartialDeep<SiteConfig>;
772
+ declare function defineSiteConfig(config: UserSiteConfig): UserSiteConfig;
555
773
  /**
556
774
  * resolve valaxy config from special root
557
775
  */
558
- declare function resolveSiteConfigFromRoot(root: string): Promise<ResolvedConfig<valaxy_types.PartialDeep<SiteConfig>>>;
776
+ declare function resolveSiteConfigFromRoot(root: string): Promise<ResolvedConfig<UserSiteConfig>>;
559
777
  /**
560
778
  * resolve site.config.ts and merge with default
561
779
  * @param root
562
780
  */
563
781
  declare function resolveSiteConfig(root: string): Promise<{
564
- siteConfig: valaxy_types.PartialDeep<SiteConfig>;
782
+ siteConfig: UserSiteConfig;
565
783
  siteConfigFile: string;
566
784
  }>;
567
785
 
@@ -572,7 +790,10 @@ declare function resolveThemeConfigFromRoot(root: string): Promise<ResolvedConfi
572
790
  /**
573
791
  * resolve theme.config.ts and merge with default
574
792
  */
575
- declare function resolveUserThemeConfig(options: ResolvedValaxyOptions): Promise<{
793
+ declare function resolveUserThemeConfig(options: {
794
+ userRoot: string;
795
+ themeRoot: string;
796
+ }): Promise<{
576
797
  themeConfig: DefaultTheme$1.Config;
577
798
  themeConfigFile: string;
578
799
  }>;
@@ -588,9 +809,9 @@ declare const defaultValaxyConfig: ValaxyNodeConfig;
588
809
  /**
589
810
  * Type helper for valaxy.config.ts
590
811
  */
591
- declare function defineValaxyConfig<ThemeConfig>(config: UserValaxyNodeConfig<ThemeConfig>): PartialDeep$1<ValaxyNodeConfig<ThemeConfig>>;
812
+ declare function defineValaxyConfig<ThemeConfig>(config: UserValaxyNodeConfig<ThemeConfig>): PartialDeep<any>;
592
813
  declare const defineConfig: typeof defineValaxyConfig;
593
- declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<ResolvedConfig<ValaxyNodeConfig>>;
814
+ declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<ResolvedConfig<any>>;
594
815
  /**
595
816
  * merge valaxy.config
596
817
  * (source, default)
@@ -610,9 +831,9 @@ declare const mergeValaxyConfig: <Source extends {
610
831
  * @param options
611
832
  */
612
833
  declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
613
- config: ValaxyNodeConfig;
834
+ config: any;
614
835
  configFile: string;
615
- theme: string;
836
+ theme: any;
616
837
  }>;
617
838
 
618
839
  type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
@@ -628,6 +849,8 @@ declare const customElements: Set<string>;
628
849
  */
629
850
  declare const defaultViteConfig: UserConfig;
630
851
 
852
+ declare let version: string;
853
+
631
854
  declare const GLOBAL_STATE: {
632
855
  valaxyApp: ValaxyApp | undefined;
633
856
  server: ViteDevServer | undefined;
@@ -693,4 +916,5 @@ declare function toAtFS(path: string): string;
693
916
  declare function resolveImportPath(importName: string, ensure?: true): Promise<string>;
694
917
  declare function resolveImportPath(importName: string, ensure?: boolean): Promise<string | undefined>;
695
918
 
696
- export { $t, ALL_ROUTE, EXCERPT_SEPARATOR, GLOBAL_STATE, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyApp, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, ViteValaxyPlugins, build, createServer, createValaxyPlugin, customElements, defaultSiteConfig, defaultValaxyConfig, defaultViteConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, generateClientRedirects, getGitTimestamp, getIndexHtml, getServerInfoText, isExternal, isInstalledGlobally, isPath, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveImportUrl, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, ssgBuild, toAtFS, transformObject };
919
+ export { $t, ALL_ROUTE, EXCERPT_SEPARATOR, GLOBAL_STATE, PATHNAME_PROTOCOL_RE, ViteValaxyPlugins, build, createServer, createValaxyPlugin, customElements, defaultSiteConfig, defaultValaxyConfig, defaultViteConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, generateClientRedirects, getGitTimestamp, getIndexHtml, getServerInfoText, isExternal, isInstalledGlobally, isPath, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveImportUrl, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, ssgBuild, toAtFS, transformObject, version };
920
+ export type { HookResult, LoadConfigFromFileOptions, ResolvedConfig, ResolvedValaxyOptions, UnoSetup, UserInputConfig, UserValaxyNodeConfig, ValaxyAddonExport, ValaxyAddonFn, ValaxyAddonLike, ValaxyAddonResolver, ValaxyAddons, ValaxyApp, ValaxyConfigExport, ValaxyConfigExtendKey, ValaxyConfigFn, ValaxyEntryOptions, ValaxyExtendConfig, ValaxyHooks, ValaxyNode, ValaxyNodeConfig, ValaxyPickConfig, ValaxyServerOptions, ValaxyTheme };
@@ -0,0 +1,75 @@
1
+ export { C as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, V as ViteValaxyPlugins, b as build, c as cli, N as createServer, L as createValaxyPlugin, D as customElements, j as defaultSiteConfig, w as defaultValaxyConfig, F as defaultViteConfig, h as defineAddon, y as defineConfig, k as defineSiteConfig, u as defineTheme, f as defineValaxyAddon, x as defineValaxyConfig, t as defineValaxyTheme, g as generateClientRedirects, O as getGitTimestamp, e as getIndexHtml, M as getServerInfoText, Q as isExternal, T as isInstalledGlobally, R as isPath, v as loadConfigFromFile, A as mergeValaxyConfig, m as mergeViteConfigs, p as postProcessForSSG, I as processValaxyOptions, d as registerDevCommand, i as resolveAddonsConfig, X as resolveImportPath, U as resolveImportUrl, J as resolveOptions, n as resolveSiteConfig, l as resolveSiteConfigFromRoot, o as resolveThemeConfigFromRoot, K as resolveThemeValaxyConfig, q as resolveUserThemeConfig, B as resolveValaxyConfig, z as resolveValaxyConfigFromRoot, r as run, s as ssgBuild, a as startValaxyDev, W as toAtFS, S as transformObject, H as version } from '../shared/valaxy.DYu2a9p6.mjs';
2
+ import 'node:path';
3
+ import 'fs-extra';
4
+ import 'consola/utils';
5
+ import 'node:process';
6
+ import 'define-config-ts';
7
+ import 'yargs';
8
+ import 'yargs/helpers';
9
+ import 'consola';
10
+ import 'fast-glob';
11
+ import 'gray-matter';
12
+ import '@antfu/utils';
13
+ import 'debug';
14
+ import 'pathe';
15
+ import 'defu';
16
+ import 'vite';
17
+ import 'node:crypto';
18
+ import 'floating-vue';
19
+ import 'ora';
20
+ import 'cross-spawn';
21
+ import 'mlly';
22
+ import 'resolve-global';
23
+ import 'node:fs/promises';
24
+ import 'js-yaml';
25
+ import 'dayjs';
26
+ import 'feed';
27
+ import 'markdown-it';
28
+ import 'table';
29
+ import 'hookable';
30
+ import 'vite-ssg-sitemap';
31
+ import 'vite-ssg/node';
32
+ import '@intlify/unplugin-vue-i18n/vite';
33
+ import '@unhead/addons/vite';
34
+ import 'unplugin-vue-components/vite';
35
+ import 'vite-plugin-vue-layouts';
36
+ import 'vitepress-plugin-group-icons';
37
+ import 'markdown-it-async';
38
+ import '@shikijs/transformers';
39
+ import 'shiki';
40
+ import 'css-i18n';
41
+ import 'markdown-it-anchor';
42
+ import 'markdown-it-attrs';
43
+ import 'markdown-it-emoji';
44
+ import 'markdown-it-footnote';
45
+ import 'markdown-it-image-figures';
46
+ import 'markdown-it-task-lists';
47
+ import 'node:url';
48
+ import 'markdown-it-container';
49
+ import 'katex';
50
+ import 'unplugin-vue-markdown/vite';
51
+ import 'js-base64';
52
+ import 'node:fs';
53
+ import 'jiti';
54
+ import 'unocss';
55
+ import 'pascalcase';
56
+ import 'lru-cache';
57
+ import 'html-to-text';
58
+ import 'unplugin-vue-router/vite';
59
+ import 'node:os';
60
+ import '@clack/prompts';
61
+ import 'node:net';
62
+ import 'node:child_process';
63
+ import 'node:readline';
64
+ import 'qrcode';
65
+ import 'ejs';
66
+
67
+ function $t(key) {
68
+ return `$locale:${key}`;
69
+ }
70
+
71
+ function defineUnoSetup(fn) {
72
+ return fn;
73
+ }
74
+
75
+ export { $t, defineUnoSetup };