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 |
|---|---|---|---|---|---|
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("CRM Deal", {
refresh(frm) {
frm.add_web_link(`/crm/deals/${frm.doc.name}`, __("Open in Portal"));
},
});
| 2302_79757062/crm | crm/fcrm/doctype/crm_deal/crm_deal.js | JavaScript | agpl-3.0 | 250 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import json
import frappe
from frappe import _
from frappe.desk.form.assign_to import add as assign
from frappe.model.document import Document
from crm.fcrm.doctype.crm_service_level_agreement.utils ... | 2302_79757062/crm | crm/fcrm/doctype/crm_deal/crm_deal.py | Python | agpl-3.0 | 7,793 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Deal Status", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_deal_status/crm_deal_status.js | JavaScript | agpl-3.0 | 198 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMDealStatus(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_deal_status/crm_deal_status.py | Python | agpl-3.0 | 218 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("CRM Form Script", {
refresh(frm) {
frm.set_query("dt", {
filters: {
istable: 0,
},
});
if (frm.doc.is_standard && !frappe.boot.developer_mode) {
frm.disable_f... | 2302_79757062/crm | crm/fcrm/doctype/crm_form_script/crm_form_script.js | JavaScript | agpl-3.0 | 1,289 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
class CRMFormScript(Document):
def validate(self):
in_user_env = not (
frappe.flags.in_install
or frappe.flags.... | 2302_79757062/crm | crm/fcrm/doctype/crm_form_script/crm_form_script.py | Python | agpl-3.0 | 1,202 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMHoliday(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_holiday/crm_holiday.py | Python | agpl-3.0 | 215 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Holiday List", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.js | JavaScript | agpl-3.0 | 199 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMHolidayList(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.py | Python | agpl-3.0 | 219 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Industry", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_industry/crm_industry.js | JavaScript | agpl-3.0 | 195 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMIndustry(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_industry/crm_industry.py | Python | agpl-3.0 | 216 |
// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("CRM Invitation", {
refresh(frm) {
if (frm.doc.status != "Accepted") {
frm.add_custom_button(__("Accept Invitation"), () => {
return frm.call("accept_invitation");
});... | 2302_79757062/crm | crm/fcrm/doctype/crm_invitation/crm_invitation.js | JavaScript | agpl-3.0 | 333 |
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
class CRMInvitation(Document):
def before_insert(self):
frappe.utils.validate_email_address(self.email, True)
self.key = frappe.generat... | 2302_79757062/crm | crm/fcrm/doctype/crm_invitation/crm_invitation.py | Python | agpl-3.0 | 2,207 |
import frappe
from frappe import _
from crm.api.doc import get_fields_meta, get_assigned_users
from crm.fcrm.doctype.crm_form_script.crm_form_script import get_form_script
@frappe.whitelist()
def get_lead(name):
Lead = frappe.qb.DocType("CRM Lead")
query = frappe.qb.from_(Lead).select("*").where(Lead.name == name)... | 2302_79757062/crm | crm/fcrm/doctype/crm_lead/api.py | Python | agpl-3.0 | 683 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("CRM Lead", {
refresh(frm) {
frm.add_web_link(`/crm/leads/${frm.doc.name}`, __("Open in Portal"));
},
});
| 2302_79757062/crm | crm/fcrm/doctype/crm_lead/crm_lead.js | JavaScript | agpl-3.0 | 250 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import json
import frappe
from frappe import _
from frappe.desk.form.assign_to import add as assign
from frappe.model.document import Document
from frappe.utils import has_gravatar, validate_email_ad... | 2302_79757062/crm | crm/fcrm/doctype/crm_lead/crm_lead.py | Python | agpl-3.0 | 9,404 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Lead Source", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_lead_source/crm_lead_source.js | JavaScript | agpl-3.0 | 198 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMLeadSource(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_lead_source/crm_lead_source.py | Python | agpl-3.0 | 218 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Lead Status", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_lead_status/crm_lead_status.js | JavaScript | agpl-3.0 | 198 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMLeadStatus(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_lead_status/crm_lead_status.py | Python | agpl-3.0 | 218 |
// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Notification", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_notification/crm_notification.js | JavaScript | agpl-3.0 | 199 |
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
class CRMNotification(Document):
def on_update(self):
frappe.publish_realtime("crm_notification")
| 2302_79757062/crm | crm/fcrm/doctype/crm_notification/crm_notification.py | Python | agpl-3.0 | 289 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Organization", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_organization/crm_organization.js | JavaScript | agpl-3.0 | 199 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
class CRMOrganization(Document):
@staticmethod
def default_list_data():
columns = [
{
'label': 'Organization',
'type': '... | 2302_79757062/crm | crm/fcrm/doctype/crm_organization/crm_organization.py | Python | agpl-3.0 | 1,086 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMServiceDay(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_service_day/crm_service_day.py | Python | agpl-3.0 | 218 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("CRM Service Level Agreement", {
validate(frm) {
let default_priority_count = 0;
frm.doc.priorities.forEach(function (row) {
if (row.default_priority) {
default_priorit... | 2302_79757062/crm | crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js | JavaScript | agpl-3.0 | 482 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from datetime import timedelta
from frappe.model.document import Document
from frappe.utils import (
add_to_date,
get_datetime,
get_weekdays,
getdate,
now_datet... | 2302_79757062/crm | crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.py | Python | agpl-3.0 | 6,621 |
import frappe
from frappe.model.document import Document
from frappe.query_builder import JoinType
from frappe.utils.safe_exec import get_safe_globals
from frappe.utils import now_datetime
from pypika import Criterion
def get_sla(doc: Document) -> Document:
"""
Get Service Level Agreement for `doc`
:param doc: Lea... | 2302_79757062/crm | crm/fcrm/doctype/crm_service_level_agreement/utils.py | Python | agpl-3.0 | 1,612 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Service Level Priority", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.js | JavaScript | agpl-3.0 | 209 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMServiceLevelPriority(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.py | Python | agpl-3.0 | 228 |
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from datetime import datetime
from frappe.utils import add_to_date, get_datetime
from frappe.model.document import Document
class CRMStatusChangeLog(Document):
pass
def get_duration(... | 2302_79757062/crm | crm/fcrm/doctype/crm_status_change_log/crm_status_change_log.py | Python | agpl-3.0 | 1,450 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Task", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_task/crm_task.js | JavaScript | agpl-3.0 | 191 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMTask(Document):
@staticmethod
def default_list_data():
columns = [
{
'label': 'Title',
'type': 'Data',
'key': '... | 2302_79757062/crm | crm/fcrm/doctype/crm_task/crm_task.py | Python | agpl-3.0 | 1,282 |
// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Territory", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_territory/crm_territory.js | JavaScript | agpl-3.0 | 196 |
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMTerritory(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/crm_territory/crm_territory.py | Python | agpl-3.0 | 217 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM View Settings", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/crm_view_settings/crm_view_settings.js | JavaScript | agpl-3.0 | 200 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import json
import frappe
from frappe.model.document import Document, get_controller
from frappe.utils import parse_json
class CRMViewSettings(Document):
pass
@frappe.whitelist()
def create(view):
... | 2302_79757062/crm | crm/fcrm/doctype/crm_view_settings/crm_view_settings.py | Python | agpl-3.0 | 6,278 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("ERPNext CRM Settings", {
refresh(frm) {
if (!frm.doc.enabled) return;
frm.add_custom_button(__("Reset ERPNext Form Script"), () => {
frappe.confirm(
__(
"Are you ... | 2302_79757062/crm | crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.js | JavaScript | agpl-3.0 | 652 |
# Copyright (c) 2024, Frappe and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.custom.doctype.property_setter.property_setter import make_property_setter
from frappe.model.document import Document
from frappe.frappeclient import FrappeClient
from frappe.u... | 2302_79757062/crm | crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py | Python | agpl-3.0 | 9,293 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("FCRM Note", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/fcrm_note/fcrm_note.js | JavaScript | agpl-3.0 | 192 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class FCRMNote(Document):
@staticmethod
def default_list_data():
rows = [
"name",
"title",
"content",
"reference_doctype",
... | 2302_79757062/crm | crm/fcrm/doctype/fcrm_note/fcrm_note.py | Python | agpl-3.0 | 414 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Twilio Agents", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/twilio_agents/twilio_agents.js | JavaScript | agpl-3.0 | 196 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class TwilioAgents(Document):
pass
| 2302_79757062/crm | crm/fcrm/doctype/twilio_agents/twilio_agents.py | Python | agpl-3.0 | 217 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Twilio Settings", {
// refresh(frm) {
// },
// });
| 2302_79757062/crm | crm/fcrm/doctype/twilio_settings/twilio_settings.js | JavaScript | agpl-3.0 | 198 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
from frappe import _
from twilio.rest import Client
class TwilioSettings(Document):
friendly_resource_name = "Frappe CRM" # System creates T... | 2302_79757062/crm | crm/fcrm/doctype/twilio_settings/twilio_settings.py | Python | agpl-3.0 | 2,952 |
app_name = "crm"
app_title = "Frappe CRM"
app_publisher = "Frappe Technologies Pvt. Ltd."
app_description = "Kick-ass Open Source CRM"
app_email = "shariq@frappe.io"
app_license = "AGPLv3"
app_icon_url = "/assets/crm/manifest/apple-icon-180.png"
app_icon_title = "CRM"
app_icon_route = "/crm"
# Apps
# -----------------... | 2302_79757062/crm | crm/hooks.py | Python | agpl-3.0 | 5,845 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import click
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
def before_install():
pass
def after_install():
add_default_lead_st... | 2302_79757062/crm | crm/install.py | Python | agpl-3.0 | 8,722 |
from werkzeug.wrappers import Response
import json
import frappe
from frappe import _
from .twilio_handler import Twilio, IncomingCall, TwilioCallDetails
from .utils import parse_mobile_no
@frappe.whitelist()
def is_enabled():
return frappe.db.get_single_value("Twilio Settings", "enabled")
@frappe.whitelist()
def g... | 2302_79757062/crm | crm/integrations/twilio/api.py | Python | agpl-3.0 | 5,814 |
from twilio.rest import Client as TwilioClient
from twilio.jwt.access_token import AccessToken
from twilio.jwt.access_token.grants import VoiceGrant
from twilio.twiml.voice_response import VoiceResponse, Dial
from .utils import get_public_url, merge_dicts
import frappe
from frappe import _
from frappe.utils.password i... | 2302_79757062/crm | crm/integrations/twilio/twilio_handler.py | Python | agpl-3.0 | 8,907 |
from frappe.utils import get_url
def get_public_url(path: str=None):
return get_url().split(":8", 1)[0] + path
def merge_dicts(d1: dict, d2: dict):
"""Merge dicts of dictionaries.
>>> merge_dicts(
{'name1': {'age': 20}, 'name2': {'age': 30}},
{'name1': {'phone': '+xxx'}, 'name2': {'phone': '+yyy'}, 'name3': ... | 2302_79757062/crm | crm/integrations/twilio/utils.py | Python | agpl-3.0 | 719 |
# import frappe
from frappe import _
from frappe.contacts.doctype.contact.contact import Contact
class CustomContact(Contact):
@staticmethod
def default_list_data():
columns = [
{
'label': 'Name',
'type': 'Data',
'key': 'full_name',
'width': '17rem',
},
{
'label': 'Email',
'type':... | 2302_79757062/crm | crm/overrides/contact.py | Python | agpl-3.0 | 864 |
# import frappe
from frappe import _
from frappe.email.doctype.email_template.email_template import EmailTemplate
class CustomEmailTemplate(EmailTemplate):
@staticmethod
def default_list_data():
columns = [
{
'label': 'Name',
'type': 'Data',
'key': 'name',
'width': '17rem',
},
{
'labe... | 2302_79757062/crm | crm/overrides/email_template.py | Python | agpl-3.0 | 913 |
from crm.install import add_default_fields_layout
def execute():
add_default_fields_layout() | 2302_79757062/crm | crm/patches/v1_0/create_default_fields_layout.py | Python | agpl-3.0 | 98 |
import json
import frappe
def execute():
if not frappe.db.exists("CRM Fields Layout", {"dt": "CRM Lead", "type": "Side Panel"}):
create_doctype_fields_layout("CRM Lead")
if not frappe.db.exists("CRM Fields Layout", {"dt": "CRM Deal", "type": "Side Panel"}):
create_doctype_fields_layout("CRM Deal")
def create_d... | 2302_79757062/crm | crm/patches/v1_0/create_default_sidebar_fields_layout.py | Python | agpl-3.0 | 1,700 |
from crm.install import add_email_template_custom_fields
def execute():
add_email_template_custom_fields() | 2302_79757062/crm | crm/patches/v1_0/create_email_template_custom_fields.py | Python | agpl-3.0 | 112 |
import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if not frappe.db.exists("DocType", "FCRM Note"):
frappe.flags.ignore_route_conflict_validation = True
rename_doc("DocType", "CRM Note", "FCRM Note")
frappe.flags.ignore_route_conflict_validation = False
frappe.reload_doctype("FCRM ... | 2302_79757062/crm | crm/patches/v1_0/move_crm_note_data_to_fcrm_note.py | Python | agpl-3.0 | 943 |
import json
import frappe
def execute():
if not frappe.db.exists("CRM Fields Layout", "CRM Deal-Quick Entry"):
return
deal = frappe.db.get_value("CRM Fields Layout", "CRM Deal-Quick Entry", "layout")
layout = json.loads(deal)
for section in layout:
if section.get("label") in ["Select ... | 2302_79757062/crm | crm/patches/v1_0/update_deal_quick_entry_layout.py | Python | agpl-3.0 | 536 |
<h2>You have been invited to join Frappe CRM</h2>
<p>
<a class="btn btn-primary" href="{{ invite_link }}">Accept Invitation</a>
</p>
| 2302_79757062/crm | crm/templates/emails/crm_invitation.html | HTML | agpl-3.0 | 134 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import click
import frappe
def before_uninstall():
delete_email_template_custom_fields()
def delete_email_template_custom_fields():
if frappe.get_meta("Email Template").has_fie... | 2302_79757062/crm | crm/uninstall.py | Python | agpl-3.0 | 617 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
# GNU GPLv3 License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils.telemetry import capture
no_cache = 1
def get_context():
csrf_token = frappe.sessions.get_csrf_token()
frappe.db.commit()
cont... | 2302_79757062/crm | crm/www/crm.py | Python | agpl-3.0 | 1,033 |
#!bin/bash
if [ -d "/home/frappe/frappe-bench/apps/frappe" ]; then
echo "Bench already exists, skipping init"
cd frappe-bench
bench start
else
echo "Creating new bench..."
fi
bench init --skip-redis-config-generation frappe-bench
cd frappe-bench
# Use containers instead of localhost
bench set-mariad... | 2302_79757062/crm | docker/init.sh | Shell | agpl-3.0 | 1,078 |
<!DOCTYPE html>
<html class="h-full" lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover maximum-scale=1.0, user-scalable=no"
/>
<title>Frappe CRM</title>
<meta name="mobile-web-app-capable" content="yes" />
<me... | 2302_79757062/crm | frontend/index.html | HTML | agpl-3.0 | 8,190 |
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
| 2302_79757062/crm | frontend/postcss.config.js | JavaScript | agpl-3.0 | 82 |
<template>
<Layout v-if="session().isLoggedIn">
<router-view />
</Layout>
<Dialogs />
<Toasts />
</template>
<script setup>
import { Dialogs } from '@/utils/dialogs'
import { sessionStore as session } from '@/stores/session'
import { Toasts } from 'frappe-ui'
import { computed, defineAsyncComponent } from ... | 2302_79757062/crm | frontend/src/App.vue | Vue | agpl-3.0 | 671 |
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("Inter-Thin.woff2?v=3.12") format("woff2"),
url("Inter-Thin.woff?v=3.12") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 100;
font-display: swap;
src:... | 2302_79757062/crm | frontend/src/assets/Inter/inter.css | CSS | agpl-3.0 | 4,006 |
<template>
<ActivityHeader
v-model="tabIndex"
v-model:showWhatsappTemplates="showWhatsappTemplates"
:tabs="tabs"
:title="title"
:doc="doc"
:emailBox="emailBox"
:whatsappBox="whatsappBox"
:modalRef="modalRef"
/>
<FadedScrollableDiv
:maskHeight="30"
class="flex flex-col flex-... | 2302_79757062/crm | frontend/src/components/Activities/Activities.vue | Vue | agpl-3.0 | 23,902 |
<template>
<div
class="mx-4 my-3 flex items-center justify-between text-lg font-medium sm:mx-10 sm:mb-4 sm:mt-8"
>
<div class="flex h-8 items-center text-xl font-semibold text-gray-800">
{{ __(title) }}
</div>
<Button
v-if="title == 'Emails'"
variant="solid"
@click="emailBox.... | 2302_79757062/crm | frontend/src/components/Activities/ActivityHeader.vue | Vue | agpl-3.0 | 4,567 |
<template>
<TaskModal
v-model="showTaskModal"
v-model:reloadTasks="activities"
:task="task"
:doctype="doctype"
:doc="doc.data?.name"
/>
<NoteModal
v-model="showNoteModal"
v-model:reloadNotes="activities"
:note="note"
:doctype="doctype"
:doc="doc.data?.name"
/>
</template>... | 2302_79757062/crm | frontend/src/components/Activities/AllModals.vue | Vue | agpl-3.0 | 1,523 |
<template>
<div class="w-full text-sm text-gray-600">
<div class="flex items-center gap-2">
<Button variant="ghost" @click="playPause">
<template #icon>
<PlayIcon v-if="isPaused" class="size-4 text-gray-600" />
<PauseIcon v-else class="size-4 text-gray-600" />
</template>... | 2302_79757062/crm | frontend/src/components/Activities/AudioPlayer.vue | Vue | agpl-3.0 | 6,610 |
<template>
<div>
<div class="mb-1 flex items-center justify-stretch gap-2 py-1 text-base">
<div class="inline-flex items-center flex-wrap gap-1 text-gray-600">
<Avatar
:image="activity.caller.image"
:label="activity.caller.label"
size="md"
/>
<span class... | 2302_79757062/crm | frontend/src/components/Activities/CallArea.vue | Vue | agpl-3.0 | 3,497 |
<template>
<div :id="activity.name">
<div class="mb-1 flex items-center justify-stretch gap-2 py-1 text-base">
<div class="inline-flex items-center flex-wrap gap-1 text-gray-600">
<UserAvatar class="mr-1" :user="activity.owner" size="md" />
<span class="font-medium text-gray-800">
... | 2302_79757062/crm | frontend/src/components/Activities/CommentArea.vue | Vue | agpl-3.0 | 1,583 |
<template>
<div
class="cursor-pointer flex flex-col rounded-md shadow bg-white px-3 py-1.5 text-base transition-all duration-300 ease-in-out"
>
<div class="-mb-0.5 flex items-center justify-between gap-2 truncate">
<div class="flex items-center gap-2 truncate">
<span>{{ activity.data.sender_fu... | 2302_79757062/crm | frontend/src/components/Activities/EmailArea.vue | Vue | agpl-3.0 | 4,528 |
<template>
<iframe
ref="iframeRef"
:srcdoc="htmlContent"
class="prose-f block h-10 max-h-[500px] w-full"
/>
</template>
<script setup>
import { ref, watch } from 'vue'
const props = defineProps({
content: {
type: String,
required: true,
},
})
const files = import.meta.globEager('/src/inde... | 2302_79757062/crm | frontend/src/components/Activities/EmailContent.vue | Vue | agpl-3.0 | 6,498 |
<template>
<div
class="activity group flex h-48 cursor-pointer flex-col justify-between gap-2 rounded-md bg-gray-50 px-4 py-3 hover:bg-gray-100"
>
<div class="flex items-center justify-between">
<div class="truncate text-lg font-medium">
{{ note.title }}
</div>
<Dropdown
:o... | 2302_79757062/crm | frontend/src/components/Activities/NoteArea.vue | Vue | agpl-3.0 | 1,999 |
<template>
<div>
<Button
class="flex justify-between w-full rounded text-base"
variant="ghost"
:label="label"
@click="onClick"
>
<template v-if="active" #suffix>
<FeatherIcon class="size-4" name="check" />
</template>
</Button>
</div>
</template>
<script setup... | 2302_79757062/crm | frontend/src/components/Activities/PlaybackSpeedOption.vue | Vue | agpl-3.0 | 417 |
<template>
<div v-if="tasks.length">
<div v-for="(task, i) in tasks">
<div
class="activity flex cursor-pointer gap-6 rounded p-2.5 duration-300 ease-in-out hover:bg-gray-50"
@click="modalRef.showTask(task)"
>
<div class="flex flex-1 flex-col gap-1.5 text-base">
<div c... | 2302_79757062/crm | frontend/src/components/Activities/TaskArea.vue | Vue | agpl-3.0 | 3,767 |
<template>
<div>
<div
v-for="whatsapp in messages"
:key="whatsapp.name"
class="activity group flex gap-2"
:class="[
whatsapp.type == 'Outgoing' ? 'flex-row-reverse' : '',
whatsapp.reaction ? 'mb-7' : 'mb-3',
]"
>
<div
:id="whatsapp.name"
clas... | 2302_79757062/crm | frontend/src/components/Activities/WhatsAppArea.vue | Vue | agpl-3.0 | 8,817 |
<template>
<div
v-if="reply?.message"
class="flex items-center justify-around gap-2 px-3 pt-2 sm:px-10"
>
<div
class="mb-1 ml-13 flex-1 cursor-pointer rounded border-0 border-l-4 border-green-500 bg-gray-100 p-2 text-base text-gray-600"
:class="reply.type == 'Incoming' ? 'border-green-500' :... | 2302_79757062/crm | frontend/src/components/Activities/WhatsAppBox.vue | Vue | agpl-3.0 | 4,256 |
<template>
<Popover placement="right-start" class="flex w-full">
<template #target="{ togglePopover }">
<button
:class="[
active ? 'bg-gray-100' : 'text-gray-800',
'group w-full flex h-7 items-center justify-between rounded px-2 text-base hover:bg-gray-100',
]"
@c... | 2302_79757062/crm | frontend/src/components/Apps.vue | Vue | agpl-3.0 | 2,078 |
<template>
<span>
<a :href="isShowable ? null : url" target="_blank">
<Button
:label="label"
theme="gray"
variant="outline"
@click="toggleDialog()"
>
<template #prefix>
<component :is="getIcon()" class="h-4 w-4" />
</template>
<template... | 2302_79757062/crm | frontend/src/components/AttachmentItem.vue | Vue | agpl-3.0 | 2,115 |
<template>
<div v-show="showCallPopup" v-bind="$attrs">
<div
ref="callPopup"
class="fixed z-20 flex w-60 cursor-move select-none flex-col rounded-lg bg-gray-900 p-4 text-gray-300 shadow-2xl"
:style="style"
>
<div class="flex flex-row-reverse items-center gap-1">
<MinimizeIcon
... | 2302_79757062/crm | frontend/src/components/CallUI.vue | Vue | agpl-3.0 | 14,347 |
<template>
<NestedPopover>
<template #target>
<Button :label="__('Columns')">
<template v-if="hideLabel">
<ColumnsIcon class="h-4" />
</template>
<template v-if="!hideLabel" #prefix>
<ColumnsIcon class="h-4" />
</template>
</Button>
</template>
... | 2302_79757062/crm | frontend/src/components/ColumnSettings.vue | Vue | agpl-3.0 | 8,186 |
<template>
<TextEditor
ref="textEditor"
:editor-class="['prose-sm max-w-none', editable && 'min-h-[7rem]']"
:content="content"
@change="editable ? (content = $event) : null"
:starterkit-options="{ heading: { levels: [2, 3, 4, 5, 6] } }"
:placeholder="placeholder"
:editable="editable"
:... | 2302_79757062/crm | frontend/src/components/CommentBox.vue | Vue | agpl-3.0 | 5,222 |
<template>
<div class="flex justify-between gap-3 border-t px-4 py-2.5 sm:px-10">
<div class="flex gap-1.5">
<Button
ref="sendEmailRef"
variant="ghost"
:class="[showEmailBox ? '!bg-gray-300 hover:!bg-gray-200' : '']"
:label="__('Reply')"
@click="toggleEmailBox()"
... | 2302_79757062/crm | frontend/src/components/CommunicationArea.vue | Vue | agpl-3.0 | 6,684 |
<template>
<div class="space-y-1.5">
<label class="block" :class="labelClasses" v-if="attrs.label">
{{ __(attrs.label) }}
</label>
<Autocomplete
ref="autocomplete"
:options="options.data"
v-model="value"
:size="attrs.size || 'sm'"
:variant="attrs.variant"
:placeho... | 2302_79757062/crm | frontend/src/components/Controls/Link.vue | Vue | agpl-3.0 | 3,920 |
<template>
<div>
<div
class="flex flex-wrap gap-1 min-h-20 p-1.5 cursor-text rounded h-7 text-base border border-gray-300 bg-white hover:border-gray-400 focus:border-gray-500 focus:ring-0 focus-visible:ring-2 focus-visible:ring-gray-400 text-gray-800 transition-colors w-full"
@click="setFocus"
>
... | 2302_79757062/crm | frontend/src/components/Controls/MultiValueInput.vue | Vue | agpl-3.0 | 3,061 |
<template>
<div>
<div class="flex flex-wrap gap-1">
<Button
ref="emails"
v-for="value in values"
:key="value"
:label="value"
theme="gray"
variant="subtle"
class="rounded"
@keydown.delete.capture.stop="removeLastValue"
>
<template ... | 2302_79757062/crm | frontend/src/components/Controls/MultiselectInput.vue | Vue | agpl-3.0 | 6,322 |
<template>
<slot />
</template>
<script setup>
import { ref } from 'vue'
const hours = ref(0)
const minutes = ref(0)
const seconds = ref(0)
const timer = ref(null)
const updatedTime = ref('0:00')
function startCounter() {
if (seconds.value === 59) {
seconds.value = 0
minutes.value = minutes.value + 1
... | 2302_79757062/crm | frontend/src/components/CountUpTimer.vue | Vue | agpl-3.0 | 1,247 |
<template>
<Button
v-if="normalActions.length && !isMobileView"
v-for="action in normalActions"
:label="action.label"
@click="action.onClick()"
>
<template v-if="action.icon" #prefix>
<FeatherIcon :name="action.icon" class="h-4 w-4" />
</template>
</Button>
<Dropdown v-if="groupedA... | 2302_79757062/crm | frontend/src/components/CustomActions.vue | Vue | agpl-3.0 | 2,376 |
<template>
<div
class="group flex w-full items-center justify-between rounded bg-transparent p-1 pl-2 text-base text-gray-800 transition-colors hover:bg-gray-200 active:bg-gray-300"
>
<div class="flex items-center justify-between gap-7">
<div v-show="!editMode">{{ option.value }}</div>
<TextInpu... | 2302_79757062/crm | frontend/src/components/DropdownItem.vue | Vue | agpl-3.0 | 2,676 |
<template>
<TextEditor
ref="textEditor"
:editor-class="[
'prose-sm max-w-none',
editable && 'min-h-[7rem]',
'[&_p.reply-to-content]:hidden',
]"
:content="content"
@change="editable ? (content = $event) : null"
:starterkit-options="{
heading: { levels: [2, 3, 4, 5, 6] },... | 2302_79757062/crm | frontend/src/components/EmailEditor.vue | Vue | agpl-3.0 | 9,427 |
<template>
<component
:is="props.as || 'div'"
ref="scrollableDiv"
:style="`maskImage: ${maskStyle}`"
@scroll="updateMaskStyle"
>
<slot></slot>
</component>
</template>
<script setup>
import { ref, computed, onMounted } from 'vue'
const props = defineProps({
as: {
type: String,
defau... | 2302_79757062/crm | frontend/src/components/FadedScrollableDiv.vue | Vue | agpl-3.0 | 2,144 |
<template>
<div class="flex flex-col gap-4">
<div
v-for="section in sections"
:key="section.label"
class="section first:border-t-0 first:pt-0"
:class="section.hideBorder ? '' : 'border-t pt-4'"
>
<div
v-if="!section.hideLabel"
class="flex h-7 mb-3 max-w-fit cursor... | 2302_79757062/crm | frontend/src/components/Fields.vue | Vue | agpl-3.0 | 9,021 |
<template>
<NestedPopover>
<template #target>
<div class="flex items-center">
<Button
:label="__('Filter')"
:class="filters?.size ? 'rounded-r-none' : ''"
>
<template #prefix><FilterIcon class="h-4" /></template>
<template v-if="filters?.size" #suffix>... | 2302_79757062/crm | frontend/src/components/Filter.vue | Vue | agpl-3.0 | 17,822 |
<template>
<Autocomplete :options="options" value="" @change="(e) => setGroupBy(e)">
<template #target="{ togglePopover, isOpen }">
<Button
:label="
hideLabel
? groupByValue?.label
: __('Group By: ') + groupByValue?.label
"
@click="togglePopover()"
... | 2302_79757062/crm | frontend/src/components/GroupBy.vue | Vue | agpl-3.0 | 1,809 |
<template>
<div v-if="isEmoji(icon)" v-bind="$attrs">
{{ icon }}
</div>
<FeatherIcon
v-else-if="typeof icon == 'string'"
:name="icon"
v-bind="$attrs"
/>
<component v-else :is="icon" v-bind="$attrs" />
</template>
<script setup>
import { isEmoji } from '@/utils'
const props = defineProps({
i... | 2302_79757062/crm | frontend/src/components/Icon.vue | Vue | agpl-3.0 | 393 |
<template>
<Popover transition="default">
<template #target="{ togglePopover, isOpen }">
<slot v-bind="{ isOpen, togglePopover }">
<span class="text-base"> {{ modelValue || '' }} </span>
</slot>
</template>
<template #body="{ togglePopover }">
<div
v-if="reaction"
... | 2302_79757062/crm | frontend/src/components/IconPicker.vue | Vue | agpl-3.0 | 3,390 |
<template>
<svg
width="16"
height="16"
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M6.29021 2.64272C6.68375 0.785763 9.33429 0.785757 9.72783 2.64272L10.3657 5.65238L13.3753 6.29021C15.2323 6.68375 15... | 2302_79757062/crm | frontend/src/components/Icons/ActivityIcon.vue | Vue | agpl-3.0 | 1,041 |
<template>
<svg
width="16"
height="16"
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M4.15969 11.0123L4.17279 11.0253C4.17276 11.0253 4.17484 11.0272 4.17897 11.031C4.21695 11.0655 4.42864 11.2579 4.776... | 2302_79757062/crm | frontend/src/components/Icons/AddressIcon.vue | Vue | agpl-3.0 | 1,897 |
<template>
<svg
fill="none"
height="16"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
class=""
clip-rule="evenodd"
d="M13.8496 4.69692L12.0062 6.54029C11.8109 6.73555 11.4944 6.73555 11.2991 6.54028L9.45572 4.69692C9.26046 4.50166 9.26046 4.18508... | 2302_79757062/crm | frontend/src/components/Icons/AppsIcon.vue | Vue | agpl-3.0 | 2,104 |