-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f55518d
commit cf5a88b
Showing
5 changed files
with
178 additions
and
61 deletions.
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
115 changes: 115 additions & 0 deletions
115
frontend/src/integrations/zapier/components/zapier-connect-drawer.vue
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,115 @@ | ||
<template> | ||
<app-drawer | ||
v-model="isVisible" | ||
custom-class="integration-reddit-drawer" | ||
title="Zapier" | ||
size="600px" | ||
pre-title="Integration" | ||
:pre-title-img-src="logoUrl" | ||
pre-title-img-alt="Zapier logo" | ||
@close="isVisible = false" | ||
> | ||
<template #content> | ||
<div class="flex flex-row items-center justify-between w-full"> | ||
<p class="font-bold text-base">Set up crowd.dev in Zapier</p> | ||
<a | ||
href="https://docs.crowd.dev/docs/zapier-integration" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="btn btn--bordered btn--md" | ||
><i class="ri-external-link-line mr-2" />Read our docs</a | ||
> | ||
</div> | ||
<div class="container mx-auto px-4 py-10"> | ||
<ul class="list-none space-y-4"> | ||
<li class="flex items-start"> | ||
<span | ||
class="flex-none w-8 h-8 flex justify-center items-center rounded-full bg-gray-300 text-white font-bold" | ||
>1</span | ||
> | ||
<p class="ml-4 text-gray-900"> | ||
Navigate to Settings > | ||
<a | ||
href="/settings?activeTab=api-keys" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="underline underline-offset-4" | ||
>API Keys</a | ||
> | ||
and get your workspace <b>Tenant ID</b> and <b>Auth token</b> | ||
</p> | ||
</li> | ||
<li class="flex items-start"> | ||
<span | ||
class="flex-none w-8 h-8 flex justify-center items-center rounded-full bg-gray-300 text-white font-bold" | ||
>2</span | ||
> | ||
<p class="ml-4 text-gray-900"> | ||
Go to | ||
<a | ||
href="https://zapier.com/developer/public-invite/180721/f94ad64f963359cd888fa22610c31875/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="underline underline-offset-4" | ||
>Zapier</a | ||
> | ||
and connect your crowd.dev account using your workspace API Keys | ||
</p> | ||
</li> | ||
<li class="flex items-center"> | ||
<span | ||
class="flex-none w-8 h-8 flex justify-center items-center rounded-full bg-gray-300 text-white font-bold" | ||
>3</span | ||
> | ||
<p class="ml-4 text-gray-900"> | ||
Configure your Zaps using our | ||
<a | ||
href="https://docs.crowd.dev/docs/zapier-integration#supported-triggers" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="underline underline-offset-4" | ||
>supported triggers and actions</a | ||
> | ||
</p> | ||
</li> | ||
</ul> | ||
<!-- <a | ||
class="btn btn--md btn--primary mt-4 ml-12" | ||
href="" | ||
>Explore our Zap templates</a | ||
> --> | ||
</div> | ||
</template> | ||
</app-drawer> | ||
</template> | ||
|
||
<script setup> | ||
import { computed, defineEmits, defineProps } from "vue"; | ||
import { CrowdIntegrations } from "@/integrations/integrations-config"; | ||
const props = defineProps({ | ||
modelValue: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}); | ||
const emit = defineEmits(["update:modelValue"]); | ||
const logoUrl = CrowdIntegrations.getConfig("zapier").image; | ||
const isVisible = computed({ | ||
get() { | ||
return props.modelValue; | ||
}, | ||
set(value) { | ||
return emit("update:modelValue", value); | ||
}, | ||
}); | ||
</script> | ||
|
||
<script> | ||
export default { | ||
name: "AppZapierConnectDrawer", | ||
}; | ||
</script> |
20 changes: 20 additions & 0 deletions
20
frontend/src/integrations/zapier/components/zapier-connect.vue
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,20 @@ | ||
<template> | ||
<slot :connect="connect" /> | ||
<app-zapier-connect-drawer v-model="drawerVisible" /> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from "vue"; | ||
import AppZapierConnectDrawer from "@/integrations/zapier/components/zapier-connect-drawer.vue"; | ||
const drawerVisible = ref(false); | ||
const connect = () => { | ||
drawerVisible.value = true; | ||
}; | ||
</script> | ||
|
||
<script> | ||
export default { | ||
name: "AppZapierConnect", | ||
}; | ||
</script> |
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import ZapierConnect from "./components/zapier-connect.vue"; | ||
|
||
export default { | ||
enabled: false, | ||
name: 'Zapier', | ||
backgroundColor: '#FFFFFF', | ||
borderColor: '#FFFFFF', | ||
enabled: true, | ||
name: "Zapier", | ||
backgroundColor: "#FFFFFF", | ||
borderColor: "#FFFFFF", | ||
description: | ||
"We're currently working on this integration.", | ||
"Enable the communication between crowd.dev and Zapier to automate workflows and tasks.", | ||
image: | ||
'https://www.seekpng.com/png/full/67-672759_zapiers-new-cli-tool-for-creating-apps-zapier.png', | ||
"https://www.seekpng.com/png/full/67-672759_zapiers-new-cli-tool-for-creating-apps-zapier.png", | ||
connectComponent: ZapierConnect, | ||
}; |
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