witty-v2-email-package
v0.0.10
Published
Wittymanager Webmaillite Integration Package
Downloads
2
Maintainers
Readme
witty-email-package
INSTALLATION
Download & install applications
Application Install
- Clone the repository
hhttps://gitlab.com/wittydevops/witty-email-package.git
- Navigate to the app root directory using Cmder or Git Bash CLI Example:
cd c:\xampp\htdocs\witty-email-package\
- Run
npm install
- Generate component docs. Install Vuese and run
vuese gen
. This will generate awebsite
folder containing component documentation.
Testing (Option 1)
- Run
npm run build
- Run
npm pack
- Copy the created zip file and extract to the project node_modules or install it using npm.
Testing (Option 2)
- Run
npm run serve
- Go to your localhost site. (http://localhost:8080/)
Publish
- Run
npm run build
- Run
npm publish
- In the project, run
npm install --save witty-twilio-plugin
Local Testing
- Run
npm link
on current witty-video-chat-plugin folder - Run
npm link witty-twilio-plugin
to target project folder - Import package ` import WittyVideoChatPlugin from 'witty-twilio-plugin'
Sample WittyVideoChat Implementation
<template>
<div id="app">
<witty-email
token=""
:user="{
email: '[email protected]',
password: 'gagayijnkfnhbews'
}"
base-url="http://localhost/webmail/?/Api"
url="http://localhost/webmail/"
layout="email"
:options="options"
:kanban-data="sortData"
@kanban-template-created="onKanbanTemplateCreated"
@kanban-template-deleted="onKanbanTemplateDeleted"
@message-sent="onMessageSent"
ref="wittyEmail">
</witty-email>
</div>
</template>
<script>
import axios from 'axios'
import WittyEmail from '~components/WittyEmail.vue'
export default {
data() {
return {
options: {
imageUpload: (image) => { console.log(" image upload ", image) },
enableCustomData: true,
customMessageLoad: this.customLoadMessages,
formatFilter: this.formatFilters,
getUserList: this.getUserList,
getUserData: this.getUserData,
locale: 'en-Us',
customMessageItemSlots: this.customMessageAction,
dialog: {
closeOnClick: false,
closeOnEsc: false,
},
messageActions: [
{
name: `<i class="witx-task-square"></i>${('Task')}`,
key: 'convert_to_task',
class: ['divided'],
selectable: true,
show: true,
action: this.convertToTask
},
{
name: `<i class="witx-ticket"></i>${('Ticket')}`,
key: 'convert_to_ticket',
show: true,
selectable: true,
action: this.convertToTask,
},
],
editor: {
// custom icons for tinymce editor
// must be hosted to a url, a copy exists in src/assets/tinymce
iconsUrl: 'http://localhost/oxide-icon-pack-template/dist/icons/Witx/icons.js'
},
viewTypes: [
{
list: [],
page: 1,
limit: 25,
result: null,
value: 'accounts',
label: 'Accounts'
},
{
list: [],
page: 1,
limit: 25,
result: null,
value: 'contacts',
label: 'Contacts'
},
{
list: [],
page: 1,
limit: 25,
result: null,
value: 'tasks',
label: 'Tasks'
},
{
list: [],
page: 1,
limit: 25,
result: null,
value: 'tickets',
label: 'Tickets'
}
]
},
}
}
}
</script>
WittyEmail (Main Component)
Props
|Name|Description|Type|Required|Default| |---|---|---|---|---| |token|webmail-lite access token|String|false|null| |user|User object. Can contain any data. Must match with properties from options.|Object|false|null| |baseUrl|webmail-lite api url link|String|false|-| |url|webmail-lite url|—|false|-| |options|config settings|Object|false|{"properties":{"email":"Email","label1":"DisplayName","label2":"label2","label3":"label3","image":"image_path","timeFormat":"hh:mm A","dateFormat":"MMMM DD, YYYY"},"editor":{"color":"#333333","fontSize":"10pt","fontFamily":"Inter, sans-serif","apiKey":"q1fl7wqmmbkxzshds6b8k7ux6ib10y8n2xvd38au0cztw6we"},"imageUpload":null,"enableCustomData":false,"locale":"en-Us","customMessageLoad":null,"formatFilter":null,"messageActions":null}| |layout|layout (email, kanban)|String|false|email| |kanbanData|array of kanban templates containing columns and card sort order|Array|false|-|
Events
|Event Name|Description|Parameters| |---|---|---| |kanban-template-created|Kanban Template Created|{Folder| |kanban-template-deleted|Kanban Template Deleted|{Folder| |cards-updated|Kanban Cards updates|{template| |message-sent|-|-|
Slots
|Name|Description|Default Slot Content| |---|---|---| |message-detail-header-author-info|-|-| |message-header-sort|-|-| |kanban-header-sort|-|-| |email-header-actions|-|-| |email-detail-header-actions|-|-| |message-detail-pre-content|-|-| |message-detail-post-content|-|-|
MixIns
|MixIn| |---| |accountMixin| |messageDetailsMixin|