重命名项目并补充插件与安全整改文档

This commit is contained in:
xuans committed 2026-08-24 15:27:19 +08:00
1 parent a6049bf052
commit e91a64136b
131 files changed
+1306 -771

No files matched your search

+2
View File
@@ -26,3 +26,5 @@ coverage
*.njsproj
*.sln
*.sw?
auto-imports.d.ts
components.d.ts
+2 -2
View File
@@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/smail-logo.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PMail</title>
<title>Smail</title>
</head>
<body>
<div id="app"></div>
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "fe",
"name": "smail-frontend",
"version": "0.0.0",
"private": true,
"scripts": {
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

-1
View File
@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>

Before

Width:  |  Height:  |  Size: 276 B

+10 -9
View File
@@ -2,8 +2,8 @@
<div class="sidebar-main">
<div class="brand">
<router-link to="/" class="brand-link">
<span class="brand-dot"></span>
<span class="brand-text">PMail</span>
<img src="/smail-logo.png" alt="Smail" class="brand-logo" />
<span class="brand-text">Smail</span>
</router-link>
</div>
<div class="search-box">
@@ -113,13 +113,14 @@ const openSettings = function () {
gap: 8px;
}
.brand-dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--pm-primary-color);
box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.14);
animation: pm-soft-pulse 2.6s ease-in-out infinite;
/* 品牌 logo 图标(黑底圆角,contain 使纸飞机居中显示) */
.brand-logo {
width: 28px;
height: 28px;
border-radius: 8px;
object-fit: contain;
background: #000;
flex-shrink: 0;
}
.brand-text {
+15 -1
View File
@@ -6,7 +6,8 @@
</div>
<div class="mobile-logo">
<router-link to="/">
<h1>PMail</h1>
<img src="/smail-logo.png" alt="Smail" class="mobile-logo-img" />
<h1>Smail</h1>
</router-link>
</div>
</div>
@@ -112,6 +113,19 @@ onUnmounted(() => {
.mobile-logo a {
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
}
/* 移动端标题栏 logo 图标 */
.mobile-logo-img {
width: 26px;
height: 26px;
border-radius: 7px;
object-fit: contain;
background: #000;
flex-shrink: 0;
}
.settings-btn {
+8 -8
View File
@@ -55,10 +55,10 @@ let lang = {
"setOther": "Other",
"welcome": "Welcome",
"next": "Next",
"tks_pmail": "Thanks for using Pmail",
"tks_smail": "Thanks for using Smail",
"guid_desc": "Next, you will be guided to perform initial configuration. If you have already configured, please use your configuration file to overwrite the config folder of the running directory. If you have not configured it, please follow this guide.",
"select_db": "select database",
"db_desc": "PMail currently supports MySQL and SQLite3 databases, you can choose according to your needs.",
"db_desc": "Smail currently supports MySQL and SQLite3 databases, you can choose according to your needs.",
"type": "Type",
"db_select_ph": "please select your database",
"mysql_dsn": "MySQL DSN",
@@ -76,7 +76,7 @@ let lang = {
"ssl_challenge_type": "Challenge Type",
"ssl_auto_http": "Http Request",
"ssl_auto_dns": "DNS Records",
"challenge_typ_desc": "If PMail uses port 80 directly, it is recommended that you use the HTTP challenge method.",
"challenge_typ_desc": "If Smail uses port 80 directly, it is recommended that you use the HTTP challenge method.",
"oomain_service_provider": "Domain Name Service Provider",
"ssl_manuallyf": "Manually configure an SSL certificate",
"ssl_key_path": "ssl key file path",
@@ -109,7 +109,7 @@ let lang = {
"move": "Move to group",
"del_rule_confirm": "Are you sure to delete this?",
"rule_params": "Executed params",
"autoSSLWarn": "PMail is not currently running on port 80. If you want PMail to manage SSL certificates automatically, please forward the /.well-known/* route to PMail. See https://github.com/Jinnrry/PMail/issues/94 for details.",
"autoSSLWarn": "Smail is not currently running on port 80. If you want Smail to manage SSL certificates automatically, please forward the /.well-known/* route to Smail. See https://git.pcux.cn/xuans/Smail/issues/94 for details.",
"err_db_dsn_empty": "Database path cannot be empty!",
"modify_pwd_desc": "Update your account password to keep it secure.",
"enter_new_pwd": "Enter new password",
@@ -189,10 +189,10 @@ const zhCN = {
"setOther": "其他设置",
"welcome": "欢迎",
"next": "下一步",
"tks_pmail": "感谢使用PMail",
"tks_smail": "感谢使用Smail",
"guid_desc": "接下来将会指引你进行初始化配置,如果你已有配置,请使用你的配置文件覆盖运行目录的config文件夹。如果你没有配置过,请按照该指引操作。",
"select_db": "数据库选择",
"db_desc": "PMail目前支持MySQL和SQLite3两种数据库,你可根据需要选择。",
"db_desc": "Smail目前支持MySQL和SQLite3两种数据库,你可根据需要选择。",
"type": "类型",
"db_select_ph": "请选择你的数据库",
"mysql_dsn": "MySQL DSN",
@@ -208,7 +208,7 @@ const zhCN = {
"ssl_auto_dns": "DNS记录",
"ssl_challenge_type": "验证方式",
"ssl_manuallyf": "手动配置SSL证书",
"challenge_typ_desc": "如果PMail直接使用80端口,建议使用HTTP验证方式。",
"challenge_typ_desc": "如果Smail直接使用80端口,建议使用HTTP验证方式。",
"wait_desc": "请稍等",
"dns_challenge_wait": "DNS传播和缓存刷新时间较长,此处可能等待10-30分钟",
"ssl_key_path": "ssl key文件位置",
@@ -241,7 +241,7 @@ const zhCN = {
"move": "移动分组",
"del_rule_confirm": "确定要删除吗?",
"rule_params": "执行参数",
"autoSSLWarn": "PMail当前未使用80端口启动,如果想要PMail自动管理SSL证书,请将/.well-known/*路由转发到PMail。 详见https://github.com/Jinnrry/PMail/issues/94",
"autoSSLWarn": "Smail当前未使用80端口启动,如果想要Smail自动管理SSL证书,请将/.well-known/*路由转发到Smail。 详见https://git.pcux.cn/xuans/Smail/issues/94",
"err_db_dsn_empty": "数据库路径不能为空!",
"modify_pwd_desc": "修改您的账户密码以确保安全。",
"enter_new_pwd": "输入新密码",
+20 -1
View File
@@ -3,7 +3,8 @@
<div class="login-container">
<div class="login-left">
<div class="brand-info">
<h1>PMail</h1>
<img src="/smail-logo.png" alt="Smail" class="brand-logo-img" />
<h1>Smail</h1>
</div>
</div>
<div class="login-right">
@@ -121,6 +122,18 @@ const onSubmit = () => {
justify-content: center;
}
/* 登录页品牌 logo 图标 */
.brand-logo-img {
width: 84px;
height: 84px;
border-radius: 20px;
object-fit: contain;
background: #000;
margin-bottom: 24px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
animation: pm-rise-in 0.5s var(--pm-ease-out);
}
.brand-info h1 {
font-size: 56px;
font-weight: 600;
@@ -210,6 +223,12 @@ const onSubmit = () => {
align-items: center;
text-align: center;
}
.brand-logo-img {
width: 64px;
height: 64px;
border-radius: 16px;
margin-bottom: 18px;
}
.brand-info h1 {
font-size: 38px;
}
+7 -7
View File
@@ -12,7 +12,7 @@
<div v-if="active === 0" class="ctn">
<div class="desc">
<h2>{{ lang.tks_pmail }}</h2>
<h2>{{ lang.tks_smail }}</h2>
<div style="margin-top: 10px;">{{ lang.guid_desc }}</div>
</div>
</div>
@@ -35,16 +35,16 @@
<el-form-item :label="lang.mysql_dsn" v-if="dbSettings.type === 'mysql'">
<el-input :rows="2" type="textarea" v-model="dbSettings.dsn"
placeholder="root:12345@tcp(127.0.0.1:3306)/pmail?parseTime=True&loc=Local"></el-input>
placeholder="root:12345@tcp(127.0.0.1:3306)/smail?parseTime=True&loc=Local"></el-input>
</el-form-item>
<el-form-item :label="lang.pg_dsn" v-if="dbSettings.type === 'postgres'">
<el-input :rows="2" type="textarea" v-model="dbSettings.dsn"
placeholder="postgres://postgres:12345@127.0.0.1:5432/pmail?sslmode=disable"></el-input>
placeholder="postgres://postgres:12345@127.0.0.1:5432/smail?sslmode=disable"></el-input>
</el-form-item>
<el-form-item :label="lang.sqlite_db_path" v-if="dbSettings.type === 'sqlite'">
<el-input v-model="dbSettings.dsn" placeholder="./config/pmail.db"></el-input>
<el-input v-model="dbSettings.dsn" placeholder="./config/smail.db"></el-input>
</el-form-item>
</el-form>
</div>
@@ -93,7 +93,7 @@
</el-form-item>
<el-form-item :label="lang.web_domain">
<el-input placeholder="pmail.domain.com" v-model="domainSettings.web_domain"></el-input>
<el-input placeholder="smail.domain.com" v-model="domainSettings.web_domain"></el-input>
</el-form-item>
<el-form-item :label="lang.multi_domain_setting">
@@ -243,7 +243,7 @@ const adminSettings = reactive({
const dbSettings = reactive({
"type": "sqlite",
"dsn": "./config/pmail.db",
"dsn": "./config/smail.db",
"lable": ""
})
@@ -343,7 +343,7 @@ const getDomainConfig = () => {
const setDbConfig = () => {
// 切换数据库类型为sqlite时,数据库路径为空,则使用默认路径
if (dbSettings.type === "sqlite" && !dbSettings.dsn) dbSettings.dsn = "./config/pmail.db";
if (dbSettings.type === "sqlite" && !dbSettings.dsn) dbSettings.dsn = "./config/smail.db";
else if (!dbSettings.dsn) ElMessage({
title: "Error",
message: lang.err_db_dsn_empty,