mirror of
https://github.com/certd/certd.git
synced 2026-04-27 15:17:24 +08:00
chore: 1
This commit is contained in:
@@ -18,7 +18,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<div class="rounded pl-3 pr-3 px-2 py-1 flex-center flex pointer items-center bg-accent h-10 button-text" title="当前项目">
|
<div class="rounded pl-3 pr-3 px-2 py-1 flex-center flex pointer items-center bg-accent h-10 button-text" title="当前项目">
|
||||||
<!-- <fs-icon icon="ion:apps" class="mr-1"></fs-icon> -->
|
<!-- <fs-icon icon="ion:apps" class="mr-1"></fs-icon> -->
|
||||||
当前项目:{{ projectStore.currentProject?.name || "..." }}
|
<span class="hidden md:flex"> 当前项目:</span>
|
||||||
|
<span class="text-ellipsis">{{ projectStore.currentProject?.name || "..." }}</span>
|
||||||
<fs-icon :icon="currentIcon" class="ml-5"></fs-icon>
|
<fs-icon :icon="currentIcon" class="ml-5"></fs-icon>
|
||||||
</div>
|
</div>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
@@ -58,7 +59,7 @@ const currentIcon = computed(() => {
|
|||||||
<style lang="less">
|
<style lang="less">
|
||||||
.project-selector {
|
.project-selector {
|
||||||
&.button-text {
|
&.button-text {
|
||||||
min-width: 150px;
|
min-width: 100px;
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="passkey-list">
|
<div class="passkey-list">
|
||||||
<div v-for="passkey in passkeys" :key="passkey.id" class="passkey-item">
|
<div v-for="passkey in passkeys" :key="passkey.id" class="passkey-item">
|
||||||
<div class="passkey-icon">
|
<div class="passkey-icon hidden md:flex">
|
||||||
<fs-icon icon="ion:finger-print" class="icon" />
|
<fs-icon icon="ion:finger-print" class="icon" />
|
||||||
</div>
|
</div>
|
||||||
<div class="passkey-info">
|
<div class="passkey-info">
|
||||||
@@ -721,7 +721,6 @@ onMounted(async () => {
|
|||||||
.passkey-icon {
|
.passkey-icon {
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
|
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
|
||||||
@@ -749,8 +748,8 @@ onMounted(async () => {
|
|||||||
.passkey-meta {
|
.passkey-meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 12px;
|
gap: 4px;
|
||||||
font-size: 13px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-item {
|
.meta-item {
|
||||||
|
|||||||
@@ -88,7 +88,11 @@ export default (req: any) => {
|
|||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
port: 3008,
|
port: 3008,
|
||||||
fs: devServerFs,
|
fs: devServerFs,
|
||||||
allowedHosts: ["localhost", "127.0.0.1", "yfy.docmirror.cn", "docmirror.top", "*"],
|
https: {
|
||||||
|
key: fs.readFileSync("./keys/localhost+1-key.pem"),
|
||||||
|
cert: fs.readFileSync("./keys/localhost+1.pem"),
|
||||||
|
},
|
||||||
|
allowedHosts: ["localhost", "127.0.0.1", "yfy.docmirror.cn", "docmirror.top", "*", "local.dev"],
|
||||||
proxy: {
|
proxy: {
|
||||||
// with options
|
// with options
|
||||||
"/api": {
|
"/api": {
|
||||||
@@ -100,7 +104,7 @@ export default (req: any) => {
|
|||||||
"/certd/api": {
|
"/certd/api": {
|
||||||
//配套后端 https://github.com/fast-crud/fs-server-js
|
//配套后端 https://github.com/fast-crud/fs-server-js
|
||||||
target: "http://127.0.0.1:7001/api",
|
target: "http://127.0.0.1:7001/api",
|
||||||
rewrite: path => path.replace(/^\/certd\/api/, ""),
|
rewrite: (path: any) => path.replace(/^\/certd\/api/, ""),
|
||||||
//忽略证书
|
//忽略证书
|
||||||
// agent: new https.Agent({ rejectUnauthorized: false }),
|
// agent: new https.Agent({ rejectUnauthorized: false }),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user