create-secra 1.0.1 → 1.0.3

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.
Files changed (43) hide show
  1. package/README.md +15 -5
  2. package/README.zh-CN.md +15 -4
  3. package/bin/index.mjs +9 -15
  4. package/package.json +2 -2
  5. package/template/{apps/core/index.html → index.html} +2 -3
  6. package/template/package.json +11 -47
  7. package/template/src/App.tsx +48 -0
  8. package/template/src/main.tsx +36 -0
  9. package/template/src/styles.css +163 -0
  10. package/template/src/vite-env.d.ts +1 -0
  11. package/template/tsconfig.app.json +0 -5
  12. package/template/tsconfig.node.json +0 -5
  13. package/template/vite.config.ts +6 -0
  14. package/template/apps/core/package.json +0 -18
  15. package/template/apps/core/public/favicon.ico +0 -1
  16. package/template/apps/core/public/favicon.svg +0 -1
  17. package/template/apps/core/public/logo.svg +0 -1
  18. package/template/apps/core/src/assets/react.svg +0 -1
  19. package/template/apps/core/src/main.tsx +0 -35
  20. package/template/apps/core/src/pages/index.tsx +0 -84
  21. package/template/apps/core/src/router.ts +0 -19
  22. package/template/apps/core/src/types/auto-imports.d.ts +0 -130
  23. package/template/apps/core/tsconfig.app.json +0 -7
  24. package/template/apps/core/tsconfig.json +0 -7
  25. package/template/apps/core/tsconfig.node.json +0 -7
  26. package/template/apps/core/vite.config.ts +0 -86
  27. package/template/eslint.config.js +0 -23
  28. package/template/packages/sdk/.swcrc +0 -18
  29. package/template/packages/sdk/package-lock.json +0 -1621
  30. package/template/packages/sdk/package.json +0 -35
  31. package/template/packages/sdk/src/build/index.ts +0 -33
  32. package/template/packages/sdk/src/build/plugins/auto-import.ts +0 -47
  33. package/template/packages/sdk/src/build/plugins/bundle-analyzer.ts +0 -35
  34. package/template/packages/sdk/src/build/plugins/remove-console.ts +0 -21
  35. package/template/packages/sdk/src/build/plugins/unocss.ts +0 -113
  36. package/template/packages/sdk/src/build/plugins/unplugin-icon.ts +0 -43
  37. package/template/packages/sdk/src/index.ts +0 -1
  38. package/template/packages/sdk/src/request/index.ts +0 -341
  39. package/template/packages/sdk/src/styles/reset.css +0 -111
  40. package/template/packages/sdk/tsconfig.json +0 -16
  41. package/template/pnpm-lock.yaml +0 -8034
  42. package/template/pnpm-workspace.yaml +0 -3
  43. package/template/turbo.json +0 -17
@@ -1,111 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }