@creatorsn/powereditor3 0.0.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.
- package/.vscode/extensions.json +3 -0
- package/README.md +5 -0
- package/dist/powereditor3.umd.cjs +1 -0
- package/docs/.vitepress/cache/deps/_metadata.json +52 -0
- package/docs/.vitepress/cache/deps/chunk-3GYA4YLH.js +9719 -0
- package/docs/.vitepress/cache/deps/chunk-3GYA4YLH.js.map +7 -0
- package/docs/.vitepress/cache/deps/chunk-DDXJJ377.js +12619 -0
- package/docs/.vitepress/cache/deps/chunk-DDXJJ377.js.map +7 -0
- package/docs/.vitepress/cache/deps/package.json +3 -0
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +4505 -0
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +583 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js +1145 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js +1665 -0
- package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___minisearch.js +1812 -0
- package/docs/.vitepress/cache/deps/vitepress___minisearch.js.map +7 -0
- package/docs/.vitepress/cache/deps/vue.js +343 -0
- package/docs/.vitepress/cache/deps/vue.js.map +7 -0
- package/docs/.vitepress/config.mts +67 -0
- package/docs/.vitepress/theme/custom.vue +16 -0
- package/docs/.vitepress/theme/index.ts +11 -0
- package/docs/.vitepress/theme/style.css +11 -0
- package/docs/components/devC/index.md +3 -0
- package/docs/demos/devC/index.md +1 -0
- package/docs/index.md +47 -0
- package/docs/public/assets/logo.svg +1 -0
- package/package.json +34 -0
- package/packages/devC/index.ts +5 -0
- package/packages/devC/src/index.vue +36 -0
- package/packages/index.ts +22 -0
- package/packages/install.ts +10 -0
- package/public/vite.svg +1 -0
- package/src/App.vue +30 -0
- package/src/App.vue.js +53 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/HelloWorld.vue +41 -0
- package/src/components/HelloWorld.vue.js +54 -0
- package/src/main.js +4 -0
- package/src/main.ts +5 -0
- package/src/style.css +79 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +17 -0
- package/tsconfig.node.json +7 -0
- package/tsconfig.node.tsbuildinfo +1 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.d.ts +2 -0
- package/vite.config.js +33 -0
- package/vite.config.ts +36 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineConfig } from 'vitepress'
|
|
2
|
+
import path from 'path';
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
title: 'PowerEditor3',
|
|
6
|
+
description: '基于VFluent3基础组件封装使用',
|
|
7
|
+
lang: 'cn-ZH',
|
|
8
|
+
base: '/via/',
|
|
9
|
+
lastUpdated: true,
|
|
10
|
+
vite: {
|
|
11
|
+
resolve: {
|
|
12
|
+
alias: {
|
|
13
|
+
'@': path.resolve(__dirname, '../../'),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
themeConfig: {
|
|
18
|
+
logo: '/favicon.ico',
|
|
19
|
+
siteTitle: 'PowerEditor3',
|
|
20
|
+
footer: {
|
|
21
|
+
message: 'MIT Licensed',
|
|
22
|
+
copyright: 'Copyright © Creator SN - 2025'
|
|
23
|
+
},
|
|
24
|
+
search: {
|
|
25
|
+
provider: 'local'
|
|
26
|
+
},
|
|
27
|
+
outline: 3,
|
|
28
|
+
socialLinks: [
|
|
29
|
+
{ icon: 'github', link: 'https://github.com/wocwin/t-ui-plus' }
|
|
30
|
+
],
|
|
31
|
+
nav: [
|
|
32
|
+
{ text: 'PowerEditor3', link: '/' },
|
|
33
|
+
{
|
|
34
|
+
text: 'VFluent3',
|
|
35
|
+
link: 'https://github.com/Creator-SN/VFluent3'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
text: '关于',
|
|
39
|
+
items: [
|
|
40
|
+
{ text: 'Creator SN', link: 'https://github.com/Creator-SN' },
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
sidebar: {
|
|
45
|
+
'/components': [
|
|
46
|
+
{
|
|
47
|
+
text: '常用组件',
|
|
48
|
+
items: [
|
|
49
|
+
{ text: '下拉选择组件', link: '/components/TSelect/base.md' },
|
|
50
|
+
{ text: '下拉选择表格组件', link: '/components/TSelectTable/base.md' },
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
text: 'Dev',
|
|
55
|
+
items: [
|
|
56
|
+
{ text: 'Dev测试', link: '/components/devC/index.md' },
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
markdown: {
|
|
63
|
+
config(md) {
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
})
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Layout> </Layout>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import DefaultTheme from "vitepress/theme";
|
|
7
|
+
import { useData } from "vitepress";
|
|
8
|
+
import { watch } from "vue";
|
|
9
|
+
|
|
10
|
+
const { Layout } = DefaultTheme;
|
|
11
|
+
const viteData = useData();
|
|
12
|
+
|
|
13
|
+
watch(viteData.isDark, (val) => {
|
|
14
|
+
console.log(val);
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Custom from "./custom.vue"
|
|
2
|
+
import type { App } from "vue"
|
|
3
|
+
import { PowerEditorPlugins } from "@/packages"
|
|
4
|
+
import './style.css'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
Layout: Custom,
|
|
8
|
+
enhanceApp: ({ app }: { app: App }) => {
|
|
9
|
+
app.use(PowerEditorPlugins)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--vp-c-brand-1: #747bff; /* 品牌色 */
|
|
3
|
+
--vp-c-brand-light: #747bff; /* 浅色 */
|
|
4
|
+
--vp-c-brand-lighter: #9499ff; /* 更浅 */
|
|
5
|
+
--vp-c-brand-dark: #535bf2; /* 深色 */
|
|
6
|
+
--vp-c-brand-darker: #454ce1; /* 更深 */
|
|
7
|
+
|
|
8
|
+
/* 其他可自定义颜色 */
|
|
9
|
+
--vp-c-accent: #ff9800;
|
|
10
|
+
--vp-button-brand-bg: var(--vp-c-brand);
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Dev C Demo
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: home
|
|
3
|
+
|
|
4
|
+
title: PowerEditor3
|
|
5
|
+
# titleTemplate: 选项卡描述
|
|
6
|
+
editLink: true
|
|
7
|
+
lastUpdated: true
|
|
8
|
+
hero:
|
|
9
|
+
name: PowerEditor3
|
|
10
|
+
text: vue3基础组件
|
|
11
|
+
tagline: Vue3 中基于VFluent3二次封装基础组件文档
|
|
12
|
+
image:
|
|
13
|
+
src: /assets/logo.svg
|
|
14
|
+
alt: PowerEditor
|
|
15
|
+
actions:
|
|
16
|
+
- theme: brand
|
|
17
|
+
text: 安装指南
|
|
18
|
+
link: /components/devC/index.md
|
|
19
|
+
- theme: brand
|
|
20
|
+
text: 组件预览
|
|
21
|
+
link: /components/devC/index.md
|
|
22
|
+
features:
|
|
23
|
+
- icon: 🔨
|
|
24
|
+
title: 实际项目
|
|
25
|
+
details: 实际项目中碰到的疑点、难点,致力于更优的自我。。
|
|
26
|
+
- icon: 😄
|
|
27
|
+
title: 基础组件
|
|
28
|
+
details: 基于VFluent3二次封装;使用组件 Demo 快速体验交互细节。。
|
|
29
|
+
- icon: ✈️
|
|
30
|
+
title: Vue驱动。
|
|
31
|
+
details: 享受 Vue3 + vite3 的开发体验,在 Markdown 中使用 Vue 组件,同时可以使用 Vue 来开发自定义主题。
|
|
32
|
+
---
|
|
33
|
+
<p style="display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
margin-top: 10px;">
|
|
37
|
+
<a href="https://github.com/vuejs/vue" target="_blank">
|
|
38
|
+
<img src="https://img.shields.io/badge/vue-3.5.13-orange.svg" alt="vue3">
|
|
39
|
+
</a>
|
|
40
|
+
<a href="https://github.com/aleversn/vfluent/stargazers" target="_blank">
|
|
41
|
+
<img src="https://img.shields.io/github/stars/aleversn/vfluent.svg" alt="vfluent">
|
|
42
|
+
</a>
|
|
43
|
+
<a href="https://www.npmjs.com/package/@creatorsn/vfluent3" target="_blank">
|
|
44
|
+
<img alt="npm" src="https://img.shields.io/npm/v/@creatorsn/vfluent3.svg" />
|
|
45
|
+
</a>
|
|
46
|
+
</p>
|
|
47
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="1689" height="1863" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden"><defs><filter id="fx0" x="-10%" y="-10%" width="120%" height="120%" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse"><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="discrete" tableValues="0 0"/><feFuncG type="discrete" tableValues="0 0"/><feFuncB type="discrete" tableValues="0 0"/><feFuncA type="linear" slope="0.309804" intercept="0"/></feComponentTransfer><feGaussianBlur stdDeviation="7.12271 7.12963"/></filter><filter id="fx1" x="-10%" y="-10%" width="120%" height="120%" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse"><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="discrete" tableValues="0 0"/><feFuncG type="discrete" tableValues="0 0"/><feFuncB type="discrete" tableValues="0 0"/><feFuncA type="linear" slope="0.0509804" intercept="0"/></feComponentTransfer><feGaussianBlur stdDeviation="6.11111 6.13546"/></filter><filter id="fx2" x="-10%" y="-10%" width="120%" height="120%" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse"><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="discrete" tableValues="0 0"/><feFuncG type="discrete" tableValues="0 0"/><feFuncB type="discrete" tableValues="0 0"/><feFuncA type="linear" slope="0.0509804" intercept="0"/></feComponentTransfer><feGaussianBlur stdDeviation="6.11473 6.11493"/></filter><filter id="fx3" x="-10%" y="-10%" width="120%" height="120%" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse"><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="discrete" tableValues="0 0"/><feFuncG type="discrete" tableValues="0 0"/><feFuncB type="discrete" tableValues="0 0"/><feFuncA type="linear" slope="0.0509804" intercept="0"/></feComponentTransfer><feGaussianBlur stdDeviation="6.11111 6.11818"/></filter><clipPath id="clip4"><rect x="1274" y="138" width="1689" height="1863"/></clipPath><clipPath id="clip5"><rect x="-7.65924" y="-7.33331" width="359.318" height="301.667"/></clipPath><clipPath id="clip6"><rect x="0" y="0" width="343" height="288"/></clipPath><clipPath id="clip7"><rect x="-3.5" y="-6.52588" width="156" height="139.052"/></clipPath><clipPath id="clip8"><rect x="0" y="0" width="147" height="126"/></clipPath><linearGradient x1="1631.82" y1="456.919" x2="1818.41" y2="553.496" gradientUnits="userSpaceOnUse" spreadMethod="reflect" id="fill9"><stop offset="0" stop-color="#FFCA5A"/><stop offset="0.5" stop-color="#FFCA5A"/><stop offset="1" stop-color="#F19745"/></linearGradient><clipPath id="clip10"><rect x="-3.50208" y="-3.5022" width="855.005" height="807.004"/></clipPath><clipPath id="clip11"><rect x="0" y="0" width="846" height="800"/></clipPath><linearGradient x1="1813.49" y1="2249.48" x2="2404.27" y2="44.3765" gradientUnits="userSpaceOnUse" spreadMethod="reflect" id="fill12"><stop offset="0" stop-color="#FFCA5A"/><stop offset="0.5" stop-color="#FFCA5A"/><stop offset="1" stop-color="#F19745"/></linearGradient><linearGradient x1="3129.61" y1="1447.84" x2="995.389" y2="896.939" gradientUnits="userSpaceOnUse" spreadMethod="reflect" id="fill13"><stop offset="0" stop-color="#F8EA80"/><stop offset="0.0357143" stop-color="#F7E97F"/><stop offset="0.0714286" stop-color="#F7E97F"/><stop offset="0.107143" stop-color="#F7E97F"/><stop offset="0.142857" stop-color="#F7E97F"/><stop offset="0.178571" stop-color="#F7E87E"/><stop offset="0.214286" stop-color="#F7E87E"/><stop offset="0.25" stop-color="#F7E87D"/><stop offset="0.285714" stop-color="#F7E77D"/><stop offset="0.321429" stop-color="#F7E67C"/><stop offset="0.357143" stop-color="#F7E67B"/><stop offset="0.392857" stop-color="#F7E57A"/><stop offset="0.428571" stop-color="#F7E47A"/><stop offset="0.464286" stop-color="#F7E379"/><stop offset="0.5" stop-color="#F7E278"/><stop offset="0.535714" stop-color="#F7E177"/><stop offset="0.571429" stop-color="#F7E075"/><stop offset="0.607143" stop-color="#F7DF74"/><stop offset="0.642857" stop-color="#F7DE73"/><stop offset="0.678571" stop-color="#F7DD71"/><stop offset="0.714286" stop-color="#F7DC70"/><stop offset="0.75" stop-color="#F7DA6F"/><stop offset="0.785714" stop-color="#F7D96D"/><stop offset="0.821429" stop-color="#F7D86B"/><stop offset="0.857143" stop-color="#F7D66A"/><stop offset="0.892857" stop-color="#F7D468"/><stop offset="0.928571" stop-color="#F7D366"/><stop offset="0.964286" stop-color="#F7D164"/><stop offset="1" stop-color="#F7D063"/></linearGradient><clipPath id="clip14"><rect x="-6.5" y="-6.50751" width="232" height="445.014"/></clipPath><clipPath id="clip15"><rect x="0" y="0" width="222" height="433"/></clipPath><linearGradient x1="-4.20134e-14" y1="673.415" x2="673.415" y2="-4.20134e-14" gradientUnits="userSpaceOnUse" spreadMethod="reflect" id="fill16"><stop offset="0" stop-color="#FFCA5A"/><stop offset="0.5" stop-color="#FCD03C"/><stop offset="1" stop-color="#F7E563"/></linearGradient></defs><g clip-path="url(#clip4)" transform="translate(-1274 -138)"><g clip-path="url(#clip5)" filter="url(#fx0)" transform="matrix(3.00292 0 0 3 1625 882)"><g clip-path="url(#clip6)"><path d="M53.8057 34.927 37.7008 22.0016C36.3087 23.5104 34.9428 25.0365 33.6027 26.5881 32.2072 28.2358 30.8139 29.9016 29.4658 31.6149L29.4037 31.6856 29.3461 31.7632C28.0176 33.4794 26.7418 35.2408 25.4825 37.014 24.3059 38.6921 23.1543 40.3932 22.0404 42.114L38.1409 55.0433C43.978 59.7171 51.306 61.6878 57.7284 60.3058L313.977 265.887C316.303 265.86 318.654 265.792 320.967 265.599 320.609 263.267 320.145 260.942 319.629 258.623L63.3833 53.0499C63.2215 46.3916 59.6416 39.6066 53.8057 34.927Z" fill="#181717" fill-rule="evenodd"/></g></g><path d="M1760.65 960.854 1712.29 922.078C1708.1 926.604 1704 931.182 1699.98 935.837 1695.79 940.78 1691.6 945.778 1687.56 950.917L1687.37 951.13 1687.2 951.362C1683.21 956.511 1679.38 961.795 1675.59 967.115 1672.06 972.149 1668.6 977.252 1665.26 982.415L1713.61 1021.2C1731.13 1035.22 1753.14 1041.14 1772.43 1036.99L2541.92 1653.73C2548.9 1653.65 2555.96 1653.45 2562.91 1652.87 2561.84 1645.87 2560.44 1638.9 2558.89 1631.94L1789.41 1015.22C1788.92 995.247 1778.17 974.893 1760.65 960.854Z" fill="#181717" fill-rule="evenodd"/><g clip-path="url(#clip7)" filter="url(#fx1)" transform="matrix(2 0 0 1.99206 1571 414)"><g clip-path="url(#clip8)"><path d="M19.1304 57.7348 70.1277 22.5244 127.835 18.9645 103.874 71.7909 52.8763 107.001Z" fill="#FF0000" fill-rule="evenodd"/></g></g><path d="M1599.54 519.289 1701.53 449.147 1816.95 442.056 1769.02 547.289 1667.03 617.431Z" fill="url(#fill9)" fill-rule="evenodd"/><g clip-path="url(#clip10)" filter="url(#fx2)" transform="matrix(1.99882 0 0 1.99875 1273 403)"><g clip-path="url(#clip11)"><path d="M610.076 19.2041C807.697 122.507 884.16 366.459 780.86 564.086 677.561 761.713 433.617 838.179 235.997 734.876 38.3763 631.573-38.0863 387.621 65.2129 189.994 100.678 122.144 154.701 65.7758 220.983 27.4628L250.765 78.9901C86.1626 174.136 29.8542 384.709 124.997 549.317 220.14 713.925 430.705 770.236 595.308 675.09 759.911 579.944 816.219 369.371 721.076 204.763 688.412 148.249 640.354 102.187 582.507 71.9488Z" fill="#FF0000" fill-rule="evenodd"/></g></g><path d="M2482.71 431.662C2877.72 638.138 3030.55 1125.74 2824.08 1520.74 2617.6 1915.75 2130 2068.59 1734.99 1862.11 1339.98 1655.63 1187.15 1168.04 1393.63 773.028 1464.51 637.413 1572.5 524.747 1704.98 448.169L1764.51 551.159C1435.5 741.332 1322.95 1162.21 1513.12 1491.22 1703.3 1820.24 2124.18 1932.79 2453.19 1742.61 2782.2 1552.44 2894.75 1131.56 2704.58 802.547 2639.29 689.59 2543.23 597.524 2427.6 537.085Z" fill="url(#fill12)" fill-rule="evenodd"/><path d="M2915.75 1161.76C2907.54 1607.4 2539.62 1962.01 2093.97 1953.79 1648.33 1945.58 1293.73 1577.65 1301.95 1132.01 1307.15 849.5 1459.73 590.286 1704.21 448.615L1724.94 484.394C1359.06 696.418 1234.33 1164.91 1446.36 1530.79 1658.38 1896.68 2126.87 2021.4 2492.75 1809.38 2724.7 1674.97 2869.47 1429.04 2874.41 1161Z" fill="url(#fill13)" fill-rule="evenodd"/><g clip-path="url(#clip14)" filter="url(#fx3)" transform="matrix(2 0 0 1.99769 1923 137)"><g clip-path="url(#clip15)" transform="matrix(1 0 0 1 0 -1.42109e-14)"><path d="M132.093 0 200.509 94.7975 172.288 105.977 258.464 187.209 230.243 200.774 336.781 336.781 156.104 232.55 190.562 218.081 78.3015 151.317 118.528 130.69 0 60.6517Z" fill="#FF0000" fill-rule="evenodd" transform="matrix(-0.901196 0.433411 0.432911 0.902238 176.641 -35.7268)"/></g></g><path d="M264.128 0 400.931 189.554 344.502 211.908 516.815 374.338 460.385 401.461 673.415 673.415 312.14 464.999 381.041 436.067 156.569 302.569 237.005 261.322 0 121.277Z" fill="url(#fill16)" fill-rule="evenodd" transform="matrix(-0.901392 0.433005 0.433005 0.901392 2266.56 55.9062)"/></g></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@creatorsn/powereditor3",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "dist/powereditor3.umd.cjs",
|
|
10
|
+
"module": "dist/powereditor3.js",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"docs:dev": "vitepress dev docs",
|
|
13
|
+
"docs:build": "vitepress build docs",
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "vue-tsc -b && vite build",
|
|
16
|
+
"preview": "vite preview"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"autoprefixer": "^10.4.21",
|
|
20
|
+
"path": "^0.12.7",
|
|
21
|
+
"sass": "^1.89.2",
|
|
22
|
+
"url": "^0.11.4",
|
|
23
|
+
"vue": "^3.5.13"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^24.0.3",
|
|
27
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
28
|
+
"@vue/tsconfig": "^0.7.0",
|
|
29
|
+
"typescript": "~5.8.3",
|
|
30
|
+
"vite": "^6.3.5",
|
|
31
|
+
"vitepress": "^1.6.3",
|
|
32
|
+
"vue-tsc": "^2.2.8"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="dev-c-container">
|
|
3
|
+
<h1>{{ title }}</h1>
|
|
4
|
+
<p>{{ message }}</p>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script setup>
|
|
9
|
+
defineProps({
|
|
10
|
+
title: {
|
|
11
|
+
default: "Dev C",
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
export default {
|
|
18
|
+
name: "DevC",
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
message: "Welcome to Dev C!",
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
mounted() {
|
|
25
|
+
console.log(this.message);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<style lang="scss">
|
|
31
|
+
.dev-c-container {
|
|
32
|
+
padding: 10px;
|
|
33
|
+
background: whitesmoke;
|
|
34
|
+
border-radius: 8px;
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { App, Plugin } from 'vue';
|
|
2
|
+
import DevC from './devC'
|
|
3
|
+
|
|
4
|
+
const components = [
|
|
5
|
+
DevC
|
|
6
|
+
]
|
|
7
|
+
|
|
8
|
+
export const PowerEditorPlugins: Plugin = {
|
|
9
|
+
install(app: App, options: any) {
|
|
10
|
+
for (const component of components) {
|
|
11
|
+
app.use(component);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
declare module 'vue' {
|
|
17
|
+
export interface GlobalComponents {
|
|
18
|
+
DevC: typeof DevC;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default PowerEditorPlugins;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { App, Component, Plugin } from 'vue';
|
|
2
|
+
|
|
3
|
+
type ComponentPlugin<T> = T & Plugin;
|
|
4
|
+
|
|
5
|
+
export const convertPlugin = <T>(component: T): ComponentPlugin<T> => {
|
|
6
|
+
(component as ComponentPlugin<T>).install = (app: App): void => {
|
|
7
|
+
app.component((component as any).name, component as Component);
|
|
8
|
+
};
|
|
9
|
+
return component as ComponentPlugin<T>;
|
|
10
|
+
};
|
package/public/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import HelloWorld from './components/HelloWorld.vue'
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div>
|
|
7
|
+
<a href="https://vite.dev" target="_blank">
|
|
8
|
+
<img src="/vite.svg" class="logo" alt="Vite logo" />
|
|
9
|
+
</a>
|
|
10
|
+
<a href="https://vuejs.org/" target="_blank">
|
|
11
|
+
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
|
|
12
|
+
</a>
|
|
13
|
+
</div>
|
|
14
|
+
<HelloWorld msg="Vite + Vue" />
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<style scoped>
|
|
18
|
+
.logo {
|
|
19
|
+
height: 6em;
|
|
20
|
+
padding: 1.5em;
|
|
21
|
+
will-change: filter;
|
|
22
|
+
transition: filter 300ms;
|
|
23
|
+
}
|
|
24
|
+
.logo:hover {
|
|
25
|
+
filter: drop-shadow(0 0 2em #646cffaa);
|
|
26
|
+
}
|
|
27
|
+
.logo.vue:hover {
|
|
28
|
+
filter: drop-shadow(0 0 2em #42b883aa);
|
|
29
|
+
}
|
|
30
|
+
</style>
|
package/src/App.vue.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import HelloWorld from './components/HelloWorld.vue';
|
|
2
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
3
|
+
const __VLS_ctx = {};
|
|
4
|
+
let __VLS_components;
|
|
5
|
+
let __VLS_directives;
|
|
6
|
+
/** @type {__VLS_StyleScopedClasses['logo']} */ ;
|
|
7
|
+
/** @type {__VLS_StyleScopedClasses['logo']} */ ;
|
|
8
|
+
// CSS variable injection
|
|
9
|
+
// CSS variable injection end
|
|
10
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
|
|
11
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.a, __VLS_intrinsicElements.a)({
|
|
12
|
+
href: "https://vite.dev",
|
|
13
|
+
target: "_blank",
|
|
14
|
+
});
|
|
15
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.img)({
|
|
16
|
+
src: "/vite.svg",
|
|
17
|
+
...{ class: "logo" },
|
|
18
|
+
alt: "Vite logo",
|
|
19
|
+
});
|
|
20
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.a, __VLS_intrinsicElements.a)({
|
|
21
|
+
href: "https://vuejs.org/",
|
|
22
|
+
target: "_blank",
|
|
23
|
+
});
|
|
24
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.img)({
|
|
25
|
+
src: "./assets/vue.svg",
|
|
26
|
+
...{ class: "logo vue" },
|
|
27
|
+
alt: "Vue logo",
|
|
28
|
+
});
|
|
29
|
+
/** @type {[typeof HelloWorld, ]} */ ;
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const __VLS_0 = __VLS_asFunctionalComponent(HelloWorld, new HelloWorld({
|
|
32
|
+
msg: "Vite + Vue",
|
|
33
|
+
}));
|
|
34
|
+
const __VLS_1 = __VLS_0({
|
|
35
|
+
msg: "Vite + Vue",
|
|
36
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
37
|
+
/** @type {__VLS_StyleScopedClasses['logo']} */ ;
|
|
38
|
+
/** @type {__VLS_StyleScopedClasses['logo']} */ ;
|
|
39
|
+
/** @type {__VLS_StyleScopedClasses['vue']} */ ;
|
|
40
|
+
var __VLS_dollars;
|
|
41
|
+
const __VLS_self = (await import('vue')).defineComponent({
|
|
42
|
+
setup() {
|
|
43
|
+
return {
|
|
44
|
+
HelloWorld: HelloWorld,
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
export default (await import('vue')).defineComponent({
|
|
49
|
+
setup() {
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
; /* PartiallyEnd: #4569/main.vue */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
defineProps<{ msg: string }>()
|
|
5
|
+
|
|
6
|
+
const count = ref(0)
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<h1>{{ msg }}</h1>
|
|
11
|
+
|
|
12
|
+
<div class="card">
|
|
13
|
+
<button type="button" @click="count++">count is {{ count }}</button>
|
|
14
|
+
<p>
|
|
15
|
+
Edit
|
|
16
|
+
<code>components/HelloWorld.vue</code> to test HMR
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<p>
|
|
21
|
+
Check out
|
|
22
|
+
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
|
|
23
|
+
>create-vue</a
|
|
24
|
+
>, the official Vue + Vite starter
|
|
25
|
+
</p>
|
|
26
|
+
<p>
|
|
27
|
+
Learn more about IDE Support for Vue in the
|
|
28
|
+
<a
|
|
29
|
+
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
|
|
30
|
+
target="_blank"
|
|
31
|
+
>Vue Docs Scaling up Guide</a
|
|
32
|
+
>.
|
|
33
|
+
</p>
|
|
34
|
+
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<style scoped>
|
|
38
|
+
.read-the-docs {
|
|
39
|
+
color: #888;
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
const __VLS_props = defineProps();
|
|
3
|
+
const count = ref(0);
|
|
4
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
5
|
+
const __VLS_ctx = {};
|
|
6
|
+
let __VLS_components;
|
|
7
|
+
let __VLS_directives;
|
|
8
|
+
// CSS variable injection
|
|
9
|
+
// CSS variable injection end
|
|
10
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.h1, __VLS_intrinsicElements.h1)({});
|
|
11
|
+
(__VLS_ctx.msg);
|
|
12
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
13
|
+
...{ class: "card" },
|
|
14
|
+
});
|
|
15
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.button, __VLS_intrinsicElements.button)({
|
|
16
|
+
...{ onClick: (...[$event]) => {
|
|
17
|
+
__VLS_ctx.count++;
|
|
18
|
+
} },
|
|
19
|
+
type: "button",
|
|
20
|
+
});
|
|
21
|
+
(__VLS_ctx.count);
|
|
22
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.p, __VLS_intrinsicElements.p)({});
|
|
23
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.code, __VLS_intrinsicElements.code)({});
|
|
24
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.p, __VLS_intrinsicElements.p)({});
|
|
25
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.a, __VLS_intrinsicElements.a)({
|
|
26
|
+
href: "https://vuejs.org/guide/quick-start.html#local",
|
|
27
|
+
target: "_blank",
|
|
28
|
+
});
|
|
29
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.p, __VLS_intrinsicElements.p)({});
|
|
30
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.a, __VLS_intrinsicElements.a)({
|
|
31
|
+
href: "https://vuejs.org/guide/scaling-up/tooling.html#ide-support",
|
|
32
|
+
target: "_blank",
|
|
33
|
+
});
|
|
34
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.p, __VLS_intrinsicElements.p)({
|
|
35
|
+
...{ class: "read-the-docs" },
|
|
36
|
+
});
|
|
37
|
+
/** @type {__VLS_StyleScopedClasses['card']} */ ;
|
|
38
|
+
/** @type {__VLS_StyleScopedClasses['read-the-docs']} */ ;
|
|
39
|
+
var __VLS_dollars;
|
|
40
|
+
const __VLS_self = (await import('vue')).defineComponent({
|
|
41
|
+
setup() {
|
|
42
|
+
return {
|
|
43
|
+
count: count,
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
__typeProps: {},
|
|
47
|
+
});
|
|
48
|
+
export default (await import('vue')).defineComponent({
|
|
49
|
+
setup() {
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
__typeProps: {},
|
|
53
|
+
});
|
|
54
|
+
; /* PartiallyEnd: #4569/main.vue */
|
package/src/main.js
ADDED
package/src/main.ts
ADDED
package/src/style.css
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
3
|
+
line-height: 1.5;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
|
|
6
|
+
color-scheme: light dark;
|
|
7
|
+
color: rgba(255, 255, 255, 0.87);
|
|
8
|
+
background-color: #242424;
|
|
9
|
+
|
|
10
|
+
font-synthesis: none;
|
|
11
|
+
text-rendering: optimizeLegibility;
|
|
12
|
+
-webkit-font-smoothing: antialiased;
|
|
13
|
+
-moz-osx-font-smoothing: grayscale;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a {
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
color: #646cff;
|
|
19
|
+
text-decoration: inherit;
|
|
20
|
+
}
|
|
21
|
+
a:hover {
|
|
22
|
+
color: #535bf2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
body {
|
|
26
|
+
margin: 0;
|
|
27
|
+
display: flex;
|
|
28
|
+
place-items: center;
|
|
29
|
+
min-width: 320px;
|
|
30
|
+
min-height: 100vh;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
h1 {
|
|
34
|
+
font-size: 3.2em;
|
|
35
|
+
line-height: 1.1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
button {
|
|
39
|
+
border-radius: 8px;
|
|
40
|
+
border: 1px solid transparent;
|
|
41
|
+
padding: 0.6em 1.2em;
|
|
42
|
+
font-size: 1em;
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
font-family: inherit;
|
|
45
|
+
background-color: #1a1a1a;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
transition: border-color 0.25s;
|
|
48
|
+
}
|
|
49
|
+
button:hover {
|
|
50
|
+
border-color: #646cff;
|
|
51
|
+
}
|
|
52
|
+
button:focus,
|
|
53
|
+
button:focus-visible {
|
|
54
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.card {
|
|
58
|
+
padding: 2em;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#app {
|
|
62
|
+
max-width: 1280px;
|
|
63
|
+
margin: 0 auto;
|
|
64
|
+
padding: 2rem;
|
|
65
|
+
text-align: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (prefers-color-scheme: light) {
|
|
69
|
+
:root {
|
|
70
|
+
color: #213547;
|
|
71
|
+
background-color: #ffffff;
|
|
72
|
+
}
|
|
73
|
+
a:hover {
|
|
74
|
+
color: #747bff;
|
|
75
|
+
}
|
|
76
|
+
button {
|
|
77
|
+
background-color: #f9f9f9;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"lib": ["ESNext", "DOM"],
|
|
6
|
+
"moduleResolution": "Node",
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"baseUrl": "./",
|
|
11
|
+
"paths": {
|
|
12
|
+
"@/*": ["src/*"]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"include": ["src/**/*", "docs/**/*"],
|
|
16
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
17
|
+
}
|