react-toolkits 2.13.1 → 2.13.2
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/CHANGELOG.md +3 -15
- package/lib/index.css +9 -0
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +239 -227
- package/lib/index.js +1114 -704
- package/lib/index.js.map +1 -1
- package/locale/en_GB.js +3 -1
- package/locale/en_GB.js.map +1 -1
- package/locale/hooks.js +5 -6
- package/locale/hooks.js.map +1 -1
- package/locale/index.d.ts +2 -0
- package/locale/index.js +5 -6
- package/locale/index.js.map +1 -1
- package/locale/ja_JP.js +3 -1
- package/locale/ja_JP.js.map +1 -1
- package/locale/ko_KR.js +3 -1
- package/locale/ko_KR.js.map +1 -1
- package/locale/zh_CN.js +4 -2
- package/locale/zh_CN.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
# react-toolkits
|
|
2
2
|
|
|
3
|
-
## 2.13.
|
|
3
|
+
## 2.13.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## 2.13.0
|
|
10
|
-
|
|
11
|
-
### Minor Changes
|
|
12
|
-
|
|
13
|
-
- 36eaf3d: Release
|
|
14
|
-
|
|
15
|
-
## 2.12.0
|
|
16
|
-
|
|
17
|
-
### Minor Changes
|
|
18
|
-
|
|
19
|
-
- 66def58: refactor: some new apis
|
|
7
|
+
- f59e5e7: feat: permission v3
|
|
20
8
|
|
|
21
9
|
## 2.11.19
|
|
22
10
|
|
|
@@ -772,7 +760,7 @@
|
|
|
772
760
|
|
|
773
761
|
### Patch Changes
|
|
774
762
|
|
|
775
|
-
- c7c1667: fix: ignore game request when '
|
|
763
|
+
- c7c1667: fix: ignore game request when 'isPermissionApiV2' is true
|
|
776
764
|
|
|
777
765
|
## 0.8.75
|
|
778
766
|
|
package/lib/index.css
CHANGED
|
@@ -184,6 +184,9 @@
|
|
|
184
184
|
.mb-12 {
|
|
185
185
|
margin-bottom: 3rem;
|
|
186
186
|
}
|
|
187
|
+
.mb-4 {
|
|
188
|
+
margin-bottom: 1rem;
|
|
189
|
+
}
|
|
187
190
|
.mb-6 {
|
|
188
191
|
margin-bottom: 1.5rem;
|
|
189
192
|
}
|
|
@@ -220,6 +223,9 @@
|
|
|
220
223
|
.w-10\/12 {
|
|
221
224
|
width: 83.333333%;
|
|
222
225
|
}
|
|
226
|
+
.w-8 {
|
|
227
|
+
width: 2rem;
|
|
228
|
+
}
|
|
223
229
|
.w-\[650px\] {
|
|
224
230
|
width: 650px;
|
|
225
231
|
}
|
|
@@ -283,6 +289,9 @@
|
|
|
283
289
|
padding-top: 1rem;
|
|
284
290
|
padding-bottom: 1rem;
|
|
285
291
|
}
|
|
292
|
+
.text-center {
|
|
293
|
+
text-align: center;
|
|
294
|
+
}
|
|
286
295
|
.text-start {
|
|
287
296
|
text-align: start;
|
|
288
297
|
}
|
package/lib/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles/index.css","../src/components/layout/style.css"],"sourcesContent":["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n.container {\n width: 100%\n}\n@media (min-width: 640px) {\n .container {\n max-width: 640px\n }\n}\n@media (min-width: 768px) {\n .container {\n max-width: 768px\n }\n}\n@media (min-width: 1024px) {\n .container {\n max-width: 1024px\n }\n}\n@media (min-width: 1280px) {\n .container {\n max-width: 1280px\n }\n}\n@media (min-width: 1536px) {\n .container {\n max-width: 1536px\n }\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.bottom-0 {\n bottom: 0px\n}\n.left-0 {\n left: 0px\n}\n.left-14 {\n left: 3.5rem\n}\n.right-0 {\n right: 0px\n}\n.right-16 {\n right: 4rem\n}\n.top-0 {\n top: 0px\n}\n.top-1\\/2 {\n top: 50%\n}\n.top-16 {\n top: 4rem\n}\n.top-6 {\n top: 1.5rem\n}\n.z-10 {\n z-index: 10\n}\n.my-12 {\n margin-top: 3rem;\n margin-bottom: 3rem\n}\n.mb-0 {\n margin-bottom: 0px\n}\n.mb-12 {\n margin-bottom: 3rem\n}\n.mb-6 {\n margin-bottom: 1.5rem\n}\n.ml-4 {\n margin-left: 1rem\n}\n.mr-6 {\n margin-right: 1.5rem\n}\n.mt-4 {\n margin-top: 1rem\n}\n.block {\n display: block\n}\n.inline {\n display: inline\n}\n.flex {\n display: flex\n}\n.h-10 {\n height: 2.5rem\n}\n.h-8 {\n height: 2rem\n}\n.h-full {\n height: 100%\n}\n.h-screen {\n height: 100vh\n}\n.w-10\\/12 {\n width: 83.333333%\n}\n.w-\\[650px\\] {\n width: 650px\n}\n.w-full {\n width: 100%\n}\n.w-screen {\n width: 100vw\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.flex-grow-0 {\n flex-grow: 0\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.-translate-y-10 {\n --tw-translate-y: -2.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.flex-row {\n flex-direction: row\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.gap-2 {\n gap: 0.5rem\n}\n.gap-8 {\n gap: 2rem\n}\n.overflow-hidden {\n overflow: hidden\n}\n.bg-slate-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1))\n}\n.px-36 {\n padding-left: 9rem;\n padding-right: 9rem\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.text-start {\n text-align: start\n}\n.text-end {\n text-align: end\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n","\n.expand {\n animation-duration: 0.2s;\n animation-name: expand;\n}\n\n@keyframes expand {\n 0%, 50% {\n width: 0;\n opacity: 0;\n }\n\n 75% {\n width: 100%;\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n"],"mappings":";AAAA;AAAG;AAAU;AACT,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACI,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA,CAAC;AACG,SAAO;AACX;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAJH;AAKO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GATH;AAUO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAdH;AAeO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAnBH;AAoBO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAxBH;AAyBO,eAAW;AACf;AACJ;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,QAAM;AACV;AACA,CAAC;AACG,QAAM;AACV;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,cAAY;AACZ,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,eAAa;AACjB;AACA,CAAC;AACG,gBAAc;AAClB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,QAAM,EAAE,EAAE;AACd;AACA,CAAC;AACG,aAAW;AACf;AACA,CAAC;AACG,oBAAkB;AAClB,aAAW,UAAU,IAAI,iBAAiB,EAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,MAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI;AACrL;AACA,CAAC;AACG,oBAAkB;AAClB,aAAW,UAAU,IAAI,iBAAiB,EAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,MAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI;AACrL;AACA,CAAC;AACG,kBAAgB;AACpB;AACA,CAAC;AACG,kBAAgB;AACpB;AACA,CAAC;AACG,eAAa;AACjB;AACA,CAAC;AACG,mBAAiB;AACrB;AACA,CAAC;AACG,mBAAiB;AACrB;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,mBAAiB;AACjB,oBAAkB,IAAI,IAAI,IAAI,IAAI,EAAE,IAAI,eAAe,EAAE;AAC7D;AACA,CAAC;AACG,gBAAc;AACd,iBAAe;AACnB;AACA,CAAC;AACG,gBAAc;AACd,iBAAe;AACnB;AACA,CAAC;AACG,eAAa;AACb,kBAAgB;AACpB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,UAAQ,IAAI,WAAW,IAAI,iBAAiB,IAAI,eAAe,IAAI,gBAAgB,IAAI,iBAAiB,IAAI,aAAa,IAAI,eAAe,IAAI,YAAY,IAAI;AACpK;;;
|
|
1
|
+
{"version":3,"sources":["../src/styles/index.css","../src/components/layout/style.css"],"sourcesContent":["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n.container {\n width: 100%\n}\n@media (min-width: 640px) {\n .container {\n max-width: 640px\n }\n}\n@media (min-width: 768px) {\n .container {\n max-width: 768px\n }\n}\n@media (min-width: 1024px) {\n .container {\n max-width: 1024px\n }\n}\n@media (min-width: 1280px) {\n .container {\n max-width: 1280px\n }\n}\n@media (min-width: 1536px) {\n .container {\n max-width: 1536px\n }\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.bottom-0 {\n bottom: 0px\n}\n.left-0 {\n left: 0px\n}\n.left-14 {\n left: 3.5rem\n}\n.right-0 {\n right: 0px\n}\n.right-16 {\n right: 4rem\n}\n.top-0 {\n top: 0px\n}\n.top-1\\/2 {\n top: 50%\n}\n.top-16 {\n top: 4rem\n}\n.top-6 {\n top: 1.5rem\n}\n.z-10 {\n z-index: 10\n}\n.my-12 {\n margin-top: 3rem;\n margin-bottom: 3rem\n}\n.mb-0 {\n margin-bottom: 0px\n}\n.mb-12 {\n margin-bottom: 3rem\n}\n.mb-4 {\n margin-bottom: 1rem\n}\n.mb-6 {\n margin-bottom: 1.5rem\n}\n.ml-4 {\n margin-left: 1rem\n}\n.mr-6 {\n margin-right: 1.5rem\n}\n.mt-4 {\n margin-top: 1rem\n}\n.block {\n display: block\n}\n.inline {\n display: inline\n}\n.flex {\n display: flex\n}\n.h-10 {\n height: 2.5rem\n}\n.h-8 {\n height: 2rem\n}\n.h-full {\n height: 100%\n}\n.h-screen {\n height: 100vh\n}\n.w-10\\/12 {\n width: 83.333333%\n}\n.w-8 {\n width: 2rem\n}\n.w-\\[650px\\] {\n width: 650px\n}\n.w-full {\n width: 100%\n}\n.w-screen {\n width: 100vw\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.flex-grow-0 {\n flex-grow: 0\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.-translate-y-10 {\n --tw-translate-y: -2.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.flex-row {\n flex-direction: row\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.gap-2 {\n gap: 0.5rem\n}\n.gap-8 {\n gap: 2rem\n}\n.overflow-hidden {\n overflow: hidden\n}\n.bg-slate-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1))\n}\n.px-36 {\n padding-left: 9rem;\n padding-right: 9rem\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.text-center {\n text-align: center\n}\n.text-start {\n text-align: start\n}\n.text-end {\n text-align: end\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n","\n.expand {\n animation-duration: 0.2s;\n animation-name: expand;\n}\n\n@keyframes expand {\n 0%, 50% {\n width: 0;\n opacity: 0;\n }\n\n 75% {\n width: 100%;\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n"],"mappings":";AAAA;AAAG;AAAU;AACT,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACI,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA,CAAC;AACG,SAAO;AACX;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAJH;AAKO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GATH;AAUO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAdH;AAeO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAnBH;AAoBO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAxBH;AAyBO,eAAW;AACf;AACJ;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,QAAM;AACV;AACA,CAAC;AACG,QAAM;AACV;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,cAAY;AACZ,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,iBAAe;AACnB;AACA,CAAC;AACG,eAAa;AACjB;AACA,CAAC;AACG,gBAAc;AAClB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,WAAS;AACb;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,UAAQ;AACZ;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,SAAO;AACX;AACA,CAAC;AACG,QAAM,EAAE,EAAE;AACd;AACA,CAAC;AACG,aAAW;AACf;AACA,CAAC;AACG,oBAAkB;AAClB,aAAW,UAAU,IAAI,iBAAiB,EAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,MAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI;AACrL;AACA,CAAC;AACG,oBAAkB;AAClB,aAAW,UAAU,IAAI,iBAAiB,EAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,MAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI;AACrL;AACA,CAAC;AACG,kBAAgB;AACpB;AACA,CAAC;AACG,kBAAgB;AACpB;AACA,CAAC;AACG,eAAa;AACjB;AACA,CAAC;AACG,mBAAiB;AACrB;AACA,CAAC;AACG,mBAAiB;AACrB;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,OAAK;AACT;AACA,CAAC;AACG,YAAU;AACd;AACA,CAAC;AACG,mBAAiB;AACjB,oBAAkB,IAAI,IAAI,IAAI,IAAI,EAAE,IAAI,eAAe,EAAE;AAC7D;AACA,CAAC;AACG,gBAAc;AACd,iBAAe;AACnB;AACA,CAAC;AACG,gBAAc;AACd,iBAAe;AACnB;AACA,CAAC;AACG,eAAa;AACb,kBAAgB;AACpB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,cAAY;AAChB;AACA,CAAC;AACG,UAAQ,IAAI,WAAW,IAAI,iBAAiB,IAAI,eAAe,IAAI,gBAAgB,IAAI,iBAAiB,IAAI,aAAa,IAAI,eAAe,IAAI,YAAY,IAAI;AACpK;;;AC1SA,CAAC;AACC,sBAAoB;AACpB,kBAAgB;AAClB;AAEA,WALC;AAMC;AACE,WAAO;AACP,aAAS;AACX;AAEA;AACE,WAAO;AACP,aAAS;AACX;AAEA;AACE,aAAS;AACX;AACF;","names":[]}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,148 +1,69 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse, AxiosInterceptorOptions, AxiosHeaderValue } from 'axios';
|
|
2
|
+
import { FC, PropsWithChildren, Key, ReactNode, ReactElement, Ref, ComponentType } from 'react';
|
|
5
3
|
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
|
6
|
-
import
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { FormInstance, MenuProps, ModalProps, FormProps, ButtonProps } from 'antd';
|
|
7
6
|
import { TableProps } from 'antd/es/table';
|
|
7
|
+
import { AxiosHeaderValue, AxiosInstance, InternalAxiosRequestConfig, AxiosResponse, AxiosInterceptorOptions } from 'axios';
|
|
8
|
+
import * as swr from 'swr';
|
|
9
|
+
import { MutatorCallback, MutatorOptions } from 'swr';
|
|
8
10
|
import { ItemType, SubMenuType, MenuItemGroupType, MenuItemType } from 'antd/es/menu/interface';
|
|
9
11
|
import { Merge } from 'ts-essentials';
|
|
10
12
|
import * as zustand_middleware from 'zustand/middleware';
|
|
11
13
|
import { StateStorage } from 'zustand/middleware';
|
|
12
14
|
import * as zustand from 'zustand';
|
|
13
15
|
import { AnyObject } from 'antd/es/_util/type';
|
|
14
|
-
import * as swr from 'swr';
|
|
15
|
-
import { MutatorCallback, MutatorOptions } from 'swr';
|
|
16
16
|
|
|
17
|
-
interface
|
|
18
|
-
|
|
17
|
+
interface DynamicTagsProps {
|
|
18
|
+
initialTags?: string[];
|
|
19
|
+
addable?: boolean;
|
|
20
|
+
removable?: boolean;
|
|
21
|
+
addCallback?: (addedTag: string) => Promise<boolean>;
|
|
22
|
+
removeCallback?: (removedTag: string) => Promise<boolean>;
|
|
19
23
|
}
|
|
24
|
+
declare const DynamicTags: FC<DynamicTagsProps>;
|
|
20
25
|
|
|
21
|
-
type
|
|
22
|
-
|
|
23
|
-
noEntitlement: string;
|
|
24
|
-
name: string;
|
|
25
|
-
creationTime: string;
|
|
26
|
-
operation: string;
|
|
27
|
-
update: string;
|
|
28
|
-
edit: string;
|
|
29
|
-
delete: string;
|
|
30
|
-
selectAll: string;
|
|
31
|
-
game: string;
|
|
32
|
-
user: string;
|
|
33
|
-
role: string;
|
|
34
|
-
username: string;
|
|
35
|
-
password: string;
|
|
36
|
-
label: string;
|
|
37
|
-
method: string;
|
|
38
|
-
route: string;
|
|
39
|
-
request: string;
|
|
40
|
-
response: string;
|
|
41
|
-
add: string;
|
|
42
|
-
signIn: string;
|
|
43
|
-
};
|
|
44
|
-
SignIn: {
|
|
45
|
-
title: string;
|
|
46
|
-
thirdParty: string;
|
|
47
|
-
signInWithIDass: string;
|
|
48
|
-
unregistered: string;
|
|
49
|
-
welcome: string;
|
|
50
|
-
};
|
|
51
|
-
NotFound: {
|
|
52
|
-
subTitle: string;
|
|
53
|
-
buttonText: string;
|
|
54
|
-
};
|
|
55
|
-
FilterFormWrapper: {
|
|
56
|
-
confirmText: string;
|
|
57
|
-
resetText: string;
|
|
58
|
-
};
|
|
59
|
-
FormModal: {
|
|
60
|
-
confirmText: string;
|
|
61
|
-
cancelText: string;
|
|
62
|
-
};
|
|
63
|
-
GameSelect: {
|
|
64
|
-
label: string;
|
|
65
|
-
placeholder: string;
|
|
66
|
-
};
|
|
67
|
-
RequireGame: {
|
|
68
|
-
description: string;
|
|
69
|
-
};
|
|
70
|
-
UserWidget: {
|
|
71
|
-
signOutText: string;
|
|
72
|
-
};
|
|
73
|
-
UserList: {
|
|
74
|
-
createTitle: string;
|
|
75
|
-
createSuccessfully: string;
|
|
76
|
-
updateTitle: string;
|
|
77
|
-
updateSuccessfully: string;
|
|
78
|
-
deleteTitle: string;
|
|
79
|
-
deleteContent: string;
|
|
80
|
-
deleteSuccessfully: string;
|
|
81
|
-
};
|
|
82
|
-
RoleList: {
|
|
83
|
-
createTitle: string;
|
|
84
|
-
createSuccessfully: string;
|
|
85
|
-
updateTitle: string;
|
|
86
|
-
updateSuccessfully: string;
|
|
87
|
-
deleteTitle: string;
|
|
88
|
-
deleteContent: string;
|
|
89
|
-
deleteSuccessfully: string;
|
|
90
|
-
};
|
|
91
|
-
PermissionList: {
|
|
92
|
-
failedDescription: string;
|
|
93
|
-
baseSectionTitle: string;
|
|
94
|
-
gameSectionTitle: string;
|
|
95
|
-
gameSectionDescription: string;
|
|
96
|
-
gameSelectPlaceholder: string;
|
|
97
|
-
removeText: string;
|
|
98
|
-
addText: string;
|
|
99
|
-
};
|
|
100
|
-
RoleDetail: {
|
|
101
|
-
title: string;
|
|
102
|
-
};
|
|
103
|
-
InfiniteList: {
|
|
104
|
-
loadingText: string;
|
|
105
|
-
reachEndText: string;
|
|
106
|
-
loadMoreText: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
26
|
+
type ExpandableParagraphProps = Omit<ParagraphProps, 'ellipsis' | 'className'>;
|
|
27
|
+
declare const ExpandableParagraph: FC<ExpandableParagraphProps>;
|
|
109
28
|
|
|
110
|
-
interface
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
request?: [(config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>];
|
|
121
|
-
response?: [
|
|
122
|
-
(response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>,
|
|
123
|
-
((error: any) => any) | null,
|
|
124
|
-
options?: AxiosInterceptorOptions
|
|
125
|
-
];
|
|
126
|
-
};
|
|
29
|
+
interface FilterFormWrapperProps extends PropsWithChildren {
|
|
30
|
+
onConfirm?: () => void | Promise<void>;
|
|
31
|
+
onReset?: () => void;
|
|
32
|
+
extras?: {
|
|
33
|
+
key: Key;
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
}[];
|
|
36
|
+
isConfirming?: boolean;
|
|
37
|
+
buttonsAlign?: 'left' | 'right' | 'bottom';
|
|
38
|
+
showReset?: boolean;
|
|
127
39
|
}
|
|
40
|
+
declare const FilterFormWrapper: (props: FilterFormWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
128
41
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
children?: NavMenuItem[];
|
|
134
|
-
}>;
|
|
135
|
-
type MenuItemGroupType2 = Merge<MenuItemGroupType, {
|
|
136
|
-
children?: NavMenuItem[];
|
|
137
|
-
}>;
|
|
138
|
-
type NavMenuItem = Exclude<ItemType, SubMenuType | MenuItemGroupType | MenuItemType> | MenuItemType2 | SubMenuType2 | MenuItemGroupType2;
|
|
42
|
+
interface HighlightProps extends PropsWithChildren {
|
|
43
|
+
texts: Array<string | number>;
|
|
44
|
+
}
|
|
45
|
+
declare const Highlight: (props: HighlightProps) => react_jsx_runtime.JSX.Element;
|
|
139
46
|
|
|
140
|
-
interface
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
loading?: boolean;
|
|
47
|
+
interface InfiniteListExtra<Values> {
|
|
48
|
+
key: Key;
|
|
49
|
+
children: ReactNode | ((form: FormInstance<Values>) => ReactNode);
|
|
144
50
|
}
|
|
145
|
-
|
|
51
|
+
interface InfiniteListProps<Item, Values, Response> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'> {
|
|
52
|
+
url: string;
|
|
53
|
+
getRowKey: (response: Response) => any;
|
|
54
|
+
getDataSource: (data: (Response | undefined)[] | undefined) => Item[];
|
|
55
|
+
code?: string;
|
|
56
|
+
headers?: {
|
|
57
|
+
[key: string]: AxiosHeaderValue;
|
|
58
|
+
} | ((form: FormInstance<Values>) => {
|
|
59
|
+
[key: string]: AxiosHeaderValue;
|
|
60
|
+
});
|
|
61
|
+
renderForm?: (form: FormInstance<Values>) => ReactNode;
|
|
62
|
+
transformArg: (values: Values, rowKey?: string) => Record<any, any>;
|
|
63
|
+
hasMore?: (data: (Response | undefined)[] | undefined) => boolean;
|
|
64
|
+
extras?: InfiniteListExtra<Values>[];
|
|
65
|
+
}
|
|
66
|
+
declare const InfiniteList: <Item extends object, Values extends object | undefined = undefined, Response = any>(props: InfiniteListProps<Item, Values, Response>) => react_jsx_runtime.JSX.Element;
|
|
146
67
|
|
|
147
68
|
type Area = 'all' | 'cn' | 'global';
|
|
148
69
|
type ScreenOrientation = 0 | 1;
|
|
@@ -162,6 +83,27 @@ interface Game {
|
|
|
162
83
|
server_type: string;
|
|
163
84
|
}
|
|
164
85
|
|
|
86
|
+
declare const useGames: () => swr.SWRResponse<Game[], any, any>;
|
|
87
|
+
declare const useFindGame: (id: string | number) => Game | undefined;
|
|
88
|
+
|
|
89
|
+
type MenuItemType2 = Merge<MenuItemType, {
|
|
90
|
+
route?: string;
|
|
91
|
+
}>;
|
|
92
|
+
type SubMenuType2 = Merge<SubMenuType, {
|
|
93
|
+
children?: NavMenuItem[];
|
|
94
|
+
}>;
|
|
95
|
+
type MenuItemGroupType2 = Merge<MenuItemGroupType, {
|
|
96
|
+
children?: NavMenuItem[];
|
|
97
|
+
}>;
|
|
98
|
+
type NavMenuItem = Exclude<ItemType, SubMenuType | MenuItemGroupType | MenuItemType> | MenuItemType2 | SubMenuType2 | MenuItemGroupType2;
|
|
99
|
+
|
|
100
|
+
interface NavMenuProps {
|
|
101
|
+
items?: NavMenuItem[];
|
|
102
|
+
theme?: MenuProps['theme'];
|
|
103
|
+
loading?: boolean;
|
|
104
|
+
}
|
|
105
|
+
declare const NavMenu: react.NamedExoticComponent<NavMenuProps>;
|
|
106
|
+
|
|
165
107
|
interface GameSelectProps {
|
|
166
108
|
filter?: (game: Game) => boolean;
|
|
167
109
|
}
|
|
@@ -200,88 +142,6 @@ declare const useLayoutStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Layout
|
|
|
200
142
|
};
|
|
201
143
|
}>;
|
|
202
144
|
|
|
203
|
-
interface UserInfo {
|
|
204
|
-
authorityId: string;
|
|
205
|
-
exp: number;
|
|
206
|
-
}
|
|
207
|
-
interface TokenSlice {
|
|
208
|
-
token?: string;
|
|
209
|
-
getUser: () => UserInfo | null;
|
|
210
|
-
setToken: (token: string) => void;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
interface GameSlice {
|
|
214
|
-
game?: Game;
|
|
215
|
-
games: Game[];
|
|
216
|
-
selectedGame?: string | number;
|
|
217
|
-
isGamesLoading: boolean;
|
|
218
|
-
setGame: (value?: string | number) => void;
|
|
219
|
-
setGames: (games: Game[]) => void;
|
|
220
|
-
setSelectedGame: (value: string | number) => void;
|
|
221
|
-
setIsGamesLoading: (loading: boolean) => void;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
type ToolkitsState = TokenSlice & GameSlice & ContextSlice & AxiosSlice & {
|
|
225
|
-
clearToken: () => void;
|
|
226
|
-
setUnregistered: () => void;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
declare function useContextStore<T>(selector: (state: ToolkitsState) => T): T;
|
|
230
|
-
type ContextProviderProps = PropsWithChildren<Partial<ContextSlice>>;
|
|
231
|
-
declare const Contextrovider: FC<ContextProviderProps>;
|
|
232
|
-
declare const withContext: (Component: ComponentType, providerProps: Omit<ContextProviderProps, "children">) => (props: any) => react_jsx_runtime.JSX.Element;
|
|
233
|
-
|
|
234
|
-
interface DynamicTagsProps {
|
|
235
|
-
initialTags?: string[];
|
|
236
|
-
addable?: boolean;
|
|
237
|
-
removable?: boolean;
|
|
238
|
-
addCallback?: (addedTag: string) => Promise<boolean>;
|
|
239
|
-
removeCallback?: (removedTag: string) => Promise<boolean>;
|
|
240
|
-
}
|
|
241
|
-
declare const DynamicTags: FC<DynamicTagsProps>;
|
|
242
|
-
|
|
243
|
-
type ExpandableParagraphProps = Omit<ParagraphProps, 'ellipsis' | 'className'>;
|
|
244
|
-
declare const ExpandableParagraph: FC<ExpandableParagraphProps>;
|
|
245
|
-
|
|
246
|
-
interface FilterFormWrapperProps extends PropsWithChildren {
|
|
247
|
-
onConfirm?: () => void | Promise<void>;
|
|
248
|
-
onReset?: () => void;
|
|
249
|
-
extras?: {
|
|
250
|
-
key: Key;
|
|
251
|
-
children: ReactNode;
|
|
252
|
-
}[];
|
|
253
|
-
isConfirming?: boolean;
|
|
254
|
-
buttonsAlign?: 'left' | 'right' | 'bottom';
|
|
255
|
-
showReset?: boolean;
|
|
256
|
-
}
|
|
257
|
-
declare const FilterFormWrapper: (props: FilterFormWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
258
|
-
|
|
259
|
-
interface HighlightProps extends PropsWithChildren {
|
|
260
|
-
texts: Array<string | number>;
|
|
261
|
-
}
|
|
262
|
-
declare const Highlight: (props: HighlightProps) => react_jsx_runtime.JSX.Element;
|
|
263
|
-
|
|
264
|
-
interface InfiniteListExtra<Values> {
|
|
265
|
-
key: Key;
|
|
266
|
-
children: ReactNode | ((form: FormInstance<Values>) => ReactNode);
|
|
267
|
-
}
|
|
268
|
-
interface InfiniteListProps<Item, Values, Response> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'> {
|
|
269
|
-
url: string;
|
|
270
|
-
getRowKey: (response: Response) => any;
|
|
271
|
-
getDataSource: (data: (Response | undefined)[] | undefined) => Item[];
|
|
272
|
-
code?: string;
|
|
273
|
-
headers?: {
|
|
274
|
-
[key: string]: AxiosHeaderValue;
|
|
275
|
-
} | ((form: FormInstance<Values>) => {
|
|
276
|
-
[key: string]: AxiosHeaderValue;
|
|
277
|
-
});
|
|
278
|
-
renderForm?: (form: FormInstance<Values>) => ReactNode;
|
|
279
|
-
transformArg: (values: Values, rowKey?: string) => Record<any, any>;
|
|
280
|
-
hasMore?: (data: (Response | undefined)[] | undefined) => boolean;
|
|
281
|
-
extras?: InfiniteListExtra<Values>[];
|
|
282
|
-
}
|
|
283
|
-
declare const InfiniteList: <Item extends object, Values extends object | undefined = undefined, Response = any>(props: InfiniteListProps<Item, Values, Response>) => react_jsx_runtime.JSX.Element;
|
|
284
|
-
|
|
285
145
|
interface UseModalOperation {
|
|
286
146
|
hide: () => void;
|
|
287
147
|
}
|
|
@@ -315,6 +175,15 @@ declare function useFormModal<Values extends AnyObject = AnyObject, ExtraValues
|
|
|
315
175
|
modal: react_jsx_runtime.JSX.Element;
|
|
316
176
|
};
|
|
317
177
|
|
|
178
|
+
interface ModalState {
|
|
179
|
+
open: Map<number, boolean>;
|
|
180
|
+
isOpen: (uuid: number) => boolean;
|
|
181
|
+
show: (uuid: number) => void;
|
|
182
|
+
hide: (uuid: number) => void;
|
|
183
|
+
hideAll: () => void;
|
|
184
|
+
}
|
|
185
|
+
declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<ModalState>>;
|
|
186
|
+
|
|
318
187
|
interface PermissionButtonProps extends ButtonProps {
|
|
319
188
|
code?: string | string[];
|
|
320
189
|
showLoading?: boolean;
|
|
@@ -388,19 +257,172 @@ interface RequirePermissionProps {
|
|
|
388
257
|
}
|
|
389
258
|
declare const RequirePermission: FC<PropsWithChildren<RequirePermissionProps>>;
|
|
390
259
|
|
|
391
|
-
|
|
260
|
+
interface AxiosSlice {
|
|
261
|
+
axios: AxiosInstance;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
type Locale = {
|
|
265
|
+
global: {
|
|
266
|
+
noEntitlement: string;
|
|
267
|
+
name: string;
|
|
268
|
+
creationTime: string;
|
|
269
|
+
operation: string;
|
|
270
|
+
update: string;
|
|
271
|
+
edit: string;
|
|
272
|
+
delete: string;
|
|
273
|
+
selectAll: string;
|
|
274
|
+
game: string;
|
|
275
|
+
user: string;
|
|
276
|
+
role: string;
|
|
277
|
+
username: string;
|
|
278
|
+
password: string;
|
|
279
|
+
label: string;
|
|
280
|
+
method: string;
|
|
281
|
+
route: string;
|
|
282
|
+
request: string;
|
|
283
|
+
response: string;
|
|
284
|
+
add: string;
|
|
285
|
+
signIn: string;
|
|
286
|
+
projectGroup: string;
|
|
287
|
+
view: string;
|
|
288
|
+
};
|
|
289
|
+
SignIn: {
|
|
290
|
+
title: string;
|
|
291
|
+
thirdParty: string;
|
|
292
|
+
signInWithIDass: string;
|
|
293
|
+
unregistered: string;
|
|
294
|
+
welcome: string;
|
|
295
|
+
};
|
|
296
|
+
NotFound: {
|
|
297
|
+
subTitle: string;
|
|
298
|
+
buttonText: string;
|
|
299
|
+
};
|
|
300
|
+
FilterFormWrapper: {
|
|
301
|
+
confirmText: string;
|
|
302
|
+
resetText: string;
|
|
303
|
+
};
|
|
304
|
+
FormModal: {
|
|
305
|
+
confirmText: string;
|
|
306
|
+
cancelText: string;
|
|
307
|
+
};
|
|
308
|
+
GameSelect: {
|
|
309
|
+
label: string;
|
|
310
|
+
placeholder: string;
|
|
311
|
+
};
|
|
312
|
+
RequireGame: {
|
|
313
|
+
description: string;
|
|
314
|
+
};
|
|
315
|
+
UserWidget: {
|
|
316
|
+
signOutText: string;
|
|
317
|
+
};
|
|
318
|
+
UserList: {
|
|
319
|
+
createTitle: string;
|
|
320
|
+
createSuccessfully: string;
|
|
321
|
+
updateTitle: string;
|
|
322
|
+
updateSuccessfully: string;
|
|
323
|
+
deleteTitle: string;
|
|
324
|
+
deleteContent: string;
|
|
325
|
+
deleteSuccessfully: string;
|
|
326
|
+
};
|
|
327
|
+
RoleList: {
|
|
328
|
+
createTitle: string;
|
|
329
|
+
createSuccessfully: string;
|
|
330
|
+
updateTitle: string;
|
|
331
|
+
updateSuccessfully: string;
|
|
332
|
+
deleteTitle: string;
|
|
333
|
+
deleteContent: string;
|
|
334
|
+
deleteSuccessfully: string;
|
|
335
|
+
};
|
|
336
|
+
PermissionList: {
|
|
337
|
+
failedDescription: string;
|
|
338
|
+
baseSectionTitle: string;
|
|
339
|
+
gameSectionTitle: string;
|
|
340
|
+
gameSectionDescription: string;
|
|
341
|
+
gameSelectPlaceholder: string;
|
|
342
|
+
removeText: string;
|
|
343
|
+
addText: string;
|
|
344
|
+
};
|
|
345
|
+
RoleDetail: {
|
|
346
|
+
title: string;
|
|
347
|
+
};
|
|
348
|
+
InfiniteList: {
|
|
349
|
+
loadingText: string;
|
|
350
|
+
reachEndText: string;
|
|
351
|
+
loadMoreText: string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
392
354
|
|
|
393
355
|
declare const SSO_URL = "https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";
|
|
394
356
|
declare const APP_ID_HEADER = "App-ID";
|
|
395
357
|
declare const FRONTEND_ROUTE_PREFIX = "/console/";
|
|
358
|
+
declare enum PermissionVersion {
|
|
359
|
+
V1 = "v1",
|
|
360
|
+
V2 = "v2",
|
|
361
|
+
V3 = "v3"
|
|
362
|
+
}
|
|
363
|
+
declare const WILDCARD = "*";
|
|
396
364
|
|
|
365
|
+
interface ContextSlice {
|
|
366
|
+
locale: Locale;
|
|
367
|
+
permissionVersion: PermissionVersion;
|
|
368
|
+
gameApiV2: boolean;
|
|
369
|
+
signInPath: string;
|
|
370
|
+
isGlobal: boolean;
|
|
371
|
+
layoutTitle?: ReactNode;
|
|
372
|
+
navWidth?: number;
|
|
373
|
+
menuCollapsible?: boolean;
|
|
374
|
+
interceptors?: {
|
|
375
|
+
request?: [(config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>];
|
|
376
|
+
response?: [
|
|
377
|
+
(response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>,
|
|
378
|
+
((error: any) => any) | null,
|
|
379
|
+
options?: AxiosInterceptorOptions
|
|
380
|
+
];
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
interface GameSlice {
|
|
385
|
+
game?: Game;
|
|
386
|
+
setGame: (game?: Game) => void;
|
|
387
|
+
getGameId: () => string | number | undefined;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
interface UserInfo {
|
|
391
|
+
authorityId: string;
|
|
392
|
+
exp: number;
|
|
393
|
+
}
|
|
394
|
+
interface TokenSlice {
|
|
395
|
+
token?: string;
|
|
396
|
+
getUser: () => UserInfo | null;
|
|
397
|
+
setToken: (token: string) => void;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
type ToolkitsState = TokenSlice & GameSlice & ContextSlice & AxiosSlice & {
|
|
401
|
+
unregistered: boolean;
|
|
402
|
+
clearToken: () => void;
|
|
403
|
+
setUnregistered: () => void;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
declare function useToolkitsStore<T>(selector: (state: ToolkitsState) => T): T;
|
|
407
|
+
type ToolkitsProviderProps = PropsWithChildren<Partial<ContextSlice>>;
|
|
408
|
+
declare const ToolkitsProvider: FC<ToolkitsProviderProps>;
|
|
409
|
+
declare const withContext: (Component: ComponentType, providerProps: Omit<ToolkitsProviderProps, "children">) => (props: any) => react_jsx_runtime.JSX.Element;
|
|
410
|
+
|
|
411
|
+
declare const UserWidget: FC;
|
|
412
|
+
|
|
413
|
+
type JsonData<T = any> = {
|
|
414
|
+
code?: number;
|
|
415
|
+
status?: number;
|
|
416
|
+
errno?: number;
|
|
417
|
+
data: T;
|
|
418
|
+
msg: string;
|
|
419
|
+
};
|
|
397
420
|
interface Permission {
|
|
398
421
|
label: string;
|
|
399
422
|
value: string;
|
|
400
423
|
route: string;
|
|
401
424
|
method?: string;
|
|
402
425
|
}
|
|
403
|
-
|
|
404
426
|
interface MenuListItem {
|
|
405
427
|
id: number;
|
|
406
428
|
category: string;
|
|
@@ -414,15 +436,12 @@ interface MenuListItem {
|
|
|
414
436
|
ext: string;
|
|
415
437
|
}
|
|
416
438
|
|
|
417
|
-
declare function useMenuList(): swr.SWRResponse<MenuListItem[], any, any>;
|
|
418
|
-
|
|
419
|
-
type PermissionCheckResult = {
|
|
420
|
-
has_all: true;
|
|
421
|
-
} | Record<string, boolean>;
|
|
422
439
|
declare const usePermissions: (codes?: string[]) => {
|
|
423
440
|
data: Record<string, boolean>;
|
|
424
441
|
error: any;
|
|
425
|
-
mutate: swr.KeyedMutator<
|
|
442
|
+
mutate: swr.KeyedMutator<{
|
|
443
|
+
has_all: true;
|
|
444
|
+
} | Record<string, boolean>>;
|
|
426
445
|
isValidating: boolean;
|
|
427
446
|
isLoading: boolean;
|
|
428
447
|
};
|
|
@@ -431,6 +450,7 @@ declare const usePermission: (code?: string) => {
|
|
|
431
450
|
isValidating: boolean;
|
|
432
451
|
isLoading: boolean;
|
|
433
452
|
};
|
|
453
|
+
declare function useMenuList(): swr.SWRResponse<MenuListItem[], any, any>;
|
|
434
454
|
|
|
435
455
|
declare const _default$2: react_jsx_runtime.JSX.Element;
|
|
436
456
|
|
|
@@ -450,14 +470,6 @@ interface SignInProps {
|
|
|
450
470
|
}
|
|
451
471
|
declare const SignIn: FC<SignInProps>;
|
|
452
472
|
|
|
453
|
-
type JsonData<T = any> = {
|
|
454
|
-
code?: number;
|
|
455
|
-
status?: number;
|
|
456
|
-
errno?: number;
|
|
457
|
-
data: T;
|
|
458
|
-
msg: string;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
473
|
declare const mixedStorage: StateStorage;
|
|
462
474
|
|
|
463
|
-
export { APP_ID_HEADER,
|
|
475
|
+
export { APP_ID_HEADER, DynamicTags, type DynamicTagsProps, ExpandableParagraph, type ExpandableParagraphProps, FRONTEND_ROUTE_PREFIX, FilterFormWrapper, type FilterFormWrapperProps, type Game, Highlight, type HighlightProps, InfiniteList, type InfiniteListProps, type JsonData, Layout, type LayoutProps, type LayoutState, type MenuListItem, NavMenu, type NavMenuItem, NotFound, _default$1 as OperationLogList, type Permission, PermissionButton, type PermissionButtonProps, PermissionVersion, QueryList, QueryListAction, type QueryListPayload, type QueryListProps, type QueryListRef, RequireGame, RequirePermission, type RequirePermissionProps, SSO_URL, SignIn, ToolkitsProvider, type ToolkitsProviderProps, type UseFormModalProps, UserWidget, WILDCARD, _default$2 as menuRoutes, mixedStorage, _default as permissionRoutes, useFindGame, useFormModal, useGames, useLayoutStore, useMenuList, useModal, useModalStore, usePermission, usePermissions, useQueryListStore, useToolkitsStore, withContext };
|