feat:fix frontend .env
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
VITE_APP_DOMAIN=shenjianl.cn
|
VITE_APP_DOMAIN=shenjianl.cn
|
||||||
VITE_GITEA_URL=https://gitea.shenjianl.cn/shenjianZ/email-unlimit
|
VITE_REPO_NAME=Gitea
|
||||||
|
VITE_REPO_URL=https://gitea.shenjianl.cn/shenjianZ/email-unlimit
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
const giteaUrl = import.meta.env.VITE_GITEA_URL;
|
const repoUrl = import.meta.env.VITE_REPO_URL;
|
||||||
|
const repoName = import.meta.env.VITE_REPO_NAME;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -8,7 +9,7 @@ const giteaUrl = import.meta.env.VITE_GITEA_URL;
|
|||||||
<div class="logo">Email Unlimit</div>
|
<div class="logo">Email Unlimit</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
<nav class="nav-links">
|
<nav class="nav-links">
|
||||||
<a :href="giteaUrl" target="_blank">Gitea</a>
|
<a :href="repoUrl" target="_blank">{{ repoName }}</a>
|
||||||
<router-link to="/settings" class="settings-link" title="设置">
|
<router-link to="/settings" class="settings-link" title="设置">
|
||||||
<img src="@/assets/setting.svg" alt="Settings" class="settings-icon" />
|
<img src="@/assets/setting.svg" alt="Settings" class="settings-icon" />
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ const { t } = useI18n();
|
|||||||
const recipient = ref('');
|
const recipient = ref('');
|
||||||
const messages = ref([]);
|
const messages = ref([]);
|
||||||
const selectedMessage = ref(null);
|
const selectedMessage = ref(null);
|
||||||
|
const domain = import.meta.env.VITE_APP_DOMAIN;
|
||||||
|
|
||||||
if (import.meta.env.DEV) {
|
if (import.meta.env.DEV) {
|
||||||
selectedMessage.value = {
|
selectedMessage.value = {
|
||||||
@@ -112,11 +113,11 @@ if (import.meta.env.DEV) {
|
|||||||
}
|
}
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const copyStatus = ref('idle'); // 'idle' | 'copied'
|
const copyStatus = ref('idle'); // 'idle' | 'copied'
|
||||||
const domain = import.meta.env.VITE_APP_DOMAIN;
|
|
||||||
const attachments = ref([]);
|
const attachments = ref([]);
|
||||||
const attachmentsLoading = ref(false);
|
const attachmentsLoading = ref(false);
|
||||||
const newMailNotification = ref(false);
|
const newMailNotification = ref(false);
|
||||||
|
|
||||||
|
|
||||||
const renderedBody = computed(() => {
|
const renderedBody = computed(() => {
|
||||||
if (selectedMessage.value && selectedMessage.value.body) {
|
if (selectedMessage.value && selectedMessage.value.body) {
|
||||||
return marked(selectedMessage.value.body);
|
return marked(selectedMessage.value.body);
|
||||||
|
|||||||
Reference in New Issue
Block a user