create-lupine 1.0.26 → 1.0.28
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/index.js +1 -1
- package/package.json +2 -2
- package/templates/common/AI_CONTEXT.md +370 -64
- package/templates/common/dev/dev-watch.js +19 -1
- package/templates/lupine-template-cv-starter/web/src/index.tsx +0 -3
- package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.tsx +0 -3
- package/templates/lupine-template-doc-starter/web/src/index.tsx +0 -3
- package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.tsx +0 -3
- package/templates/lupine-template-hello-world/web/src/styles/global.css +57 -70
- package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx +7 -3
- package/templates/lupine-template-responsive-starter/web/src/index.tsx +0 -3
- package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.tsx +0 -3
- package/templates/lupine-template-responsive-starter/web/src/styles/global.css +57 -70
|
@@ -496,12 +496,14 @@ fragment {
|
|
|
496
496
|
scrollbar-width: none;
|
|
497
497
|
-webkit-overflow-scrolling: touch;
|
|
498
498
|
}
|
|
499
|
+
|
|
499
500
|
.no-scrollbar-container::-webkit-scrollbar {
|
|
500
501
|
display: none;
|
|
501
502
|
}
|
|
503
|
+
|
|
502
504
|
/* -------------------------- */
|
|
503
505
|
|
|
504
|
-
.row-box
|
|
506
|
+
.row-box>* {
|
|
505
507
|
display: inline-block;
|
|
506
508
|
align-self: center;
|
|
507
509
|
}
|
|
@@ -524,21 +526,27 @@ fragment {
|
|
|
524
526
|
.grid-gap {
|
|
525
527
|
gap: 0.5rem;
|
|
526
528
|
}
|
|
529
|
+
|
|
527
530
|
.grid-gap-0 {
|
|
528
531
|
gap: 0;
|
|
529
532
|
}
|
|
533
|
+
|
|
530
534
|
.grid-gap-ss {
|
|
531
535
|
gap: 0.15rem;
|
|
532
536
|
}
|
|
537
|
+
|
|
533
538
|
.grid-gap-s {
|
|
534
539
|
gap: 0.35rem;
|
|
535
540
|
}
|
|
541
|
+
|
|
536
542
|
.grid-gap-m {
|
|
537
543
|
gap: 0.75rem;
|
|
538
544
|
}
|
|
545
|
+
|
|
539
546
|
.grid-gap-l {
|
|
540
547
|
gap: 1rem;
|
|
541
548
|
}
|
|
549
|
+
|
|
542
550
|
.grid-gap-ll {
|
|
543
551
|
gap: 1.5rem;
|
|
544
552
|
}
|
|
@@ -569,6 +577,7 @@ fragment {
|
|
|
569
577
|
[class^='col-'] {
|
|
570
578
|
margin: calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 2);
|
|
571
579
|
}
|
|
580
|
+
|
|
572
581
|
/* for a column with fixed width */
|
|
573
582
|
.col-0 {
|
|
574
583
|
width: auto;
|
|
@@ -774,6 +783,7 @@ fragment {
|
|
|
774
783
|
max-width: calc((100% / (12 / 12)) - var(--grid-gutter));
|
|
775
784
|
}
|
|
776
785
|
}
|
|
786
|
+
|
|
777
787
|
/* -------------------------- */
|
|
778
788
|
|
|
779
789
|
body {
|
|
@@ -785,66 +795,6 @@ body {
|
|
|
785
795
|
font-weight: var(--font-weight-base);
|
|
786
796
|
}
|
|
787
797
|
|
|
788
|
-
.safe-area-pt {
|
|
789
|
-
padding-top: constant(safe-area-inset-top);
|
|
790
|
-
padding-top: env(safe-area-inset-top);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
.safe-area-pb {
|
|
794
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
795
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
.safe-area-pl {
|
|
799
|
-
padding-left: constant(safe-area-inset-left);
|
|
800
|
-
padding-left: env(safe-area-inset-left);
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
.safe-area-pr {
|
|
804
|
-
padding-right: constant(safe-area-inset-right);
|
|
805
|
-
padding-right: env(safe-area-inset-right);
|
|
806
|
-
}
|
|
807
|
-
.safe-area-pall {
|
|
808
|
-
padding-top: constant(safe-area-inset-top);
|
|
809
|
-
padding-top: env(safe-area-inset-top);
|
|
810
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
811
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
812
|
-
padding-left: constant(safe-area-inset-left);
|
|
813
|
-
padding-left: env(safe-area-inset-left);
|
|
814
|
-
padding-right: constant(safe-area-inset-right);
|
|
815
|
-
padding-right: env(safe-area-inset-right);
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
.safe-area-mt {
|
|
819
|
-
margin-top: constant(safe-area-inset-top);
|
|
820
|
-
margin-top: env(safe-area-inset-top);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.safe-area-mb {
|
|
824
|
-
margin-bottom: constant(safe-area-inset-bottom);
|
|
825
|
-
margin-bottom: env(safe-area-inset-bottom);
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
.safe-area-ml {
|
|
829
|
-
margin-left: constant(safe-area-inset-left);
|
|
830
|
-
margin-left: env(safe-area-inset-left);
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.safe-area-mr {
|
|
834
|
-
margin-right: constant(safe-area-inset-right);
|
|
835
|
-
margin-right: env(safe-area-inset-right);
|
|
836
|
-
}
|
|
837
|
-
.safe-area-mall {
|
|
838
|
-
margin-top: constant(safe-area-inset-top);
|
|
839
|
-
margin-top: env(safe-area-inset-top);
|
|
840
|
-
margin-bottom: constant(safe-area-inset-bottom);
|
|
841
|
-
margin-bottom: env(safe-area-inset-bottom);
|
|
842
|
-
margin-left: constant(safe-area-inset-left);
|
|
843
|
-
margin-left: env(safe-area-inset-left);
|
|
844
|
-
margin-right: constant(safe-area-inset-right);
|
|
845
|
-
margin-right: env(safe-area-inset-right);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
798
|
input.base-css[type='text'],
|
|
849
799
|
input.base-css[type='password'],
|
|
850
800
|
input.base-css[type='email'],
|
|
@@ -989,9 +939,11 @@ input.input-base[type='checkbox'] {
|
|
|
989
939
|
border: 3px solid var(--primary-border-color);
|
|
990
940
|
border-radius: 6px;
|
|
991
941
|
}
|
|
942
|
+
|
|
992
943
|
input.input-base[type='checkbox']:checked {
|
|
993
944
|
background-color: var(--primary-accent-color);
|
|
994
945
|
}
|
|
946
|
+
|
|
995
947
|
input.input-base[type='checkbox']:checked::after {
|
|
996
948
|
content: '';
|
|
997
949
|
position: absolute;
|
|
@@ -1003,9 +955,11 @@ input.input-base[type='checkbox']:checked::after {
|
|
|
1003
955
|
width: 40%;
|
|
1004
956
|
height: 70%;
|
|
1005
957
|
}
|
|
958
|
+
|
|
1006
959
|
input.input-base[type='radio'] {
|
|
1007
960
|
border-radius: 50%;
|
|
1008
961
|
}
|
|
962
|
+
|
|
1009
963
|
input.input-base[type='radio']:checked::after {
|
|
1010
964
|
content: '';
|
|
1011
965
|
position: absolute;
|
|
@@ -1101,9 +1055,11 @@ input.input-base.input-ss[type='checkbox'] {
|
|
|
1101
1055
|
height: 1rem;
|
|
1102
1056
|
border-width: 1px;
|
|
1103
1057
|
}
|
|
1058
|
+
|
|
1104
1059
|
input.input-base.input-ss[type='checkbox']:checked::after {
|
|
1105
1060
|
border-width: 0 2px 2px 0;
|
|
1106
1061
|
}
|
|
1062
|
+
|
|
1107
1063
|
input.input-base.input-ss[type='radio']:checked::after {
|
|
1108
1064
|
left: 12%;
|
|
1109
1065
|
}
|
|
@@ -1114,6 +1070,7 @@ input.input-base.input-s[type='checkbox'] {
|
|
|
1114
1070
|
height: 1.4rem;
|
|
1115
1071
|
border-width: 2px;
|
|
1116
1072
|
}
|
|
1073
|
+
|
|
1117
1074
|
input.input-base.input-s[type='checkbox']:checked::after {
|
|
1118
1075
|
border-width: 0 3px 3px 0;
|
|
1119
1076
|
}
|
|
@@ -1195,10 +1152,10 @@ button.input-base[disabled='true'],
|
|
|
1195
1152
|
transition: 0.3s;
|
|
1196
1153
|
}
|
|
1197
1154
|
|
|
1198
|
-
.input-field input:focus
|
|
1199
|
-
.input-field input:not(:placeholder-shown)
|
|
1200
|
-
.input-field textarea:focus
|
|
1201
|
-
.input-field textarea:not(:placeholder-shown)
|
|
1155
|
+
.input-field input:focus+span,
|
|
1156
|
+
.input-field input:not(:placeholder-shown)+span,
|
|
1157
|
+
.input-field textarea:focus+span,
|
|
1158
|
+
.input-field textarea:not(:placeholder-shown)+span {
|
|
1202
1159
|
top: -6px;
|
|
1203
1160
|
left: 10px;
|
|
1204
1161
|
font-size: small;
|
|
@@ -1206,10 +1163,10 @@ button.input-base[disabled='true'],
|
|
|
1206
1163
|
padding: 0 5px 0 5px;
|
|
1207
1164
|
}
|
|
1208
1165
|
|
|
1209
|
-
.input-field input:focus:invalid
|
|
1210
|
-
.input-field input:not(:placeholder-shown):invalid
|
|
1211
|
-
.input-field textarea:focus:invalid
|
|
1212
|
-
.input-field textarea:not(:placeholder-shown):invalid
|
|
1166
|
+
.input-field input:focus:invalid+span,
|
|
1167
|
+
.input-field input:not(:placeholder-shown):invalid+span,
|
|
1168
|
+
.input-field textarea:focus:invalid+span,
|
|
1169
|
+
.input-field textarea:not(:placeholder-shown):invalid+span {
|
|
1213
1170
|
color: red;
|
|
1214
1171
|
}
|
|
1215
1172
|
|
|
@@ -1848,6 +1805,7 @@ h6,
|
|
|
1848
1805
|
.w-25p {
|
|
1849
1806
|
width: 25%;
|
|
1850
1807
|
}
|
|
1808
|
+
|
|
1851
1809
|
.w-75p {
|
|
1852
1810
|
width: 75%;
|
|
1853
1811
|
}
|
|
@@ -1855,6 +1813,7 @@ h6,
|
|
|
1855
1813
|
.w-33p {
|
|
1856
1814
|
width: 33.333%;
|
|
1857
1815
|
}
|
|
1816
|
+
|
|
1858
1817
|
.w-77p {
|
|
1859
1818
|
width: 77.777%;
|
|
1860
1819
|
}
|
|
@@ -1866,6 +1825,7 @@ h6,
|
|
|
1866
1825
|
.w-100p {
|
|
1867
1826
|
width: 100%;
|
|
1868
1827
|
}
|
|
1828
|
+
|
|
1869
1829
|
.w-auto {
|
|
1870
1830
|
width: auto;
|
|
1871
1831
|
}
|
|
@@ -1873,6 +1833,7 @@ h6,
|
|
|
1873
1833
|
.h-100p {
|
|
1874
1834
|
height: 100%;
|
|
1875
1835
|
}
|
|
1836
|
+
|
|
1876
1837
|
.h-auto {
|
|
1877
1838
|
height: auto;
|
|
1878
1839
|
}
|
|
@@ -1892,6 +1853,7 @@ h6,
|
|
|
1892
1853
|
.align-items-center {
|
|
1893
1854
|
align-items: center;
|
|
1894
1855
|
}
|
|
1856
|
+
|
|
1895
1857
|
.justify-content-center {
|
|
1896
1858
|
justify-content: center;
|
|
1897
1859
|
}
|
|
@@ -1907,6 +1869,7 @@ h6,
|
|
|
1907
1869
|
.flex-row {
|
|
1908
1870
|
flex-direction: row;
|
|
1909
1871
|
}
|
|
1872
|
+
|
|
1910
1873
|
.p-relative {
|
|
1911
1874
|
position: relative;
|
|
1912
1875
|
}
|
|
@@ -2021,10 +1984,12 @@ h6,
|
|
|
2021
1984
|
.setting-section-group {
|
|
2022
1985
|
padding-bottom: 16px;
|
|
2023
1986
|
}
|
|
1987
|
+
|
|
2024
1988
|
.setting-section-title {
|
|
2025
1989
|
font-size: 15px;
|
|
2026
1990
|
padding: 8px 0;
|
|
2027
1991
|
}
|
|
1992
|
+
|
|
2028
1993
|
.setting-section-block {
|
|
2029
1994
|
display: flex;
|
|
2030
1995
|
flex-direction: column;
|
|
@@ -2033,6 +1998,7 @@ h6,
|
|
|
2033
1998
|
border-radius: 8px;
|
|
2034
1999
|
padding: 4px 8px;
|
|
2035
2000
|
}
|
|
2001
|
+
|
|
2036
2002
|
.setting-section-item {
|
|
2037
2003
|
display: flex;
|
|
2038
2004
|
flex-direction: row;
|
|
@@ -2042,16 +2008,20 @@ h6,
|
|
|
2042
2008
|
border-bottom: 1px dotted var(--primary-border-color);
|
|
2043
2009
|
cursor: pointer;
|
|
2044
2010
|
}
|
|
2011
|
+
|
|
2045
2012
|
.setting-section-item:last-child {
|
|
2046
2013
|
border-bottom: none;
|
|
2047
2014
|
}
|
|
2015
|
+
|
|
2048
2016
|
.setting-section-item-text {
|
|
2049
2017
|
font-size: 15px;
|
|
2050
2018
|
}
|
|
2019
|
+
|
|
2051
2020
|
.setting-section-item-icon {
|
|
2052
2021
|
font-size: 20px;
|
|
2053
2022
|
margin-right: 8px;
|
|
2054
2023
|
}
|
|
2024
|
+
|
|
2055
2025
|
.setting-section-item-icon.text {
|
|
2056
2026
|
font-size: 11px;
|
|
2057
2027
|
}
|
|
@@ -2069,15 +2039,18 @@ h6,
|
|
|
2069
2039
|
justify-content: center;
|
|
2070
2040
|
cursor: pointer;
|
|
2071
2041
|
}
|
|
2042
|
+
|
|
2072
2043
|
.setting-section-row-btn i.ifc-icon {
|
|
2073
2044
|
margin: 0 8px;
|
|
2074
2045
|
color: var(--ss-row-btn-color);
|
|
2075
2046
|
font-size: 26px;
|
|
2076
2047
|
}
|
|
2048
|
+
|
|
2077
2049
|
.setting-section-row-btn.warning,
|
|
2078
2050
|
.setting-section-row-btn.warning i.ifc-icon {
|
|
2079
2051
|
color: var(--ss-row-btn-warn-color);
|
|
2080
2052
|
}
|
|
2053
|
+
|
|
2081
2054
|
/* tips inside button */
|
|
2082
2055
|
.setting-section-row-btn-tips {
|
|
2083
2056
|
color: var(--ss-row-btn-warn-color);
|
|
@@ -2091,24 +2064,31 @@ h6,
|
|
|
2091
2064
|
.color-inherit {
|
|
2092
2065
|
color: inherit;
|
|
2093
2066
|
}
|
|
2067
|
+
|
|
2094
2068
|
.color-red {
|
|
2095
2069
|
color: red;
|
|
2096
2070
|
}
|
|
2071
|
+
|
|
2097
2072
|
.color-green {
|
|
2098
2073
|
color: green;
|
|
2099
2074
|
}
|
|
2075
|
+
|
|
2100
2076
|
.color-blue {
|
|
2101
2077
|
color: blue;
|
|
2102
2078
|
}
|
|
2079
|
+
|
|
2103
2080
|
.color-yellow {
|
|
2104
2081
|
color: yellow;
|
|
2105
2082
|
}
|
|
2083
|
+
|
|
2106
2084
|
.color-gray {
|
|
2107
2085
|
color: gray;
|
|
2108
2086
|
}
|
|
2087
|
+
|
|
2109
2088
|
.color-black {
|
|
2110
2089
|
color: black;
|
|
2111
2090
|
}
|
|
2091
|
+
|
|
2112
2092
|
.color-white {
|
|
2113
2093
|
color: white;
|
|
2114
2094
|
}
|
|
@@ -2116,28 +2096,35 @@ h6,
|
|
|
2116
2096
|
.back-color-inherit {
|
|
2117
2097
|
background-color: inherit;
|
|
2118
2098
|
}
|
|
2099
|
+
|
|
2119
2100
|
.back-color-red {
|
|
2120
2101
|
background-color: red;
|
|
2121
2102
|
}
|
|
2103
|
+
|
|
2122
2104
|
.back-color-green {
|
|
2123
2105
|
background-color: green;
|
|
2124
2106
|
}
|
|
2107
|
+
|
|
2125
2108
|
.back-color-blue {
|
|
2126
2109
|
background-color: blue;
|
|
2127
2110
|
}
|
|
2111
|
+
|
|
2128
2112
|
.back-color-yellow {
|
|
2129
2113
|
background-color: yellow;
|
|
2130
2114
|
}
|
|
2115
|
+
|
|
2131
2116
|
.back-color-gray {
|
|
2132
2117
|
background-color: gray;
|
|
2133
2118
|
}
|
|
2119
|
+
|
|
2134
2120
|
.back-color-black {
|
|
2135
2121
|
background-color: black;
|
|
2136
2122
|
}
|
|
2123
|
+
|
|
2137
2124
|
.back-color-white {
|
|
2138
2125
|
background-color: white;
|
|
2139
2126
|
}
|
|
2140
2127
|
|
|
2141
2128
|
.cursor-pointer {
|
|
2142
2129
|
cursor: pointer;
|
|
2143
|
-
}
|
|
2130
|
+
}
|
package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx
CHANGED
|
@@ -23,6 +23,10 @@ export type SideMenuContentProps = {
|
|
|
23
23
|
|
|
24
24
|
const sideMenuContentCss: CssProps = {
|
|
25
25
|
margin: '0 -12px',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
flexDirection: 'column',
|
|
28
|
+
flex: 1,
|
|
29
|
+
height: '100%',
|
|
26
30
|
'.msm-header': {
|
|
27
31
|
display: 'flex',
|
|
28
32
|
alignItems: 'center',
|
|
@@ -101,7 +105,7 @@ export const SideMenuContent = ({
|
|
|
101
105
|
bindGlobalStyle(globalCssId, sideMenuContentCss);
|
|
102
106
|
|
|
103
107
|
const ref: RefProps = {
|
|
104
|
-
globalCssId,
|
|
108
|
+
referToCssId: globalCssId,
|
|
105
109
|
};
|
|
106
110
|
|
|
107
111
|
const handleAction = (item: string) => {
|
|
@@ -122,7 +126,7 @@ export const SideMenuContent = ({
|
|
|
122
126
|
};
|
|
123
127
|
|
|
124
128
|
return (
|
|
125
|
-
<div ref={ref}
|
|
129
|
+
<div ref={ref} class={globalCssId}>
|
|
126
130
|
<div class='msm-header'>
|
|
127
131
|
{/* <div class='msm-header-icon'></div> */}
|
|
128
132
|
<div class='msm-header-title'>{title}</div>
|
|
@@ -162,7 +166,7 @@ export const SideMenuContent = ({
|
|
|
162
166
|
class='msm-item'
|
|
163
167
|
onClick={() => {
|
|
164
168
|
settingSliderHook.load!(
|
|
165
|
-
<MineSettingsPage sliderFrameHook={settingSliderHook} onDataChanged={() => {}} />
|
|
169
|
+
<MineSettingsPage sliderFrameHook={settingSliderHook} onDataChanged={() => { }} />
|
|
166
170
|
);
|
|
167
171
|
MobileSideMenuHelper.hide();
|
|
168
172
|
}}
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
isFrontEnd,
|
|
10
10
|
PageRouter,
|
|
11
11
|
webEnv,
|
|
12
|
-
bindLang,
|
|
13
12
|
bindTheme,
|
|
14
13
|
setDefaultPageTitle,
|
|
15
14
|
} from 'lupine.components';
|
|
@@ -21,8 +20,6 @@ import { FinancePage } from './pages/finance-page';
|
|
|
21
20
|
import { AboutPage } from './pages/about-page';
|
|
22
21
|
import { MinePage } from './pages/mine-page';
|
|
23
22
|
import { ToolsPage } from './pages/tools-page';
|
|
24
|
-
|
|
25
|
-
bindLang('zh-cn', {});
|
|
26
23
|
bindTheme('light', themes);
|
|
27
24
|
bindGlobalStyle('comm-css', baseCss, false, true);
|
|
28
25
|
setDefaultPageTitle('Lupine.js Note Starter');
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
bindRouter,
|
|
7
7
|
PageRouter,
|
|
8
8
|
bindTheme,
|
|
9
|
-
bindLang,
|
|
10
9
|
setDefaultPageTitle,
|
|
11
10
|
isFrontEnd,
|
|
12
11
|
debugWatch,
|
|
@@ -21,8 +20,6 @@ import { HomePage } from '../pages/home-page';
|
|
|
21
20
|
if (isFrontEnd() && webEnv('NODE_ENV', '') === 'development') {
|
|
22
21
|
debugWatch(webEnv('API_PORT', 0));
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
bindLang('zh-cn', {});
|
|
26
23
|
bindTheme('light', themes);
|
|
27
24
|
bindGlobalStyle('comm-css', baseCss, false, true);
|
|
28
25
|
setDefaultPageTitle('Lupine Template Responsive Starter');
|