mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-12 19:40:06 +08:00
feat: Improve the name of the professional version (#7807)
This commit is contained in:
parent
a7b034387f
commit
ec46518936
@ -178,6 +178,7 @@ export namespace Setting {
|
|||||||
licenseName: string;
|
licenseName: string;
|
||||||
assigneeName: string;
|
assigneeName: string;
|
||||||
productPro: string;
|
productPro: string;
|
||||||
|
versionConstraint: string;
|
||||||
trial: boolean;
|
trial: boolean;
|
||||||
offline: boolean;
|
offline: boolean;
|
||||||
status: string;
|
status: string;
|
||||||
|
@ -1709,6 +1709,9 @@ const message = {
|
|||||||
oss: 'Open Source Software',
|
oss: 'Open Source Software',
|
||||||
pro: 'Pro',
|
pro: 'Pro',
|
||||||
trial: 'Trial',
|
trial: 'Trial',
|
||||||
|
subscription: 'Subscription',
|
||||||
|
perpetual: 'Perpetual',
|
||||||
|
versionConstraint: '{0} Version Buyout',
|
||||||
office: 'Official',
|
office: 'Official',
|
||||||
trialInfo: 'Version',
|
trialInfo: 'Version',
|
||||||
authorizationId: 'Subscription authorization ID',
|
authorizationId: 'Subscription authorization ID',
|
||||||
|
@ -1681,7 +1681,10 @@ const message = {
|
|||||||
community: '無料',
|
community: '無料',
|
||||||
oss: '無料',
|
oss: '無料',
|
||||||
pro: '専門',
|
pro: '専門',
|
||||||
trial: 'トライアル',
|
trial: '体験',
|
||||||
|
subscription: 'サブスクリプション',
|
||||||
|
perpetual: '永久ライセンス',
|
||||||
|
versionConstraint: '{0} バージョン買い取り',
|
||||||
office: '正式',
|
office: '正式',
|
||||||
trialInfo: 'バージョン',
|
trialInfo: 'バージョン',
|
||||||
authorizationId: 'サブスクリプション承認ID',
|
authorizationId: 'サブスクリプション承認ID',
|
||||||
|
@ -1654,6 +1654,9 @@ const message = {
|
|||||||
oss: '오픈 소스 소프트웨어',
|
oss: '오픈 소스 소프트웨어',
|
||||||
pro: 'Pro',
|
pro: 'Pro',
|
||||||
trial: '체험판',
|
trial: '체험판',
|
||||||
|
subscription: '구독',
|
||||||
|
perpetual: '영구 라이선스',
|
||||||
|
versionConstraint: '{0} 버전 일시불 구매',
|
||||||
office: '공식',
|
office: '공식',
|
||||||
trialInfo: '버전',
|
trialInfo: '버전',
|
||||||
authorizationId: '구독 인증 ID',
|
authorizationId: '구독 인증 ID',
|
||||||
|
@ -1737,6 +1737,9 @@ const message = {
|
|||||||
oss: 'Perisian Sumber Terbuka',
|
oss: 'Perisian Sumber Terbuka',
|
||||||
pro: 'Pro',
|
pro: 'Pro',
|
||||||
trial: 'Percubaan',
|
trial: 'Percubaan',
|
||||||
|
subscription: 'Langganan',
|
||||||
|
perpetual: 'Lesen Perpetual',
|
||||||
|
versionConstraint: '{0} Pembelian versi',
|
||||||
office: 'Rasmi',
|
office: 'Rasmi',
|
||||||
trialInfo: 'Versi',
|
trialInfo: 'Versi',
|
||||||
authorizationId: 'ID Kebenaran Langganan',
|
authorizationId: 'ID Kebenaran Langganan',
|
||||||
|
@ -1722,6 +1722,9 @@ const message = {
|
|||||||
community: 'Gratuito',
|
community: 'Gratuito',
|
||||||
pro: 'Pro',
|
pro: 'Pro',
|
||||||
trial: 'Teste',
|
trial: 'Teste',
|
||||||
|
subscription: 'Assinatura',
|
||||||
|
perpetual: 'Licença Perpétua',
|
||||||
|
versionConstraint: '{0} Compra do versão',
|
||||||
office: 'Oficial',
|
office: 'Oficial',
|
||||||
trialInfo: 'Versão',
|
trialInfo: 'Versão',
|
||||||
authorizationId: 'ID de autorização de assinatura',
|
authorizationId: 'ID de autorização de assinatura',
|
||||||
|
@ -1720,7 +1720,10 @@ const message = {
|
|||||||
community: 'OSS',
|
community: 'OSS',
|
||||||
oss: 'Open Source Software',
|
oss: 'Open Source Software',
|
||||||
pro: 'Pro',
|
pro: 'Pro',
|
||||||
trial: 'Trial',
|
trial: 'Пробная версия',
|
||||||
|
subscription: 'Подписка',
|
||||||
|
perpetual: 'Пожизненная лицензия',
|
||||||
|
versionConstraint: '{0} Выкуп версии',
|
||||||
office: 'Official',
|
office: 'Official',
|
||||||
trialInfo: 'Версия',
|
trialInfo: 'Версия',
|
||||||
authorizationId: 'ID авторизации подписки',
|
authorizationId: 'ID авторизации подписки',
|
||||||
|
@ -1597,7 +1597,10 @@ const message = {
|
|||||||
community: '社區版',
|
community: '社區版',
|
||||||
oss: '社區版',
|
oss: '社區版',
|
||||||
pro: '專業版',
|
pro: '專業版',
|
||||||
trial: '試用版',
|
trial: '試用',
|
||||||
|
subscription: '訂閱',
|
||||||
|
perpetual: '永久授權',
|
||||||
|
versionConstraint: '{0} 版本買斷',
|
||||||
office: '正式版',
|
office: '正式版',
|
||||||
trialInfo: '版本',
|
trialInfo: '版本',
|
||||||
authorizationId: '訂閱授權 ID',
|
authorizationId: '訂閱授權 ID',
|
||||||
|
@ -1597,7 +1597,10 @@ const message = {
|
|||||||
community: '社区版',
|
community: '社区版',
|
||||||
oss: '社区版',
|
oss: '社区版',
|
||||||
pro: '专业版',
|
pro: '专业版',
|
||||||
trial: '试用版',
|
trial: '试用',
|
||||||
|
subscription: '订阅',
|
||||||
|
perpetual: '永久授权',
|
||||||
|
versionConstraint: '{0} 版本买断',
|
||||||
office: '正式版',
|
office: '正式版',
|
||||||
trialInfo: '版本',
|
trialInfo: '版本',
|
||||||
authorizationId: '订阅授权 ID',
|
authorizationId: '订阅授权 ID',
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
{{ license.productName || '-' }}
|
{{ license.productName || '-' }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :label="$t('license.trialInfo')">
|
<el-descriptions-item :label="$t('license.trialInfo')">
|
||||||
{{ license.trial ? $t('license.trial') : $t('license.office') }}
|
{{ loadVersion() }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :label="$t('license.expiresAt')">
|
<el-descriptions-item :label="$t('license.expiresAt')">
|
||||||
{{ license.expiresAt || '-' }}
|
{{ license.expiresAt || '-' }}
|
||||||
@ -134,6 +134,8 @@ const license = reactive({
|
|||||||
assigneeName: '',
|
assigneeName: '',
|
||||||
productName: '',
|
productName: '',
|
||||||
|
|
||||||
|
versionConstraint: '',
|
||||||
|
productPro: '',
|
||||||
status: '',
|
status: '',
|
||||||
message: '',
|
message: '',
|
||||||
});
|
});
|
||||||
@ -150,6 +152,19 @@ const loadInfo = () => {
|
|||||||
return license.status === 'Lost' ? i18n.global.t('license.lostHelper') : i18n.global.t('license.disableHelper');
|
return license.status === 'Lost' ? i18n.global.t('license.lostHelper') : i18n.global.t('license.disableHelper');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const loadVersion = () => {
|
||||||
|
if (license.trial) {
|
||||||
|
return i18n.global.t('license.trial');
|
||||||
|
}
|
||||||
|
if (license.productPro && license.productPro !== '0') {
|
||||||
|
return i18n.global.t('license.subscription');
|
||||||
|
}
|
||||||
|
if (license.versionConstraint) {
|
||||||
|
return i18n.global.t('license.versionConstraint', ['v' + license.versionConstraint.replace('.x', '')]);
|
||||||
|
}
|
||||||
|
return i18n.global.t('license.perpetual');
|
||||||
|
};
|
||||||
|
|
||||||
const onSync = async () => {
|
const onSync = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
await syncLicense()
|
await syncLicense()
|
||||||
@ -222,6 +237,8 @@ const search = async () => {
|
|||||||
license.assigneeName = res.data.assigneeName;
|
license.assigneeName = res.data.assigneeName;
|
||||||
license.trial = res.data.trial;
|
license.trial = res.data.trial;
|
||||||
license.offline = res.data.offline;
|
license.offline = res.data.offline;
|
||||||
|
license.productPro = res.data.productPro;
|
||||||
|
license.versionConstraint = res.data.versionConstraint;
|
||||||
if (res.data.productPro) {
|
if (res.data.productPro) {
|
||||||
license.productName = 'product-1panel-pro';
|
license.productName = 'product-1panel-pro';
|
||||||
license.expiresAt =
|
license.expiresAt =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user