forked from 77media/video-flow
打开配置,传入语言
This commit is contained in:
parent
94c06b7d4b
commit
3e4e947159
@ -1,5 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import { get } from "@/api/request";
|
import { post } from "@/api/request";
|
||||||
import { useSearchParams } from "next/navigation";
|
import { useSearchParams } from "next/navigation";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { CheckCircle, XCircle, Loader2 } from "lucide-react";
|
import { CheckCircle, XCircle, Loader2 } from "lucide-react";
|
||||||
@ -31,7 +31,7 @@ function ConfirmEmail({ t }: { t: string }) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
get(`${process.env.NEXT_PUBLIC_JAVA_URL}/api/user/activate?t=${t}`)
|
post(`${process.env.NEXT_PUBLIC_JAVA_URL}/api/user/activate?t=${t}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
setStatus('success');
|
setStatus('success');
|
||||||
setMessage('Your registration has been verified. Please return to the official website to log in.');
|
setMessage('Your registration has been verified. Please return to the official website to log in.');
|
||||||
|
|||||||
@ -911,7 +911,7 @@ export function ChatInputBox({ noData }: { noData: boolean }) {
|
|||||||
{!isExpanded && (
|
{!isExpanded && (
|
||||||
<div className="absolute top-2 right-2 z-10 flex items-center">
|
<div className="absolute top-2 right-2 z-10 flex items-center">
|
||||||
{/* 使用 Dropdown 替代手动控制显示/隐藏 */}
|
{/* 使用 Dropdown 替代手动控制显示/隐藏 */}
|
||||||
{/* <Dropdown
|
<Dropdown
|
||||||
open={showConfigOptions}
|
open={showConfigOptions}
|
||||||
onOpenChange={setShowConfigOptions}
|
onOpenChange={setShowConfigOptions}
|
||||||
popupRender={() => (
|
popupRender={() => (
|
||||||
@ -935,7 +935,7 @@ export function ChatInputBox({ noData }: { noData: boolean }) {
|
|||||||
<Settings className="w-4 h-4 text-white/80" />
|
<Settings className="w-4 h-4 text-white/80" />
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Dropdown> */}
|
</Dropdown>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@ -1073,50 +1073,48 @@ const ConfigOptions = ({
|
|||||||
onConfigChange: (key: string, value: string) => void;
|
onConfigChange: (key: string, value: string) => void;
|
||||||
}) => {
|
}) => {
|
||||||
const configItems = [
|
const configItems = [
|
||||||
{
|
// {
|
||||||
key: "mode",
|
// key: "mode",
|
||||||
icon: Package,
|
// icon: Package,
|
||||||
options: [
|
// options: [
|
||||||
{ value: "auto", label: "Auto", isVip: false },
|
// { value: "auto", label: "Auto", isVip: false },
|
||||||
{ value: "manual", label: "Manual", isVip: true },
|
// { value: "manual", label: "Manual", isVip: true },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
key: "resolution",
|
// key: "resolution",
|
||||||
icon: Video,
|
// icon: Video,
|
||||||
options: [
|
// options: [
|
||||||
{ value: "720p", label: "720P", isVip: false },
|
// { value: "720p", label: "720P", isVip: false },
|
||||||
{ value: "1080p", label: "1080P", isVip: true },
|
// { value: "1080p", label: "1080P", isVip: true },
|
||||||
{ value: "2k", label: "2K", isVip: true },
|
// { value: "2k", label: "2K", isVip: true },
|
||||||
{ value: "4k", label: "4K", isVip: true },
|
// { value: "4k", label: "4K", isVip: true },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
key: "language",
|
key: "language",
|
||||||
icon: Globe,
|
icon: Globe,
|
||||||
options: [
|
options: [
|
||||||
{ value: "english", label: "English", isVip: false },
|
{ value: "english", label: "English", isVip: false },
|
||||||
{ value: "chinese", label: "Chinese", isVip: true },
|
{ value: "chinese", label: "Chinese", isVip: false },
|
||||||
{ value: "japanese", label: "Japanese", isVip: true },
|
{ value: "japanese", label: "Japanese", isVip: false },
|
||||||
{ value: "korean", label: "Korean", isVip: true },
|
{ value: "spanish", label: "Spanish", isVip: false },
|
||||||
{ value: "spanish", label: "Spanish", isVip: true },
|
{ value: "portuguese", label: "Portuguese", isVip: false },
|
||||||
{ value: "portuguese", label: "Portuguese", isVip: true },
|
{ value: "hindi", label: "Hindi", isVip: false },
|
||||||
{ value: "hindi", label: "Hindi", isVip: true },
|
{ value: "korean", label: "Korean", isVip: false },
|
||||||
{ value: "japanese", label: "Japanese", isVip: true },
|
{ value: "arabic", label: "Arabic", isVip: false },
|
||||||
{ value: "korean", label: "Korean", isVip: true },
|
{ value: "russian", label: "Russian", isVip: false },
|
||||||
{ value: "arabic", label: "Arabic", isVip: true },
|
|
||||||
{ value: "russian", label: "Russian", isVip: true },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: "videoDuration",
|
|
||||||
icon: Clock,
|
|
||||||
options: [
|
|
||||||
{ value: "1min", label: "1 Min", isVip: false },
|
|
||||||
{ value: "2min", label: "2 Min", isVip: true },
|
|
||||||
{ value: "3min", label: "3 Min", isVip: true },
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// key: "videoDuration",
|
||||||
|
// icon: Clock,
|
||||||
|
// options: [
|
||||||
|
// { value: "1min", label: "1 Min", isVip: false },
|
||||||
|
// { value: "2min", label: "2 Min", isVip: true },
|
||||||
|
// { value: "3min", label: "3 Min", isVip: true },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user