feat: Add Composio Google Calendar component (#7662)
* feat: add google calendar component * feat: add Composio Google Calendar Component * fix: update field names to use '_' as separator & remove init * fix: update field names to use '_' as separator & remove init * feat: add google calendar test file & minor improvements * fix: format * fix: format --------- Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
parent
93e8b3e8c5
commit
2ea2bb01ed
9 changed files with 1020 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ import { GleanIcon } from "@/icons/Glean";
|
|||
import { GlobeOkIcon } from "@/icons/globe-ok";
|
||||
import { GmailIcon } from "@/icons/gmail";
|
||||
import { GoogleIcon } from "@/icons/Google";
|
||||
import { GooglecalendarIcon } from "@/icons/googlecalendar";
|
||||
import { GoogleDriveIcon } from "@/icons/GoogleDrive";
|
||||
import { GoogleGenerativeAIIcon } from "@/icons/GoogleGenerativeAI";
|
||||
import {
|
||||
|
|
@ -156,6 +157,7 @@ export const eagerIconsMapping = {
|
|||
GoogleDrive: GoogleDriveIcon,
|
||||
GoogleGenerativeAI: GoogleGenerativeAIIcon,
|
||||
Gmail: GmailIcon,
|
||||
Googlecalendar: GooglecalendarIcon,
|
||||
GradientInfinity: GradientInfinity,
|
||||
GradientSave: GradientSave,
|
||||
GradientUngroup: GradientUngroup,
|
||||
|
|
|
|||
28
src/frontend/src/icons/googlecalendar/googlecalendar.jsx
Normal file
28
src/frontend/src/icons/googlecalendar/googlecalendar.jsx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
const Icon = (props) => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 48 48"
|
||||
width="23px"
|
||||
height="23px"
|
||||
>
|
||||
<rect width="22" height="22" x="13" y="13" fill="#fff" />
|
||||
<polygon
|
||||
fill="#1e88e5"
|
||||
points="25.68,20.92 26.688,22.36 28.272,21.208 28.272,29.56 30,29.56 30,18.616 28.56,18.616"
|
||||
/>
|
||||
<path
|
||||
fill="#1e88e5"
|
||||
d="M22.943,23.745c0.625-0.574,1.013-1.37,1.013-2.249c0-1.747-1.533-3.168-3.417-3.168 c-1.602,0-2.972,1.009-3.33,2.453l1.657,0.421c0.165-0.664,0.868-1.146,1.673-1.146c0.942,0,1.709,0.646,1.709,1.44 c0,0.794-0.767,1.44-1.709,1.44h-0.997v1.728h0.997c1.081,0,1.993,0.751,1.993,1.64c0,0.904-0.866,1.64-1.931,1.64 c-0.962,0-1.784-0.61-1.914-1.418L17,26.802c0.262,1.636,1.81,2.87,3.6,2.87c2.007,0,3.64-1.511,3.64-3.368 C24.24,25.281,23.736,24.363,22.943,23.745z"
|
||||
/>
|
||||
<polygon fill="#fbc02d" points="34,42 14,42 13,38 14,34 34,34 35,38" />
|
||||
<polygon fill="#4caf50" points="38,35 42,34 42,14 38,13 34,14 34,34" />
|
||||
<path
|
||||
fill="#1e88e5"
|
||||
d="M34,14l1-4l-1-4H9C7.343,6,6,7.343,6,9v25l4,1l4-1V14H34z"
|
||||
/>
|
||||
<polygon fill="#e53935" points="34,34 34,42 42,34" />
|
||||
<path fill="#1565c0" d="M39,6h-5v8h8V9C42,7.343,40.657,6,39,6z" />
|
||||
<path fill="#1565c0" d="M9,42h5v-8H6v5C6,40.657,7.343,42,9,42z" />
|
||||
</svg>
|
||||
);
|
||||
export default Icon;
|
||||
1
src/frontend/src/icons/googlecalendar/googlecalendar.svg
Normal file
1
src/frontend/src/icons/googlecalendar/googlecalendar.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="23px" height="23px"><rect width="22" height="22" x="13" y="13" fill="#fff"/><polygon fill="#1e88e5" points="25.68,20.92 26.688,22.36 28.272,21.208 28.272,29.56 30,29.56 30,18.616 28.56,18.616"/><path fill="#1e88e5" d="M22.943,23.745c0.625-0.574,1.013-1.37,1.013-2.249c0-1.747-1.533-3.168-3.417-3.168 c-1.602,0-2.972,1.009-3.33,2.453l1.657,0.421c0.165-0.664,0.868-1.146,1.673-1.146c0.942,0,1.709,0.646,1.709,1.44 c0,0.794-0.767,1.44-1.709,1.44h-0.997v1.728h0.997c1.081,0,1.993,0.751,1.993,1.64c0,0.904-0.866,1.64-1.931,1.64 c-0.962,0-1.784-0.61-1.914-1.418L17,26.802c0.262,1.636,1.81,2.87,3.6,2.87c2.007,0,3.64-1.511,3.64-3.368 C24.24,25.281,23.736,24.363,22.943,23.745z"/><polygon fill="#fbc02d" points="34,42 14,42 13,38 14,34 34,34 35,38"/><polygon fill="#4caf50" points="38,35 42,34 42,14 38,13 34,14 34,34"/><path fill="#1e88e5" d="M34,14l1-4l-1-4H9C7.343,6,6,7.343,6,9v25l4,1l4-1V14H34z"/><polygon fill="#e53935" points="34,34 34,42 42,34"/><path fill="#1565c0" d="M39,6h-5v8h8V9C42,7.343,40.657,6,39,6z"/><path fill="#1565c0" d="M9,42h5v-8H6v5C6,40.657,7.343,42,9,42z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
9
src/frontend/src/icons/googlecalendar/index.tsx
Normal file
9
src/frontend/src/icons/googlecalendar/index.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import React, { forwardRef } from "react";
|
||||
import GooglecalendarIconSVG from "./googlecalendar";
|
||||
|
||||
export const GooglecalendarIcon = forwardRef<
|
||||
SVGSVGElement,
|
||||
React.PropsWithChildren<{}>
|
||||
>((props, ref) => {
|
||||
return <GooglecalendarIconSVG ref={ref} {...props} />;
|
||||
});
|
||||
|
|
@ -97,6 +97,10 @@ export const lazyIconsMapping = {
|
|||
})),
|
||||
Gmail: () =>
|
||||
import("@/icons/gmail").then((mod) => ({ default: mod.GmailIcon })),
|
||||
Googlecalendar: () =>
|
||||
import("@/icons/googlecalendar").then((mod) => ({
|
||||
default: mod.GooglecalendarIcon,
|
||||
})),
|
||||
GradientInfinity: () =>
|
||||
import("@/icons/GradientSparkles").then((mod) => ({
|
||||
default: mod.GradientInfinity,
|
||||
|
|
|
|||
|
|
@ -230,6 +230,11 @@ export const SIDEBAR_CATEGORIES = [
|
|||
export const SIDEBAR_BUNDLES = [
|
||||
{ display_name: "Amazon", name: "amazon", icon: "Amazon" },
|
||||
{ display_name: "Gmail", name: "gmail", icon: "Gmail" },
|
||||
{
|
||||
display_name: "Googlecalendar",
|
||||
name: "googlecalendar",
|
||||
icon: "Googlecalendar",
|
||||
},
|
||||
// Add apify
|
||||
{ display_name: "Apify", name: "apify", icon: "Apify" },
|
||||
{ display_name: "LangChain", name: "langchain_utilities", icon: "LangChain" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue