create-antd-skin 1.2.6 → 1.2.8
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 +7 -6
- package/bin/index.js +1 -1
- package/bin/skin.js +9 -1
- package/package.json +1 -1
- package/skins/blue-sky-dark/images/skin-icon-dark.webp +0 -0
- package/skins/blue-sky-dark/index.tsx +2 -0
- package/skins/blue-sky-light/images/skin-icon-light.webp +0 -0
- package/skins/blue-sky-light/index.tsx +3 -1
- package/skins/park-waves-dark/images/skin-icon-dark.webp +0 -0
- package/skins/park-waves-dark/index.tsx +3 -1
- package/skins/park-waves-light/images/skin-icon-light.webp +0 -0
- package/skins/park-waves-light/index.tsx +2 -0
- package/skins/park-waves-none/index.tsx +2 -0
- package/skins/park-waves-sider/images/skin-icon-sider.webp +0 -0
- package/skins/park-waves-sider/index.tsx +4 -2
- package/skins/red-waves-light/images/app-logo-light.webp +0 -0
- package/skins/red-waves-light/images/bottom-left-bg.webp +0 -0
- package/skins/red-waves-light/images/center-left-bg.webp +0 -0
- package/skins/red-waves-light/images/menu-selected-item-bg.webp +0 -0
- package/skins/red-waves-light/images/skin-icon-light.webp +0 -0
- package/skins/red-waves-light/images/top-right-bg.webp +0 -0
- package/skins/red-waves-light/index.tsx +51 -0
package/README.md
CHANGED
|
@@ -12,12 +12,13 @@ npx create-antd-skin@latest parkWavesDark
|
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### Available Skins
|
|
15
|
-
- `parkWavesLight
|
|
16
|
-
- `parkWavesDark
|
|
17
|
-
- `parkWavesNone
|
|
18
|
-
- `parkWavesSider
|
|
19
|
-
- `blueSkyDark
|
|
20
|
-
- `blueSkyLight
|
|
15
|
+
- `parkWavesLight` – Light theme, featuring a purple color palette and a background of rippling ribbons;
|
|
16
|
+
- `parkWavesDark` – Dark theme, featuring a purple color palette and a background of rippling ribbons;
|
|
17
|
+
- `parkWavesNone` – Dark theme, featuring a black color palette and a sidebar layout;
|
|
18
|
+
- `parkWavesSider` – Dark theme, featuring a purple color palette, a background of rippling ribbons, and a sidebar layout;
|
|
19
|
+
- `blueSkyDark` – Dark theme, featuring a blue color palette and a background of clouds in the sky;
|
|
20
|
+
- `blueSkyLight` – Light theme, featuring a blue color palette and a background of clouds in the sky;
|
|
21
|
+
- `redWavesLight` – Light theme, featuring a red color palette and a background of snowflake-like light waves;
|
|
21
22
|
|
|
22
23
|
## Related Links
|
|
23
24
|
|
package/bin/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const program = new commander_1.Command();
|
|
|
8
8
|
program
|
|
9
9
|
.name('create-antd-skin')
|
|
10
10
|
.description("Add a system skin to your project for @adminui-dev/admin-layout")
|
|
11
|
-
.version("1.2.
|
|
11
|
+
.version("1.2.6")
|
|
12
12
|
.argument("[skin-name]", "Skin name")
|
|
13
13
|
.option("--list", "Get a list of skin names")
|
|
14
14
|
.action(async (skinName) => {
|
package/bin/skin.js
CHANGED
|
@@ -88,8 +88,16 @@ function toCamelCase(str) {
|
|
|
88
88
|
return str.replace(/-([a-z])/g, (_, group1) => group1.toUpperCase())
|
|
89
89
|
.replace(/^\w/, s => s.toUpperCase());
|
|
90
90
|
}
|
|
91
|
+
// function toPascalCase(str: string) {
|
|
92
|
+
// return str
|
|
93
|
+
// .replace(/-([a-z])/g, (_, g1) => g1.toUpperCase())
|
|
94
|
+
// .replace(/^[a-z]/, s => s.toUpperCase());
|
|
95
|
+
// }
|
|
91
96
|
function toKebabCase(str) {
|
|
92
|
-
return str
|
|
97
|
+
return str
|
|
98
|
+
.replace(/([A-Z])/g, '-$1')
|
|
99
|
+
.toLowerCase()
|
|
100
|
+
.replace(/^-/, ''); // 去掉开头可能多出的横线
|
|
93
101
|
}
|
|
94
102
|
async function installSkin(skinName) {
|
|
95
103
|
const cwd = process.cwd();
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -27,7 +27,9 @@ const ImageBackground=()=>{
|
|
|
27
27
|
const skin:ThemeSkin = {
|
|
28
28
|
"name":"blueSkyLight",
|
|
29
29
|
"skinType":"system",
|
|
30
|
-
"
|
|
30
|
+
"author":"adminui.dev",
|
|
31
|
+
"description":"Bright blue sky themed skin",
|
|
32
|
+
"backgroundColor":"#fbfbfb",
|
|
31
33
|
"layoutConfig":{
|
|
32
34
|
"theme":"light",
|
|
33
35
|
"primaryColor":"#4dbae9",
|
|
Binary file
|
|
@@ -25,8 +25,10 @@ const ImageBackground=()=>{
|
|
|
25
25
|
)
|
|
26
26
|
}
|
|
27
27
|
const skin:ThemeSkin = {
|
|
28
|
-
"name":"
|
|
28
|
+
"name":"ParkWavesDark",
|
|
29
29
|
"skinType":"system",
|
|
30
|
+
"author":"adminui.dev",
|
|
31
|
+
"description":"Dark-themed skin with purple water ripples",
|
|
30
32
|
"layoutConfig":{
|
|
31
33
|
"theme":"dark",
|
|
32
34
|
"primaryColor":"#6e53da",
|
|
Binary file
|
|
@@ -27,6 +27,8 @@ const ImageBackground=()=>{
|
|
|
27
27
|
const skin:ThemeSkin = {
|
|
28
28
|
"name":"parkWavesLight",
|
|
29
29
|
"skinType":"system",
|
|
30
|
+
"author":"adminui.dev",
|
|
31
|
+
"description":"A bright theme skin featuring purple water ripples",
|
|
30
32
|
"layoutConfig":{
|
|
31
33
|
"theme":"light",
|
|
32
34
|
"primaryColor":"#4a3a88",
|
|
Binary file
|
|
@@ -18,15 +18,17 @@ const ImageBackground=()=>{
|
|
|
18
18
|
const leftStyle = xs ? {"height":"100%"} : {"width:":"260px"}
|
|
19
19
|
return (
|
|
20
20
|
<div style={skinBgStyles}>
|
|
21
|
-
<LazyImage style={{...leftStyle
|
|
21
|
+
<LazyImage style={{...leftStyle,..imgStyles,top:"0px"}} src="/images/skins/park-waves-sider/aside-bg-sider.webp" alt="aisde-bg.webp" />
|
|
22
22
|
<LazyImage style={{...imgStyles,width:"90%",top:"0px",right:"0px"}} src="/images/skins/park-waves-sider/header-bg-light.webp" alt="header-bg.webp" />
|
|
23
|
-
<LazyImage style={{...imgStyles,height:"80px",bottom:"0px",right:"0px"}} src="/images/skins/park-waves-sider/footer-bg-light.webp" alt="
|
|
23
|
+
<LazyImage style={{...imgStyles,height:"80px",bottom:"0px",right:"0px"}} src="/images/skins/park-waves-sider/footer-bg-light.webp" alt="footer-bg-light.webp" />
|
|
24
24
|
</div>
|
|
25
25
|
)
|
|
26
26
|
}
|
|
27
27
|
const skin:ThemeSkin = {
|
|
28
28
|
"name":"parkWavesSider",
|
|
29
29
|
"skinType":"system",
|
|
30
|
+
"author":"adminui.dev",
|
|
31
|
+
"description":"Sidebar style with a purple rippling-water background",
|
|
30
32
|
"layoutConfig":{
|
|
31
33
|
"theme":"light",
|
|
32
34
|
"layoutType":"leftMenu",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { LazyImage } from "@adminui-dev/antd-layout"
|
|
2
|
+
import type {ThemeSkin} from "@adminui-dev/antd-layout"
|
|
3
|
+
import { Grid } from "antd"
|
|
4
|
+
|
|
5
|
+
const { useBreakpoint } = Grid
|
|
6
|
+
|
|
7
|
+
const skinBgStyles:React.CSSProperties = {
|
|
8
|
+
position:"absolute",
|
|
9
|
+
inset:"0",
|
|
10
|
+
}
|
|
11
|
+
const imgStyles:React.CSSProperties = {
|
|
12
|
+
position:"absolute",
|
|
13
|
+
transition:"width 0.3s, height 0.3s, opaticy 0.3s"
|
|
14
|
+
}
|
|
15
|
+
const ImageBackground=()=>{
|
|
16
|
+
const { lg } = useBreakpoint()
|
|
17
|
+
return (
|
|
18
|
+
<div style={skinBgStyles}>
|
|
19
|
+
<LazyImage style={{...imgStyles,...imgStyles,top:"0px",right:"0px"}} src="/images/skins/red-waves-light/top-right-bg.webp" alt="top-right-bg.webp" />
|
|
20
|
+
<LazyImage style={{...imgStyles,...imgStyles,bottom:"0px",left:"0px"}} src="/images/skins/red-waves-light/bottom-left-bg.webp" alt="bottom-left-bg.webp" />
|
|
21
|
+
<LazyImage style={{...imgStyles,...imgStyles,top:"-50px",left:lg?"40px":"-60px"}} src="/images/skins/red-waves-light/center-left-bg.webp" alt="center-left-bg.webp" />
|
|
22
|
+
</div>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
const skin:ThemeSkin = {
|
|
26
|
+
"name":"redWavesLight",
|
|
27
|
+
"label":"RedWavesLight",
|
|
28
|
+
"author":"adminui.dev",
|
|
29
|
+
"description":"Minimalist red light wave effect",
|
|
30
|
+
"skinType":"system",
|
|
31
|
+
"layoutConfig":{
|
|
32
|
+
"theme":"light",
|
|
33
|
+
"primaryColor":"#c64113",
|
|
34
|
+
"colorLink":"#d1562b",
|
|
35
|
+
"noneHeader":false,
|
|
36
|
+
"hideBorder":false,
|
|
37
|
+
"asideBlur":true,
|
|
38
|
+
"headerBlur":true,
|
|
39
|
+
"largeBrand":true,
|
|
40
|
+
"containerBlur":true,
|
|
41
|
+
"menuItemSelectColor":"primary",
|
|
42
|
+
},
|
|
43
|
+
"antdToken":{
|
|
44
|
+
"colorBgBase": "#f7f0ed",
|
|
45
|
+
"colorTextBase": "#141313"
|
|
46
|
+
},
|
|
47
|
+
"logo":"/images/skins/red-waves-light/app-logo-light.webp",
|
|
48
|
+
"icon":"/images/skins/red-waves-light/skin-icon-light.webp",
|
|
49
|
+
"backgroundContent":<ImageBackground />
|
|
50
|
+
}
|
|
51
|
+
export default skin
|