@emailmaker/emailmaker 1.0.96 → 1.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.441a4dbc4384f20fcf1e.html +1 -0
- package/iframe/iframe.441a4dbc4384f20fcf1e.html +1 -0
- package/iframe/js/330.378aec42.js +1 -0
- package/iframe/js/{826.0e4820c1.js.LICENSE.txt → 330.378aec42.js.LICENSE.txt} +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/react/index.js +1 -1
- package/react/index.mjs +1 -1
- package/translations.pot +322 -305
- package/asset-manifest.json +0 -165
- package/css.worker.js +0 -2
- package/css.worker.js.LICENSE.txt +0 -6
- package/editor.worker.js +0 -1
- package/emailmaker-esm.js +0 -1
- package/emailmaker.d.ts +0 -1826
- package/emailmaker.js +0 -1
- package/html.worker.js +0 -2
- package/html.worker.js.LICENSE.txt +0 -14
- package/iframe/iframe-eblock.e8d51b90ab45966000c9.html +0 -1
- package/iframe/iframe.e8d51b90ab45966000c9.html +0 -1
- package/iframe/js/826.0e4820c1.js +0 -1
- package/plugin.html +0 -294
- package/plugin_blocks_test.html +0 -144
- package/plugin_default.html +0 -56
- package/plugin_idigital.html +0 -254
- package/plugin_nota.html +0 -861
- package/plugin_s.html +0 -31
- package/static/css/57.3f9e7de8.chunk.css +0 -1
- package/static/css/578.fe5765dd.chunk.css +0 -1
- package/static/css/6501.e131603e.chunk.css +0 -1
- package/static/css/6798.94b6a519.chunk.css +0 -1
- package/static/css/8084.15f07f40.chunk.css +0 -1
- package/static/js/1303.f6ad7f62.js +0 -2
- package/static/js/1303.f6ad7f62.js.LICENSE.txt +0 -11
- package/static/js/1538.97b965ba.chunk.js +0 -2
- package/static/js/1538.97b965ba.chunk.js.LICENSE.txt +0 -23
- package/static/js/1654.d922b07e.js +0 -2
- package/static/js/1654.d922b07e.js.LICENSE.txt +0 -38
- package/static/js/1729.a0be903e.chunk.js +0 -1
- package/static/js/1880.a21db601.chunk.js +0 -1
- package/static/js/2642.b60a63f6.chunk.js +0 -1
- package/static/js/2715.c21845e3.js +0 -2
- package/static/js/2715.c21845e3.js.LICENSE.txt +0 -59
- package/static/js/3017.6335b77e.chunk.js +0 -1
- package/static/js/3019.aaa6d087.chunk.js +0 -2
- package/static/js/3019.aaa6d087.chunk.js.LICENSE.txt +0 -6
- package/static/js/3085.b9d27236.chunk.js +0 -2
- package/static/js/3085.b9d27236.chunk.js.LICENSE.txt +0 -54
- package/static/js/3220.db24c24f.js +0 -2
- package/static/js/3220.db24c24f.js.LICENSE.txt +0 -39
- package/static/js/4309.ae8e4ad0.chunk.js +0 -1
- package/static/js/4972.264e4569.js +0 -1
- package/static/js/5346.4aaf9222.chunk.js +0 -2
- package/static/js/5346.4aaf9222.chunk.js.LICENSE.txt +0 -6
- package/static/js/542.c5e7e839.js +0 -2
- package/static/js/542.c5e7e839.js.LICENSE.txt +0 -21
- package/static/js/57.4cd2b40e.chunk.js +0 -1
- package/static/js/578.068dd4e8.chunk.js +0 -2
- package/static/js/578.068dd4e8.chunk.js.LICENSE.txt +0 -6
- package/static/js/6144.a3bf0881.chunk.js +0 -2
- package/static/js/6144.a3bf0881.chunk.js.LICENSE.txt +0 -6
- package/static/js/6419.e52a6158.js +0 -2
- package/static/js/6419.e52a6158.js.LICENSE.txt +0 -1
- package/static/js/6501.7570e270.chunk.js +0 -1
- package/static/js/6798.ae85cbf9.chunk.js +0 -2
- package/static/js/6798.ae85cbf9.chunk.js.LICENSE.txt +0 -39
- package/static/js/6819.85c72c79.chunk.js +0 -2
- package/static/js/6819.85c72c79.chunk.js.LICENSE.txt +0 -6
- package/static/js/6957.5082b810.chunk.js +0 -1
- package/static/js/7463.69864ff5.chunk.js +0 -2
- package/static/js/7463.69864ff5.chunk.js.LICENSE.txt +0 -6
- package/static/js/8084.5458cfaf.chunk.js +0 -1
- package/static/js/8473.54e12d36.chunk.js +0 -2
- package/static/js/8473.54e12d36.chunk.js.LICENSE.txt +0 -101
- package/static/js/8521.a1623fc2.chunk.js +0 -2
- package/static/js/8521.a1623fc2.chunk.js.LICENSE.txt +0 -6
- package/static/js/9644.1ae95bb7.chunk.js +0 -2
- package/static/js/9644.1ae95bb7.chunk.js.LICENSE.txt +0 -6
- package/static/js/9960.218c70ae.chunk.js +0 -2
- package/static/js/9960.218c70ae.chunk.js.LICENSE.txt +0 -30
- package/static/js/9981.6c41ee44.js +0 -1
- package/static/js/ant-locale/locale-ar_EG-js.a1f4a2ee.chunk.js +0 -1
- package/static/js/ant-locale/locale-az_AZ-js.1b3f2ec6.chunk.js +0 -1
- package/static/js/ant-locale/locale-bg_BG-js.2f68d816.chunk.js +0 -1
- package/static/js/ant-locale/locale-bn_BD-js.38ca14cb.chunk.js +0 -1
- package/static/js/ant-locale/locale-by_BY-js.927570db.chunk.js +0 -1
- package/static/js/ant-locale/locale-ca_ES-js.e4bdfa2b.chunk.js +0 -1
- package/static/js/ant-locale/locale-cs_CZ-js.f1151015.chunk.js +0 -1
- package/static/js/ant-locale/locale-da_DK-js.33e12cfb.chunk.js +0 -1
- package/static/js/ant-locale/locale-de_DE-js.42497042.chunk.js +0 -1
- package/static/js/ant-locale/locale-el_GR-js.007d40b4.chunk.js +0 -1
- package/static/js/ant-locale/locale-en_GB-js.6756ba01.chunk.js +0 -1
- package/static/js/ant-locale/locale-es_ES-js.43424efe.chunk.js +0 -1
- package/static/js/ant-locale/locale-et_EE-js.3694348e.chunk.js +0 -1
- package/static/js/ant-locale/locale-eu_ES-js.e2678a29.chunk.js +0 -1
- package/static/js/ant-locale/locale-fa_IR-js.3b6bfddc.chunk.js +0 -1
- package/static/js/ant-locale/locale-fi_FI-js.8e749864.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_BE-js.2aec36ca.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_CA-js.ba00ca3a.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_FR-js.1e6d0a10.chunk.js +0 -1
- package/static/js/ant-locale/locale-ga_IE-js.cc1f0f56.chunk.js +0 -1
- package/static/js/ant-locale/locale-gl_ES-js.c1588dec.chunk.js +0 -1
- package/static/js/ant-locale/locale-he_IL-js.1be3257a.chunk.js +0 -1
- package/static/js/ant-locale/locale-hi_IN-js.8e3ea1dc.chunk.js +0 -1
- package/static/js/ant-locale/locale-hr_HR-js.94001d08.chunk.js +0 -1
- package/static/js/ant-locale/locale-hu_HU-js.50a3ffc6.chunk.js +0 -1
- package/static/js/ant-locale/locale-hy_AM-js.6b20bceb.chunk.js +0 -1
- package/static/js/ant-locale/locale-id_ID-js.b380cc8b.chunk.js +0 -1
- package/static/js/ant-locale/locale-is_IS-js.995979c0.chunk.js +0 -1
- package/static/js/ant-locale/locale-it_IT-js.46a8ce6d.chunk.js +0 -1
- package/static/js/ant-locale/locale-ja_JP-js.69f9da33.chunk.js +0 -1
- package/static/js/ant-locale/locale-ka_GE-js.8b08646c.chunk.js +0 -1
- package/static/js/ant-locale/locale-kk_KZ-js.a1cc2ddc.chunk.js +0 -1
- package/static/js/ant-locale/locale-km_KH-js.09c630f9.chunk.js +0 -1
- package/static/js/ant-locale/locale-kmr_IQ-js.c25f3afa.chunk.js +0 -1
- package/static/js/ant-locale/locale-kn_IN-js.40066823.chunk.js +0 -1
- package/static/js/ant-locale/locale-ko_KR-js.68047848.chunk.js +0 -1
- package/static/js/ant-locale/locale-ku_IQ-js.594553b1.chunk.js +0 -1
- package/static/js/ant-locale/locale-lt_LT-js.08ac662b.chunk.js +0 -1
- package/static/js/ant-locale/locale-lv_LV-js.2a33af61.chunk.js +0 -1
- package/static/js/ant-locale/locale-mk_MK-js.caa088c9.chunk.js +0 -1
- package/static/js/ant-locale/locale-ml_IN-js.3aa233eb.chunk.js +0 -1
- package/static/js/ant-locale/locale-mn_MN-js.2550caa5.chunk.js +0 -1
- package/static/js/ant-locale/locale-ms_MY-js.924bfbf0.chunk.js +0 -1
- package/static/js/ant-locale/locale-my_MM-js.bc3805ae.chunk.js +0 -1
- package/static/js/ant-locale/locale-nb_NO-js.471cc88a.chunk.js +0 -1
- package/static/js/ant-locale/locale-ne_NP-js.52b65a1a.chunk.js +0 -1
- package/static/js/ant-locale/locale-nl_BE-js.2af0a7fe.chunk.js +0 -1
- package/static/js/ant-locale/locale-nl_NL-js.453457a0.chunk.js +0 -1
- package/static/js/ant-locale/locale-pl_PL-js.1e4b27da.chunk.js +0 -1
- package/static/js/ant-locale/locale-pt_BR-js.75dc6403.chunk.js +0 -1
- package/static/js/ant-locale/locale-pt_PT-js.b07438c3.chunk.js +0 -1
- package/static/js/ant-locale/locale-ro_RO-js.4a05dc9d.chunk.js +0 -1
- package/static/js/ant-locale/locale-si_LK-js.3b54f4c4.chunk.js +0 -1
- package/static/js/ant-locale/locale-sk_SK-js.cd76b6b1.chunk.js +0 -1
- package/static/js/ant-locale/locale-sl_SI-js.8afbce30.chunk.js +0 -1
- package/static/js/ant-locale/locale-sr_RS-js.0708405f.chunk.js +0 -1
- package/static/js/ant-locale/locale-sv_SE-js.9f47a065.chunk.js +0 -1
- package/static/js/ant-locale/locale-ta_IN-js.3b46361c.chunk.js +0 -1
- package/static/js/ant-locale/locale-th_TH-js.83e732d3.chunk.js +0 -1
- package/static/js/ant-locale/locale-tk_TK-js.63d0b187.chunk.js +0 -1
- package/static/js/ant-locale/locale-tr_TR-js.b5e42917.chunk.js +0 -1
- package/static/js/ant-locale/locale-uk_UA-js.ef0d8c8e.chunk.js +0 -1
- package/static/js/ant-locale/locale-ur_PK-js.904c3e1c.chunk.js +0 -1
- package/static/js/ant-locale/locale-vi_VN-js.f0324229.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_CN-js.428a6bc7.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_HK-js.0feb368f.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_TW-js.163140fa.chunk.js +0 -1
- package/static/js/emailmaker_core.f495f35b.js +0 -2
- package/static/js/emailmaker_core.f495f35b.js.LICENSE.txt +0 -23
- package/static/js/mergeTags/locale0.594765fd.chunk.js +0 -1
- package/static/js/mergeTags/locale1.7a79e21e.chunk.js +0 -1
- package/static/media/ai-image.7c42c2e12001ebf31881.png +0 -0
- package/static/media/codicon.f13d28f3e470ec5c0896.ttf +0 -0
- package/static/media/empty-image.1827d6561f3c4042dfb3.png +0 -0
- package/static/media/fb.ff10384394f8044ec889.png +0 -0
- package/static/media/frame_dark.318d7ed53535d80662dc.png +0 -0
- package/static/media/frame_light.22a9b4ec728365d8193f.png +0 -0
- package/static/media/frame_template_gallery.85693b3950e7689fb3a5.png +0 -0
- package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +0 -1
- package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +0 -1
- package/static/media/icon-menu-block-welcome.1c534a003522feadd2e7.png +0 -0
- package/static/media/ig.47a89992b4bec92d4364.png +0 -0
- package/static/media/project-email-back-dark.9916625a9a714830b770.svg +0 -29
- package/static/media/project-email-back.0ce470def19ce7c063e0.svg +0 -29
- package/static/media/sign_up_01.333271584216122b89ba.png +0 -0
- package/static/media/sign_up_01_blocks.5538cfdb90d4869794dc.png +0 -0
- package/static/media/sign_up_02.d99d2aa6bf1ea74f01fa.png +0 -0
- package/static/media/sign_up_02_blocks.837fc2c9a9461fda13be.png +0 -0
- package/static/media/sign_up_03.5545ffad60a2cb5e0336.png +0 -0
- package/static/media/sign_up_03_blocks.126601f7a6fbea4b6c54.png +0 -0
- package/static/media/sign_up_04.398a4ca50d5f5b3cd837.png +0 -0
- package/static/media/sign_up_04_blocks.255c5c07b23cbcc256fd.png +0 -0
- package/static/media/sign_up_05.4c58df1be2edaa79d52b.png +0 -0
- package/static/media/sign_up_05_blocks.431b6844fdf3e14642c2.png +0 -0
- package/static/media/tg.10f004529a98df9732b9.png +0 -0
- package/static/media/tw.823a7736ac2d82815c71.png +0 -0
- package/static/media/video.854adea50295d0a3f7ae.png +0 -0
- package/static/media/vk.fe41df919f4e8718e0b3.png +0 -0
- package/static/media/yd.c40d05dde64ef695fdf2.png +0 -0
- package/static/media/yt.4ac57e55d158b40c7fc1.png +0 -0
package/plugin_idigital.html
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?26319353ace703f94d90"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?26319353ace703f94d90";
|
|
2
|
-
const auth_jwt = {
|
|
3
|
-
username: '****',
|
|
4
|
-
password: '****',
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const systemfields = [
|
|
8
|
-
{
|
|
9
|
-
label: 'Дополнительное поле «Имя»',
|
|
10
|
-
value: 'Name',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
label: 'Имя получателя',
|
|
14
|
-
value: 'ToName',
|
|
15
|
-
},
|
|
16
|
-
];
|
|
17
|
-
|
|
18
|
-
const auth_client = {
|
|
19
|
-
client_id: '****',
|
|
20
|
-
client_secret: '****',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const getAuthToken = async () => {
|
|
24
|
-
var requestOptions = {
|
|
25
|
-
method: 'POST',
|
|
26
|
-
redirect: 'follow'
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return fetch("https://emailmaker.ru/tests/plugin/temp_token_em.php", requestOptions)
|
|
30
|
-
.then(response => response.json())
|
|
31
|
-
.then(result => result.access_token)
|
|
32
|
-
.catch(error => { return ""; });
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const auth_client_oauth = {
|
|
38
|
-
client_id: "****",
|
|
39
|
-
client_secret: "****",
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const BLOCKS_KEY = "blocks";
|
|
44
|
-
const COMMENTS_KEY = "blocks";
|
|
45
|
-
const RESOURSE = 'aaa.bbb.xyz.com';
|
|
46
|
-
let _instance = undefined;
|
|
47
|
-
const options = {
|
|
48
|
-
getAuthToken,
|
|
49
|
-
element: "#test",
|
|
50
|
-
|
|
51
|
-
// headless: true,
|
|
52
|
-
content: {
|
|
53
|
-
// templateId: 321739,
|
|
54
|
-
|
|
55
|
-
// email: {
|
|
56
|
-
// id: '3769995',
|
|
57
|
-
// author: 123,
|
|
58
|
-
// isNew: false,
|
|
59
|
-
// subject: 'topic',
|
|
60
|
-
// preheader: '',
|
|
61
|
-
// description: '',
|
|
62
|
-
// project: 'undefined',
|
|
63
|
-
// parent_email: '309707',
|
|
64
|
-
// common_styles:
|
|
65
|
-
// '{"text":{"fontFamily":["Safe Fonts","-apple-system, \'Segoe UI\', \'Helvetica Neue\', Helvetica, Roboto, Arial, sans-serif"],"fontSize":16,"fontSizeDim":"px","lineHeight":21,"lineHeightDim":"px","color":"#5a5a5a","textAlign":"left","paddingBottom":10,"paddingBottomDim":"px"},"headings":{"fontFamily":["Safe Fonts","-apple-system, \'Segoe UI\', \'Helvetica Neue\', Helvetica, Roboto, Arial, sans-serif"],"fontSize":24,"fontSizeDim":"px","lineHeight":32,"lineHeightDim":"px","color":"#333333","textAlign":"left","paddingTop":20,"paddingTopDim":"px","paddingBottom":10,"paddingBottomDim":"px","letterSpacing":0,"letterSpacingDim":"px","bold":true,"italic":false},"links":{"color":"#1C52DC","underline":true},"buttons":{"fontFamily":["Safe Fonts","-apple-system, \'Segoe UI\', \'Helvetica Neue\', Helvetica, Roboto, Arial, sans-serif"],"fontSize":16,"fontSizeDim":"px","letterSpacing":0,"letterSpacingDim":"px","color":"#FFFFFF","bold":false,"italic":false,"backgroundColor":"#1C52DC","marginTop":10,"marginTopDim":"px","marginBottom":10,"marginBottomDim":"px","border":{"all":null,"top":null,"right":null,"bottom":null,"left":null},"borderRadius":{"all":5,"topLeft":null,"topRight":null,"bottomRight":null,"bottomLeft":null},"textAlign":"center","padding":{"all":null,"top":null,"right":null,"bottom":null,"left":null}},"block":{"backgroundColor":""}}',
|
|
66
|
-
// title: '',
|
|
67
|
-
// date: '2024-01-12T08:42:09',
|
|
68
|
-
// modified: '2024-02-16T17:21:01',
|
|
69
|
-
// group: [],
|
|
70
|
-
// lock: false,
|
|
71
|
-
// utm_parameters: {
|
|
72
|
-
// utm_content: 'ssssssss',
|
|
73
|
-
// },
|
|
74
|
-
// // "code": "<html><head></head><body><body></html>",
|
|
75
|
-
// },
|
|
76
|
-
title: "Email subject",
|
|
77
|
-
html: `loading`,
|
|
78
|
-
},
|
|
79
|
-
project: undefined,
|
|
80
|
-
user: {
|
|
81
|
-
id: 123,
|
|
82
|
-
username: "testetrter",
|
|
83
|
-
name: "ssss"
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
config: {
|
|
87
|
-
theme: "light",
|
|
88
|
-
themes: {
|
|
89
|
-
light: {
|
|
90
|
-
token: {
|
|
91
|
-
colorPrimary: "#009CE5",
|
|
92
|
-
colorPrimaryBorder: "#BAC5CD",
|
|
93
|
-
colorPrimaryBg: "#F4F6F7",
|
|
94
|
-
colorInfo: "#009CE5",
|
|
95
|
-
colorSuccess: "#F4F6F7",
|
|
96
|
-
controlItemBgActive: "#F4F6F7",
|
|
97
|
-
colorLink: "#009CE5",
|
|
98
|
-
colorTextBase: "#333333",
|
|
99
|
-
colorBgLayout: "#F4F6F7",
|
|
100
|
-
borderRadiusXL: 10,
|
|
101
|
-
borderRadiusLG: 10,
|
|
102
|
-
borderRadius: 16,
|
|
103
|
-
borderRadiusSM: 10
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
styles: `* { font-family: "Euclid Circular A", sans-serif; }
|
|
108
|
-
.ant-upload { display: none; }
|
|
109
|
-
.ant-space-compact-block { display: none; } `,
|
|
110
|
-
aiAssistentEnabled: false,
|
|
111
|
-
blocksCommonEnabled: false,
|
|
112
|
-
blocksEmptyEnabled: false,
|
|
113
|
-
blocksSavedEnabled: false,
|
|
114
|
-
blocksSearchEnabled: false,
|
|
115
|
-
blocksTemplateEnabled: false,
|
|
116
|
-
commentsEnabled: false,
|
|
117
|
-
editImageControlEnabled: false,
|
|
118
|
-
elementAccordionEnabled: false,
|
|
119
|
-
elementAIimageEnabled: false,
|
|
120
|
-
elementAItextEnabled: false,
|
|
121
|
-
elementCarouselEnabled: false,
|
|
122
|
-
elementCountdownEnabled: false,
|
|
123
|
-
elementFormEnabled: false,
|
|
124
|
-
elementVideoEnabled: false,
|
|
125
|
-
emailDropdownMenuClone: false,
|
|
126
|
-
exportPdfEnabled: false,
|
|
127
|
-
exportPngEnabled: false,
|
|
128
|
-
exportWebHookEnabled: false,
|
|
129
|
-
formFieldVisibilityEnabled: false,
|
|
130
|
-
headerArrowBackVisible: false,
|
|
131
|
-
headerPreheaderVisible: false,
|
|
132
|
-
headerTitleVisible: false,
|
|
133
|
-
historyEnabled: false,
|
|
134
|
-
imageCenterEditorEnabled: false,
|
|
135
|
-
imageCenterGifEnabled: false,
|
|
136
|
-
imageCenterStockEnabled: false,
|
|
137
|
-
optimizeEnabled: false,
|
|
138
|
-
pathEnabled: false,
|
|
139
|
-
previewIconEnabled: false,
|
|
140
|
-
saveBlockEnabled: false,
|
|
141
|
-
saveButtonEnabled: false,
|
|
142
|
-
sendTestEnabled: false,
|
|
143
|
-
settingsEnabled: false,
|
|
144
|
-
sharePreviewEnabled: false
|
|
145
|
-
},
|
|
146
|
-
handleReadEmail: async (code) => {
|
|
147
|
-
const savedEmail = localStorage.getItem('savedEmail')
|
|
148
|
-
if (savedEmail) {
|
|
149
|
-
const email = JSON.parse(savedEmail)
|
|
150
|
-
if (email.code === code) {
|
|
151
|
-
return email
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return null
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
async function init() {
|
|
158
|
-
const instance = await emailmaker.init(options);
|
|
159
|
-
instance.handleSaveEmail(async ({ value, patch, prev }) => {
|
|
160
|
-
const _email = await instance.compileEmail(value);
|
|
161
|
-
console.log(_email);
|
|
162
|
-
});
|
|
163
|
-
instance.setConfig({
|
|
164
|
-
...options.config,
|
|
165
|
-
handleSaveEmail: async () => {
|
|
166
|
-
const email = await this.emailMakerInstance.compileEmail()
|
|
167
|
-
this.saveLetter(email)
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
// await instance.show({
|
|
171
|
-
// email: {
|
|
172
|
-
// "id": "3769995",
|
|
173
|
-
// "isNew": false,
|
|
174
|
-
// "subject": "topic1Ы",
|
|
175
|
-
// "preheader": "pre",
|
|
176
|
-
// "description": "",
|
|
177
|
-
// "project": "undefined",
|
|
178
|
-
// "parent_email": "309707",
|
|
179
|
-
// "common_styles": "{\"text\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":16,\"fontSizeDim\":\"px\",\"lineHeight\":21,\"lineHeightDim\":\"px\",\"color\":\"#5a5a5a\",\"textAlign\":\"left\",\"paddingBottom\":10,\"paddingBottomDim\":\"px\"},\"headings\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":24,\"fontSizeDim\":\"px\",\"lineHeight\":32,\"lineHeightDim\":\"px\",\"color\":\"#333333\",\"textAlign\":\"left\",\"paddingTop\":20,\"paddingTopDim\":\"px\",\"paddingBottom\":10,\"paddingBottomDim\":\"px\",\"letterSpacing\":0,\"letterSpacingDim\":\"px\",\"bold\":true,\"italic\":false},\"links\":{\"color\":\"#1C52DC\",\"underline\":true},\"buttons\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":16,\"fontSizeDim\":\"px\",\"letterSpacing\":0,\"letterSpacingDim\":\"px\",\"color\":\"#FFFFFF\",\"bold\":false,\"italic\":false,\"backgroundColor\":\"#1C52DC\",\"marginTop\":10,\"marginTopDim\":\"px\",\"marginBottom\":10,\"marginBottomDim\":\"px\",\"border\":{\"all\":null,\"top\":null,\"right\":null,\"bottom\":null,\"left\":null},\"borderRadius\":{\"all\":5,\"topLeft\":null,\"topRight\":null,\"bottomRight\":null,\"bottomLeft\":null},\"textAlign\":\"center\",\"padding\":{\"all\":null,\"top\":null,\"right\":null,\"bottom\":null,\"left\":null}},\"block\":{\"backgroundColor\":\"\"}}",
|
|
180
|
-
// "title": "",
|
|
181
|
-
// "date": "2024-01-12T08:42:09",
|
|
182
|
-
// "modified": "2024-02-16T17:21:01",
|
|
183
|
-
// "group": [],
|
|
184
|
-
// "lock": false,
|
|
185
|
-
// "code": "<html><head></head><body><body></html>",
|
|
186
|
-
// }
|
|
187
|
-
// });
|
|
188
|
-
// const email = await instance.getEmail();
|
|
189
|
-
|
|
190
|
-
// const TITLE_REGEX = /<title>(.*)<\/title>/gm;
|
|
191
|
-
// console.log(email.code);
|
|
192
|
-
// email.code.matchAll(TITLE_REGEX).map(item => item[1]).find(title => console.log(title));
|
|
193
|
-
};
|
|
194
|
-
// async function init() {
|
|
195
|
-
// // const response = await fetch("./key.txt");
|
|
196
|
-
// // const key = await response.text();
|
|
197
|
-
// const instance = await emailmaker.init({ ...options });
|
|
198
|
-
// instance.handleSaveEmail(async ({ value, patch, prev }) => {
|
|
199
|
-
// const _email = await instance.compileEmail(value);
|
|
200
|
-
// console.log(_email);
|
|
201
|
-
// _email.utm_parameters = { ..._email.utm_parameters, utm_content: "333" }
|
|
202
|
-
// const a = await instance.compileEmail(_email);
|
|
203
|
-
// console.log(a);
|
|
204
|
-
// });
|
|
205
|
-
// setTimeout(() => {
|
|
206
|
-
// console.log(instance.getCodeErrors());
|
|
207
|
-
// }, 5000);
|
|
208
|
-
// instance.setConfig({
|
|
209
|
-
// ...options.config,
|
|
210
|
-
// mergeTags: {
|
|
211
|
-
// "syntax": [
|
|
212
|
-
// "{{%value%}}"
|
|
213
|
-
// ],
|
|
214
|
-
// "items": [
|
|
215
|
-
// {
|
|
216
|
-
// "label": "Системные3131",
|
|
217
|
-
// "value": "System",
|
|
218
|
-
// "children": systemfields
|
|
219
|
-
// },
|
|
220
|
-
// {
|
|
221
|
-
// "label": "Пользовательские4444",
|
|
222
|
-
// "value": "User",
|
|
223
|
-
// "children": systemfields
|
|
224
|
-
// }
|
|
225
|
-
// ]
|
|
226
|
-
// }
|
|
227
|
-
// });
|
|
228
|
-
// // await instance.show({
|
|
229
|
-
// // email: {
|
|
230
|
-
// // "id": "3769995",
|
|
231
|
-
// // "isNew": false,
|
|
232
|
-
// // "subject": "topic1Ы",
|
|
233
|
-
// // "preheader": "pre",
|
|
234
|
-
// // "description": "",
|
|
235
|
-
// // "project": "undefined",
|
|
236
|
-
// // "parent_email": "309707",
|
|
237
|
-
// // "common_styles": "{\"text\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":16,\"fontSizeDim\":\"px\",\"lineHeight\":21,\"lineHeightDim\":\"px\",\"color\":\"#5a5a5a\",\"textAlign\":\"left\",\"paddingBottom\":10,\"paddingBottomDim\":\"px\"},\"headings\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":24,\"fontSizeDim\":\"px\",\"lineHeight\":32,\"lineHeightDim\":\"px\",\"color\":\"#333333\",\"textAlign\":\"left\",\"paddingTop\":20,\"paddingTopDim\":\"px\",\"paddingBottom\":10,\"paddingBottomDim\":\"px\",\"letterSpacing\":0,\"letterSpacingDim\":\"px\",\"bold\":true,\"italic\":false},\"links\":{\"color\":\"#1C52DC\",\"underline\":true},\"buttons\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":16,\"fontSizeDim\":\"px\",\"letterSpacing\":0,\"letterSpacingDim\":\"px\",\"color\":\"#FFFFFF\",\"bold\":false,\"italic\":false,\"backgroundColor\":\"#1C52DC\",\"marginTop\":10,\"marginTopDim\":\"px\",\"marginBottom\":10,\"marginBottomDim\":\"px\",\"border\":{\"all\":null,\"top\":null,\"right\":null,\"bottom\":null,\"left\":null},\"borderRadius\":{\"all\":5,\"topLeft\":null,\"topRight\":null,\"bottomRight\":null,\"bottomLeft\":null},\"textAlign\":\"center\",\"padding\":{\"all\":null,\"top\":null,\"right\":null,\"bottom\":null,\"left\":null}},\"block\":{\"backgroundColor\":\"\"}}",
|
|
238
|
-
// // "title": "",
|
|
239
|
-
// // "date": "2024-01-12T08:42:09",
|
|
240
|
-
// // "modified": "2024-02-16T17:21:01",
|
|
241
|
-
// // "group": [],
|
|
242
|
-
// // "lock": false,
|
|
243
|
-
// // "code": "<html><head></head><body><body></html>",
|
|
244
|
-
// // }
|
|
245
|
-
// // });
|
|
246
|
-
// // const email = await instance.getEmail();
|
|
247
|
-
|
|
248
|
-
// // const TITLE_REGEX = /<title>(.*)<\/title>/gm;
|
|
249
|
-
// // console.log(email.code);
|
|
250
|
-
// // email.code.matchAll(TITLE_REGEX).map(item => item[1]).find(title => console.log(title));
|
|
251
|
-
// }
|
|
252
|
-
|
|
253
|
-
init().catch(e => console.log(e));
|
|
254
|
-
// })</script></body></html>
|