-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for collapse navigator and global config (#33)
- Loading branch information
崔庆才丨静觅
authored
Jan 7, 2024
1 parent
8b53968
commit 576e0a7
Showing
20 changed files
with
305 additions
and
50 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@zhishuyun-hub-3b8e7fee-8ae8-4ea3-aedb-19b2411ab13c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "add config support global", | ||
"packageName": "@zhishuyun/hub", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
site: { | ||
logo: { | ||
url: 'https://hub.zhishuyun.com/assets/logo.da8de841.svg', | ||
width: 'auto', | ||
height: 'auto' | ||
} | ||
}, | ||
apps: { | ||
chat: { | ||
enabled: true | ||
}, | ||
midjourney: { | ||
enabled: true | ||
} | ||
}, | ||
distribution: { | ||
inviterId: '123' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<font-awesome-icon :icon="icon" class="icon" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; | ||
export default defineComponent({ | ||
name: 'Chevron', | ||
components: { | ||
FontAwesomeIcon | ||
}, | ||
props: { | ||
direction: { | ||
type: String, | ||
default: 'right' | ||
} | ||
}, | ||
computed: { | ||
icon(): string { | ||
return `fa-solid fa-chevron-${this.direction}`; | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.icon { | ||
font-size: 12px; | ||
border: 1px solid var(--el-border-color); | ||
border-radius: 50%; | ||
padding: 5px 6px; | ||
cursor: pointer; | ||
color: var(--el-color-black); | ||
background: var(--el-color-white); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
export default { | ||
/** | ||
* The global configuration. | ||
*/ | ||
global: {}, | ||
|
||
/** | ||
* The left navigation configuration. | ||
*/ | ||
navigation: { | ||
/** | ||
* Show chat entry in left navigation. | ||
*/ | ||
chat: true, | ||
|
||
/** | ||
* Show midjourney entry in left navigation. | ||
*/ | ||
midjourney: true, | ||
|
||
/** | ||
* Show console entry in left navigation. | ||
*/ | ||
console: true, | ||
|
||
/** | ||
* Show help entry in left navigation. | ||
*/ | ||
help: true | ||
}, | ||
|
||
/** | ||
* The features configuration. | ||
*/ | ||
features: { | ||
/** | ||
* The chat feature config. | ||
*/ | ||
chat: {}, | ||
|
||
/** | ||
* The midjourney feature config. | ||
*/ | ||
midjourney: {} | ||
}, | ||
|
||
/** | ||
* The distribution configuration. | ||
*/ | ||
distribution: { | ||
/** | ||
* The default inviter id to use when no inviter id (in url) is provided, | ||
*/ | ||
defaultInviterId: undefined, | ||
|
||
/** | ||
* Force the inviter id to be used, even if an inviter id is provided. | ||
* Note: if the forceInviterId is set, there will be no distribution page in console except for the forced inviter. | ||
*/ | ||
forceInviterId: undefined | ||
} | ||
}; |
Oops, something went wrong.