Merge remote-tracking branch 'origin/main' into feature/synchronize_saas
This commit is contained in:
commit
0d1dff05d6
6 files changed
+31
-19
No files matched your search
+14
-12
@@ -19,18 +19,20 @@ const nextConfig = {
|
||||
async redirects() {
|
||||
return [];
|
||||
},
|
||||
// async rewrites() {
|
||||
// return [
|
||||
// {
|
||||
// source: "/api/:path*",
|
||||
// destination: `${process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:8001"}/api/:path*`,
|
||||
// },
|
||||
// {
|
||||
// source: "/uploads/:path*",
|
||||
// destination: `${process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:8001"}/uploads/:path*`,
|
||||
// },
|
||||
// ];
|
||||
// },
|
||||
async rewrites() {
|
||||
return [
|
||||
// {
|
||||
// source: "/api/:path*",
|
||||
// destination: `${process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:8001"}/api/:path*`,
|
||||
// },
|
||||
{
|
||||
source: "/uploads/:path*",
|
||||
destination: `${
|
||||
process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:8001"
|
||||
}/uploads/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
// Headers for better performance
|
||||
async headers() {
|
||||
|
||||
@@ -874,5 +874,7 @@
|
||||
"or create your account": "or create your account",
|
||||
"No account? Just continue—we’ll set you up.": "No account? Just continue—we’ll set you up.",
|
||||
"Password must be at least 6 characters": "Password must be at least 6 characters",
|
||||
"Email is required": "Email is required"
|
||||
"Email is required": "Email is required",
|
||||
"No servers available": "No servers available",
|
||||
"(Deleted)": "(Deleted)"
|
||||
}
|
||||
@@ -876,5 +876,7 @@
|
||||
"or create your account": "或创建您的账户",
|
||||
"No account? Just continue—we’ll set you up.": "没有账户?继续即可,我们会为您设置。",
|
||||
"Password must be at least 6 characters": "密码必须至少6个字符",
|
||||
"Email is required": "邮箱为必填项"
|
||||
"Email is required": "邮箱为必填项",
|
||||
"No servers available": "没有可用服务",
|
||||
"(Deleted)": "(已删除)"
|
||||
}
|
||||
@@ -44,6 +44,7 @@ export interface TopServiceItem {
|
||||
name: string; // server name
|
||||
short_description: string; // short description
|
||||
call_count: number; // call count
|
||||
is_deleted: boolean; //It means the server was deleted.
|
||||
}
|
||||
|
||||
// admin analytics data
|
||||
|
||||
@@ -282,10 +282,14 @@ const ConsoleStats: React.FC = () => {
|
||||
{index + 1}
|
||||
</div>
|
||||
<div className="flex flex-col items-start flex-1 overflow-hidden">
|
||||
<span className="truncate w-full">
|
||||
{" "}
|
||||
{service.name}
|
||||
</span>
|
||||
<div className="flex gap-1 w-full">
|
||||
<span className="text-danger-500">
|
||||
{service.is_deleted ? t("(Deleted)") : ""}
|
||||
</span>
|
||||
<span className="truncate w-full flex-1">
|
||||
{service.name}
|
||||
</span>
|
||||
</div>
|
||||
<span className="text-xs text-gray-500 truncate w-full">
|
||||
{service.short_description}
|
||||
</span>
|
||||
|
||||
@@ -197,7 +197,8 @@ const BaseServiceEditPage: React.FC<ServiceEditPageProps> = ({
|
||||
const hasBasicInfo =
|
||||
formData.name.trim() &&
|
||||
formData.short_description?.trim() &&
|
||||
formData.slug_name?.trim();
|
||||
formData.slug_name?.trim() &&
|
||||
formData.base_url?.trim();
|
||||
|
||||
// if free, no need to validate price
|
||||
if (formData.charge_type === ChargeType.Free) {
|
||||
|
||||
Reference in new issue
Block a user