Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Merge branch 'dev-frontend' of https://github.com/aaPanel/BillionMail into dev-frontend

albertae251c3b9d28
diff --cc core/frontend/package.json
index bc34c876,a06c86b7..0ee1b687
--- a/core/frontend/package.json
+++ b/core/frontend/package.json
@@@ -20,9 -20,10 +20,11 @@@
"axios": "^1.8.4",
"date-fns": "^4.1.0",
"echarts": "^5.6.0",
++ "markdown-it": "^14.1.0",
+ "github-markdown-css": "^5.8.1",
"highlight.js": "^11.11.1",
"lodash-es": "^4.17.21",
- "markdown-it": "^14.1.0",
+ "marked": "^16.0.0",
"monaco-editor": "^0.52.2",
"monaco-editor-nginx": "^2.0.2",
"pinia": "^3.0.1",
diff --cc core/frontend/src/router/modules/template.ts
index ccdad2dc,40b7e258..6d4e599f
--- a/core/frontend/src/router/modules/template.ts
+++ b/core/frontend/src/router/modules/template.ts
@@@ -1,24 -1,14 +1,26 @@@
-import type { RouteRecordRaw } from 'vue-router'
-import { isDev } from '@/utils'
-
+import type { RouteRecordRaw } from "vue-router";
+import { Layout } from '@/router/constant'
++import { isDev } from "@/utils";
export default {
- path: '/template',
- meta: {
- sort: 3,
- title: 'template',
- key: 'template',
- titleKey: 'layout.menu.template',
- hidden: !isDev,
- },
- component: () => import('@/views/template/index.vue'),
+ path: "/template",
+ component: Layout,
+ meta: {
+ sort: 3,
+ title: "template",
+ key: 'template',
+ titleKey: 'layout.menu.template',
++ hidden: !isDev
+ },
+ children: [
+ {
+ path: "/template",
+ name: "template",
+ component: () => import("@/views/template/index.vue")
+ },
+ {
+ path: "ai-template",
+ name: "ai-template",
+ component: () => import("@/views/template/pages/AITemplate/index.vue")
+ }
+ ]
- } as RouteRecordRaw
+ } as RouteRecordRaw
diff --cc core/frontend/src/views/domain/pages/editDomain/index.vue
index 76386b31,b9bb907c..073e20c7
--- a/core/frontend/src/views/domain/pages/editDomain/index.vue
+++ b/core/frontend/src/views/domain/pages/editDomain/index.vue
@@@ -1,26 -1,28 +1,24 @@@
<template>
- <div class="wrapper">
- <!-- Page tit -->
- <div class="page-tit">
- <div class="back-tool">
- <i class="i-ci:arrow-left-lg text-4"></i>
- <div class="back-btn">back</div>
- </div>
- <span class="tit-content">
- Domain / Edit domain
- </span>
- </div>
+ <div class="wrapper">
+ <!-- Page tit -->
+ <div class="page-tit">
+ <div class="back-tool">
+ <i class="i-ci:arrow-left-lg text-4"></i>
+ <div class="back-btn">back</div>
+ </div>
+ <span class="tit-content"> Domain / Edit domain </span>
+ </div>
- <!-- Content tabs -->
- <div class="content-tabs">
- <div
- v-for="(item, index) in menuList"
- :key="index"
- :class="['tab-item', { active: activeTab == item }]"
- @click="activeTab = item">
- <span>{{ item }}</span>
- </div>
- </div>
- <div class="dynamic-content">
- <component :is="contentMap.get(activeTab)" />
- </div>
- </div>
+ <!-- Content tabs -->
+ <div class="content-tabs">
+ <div v-for="(item, index) in menuList" :key="index" :class="['tab-item', { active: activeTab == item }]" @click="activeTab = item">
+ <span>{{ item }}</span>
+ </div>
+ </div>
+ <div class="dynamic-content">
+ <component :is="contentMap.get(activeTab)" />
+ </div>
+ </div>
</template>
<script setup lang="ts">