@opendesign-plus/components 0.0.1-rc.5 → 0.0.1-rc.7
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/dist/chunk-OElCookieNotice.cjs.js +1 -0
- package/dist/chunk-OElCookieNotice.es.js +281 -0
- package/dist/components/OCookieNotice.vue.d.ts +1 -0
- package/dist/components/OFooter.vue.d.ts +25 -0
- package/dist/components/OHeader.vue.d.ts +23 -0
- package/dist/components/OHeaderMoblie.vue.d.ts +33 -0
- package/dist/components/OHeaderUser.vue.d.ts +40 -0
- package/dist/components/OSourceCode.vue.d.ts +20 -0
- package/dist/components/element-plus/OElCookieNotice.vue.d.ts +1 -0
- package/dist/components/events/OEventsApply.vue.d.ts +16 -0
- package/dist/components/events/OEventsCalendar.vue.d.ts +5 -0
- package/dist/components/events/OEventsList.vue.d.ts +26 -0
- package/dist/components/events/config.d.ts +26 -0
- package/dist/components/events/index.d.ts +78 -0
- package/dist/components/events/types.d.ts +66 -0
- package/dist/components/events/utils.d.ts +7 -0
- package/dist/components.cjs.js +3 -1
- package/dist/components.css +1 -1
- package/dist/components.element.cjs.js +1 -1
- package/dist/components.element.es.js +2 -213
- package/dist/components.es.js +3002 -445
- package/dist/index.d.ts +8 -1
- package/docs/design.md +27 -27
- package/docs/design_banner.md +41 -41
- package/docs/design_section.md +27 -27
- package/npmcachae/_cacache/content-v2/sha512/bd/56/25079ffb18446953f88fc063c3d6eaf7191772851b8477c118f113b920a7f357b67b9006181af58c9f68b0059b899ad0f2c86fe0a6490958d138cb063afd +1 -0
- package/npmcachae/_cacache/index-v5/d8/49/af4c6bb8f580edbd7b6e18db381844403e5f689a9849c5ffcdd2dd95d735 +3 -0
- package/npmcachae/_logs/2026-03-17T09_38_12_009Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_14_370Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_16_516Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_18_616Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_20_859Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_23_182Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_25_452Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_27_865Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_30_082Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_32_219Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_34_308Z-debug-0.log +157 -0
- package/npmcachae/_update-notifier-last-checked +0 -0
- package/package.json +2 -1
- package/scripts/generate-components-index.js +99 -80
- package/src/assets/events/city/default-cover.png +0 -0
- package/src/assets/events/city//344/270/212/346/265/267.png +0 -0
- package/src/assets/events/city//345/214/227/344/272/254.png +0 -0
- package/src/assets/events/city//345/215/227/344/272/254.png +0 -0
- package/src/assets/events/city//345/244/251/346/264/245.png +0 -0
- package/src/assets/events/city//345/271/277/345/267/236.png +0 -0
- package/src/assets/events/city//346/210/220/351/203/275.png +0 -0
- package/src/assets/events/city//346/227/240/351/224/241.png +0 -0
- package/src/assets/events/city//346/235/255/345/267/236.png +0 -0
- package/src/assets/events/city//346/255/246/346/261/211.png +0 -0
- package/src/assets/events/city//346/267/261/345/234/2631.png +0 -0
- package/src/assets/events/city//346/267/261/345/234/2632.png +0 -0
- package/src/assets/events/city//350/213/217/345/267/236.png +0 -0
- package/src/assets/events/city//350/245/277/345/256/211.png +0 -0
- package/src/assets/events/city//351/203/221/345/267/236.png +0 -0
- package/src/assets/events/svg-icons/icon-checked.svg +3 -0
- package/src/assets/events/svg-icons/icon-competition.svg +7 -0
- package/src/assets/events/svg-icons/icon-events.svg +4 -0
- package/src/assets/events/svg-icons/icon-release.svg +4 -0
- package/src/assets/events/svg-icons/icon-summit.svg +4 -0
- package/src/assets/svg-icons/icon-arrow-left.svg +3 -0
- package/src/assets/svg-icons/icon-avatar-line.svg +3 -0
- package/src/assets/svg-icons/icon-caret-left.svg +3 -0
- package/src/assets/svg-icons/icon-caret-right.svg +3 -0
- package/src/assets/svg-icons/icon-chevron-down.svg +3 -0
- package/src/assets/svg-icons/icon-chevron-right.svg +3 -3
- package/src/assets/svg-icons/icon-close.svg +3 -3
- package/src/assets/svg-icons/icon-delete.svg +3 -3
- package/src/assets/svg-icons/icon-header-back.svg +3 -3
- package/src/assets/svg-icons/icon-header-delete.svg +3 -3
- package/src/assets/svg-icons/icon-header-menu.svg +3 -0
- package/src/assets/svg-icons/icon-header-person.svg +3 -0
- package/src/assets/svg-icons/icon-header-search.svg +4 -4
- package/src/assets/svg-icons/icon-locale.svg +3 -0
- package/src/assets/svg-icons/icon-log-off.svg +3 -0
- package/src/assets/svg-icons/icon-message.svg +3 -0
- package/src/assets/svg-icons/icon-moon.svg +3 -3
- package/src/assets/svg-icons/icon-outlink.svg +3 -0
- package/src/assets/svg-icons/icon-overview.svg +3 -0
- package/src/assets/svg-icons/icon-setting.svg +3 -0
- package/src/assets/svg-icons/icon-sun.svg +3 -3
- package/src/components/OBanner.vue +390 -390
- package/src/components/OCookieNotice.vue +423 -423
- package/src/components/OFooter.vue +566 -0
- package/src/components/OHeader.vue +97 -0
- package/src/components/OHeaderMoblie.vue +149 -0
- package/src/components/OHeaderSearch.vue +601 -601
- package/src/components/OHeaderUser.vue +304 -0
- package/src/components/OPlusConfigProvider.vue +32 -32
- package/src/components/OSection.vue +178 -178
- package/src/components/OSourceCode.vue +153 -0
- package/src/components/OThemeSwitcher.vue +108 -108
- package/src/components/common/AppAvatar.vue +83 -0
- package/src/components/common/ClientOnlyWrapper.ts +21 -21
- package/src/components/common/ContentWrapper.vue +85 -85
- package/src/components/common/HeaderEulerNav.vue +1118 -0
- package/src/components/common/HeaderNavMoblie.vue +344 -0
- package/src/components/common/HeaderUbmcNav.vue +597 -0
- package/src/components/element-plus/OElCookieNotice.vue +412 -412
- package/src/components/element-plus/index.ts +3 -3
- package/src/components/events/OEventsApply.vue +487 -0
- package/src/components/events/OEventsCalendar.vue +613 -0
- package/src/components/events/OEventsList.vue +402 -0
- package/src/components/events/config.ts +47 -0
- package/src/components/events/index.ts +23 -0
- package/src/components/events/npmcachae/_cacache/content-v2/sha512/2c/4f/a4140bfbf374a43f7dfe71880c051f79149cd259fb1a154fb692802c7489ef2317b737e7e690a627714ba19317971f29051b3798c246297b425a626a5b7a +1 -0
- package/src/components/events/npmcachae/_cacache/index-v5/8e/86/70dc69f1b1592fe14da10d2516ddfaa609af0cd9054a6ebde664acc6ab12 +2 -0
- package/src/components/events/npmcachae/_logs/2026-03-25T09_58_33_134Z-debug-0.log +105 -0
- package/src/components/events/npmcachae/_update-notifier-last-checked +0 -0
- package/src/components/events/types.ts +80 -0
- package/src/components/events/utils.ts +9 -0
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/3e/17/1865217b9acb9f4921c53a09b5c76587cd2ab748beb2699ff6cfb1341d73b1aa56ed91ffc5ab2c9c9b3fbe626103b35d9a79ff29ff6b8cbb8d89755fe1a2 +1 -0
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/a6/15/47bb7552ec9248079e839a5feecc1742d4de19524fdf041cf581701cf4760a5025106036145e279ba193b07c8fa5b07ae3d75f1b6032f0cb2219115b6167 +1 -0
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/d1/4c/133b32e09c97101a27a07cc4432f94e470cff02d120d21babcea77c3f5cd436793516dc1a8e282ee1a568f923c148b1a48f4a43233462a530d35e8b41c67 +1 -0
- package/src/components/meeting/npmcachae/_cacache/index-v5/54/0d/a4909047714a0a7198bb9bd37020992464e47c79a791889919b84d90aab0 +3 -0
- package/src/components/meeting/npmcachae/_cacache/index-v5/8e/2b/21a79778e2ac08cf5663baf83cb35f951995a496007eb2e2f7fba54021a4 +3 -0
- package/src/components/meeting/npmcachae/_cacache/index-v5/eb/a0/b70c8132e5b57a0f1e129b8cc941796420a9c147c0baa680710083740898 +2 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_03_54_955Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_03_57_842Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_00_016Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_02_191Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_04_425Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_06_642Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_08_826Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_36_140Z-debug-0.log +433 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_39_573Z-debug-0.log +433 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_42_134Z-debug-0.log +212 -0
- package/src/components/meeting/npmcachae/_update-notifier-last-checked +0 -0
- package/src/draft/Banner.vue +265 -265
- package/src/draft/ButtonCards.vue +105 -105
- package/src/draft/Feature.vue +133 -133
- package/src/draft/Footer.vue +512 -512
- package/src/draft/HorizontalAnchor.vue +165 -165
- package/src/draft/ItemSwiper.vue +133 -133
- package/src/draft/Logo.vue +141 -141
- package/src/draft/LogoCard.vue +74 -74
- package/src/draft/LogoV2.vue +19 -19
- package/src/draft/MainCard.vue +38 -38
- package/src/draft/MultiCard.vue +94 -94
- package/src/draft/MultiIconCard.vue +73 -73
- package/src/draft/OInfoCard.vue +176 -176
- package/src/draft/Process.vue +81 -81
- package/src/draft/Section.vue +167 -167
- package/src/draft/SingleTabCard.vue +84 -84
- package/src/draft/SliderCard.vue +110 -110
- package/src/env.d.ts +1 -1
- package/src/i18n/en.ts +20 -20
- package/src/i18n/index.ts +42 -42
- package/src/i18n/zh.ts +14 -9
- package/src/index.ts +15 -1
- package/src/npmcachae/_cacache/content-v2/sha512/bd/56/25079ffb18446953f88fc063c3d6eaf7191772851b8477c118f113b920a7f357b67b9006181af58c9f68b0059b899ad0f2c86fe0a6490958d138cb063afd +1 -0
- package/src/npmcachae/_cacache/index-v5/d8/49/af4c6bb8f580edbd7b6e18db381844403e5f689a9849c5ffcdd2dd95d735 +3 -0
- package/src/npmcachae/_logs/2026-03-17T10_53_33_398Z-debug-0.log +156 -0
- package/src/npmcachae/_logs/2026-03-17T10_53_35_464Z-debug-0.log +156 -0
- package/src/npmcachae/_logs/2026-03-17T10_53_37_852Z-debug-0.log +156 -0
- package/src/npmcachae/_update-notifier-last-checked +0 -0
- package/src/shared/provide.ts +6 -6
- package/src/shims-vue-dompurify-html.d.ts +17 -0
- package/src/vue.d.ts +9 -9
- package/tsconfig.json +33 -33
- package/vite.config.ts +102 -101
- package/dist/chunk-index.cjs.js +0 -1
- package/dist/chunk-index.es.js +0 -64
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
|
|
2
|
+
1 info using npm@10.9.3
|
|
3
|
+
2 info using node@v22.18.0
|
|
4
|
+
3 silly config load:file:C:\Users\Administrator\AppData\Roaming\nvm\v22.18.0\node_modules\npm\npmrc
|
|
5
|
+
4 silly config load:file:D:\forks\OpenDesignPlus\packages\components\.npmrc
|
|
6
|
+
5 silly config load:file:C:\Users\Administrator\.npmrc
|
|
7
|
+
6 silly config load:file:C:\Program Files\nodejs\etc\npmrc
|
|
8
|
+
7 verbose title npm info vue-dompurify-html
|
|
9
|
+
8 verbose argv "info" "--json" "vue-dompurify-html"
|
|
10
|
+
9 verbose logfile logs-max:10 dir:D:\forks\OpenDesignPlus\packages\components\src\npmcachae\_logs\2026-03-17T10_53_35_464Z-
|
|
11
|
+
10 verbose logfile D:\forks\OpenDesignPlus\packages\components\src\npmcachae\_logs\2026-03-17T10_53_35_464Z-debug-0.log
|
|
12
|
+
11 silly logfile done cleaning log files
|
|
13
|
+
12 http fetch GET 200 https://registry.npmmirror.com/vue-dompurify-html 320ms (cache revalidated)
|
|
14
|
+
13 silly view {
|
|
15
|
+
13 silly view '5.3.0': {
|
|
16
|
+
13 silly view _attachments: {},
|
|
17
|
+
13 silly view _id: 'vue-dompurify-html@5.3.0',
|
|
18
|
+
13 silly view _rev: '1556666-61f3b49ec189a904bfc9a94f',
|
|
19
|
+
13 silly view author: { name: 'Thomas Gerbet' },
|
|
20
|
+
13 silly view description: 'Safe replacement for the v-html directive',
|
|
21
|
+
13 silly view 'dist-tags': { latest: '5.3.0', 'vue-legacy': '2.6.0' },
|
|
22
|
+
13 silly view license: 'MIT',
|
|
23
|
+
13 silly view maintainers: [ [Object] ],
|
|
24
|
+
13 silly view name: 'vue-dompurify-html',
|
|
25
|
+
13 silly view time: {
|
|
26
|
+
13 silly view created: '2022-01-28T09:17:18.577Z',
|
|
27
|
+
13 silly view modified: '2025-05-05T13:35:50.840Z',
|
|
28
|
+
13 silly view '1.0.0': '2019-04-14T18:07:13.107Z',
|
|
29
|
+
13 silly view '1.1.0': '2019-04-15T22:01:32.829Z',
|
|
30
|
+
13 silly view '1.2.0': '2019-04-16T21:24:11.528Z',
|
|
31
|
+
13 silly view '1.2.1': '2019-04-24T11:47:11.024Z',
|
|
32
|
+
13 silly view '1.3.0': '2019-06-03T19:36:38.613Z',
|
|
33
|
+
13 silly view '1.3.1': '2019-07-31T14:54:48.046Z',
|
|
34
|
+
13 silly view '2.0.0': '2019-08-18T18:22:53.476Z',
|
|
35
|
+
13 silly view '2.1.0': '2019-09-13T10:07:26.270Z',
|
|
36
|
+
13 silly view '2.1.1': '2019-11-03T16:46:32.860Z',
|
|
37
|
+
13 silly view '3.0.0-alpha.0': '2020-04-29T15:39:09.224Z',
|
|
38
|
+
13 silly view '2.2.0': '2020-05-12T21:31:40.434Z',
|
|
39
|
+
13 silly view '3.0.0-alpha.1': '2020-05-12T21:46:33.703Z',
|
|
40
|
+
13 silly view '2.2.1': '2020-05-12T22:17:54.678Z',
|
|
41
|
+
13 silly view '3.0.0-alpha.2': '2020-05-12T22:43:36.495Z',
|
|
42
|
+
13 silly view '3.0.0-alpha.3': '2020-08-10T20:36:17.509Z',
|
|
43
|
+
13 silly view '2.3.0': '2020-08-10T21:23:12.259Z',
|
|
44
|
+
13 silly view '2.4.0': '2021-12-10T14:39:47.860Z',
|
|
45
|
+
13 silly view '3.0.0-beta.1': '2021-12-10T14:45:31.107Z',
|
|
46
|
+
13 silly view '3.0.0-beta.2': '2021-12-23T15:38:37.820Z',
|
|
47
|
+
13 silly view '2.5.0': '2021-12-25T12:11:59.244Z',
|
|
48
|
+
13 silly view '2.5.1': '2022-04-04T17:29:00.831Z',
|
|
49
|
+
13 silly view '3.0.0-beta.3': '2022-04-04T17:34:04.686Z',
|
|
50
|
+
13 silly view '2.5.2': '2022-04-24T10:42:49.700Z',
|
|
51
|
+
13 silly view '3.0.0': '2022-05-13T11:58:07.987Z',
|
|
52
|
+
13 silly view '2.6.0': '2022-06-05T17:56:13.446Z',
|
|
53
|
+
13 silly view '3.1.0': '2022-08-28T09:35:43.466Z',
|
|
54
|
+
13 silly view '3.1.1': '2022-09-05T14:45:16.508Z',
|
|
55
|
+
13 silly view '3.1.2': '2022-12-15T15:18:00.105Z',
|
|
56
|
+
13 silly view '4.0.0': '2023-02-16T12:40:58.187Z',
|
|
57
|
+
13 silly view '4.1.2': '2023-05-22T21:55:45.558Z',
|
|
58
|
+
13 silly view '4.1.3': '2023-05-22T22:27:55.556Z',
|
|
59
|
+
13 silly view '4.1.4': '2023-05-22T22:49:55.366Z',
|
|
60
|
+
13 silly view '5.0.0': '2023-12-13T19:14:39.670Z',
|
|
61
|
+
13 silly view '5.0.1': '2023-12-15T14:30:20.751Z',
|
|
62
|
+
13 silly view '5.1.0': '2024-06-16T10:45:09.794Z',
|
|
63
|
+
13 silly view '5.2.0': '2024-11-24T21:12:48.378Z',
|
|
64
|
+
13 silly view '5.3.0': '2025-05-05T13:35:37.729Z'
|
|
65
|
+
13 silly view },
|
|
66
|
+
13 silly view versions: [
|
|
67
|
+
13 silly view '1.0.0', '1.1.0', '1.2.0',
|
|
68
|
+
13 silly view '1.2.1', '1.3.0', '1.3.1',
|
|
69
|
+
13 silly view '2.0.0', '2.1.0', '2.1.1',
|
|
70
|
+
13 silly view '2.2.0', '2.2.1', '2.3.0',
|
|
71
|
+
13 silly view '2.4.0', '2.5.0', '2.5.1',
|
|
72
|
+
13 silly view '2.5.2', '2.6.0', '3.0.0-alpha.0',
|
|
73
|
+
13 silly view '3.0.0-alpha.1', '3.0.0-alpha.2', '3.0.0-alpha.3',
|
|
74
|
+
13 silly view '3.0.0-beta.1', '3.0.0-beta.2', '3.0.0-beta.3',
|
|
75
|
+
13 silly view '3.0.0', '3.1.0', '3.1.1',
|
|
76
|
+
13 silly view '3.1.2', '4.0.0', '4.1.2',
|
|
77
|
+
13 silly view '4.1.3', '4.1.4', '5.0.0',
|
|
78
|
+
13 silly view '5.0.1', '5.1.0', '5.2.0',
|
|
79
|
+
13 silly view '5.3.0'
|
|
80
|
+
13 silly view ],
|
|
81
|
+
13 silly view bugs: { url: 'https://github.com/LeSuisse/vue-dompurify-html/issues' },
|
|
82
|
+
13 silly view homepage: 'https://github.com/LeSuisse/vue-dompurify-html/tree/main/packages/vue-dompurify-html#readme',
|
|
83
|
+
13 silly view keywords: [
|
|
84
|
+
13 silly view 'vue',
|
|
85
|
+
13 silly view 'vue-directive',
|
|
86
|
+
13 silly view 'xss',
|
|
87
|
+
13 silly view 'dom-xss',
|
|
88
|
+
13 silly view 'dompurify',
|
|
89
|
+
13 silly view 'security',
|
|
90
|
+
13 silly view 'html'
|
|
91
|
+
13 silly view ],
|
|
92
|
+
13 silly view repository: {
|
|
93
|
+
13 silly view type: 'git',
|
|
94
|
+
13 silly view url: 'git+https://github.com/LeSuisse/vue-dompurify-html.git',
|
|
95
|
+
13 silly view directory: 'packages/vue-dompurify-html'
|
|
96
|
+
13 silly view },
|
|
97
|
+
13 silly view _source_registry_name: 'default',
|
|
98
|
+
13 silly view _contentLength: 119804,
|
|
99
|
+
13 silly view version: '5.3.0',
|
|
100
|
+
13 silly view main: './dist/vue-dompurify-html.umd.js',
|
|
101
|
+
13 silly view module: './dist/vue-dompurify-html.mjs',
|
|
102
|
+
13 silly view types: 'types/index.d.ts',
|
|
103
|
+
13 silly view 'web-types': './web-types.json',
|
|
104
|
+
13 silly view exports: { '.': [Object] },
|
|
105
|
+
13 silly view dependencies: { dompurify: '^3.2.5' },
|
|
106
|
+
13 silly view peerDependencies: { vue: '^3.4.36' },
|
|
107
|
+
13 silly view devDependencies: {
|
|
108
|
+
13 silly view '@stryker-mutator/core': '8.7.1',
|
|
109
|
+
13 silly view '@stryker-mutator/typescript-checker': '8.7.1',
|
|
110
|
+
13 silly view '@stryker-mutator/vitest-runner': '8.7.1',
|
|
111
|
+
13 silly view '@vitest/coverage-v8': '3.1.2',
|
|
112
|
+
13 silly view '@vue/test-utils': '2.4.6',
|
|
113
|
+
13 silly view jsdom: '26.1.0',
|
|
114
|
+
13 silly view typescript: '5.8.3',
|
|
115
|
+
13 silly view vite: '6.3.5',
|
|
116
|
+
13 silly view vitest: '3.1.2',
|
|
117
|
+
13 silly view vue: '3.5.13'
|
|
118
|
+
13 silly view },
|
|
119
|
+
13 silly view scripts: {
|
|
120
|
+
13 silly view build: 'tsc --declaration --emitDeclarationOnly && vite build',
|
|
121
|
+
13 silly view typecheck: 'tsc --noEmit -p ./tsconfig.test.json',
|
|
122
|
+
13 silly view test: 'vitest',
|
|
123
|
+
13 silly view 'test-mutation': 'stryker run'
|
|
124
|
+
13 silly view },
|
|
125
|
+
13 silly view _integrity: 'sha512-HJQGBHbfSPcb6Mu97McdKbX7TqRHZa6Ji8OCpCNyuHca5QvQZ8IiuwghFPSO8OkSQfqXPNPKFMZdCOrnGGmOSQ==',
|
|
126
|
+
13 silly view _resolved: '/home/runner/work/_temp/nix-shell-2732-0/54000c1afe4723d8b2400d04f50afd2e/vue-dompurify-html-5.3.0.tgz',
|
|
127
|
+
13 silly view _from: 'file:vue-dompurify-html-5.3.0.tgz',
|
|
128
|
+
13 silly view _nodeVersion: '22.14.0',
|
|
129
|
+
13 silly view _npmVersion: '10.9.2',
|
|
130
|
+
13 silly view dist: {
|
|
131
|
+
13 silly view integrity: 'sha512-HJQGBHbfSPcb6Mu97McdKbX7TqRHZa6Ji8OCpCNyuHca5QvQZ8IiuwghFPSO8OkSQfqXPNPKFMZdCOrnGGmOSQ==',
|
|
132
|
+
13 silly view shasum: '12b38ef8baa8a7c9ed3ac8d14950b9a99a959e9d',
|
|
133
|
+
13 silly view tarball: 'https://registry.npmmirror.com/vue-dompurify-html/-/vue-dompurify-html-5.3.0.tgz',
|
|
134
|
+
13 silly view fileCount: 8,
|
|
135
|
+
13 silly view unpackedSize: 13425,
|
|
136
|
+
13 silly view attestations: [Object],
|
|
137
|
+
13 silly view signatures: [Array],
|
|
138
|
+
13 silly view size: 4739
|
|
139
|
+
13 silly view },
|
|
140
|
+
13 silly view _npmUser: { name: 'tgerbet', email: 'thomas@gerbet.me' },
|
|
141
|
+
13 silly view directories: {},
|
|
142
|
+
13 silly view _npmOperationalInternal: {
|
|
143
|
+
13 silly view host: 's3://npm-registry-packages-npm-production',
|
|
144
|
+
13 silly view tmp: 'tmp/vue-dompurify-html_5.3.0_1746452137535_0.3618572376633309'
|
|
145
|
+
13 silly view },
|
|
146
|
+
13 silly view _hasShrinkwrap: false,
|
|
147
|
+
13 silly view _cnpmcore_publish_time: '2025-05-05T13:35:37.729Z',
|
|
148
|
+
13 silly view publish_time: 1746452137729
|
|
149
|
+
13 silly view }
|
|
150
|
+
13 silly view }
|
|
151
|
+
14 verbose cwd D:\forks\OpenDesignPlus\packages\components\src
|
|
152
|
+
15 verbose os Windows_NT 10.0.17763
|
|
153
|
+
16 verbose node v22.18.0
|
|
154
|
+
17 verbose npm v10.9.3
|
|
155
|
+
18 verbose exit 0
|
|
156
|
+
19 info ok
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
|
|
2
|
+
1 info using npm@10.9.3
|
|
3
|
+
2 info using node@v22.18.0
|
|
4
|
+
3 silly config load:file:C:\Users\Administrator\AppData\Roaming\nvm\v22.18.0\node_modules\npm\npmrc
|
|
5
|
+
4 silly config load:file:D:\forks\OpenDesignPlus\packages\components\.npmrc
|
|
6
|
+
5 silly config load:file:C:\Users\Administrator\.npmrc
|
|
7
|
+
6 silly config load:file:C:\Program Files\nodejs\etc\npmrc
|
|
8
|
+
7 verbose title npm info vue-dompurify-html
|
|
9
|
+
8 verbose argv "info" "--json" "vue-dompurify-html"
|
|
10
|
+
9 verbose logfile logs-max:10 dir:D:\forks\OpenDesignPlus\packages\components\src\npmcachae\_logs\2026-03-17T10_53_37_852Z-
|
|
11
|
+
10 verbose logfile D:\forks\OpenDesignPlus\packages\components\src\npmcachae\_logs\2026-03-17T10_53_37_852Z-debug-0.log
|
|
12
|
+
11 silly logfile done cleaning log files
|
|
13
|
+
12 http fetch GET 200 https://registry.npmmirror.com/vue-dompurify-html 153ms (cache revalidated)
|
|
14
|
+
13 silly view {
|
|
15
|
+
13 silly view '5.3.0': {
|
|
16
|
+
13 silly view _attachments: {},
|
|
17
|
+
13 silly view _id: 'vue-dompurify-html@5.3.0',
|
|
18
|
+
13 silly view _rev: '1556666-61f3b49ec189a904bfc9a94f',
|
|
19
|
+
13 silly view author: { name: 'Thomas Gerbet' },
|
|
20
|
+
13 silly view description: 'Safe replacement for the v-html directive',
|
|
21
|
+
13 silly view 'dist-tags': { latest: '5.3.0', 'vue-legacy': '2.6.0' },
|
|
22
|
+
13 silly view license: 'MIT',
|
|
23
|
+
13 silly view maintainers: [ [Object] ],
|
|
24
|
+
13 silly view name: 'vue-dompurify-html',
|
|
25
|
+
13 silly view time: {
|
|
26
|
+
13 silly view created: '2022-01-28T09:17:18.577Z',
|
|
27
|
+
13 silly view modified: '2025-05-05T13:35:50.840Z',
|
|
28
|
+
13 silly view '1.0.0': '2019-04-14T18:07:13.107Z',
|
|
29
|
+
13 silly view '1.1.0': '2019-04-15T22:01:32.829Z',
|
|
30
|
+
13 silly view '1.2.0': '2019-04-16T21:24:11.528Z',
|
|
31
|
+
13 silly view '1.2.1': '2019-04-24T11:47:11.024Z',
|
|
32
|
+
13 silly view '1.3.0': '2019-06-03T19:36:38.613Z',
|
|
33
|
+
13 silly view '1.3.1': '2019-07-31T14:54:48.046Z',
|
|
34
|
+
13 silly view '2.0.0': '2019-08-18T18:22:53.476Z',
|
|
35
|
+
13 silly view '2.1.0': '2019-09-13T10:07:26.270Z',
|
|
36
|
+
13 silly view '2.1.1': '2019-11-03T16:46:32.860Z',
|
|
37
|
+
13 silly view '3.0.0-alpha.0': '2020-04-29T15:39:09.224Z',
|
|
38
|
+
13 silly view '2.2.0': '2020-05-12T21:31:40.434Z',
|
|
39
|
+
13 silly view '3.0.0-alpha.1': '2020-05-12T21:46:33.703Z',
|
|
40
|
+
13 silly view '2.2.1': '2020-05-12T22:17:54.678Z',
|
|
41
|
+
13 silly view '3.0.0-alpha.2': '2020-05-12T22:43:36.495Z',
|
|
42
|
+
13 silly view '3.0.0-alpha.3': '2020-08-10T20:36:17.509Z',
|
|
43
|
+
13 silly view '2.3.0': '2020-08-10T21:23:12.259Z',
|
|
44
|
+
13 silly view '2.4.0': '2021-12-10T14:39:47.860Z',
|
|
45
|
+
13 silly view '3.0.0-beta.1': '2021-12-10T14:45:31.107Z',
|
|
46
|
+
13 silly view '3.0.0-beta.2': '2021-12-23T15:38:37.820Z',
|
|
47
|
+
13 silly view '2.5.0': '2021-12-25T12:11:59.244Z',
|
|
48
|
+
13 silly view '2.5.1': '2022-04-04T17:29:00.831Z',
|
|
49
|
+
13 silly view '3.0.0-beta.3': '2022-04-04T17:34:04.686Z',
|
|
50
|
+
13 silly view '2.5.2': '2022-04-24T10:42:49.700Z',
|
|
51
|
+
13 silly view '3.0.0': '2022-05-13T11:58:07.987Z',
|
|
52
|
+
13 silly view '2.6.0': '2022-06-05T17:56:13.446Z',
|
|
53
|
+
13 silly view '3.1.0': '2022-08-28T09:35:43.466Z',
|
|
54
|
+
13 silly view '3.1.1': '2022-09-05T14:45:16.508Z',
|
|
55
|
+
13 silly view '3.1.2': '2022-12-15T15:18:00.105Z',
|
|
56
|
+
13 silly view '4.0.0': '2023-02-16T12:40:58.187Z',
|
|
57
|
+
13 silly view '4.1.2': '2023-05-22T21:55:45.558Z',
|
|
58
|
+
13 silly view '4.1.3': '2023-05-22T22:27:55.556Z',
|
|
59
|
+
13 silly view '4.1.4': '2023-05-22T22:49:55.366Z',
|
|
60
|
+
13 silly view '5.0.0': '2023-12-13T19:14:39.670Z',
|
|
61
|
+
13 silly view '5.0.1': '2023-12-15T14:30:20.751Z',
|
|
62
|
+
13 silly view '5.1.0': '2024-06-16T10:45:09.794Z',
|
|
63
|
+
13 silly view '5.2.0': '2024-11-24T21:12:48.378Z',
|
|
64
|
+
13 silly view '5.3.0': '2025-05-05T13:35:37.729Z'
|
|
65
|
+
13 silly view },
|
|
66
|
+
13 silly view versions: [
|
|
67
|
+
13 silly view '1.0.0', '1.1.0', '1.2.0',
|
|
68
|
+
13 silly view '1.2.1', '1.3.0', '1.3.1',
|
|
69
|
+
13 silly view '2.0.0', '2.1.0', '2.1.1',
|
|
70
|
+
13 silly view '2.2.0', '2.2.1', '2.3.0',
|
|
71
|
+
13 silly view '2.4.0', '2.5.0', '2.5.1',
|
|
72
|
+
13 silly view '2.5.2', '2.6.0', '3.0.0-alpha.0',
|
|
73
|
+
13 silly view '3.0.0-alpha.1', '3.0.0-alpha.2', '3.0.0-alpha.3',
|
|
74
|
+
13 silly view '3.0.0-beta.1', '3.0.0-beta.2', '3.0.0-beta.3',
|
|
75
|
+
13 silly view '3.0.0', '3.1.0', '3.1.1',
|
|
76
|
+
13 silly view '3.1.2', '4.0.0', '4.1.2',
|
|
77
|
+
13 silly view '4.1.3', '4.1.4', '5.0.0',
|
|
78
|
+
13 silly view '5.0.1', '5.1.0', '5.2.0',
|
|
79
|
+
13 silly view '5.3.0'
|
|
80
|
+
13 silly view ],
|
|
81
|
+
13 silly view bugs: { url: 'https://github.com/LeSuisse/vue-dompurify-html/issues' },
|
|
82
|
+
13 silly view homepage: 'https://github.com/LeSuisse/vue-dompurify-html/tree/main/packages/vue-dompurify-html#readme',
|
|
83
|
+
13 silly view keywords: [
|
|
84
|
+
13 silly view 'vue',
|
|
85
|
+
13 silly view 'vue-directive',
|
|
86
|
+
13 silly view 'xss',
|
|
87
|
+
13 silly view 'dom-xss',
|
|
88
|
+
13 silly view 'dompurify',
|
|
89
|
+
13 silly view 'security',
|
|
90
|
+
13 silly view 'html'
|
|
91
|
+
13 silly view ],
|
|
92
|
+
13 silly view repository: {
|
|
93
|
+
13 silly view type: 'git',
|
|
94
|
+
13 silly view url: 'git+https://github.com/LeSuisse/vue-dompurify-html.git',
|
|
95
|
+
13 silly view directory: 'packages/vue-dompurify-html'
|
|
96
|
+
13 silly view },
|
|
97
|
+
13 silly view _source_registry_name: 'default',
|
|
98
|
+
13 silly view _contentLength: 119804,
|
|
99
|
+
13 silly view version: '5.3.0',
|
|
100
|
+
13 silly view main: './dist/vue-dompurify-html.umd.js',
|
|
101
|
+
13 silly view module: './dist/vue-dompurify-html.mjs',
|
|
102
|
+
13 silly view types: 'types/index.d.ts',
|
|
103
|
+
13 silly view 'web-types': './web-types.json',
|
|
104
|
+
13 silly view exports: { '.': [Object] },
|
|
105
|
+
13 silly view dependencies: { dompurify: '^3.2.5' },
|
|
106
|
+
13 silly view peerDependencies: { vue: '^3.4.36' },
|
|
107
|
+
13 silly view devDependencies: {
|
|
108
|
+
13 silly view '@stryker-mutator/core': '8.7.1',
|
|
109
|
+
13 silly view '@stryker-mutator/typescript-checker': '8.7.1',
|
|
110
|
+
13 silly view '@stryker-mutator/vitest-runner': '8.7.1',
|
|
111
|
+
13 silly view '@vitest/coverage-v8': '3.1.2',
|
|
112
|
+
13 silly view '@vue/test-utils': '2.4.6',
|
|
113
|
+
13 silly view jsdom: '26.1.0',
|
|
114
|
+
13 silly view typescript: '5.8.3',
|
|
115
|
+
13 silly view vite: '6.3.5',
|
|
116
|
+
13 silly view vitest: '3.1.2',
|
|
117
|
+
13 silly view vue: '3.5.13'
|
|
118
|
+
13 silly view },
|
|
119
|
+
13 silly view scripts: {
|
|
120
|
+
13 silly view build: 'tsc --declaration --emitDeclarationOnly && vite build',
|
|
121
|
+
13 silly view typecheck: 'tsc --noEmit -p ./tsconfig.test.json',
|
|
122
|
+
13 silly view test: 'vitest',
|
|
123
|
+
13 silly view 'test-mutation': 'stryker run'
|
|
124
|
+
13 silly view },
|
|
125
|
+
13 silly view _integrity: 'sha512-HJQGBHbfSPcb6Mu97McdKbX7TqRHZa6Ji8OCpCNyuHca5QvQZ8IiuwghFPSO8OkSQfqXPNPKFMZdCOrnGGmOSQ==',
|
|
126
|
+
13 silly view _resolved: '/home/runner/work/_temp/nix-shell-2732-0/54000c1afe4723d8b2400d04f50afd2e/vue-dompurify-html-5.3.0.tgz',
|
|
127
|
+
13 silly view _from: 'file:vue-dompurify-html-5.3.0.tgz',
|
|
128
|
+
13 silly view _nodeVersion: '22.14.0',
|
|
129
|
+
13 silly view _npmVersion: '10.9.2',
|
|
130
|
+
13 silly view dist: {
|
|
131
|
+
13 silly view integrity: 'sha512-HJQGBHbfSPcb6Mu97McdKbX7TqRHZa6Ji8OCpCNyuHca5QvQZ8IiuwghFPSO8OkSQfqXPNPKFMZdCOrnGGmOSQ==',
|
|
132
|
+
13 silly view shasum: '12b38ef8baa8a7c9ed3ac8d14950b9a99a959e9d',
|
|
133
|
+
13 silly view tarball: 'https://registry.npmmirror.com/vue-dompurify-html/-/vue-dompurify-html-5.3.0.tgz',
|
|
134
|
+
13 silly view fileCount: 8,
|
|
135
|
+
13 silly view unpackedSize: 13425,
|
|
136
|
+
13 silly view attestations: [Object],
|
|
137
|
+
13 silly view signatures: [Array],
|
|
138
|
+
13 silly view size: 4739
|
|
139
|
+
13 silly view },
|
|
140
|
+
13 silly view _npmUser: { name: 'tgerbet', email: 'thomas@gerbet.me' },
|
|
141
|
+
13 silly view directories: {},
|
|
142
|
+
13 silly view _npmOperationalInternal: {
|
|
143
|
+
13 silly view host: 's3://npm-registry-packages-npm-production',
|
|
144
|
+
13 silly view tmp: 'tmp/vue-dompurify-html_5.3.0_1746452137535_0.3618572376633309'
|
|
145
|
+
13 silly view },
|
|
146
|
+
13 silly view _hasShrinkwrap: false,
|
|
147
|
+
13 silly view _cnpmcore_publish_time: '2025-05-05T13:35:37.729Z',
|
|
148
|
+
13 silly view publish_time: 1746452137729
|
|
149
|
+
13 silly view }
|
|
150
|
+
13 silly view }
|
|
151
|
+
14 verbose cwd D:\forks\OpenDesignPlus\packages\components\src
|
|
152
|
+
15 verbose os Windows_NT 10.0.17763
|
|
153
|
+
16 verbose node v22.18.0
|
|
154
|
+
17 verbose npm v10.9.3
|
|
155
|
+
18 verbose exit 0
|
|
156
|
+
19 info ok
|
|
File without changes
|
package/src/shared/provide.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InjectionKey } from 'vue';
|
|
2
|
-
|
|
3
|
-
export const configProviderInjectKey: InjectionKey<{
|
|
4
|
-
locale: 'zh' | 'en';
|
|
5
|
-
theme: 'light' | 'dark';
|
|
6
|
-
}> = Symbol('provide-config-provider');
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
|
|
3
|
+
export const configProviderInjectKey: InjectionKey<{
|
|
4
|
+
locale: 'zh' | 'en';
|
|
5
|
+
theme: 'light' | 'dark';
|
|
6
|
+
}> = Symbol('provide-config-provider');
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare module 'vue-dompurify-html' {
|
|
2
|
+
import { Plugin, Directive } from 'vue';
|
|
3
|
+
|
|
4
|
+
export interface DirectiveConfig {
|
|
5
|
+
default?: any;
|
|
6
|
+
namedConfigurations?: Record<string, any>;
|
|
7
|
+
hooks?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function buildVueDompurifyHTMLDirective(
|
|
11
|
+
config?: DirectiveConfig,
|
|
12
|
+
instanceBuilder?: () => any
|
|
13
|
+
): Directive;
|
|
14
|
+
|
|
15
|
+
const VueDOMPurifyHTML: Plugin;
|
|
16
|
+
export default VueDOMPurifyHTML;
|
|
17
|
+
}
|
package/src/vue.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare module '*.vue' {
|
|
2
|
-
import { DefineComponent } from 'vue'
|
|
3
|
-
const component: DefineComponent<{}, {}, any>
|
|
4
|
-
export default component
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare module '*.scss' {
|
|
8
|
-
const content: { [className: string]: string }
|
|
9
|
-
export default content
|
|
1
|
+
declare module '*.vue' {
|
|
2
|
+
import { DefineComponent } from 'vue'
|
|
3
|
+
const component: DefineComponent<{}, {}, any>
|
|
4
|
+
export default component
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
declare module '*.scss' {
|
|
8
|
+
const content: { [className: string]: string }
|
|
9
|
+
export default content
|
|
10
10
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
/* Bundler mode */
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"allowImportingTsExtensions": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"moduleDetection": "force",
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
|
|
16
|
-
/* Linting */
|
|
17
|
-
"strict": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"noUncheckedSideEffectImports": true,
|
|
22
|
-
|
|
23
|
-
/* Declaration */
|
|
24
|
-
"declaration": true,
|
|
25
|
-
"declarationDir": "dist",
|
|
26
|
-
|
|
27
|
-
"baseUrl": ".",
|
|
28
|
-
"paths": {
|
|
29
|
-
"@/*": ["src/*"]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"include": ["src"]
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
|
|
16
|
+
/* Linting */
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"noUncheckedSideEffectImports": true,
|
|
22
|
+
|
|
23
|
+
/* Declaration */
|
|
24
|
+
"declaration": true,
|
|
25
|
+
"declarationDir": "dist",
|
|
26
|
+
|
|
27
|
+
"baseUrl": ".",
|
|
28
|
+
"paths": {
|
|
29
|
+
"@/*": ["src/*"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"include": ["src"]
|
|
33
|
+
}
|
package/vite.config.ts
CHANGED
|
@@ -1,101 +1,102 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import vue from '@vitejs/plugin-vue';
|
|
3
|
-
import Icons from 'unplugin-icons/vite';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
import { FileSystemIconLoader } from 'unplugin-icons/loaders';
|
|
6
|
-
import ElementPlus from 'unplugin-element-plus/vite';
|
|
7
|
-
import dts from 'vite-plugin-dts';
|
|
8
|
-
|
|
9
|
-
export default defineConfig(({ mode }) => {
|
|
10
|
-
const isLibraryMode = mode === 'library';
|
|
11
|
-
|
|
12
|
-
return {
|
|
13
|
-
build: {
|
|
14
|
-
outDir: path.resolve(__dirname, './dist'),
|
|
15
|
-
...(isLibraryMode
|
|
16
|
-
? {
|
|
17
|
-
lib: {
|
|
18
|
-
entry: {
|
|
19
|
-
lib: path.resolve(__dirname, 'src/index.ts'),
|
|
20
|
-
element: path.resolve(__dirname, 'src/components/element-plus/index.ts'),
|
|
21
|
-
},
|
|
22
|
-
name: 'OpenDesignPlusComponents',
|
|
23
|
-
fileName: (format, entry) => {
|
|
24
|
-
if (entry === 'lib') return `components.${format}.js`;
|
|
25
|
-
return `components.${entry}.${format}.js`;
|
|
26
|
-
},
|
|
27
|
-
formats: ['es', 'cjs'],
|
|
28
|
-
cssInjectedByJs: true,
|
|
29
|
-
},
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: [
|
|
32
|
-
/^element-plus/,
|
|
33
|
-
'vue',
|
|
34
|
-
'@opensig/opendesign',
|
|
35
|
-
'@vueuse/core',
|
|
36
|
-
'shiki',
|
|
37
|
-
'@opendesign-plus/composables',
|
|
38
|
-
],
|
|
39
|
-
output: {
|
|
40
|
-
globals: {
|
|
41
|
-
'element-plus': 'ElementPlus',
|
|
42
|
-
vue: 'Vue',
|
|
43
|
-
'@opensig/opendesign': 'OpenDesign',
|
|
44
|
-
'@vueuse/core': 'VueUse',
|
|
45
|
-
'@opendesign-plus/composables': 'OpenDesignPlusComposables',
|
|
46
|
-
},
|
|
47
|
-
// entryFileNames: 'components.[format].js',
|
|
48
|
-
chunkFileNames: 'chunk-[name].[format].js',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
cssCodeSplit: false, // 禁用CSS分割,所有样式打包到一起
|
|
52
|
-
}
|
|
53
|
-
: {}),
|
|
54
|
-
},
|
|
55
|
-
resolve: {
|
|
56
|
-
alias: {
|
|
57
|
-
vue: 'vue/dist/vue.esm-bundler.js',
|
|
58
|
-
'@': path.resolve(__dirname, 'src'),
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
css: {
|
|
62
|
-
preprocessorOptions: {
|
|
63
|
-
scss: {
|
|
64
|
-
charset: false,
|
|
65
|
-
additionalData: `
|
|
66
|
-
@use "@opendesign-plus/styles/mixin/screen.scss" as *;
|
|
67
|
-
@use "@opendesign-plus/styles/mixin/font.scss" as *;
|
|
68
|
-
@use "@opendesign-plus/styles/mixin/common.scss" as *;
|
|
69
|
-
`,
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
plugins: [
|
|
74
|
-
// 关键:配置Vue插件正确处理样式
|
|
75
|
-
vue({
|
|
76
|
-
include: [/\.vue$/],
|
|
77
|
-
template: {
|
|
78
|
-
compilerOptions: {
|
|
79
|
-
// 确保模板编译正确
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
}) as any,
|
|
83
|
-
dts({
|
|
84
|
-
include: ['./src/components/**/*', './src/index.ts'],
|
|
85
|
-
exclude: ['./src/components/common/**/*']
|
|
86
|
-
}),
|
|
87
|
-
Icons({
|
|
88
|
-
compiler: 'vue3',
|
|
89
|
-
customCollections: {
|
|
90
|
-
components: FileSystemIconLoader(path.resolve(__dirname, './src/assets/svg-icons')),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import vue from '@vitejs/plugin-vue';
|
|
3
|
+
import Icons from 'unplugin-icons/vite';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import { FileSystemIconLoader } from 'unplugin-icons/loaders';
|
|
6
|
+
import ElementPlus from 'unplugin-element-plus/vite';
|
|
7
|
+
import dts from 'vite-plugin-dts';
|
|
8
|
+
|
|
9
|
+
export default defineConfig(({ mode }) => {
|
|
10
|
+
const isLibraryMode = mode === 'library';
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
build: {
|
|
14
|
+
outDir: path.resolve(__dirname, './dist'),
|
|
15
|
+
...(isLibraryMode
|
|
16
|
+
? {
|
|
17
|
+
lib: {
|
|
18
|
+
entry: {
|
|
19
|
+
lib: path.resolve(__dirname, 'src/index.ts'),
|
|
20
|
+
element: path.resolve(__dirname, 'src/components/element-plus/index.ts'),
|
|
21
|
+
},
|
|
22
|
+
name: 'OpenDesignPlusComponents',
|
|
23
|
+
fileName: (format, entry) => {
|
|
24
|
+
if (entry === 'lib') return `components.${format}.js`;
|
|
25
|
+
return `components.${entry}.${format}.js`;
|
|
26
|
+
},
|
|
27
|
+
formats: ['es', 'cjs'],
|
|
28
|
+
cssInjectedByJs: true,
|
|
29
|
+
},
|
|
30
|
+
rollupOptions: {
|
|
31
|
+
external: [
|
|
32
|
+
/^element-plus/,
|
|
33
|
+
'vue',
|
|
34
|
+
'@opensig/opendesign',
|
|
35
|
+
'@vueuse/core',
|
|
36
|
+
'shiki',
|
|
37
|
+
'@opendesign-plus/composables',
|
|
38
|
+
],
|
|
39
|
+
output: {
|
|
40
|
+
globals: {
|
|
41
|
+
'element-plus': 'ElementPlus',
|
|
42
|
+
vue: 'Vue',
|
|
43
|
+
'@opensig/opendesign': 'OpenDesign',
|
|
44
|
+
'@vueuse/core': 'VueUse',
|
|
45
|
+
'@opendesign-plus/composables': 'OpenDesignPlusComposables',
|
|
46
|
+
},
|
|
47
|
+
// entryFileNames: 'components.[format].js',
|
|
48
|
+
chunkFileNames: 'chunk-[name].[format].js',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
cssCodeSplit: false, // 禁用CSS分割,所有样式打包到一起
|
|
52
|
+
}
|
|
53
|
+
: {}),
|
|
54
|
+
},
|
|
55
|
+
resolve: {
|
|
56
|
+
alias: {
|
|
57
|
+
vue: 'vue/dist/vue.esm-bundler.js',
|
|
58
|
+
'@': path.resolve(__dirname, 'src'),
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
css: {
|
|
62
|
+
preprocessorOptions: {
|
|
63
|
+
scss: {
|
|
64
|
+
charset: false,
|
|
65
|
+
additionalData: `
|
|
66
|
+
@use "@opendesign-plus/styles/mixin/screen.scss" as *;
|
|
67
|
+
@use "@opendesign-plus/styles/mixin/font.scss" as *;
|
|
68
|
+
@use "@opendesign-plus/styles/mixin/common.scss" as *;
|
|
69
|
+
`,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
plugins: [
|
|
74
|
+
// 关键:配置Vue插件正确处理样式
|
|
75
|
+
vue({
|
|
76
|
+
include: [/\.vue$/],
|
|
77
|
+
template: {
|
|
78
|
+
compilerOptions: {
|
|
79
|
+
// 确保模板编译正确
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
}) as any,
|
|
83
|
+
dts({
|
|
84
|
+
include: ['./src/components/**/*', './src/index.ts'],
|
|
85
|
+
exclude: ['./src/components/common/**/*']
|
|
86
|
+
}),
|
|
87
|
+
Icons({
|
|
88
|
+
compiler: 'vue3',
|
|
89
|
+
customCollections: {
|
|
90
|
+
components: FileSystemIconLoader(path.resolve(__dirname, './src/assets/svg-icons')),
|
|
91
|
+
events: FileSystemIconLoader(path.resolve(__dirname, './src/assets/events/svg-icons')),
|
|
92
|
+
},
|
|
93
|
+
}),
|
|
94
|
+
ElementPlus({ useSource: true })
|
|
95
|
+
],
|
|
96
|
+
assetsInclude: ['**/*.md'],
|
|
97
|
+
server: {
|
|
98
|
+
proxy: {},
|
|
99
|
+
},
|
|
100
|
+
base: '/',
|
|
101
|
+
};
|
|
102
|
+
});
|
package/dist/chunk-index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),a=require("@opensig/opendesign"),k=(n,e)=>{const o=n.__vccOpts||n;for(const[i,s]of e)o[i]=s;return o},y=n=>{const e=t.ref(!1);return t.onMounted(()=>{e.value=!0}),()=>e.value&&n.default?n.default():null},f=t.defineComponent({setup(n,{slots:e}){const o=t.resolveComponent("ClientOnly");return o&&typeof o!="string"?()=>t.h(o,null,{default:()=>e.default?e.default():null}):y(e)}}),p={search:"搜索","search.hot":"热门搜索","search.placeholder":"搜索","search.expandedPlaceholder":"请输入搜索内容","search.history":"历史搜索","cookie.desc":"我们使用cookie来确保您的高速浏览体验。继续浏览本站,即表示您同意我们使用cookie。","cookie.about":"查看详情"},d={search:"Search","search.hot":"Top search","search.placeholder":"Please enter the content","search.expandedPlaceholder":"Please enter the content","search.history":"History","cookie.title":"{0} Community Respects Your Privacy","cookie.desc":'This site uses cookies from us and our partners to improve your browsing experience and make the site work properly. By clicking "Accept All", you consent to the use of cookies. By clicking "Reject All", you disable the use of unnecessary cookies. You can manage your cookie settings by clicking "Manage Cookies". For more information or to change your cookie settings, please refer to our ',"cookie.about":"About Cookies","cookie.acceptAll":"Accept All","cookie.rejectAll":"Reject All","cookie.manage":"Manage Cookies","cookie.necessaryCookie":"Strictly Necessary Cookies","cookie.alwaysOn":"Always active","cookie.necessaryCookieDetail":"These cookies are necessary for the site to work properly and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as logging in or filling in forms. You can set the browser to block these cookies, but that can make parts of the site not work. These cookies do not store any personally identifiable information.","cookie.analyticalCookie":"Analytics Cookies","cookie.analyticalCookieDetail":"We will use these cookies only with your consent. These cookies help us make improvements by collecting statistics such as the number of visits and traffic sources.","cookie.saveSetting":"Save Settings","cookie.setting":"Cookie settings"},l=Symbol("provide-config-provider"),g=t.ref({zh:p,en:d});function m(){const e=t.getCurrentInstance()?t.inject(l):null,o=t.computed(()=>(e==null?void 0:e.locale)||"zh");return{locale:o,t:(s,...r)=>{const c=g.value[o.value][s];return r.length>0&&a.isString(c)?c.replace(/{(\d+)}/g,(u,h)=>r[h]??u):(a.isUndefined(c)&&console.warn(`Cannot translate the value of keypath '${s}'`),c)}}}exports.ClientOnly=f;exports._export_sfc=k;exports.configProviderInjectKey=l;exports.useI18n=m;
|