-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#34 --------- Signed-off-by: seven <[email protected]>
- Loading branch information
Showing
10 changed files
with
221 additions
and
1 deletion.
There are no files selected for viewing
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
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
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,73 @@ | ||
<template> | ||
<div class="about-us"> | ||
<h1 class="title">About Us</h1> | ||
<div class="section"> | ||
<h2 class="subtitle">DocKit</h2> | ||
<p> | ||
DocKit is a modern cross-platform NoSQL/NewSQL GUI client. Explore your data any time from | ||
your Mac, Windows, and Linux. | ||
</p> | ||
</div> | ||
<div class="section"> | ||
<h2 class="subtitle">Features</h2> | ||
<ul> | ||
<li> | ||
Full-featured editor, powered by monaco-editor, the backbone of VSCode, providing a | ||
familiar editor environment for developers. | ||
</li> | ||
<li>Keep your connections in desktop apps, moving the dependencies of dashboard tools.</li> | ||
<li> | ||
File persistence, allowing you to save your code in your machine as a file, never lost. | ||
</li> | ||
<li>Supports multiple engines including Elasticsearch, OpenSearch, and more to come.</li> | ||
</ul> | ||
</div> | ||
<div class="section"> | ||
<h2 class="subtitle">License</h2> | ||
<p>DocKit is an open-source project under the Apache 2.0 License.</p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
// Add any necessary TypeScript code here | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@keyframes fadeIn { | ||
0% { | ||
opacity: 0; | ||
} | ||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
.about-us { | ||
animation: fadeIn 2s ease-in; | ||
.title { | ||
font-size: 2em; | ||
text-align: center; | ||
margin-bottom: 1em; | ||
} | ||
.section { | ||
margin-bottom: 2em; | ||
.subtitle { | ||
font-size: 1.5em; | ||
} | ||
p, | ||
ul { | ||
font-size: 1.2em; | ||
line-height: 1.5; | ||
} | ||
ul { | ||
padding-left: 1em; | ||
} | ||
} | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<div> | ||
<n-tabs type="line" animated> | ||
<n-tab-pane name="OpenAI" tab="OpenAI"> | ||
<n-form class="form-tab-pane"> | ||
<n-form-item-row :label="$t('setting.ai.model')"> | ||
<n-input v-model:value="openAi.model" /> | ||
</n-form-item-row> | ||
<n-form-item-row :label="$t('setting.ai.apiKey')"> | ||
<n-input type="password" show-password-on="click" v-model:value="openAi.apiKey" /> | ||
</n-form-item-row> | ||
<n-form-item-row :label="$t('setting.ai.prompt')"> | ||
<n-input type="textarea" v-model:value="openAi.prompt" /> | ||
</n-form-item-row> | ||
<n-button type="error" @click="reset" class="action-button">Cancel</n-button> | ||
<n-button type="success" @click="save" class="action-button">Save</n-button> | ||
<n-button type="primary" @click="enable" class="action-button">Enable</n-button> | ||
</n-form> | ||
</n-tab-pane> | ||
<n-tab-pane :name="$t('setting.ai.others')" :tab="$t('setting.ai.others')"> | ||
Coming soon | ||
</n-tab-pane> | ||
</n-tabs> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useAppStore } from '../../../store'; | ||
import { storeToRefs } from 'pinia'; | ||
const appStore = useAppStore(); | ||
const { fetchAigcConfig, saveAigcConfig } = appStore; | ||
const { aigcConfig } = storeToRefs(appStore); | ||
const openAi = ref({ ...aigcConfig.value.openAi }); | ||
const reset = () => { | ||
openAi.value = { apiKey: '', model: '', prompt: '' }; | ||
aigcConfig.value.openAi = openAi.value; | ||
}; | ||
const save = async () => { | ||
await saveAigcConfig({ ...aigcConfig.value, openAi: openAi.value }); | ||
}; | ||
const enable = async () => { | ||
await saveAigcConfig({ ...aigcConfig.value, openAi: openAi.value, enabled: true }); | ||
}; | ||
fetchAigcConfig(); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.form-tab-pane { | ||
width: 96%; | ||
.action-button { | ||
margin-right: 10px; | ||
} | ||
} | ||
</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