create-secra 0.1.0 → 0.1.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/README.md +3 -5
- package/bin/index.mjs +15 -11
- package/package.json +4 -6
- package/template/apps/core/index.html +13 -0
- package/template/apps/core/package.json +18 -0
- package/template/apps/core/public/favicon.ico +1 -0
- package/template/apps/core/public/favicon.svg +1 -0
- package/template/apps/core/public/logo.svg +1 -0
- package/template/apps/core/src/assets/react.svg +1 -0
- package/template/apps/core/src/main.tsx +21 -0
- package/template/apps/core/src/pages/index.tsx +4 -0
- package/template/apps/core/src/router.ts +15 -0
- package/template/apps/core/src/types/auto-imports.d.ts +130 -0
- package/template/apps/core/tsconfig.app.json +7 -0
- package/template/apps/core/tsconfig.json +7 -0
- package/template/apps/core/tsconfig.node.json +7 -0
- package/template/apps/core/vite.config.ts +86 -0
- package/template/eslint.config.js +23 -0
- package/template/package.json +60 -0
- package/template/packages/sdk/.swcrc +18 -0
- package/template/packages/sdk/package-lock.json +1621 -0
- package/template/packages/sdk/package.json +32 -0
- package/template/packages/sdk/src/build/index.ts +33 -0
- package/template/packages/sdk/src/build/plugins/auto-import.ts +47 -0
- package/template/packages/sdk/src/build/plugins/bundle-analyzer.ts +35 -0
- package/template/packages/sdk/src/build/plugins/remove-console.ts +21 -0
- package/template/packages/sdk/src/build/plugins/unocss.ts +110 -0
- package/template/packages/sdk/src/build/plugins/unplugin-icon.ts +43 -0
- package/template/packages/sdk/src/index.ts +1 -0
- package/template/packages/sdk/src/request/index.ts +341 -0
- package/template/packages/sdk/src/styles/reset.css +111 -0
- package/template/packages/sdk/tsconfig.json +16 -0
- package/template/pnpm-lock.yaml +8055 -0
- package/template/pnpm-workspace.yaml +3 -0
- package/template/tsconfig.app.json +29 -0
- package/template/tsconfig.json +7 -0
- package/template/tsconfig.node.json +27 -0
- package/template/turbo.json +17 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* Reset CSS - 常用的样式重置 */
|
|
2
|
+
|
|
3
|
+
/* 使用更直观的盒模型 */
|
|
4
|
+
*,
|
|
5
|
+
*::before,
|
|
6
|
+
*::after {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* 移除默认的 margin 和 padding */
|
|
11
|
+
* {
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* 设置根元素字体大小和行高 */
|
|
17
|
+
html {
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
-webkit-text-size-adjust: 100%;
|
|
21
|
+
-moz-text-size-adjust: 100%;
|
|
22
|
+
text-size-adjust: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* 设置 body 样式 */
|
|
26
|
+
body {
|
|
27
|
+
margin: 0;
|
|
28
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
29
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
30
|
+
sans-serif;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
-moz-osx-font-smoothing: grayscale;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* 移除列表样式 */
|
|
36
|
+
ul,
|
|
37
|
+
ol {
|
|
38
|
+
list-style: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* 移除链接默认样式 */
|
|
42
|
+
a {
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
color: inherit;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* 移除按钮默认样式 */
|
|
48
|
+
button {
|
|
49
|
+
background: none;
|
|
50
|
+
border: none;
|
|
51
|
+
padding: 0;
|
|
52
|
+
font: inherit;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
outline: inherit;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* 移除输入框默认样式 */
|
|
58
|
+
input,
|
|
59
|
+
textarea,
|
|
60
|
+
select {
|
|
61
|
+
font: inherit;
|
|
62
|
+
border: none;
|
|
63
|
+
outline: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* 移除图片默认样式 */
|
|
67
|
+
img,
|
|
68
|
+
picture,
|
|
69
|
+
video,
|
|
70
|
+
canvas,
|
|
71
|
+
svg {
|
|
72
|
+
display: block;
|
|
73
|
+
max-width: 100%;
|
|
74
|
+
height: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 移除表格默认样式 */
|
|
78
|
+
table {
|
|
79
|
+
border-collapse: collapse;
|
|
80
|
+
border-spacing: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* 移除标题默认样式 */
|
|
84
|
+
h1,
|
|
85
|
+
h2,
|
|
86
|
+
h3,
|
|
87
|
+
h4,
|
|
88
|
+
h5,
|
|
89
|
+
h6 {
|
|
90
|
+
font-size: inherit;
|
|
91
|
+
font-weight: inherit;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* 移除段落默认样式 */
|
|
95
|
+
p {
|
|
96
|
+
margin: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* 移除引用默认样式 */
|
|
100
|
+
blockquote,
|
|
101
|
+
q {
|
|
102
|
+
quotes: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
blockquote::before,
|
|
106
|
+
blockquote::after,
|
|
107
|
+
q::before,
|
|
108
|
+
q::after {
|
|
109
|
+
content: '';
|
|
110
|
+
content: none;
|
|
111
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"lib": ["ES2022", "DOM"],
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"types": ["react", "react-dom"],
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"outDir": "dist"
|
|
14
|
+
},
|
|
15
|
+
"include": ["src"]
|
|
16
|
+
}
|