code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
<template>
<TransitionRoot :show="sidebarOpened">
<Dialog as="div" @close="sidebarOpened = false" class="fixed inset-0 z-40">
<TransitionChild
as="template"
enter="transition ease-in-out duration-200 transform"
enter-from="-translate-x-full"
enter-to="translate-x-0"
l... | 2302_79757062/crm | frontend/src/components/Mobile/MobileSidebar.vue | Vue | agpl-3.0 | 6,120 |
<template>
<Dialog v-model="show" :options="dialogOptions">
<template #body>
<div class="bg-white px-4 pb-6 pt-5 sm:px-6">
<div class="mb-5 flex items-center justify-between">
<div>
<h3 class="text-2xl font-semibold leading-6 text-gray-900">
{{ __(dialogOptions.ti... | 2302_79757062/crm | frontend/src/components/Modals/AddressModal.vue | Vue | agpl-3.0 | 4,813 |
<template>
<Dialog
v-model="show"
:options="{
title: __('Assign To'),
size: 'xl',
actions: [
{
label: __('Cancel'),
variant: 'subtle',
onClick: () => {
assignees = [...oldAssignees]
show = false
},
},
{
... | 2302_79757062/crm | frontend/src/components/Modals/AssignmentModal.vue | Vue | agpl-3.0 | 4,713 |
<template>
<Dialog v-model="show">
<template #body-title>
<div class="flex items-center gap-3">
<h3 class="text-2xl font-semibold leading-6 text-gray-900">
{{ __('Call Details') }}
</h3>
</div>
</template>
<template #body-content>
<div class="flex flex-col gap-3... | 2302_79757062/crm | frontend/src/components/Modals/CallLogModal.vue | Vue | agpl-3.0 | 8,028 |
<template>
<Dialog v-model="show" :options="dialogOptions">
<template #body>
<div class="bg-white px-4 pb-6 pt-5 sm:px-6">
<div class="mb-5 flex items-center justify-between">
<div>
<h3 class="text-2xl font-semibold leading-6 text-gray-900">
{{ __(dialogOptions.ti... | 2302_79757062/crm | frontend/src/components/Modals/ContactModal.vue | Vue | agpl-3.0 | 13,844 |
<template>
<Dialog v-model="show" :options="{ size: '3xl' }">
<template #body>
<div class="bg-white px-4 pb-6 pt-5 sm:px-6">
<div class="mb-5 flex items-center justify-between">
<div>
<h3 class="text-2xl font-semibold leading-6 text-gray-900">
{{ __('Create Deal')... | 2302_79757062/crm | frontend/src/components/Modals/DealModal.vue | Vue | agpl-3.0 | 6,513 |
<template>
<Dialog v-model="show" :options="{ title: __('Bulk Edit') }">
<template #body-content>
<div class="mb-4">
<div class="mb-1.5 text-sm text-gray-600">{{ __('Field') }}</div>
<Autocomplete
:value="field.label"
:options="fields.data"
@change="(e) => chang... | 2302_79757062/crm | frontend/src/components/Modals/EditValueModal.vue | Vue | agpl-3.0 | 4,453 |
<template>
<Dialog
v-model="show"
:options="{
title: editMode ? __(emailTemplate.name) : __('Create Email Template'),
size: 'xl',
actions: [
{
label: editMode ? __('Update') : __('Create'),
variant: 'solid',
onClick: () => (editMode ? updateEmailTemplate... | 2302_79757062/crm | frontend/src/components/Modals/EmailTemplateModal.vue | Vue | agpl-3.0 | 6,241 |
<template>
<Dialog
v-model="show"
:options="{ title: __('Email Templates'), size: '4xl' }"
>
<template #body-content>
<TextInput
ref="searchInput"
v-model="search"
type="text"
:placeholder="__('Payment Reminder')"
>
<template #prefix>
<Feathe... | 2302_79757062/crm | frontend/src/components/Modals/EmailTemplateSelectorModal.vue | Vue | agpl-3.0 | 3,786 |
<template>
<Dialog v-model="show" :options="{ size: '3xl' }">
<template #body>
<div class="bg-white px-4 pb-6 pt-5 sm:px-6">
<div class="mb-5 flex items-center justify-between">
<div>
<h3 class="text-2xl font-semibold leading-6 text-gray-900">
{{ __('Create Lead')... | 2302_79757062/crm | frontend/src/components/Modals/LeadModal.vue | Vue | agpl-3.0 | 5,075 |
<template>
<Dialog
v-model="show"
:options="{
size: 'xl',
actions: [
{
label: editMode ? __('Update') : __('Create'),
variant: 'solid',
onClick: () => updateNote(),
},
],
}"
>
<template #body-title>
<div class="flex items-center g... | 2302_79757062/crm | frontend/src/components/Modals/NoteModal.vue | Vue | agpl-3.0 | 4,144 |
<template>
<Dialog v-model="show" :options="dialogOptions">
<template #body>
<div class="bg-white px-4 pb-6 pt-5 sm:px-6">
<div class="mb-5 flex items-center justify-between">
<div>
<h3 class="text-2xl font-semibold leading-6 text-gray-900">
{{ __(dialogOptions.ti... | 2302_79757062/crm | frontend/src/components/Modals/OrganizationModal.vue | Vue | agpl-3.0 | 8,113 |
<template>
<Dialog v-model="show" :options="{ size: '3xl' }">
<template #body-title>
<h3
class="flex items-center gap-2 text-2xl font-semibold leading-6 text-gray-900"
>
<div>{{ __('Edit Quick Entry Layout') }}</div>
<Badge
v-if="dirty"
:label="__('Not Saved... | 2302_79757062/crm | frontend/src/components/Modals/QuickEntryModal.vue | Vue | agpl-3.0 | 3,531 |
<template>
<Dialog
v-model="show"
:options="{
size: 'xl',
actions: [
{
label: editMode ? __('Update') : __('Create'),
variant: 'solid',
onClick: () => updateTask(),
},
],
}"
>
<template #body-title>
<div class="flex items-center g... | 2302_79757062/crm | frontend/src/components/Modals/TaskModal.vue | Vue | agpl-3.0 | 6,641 |
<template>
<Dialog
v-model="show"
:options="{
title: editMode
? __('Edit View')
: duplicateMode
? __('Duplicate View')
: __('Create View'),
actions: [
{
label: editMode
? __('Save Changes')
: duplicateMode
? __('... | 2302_79757062/crm | frontend/src/components/Modals/ViewModal.vue | Vue | agpl-3.0 | 2,620 |
<template>
<Dialog
v-model="show"
:options="{ title: __('WhatsApp Templates'), size: '4xl' }"
>
<template #body-content>
<TextInput
ref="searchInput"
v-model="search"
type="text"
:placeholder="__('Welcome Message')"
>
<template #prefix>
<Feat... | 2302_79757062/crm | frontend/src/components/Modals/WhatsappTemplateSelectorModal.vue | Vue | agpl-3.0 | 2,701 |
<template>
<div
v-if="avatars?.length"
class="mr-1.5 flex cursor-pointer items-center"
:class="[
avatars?.length > 1 ? 'flex-row-reverse' : 'truncate [&>div]:truncate',
]"
>
<Tooltip v-if="avatars?.length == 1" :text="avatars[0].name">
<div class="flex items-center gap-2 text-base">
... | 2302_79757062/crm | frontend/src/components/MultipleAvatar.vue | Vue | agpl-3.0 | 1,273 |
<template>
<Popover v-slot="{ open }">
<PopoverButton
as="div"
ref="reference"
@click="updatePosition"
@focusin="updatePosition"
@keydown="updatePosition"
v-slot="{ open }"
>
<slot name="target" v-bind="{ open }" />
</PopoverButton>
<div v-show="open">
<... | 2302_79757062/crm | frontend/src/components/NestedPopover.vue | Vue | agpl-3.0 | 1,243 |
<template>
<div
v-if="notificationsStore().visible"
ref="target"
class="absolute z-20 h-screen bg-white transition-all duration-300 ease-in-out"
:style="{
'box-shadow': '8px 0px 8px rgba(0, 0, 0, 0.1)',
'max-width': '350px',
'min-width': '350px',
left: 'calc(100% + 1px)',
}... | 2302_79757062/crm | frontend/src/components/Notifications.vue | Vue | agpl-3.0 | 4,741 |
<template>
<div>
<Draggable :list="sections" item-key="label" class="flex flex-col gap-5.5">
<template #item="{ element: section }">
<div class="flex flex-col gap-1.5 p-2.5 bg-gray-50 rounded">
<div class="flex items-center justify-between">
<div
class="flex h-7 m... | 2302_79757062/crm | frontend/src/components/QuickEntryLayoutBuilder.vue | Vue | agpl-3.0 | 6,223 |
<template>
<FormControl
v-if="filter.type == 'Check'"
:label="filter.label"
type="checkbox"
v-model="filter.value"
@change.stop="updateFilter(filter, $event.target.checked)"
/>
<FormControl
v-else-if="filter.type === 'Select'"
class="form-control cursor-pointer [&_select]:cursor-pointe... | 2302_79757062/crm | frontend/src/components/QuickFilterField.vue | Vue | agpl-3.0 | 1,633 |
<template>
<div class="relative" :style="{ width: `${sidebarWidth}px` }">
<slot v-bind="{ sidebarResizing, sidebarWidth }" />
<div
class="absolute left-0 z-10 h-full w-1 cursor-col-resize bg-gray-300 opacity-0 transition-opacity hover:opacity-100"
:class="{ 'opacity-100': sidebarResizing }"
... | 2302_79757062/crm | frontend/src/components/Resizer.vue | Vue | agpl-3.0 | 2,383 |
<template>
<div class="flex flex-col gap-1.5 border-b sm:px-6 py-3 px-4">
<div
v-for="s in slaSection"
:key="s.label"
class="flex items-center gap-2 text-base leading-5"
>
<div class="sm:w-[106px] w-36 text-sm text-gray-600">
{{ __(s.label) }}
</div>
<div class="gri... | 2302_79757062/crm | frontend/src/components/SLASection.vue | Vue | agpl-3.0 | 3,275 |
<template>
<slot name="header" v-bind="{ opened, hide, open, close, toggle }">
<div v-if="!hide" class="flex items-center justify-between">
<div
class="flex h-7 max-w-fit cursor-pointer items-center gap-2 pl-2 pr-3 text-base font-semibold leading-5"
@click="toggle()"
>
<Feather... | 2302_79757062/crm | frontend/src/components/Section.vue | Vue | agpl-3.0 | 1,504 |
<template>
<FadedScrollableDiv
class="flex flex-col gap-1.5 overflow-y-auto"
:class="[isLastSection ? '' : 'max-h-[300px]']"
>
<div
v-for="field in _fields"
:key="field.label"
:class="[field.hidden && 'hidden']"
class="section-field flex items-center gap-2 px-3 leading-5 first:mt... | 2302_79757062/crm | frontend/src/components/SectionFields.vue | Vue | agpl-3.0 | 6,228 |
<template>
<SettingsPage
doctype="ERPNext CRM Settings"
:title="__('ERPNext Settings')"
:successMessage="__('ERPNext Settings updated')"
class="p-8"
/>
</template>
<script setup>
import SettingsPage from '@/components/Settings/SettingsPage.vue'
</script> | 2302_79757062/crm | frontend/src/components/Settings/ERPNextSettings.vue | Vue | agpl-3.0 | 274 |
<template>
<div class="flex h-full flex-col gap-8 p-8">
<h2 class="flex gap-2 text-xl font-semibold leading-none h-5">
{{ __('Send Invites To') }}
</h2>
<div class="flex-1 overflow-y-auto">
<label class="block text-xs text-gray-600 mb-1.5">
{{ __('Invite by email') }}
</label>
... | 2302_79757062/crm | frontend/src/components/Settings/InviteMemberPage.vue | Vue | agpl-3.0 | 3,698 |
<template>
<FileUploader
@success="(file) => setUserImage(file.file_url)"
:validateFile="validateFile"
>
<template v-slot="{ file, progress, error, uploading, openFileSelector }">
<div class="flex flex-col items-center">
<button
class="group relative rounded-full border-2"
... | 2302_79757062/crm | frontend/src/components/Settings/ProfileImageEditor.vue | Vue | agpl-3.0 | 1,948 |
<template>
<div v-if="profile" class="flex w-full items-center justify-between p-12 pt-14">
<div class="flex items-center gap-4">
<Avatar
class="!size-16"
:image="profile.user_image"
:label="profile.full_name"
/>
<div class="flex flex-col gap-1">
<span class="text... | 2302_79757062/crm | frontend/src/components/Settings/ProfileSettings.vue | Vue | agpl-3.0 | 2,864 |
<template>
<Dialog v-model="show" :options="{ size: '5xl' }">
<template #body>
<div class="flex h-[calc(100vh_-_8rem)]">
<div class="flex w-52 shrink-0 flex-col bg-gray-50 p-2">
<h1 class="mb-3 px-2 pt-2 text-lg font-semibold">
{{ __('Settings') }}
</h1>
<di... | 2302_79757062/crm | frontend/src/components/Settings/SettingsModal.vue | Vue | agpl-3.0 | 3,307 |
<template>
<div class="flex h-full flex-col gap-8">
<h2 class="flex gap-2 text-xl font-semibold leading-none h-5">
<div>{{ title || __(doctype) }}</div>
<Badge
v-if="data.isDirty"
:label="__('Not Saved')"
variant="subtle"
theme="orange"
/>
</h2>
<div v-if=... | 2302_79757062/crm | frontend/src/components/Settings/SettingsPage.vue | Vue | agpl-3.0 | 3,645 |
<template>
<div>
<Draggable :list="sections" item-key="label" class="flex flex-col gap-5.5">
<template #item="{ element: section }">
<div class="flex flex-col gap-3">
<div
class="flex items-center justify-between rounded px-2.5 py-2 bg-gray-50"
>
<div
... | 2302_79757062/crm | frontend/src/components/Settings/SidePanelLayoutBuilder.vue | Vue | agpl-3.0 | 5,893 |
<template>
<Dialog v-model="show" :options="{ size: '3xl' }">
<template #body-title>
<h3
class="flex items-center gap-2 text-2xl font-semibold leading-6 text-gray-900"
>
<div>{{ __('Edit Field Layout') }}</div>
<Badge
v-if="dirty"
:label="__('Not Saved')"
... | 2302_79757062/crm | frontend/src/components/Settings/SidePanelModal.vue | Vue | agpl-3.0 | 4,370 |
<template>
<SettingsPage doctype="Twilio Settings" class="p-8" />
</template>
<script setup>
import SettingsPage from '@/components/Settings/SettingsPage.vue'
</script>
| 2302_79757062/crm | frontend/src/components/Settings/TwilioSettings.vue | Vue | agpl-3.0 | 171 |
<template>
<SettingsPage doctype="WhatsApp Settings" class="p-8" />
</template>
<script setup>
import SettingsPage from '@/components/Settings/SettingsPage.vue'
</script> | 2302_79757062/crm | frontend/src/components/Settings/WhatsAppSettings.vue | Vue | agpl-3.0 | 172 |
<template>
<button
class="flex h-7 cursor-pointer items-center rounded text-gray-700 duration-300 ease-in-out focus:outline-none focus:transition-none focus-visible:rounded focus-visible:ring-2 focus-visible:ring-gray-400"
:class="isActive ? 'bg-white shadow-sm' : 'hover:bg-gray-100'"
@click="handleClick"... | 2302_79757062/crm | frontend/src/components/SidebarLink.vue | Vue | agpl-3.0 | 2,444 |
<template>
<Autocomplete
v-if="!sortValues?.size"
:options="options"
value=""
:placeholder="__('First Name')"
@change="(e) => setSort(e)"
>
<template #target="{ togglePopover }">
<Button :label="__('Sort')" @click="togglePopover()">
<template v-if="hideLabel">
<SortIc... | 2302_79757062/crm | frontend/src/components/SortBy.vue | Vue | agpl-3.0 | 8,865 |
<template>
<Avatar
:label="getUser(user).full_name"
:image="getUser(user).user_image"
v-bind="$attrs"
/>
</template>
<script setup>
import { usersStore } from '@/stores/users'
import { Avatar } from 'frappe-ui'
const props = defineProps({
user: {
type: String,
default: null,
},
})
const { ... | 2302_79757062/crm | frontend/src/components/UserAvatar.vue | Vue | agpl-3.0 | 355 |
<template>
<Dropdown :options="dropdownOptions" v-bind="$attrs">
<template v-slot="{ open }">
<button
class="flex h-12 items-center rounded-md py-2 duration-300 ease-in-out"
:class="
isCollapsed
? 'w-auto px-0'
: open
? 'w-52 bg-white px-2 shad... | 2302_79757062/crm | frontend/src/components/UserDropdown.vue | Vue | agpl-3.0 | 2,875 |
<template>
<div class="flex items-center">
<router-link
:to="{ name: routeName }"
class="px-0.5 py-1 text-lg font-medium focus:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 text-gray-600 hover:text-gray-700"
>
{{ __(routeName) }}
</router-link>
<span class="mx-0.5 tex... | 2302_79757062/crm | frontend/src/components/ViewBreadcrumbs.vue | Vue | agpl-3.0 | 3,028 |
<template>
<div
v-if="isMobileView"
class="flex flex-col justify-between gap-2 sm:px-5 px-3 py-4"
>
<div class="flex flex-col gap-2">
<div class="flex items-center justify-between gap-2 overflow-x-auto">
<div class="flex gap-2">
<Filter
v-model="list"
:doc... | 2302_79757062/crm | frontend/src/components/ViewControls.vue | Vue | agpl-3.0 | 29,972 |
<template>
<Combobox v-model="selectedValue" nullable v-slot="{ open: isComboboxOpen }">
<Popover class="w-full" v-model:show="showOptions">
<template #target="{ open: openPopover, togglePopover }">
<slot
name="target"
v-bind="{
open: openPopover,
togglePo... | 2302_79757062/crm | frontend/src/components/frappe-ui/Autocomplete.vue | Vue | agpl-3.0 | 8,055 |
<template>
<Menu as="div" class="relative inline-block text-left" v-slot="{ open }">
<Popover
:transition="dropdownTransition"
:show="open"
:placement="popoverPlacement"
>
<template #target="{ togglePopover }">
<MenuButton as="template">
<slot v-if="$slots.default" v-... | 2302_79757062/crm | frontend/src/components/frappe-ui/Dropdown.vue | Vue | agpl-3.0 | 5,120 |
<template>
<div ref="reference">
<div
ref="target"
:class="['flex', $attrs.class]"
@click="updatePosition"
@focusin="updatePosition"
@keydown="updatePosition"
@mouseover="onMouseover"
@mouseleave="onMouseleave"
>
<slot
name="target"
v-bind="{ tog... | 2302_79757062/crm | frontend/src/components/frappe-ui/Popover.vue | Vue | agpl-3.0 | 7,043 |
import { createResource } from 'frappe-ui'
import { computed, ref } from 'vue'
export const whatsappEnabled = ref(false)
export const isWhatsappInstalled = ref(false)
createResource({
url: 'crm.api.whatsapp.is_whatsapp_enabled',
cache: 'Is Whatsapp Enabled',
auto: true,
onSuccess: (data) => {
whatsappEnabl... | 2302_79757062/crm | frontend/src/composables/settings.js | JavaScript | agpl-3.0 | 882 |
import { getCurrentInstance } from 'vue'
export function is_twilio_enabled() {
const app = getCurrentInstance()
return app.appContext.config.globalProperties.is_twilio_enabled
}
| 2302_79757062/crm | frontend/src/composables/twilio.js | JavaScript | agpl-3.0 | 183 |
@import './assets/Inter/inter.css';
@import 'frappe-ui/src/style.css';
@layer components {
.prose-f {
@apply
break-all
max-w-none
prose
prose-code:break-all
prose-code:whitespace-pre-wrap
prose-img:border
prose-img:rounded-lg
prose-sm
prose-table:table-fixed
prose-td:border
prose-td:border-gra... | 2302_79757062/crm | frontend/src/index.css | CSS | agpl-3.0 | 468 |
import './index.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createDialog } from './utils/dialogs'
import { initSocket } from './socket'
import router from './router'
import translationPlugin from './translation'
import { posthogPlugin } from './telemetry'
import App from './App.vu... | 2302_79757062/crm | frontend/src/main.js | JavaScript | agpl-3.0 | 1,479 |
<template>
<LayoutHeader>
<template #left-header>
<ViewBreadcrumbs v-model="viewControls" routeName="Call Logs" />
</template>
<template #right-header>
<CustomActions
v-if="callLogsListView?.customListActions"
:actions="callLogsListView.customListActions"
/>
</templat... | 2302_79757062/crm | frontend/src/pages/CallLogs.vue | Vue | agpl-3.0 | 2,985 |
<template>
<LayoutHeader v-if="contact.data">
<template #left-header>
<Breadcrumbs :items="breadcrumbs">
<template #prefix="{ item }">
<Icon v-if="item.icon" :icon="item.icon" class="mr-2 h-4" />
</template>
</Breadcrumbs>
</template>
</LayoutHeader>
<div v-if="contac... | 2302_79757062/crm | frontend/src/pages/Contact.vue | Vue | agpl-3.0 | 13,925 |
<template>
<LayoutHeader>
<template #left-header>
<ViewBreadcrumbs v-model="viewControls" routeName="Contacts" />
</template>
<template #right-header>
<CustomActions
v-if="contactsListView?.customListActions"
:actions="contactsListView.customListActions"
/>
<Button
... | 2302_79757062/crm | frontend/src/pages/Contacts.vue | Vue | agpl-3.0 | 4,151 |
<template>
<LayoutHeader>
<template #left-header>
<Breadcrumbs :items="breadcrumbs" />
</template>
</LayoutHeader>
</template>
<script setup>
import LayoutHeader from '@/components/LayoutHeader.vue'
import { Breadcrumbs } from 'frappe-ui'
let title = 'Dashboard'
const breadcrumbs = [{ label: title, r... | 2302_79757062/crm | frontend/src/pages/Dashboard.vue | Vue | agpl-3.0 | 361 |
<template>
<LayoutHeader v-if="deal.data">
<template #left-header>
<Breadcrumbs :items="breadcrumbs">
<template #prefix="{ item }">
<Icon v-if="item.icon" :icon="item.icon" class="mr-2 h-4" />
</template>
</Breadcrumbs>
</template>
<template #right-header>
<Cust... | 2302_79757062/crm | frontend/src/pages/Deal.vue | Vue | agpl-3.0 | 21,328 |
<template>
<LayoutHeader>
<template #left-header>
<ViewBreadcrumbs v-model="viewControls" routeName="Deals" />
</template>
<template #right-header>
<CustomActions
v-if="dealsListView?.customListActions"
:actions="dealsListView.customListActions"
/>
<Button
v... | 2302_79757062/crm | frontend/src/pages/Deals.vue | Vue | agpl-3.0 | 16,377 |
<template>
<div>
<h1>Email Templates</h1>
<p>Here is a list of email templates</p>
</div>
</template>
| 2302_79757062/crm | frontend/src/pages/EmailTemplate.vue | Vue | agpl-3.0 | 114 |
<template>
<LayoutHeader>
<template #left-header>
<ViewBreadcrumbs v-model="viewControls" routeName="Email Templates" />
</template>
<template #right-header>
<CustomActions
v-if="emailTemplatesListView?.customListActions"
:actions="emailTemplatesListView.customListActions"
... | 2302_79757062/crm | frontend/src/pages/EmailTemplates.vue | Vue | agpl-3.0 | 4,384 |
<template>
<div
class="grid h-full place-items-center px-4 py-20 text-center text-lg text-gray-600"
>
<div class="space-y-2">
<div>Invalid page or not permitted to access</div>
<Button :route="{ name: 'Leads' }">
<template #prefix><LeadsIcon class="w-4" /></template>
Leads
... | 2302_79757062/crm | frontend/src/pages/InvalidPage.vue | Vue | agpl-3.0 | 445 |
<template>
<LayoutHeader v-if="lead.data">
<template #left-header>
<Breadcrumbs :items="breadcrumbs">
<template #prefix="{ item }">
<Icon v-if="item.icon" :icon="item.icon" class="mr-2 h-4" />
</template>
</Breadcrumbs>
</template>
<template #right-header>
<Cust... | 2302_79757062/crm | frontend/src/pages/Lead.vue | Vue | agpl-3.0 | 18,925 |
<template>
<LayoutHeader>
<template #left-header>
<ViewBreadcrumbs v-model="viewControls" routeName="Leads" />
</template>
<template #right-header>
<CustomActions
v-if="leadsListView?.customListActions"
:actions="leadsListView.customListActions"
/>
<Button
v... | 2302_79757062/crm | frontend/src/pages/Leads.vue | Vue | agpl-3.0 | 16,974 |
<template>
<LayoutHeader v-if="deal.data">
<header
class="relative flex h-12 items-center justify-between gap-2 py-2.5 pl-5"
>
<Breadcrumbs :items="breadcrumbs">
<template #prefix="{ item }">
<Icon v-if="item.icon" :icon="item.icon" class="mr-2 h-4" />
</template>
<... | 2302_79757062/crm | frontend/src/pages/MobileDeal.vue | Vue | agpl-3.0 | 18,522 |
<template>
<LayoutHeader v-if="lead.data">
<header
class="relative flex h-12 items-center justify-between gap-2 py-2.5 pl-5"
>
<Breadcrumbs :items="breadcrumbs">
<template #prefix="{ item }">
<Icon v-if="item.icon" :icon="item.icon" class="mr-2 h-4" />
</template>
<... | 2302_79757062/crm | frontend/src/pages/MobileLead.vue | Vue | agpl-3.0 | 13,888 |
<template>
<LayoutHeader>
<template #left-header>
<Breadcrumbs
:items="[
{ label: __('Notifications'), route: { name: 'Notifications' } },
]"
/>
</template>
<template #right-header>
<Tooltip :text="__('Mark all as read')">
<div>
<Button
... | 2302_79757062/crm | frontend/src/pages/MobileNotification.vue | Vue | agpl-3.0 | 3,591 |
<template>
<LayoutHeader>
<template #left-header>
<ViewBreadcrumbs v-model="viewControls" routeName="Notes" />
</template>
<template #right-header>
<Button variant="solid" :label="__('Create')" @click="createNote">
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
... | 2302_79757062/crm | frontend/src/pages/Notes.vue | Vue | agpl-3.0 | 4,541 |
<template>
<LayoutHeader v-if="organization.doc">
<template #left-header>
<Breadcrumbs :items="breadcrumbs">
<template #prefix="{ item }">
<Icon v-if="item.icon" :icon="item.icon" class="mr-2 h-4" />
</template>
</Breadcrumbs>
</template>
</LayoutHeader>
<div v-if="or... | 2302_79757062/crm | frontend/src/pages/Organization.vue | Vue | agpl-3.0 | 15,670 |
<template>
<LayoutHeader>
<template #left-header>
<ViewBreadcrumbs v-model="viewControls" routeName="Organizations" />
</template>
<template #right-header>
<CustomActions
v-if="organizationsListView?.customListActions"
:actions="organizationsListView.customListActions"
/>... | 2302_79757062/crm | frontend/src/pages/Organizations.vue | Vue | agpl-3.0 | 4,338 |
<template>
<LayoutHeader>
<template #left-header>
<ViewBreadcrumbs v-model="viewControls" routeName="Tasks" />
</template>
<template #right-header>
<CustomActions
v-if="tasksListView?.customListActions"
:actions="tasksListView.customListActions"
/>
<Button variant="... | 2302_79757062/crm | frontend/src/pages/Tasks.vue | Vue | agpl-3.0 | 10,593 |
import { createRouter, createWebHistory } from 'vue-router'
import { userResource } from '@/stores/user'
import { sessionStore } from '@/stores/session'
const routes = [
{
path: '/',
redirect: { name: 'Leads' },
name: 'Home',
},
{
path: '/notifications',
name: 'Notifications',
component: ... | 2302_79757062/crm | frontend/src/router.js | JavaScript | agpl-3.0 | 3,901 |
import { io } from 'socket.io-client'
import { socketio_port } from '../../../../sites/common_site_config.json'
import { getCachedListResource } from 'frappe-ui/src/resources/listResource'
import { getCachedResource } from 'frappe-ui/src/resources/resources'
export function initSocket() {
let host = window.location.... | 2302_79757062/crm | frontend/src/socket.js | JavaScript | agpl-3.0 | 873 |
import { defineStore } from 'pinia'
import { createResource } from 'frappe-ui'
import { reactive } from 'vue'
export const contactsStore = defineStore('crm-contacts', () => {
let contactsByPhone = reactive({})
let contactsByName = reactive({})
let leadContactsByPhone = reactive({})
let allContacts = reactive([... | 2302_79757062/crm | frontend/src/stores/contacts.js | JavaScript | agpl-3.0 | 2,373 |
import { defineStore } from 'pinia'
import { getCurrentInstance, ref } from 'vue'
export const globalStore = defineStore('crm-global', () => {
const app = getCurrentInstance()
const { $dialog, $socket } = app.appContext.config.globalProperties
let twilioEnabled = ref(false)
let callMethod = () => {}
functi... | 2302_79757062/crm | frontend/src/stores/global.js | JavaScript | agpl-3.0 | 620 |
import { defineStore } from 'pinia'
import { createResource } from 'frappe-ui'
import { computed, ref } from 'vue'
export const notificationsStore = defineStore('crm-notifications', () => {
let visible = ref(false)
const notifications = createResource({
url: 'crm.api.notifications.get_notifications',
init... | 2302_79757062/crm | frontend/src/stores/notifications.js | JavaScript | agpl-3.0 | 1,072 |
import { defineStore } from 'pinia'
import { createResource } from 'frappe-ui'
import { reactive } from 'vue'
export const organizationsStore = defineStore('crm-organizations', () => {
let organizationsByName = reactive({})
const organizations = createResource({
url: 'crm.api.session.get_organizations',
c... | 2302_79757062/crm | frontend/src/stores/organizations.js | JavaScript | agpl-3.0 | 833 |
import { defineStore } from 'pinia'
import { createResource } from 'frappe-ui'
import { userResource } from './user'
import router from '@/router'
import { ref, computed } from 'vue'
export const sessionStore = defineStore('crm-session', () => {
function sessionUser() {
let cookies = new URLSearchParams(document... | 2302_79757062/crm | frontend/src/stores/session.js | JavaScript | agpl-3.0 | 1,091 |
import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue'
import { capture } from '@/telemetry'
import { defineStore } from 'pinia'
import { createListResource } from 'frappe-ui'
import { reactive, h } from 'vue'
export const statusesStore = defineStore('crm-statuses', () => {
let leadStatusesByName = reactiv... | 2302_79757062/crm | frontend/src/stores/statuses.js | JavaScript | agpl-3.0 | 3,544 |
import router from '@/router'
import { createResource } from 'frappe-ui'
export const userResource = createResource({
url: 'frappe.auth.get_logged_user',
cache: 'User',
onError(error) {
if (error && error.exc_type === 'AuthenticationError') {
router.push({ name: 'Home' })
}
},
})
| 2302_79757062/crm | frontend/src/stores/user.js | JavaScript | agpl-3.0 | 304 |
import { defineStore } from 'pinia'
import { createResource } from 'frappe-ui'
import { sessionStore } from './session'
import { reactive } from 'vue'
import { useRouter } from 'vue-router'
export const usersStore = defineStore('crm-users', () => {
const session = sessionStore()
let usersByName = reactive({})
c... | 2302_79757062/crm | frontend/src/stores/users.js | JavaScript | agpl-3.0 | 1,370 |
import { defineStore } from 'pinia'
import { createResource } from 'frappe-ui'
import { reactive, ref } from 'vue'
export const viewsStore = defineStore('crm-views', (doctype) => {
let viewsByName = reactive({})
let pinnedViews = ref([])
let publicViews = ref([])
let defaultView = ref({})
// Views
const v... | 2302_79757062/crm | frontend/src/stores/views.js | JavaScript | agpl-3.0 | 1,573 |
import '../../../frappe/frappe/public/js/lib/posthog.js'
import { createResource } from 'frappe-ui'
declare global {
interface Window {
posthog: any
}
}
type PosthogSettings = {
posthog_project_id: string
posthog_host: string
enable_telemetry: boolean
telemetry_site_age: number
}
interface CaptureOptio... | 2302_79757062/crm | frontend/src/telemetry.ts | TypeScript | agpl-3.0 | 2,166 |
import { createResource } from 'frappe-ui'
export default function translationPlugin(app) {
app.config.globalProperties.__ = translate
window.__ = translate
if (!window.translatedMessages) fetchTranslations()
}
function format(message, replace) {
return message.replace(/{(\d+)}/g, function (match, number) {
... | 2302_79757062/crm | frontend/src/translation.js | JavaScript | agpl-3.0 | 1,162 |
import {
secondsToDuration,
dateFormat,
dateTooltipFormat,
timeAgo,
} from '@/utils'
import { usersStore } from '@/stores/users'
import { contactsStore } from '@/stores/contacts'
const { getUser } = usersStore()
const { getContact, getLeadContact } = contactsStore()
export function getCallLogDetail(row, log) ... | 2302_79757062/crm | frontend/src/utils/callLog.js | JavaScript | agpl-3.0 | 2,140 |
import { Dialog, ErrorMessage } from 'frappe-ui'
import { reactive, ref } from 'vue'
let dialogs = ref([])
export let Dialogs = {
name: 'Dialogs',
render() {
return dialogs.value.map((dialog) => (
<Dialog
options={dialog}
modelValue={dialog.show}
onUpdate:modelValue={(val) => (di... | 2302_79757062/crm | frontend/src/utils/dialogs.jsx | JavaScript | agpl-3.0 | 1,005 |
import TaskStatusIcon from '@/components/Icons/TaskStatusIcon.vue'
import TaskPriorityIcon from '@/components/Icons/TaskPriorityIcon.vue'
import { useDateFormat, useTimeAgo } from '@vueuse/core'
import { usersStore } from '@/stores/users'
import { gemoji } from 'gemoji'
import { toast } from 'frappe-ui'
import { h } fr... | 2302_79757062/crm | frontend/src/utils/index.js | JavaScript | agpl-3.0 | 7,182 |
import ListIcon from '@/components/Icons/ListIcon.vue'
import GroupByIcon from '@/components/Icons/GroupByIcon.vue'
import KanbanIcon from '@/components/Icons/KanbanIcon.vue'
import { viewsStore } from '@/stores/views'
import { markRaw } from 'vue'
const { getView: getViewDetails } = viewsStore()
function defaultView... | 2302_79757062/crm | frontend/src/utils/view.js | JavaScript | agpl-3.0 | 899 |
module.exports = {
presets: [require('frappe-ui/src/utils/tailwind.config')],
content: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}',
'./node_modules/frappe-ui/src/components/**/*.{vue,js,ts,jsx,tsx}',
'../node_modules/frappe-ui/src/components/**/*.{vue,js,ts,jsx,tsx}',
],
safelist: [
{... | 2302_79757062/crm | frontend/tailwind.config.js | JavaScript | agpl-3.0 | 464 |
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import path from 'path'
import frappeui from 'frappe-ui/vite'
import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
frappeui(),
vue({... | 2302_79757062/crm | frontend/vite.config.js | JavaScript | agpl-3.0 | 2,432 |
#!bin/bash
set -e
if [[ -f "/workspaces/frappe_codespace/frappe-bench/apps/frappe" ]]
then
echo "Bench already exists, skipping init"
exit 0
fi
rm -rf /workspaces/frappe_codespace/.git
source /home/frappe/.nvm/nvm.sh
nvm alias default 18
nvm use 18
echo "nvm use 18" >> ~/.bashrc
cd /workspace
bench init \... | 2302_79757062/crm | scripts/init.sh | Shell | agpl-3.0 | 955 |
import json
import time
import uuid
import re
import os
import sys
import requests
import hashlib
import hmac
import base64
import argparse
from datetime import datetime
from concurrent.futures import ThreadPoolExecutor
import logging
from colorama import Fore, Style, init
# 初始化 colorama
init(autorese... | 2302_80180283/aliyunTSfer | main.py | Python | unknown | 17,523 |
FROM crawlabteam/crawlab-backend:latest AS backend-build
FROM crawlabteam/crawlab-frontend:latest AS frontend-build
FROM crawlabteam/crawlab-public-plugins:latest AS public-plugins-build
# images
FROM crawlabteam/crawlab-base:latest
# add files
COPY ./backend/conf /app/backend/conf
COPY ./nginx /app/nginx
COPY ./bi... | 2302_79757062/crawlab | Dockerfile | Dockerfile | bsd-3-clause | 771 |
FROM golang:1.18 AS build
WORKDIR /go/src/app
COPY . .
ENV GO111MODULE on
#ENV GOPROXY https://goproxy.io
RUN go mod tidy \
&& go install -v ./...
FROM alpine:3.14
# copy files
COPY --from=build /go/bin/crawlab /go/bin/crawlab
| 2302_79757062/crawlab | backend/Dockerfile | Dockerfile | bsd-3-clause | 234 |
package main
import (
"github.com/crawlab-team/crawlab-core/cmd"
)
func main() {
_ = cmd.Execute()
}
| 2302_79757062/crawlab | backend/main.go | Go | bsd-3-clause | 105 |
package apps
import (
"context"
"errors"
"github.com/apex/log"
"github.com/crawlab-team/crawlab/core/controllers"
"github.com/crawlab-team/crawlab/core/interfaces"
"github.com/crawlab-team/crawlab/core/middlewares"
"github.com/crawlab-team/crawlab/core/routes"
"github.com/gin-gonic/gin"
"github.com/spf13/vipe... | 2302_79757062/crawlab | core/apps/api.go | Go | bsd-3-clause | 2,324 |
package apps
import (
"context"
"errors"
"github.com/apex/log"
"github.com/crawlab-team/crawlab/core/controllers"
"github.com/crawlab-team/crawlab/core/interfaces"
"github.com/crawlab-team/crawlab/core/middlewares"
"github.com/gin-gonic/gin"
"github.com/spf13/viper"
"net"
"net/http"
"time"
)
func init() {
... | 2302_79757062/crawlab | core/apps/api_v2.go | Go | bsd-3-clause | 2,236 |
package apps
import (
"bufio"
"fmt"
"github.com/crawlab-team/crawlab/core/interfaces"
"github.com/crawlab-team/crawlab/core/sys_exec"
"github.com/crawlab-team/crawlab/core/utils"
"github.com/crawlab-team/crawlab/trace"
"github.com/imroc/req"
"github.com/spf13/viper"
"os"
"os/exec"
"strings"
"time"
)
type ... | 2302_79757062/crawlab | core/apps/docker.go | Go | bsd-3-clause | 4,406 |
package apps
import (
"github.com/crawlab-team/crawlab/core/interfaces"
"github.com/gin-gonic/gin"
"net/http"
)
type App interface {
Init()
Start()
Wait()
Stop()
}
type ApiApp interface {
App
GetGinEngine() (engine *gin.Engine)
GetHttpServer() (svr *http.Server)
Ready() (ok bool)
}
type NodeApp interface... | 2302_79757062/crawlab | core/apps/interfaces.go | Go | bsd-3-clause | 583 |
package apps
import (
"fmt"
"github.com/apex/log"
"github.com/crawlab-team/crawlab/core/config"
"github.com/crawlab-team/crawlab/core/controllers"
"github.com/crawlab-team/crawlab/core/interfaces"
"github.com/crawlab-team/crawlab/core/node/service"
"github.com/crawlab-team/crawlab/core/utils"
"github.com/spf13... | 2302_79757062/crawlab | core/apps/server.go | Go | bsd-3-clause | 2,513 |
package apps
import (
"fmt"
"github.com/apex/log"
"github.com/crawlab-team/crawlab/core/config"
"github.com/crawlab-team/crawlab/core/interfaces"
"github.com/crawlab-team/crawlab/core/node/service"
"github.com/crawlab-team/crawlab/core/utils"
"github.com/spf13/viper"
"net/http"
_ "net/http/pprof"
)
type Serv... | 2302_79757062/crawlab | core/apps/server_v2.go | Go | bsd-3-clause | 2,074 |
package apps
import (
"fmt"
"github.com/apex/log"
"github.com/crawlab-team/crawlab/core/color"
"github.com/crawlab-team/crawlab/core/config"
"github.com/crawlab-team/crawlab/core/container"
grpcclient "github.com/crawlab-team/crawlab/core/grpc/client"
grpcserver "github.com/crawlab-team/crawlab/core/grpc/server... | 2302_79757062/crawlab | core/apps/utils.go | Go | bsd-3-clause | 2,487 |
package cmd
import (
"github.com/spf13/cobra"
)
var (
// Used for flags.
cfgFile string
rootCmd = &cobra.Command{
Use: "crawlab",
Short: "CLI tool for Crawlab",
Long: `The CLI tool is for controlling against Crawlab.
Crawlab is a distributed web crawler and task admin platform
aimed at making web crawlin... | 2302_79757062/crawlab | core/cmd/root.go | Go | bsd-3-clause | 636 |
package cmd
import (
"github.com/crawlab-team/crawlab/core/apps"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(serverCmd)
}
var serverCmd = &cobra.Command{
Use: "server",
Aliases: []string{"s"},
Short: "Start Crawlab server",
Long: `Start Crawlab node server that can serve as API, task ... | 2302_79757062/crawlab | core/cmd/server.go | Go | bsd-3-clause | 507 |
package color
import (
"encoding/hex"
"encoding/json"
"github.com/crawlab-team/crawlab/core/data"
"github.com/crawlab-team/crawlab/core/entity"
"github.com/crawlab-team/crawlab/core/errors"
"github.com/crawlab-team/crawlab/core/interfaces"
"github.com/crawlab-team/crawlab/trace"
"math/rand"
"strconv"
"string... | 2302_79757062/crawlab | core/color/service.go | Go | bsd-3-clause | 1,667 |