mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-06 21:19:54 +02:00
Cleaned up bookstack connector admin panel
Also fixed ESLint issues
This commit is contained in:
parent
f587161577
commit
104a248b11
@ -67,7 +67,7 @@ const Main = () => {
|
|||||||
<>
|
<>
|
||||||
{popup}
|
{popup}
|
||||||
<h2 className="font-bold mb-2 mt-6 ml-auto mr-auto">
|
<h2 className="font-bold mb-2 mt-6 ml-auto mr-auto">
|
||||||
Step 1: Provide your access token
|
Step 1: Provide your API details
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{bookstackCredential ? (
|
{bookstackCredential ? (
|
||||||
@ -99,11 +99,11 @@ const Main = () => {
|
|||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
To get started you'll need API token details for your BookStack instance.
|
To get started you'll need API token details for your BookStack instance.
|
||||||
You can get these by editing your (or another) user account in BookStack
|
You can get these by editing your (or another) user account in BookStack
|
||||||
and creating a token via the "API Tokens" section at the bottom.
|
and creating a token via the 'API Tokens' section at the bottom.
|
||||||
Your user account will require to be assigned a BookStack role which
|
Your user account will require to be assigned a BookStack role which
|
||||||
has the "Access system API" system permission assigned.
|
has the 'Access system API' system permission assigned.
|
||||||
</p>
|
</p>
|
||||||
<div className="border-solid border-gray-600 border rounded-md p-6 mt-2 mb-4">
|
<div className="border-solid border-gray-600 border rounded-md p-6 mt-2 mb-4">
|
||||||
<CredentialForm<BookstackCredentialJson>
|
<CredentialForm<BookstackCredentialJson>
|
||||||
@ -145,7 +145,7 @@ const Main = () => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{bookstackConnectorIndexingStatuses.length > 0 && (
|
{bookstackConnectorIndexingStatuses.length > 0 ? (
|
||||||
<>
|
<>
|
||||||
<h2 className="font-bold mb-2 mt-6 ml-auto mr-auto">
|
<h2 className="font-bold mb-2 mt-6 ml-auto mr-auto">
|
||||||
BookStack indexing status
|
BookStack indexing status
|
||||||
@ -184,10 +184,13 @@ const Main = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
) : (
|
||||||
|
<>
|
||||||
<div className="border-solid border-gray-600 border rounded-md p-6 mt-4">
|
<div className="border-solid border-gray-600 border rounded-md p-6 mt-4">
|
||||||
<h2 className="font-bold mb-3">Setup Connector</h2>
|
<h2 className="font-bold mb-3">Create Connection</h2>
|
||||||
|
<p className="text-sm mb-4">
|
||||||
|
Press connect below to start the connection to your BookStack instance.
|
||||||
|
</p>
|
||||||
<ConnectorForm<BookstackConfig>
|
<ConnectorForm<BookstackConfig>
|
||||||
nameBuilder={(values) =>
|
nameBuilder={(values) =>
|
||||||
`BookStackConnector`
|
`BookStackConnector`
|
||||||
@ -214,12 +217,14 @@ const Main = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
{!bookstackCredential && (
|
{!bookstackCredential && (
|
||||||
<>
|
<>
|
||||||
<p className="text-sm mb-4">
|
<p className="text-sm mb-4">
|
||||||
Please provide your API details in Step 1 first! Once done with that,
|
Please provide your API details in Step 1 first! Once done with that,
|
||||||
you'll be able to see indexing status.
|
you'll be able to start the connection then see indexing status.
|
||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user