mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-29 16:05:34 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b4b8042ce |
+9
-12
@@ -156,18 +156,15 @@ var WebUrlMap = map[string]struct{}{
|
|||||||
"/toolbox/fail2ban": {},
|
"/toolbox/fail2ban": {},
|
||||||
"/toolbox/clean": {},
|
"/toolbox/clean": {},
|
||||||
|
|
||||||
"/websites": {},
|
"/websites": {},
|
||||||
"/websites/templates": {},
|
"/websites/templates": {},
|
||||||
"/websites/ssl": {},
|
"/websites/ssl": {},
|
||||||
"/websites/ssl/ca": {},
|
"/websites/runtimes/php": {},
|
||||||
"/websites/ssl/acme-account": {},
|
"/websites/runtimes/node": {},
|
||||||
"/websites/ssl/dns-account": {},
|
"/websites/runtimes/java": {},
|
||||||
"/websites/runtimes/php": {},
|
"/websites/runtimes/go": {},
|
||||||
"/websites/runtimes/node": {},
|
"/websites/runtimes/python": {},
|
||||||
"/websites/runtimes/java": {},
|
"/websites/runtimes/dotnet": {},
|
||||||
"/websites/runtimes/go": {},
|
|
||||||
"/websites/runtimes/python": {},
|
|
||||||
"/websites/runtimes/dotnet": {},
|
|
||||||
|
|
||||||
"/login": {},
|
"/login": {},
|
||||||
|
|
||||||
|
|||||||
@@ -11,14 +11,14 @@
|
|||||||
<el-col :span="22">
|
<el-col :span="22">
|
||||||
<el-alert class="mt-2" :show-icon="true" type="warning" :closable="false">
|
<el-alert class="mt-2" :show-icon="true" type="warning" :closable="false">
|
||||||
<div v-for="(item, index) in form.msgs" :key="index">
|
<div v-for="(item, index) in form.msgs" :key="index">
|
||||||
<div style="line-height: 20px; word-wrap: break-word">
|
<div class="dialog-object-name" style="line-height: 20px">
|
||||||
<span>{{ item }}</span>
|
<span>{{ item }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-alert>
|
</el-alert>
|
||||||
<slot name="content"></slot>
|
<slot name="content"></slot>
|
||||||
<ul v-for="(item, index) in form.names" :key="index">
|
<ul v-for="(item, index) in form.names" :key="index">
|
||||||
<div style="word-wrap: break-word">
|
<div class="dialog-object-name">
|
||||||
<li>{{ item }}</li>
|
<li>{{ item }}</li>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
class="mr-2 flex-shrink-0"
|
class="mr-2 flex-shrink-0"
|
||||||
></svg-icon>
|
></svg-icon>
|
||||||
<el-tooltip :content="item.path" placement="top">
|
<el-tooltip :content="item.path" placement="top">
|
||||||
<span class="truncate text-sm">{{ item.name }}</span>
|
<span class="dialog-object-name text-sm">{{ item.name }}</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -358,9 +358,8 @@ html {
|
|||||||
background: var(--panel-main-bg-color-10);
|
background: var(--panel-main-bg-color-10);
|
||||||
pre {
|
pre {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 350px;
|
white-space: pre-wrap;
|
||||||
overflow: hidden;
|
overflow-wrap: anywhere;
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -286,3 +286,27 @@ html {
|
|||||||
border: 1px solid var(--panel-main-bg-color-10);
|
border: 1px solid var(--panel-main-bg-color-10);
|
||||||
background-color: var(--panel-main-bg-color-10) !important;
|
background-color: var(--panel-main-bg-color-10) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow long object names in dialog titles and explanatory text to wrap.
|
||||||
|
.el-dialog__header,
|
||||||
|
.el-dialog__body,
|
||||||
|
.el-message-box__title,
|
||||||
|
.el-message-box__message {
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__title,
|
||||||
|
.el-message-box__title {
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-message-box__message,
|
||||||
|
.el-dialog .el-alert__content {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-object-name {
|
||||||
|
min-width: 0;
|
||||||
|
white-space: normal;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<template #header>
|
<template #header>
|
||||||
<div ref="dialogHeader" class="flex items-center justify-between code-header px-4 rounded-t">
|
<div ref="dialogHeader" class="flex items-center justify-between code-header px-4 rounded-t">
|
||||||
<div class="code-title">
|
<div class="code-title">
|
||||||
<span class="truncate-text">{{ $t('home.dir') + ' - ' + currentEditorPath }}</span>
|
<span class="dialog-object-name">{{ $t('home.dir') + ' - ' + currentEditorPath }}</span>
|
||||||
<el-tooltip v-if="currentEditorPath" :content="$t('file.copyDir')" placement="top">
|
<el-tooltip v-if="currentEditorPath" :content="$t('file.copyDir')" placement="top">
|
||||||
<CopyButton class="code-title-copy" :content="currentEditorPath" />
|
<CopyButton class="code-title-copy" :content="currentEditorPath" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
@@ -2175,13 +2175,6 @@ defineExpose({ acceptParams });
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.truncate-text {
|
|
||||||
display: block;
|
|
||||||
min-width: 0;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
.code-title {
|
.code-title {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<DialogPro v-model="open" :title="$t('commons.button.delete')" size="small">
|
<DialogPro v-model="open" :title="$t('commons.button.delete')" size="w-60" class="file-delete-dialog">
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="22" :offset="1">
|
<el-col :span="22" :offset="1">
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
:iconName="getIconName(row.extension)"
|
:iconName="getIconName(row.extension)"
|
||||||
></svg-icon>
|
></svg-icon>
|
||||||
</div>
|
</div>
|
||||||
<span class="sle">{{ row.name }}</span>
|
<span class="dialog-object-name">{{ row.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -150,6 +150,11 @@ defineExpose({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
:global(.el-dialog.file-delete-dialog:not(.is-fullscreen)) {
|
||||||
|
width: 60vw !important;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.resource {
|
.resource {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<template v-for="(item, index) in imageFiles" :key="index">
|
<template v-for="(item, index) in imageFiles" :key="index">
|
||||||
<el-tooltip :content="item.path" placement="right">
|
<el-tooltip :content="item.path" placement="right">
|
||||||
<div
|
<div
|
||||||
class="text-sm truncate mb-1 rounded p-1 left-item"
|
class="text-sm dialog-object-name mb-1 rounded p-1 left-item"
|
||||||
@click="changeImg(item.path)"
|
@click="changeImg(item.path)"
|
||||||
:class="item.path === filePath ? 'left-item-default' : ''"
|
:class="item.path === filePath ? 'left-item-default' : ''"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<div class="flex-1 min-w-0">
|
<div class="flex-1 min-w-0">
|
||||||
<el-tooltip :content="value.name" placement="top">
|
<el-tooltip :content="value.name" placement="top">
|
||||||
<div class="truncate text-gray-700">{{ value.name }}</div>
|
<div class="dialog-object-name text-gray-700">{{ value.name }}</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<div class="text-gray-500">
|
<div class="text-gray-500">
|
||||||
{{ getStatusText(value) }}
|
{{ getStatusText(value) }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<DialogPro v-model="open" :title="$t('commons.button.delete')" size="small">
|
<DialogPro v-model="open" :title="$t('commons.button.delete')" size="w-60" class="recycle-file-dialog">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="20" :offset="2">
|
<el-col :span="20" :offset="2">
|
||||||
<el-alert :title="$t('file.deleteRecycleHelper')" show-icon type="error" :closable="false"></el-alert>
|
<el-alert :title="$t('file.deleteRecycleHelper')" show-icon type="error" :closable="false"></el-alert>
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
<svg-icon v-if="row.isDir" className="table-icon mr-1 " iconName="p-file-folder"></svg-icon>
|
<svg-icon v-if="row.isDir" className="table-icon mr-1 " iconName="p-file-folder"></svg-icon>
|
||||||
<svg-icon v-else className="table-icon mr-1" :iconName="getIconName(row.extension)"></svg-icon>
|
<svg-icon v-else className="table-icon mr-1" :iconName="getIconName(row.extension)"></svg-icon>
|
||||||
</div>
|
</div>
|
||||||
<span class="sle">{{ row.name }}</span>
|
<span class="dialog-object-name">{{ row.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -72,6 +72,11 @@ defineExpose({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
:global(.el-dialog.recycle-file-dialog:not(.is-fullscreen)) {
|
||||||
|
width: 60vw !important;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.resource {
|
.resource {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<DialogPro v-model="open" :title="$t('file.reduce')" size="small">
|
<DialogPro v-model="open" :title="$t('file.reduce')" size="w-60" class="recycle-file-dialog">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="20" :offset="2">
|
<el-col :span="20" :offset="2">
|
||||||
<el-alert :title="$t('file.confirmReduce')" show-icon type="error" :closable="false"></el-alert>
|
<el-alert :title="$t('file.confirmReduce')" show-icon type="error" :closable="false"></el-alert>
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
<svg-icon v-if="row.isDir" className="table-icon mr-1 " iconName="p-file-folder"></svg-icon>
|
<svg-icon v-if="row.isDir" className="table-icon mr-1 " iconName="p-file-folder"></svg-icon>
|
||||||
<svg-icon v-else className="table-icon mr-1" :iconName="getIconName(row.extension)"></svg-icon>
|
<svg-icon v-else className="table-icon mr-1" :iconName="getIconName(row.extension)"></svg-icon>
|
||||||
</div>
|
</div>
|
||||||
<span class="sle">{{ row.name }}</span>
|
<span class="dialog-object-name">{{ row.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -71,3 +71,10 @@ defineExpose({
|
|||||||
acceptParams,
|
acceptParams,
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
:global(.el-dialog.recycle-file-dialog:not(.is-fullscreen)) {
|
||||||
|
width: 60vw !important;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user