mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-11 07:55:59 +08:00
feat: Add some prompts. (#8800)
This commit is contained in:
parent
61ef754a1d
commit
9cf3db8d81
10 changed files with 32 additions and 0 deletions
|
@ -3387,6 +3387,7 @@ const message = {
|
||||||
nodes: 'Nodes',
|
nodes: 'Nodes',
|
||||||
selectNode: 'Select Node',
|
selectNode: 'Select Node',
|
||||||
selectNodeError: 'Please select a node',
|
selectNodeError: 'Please select a node',
|
||||||
|
licenseHelper: 'The Pro version supports the custom application repository feature',
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
isAlert: 'Alert',
|
isAlert: 'Alert',
|
||||||
|
|
|
@ -3243,6 +3243,7 @@ const message = {
|
||||||
nodes: 'ノードを選択',
|
nodes: 'ノードを選択',
|
||||||
selectNode: 'ノードを選択',
|
selectNode: 'ノードを選択',
|
||||||
selectNodeError: 'ノードを選択してください',
|
selectNodeError: 'ノードを選択してください',
|
||||||
|
licenseHelper: 'プロバージョンはカスタムアプリケーションリポジトリ機能をサポートしています',
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
isAlert: 'アラート',
|
isAlert: 'アラート',
|
||||||
|
|
|
@ -3188,6 +3188,7 @@ const message = {
|
||||||
nodes: '노드 선택',
|
nodes: '노드 선택',
|
||||||
selectNode: '노드 선택',
|
selectNode: '노드 선택',
|
||||||
selectNodeError: '노드를 선택하세요',
|
selectNodeError: '노드를 선택하세요',
|
||||||
|
licenseHelper: '프로 버전은 사용자 정의 애플리케이션 저장소 기능을 지원합니다',
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
isAlert: '알림',
|
isAlert: '알림',
|
||||||
|
|
|
@ -3316,6 +3316,7 @@ const message = {
|
||||||
nodes: 'Pilih Node',
|
nodes: 'Pilih Node',
|
||||||
selectNode: 'Pilih Node',
|
selectNode: 'Pilih Node',
|
||||||
selectNodeError: 'Sila pilih node',
|
selectNodeError: 'Sila pilih node',
|
||||||
|
licenseHelper: 'Versi Pro menyokong fungsi gudang aplikasi tersuai',
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
isAlert: 'Amaran',
|
isAlert: 'Amaran',
|
||||||
|
|
|
@ -3321,6 +3321,7 @@ const message = {
|
||||||
nodes: 'Selecionar Nós',
|
nodes: 'Selecionar Nós',
|
||||||
selectNode: 'Selecionar Node',
|
selectNode: 'Selecionar Node',
|
||||||
selectNodeError: 'Por favor, selecione um nó',
|
selectNodeError: 'Por favor, selecione um nó',
|
||||||
|
licenseHelper: 'A versão Pro suporta o recurso de repositório de aplicativos personalizados',
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
isAlert: 'Alerta',
|
isAlert: 'Alerta',
|
||||||
|
|
|
@ -3308,6 +3308,7 @@ const message = {
|
||||||
nodes: 'Выбрать узлы',
|
nodes: 'Выбрать узлы',
|
||||||
selectNode: 'Выбрать узел',
|
selectNode: 'Выбрать узел',
|
||||||
selectNodeError: 'Пожалуйста, выберите узел',
|
selectNodeError: 'Пожалуйста, выберите узел',
|
||||||
|
licenseHelper: 'Профессиональная версия поддерживает функцию пользовательского репозитория приложений',
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
isAlert: 'Оповещение',
|
isAlert: 'Оповещение',
|
||||||
|
|
|
@ -3139,6 +3139,7 @@ const message = {
|
||||||
nodes: '節點',
|
nodes: '節點',
|
||||||
selectNode: '選擇節點',
|
selectNode: '選擇節點',
|
||||||
selectNodeError: '請選擇節點',
|
selectNodeError: '請選擇節點',
|
||||||
|
licenseHelper: '專業版支持自定義應用倉庫功能',
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
isAlert: '是否告警',
|
isAlert: '是否告警',
|
||||||
|
|
|
@ -3120,6 +3120,7 @@ const message = {
|
||||||
nodes: '节点',
|
nodes: '节点',
|
||||||
selectNode: '选择节点',
|
selectNode: '选择节点',
|
||||||
selectNodeError: '请选择节点',
|
selectNodeError: '请选择节点',
|
||||||
|
licenseHelper: '专业版支持自定义应用仓库功能',
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
isAlert: '是否告警',
|
isAlert: '是否告警',
|
||||||
|
|
|
@ -40,11 +40,18 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<CustomSetting v-if="globalStore.isProductPro" />
|
<CustomSetting v-if="globalStore.isProductPro" />
|
||||||
|
<span class="input-help logText" v-else>
|
||||||
|
{{ $t('xpack.customApp.licenseHelper') }}
|
||||||
|
<el-link class="link" @click="toUpload" type="primary">
|
||||||
|
{{ $t('license.levelUpPro') }}
|
||||||
|
</el-link>
|
||||||
|
</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
</LayoutContent>
|
</LayoutContent>
|
||||||
|
<LicenseImport ref="licenseRef" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
@ -76,6 +83,7 @@ const loading = ref(false);
|
||||||
const configForm = ref();
|
const configForm = ref();
|
||||||
const useCustomApp = ref(false);
|
const useCustomApp = ref(false);
|
||||||
const isInitializing = ref(true);
|
const isInitializing = ref(true);
|
||||||
|
const licenseRef = ref();
|
||||||
|
|
||||||
const search = async () => {
|
const search = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
@ -94,6 +102,10 @@ const search = async () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const toUpload = () => {
|
||||||
|
licenseRef.value.acceptParams();
|
||||||
|
};
|
||||||
|
|
||||||
const getNodeConfig = async () => {
|
const getNodeConfig = async () => {
|
||||||
if (globalStore.isMasterProductPro) {
|
if (globalStore.isMasterProductPro) {
|
||||||
return;
|
return;
|
||||||
|
@ -128,3 +140,14 @@ onMounted(() => {
|
||||||
getNodeConfig();
|
getNodeConfig();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="css" scoped>
|
||||||
|
.logText {
|
||||||
|
line-height: 22px;
|
||||||
|
font-size: 12px;
|
||||||
|
.link {
|
||||||
|
font-size: 12px !important;
|
||||||
|
margin-top: -3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<li>{{ $t('setting.proxyHelper5') }}</li>
|
<li>{{ $t('setting.proxyHelper5') }}</li>
|
||||||
<li>{{ $t('setting.proxyHelper2') }}</li>
|
<li>{{ $t('setting.proxyHelper2') }}</li>
|
||||||
<li>{{ $t('setting.proxyHelper4') }}</li>
|
<li>{{ $t('setting.proxyHelper4') }}</li>
|
||||||
|
<li>{{ $t('setting.proxyHelper6') }}</li>
|
||||||
<li>{{ $t('setting.proxyHelper3') }}</li>
|
<li>{{ $t('setting.proxyHelper3') }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue