mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 05:54:53 +00:00
add tencent cdn deployer
This commit is contained in:
File diff suppressed because one or more lines are too long
2
ui/dist/index.html
vendored
2
ui/dist/index.html
vendored
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Certimate - Your Trusted SSL Automation Partner</title>
|
||||
<script type="module" crossorigin src="/assets/index-D-MCicNE.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-CGKfLY3n.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-VYJgHfoP.css">
|
||||
</head>
|
||||
<body class="bg-background">
|
||||
|
@@ -30,6 +30,7 @@ export const getLastDeployment = (domain: Domain): Deployment | undefined => {
|
||||
export const targetTypeMap: Map<string, [string, string]> = new Map([
|
||||
["aliyun-cdn", ["阿里云-CDN", "/imgs/providers/aliyun.svg"]],
|
||||
["aliyun-oss", ["阿里云-OSS", "/imgs/providers/aliyun.svg"]],
|
||||
["tencent-cdn", ["腾讯云-CDN", "/imgs/providers/tencent.svg"]],
|
||||
["ssh", ["SSH部署", "/imgs/providers/ssh.png"]],
|
||||
["webhook", ["Webhook", "/imgs/providers/webhook.svg"]],
|
||||
]);
|
||||
|
@@ -187,7 +187,7 @@ export default function Dashboard() {
|
||||
href="https://github.com/usual2970/certimate/releases"
|
||||
target="_blank"
|
||||
>
|
||||
Certimate v0.0.5
|
||||
Certimate v0.0.6
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -34,9 +34,6 @@ import { useLocation, useNavigate } from "react-router-dom";
|
||||
import { Plus } from "lucide-react";
|
||||
import { AccessEdit } from "@/components/certimate/AccessEdit";
|
||||
import { accessTypeMap } from "@/domain/access";
|
||||
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const Edit = () => {
|
||||
const {
|
||||
@@ -151,10 +148,6 @@ const Edit = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const getOptionCls = (val: string) => {
|
||||
return form.getValues().targetType == val ? "border-primary" : "";
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="">
|
||||
@@ -241,37 +234,33 @@ const Edit = () => {
|
||||
<FormItem>
|
||||
<FormLabel>部署服务类型</FormLabel>
|
||||
<FormControl>
|
||||
<RadioGroup
|
||||
className="flex mt-3 space-x-2"
|
||||
onValueChange={(val: string) => {
|
||||
setTargetType(val);
|
||||
form.setValue("targetType", val);
|
||||
}}
|
||||
<Select
|
||||
{...field}
|
||||
onValueChange={(value) => {
|
||||
setTargetType(value);
|
||||
form.setValue("targetType", value);
|
||||
}}
|
||||
>
|
||||
{targetTypeKeys.map((key) => (
|
||||
<div
|
||||
className="flex items-center space-x-2"
|
||||
key={key}
|
||||
>
|
||||
<Label>
|
||||
<RadioGroupItem value={key} id={key} hidden />
|
||||
<div
|
||||
className={cn(
|
||||
"flex items-center space-x-2 border p-2 rounded cursor-pointer",
|
||||
getOptionCls(key)
|
||||
)}
|
||||
>
|
||||
<img
|
||||
src={targetTypeMap.get(key)?.[1]}
|
||||
className="h-6"
|
||||
/>
|
||||
<div>{targetTypeMap.get(key)?.[0]}</div>
|
||||
</div>
|
||||
</Label>
|
||||
</div>
|
||||
))}
|
||||
</RadioGroup>
|
||||
<SelectTrigger>
|
||||
<SelectValue placeholder="请选择部署服务类型" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectGroup>
|
||||
<SelectLabel>部署服务类型</SelectLabel>
|
||||
{targetTypeKeys.map((key) => (
|
||||
<SelectItem key={key} value={key}>
|
||||
<div className="flex items-center space-x-2">
|
||||
<img
|
||||
className="w-6"
|
||||
src={targetTypeMap.get(key)?.[1]}
|
||||
/>
|
||||
<div>{targetTypeMap.get(key)?.[0]}</div>
|
||||
</div>
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectGroup>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</FormControl>
|
||||
|
||||
<FormMessage />
|
||||
|
Reference in New Issue
Block a user