@@ -895,6 +900,32 @@ onMounted(() => {
align-items: center;
}
+.placeholder-container {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 400px;
+}
+
+.placeholder-content {
+ text-align: center;
+ max-width: 500px;
+}
+
+.placeholder-content h2 {
+ font-size: 24px;
+ font-weight: 600;
+ color: var(--ant-color-text);
+ margin-bottom: 16px;
+}
+
+.placeholder-content p {
+ font-size: 16px;
+ color: var(--ant-color-text-secondary);
+ margin-bottom: 24px;
+ line-height: 1.5;
+}
+
.empty-content-fancy h2 {
font-size: 26px;
font-weight: 700;
diff --git a/frontend/src/views/Queue.vue b/frontend/src/views/Queue.vue
index d8dd59e..46c7b52 100644
--- a/frontend/src/views/Queue.vue
+++ b/frontend/src/views/Queue.vue
@@ -25,21 +25,23 @@
-
-
-
-
-
你还没有创建过队列
-
点击此处来新建队列
+
+
+
+
+
+
当前没有队列
+
您还没有创建任何调度队列,点击下方按钮来创建您的第一个队列
+
+
+
+
+ 新建队列
+
+
@@ -678,6 +680,32 @@ onMounted(async () => {
align-items: center;
}
+.placeholder-container {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 400px;
+}
+
+.placeholder-content {
+ text-align: center;
+ max-width: 500px;
+}
+
+.placeholder-content h2 {
+ font-size: 24px;
+ font-weight: 600;
+ color: var(--ant-color-text);
+ margin-bottom: 16px;
+}
+
+.placeholder-content p {
+ font-size: 16px;
+ color: var(--ant-color-text-secondary);
+ margin-bottom: 24px;
+ line-height: 1.5;
+}
+
.float-button {
width: 60px;
height: 60px;
diff --git a/frontend/src/views/Scripts.vue b/frontend/src/views/Scripts.vue
index aae4883..53f5a02 100644
--- a/frontend/src/views/Scripts.vue
+++ b/frontend/src/views/Scripts.vue
@@ -19,6 +19,19 @@
+
+
+
+
当前没有脚本
+
您还没有创建任何脚本,点击下方的“新建脚本”按钮来创建您的第一个脚本。
+
+
+
+
+ 新建脚本
+
+
+
{
// 记录连接
activeConnections.value.set(script.id, websocketId)
message.success(`已开始配置 ${script.name}`)
-
+
// 可选:设置自动断开连接的定时器(比如30分钟后)
setTimeout(() => {
if (activeConnections.value.has(script.id)) {
@@ -504,4 +517,29 @@ const handleToggleUserStatus = async (user: User) => {
font-size: 16px;
}
}
+.placeholder-container {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 400px;
+}
+
+.placeholder-content {
+ text-align: center;
+ max-width: 500px;
+}
+
+.placeholder-content h2 {
+ font-size: 24px;
+ font-weight: 600;
+ color: var(--ant-color-text);
+ margin-bottom: 16px;
+}
+
+.placeholder-content p {
+ font-size: 16px;
+ color: var(--ant-color-text-secondary);
+ margin-bottom: 24px;
+ line-height: 1.5;
+}