diff --git a/messages/cn.json b/messages/cn.json
index 715c49f..9f9e831 100644
--- a/messages/cn.json
+++ b/messages/cn.json
@@ -248,6 +248,11 @@
"downRoll": "减少副属性",
"actions": "操作",
"avatars": "头像",
- "quickView": "快速预览"
+ "quickView": "快速预览",
+ "extraSetting": "额外设置",
+ "disableCensorship": "禁用审查",
+ "hideUI": "隐藏界面",
+ "theoryCraftMode": "理论研究模式",
+ "cycleCount": "循环次数"
}
}
\ No newline at end of file
diff --git a/messages/en.json b/messages/en.json
index 69357f1..16435a0 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -249,6 +249,11 @@
"downRoll": "Down Roll",
"actions": "Actions",
"avatars": "Avatars",
- "quickView": "Quick View"
+ "quickView": "Quick View",
+ "extraSetting": "Extra Settings",
+ "disableCensorship": "Disable Censorship",
+ "hideUI": "Hide UI",
+ "theoryCraftMode": "Theorycraft Mode",
+ "cycleCount": "Cycle Count"
}
}
\ No newline at end of file
diff --git a/messages/ja.json b/messages/ja.json
index d403ac9..087b2b4 100644
--- a/messages/ja.json
+++ b/messages/ja.json
@@ -248,6 +248,11 @@
"downRoll": "サブステータスを減らす",
"actions": "アクション",
"avatars": "アバター",
- "quickView": "クイックビュー"
+ "quickView": "クイックビュー",
+ "extraSetting": "追加設定",
+ "disableCensorship": "検閲を無効化",
+ "hideUI": "UIを非表示",
+ "theoryCraftMode": "シアリークラフトモード",
+ "cycleCount": "サイクル数"
}
}
\ No newline at end of file
diff --git a/messages/ko.json b/messages/ko.json
index a010439..fce899a 100644
--- a/messages/ko.json
+++ b/messages/ko.json
@@ -248,6 +248,11 @@
"downRoll": "부옵션 감소",
"actions": "동작",
"avatars": "아바타",
- "quickView": "빠른 조회"
+ "quickView": "빠른 조회",
+ "extraSetting": "추가 설정",
+ "disableCensorship": "검열 비활성화",
+ "hideUI": "UI 숨기기",
+ "theoryCraftMode": "이론 제작 모드",
+ "cycleCount": "사이클 수"
}
}
\ No newline at end of file
diff --git a/messages/vi.json b/messages/vi.json
index cf1c9b6..6e9422a 100644
--- a/messages/vi.json
+++ b/messages/vi.json
@@ -248,6 +248,11 @@
"downRoll": "Giảm dòng",
"actions": "Hành động",
"avatars": "Nhân vật",
- "quickView": "Xem nhanh"
+ "quickView": "Xem nhanh",
+ "extraSetting": "Cài đặt bổ sung",
+ "disableCensorship": "Tắt kiểm duyệt",
+ "hideUI": "Ẩn giao diện",
+ "theoryCraftMode": "Chế độ Theorycraft",
+ "cycleCount": "Số vòng"
}
}
\ No newline at end of file
diff --git a/messages/zh.json b/messages/zh.json
index 8c336a1..8b6adf6 100644
--- a/messages/zh.json
+++ b/messages/zh.json
@@ -248,6 +248,11 @@
"downRoll": "减少副属性",
"actions": "操作",
"avatars": "头像",
- "quickView": "快速预览"
+ "quickView": "快速预览",
+ "extraSetting": "额外设置",
+ "disableCensorship": "禁用审查",
+ "hideUI": "隐藏界面",
+ "theoryCraftMode": "理论研究模式",
+ "cycleCount": "循环次数"
}
}
\ No newline at end of file
diff --git a/src/components/actionBar/index.tsx b/src/components/actionBar/index.tsx
index 75f7c79..818483f 100644
--- a/src/components/actionBar/index.tsx
+++ b/src/components/actionBar/index.tsx
@@ -26,19 +26,19 @@ export default function ActionBar() {
const { setListCopyAvatar } = useCopyProfileStore()
const transI18n = useTranslations("DataPage")
const { locale } = useLocaleStore()
- const {
- isOpenCreateProfile,
- setIsOpenCreateProfile,
- isOpenCopy,
+ const {
+ isOpenCreateProfile,
+ setIsOpenCreateProfile,
+ isOpenCopy,
setIsOpenCopy,
isOpenAvatars,
- setIsOpenAvatars
+ setIsOpenAvatars
} = useModelStore()
const { avatars, setAvatar } = useUserDataStore()
const [profileName, setProfileName] = useState("");
const [formState, setFormState] = useState("EDIT");
const [profileEdit, setProfileEdit] = useState(-1);
- const { isConnectPS, setIsConnectPS } = useGlobalStore()
+ const { isConnectPS } = useGlobalStore()
const profileCurrent = useMemo(() => {
if (!avatarSelected) return null;
@@ -104,7 +104,7 @@ export default function ActionBar() {
}
console.log(isOpenAvatars)
if (!isOpenAvatars) {
-
+
handleCloseModal("avatars_modal");
return;
}
@@ -157,20 +157,71 @@ export default function ActionBar() {
toast.success(transI18n("syncSuccess"))
} else {
toast.error(`${transI18n("syncFailed")}: ${res.message}`)
- setIsConnectPS(false)
}
} else {
const res = await connectToPS()
if (res.success) {
toast.success(transI18n("connectedSuccess"))
- setIsConnectPS(true)
} else {
toast.error(`${transI18n("connectedFailed")}: ${res.message}`)
- setIsConnectPS(false)
}
}
}
+
+ const modalConfigs = [
+ {
+ id: "update_profile_modal",
+ title: formState === "CREATE" ? transI18n("createNewProfile") : transI18n("editProfile"),
+ onClose: () => {
+ setIsOpenCreateProfile(false)
+ handleCloseModal("update_profile_modal")
+ },
+ content: (
+
+
+
+ setProfileName(e.target.value)}
+ />
+
+
+
+
+
+ )
+ },
+ {
+ id: "copy_profile_modal",
+ title: transI18n("copyProfiles").toUpperCase(),
+ onClose: () => {
+ setIsOpenCopy(false)
+ handleCloseModal("copy_profile_modal")
+ },
+ content:
+ },
+ {
+ id: "avatars_modal",
+ title: transI18n("avatars").toUpperCase(),
+ onClose: () => {
+ setIsOpenAvatars(false)
+ handleCloseModal("avatars_modal")
+ },
+ content: { setIsOpenAvatars(false); handleCloseModal("avatars_modal") }} />
+ }
+ ]
+
+
return (
@@ -302,12 +353,12 @@ export default function ActionBar() {
-