Skip to content

Commit

Permalink
update enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Oct 30, 2023
1 parent 4845912 commit b68e090
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 9 deletions.
4 changes: 4 additions & 0 deletions app/src/assets/subscription.less
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@

&.enterprise {
border-color: hsl(var(--accent));

.desc {
margin-top: 12px;
}
}

.title {
Expand Down
43 changes: 34 additions & 9 deletions app/src/dialogs/Subscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ import { useToast } from "@/components/ui/use-toast.ts";
import React, { useEffect } from "react";
import "@/assets/subscription.less";
import {
BookText,
BookText, Building2,
Calendar,
Compass,
Compass, DatabaseZap, FolderGit2,
Globe,
Image,
ImagePlus,
LifeBuoy,
MessageSquare,
MessagesSquare,
Plus,
ServerCrash,
Webhook,
Plus, ServerCog,
ServerCrash, ShieldCheck,
Webhook, Zap,
} from "lucide-react";
import { Button } from "@/components/ui/button.tsx";
import {
Expand Down Expand Up @@ -263,7 +263,7 @@ function Subscription() {
</div>
</div>
<Upgrade>
<Button className={`action`} variant={`default`}>
<Button className={`action`} variant={enterprise ? `outline` : `default`} disabled={enterprise}>
{
subscription ? (enterprise ? t("sub.cannot-select") : t("sub.renew")) :
t("sub.upgrade")
Expand All @@ -275,10 +275,35 @@ function Subscription() {
<div className={`title`}>{t("sub.enterprise")}</div>
<div className={`price`}>{t("sub.contact-sale")}</div>
<div className={`desc`}>

<div>
<ShieldCheck className={`h-4 w-4 mr-1`} />
{t("sub.enterprise-security")}
</div>
<div>
<FolderGit2 className={`h-4 w-4 mr-1`} />
{t("sub.enterprise-data")}
</div>
<div>
<Building2 className={`h-4 w-4 mr-1`} />
{t("sub.enterprise-deploy")}
</div>
<div>
<Zap className={`h-4 w-4 mr-1`} />
{t("sub.enterprise-speed")}
</div>
<div>
<DatabaseZap className={`h-4 w-4 mr-1`} />
{t("sub.enterprise-service")}
</div>
<div>
<ServerCog className={`h-4 w-4 mr-1`} />
{t("sub.enterprise-sla")}
</div>
</div>
<Button className={`action`} variant={`outline`}>
{t('sub.contact-sale')}
<Button className={`action`} variant={`outline`} onClick={() => {
window.open("http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=1oKfIbNVXmMNMVzW1NiFSTKDcT1qIEq5&authKey=uslxslIBZtLImf4BSxjDqfx4hiJA52YV7PFM38W%2BOArr%2BhE0jwVdQCRYs0%2FXKX7W&noverify=0&group_code=565902327", "_blank");
}}>
{enterprise ? t('sub.current') : t('sub.contact-sale')}
</Button>
</div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions app/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ const resources = {
"pro-service": "Priority Service Support",
"pro-thread": "Concurrency Increase",
enterprise: "Enterprise",
"enterprise-service": "Priority Service Support",
"enterprise-sla": "SLA Guarantee",
"enterprise-speed": "TPM Speed Increase",
"enterprise-security": "SOC-2 Standard Data Security Guarantee",
"enterprise-data": "Offsite Data Disaster Recovery Backup",
"enterprise-deploy": "Support Private Cloud Deployment",
"contact-sale": "Contact Sales",
current: "Current Plan",
upgrade: "Upgrade",
Expand Down Expand Up @@ -336,6 +342,12 @@ const resources = {
"pro-service": "优先服务支持",
"pro-thread": "并发数提升",
enterprise: "企业版",
"enterprise-service": "优先技术支持",
"enterprise-sla": "SLA 保障",
"enterprise-speed": "TPM 速率提升",
"enterprise-security": "SOC-2 标准数据安全保障",
"enterprise-data": "异地数据容灾备份",
"enterprise-deploy": "支持私有化部署",
"contact-sale": "联系销售",
current: "当前计划",
upgrade: "升级",
Expand Down Expand Up @@ -554,6 +566,12 @@ const resources = {
"pro-service": "Приоритетная служба поддержки",
"pro-thread": "Увеличение параллелизма",
enterprise: "Корпоративный",
"enterprise-service": "Приоритетная служба поддержки",
"enterprise-sla": "Гарантия SLA",
"enterprise-speed": "Увеличение скорости TPM",
"enterprise-security": "Гарантия безопасности данных SOC-2",
"enterprise-data": "Резервное копирование данных в другом месте",
"enterprise-deploy": "Поддержка частной облачной инфраструктуры",
"contact-sale": "Связаться с отделом продаж",
current: "Текущая подписка",
upgrade: "Обновить",
Expand Down

0 comments on commit b68e090

Please sign in to comment.