-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconnection_manager.tsx
More file actions
15 lines (14 loc) · 1.06 KB
/
connection_manager.tsx
File metadata and controls
15 lines (14 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { GoogleConnection } from "./connections/google/connection";
import { WikipediaReferencesConnection } from "./connections/wikipediaReferences/connection";
import { PubmedConnection } from "./connections/pubmed/connection";
import { GoogleDocsConnection } from "./connections/googleDocs/connection";
import { GoogleScholarConnection } from "./connections/googleScholar/connection";
import { WikipediaSegmentConnection } from "./connections/wikipediaSegment/connection";
import { GoogleDriveConnection } from "./connections/googleDrive/connection"
import { LinkedInConnection } from "./connections/Linkedin/connection";
import { GmailConnection } from "./connections/Gmail/connection";
export const CONNECTIONS = [WikipediaSegmentConnection, WikipediaReferencesConnection, GoogleConnection, PubmedConnection, GoogleDocsConnection, GoogleScholarConnection, LinkedInConnection, GoogleDriveConnection, GmailConnection];
export const searchConnections = (url: string, ) => {
const connections = CONNECTIONS.filter(connection => connection.trigger(url));
return connections;
};