Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Silence is golden.
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{aQ as e,W as r,X as o,ab as s}from"../../../../vendor.js?ver=3.1.8";import{_ as t}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../vendor-element-plus.js?ver=3.1.8";const n=t({name:"CompaniesRoute"},[["render",function(t,n,a,i,m,u){const v=e("router-view");return r(),o("div",null,[s(v)])}]]);export{n as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{aD as t,aA as e,aB as a}from"../../../../vendor-element-plus.js?ver=3.1.8";import{W as n,X as o,Z as i,a0 as s,Y as r,a5 as c,ab as d}from"../../../../vendor.js?ver=3.1.8";import{_ as l}from"../../../../fc-bits-ui.js?ver=3.1.8";const m={key:0,class:"fluentcrm_databox"},h=["innerHTML"];const _=l({name:"CompanyExternalView",props:["company","company_id"],data:()=>({profile_section:"",heading:"",content_html:"",loading:!0,crud:null,showForm:!1,crudConfig:{},saving:!1}),watch:{"$route.query":{handler(t){this.profile_section=t.handler,this.fetchData()},deep:!0,immediate:!0}},methods:{fetchData(){this.loading=!0,this.$get(`companies/${this.company_id}/custom_tab_view`,{section_provider:this.profile_section}).then(t=>{this.heading=t.heading,this.content_html=t.content_html,t.crud&&(this.crud=t.crud)}).catch(t=>{this.handleError(t)}).finally(()=>{this.loading=!1})}},mounted(){this.fetchData()}},[["render",function(l,_,p,f,u,v){const g=a,y=e,w=t;return u.loading?(n(),r(g,{key:1,style:{"margin-top":"20px"},class:"fcrm_skeleton_loader",animated:!0},{template:c(()=>[d(w,{gutter:30},{default:c(()=>[d(y,{span:12},{default:c(()=>[d(g,{rows:10})],void 0,!0),_:1}),d(y,{span:12},{default:c(()=>[d(g,{rows:3})],void 0,!0),_:1})],void 0,!0),_:1})]),_:1})):(n(),o("div",m,[i("div",{class:s(["fcrm_external_company_profile_data","fcrm_section_"+u.profile_section]),innerHTML:u.content_html},null,10,h)]))}]]);export{_ as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{at as a,j as e,k as o,E as s,h as t,i as n,a_ as i,aZ as m,aA as r,aV as l,aW as d,aD as c,aB as p,ap as u}from"../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as _,W as f,X as y,ab as h,ay as v,a5 as g,a9 as w,aa as C,Z as j,J as $,az as k,Y as b,a0 as x,av as A}from"../../../../vendor.js?ver=3.1.8";import{C as T}from"../../../../CompanyInfoSide.js?ver=3.1.8";import{P as q}from"../../../../PageHeader.js?ver=3.1.8";import{C as B}from"../../../../Confirm2.js?ver=3.1.8";import{_ as D}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../data_config.js?ver=3.1.8";import"../../../../CompanyEditForm.js?ver=3.1.8";import"../../../../fc-bits.js?ver=3.1.8";import"../../../../BaseCard.js?ver=3.1.8";const E={class:"fluentcrm-campaigns fluentcrm-view-wrapper fluentcrm_view"},P={key:0,class:"fcrm_view_company_wrapper"},z={key:1};const H=D({name:"ViewCompany",props:["company_id"],components:{PageHeader:q,Confirm:B,ArrowDown:a,CompanyInfoSide:T},data(){return{ArrowRightBold:A(u),company:null,loading:!1,updating:!1,show_profile:!0,menu_items:window.fcAdmin.company_profile_sections,activeTab:this.$route.name}},watch:{company_id(){this.company=null,this.fetchCompany()}},methods:{setup(a){this.company=a,this.changeTitle(a.name+" - Company")},fetchCompany(){this.loading=!0,this.show_profile=!1,this.$get("companies/"+this.company_id).then(a=>{this.setup(a.company)}).catch(a=>{this.handleError(a)}).finally(()=>{this.loading=!1})},deleteCompany(){this.loading=!0,this.$del(`companies/${this.company_id}`).then(a=>{this.$notify.success(a.message),this.$router.push({name:"companies"})}).catch(a=>{this.handleError(a)}).finally(()=>{this.loading=!1})},maybeCustomHandler(a){"fluentcrm_company_profile_extended"==a.name&&(this.show_profile=!1,setTimeout(()=>{this.show_profile=!0},100))}},mounted(){this.fetchCompany(),this.changeTitle(this.$t("View Company"))}},[["render",function(a,u,A,T,q,B){const D=m,H=i,V=_("ArrowDown"),I=s,R=o,S=_("confirm"),W=n,Y=t,Z=e,F=_("page-header"),J=d,Q=l,X=_("router-view"),G=r,K=_("company-info-side"),L=c,M=p;return f(),y("div",E,[q.company?(f(),y("div",P,[h(F,null,v({breadcrumb:g(()=>[h(H,{"separator-icon":q.ArrowRightBold},{default:g(()=>[h(D,{to:{name:"companies"}},{default:g(()=>[w(C(a.$t("Companies")),1)],void 0,!0),_:1}),h(D,null,{default:g(()=>[w(C(q.company.name),1)],void 0,!0),_:1})],void 0,!0),_:1},8,["separator-icon"])]),_:2},[a.hasPermission("fcrm_manage_contact_cats_delete")?{name:"actions",fn:g(()=>[h(Z,{size:"small",trigger:"click","popper-class":"fcrm_action_dropdown_menu"},{dropdown:g(()=>[h(Y,null,{default:g(()=>[h(W,{class:"fc_dropdown_action"},{default:g(()=>[h(S,{placement:"top-start",message:a.$t("Are you sure you want to delete this company?"),onYes:u[0]||(u[0]=a=>B.deleteCompany())},{reference:g(()=>[j("span",null,C(a.$t("Delete Company")),1)]),_:1},8,["message"])],void 0,!0),_:1})],void 0,!0),_:1})]),default:g(()=>[h(R,{size:"small",class:"el-dropdown-link"},{default:g(()=>[w(C(a.$t("Actions"))+" ",1),h(I,{class:"el-icon--right"},{default:g(()=>[h(V)],void 0,!0),_:1})],void 0,!0),_:1})],void 0,!0),_:1})]),key:"0"}:void 0]),1024),h(L,{gutter:24,class:"fcrm_view_company_content"},{default:g(()=>[h(G,{lg:18,md:16,sm:24,xs:24},{default:g(()=>[h(Q,{router:!0,"default-active":q.activeTab,class:"fcrm_segment_menu"},{default:g(()=>[(f(!0),y($,null,k(q.menu_items,(a,e)=>(f(),b(J,{class:x("fcrm_item_"+a.name+" "+(a.item_class||"")),route:{name:a.name,query:a.query},key:e,index:a.query?a.query.handler:a.name},{default:g(()=>[j("span",null,C(a.title),1)],void 0,!0),_:2},1032,["class","route","index"]))),128))],void 0,!0),_:1},8,["default-active"]),h(X,{company_id:A.company_id,company:q.company},null,8,["company_id","company"])],void 0,!0),_:1}),h(G,{lg:6,md:8,sm:24,xs:24},{default:g(()=>[j("div",null,[h(K,{company:q.company},null,8,["company"])])],void 0,!0),_:1})],void 0),_:1})])):(f(),y("div",z,[h(L,{gutter:30},{default:g(()=>[h(G,{lg:6,md:8,sm:24,xs:24},{default:g(()=>[h(M,{class:"fcrm_skeleton_loader",animated:!0,rows:25})],void 0,!0),_:1}),h(G,{lg:18,md:16,sm:24,xs:24},{default:g(()=>[h(M,{class:"fcrm_skeleton_loader",animated:!0,rows:10})],void 0,!0),_:1})],void 0),_:1})]))])}]]);export{H as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{C as e}from"../../../../ContactHeaderPopNav.js?ver=3.1.8";import{aQ as t,W as a,X as n,ab as r,Z as o}from"../../../../vendor.js?ver=3.1.8";import{_ as s}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../vendor-element-plus.js?ver=3.1.8";const i={class:"fcrm_settings_wrapper"},u={class:"fcrm_setting_wrap"};const c=s({name:"ContactGroups",components:{ContactHeaderPopNav:e},data(){return{router_name:this.$route.name}},watch:{"$route.name"(){this.router_name=this.$route.name}},methods:{changeMenu(e){this.router_name=e}}},[["render",function(e,s,c,m,p,d){const h=t("contact-header-pop-nav"),v=t("router-view");return a(),n("div",i,[r(h,{head_title:e.$t("Contacts Navigation")},null,8,["head_title"]),o("div",u,[r(v,{onChangeMenu:d.changeMenu},null,8,["onChangeMenu"])])])}]]);export{c as default};
|
||||
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{k as e}from"../../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as r,W as i,X as a,Z as t,J as s,az as n,aa as l,ab as d,a5 as o,a9 as c,a8 as _,b$ as f}from"../../../../../vendor.js?ver=3.1.8";import v from"./Filters.js?ver=3.1.8";import{_ as m,I as u}from"../../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../../_AjaxSelector.js?ver=3.1.8";import"../../../../../_TaxonomyTermsSelector.js?ver=3.1.8";import"../../../../../_OptionSelector.js?ver=3.1.8";const p={class:"fcrm_rich_container"},h={class:"fcrm_rich_wrap"},b={class:"fcrm_rich_filter"},y={class:"fcrm_filter_group_header"},j={class:"fcrm_and_label"},R={key:0,class:"fcrm_cond_or"},G={class:"icon","aria-hidden":"true"},O={class:"fcrm_cond_or"},g={class:"icon","aria-hidden":"true"};const C=m({name:"RichFilterContainer",components:{Icons:u,RichFilter:v},props:{advanced_filters:{type:Array,default:function(){return[[]]}},add_label:{type:String,default:function(){return this.$t("Filters.instruction")}},filterOptions:{type:Array,default:function(){return[]}}},methods:{maybeRemoveGroup(e){this.advanced_filters.length>1&&this.advanced_filters.splice(e,1)},addConditionGroup(){this.advanced_filters.push([])}},mounted(){this.advanced_filters&&f(this.advanced_filters)&&0!=this.advanced_filters.length||(this.advanced_filters=[[]])}},[["render",function(f,v,m,u,C,$){const k=r("rich-filter"),x=r("Icons"),A=e;return i(),a("div",p,[t("div",h,[(i(!0),a(s,null,n(m.advanced_filters,(e,r)=>(i(),a("div",{key:r},[t("div",b,[t("div",y,[t("div",j,l(f.$t("And")),1),d(k,{filterOptions:m.filterOptions,add_label:m.add_label,button_text:f.$t("Add Property"),canDeleteGroup:m.advanced_filters.length>1,onMaybeRemove:e=>$.maybeRemoveGroup(r),items:e},null,8,["filterOptions","add_label","button_text","canDeleteGroup","onMaybeRemove","items"])])]),r<m.advanced_filters.length-1?(i(),a("div",R,[v[2]||(v[2]=t("div",{class:"fcrm_or_divider_line"},null,-1)),d(A,{size:"small",onClick:v[0]||(v[0]=e=>$.addConditionGroup())},{default:o(()=>[t("span",G,[d(x,{"icon-name":"plus"})]),c(" "+l(f.$t("OR")),1)],void 0),_:1}),v[3]||(v[3]=t("div",{class:"fcrm_or_divider_line"},null,-1))])):_("",!0)]))),128))]),t("div",O,[v[4]||(v[4]=t("div",{class:"fcrm_or_divider_line"},null,-1)),d(A,{size:"small",onClick:v[1]||(v[1]=e=>$.addConditionGroup())},{default:o(()=>[t("span",g,[d(x,{"icon-name":"plus"})]),c(" "+l(f.$t("OR")),1)],void 0),_:1}),v[5]||(v[5]=t("div",{class:"fcrm_or_divider_line"},null,-1))])])}]]);export{C as default};
|
||||
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{ap as e,ay as t,k as s,a_ as a,aZ as i,e as n}from"../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as r,a6 as l,W as m,X as o,ab as d,a5 as g,a9 as c,aa as u,Y as _,Z as f}from"../../../../vendor.js?ver=3.1.8";import{C as p}from"../../../../_CustomSegementSettings.js?ver=3.1.8";import{P as h}from"../../../../PageHeader.js?ver=3.1.8";import{_ as v}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../Contacts/RichFilters/Filters.js?ver=3.1.8";import"../../../../_AjaxSelector.js?ver=3.1.8";import"../../../../_TaxonomyTermsSelector.js?ver=3.1.8";import"../../../../_OptionSelector.js?ver=3.1.8";const S={class:"fcrm_create_custom_segment"},y={class:"fcrm_create_segment_content"},C={class:"fcrm_segment_name_input"},$={class:"fcrm_input_label"};const j=v({name:"CreateCustomSegment",components:{PageHeader:h,CustomSegmentSettings:p,ArrowRightBold:e},data:()=>({loading:!1,saving:!1,field_loading:!0,segment:{title:"",filters:[[]]}}),created(){this.ArrowRightBold=e},methods:{createSegment(){this.segment.title?(this.saving=!0,this.$post("dynamic-segments",{segment:JSON.stringify(this.segment),with_subscribers:!1}).then(e=>{this.$notify.success(e.message),this.$router.push({name:"view_segment",params:{slug:e.segment.slug,id:e.segment.id}})}).catch(e=>{this.handleError(e)}).finally(()=>{this.saving=!1})):this.$notify.error(this.$t("Cre_Please_pNotS"))},clearFilters(){this.segment.filters=[[]]}},mounted(){this.changeTitle(this.$t("New Dynamic Segment"))}},[["render",function(e,p,h,v,j,b){const w=i,V=a,A=s,F=r("page-header"),x=n,N=r("custom-segment-settings"),P=t;return l((m(),o("div",S,[d(F,null,{breadcrumb:g(()=>[d(V,{"separator-icon":e.ArrowRightBold},{default:g(()=>[d(w,{to:{name:"dynamic_segments"}},{default:g(()=>[c(u(e.$t("Dynamic Segments")),1)],void 0,!0),_:1}),d(w,null,{default:g(()=>{var t;return[c(u((null==(t=j.segment)?void 0:t.title)?j.segment.title:e.$t("Untitled Segment")),1)]},void 0,!0),_:1})],void 0,!0),_:1},8,["separator-icon"])]),actions:g(()=>[d(A,{onClick:p[0]||(p[0]=e=>b.clearFilters())},{default:g(()=>[c(u(e.$t("Clear Filters")),1)],void 0,!0),_:1}),l((m(),_(A,{onClick:p[1]||(p[1]=e=>b.createSegment()),type:"primary"},{default:g(()=>[c(u(e.$t("Create Custom Segment")),1)],void 0,!0),_:1})),[[P,j.saving]])]),_:1}),f("div",y,[f("div",C,[f("label",$,u(e.$t("Name this Custom Segment")),1),d(x,{class:"fcrm_segment_name_field",placeholder:e.$t("eg: Active contacts"),type:"text",modelValue:j.segment.title,"onUpdate:modelValue":p[2]||(p[2]=e=>j.segment.title=e)},null,8,["placeholder","modelValue"])]),d(N,{onLoaded:p[3]||(p[3]=()=>{j.field_loading=!1}),modelValue:j.segment.filters,"onUpdate:modelValue":p[4]||(p[4]=e=>j.segment.filters=e),segment_id:!1},null,8,["modelValue"])])])),[[P,j.field_loading]])}]]);export{j as default};
|
||||
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{W as e,X as r}from"../../../../vendor.js?ver=3.1.8";import{_ as s}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../vendor-element-plus.js?ver=3.1.8";const t=s({name:"List",props:["listId"],created(){this.$router.replace({name:"subscribers",query:{lists:[this.listId],sort_by:"id",sort_type:"DESC",filter_type:"simple"}})}},[["render",function(s,t,i,o,p,n){return e(),r("div")}]]);export{t as default};
|
||||
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{k as e,ay as a,aQ as s}from"../../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as t,W as i,X as r,ab as n,Z as c,aa as l,a5 as d,a9 as o,Y as h,a8 as m,a6 as f,J as p,az as g}from"../../../../../vendor.js?ver=3.1.8";import{S as u}from"../../../../../SettingsHeader.js?ver=3.1.8";import{_ as v}from"../../../../../fc-bits-ui.js?ver=3.1.8";const b={class:"fcrm_settings fcrm_min_bg fcrm_view"},_={class:"fcrm_body"},y={class:"fcrm_max_w_800"},x={class:"fcrm_report_card"},$={class:"fcrm_report_card_header"},k={class:"fcrm_report_card_title_group"},w={class:"fcrm-db-health-actions"},H={class:"fcrm_report_card_body"},j={class:"fcrm-db-health-intro"},C={key:0,class:"fcrm-db-health-ok"},L={class:"fcrm-cron-jobs"},z={class:"fcrm-cron-job-info"},B={class:"fcrm-cron-job-name"},D={class:"fcrm-cron-job-meta"},I={class:"fcrm-cron-meta-item"},M={class:"fcrm-cron-meta-label"},S={class:"fcrm-cron-meta-value"},R={class:"fcrm-cron-meta-item"},T={class:"fcrm-cron-meta-label"},Z={class:"fcrm-cron-meta-value"};const q=v({name:"DatabaseHealth",components:{SettingsHeader:u},data:()=>({indexes:[],fetching:!1,repairing:!1,loaded:!1}),computed:{hasBroken(){return this.indexes.some(e=>"yes"!==e.status)}},methods:{fetchHealth(e=!0){this.fetching=!0,this.$get("setting/db-index-health",e?{fresh:1}:{}).then(e=>{this.indexes=e.indexes||[],this.loaded=!0}).catch(e=>{this.handleError(e)}).finally(()=>{this.fetching=!1})},repair(){this.repairing=!0,this.$post("setting/db-index-health/repair").then(e=>{this.$notify.success(e.message),this.indexes=e.indexes||this.indexes}).catch(e=>{this.handleError(e)}).finally(()=>{this.repairing=!1})}},mounted(){this.changeTitle(this.$t("Database Health")),this.fetchHealth(!0)}},[["render",function(u,v,q,E,Q,A){const F=t("SettingsHeader"),J=e,N=s,U=a;return i(),r("div",b,[n(F,{title:u.$t("Database Health")},null,8,["title"]),c("div",_,[c("div",y,[c("div",x,[c("div",$,[c("div",k,[c("h4",null,l(u.$t("Critical Database Indexes")),1)]),c("div",w,[n(J,{size:"small",loading:Q.fetching,onClick:v[0]||(v[0]=e=>A.fetchHealth(!0))},{default:d(()=>[o(l(u.$t("Re-check")),1)],void 0),_:1},8,["loading"]),A.hasBroken?(i(),h(J,{key:0,size:"small",type:"primary",loading:Q.repairing,onClick:A.repair},{default:d(()=>[o(l(u.$t("Repair Now")),1)],void 0),_:1},8,["loading","onClick"])):m("",!0)])]),f((i(),r("div",H,[c("p",j,l(u.$t("FluentCRM relies on these indexes for fast campaign sending, automation processing and duplicate protection. If a database upgrade was interrupted, one may be missing — repairing recreates it safely.")),1),Q.loaded&&!A.hasBroken?(i(),r("div",C,[v[1]||(v[1]=c("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM7.4018 10.4L11.6438 6.1574L10.7954 5.309L7.4018 8.7032L5.7044 7.0058L4.856 7.8542L7.4018 10.4Z",fill:"var(--fc-success)"})],-1)),c("span",null,l(u.$t("All critical indexes are present and healthy.")),1)])):m("",!0),c("div",L,[(i(!0),r(p,null,g(Q.indexes,e=>(i(),r("div",{class:"fcrm-cron-job",key:e.name},[c("div",z,[c("p",B,l(u.$t(e.title)),1),c("div",D,[c("div",I,[c("p",M,l(u.$t("Table:")),1),c("p",S,l(e.table),1)]),c("div",R,[c("p",T,l(u.$t("Type:")),1),c("p",Z,l("unique"===e.type?u.$t("Unique key"):u.$t("Index")),1)])])]),n(N,{size:"small",type:"yes"===e.status?"success":"danger",effect:"light"},{default:d(()=>[o(l("yes"===e.status?u.$t("Healthy"):u.$t("Missing")),1)],void 0),_:2},1032,["type"])]))),128))])])),[[U,Q.fetching]])])])])])}],["__scopeId","data-v-e46b47fe"]]);export{q as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{ay as e,az as a,k as s,g as t}from"../../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as l,W as i,X as o,ab as r,Z as c,aa as n,a6 as d,a5 as m,a9 as f}from"../../../../../vendor.js?ver=3.1.8";import{S as _}from"../../../../../SettingsHeader.js?ver=3.1.8";import{_ as u,I as g}from"../../../../../fc-bits-ui.js?ver=3.1.8";const p={class:"fcrm_settings fcrm_min_bg fcrm_view"},v={class:"fcrm_body"},b={class:"fcrm_max_w_800"},D={class:"fcrm_report_card"},h={class:"fcrm_report_card_body"},R={class:"font-semibold fcrm_mb_4"},$={class:"d-flex items-center gap-4 flex-wrap"},y={class:"fcrm_report_card fcrm_danger_border"},C={class:"fcrm_report_card_header"},w={class:"fcrm_report_card_title_group"},k={class:"fcrm_report_card_body"},x={class:"font-medium fcrm_mb_10"},V={class:"fcrm-danger-list"},E={class:"fcrm-danger-list-row"},I={class:"fcrm-danger-column"},M={class:"fcrm-danger-column"},S={class:"fcrm-danger-confirm"},A={class:"fcrm_checkbox_text"},T={class:"fcrm_checkbox_text_title"},j={class:"fcrm_checkbox_text_desc"},U={class:"icon"},W={class:"fcrm-cleanup-preview"},F={class:"fcrm-preview-header"},H={class:"fcrm-preview-body"},P={class:"fcrm-preview-content"},B={class:"fcrm_secondary_text"},q={class:"fcrm-preview-footer"},z={class:"fcrm-preview-actions"};const L=u({name:"DatabaseReset",components:{Icons:g,SettingsHeader:_},data:()=>({loading:!1,confirmDelete:!1,resetDialogVisible:!1}),methods:{openResetDialog(){this.resetDialogVisible=!0},closeResetDialog(){this.resetDialogVisible=!1},confirmResetDatabase(){this.resetDialogVisible=!1,this.resetDatabase()},resetDatabase(){this.loading=!0,this.$post("setting/reset_db").then(e=>{this.$notify.success(e.message),this.loading=!1,this.confirmDelete=!1}).catch(e=>{this.handleError(e),this.loading=!1}).finally(()=>{this.loading=!1})}},mounted(){this.changeTitle(this.$t("CRM Database Reset"))}},[["render",function(_,u,g,L,N,Q){const X=l("SettingsHeader"),Y=a,Z=l("Icons"),G=s,J=t,K=e;return i(),o("div",p,[r(X,{title:_.$t("CRM Database Reset")},null,8,["title"]),c("div",v,[c("div",b,[c("div",D,[c("div",h,[c("div",R,n(_.$t("Developer Mode Required:")),1),c("div",$,[c("span",null,n(_.$t("Add")),1),u[3]||(u[3]=c("code",null,"define('FLUENTCRM_IS_DEV_FEATURES', true);",-1)),c("span",null,n(_.$t("DBReset_WpConfig_Enable_Desc")),1)])])]),c("div",y,[c("div",C,[c("div",w,[c("h4",null,n(_.$t("Complete Data Removal")),1)])]),d((i(),o("div",k,[c("div",x,n(_.$t("The Deleted Modules will be:")),1),c("div",V,[c("div",E,[c("div",I,[c("ul",null,[c("li",null,n(_.$t("All contacts and subscriber data")),1),c("li",null,n(_.$t("Automation workflows and triggers")),1),c("li",null,n(_.$t("System logs and analytics data")),1)])]),c("div",M,[c("ul",null,[c("li",null,n(_.$t("Campaign history and email templates")),1),c("li",null,n(_.$t("Tags, lists, and custom fields")),1)])])])]),c("div",S,[r(Y,{modelValue:N.confirmDelete,"onUpdate:modelValue":u[0]||(u[0]=e=>N.confirmDelete=e),class:"fcrm_checkbox"},{default:m(()=>[c("div",A,[c("span",T,n(_.$t("Include Contact Info in Personal Data export by WP")),1),c("span",j,n(_.$t("DBReset_Erase_Data_Warn")),1)])],void 0),_:1},8,["modelValue"])]),r(G,{disabled:!N.confirmDelete,type:"danger",onClick:Q.openResetDialog},{default:m(()=>[c("span",U,[r(Z,{"icon-name":"delete"})]),f(" "+n(_.$t("Permanently Erase FluentCRM Data")),1)],void 0),_:1},8,["disabled","onClick"]),r(J,{modelValue:N.resetDialogVisible,"onUpdate:modelValue":u[2]||(u[2]=e=>N.resetDialogVisible=e),"modal-class":"fcrm_cleanup-preview_dialog","append-to-body":"","show-close":!1},{default:m(()=>[c("div",W,[c("div",F,[c("h4",null,n(_.$t("Confirm Database Reset")),1),c("button",{class:"fcrm-close-button",onClick:u[1]||(u[1]=(...e)=>Q.closeResetDialog&&Q.closeResetDialog(...e))},[r(Z,{"icon-name":"close"})])]),c("div",H,[c("div",P,[c("p",B,n(_.$t("Are you sure, you want to reset the CRM Database?")),1)])]),c("div",q,[c("div",z,[r(G,{onClick:Q.closeResetDialog},{default:m(()=>[f(n(_.$t("Cancel")),1)],void 0,!0),_:1},8,["onClick"]),r(G,{type:"danger",loading:N.loading,onClick:Q.confirmResetDatabase},{default:m(()=>[f(n(_.$t("Yes")),1)],void 0,!0),_:1},8,["loading","onClick"])])])])],void 0),_:1},8,["modelValue"])])),[[K,N.loading]])])])])])}],["__scopeId","data-v-242852de"]]);export{L as default};
|
||||
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{at as e,k as a,aB as t,aH as s,aI as o,j as n,E as l,h as i,i as r,e as d}from"../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as p,W as c,X as g,ab as m,a5 as h,a9 as f,aa as u,Z as _,Y as y,a8 as b,J as v,az as w,b2 as x}from"../../../../vendor.js?ver=3.1.8";import{P as $}from"../../../../PaginationBar.js?ver=3.1.8";import{D}from"../../../../DataTable.js?ver=3.1.8";import{S as k}from"../../../../SettingsHeader.js?ver=3.1.8";import{_ as E,I as C}from"../../../../fc-bits-ui.js?ver=3.1.8";const L={class:"fcrm_system_logs fcrm_settings fcrm_view"},T={class:"fcrm_body"},S={class:"icon"},j={key:0,class:"icon"},A={class:"icon"},H={key:0,class:"d-flex flex-column gap-1"},I={class:"text-secondary"},z={class:"text-secondary"},P=["innerHTML"];const U=E({name:"SystemLogs",components:{ArrowDown:e,Icons:C,PaginationBar:$,DataTable:D,SettingsHeader:k},data:()=>({logs:[],pagination:{total:0,current_page:1,per_page:20},loading:!1,search:""}),computed:{exportOptions(){return[{range:"7",label:this.$t("Export Last 7 Days")},{range:"15",label:this.$t("Export Last 15 Days")},{range:"30",label:this.$t("Export Last 30 Days")},{range:"all",label:this.$t("Export All")}]}},methods:{fetch(){this.loading=!0,this.storage.set("system_logs_perpage",this.pagination.per_page),this.$get("setting/system-logs",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.logs=e.logs.data,this.pagination.total=e.logs.total}).catch(e=>{this.handleError(e)}).finally(()=>{this.loading=!1})},exportLogs(e){const a=document.createElement("a");a.href=this.getExportUrl(e),a.target="_blank",a.rel="noopener noreferrer",a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)},getExportUrl(e){const a=`${window.fcAdmin.rest.url}/setting/system-logs/export`,t=new URLSearchParams;return t.append("_wpnonce",window.fcAdmin.rest.nonce),t.append("range",e||"all"),t.append("query_timestamp",Date.now()),this.search&&t.append("search",this.search),a+(-1===a.indexOf("?")?"?":"&")+t.toString()},deleteAll(){this.loading=!0,this.$del("setting/system-logs/reset").then(e=>{this.$notify.success(e.message),this.logs=[],this.pagination.total=0}).catch(e=>{this.handleError(e)}).finally(()=>{this.loading=!1})},formatDate:e=>e?e.split(" ")[0]:"",formatTime:e=>e&&e.split(" ")[1]||""},mounted(){this.pagination.per_page=parseInt(this.storage.get("system_logs_perpage",20),10)||20,this.fetch()}},[["render",function(e,$,D,k,E,C){const U=a,B=p("SettingsHeader"),F=p("Icons"),O=d,R=p("ArrowDown"),V=l,K=r,M=i,q=n,J=t,N=o,Q=s,W=p("pagination-bar"),X=p("data-table");return c(),g("div",L,[m(B,{title:e.$t("System Logs")},{actions:h(()=>[m(U,{type:"danger",size:"small",onClick:C.deleteAll},{default:h(()=>[f(u(e.$t("Reset")),1)],void 0,!0),_:1},8,["onClick"])]),_:1},8,["title"]),_("div",T,[m(X,{"has-selection":!1},{"header-left":h(()=>[m(O,{modelValue:E.search,"onUpdate:modelValue":$[0]||($[0]=e=>E.search=e),onClear:C.fetch,onKeyup:x(C.fetch,["enter"]),placeholder:e.$t("Type & enter"),clearable:""},{prefix:h(()=>[_("span",S,[m(F,{"icon-name":"search"})])]),_:1},8,["modelValue","onClear","onKeyup","placeholder"])]),"header-actions":h(()=>[m(U,{size:"small",loading:E.loading,onClick:C.fetch},{default:h(()=>[E.loading?b("",!0):(c(),g("span",j,[m(F,{"icon-name":"reload"})])),f(" "+u(e.$t("Refresh")),1)],void 0,!0),_:1},8,["loading","onClick"]),m(q,{size:"small",trigger:"click",onCommand:C.exportLogs},{dropdown:h(()=>[m(M,null,{default:h(()=>[(c(!0),g(v,null,w(C.exportOptions,e=>(c(),y(K,{key:e.range,command:e.range},{default:h(()=>[f(u(e.label),1)],void 0,!0),_:2},1032,["command"]))),128))],void 0,!0),_:1})]),default:h(()=>[m(U,{size:"small"},{default:h(()=>[_("span",A,[m(F,{"icon-name":"export"})]),f(" "+u(e.$t("Export"))+" ",1),m(V,{class:"el-icon--right"},{default:h(()=>[m(R)],void 0,!0),_:1})],void 0,!0),_:1})],void 0,!0),_:1},8,["onCommand"])]),table:h(()=>[E.loading?(c(),y(J,{key:0,style:{padding:"20px"},rows:8})):(c(),y(Q,{key:1,"empty-text":e.$t("No Data Found"),data:E.logs},{default:h(()=>[m(N,{label:e.$t("ID"),prop:"id",width:"120"},null,8,["label"]),m(N,{label:e.$t("Date & Time"),"min-width":"150",property:"created_at"},{default:h(e=>[e.row.created_at?(c(),g("div",H,[_("div",I,u(C.formatDate(e.row.created_at)),1),_("small",z,u(C.formatTime(e.row.created_at)),1)])):b("",!0)]),_:1},8,["label"]),m(N,{label:e.$t("Title"),"min-width":"300"},{default:h(e=>[f(u(e.row.title),1)]),_:1},8,["label"]),m(N,{label:e.$t("Description"),"min-width":"390"},{default:h(e=>[_("div",{innerHTML:e.row.description},null,8,P)]),_:1},8,["label"])],void 0,!0),_:1},8,["empty-text","data"]))]),pagination:h(()=>[E.loading?b("",!0):(c(),y(W,{key:0,pagination:E.pagination,onFetch:C.fetch},null,8,["pagination","onFetch"]))]),_:1})])])}]]);export{U as default};
|
||||
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{W as e,X as r}from"../../../../vendor.js?ver=3.1.8";import{_ as t}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../vendor-element-plus.js?ver=3.1.8";const s=t({name:"Tag",props:["tagId"],created(){this.$router.replace({name:"subscribers",query:{tags:[this.tagId],sort_by:"id",sort_type:"DESC",filter_type:"simple"}})}},[["render",function(t,s,o,a,i,p){return e(),r("div")}]]);export{s as default};
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user