mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-28 21:05:17 +02:00
ran prettier
This commit is contained in:
@@ -73,9 +73,9 @@ const MainSection = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Text>
|
<Text>
|
||||||
The Teams connector allows you to index and search through your
|
The Teams connector allows you to index and search through your Teams
|
||||||
Teams channels. Once setup, all messages from the channels contained
|
channels. Once setup, all messages from the channels contained in the
|
||||||
in the specified teams will be queryable within Danswer.
|
specified teams will be queryable within Danswer.
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Title className="mb-2 mt-6 ml-auto mr-auto">
|
<Title className="mb-2 mt-6 ml-auto mr-auto">
|
||||||
@@ -165,8 +165,8 @@ const MainSection = () => {
|
|||||||
{teamsConnectorIndexingStatuses.length > 0 && (
|
{teamsConnectorIndexingStatuses.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<Text className="mb-2">
|
<Text className="mb-2">
|
||||||
The latest messages from the specified teams are
|
The latest messages from the specified teams are fetched every 10
|
||||||
fetched every 10 minutes.
|
minutes.
|
||||||
</Text>
|
</Text>
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
<ConnectorsTable<TeamsConfig, TeamsCredentialJson>
|
<ConnectorsTable<TeamsConfig, TeamsCredentialJson>
|
||||||
@@ -241,8 +241,8 @@ const MainSection = () => {
|
|||||||
) : (
|
) : (
|
||||||
<Text>
|
<Text>
|
||||||
Please provide all Azure info in Step 1 first! Once you're done
|
Please provide all Azure info in Step 1 first! Once you're done
|
||||||
with that, you can then specify which teams you want to
|
with that, you can then specify which teams you want to make
|
||||||
make searchable.
|
searchable.
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
@@ -332,10 +332,10 @@ export function ChatPage({
|
|||||||
(persona) => persona.id === existingChatSessionPersonaId
|
(persona) => persona.id === existingChatSessionPersonaId
|
||||||
)
|
)
|
||||||
: defaultSelectedPersonaId !== undefined
|
: defaultSelectedPersonaId !== undefined
|
||||||
? filteredAssistants.find(
|
? filteredAssistants.find(
|
||||||
(persona) => persona.id === defaultSelectedPersonaId
|
(persona) => persona.id === defaultSelectedPersonaId
|
||||||
)
|
)
|
||||||
: undefined
|
: undefined
|
||||||
);
|
);
|
||||||
const livePersona =
|
const livePersona =
|
||||||
selectedPersona || filteredAssistants[0] || availablePersonas[0];
|
selectedPersona || filteredAssistants[0] || availablePersonas[0];
|
||||||
|
@@ -21,9 +21,7 @@ pre[class*="language-"] {
|
|||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
background: #4b5563; /* Dark handle color */
|
background: #4b5563; /* Dark handle color */
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
transition:
|
transition: background 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
|
||||||
background 0.3s ease,
|
|
||||||
box-shadow 0.3s ease; /* Smooth transition for hover effect */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
@@ -21,7 +21,7 @@ export function useDocumentSelection(): [
|
|||||||
DanswerDocument[],
|
DanswerDocument[],
|
||||||
(document: DanswerDocument) => void,
|
(document: DanswerDocument) => void,
|
||||||
() => void,
|
() => void,
|
||||||
number,
|
number
|
||||||
] {
|
] {
|
||||||
const [selectedDocuments, setSelectedDocuments] = useState<DanswerDocument[]>(
|
const [selectedDocuments, setSelectedDocuments] = useState<DanswerDocument[]>(
|
||||||
[]
|
[]
|
||||||
|
@@ -27,8 +27,8 @@ export function Bubble({
|
|||||||
(notSelectable
|
(notSelectable
|
||||||
? " bg-background cursor-default"
|
? " bg-background cursor-default"
|
||||||
: isSelected
|
: isSelected
|
||||||
? " bg-hover cursor-pointer"
|
? " bg-hover cursor-pointer"
|
||||||
: " bg-background hover:bg-hover-light cursor-pointer")
|
: " bg-background hover:bg-hover-light cursor-pointer")
|
||||||
}
|
}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
>
|
>
|
||||||
|
@@ -87,7 +87,7 @@ export function StatusRow<ConnectorConfigType, ConnectorCredentialType>({
|
|||||||
|
|
||||||
export interface ColumnSpecification<
|
export interface ColumnSpecification<
|
||||||
ConnectorConfigType,
|
ConnectorConfigType,
|
||||||
ConnectorCredentialType,
|
ConnectorCredentialType
|
||||||
> {
|
> {
|
||||||
header: string;
|
header: string;
|
||||||
key: string;
|
key: string;
|
||||||
@@ -101,7 +101,7 @@ export interface ColumnSpecification<
|
|||||||
|
|
||||||
export interface ConnectorsTableProps<
|
export interface ConnectorsTableProps<
|
||||||
ConnectorConfigType,
|
ConnectorConfigType,
|
||||||
ConnectorCredentialType,
|
ConnectorCredentialType
|
||||||
> {
|
> {
|
||||||
connectorIndexingStatuses: ConnectorIndexingStatus<
|
connectorIndexingStatuses: ConnectorIndexingStatus<
|
||||||
ConnectorConfigType,
|
ConnectorConfigType,
|
||||||
|
@@ -46,7 +46,7 @@ const SingleUseConnectorStatus = ({
|
|||||||
|
|
||||||
export function SingleUseConnectorsTable<
|
export function SingleUseConnectorsTable<
|
||||||
ConnectorConfigType,
|
ConnectorConfigType,
|
||||||
ConnectorCredentialType,
|
ConnectorCredentialType
|
||||||
>({
|
>({
|
||||||
connectorIndexingStatuses,
|
connectorIndexingStatuses,
|
||||||
liveCredential,
|
liveCredential,
|
||||||
|
@@ -18,7 +18,7 @@ export async function fetchAssistantEditorInfoSS(
|
|||||||
existingPersona: Persona | null;
|
existingPersona: Persona | null;
|
||||||
tools: ToolSnapshot[];
|
tools: ToolSnapshot[];
|
||||||
},
|
},
|
||||||
null,
|
null
|
||||||
]
|
]
|
||||||
| [null, string]
|
| [null, string]
|
||||||
> {
|
> {
|
||||||
@@ -50,7 +50,7 @@ export async function fetchAssistantEditorInfoSS(
|
|||||||
Response,
|
Response,
|
||||||
User | null,
|
User | null,
|
||||||
ToolSnapshot[] | null,
|
ToolSnapshot[] | null,
|
||||||
Response | null,
|
Response | null
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!ccPairsInfoResponse.ok) {
|
if (!ccPairsInfoResponse.ok) {
|
||||||
|
@@ -218,7 +218,7 @@ export interface IndexAttemptSnapshot {
|
|||||||
|
|
||||||
export interface ConnectorIndexingStatus<
|
export interface ConnectorIndexingStatus<
|
||||||
ConnectorConfigType,
|
ConnectorConfigType,
|
||||||
ConnectorCredentialType,
|
ConnectorCredentialType
|
||||||
> {
|
> {
|
||||||
cc_pair_id: number;
|
cc_pair_id: number;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
Reference in New Issue
Block a user