mirror of
https://github.com/XShengTech/MEGREZ.git
synced 2026-05-03 13:02:38 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 42de9caf52 | |||
| 5780f84714 | |||
| de8c601be9 | |||
| e283a626a1 | |||
| 37ba1baf71 | |||
| 81b52e80b5 | |||
| 13bd350274 |
@@ -46,7 +46,7 @@
|
||||
> [!WARNING]
|
||||
> 部署仓库: [XShengTech/MEGREZ-Deploy](https://github.com/XShengTech/MEGREZ-Deploy)
|
||||
>
|
||||
> 查看文档 [**>>> 🚧 正在施工中 <<<**]()
|
||||
> 查看文档 [**>>> MEGREZ 文档 <<<**](http://docs.megrez.xsheng-ai.com/)
|
||||
|
||||
|
||||
## 📌 效果展示
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
| VSCode 网页版 | Jupyter Notebook | Grafana 资源监控 |
|
||||
| ---------------------------------------------------- | ----------------------------------------------- | -------------------------------- |
|
||||
|  |  |  |
|
||||
|  |  |  |
|
||||
|
||||
### 系统管理
|
||||
|
||||
|
||||
@@ -56,15 +56,9 @@ const model = ref([
|
||||
{
|
||||
label: '使用文档',
|
||||
icon: 'pi pi-fw pi-book text-amber-500',
|
||||
url: '#',
|
||||
url: 'http://docs.megrez.xsheng-ai.com/guide/usage/',
|
||||
target: '_blank'
|
||||
},
|
||||
// {
|
||||
// label: '开源信息',
|
||||
// icon: 'pi pi-fw pi-cog',
|
||||
// url: 'https://github.com/primefaces/sakai-vue',
|
||||
// target: '_blank'
|
||||
// },
|
||||
]
|
||||
}
|
||||
]);
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
<span class="font-medium no-underline ml-2 text-right cursor-pointer text-slate-600">记起密码?<span
|
||||
class="text-primary" @click="handleLogin">立即登入</span></span>
|
||||
</div>
|
||||
<Button label="发送邮件" class="w-full" @click="handleSubmit"></Button>
|
||||
<Button v-if="!requesting" label="发送邮件" class="w-full" @click="handleSubmit"></Button>
|
||||
<Button v-else label="发送中" icon="pi pi-spin pi-spinner" disabled class="w-full"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -40,16 +41,20 @@ import { useRouter } from 'vue-router';
|
||||
const router = useRouter()
|
||||
const toast = useToast()
|
||||
|
||||
const requesting = ref(false)
|
||||
const form = ref({
|
||||
email: ''
|
||||
})
|
||||
|
||||
const handleSubmit = () => {
|
||||
requesting.value = true
|
||||
api.UserForgetRequest(form.value).then(res => {
|
||||
toast.add({ severity: 'success', summary: '发送成功', detail: '请查看邮箱', life: 3000 })
|
||||
requesting.value = false
|
||||
}).catch(err => {
|
||||
console.error(err)
|
||||
toast.add({ severity: 'error', summary: '发送失败', detail: '请检查后重新尝试', life: 3000 })
|
||||
requesting.value = false
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<span class="font-medium no-underline ml-2 text-right cursor-pointer text-slate-600">记起密码?<span
|
||||
class="text-primary" @click="handleLogin">立即登入</span></span>
|
||||
</div>
|
||||
<Button label="注册" class="w-full" @click="handleSubmit"></Button>
|
||||
<Button label="重置密码" class="w-full" @click="handleSubmit"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
||||
)
|
||||
|
||||
func EmailFormat(email string) bool {
|
||||
pattern := `^\w+(-+.\w+)*@\w+(-.\w+)*.\w+(-.\w+)*$`
|
||||
pattern := `\w[-\w.+]*@([-A-Za-z0-9]+\.)+[A-Za-z]{2,14}`
|
||||
match, err := regexp.MatchString(pattern, email)
|
||||
if err != nil {
|
||||
return false
|
||||
|
||||
@@ -27,6 +27,7 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
l.SetModel("main")
|
||||
l.Info("Branch: %s", BRANCH)
|
||||
l.Info("Version: %s", VERSION)
|
||||
l.Info("Commit: %s", COMMIT)
|
||||
|
||||
@@ -62,7 +62,7 @@ func createInstance(ip string, port int, apikey string,
|
||||
if config.GetSystemMountDir() != "" {
|
||||
data.Binds = append(data.Binds, bindStruct{
|
||||
Src: config.GetSystemMountDir(),
|
||||
Dest: "/root/megrez-pub",
|
||||
Dest: "/root/megrez-mnt",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user