sa2kit 1.6.78 → 1.6.80
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/dist/ai/llm/electron/index.js +2 -2
- package/dist/ai/llm/electron/index.js.map +1 -1
- package/dist/ai/llm/electron/index.mjs +2 -2
- package/dist/ai/llm/electron/index.mjs.map +1 -1
- package/dist/ai/llm/ui/electron/index.js +2 -2
- package/dist/ai/llm/ui/electron/index.js.map +1 -1
- package/dist/ai/llm/ui/electron/index.mjs +2 -2
- package/dist/ai/llm/ui/electron/index.mjs.map +1 -1
- package/dist/ai/llm/ui/web/index.js +2 -2
- package/dist/ai/llm/ui/web/index.js.map +1 -1
- package/dist/ai/llm/ui/web/index.mjs +2 -2
- package/dist/ai/llm/ui/web/index.mjs.map +1 -1
- package/dist/ai/llm/web/index.js +2 -2
- package/dist/ai/llm/web/index.js.map +1 -1
- package/dist/ai/llm/web/index.mjs +2 -2
- package/dist/ai/llm/web/index.mjs.map +1 -1
- package/dist/ar/index.d.mts +2 -2
- package/dist/ar/index.d.ts +2 -2
- package/dist/ar/index.js +43 -4
- package/dist/ar/index.js.map +1 -1
- package/dist/ar/index.mjs +43 -4
- package/dist/ar/index.mjs.map +1 -1
- package/dist/{booking-BX_0AXU6.d.mts → booking-473Db8Bo.d.mts} +6 -0
- package/dist/{booking-BX_0AXU6.d.ts → booking-473Db8Bo.d.ts} +6 -0
- package/dist/{bookingAdminService-ChzuoCUx.d.ts → bookingAdminService-DqQ7hEGw.d.ts} +1 -1
- package/dist/{bookingAdminService-B_D_Jq1W.d.mts → bookingAdminService-SBX4JA_U.d.mts} +1 -1
- package/dist/calendar/index.js +8 -4
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +8 -4
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/calendar/web/index.js +8 -4
- package/dist/calendar/web/index.js.map +1 -1
- package/dist/calendar/web/index.mjs +8 -4
- package/dist/calendar/web/index.mjs.map +1 -1
- package/dist/{client-B6JtOkEq.d.ts → client-Bkn6mRI7.d.ts} +1 -1
- package/dist/{client-DkSveTk-.d.mts → client-exYn2Qla.d.mts} +1 -1
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +8 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +8 -4
- package/dist/components/index.mjs.map +1 -1
- package/dist/{index-B9vIHUEv.d.ts → index-BJpxvH7X.d.ts} +1 -1
- package/dist/{index-C3_UPPdv.d.ts → index-CdTIsNsy.d.ts} +2 -2
- package/dist/{index-DDuTPOHu.d.mts → index-Cum2EknK.d.mts} +1 -1
- package/dist/{index-D6ZIkvt-.d.mts → index-DyxLpkmm.d.mts} +2 -2
- package/dist/{index-BjYZSfZa.d.ts → index-XTV6IU-M.d.ts} +2 -2
- package/dist/{index-3qQN9Lh_.d.mts → index-z15F7afa.d.mts} +2 -2
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/mmd/index.d.mts +9 -3
- package/dist/mmd/index.d.ts +9 -3
- package/dist/mmd/index.js +95 -13
- package/dist/mmd/index.js.map +1 -1
- package/dist/mmd/index.mjs +95 -13
- package/dist/mmd/index.mjs.map +1 -1
- package/dist/portfolio/index.js +2 -2
- package/dist/portfolio/index.js.map +1 -1
- package/dist/portfolio/index.mjs +2 -2
- package/dist/portfolio/index.mjs.map +1 -1
- package/dist/showmasterpiece/core.d.mts +3 -3
- package/dist/showmasterpiece/core.d.ts +3 -3
- package/dist/showmasterpiece/db.d.mts +25 -0
- package/dist/showmasterpiece/db.d.ts +25 -0
- package/dist/showmasterpiece/db.js +35 -0
- package/dist/showmasterpiece/db.js.map +1 -1
- package/dist/showmasterpiece/db.mjs +35 -0
- package/dist/showmasterpiece/db.mjs.map +1 -1
- package/dist/showmasterpiece/index.js +279 -226
- package/dist/showmasterpiece/index.js.map +1 -1
- package/dist/showmasterpiece/index.mjs +279 -226
- package/dist/showmasterpiece/index.mjs.map +1 -1
- package/dist/showmasterpiece/logic/index.d.mts +2 -2
- package/dist/showmasterpiece/logic/index.d.ts +2 -2
- package/dist/showmasterpiece/server/index.js +35 -0
- package/dist/showmasterpiece/server/index.js.map +1 -1
- package/dist/showmasterpiece/server/index.mjs +35 -0
- package/dist/showmasterpiece/server/index.mjs.map +1 -1
- package/dist/showmasterpiece/service/api/index.d.mts +1 -1
- package/dist/showmasterpiece/service/api/index.d.ts +1 -1
- package/dist/showmasterpiece/service/client-business/index.d.mts +3 -3
- package/dist/showmasterpiece/service/client-business/index.d.ts +3 -3
- package/dist/showmasterpiece/service/index.d.mts +6 -6
- package/dist/showmasterpiece/service/index.d.ts +6 -6
- package/dist/showmasterpiece/service/miniapp/index.d.mts +2 -2
- package/dist/showmasterpiece/service/miniapp/index.d.ts +2 -2
- package/dist/showmasterpiece/service/web/index.d.mts +4 -4
- package/dist/showmasterpiece/service/web/index.d.ts +4 -4
- package/dist/showmasterpiece/ui/miniapp/index.d.mts +2 -2
- package/dist/showmasterpiece/ui/miniapp/index.d.ts +2 -2
- package/dist/showmasterpiece/ui/miniapp/index.js +38 -8
- package/dist/showmasterpiece/ui/miniapp/index.js.map +1 -1
- package/dist/showmasterpiece/ui/miniapp/index.mjs +38 -8
- package/dist/showmasterpiece/ui/miniapp/index.mjs.map +1 -1
- package/dist/showmasterpiece/ui/web/index.js +279 -226
- package/dist/showmasterpiece/ui/web/index.js.map +1 -1
- package/dist/showmasterpiece/ui/web/index.mjs +279 -226
- package/dist/showmasterpiece/ui/web/index.mjs.map +1 -1
- package/dist/showmasterpiece/web/index.js +279 -226
- package/dist/showmasterpiece/web/index.js.map +1 -1
- package/dist/showmasterpiece/web/index.mjs +279 -226
- package/dist/showmasterpiece/web/index.mjs.map +1 -1
- package/dist/{types-CvKvpyN8.d.mts → types-D4vSK3AJ.d.mts} +2 -1
- package/dist/{types-CvKvpyN8.d.ts → types-D4vSK3AJ.d.ts} +2 -1
- package/package.json +1 -1
|
@@ -57,6 +57,12 @@ function CategoryTabs({
|
|
|
57
57
|
var CategoryTabs_default = CategoryTabs;
|
|
58
58
|
|
|
59
59
|
// src/showmasterpiece/types/index.ts
|
|
60
|
+
function normalizeMiniappFloatingButtonsConfig(input) {
|
|
61
|
+
return {
|
|
62
|
+
showCart: input?.showCart ?? true,
|
|
63
|
+
showHistory: input?.showHistory ?? true
|
|
64
|
+
};
|
|
65
|
+
}
|
|
60
66
|
var categories = {
|
|
61
67
|
["collection" /* COLLECTION */]: {
|
|
62
68
|
value: "collection" /* COLLECTION */,
|
|
@@ -791,6 +797,9 @@ var ShowMasterpieceMiniappPage = ({
|
|
|
791
797
|
const [error, setError] = useState(null);
|
|
792
798
|
const [activeCategory, setActiveCategory] = useState("");
|
|
793
799
|
const [cartCount, setCartCount] = useState(0);
|
|
800
|
+
const [miniappFloatingButtons, setMiniappFloatingButtons] = useState(
|
|
801
|
+
() => normalizeMiniappFloatingButtonsConfig(void 0)
|
|
802
|
+
);
|
|
794
803
|
const {
|
|
795
804
|
configs: popupConfigs,
|
|
796
805
|
triggerCheck,
|
|
@@ -866,6 +875,26 @@ var ShowMasterpieceMiniappPage = ({
|
|
|
866
875
|
}, 600);
|
|
867
876
|
return () => clearTimeout(timer);
|
|
868
877
|
}, [triggerCheck]);
|
|
878
|
+
useEffect(() => {
|
|
879
|
+
const loadMiniappConfig = async () => {
|
|
880
|
+
try {
|
|
881
|
+
const response = await Taro2.request({
|
|
882
|
+
url: `${apiBaseUrl.replace(/\/$/, "")}/api/showmasterpiece/config`,
|
|
883
|
+
method: "GET",
|
|
884
|
+
header: {
|
|
885
|
+
"Content-Type": "application/json"
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
const buttons = normalizeMiniappFloatingButtonsConfig(
|
|
889
|
+
response.data?.miniappFloatingButtons
|
|
890
|
+
);
|
|
891
|
+
setMiniappFloatingButtons(buttons);
|
|
892
|
+
} catch (err) {
|
|
893
|
+
setMiniappFloatingButtons(normalizeMiniappFloatingButtonsConfig(void 0));
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
loadMiniappConfig();
|
|
897
|
+
}, [apiBaseUrl]);
|
|
869
898
|
const categories2 = useMemo(() => {
|
|
870
899
|
const categoryCounter = /* @__PURE__ */ new Map();
|
|
871
900
|
collections.forEach((item) => {
|
|
@@ -959,24 +988,25 @@ var ShowMasterpieceMiniappPage = ({
|
|
|
959
988
|
), /* @__PURE__ */ React11.createElement(View, { className: "fixed bottom-6 right-4 flex flex-col gap-3", style: { zIndex: 80 } }, /* @__PURE__ */ React11.createElement(
|
|
960
989
|
View,
|
|
961
990
|
{
|
|
962
|
-
className: "flex h-
|
|
991
|
+
className: "flex h-12 w-12 items-center justify-center rounded-full bg-teal-600 shadow-lg",
|
|
963
992
|
onClick: goToTop
|
|
964
993
|
},
|
|
965
|
-
/* @__PURE__ */ React11.createElement(Text, { className: "text-
|
|
966
|
-
), /* @__PURE__ */ React11.createElement(
|
|
994
|
+
/* @__PURE__ */ React11.createElement(Text, { className: "text-lg text-white" }, "\u2191")
|
|
995
|
+
), miniappFloatingButtons.showCart && /* @__PURE__ */ React11.createElement(
|
|
967
996
|
View,
|
|
968
997
|
{
|
|
969
|
-
className: "flex h-
|
|
998
|
+
className: "relative flex h-12 w-12 items-center justify-center rounded-full bg-cyan-500 shadow-lg",
|
|
970
999
|
onClick: goToCart
|
|
971
1000
|
},
|
|
972
|
-
/* @__PURE__ */ React11.createElement(Text, { className: "text-
|
|
973
|
-
|
|
1001
|
+
/* @__PURE__ */ React11.createElement(Text, { className: "text-lg text-white" }, "\u{1F6D2}"),
|
|
1002
|
+
cartCount > 0 && /* @__PURE__ */ React11.createElement(View, { className: "absolute -right-1 -top-1 flex min-h-4 min-w-4 items-center justify-center rounded-full bg-rose-500 px-1" }, /* @__PURE__ */ React11.createElement(Text, { className: "text-[10px] font-semibold text-white" }, cartCount > 99 ? "99+" : cartCount))
|
|
1003
|
+
), miniappFloatingButtons.showHistory && /* @__PURE__ */ React11.createElement(
|
|
974
1004
|
View,
|
|
975
1005
|
{
|
|
976
|
-
className: "flex h-
|
|
1006
|
+
className: "flex h-12 w-12 items-center justify-center rounded-full bg-blue-700 shadow-lg",
|
|
977
1007
|
onClick: goToHistory
|
|
978
1008
|
},
|
|
979
|
-
/* @__PURE__ */ React11.createElement(Text, { className: "text-
|
|
1009
|
+
/* @__PURE__ */ React11.createElement(Text, { className: "text-lg text-white" }, "\u{1F558}")
|
|
980
1010
|
)));
|
|
981
1011
|
};
|
|
982
1012
|
var ShowMasterpiecePage_default = ShowMasterpieceMiniappPage;
|