@silexlabs/silex 3.0.0-alpha.42 → 3.0.0-alpha.44
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/dist/client/client/api.d.ts +6 -6
- package/dist/client/client/config.d.ts +26 -211
- package/dist/client/client/events.d.ts +14 -0
- package/dist/client/client/expose.d.ts +1 -2
- package/dist/client/client/grapesjs/LoginDialog.d.ts +1 -0
- package/dist/client/client/grapesjs/index.d.ts +3 -209
- package/dist/client/client/index.d.ts +1 -0
- package/dist/client/constants.d.ts +2 -3
- package/dist/client/css/admin.css +7 -0
- package/dist/client/js/main.js +51 -51
- package/dist/client/types.d.ts +7 -1
- package/dist/plugins/client/client/events.d.ts +14 -0
- package/dist/plugins/client/client/events.js +32 -0
- package/dist/plugins/client/client/events.js.map +1 -0
- package/dist/plugins/client/page.d.ts +2 -0
- package/dist/plugins/client/{events.js → page.js} +15 -11
- package/dist/plugins/client/page.js.map +1 -0
- package/dist/plugins/client/plugins/client/publicationRenderer.d.ts +2 -0
- package/dist/plugins/client/plugins/client/publicationRenderer.js +128 -0
- package/dist/plugins/client/plugins/client/publicationRenderer.js.map +1 -0
- package/dist/plugins/client/plugins/client/template.js +4 -4
- package/dist/plugins/client/plugins/client/template.js.map +1 -1
- package/dist/plugins/client/types.d.ts +315 -0
- package/dist/plugins/client/types.js +57 -0
- package/dist/plugins/client/types.js.map +1 -0
- package/dist/plugins/server/constants.d.ts +2 -3
- package/dist/plugins/server/constants.js +3 -4
- package/dist/plugins/server/constants.js.map +1 -1
- package/dist/plugins/server/plugins/server/FtpConnector.d.ts +17 -28
- package/dist/plugins/server/plugins/server/FtpConnector.js +17 -16
- package/dist/plugins/server/plugins/server/FtpConnector.js.map +1 -1
- package/dist/plugins/server/plugins/server/GitlabConnector.d.ts +81 -0
- package/dist/plugins/server/plugins/server/GitlabConnector.js +373 -0
- package/dist/plugins/server/plugins/server/GitlabConnector.js.map +1 -0
- package/dist/plugins/server/plugins/server/HooksPlugin.js +8 -8
- package/dist/plugins/server/plugins/server/HooksPlugin.js.map +1 -1
- package/dist/plugins/server/plugins/server/PublicationOptimizer.d.ts +0 -0
- package/dist/plugins/server/plugins/server/PublicationOptimizer.js +14 -0
- package/dist/plugins/server/plugins/server/PublicationOptimizer.js.map +1 -0
- package/dist/plugins/server/plugins/server/SslPlugin.js +2 -2
- package/dist/plugins/server/plugins/server/SslPlugin.js.map +1 -1
- package/dist/plugins/server/plugins/server/StaticPlugin.js +2 -2
- package/dist/plugins/server/plugins/server/StaticPlugin.js.map +1 -1
- package/dist/plugins/server/server/config.d.ts +18 -18
- package/dist/plugins/server/server/config.js +79 -81
- package/dist/plugins/server/server/config.js.map +1 -1
- package/dist/plugins/server/server/connectors/FsStorage.d.ts +13 -11
- package/dist/plugins/server/server/connectors/FsStorage.js +31 -14
- package/dist/plugins/server/server/connectors/FsStorage.js.map +1 -1
- package/dist/plugins/server/server/connectors/connectors.d.ts +5 -2
- package/dist/plugins/server/server/connectors/connectors.js +32 -3
- package/dist/plugins/server/server/connectors/connectors.js.map +1 -1
- package/dist/plugins/server/server/events.d.ts +26 -0
- package/dist/plugins/server/server/events.js +15 -0
- package/dist/plugins/server/server/events.js.map +1 -0
- package/dist/plugins/server/types.d.ts +7 -1
- package/dist/plugins/server/types.js +10 -1
- package/dist/plugins/server/types.js.map +1 -1
- package/dist/server/constants.js +3 -4
- package/dist/server/server/api/connectorApi.js +16 -11
- package/dist/server/server/api/publicationApi.js +26 -28
- package/dist/server/server/api/websiteApi.js +46 -41
- package/dist/server/server/cli.js +36 -18
- package/dist/server/server/config.js +63 -66
- package/dist/server/server/connectors/FsStorage.js +28 -14
- package/dist/server/server/connectors/connectors.js +27 -3
- package/dist/server/server/events.js +14 -0
- package/dist/server/server/expose.js +27 -0
- package/dist/server/server/express.js +3 -3
- package/dist/server/server/index.js +34 -4
- package/dist/server/types.js +10 -1
- package/package.json +6 -3
- package/src/css/_variables.scss +1 -0
- package/src/css/grapesjs.scss +5 -0
- package/src/css/loader.scss +2 -0
- package/src/ts/client/api.ts +8 -11
- package/src/ts/client/config.ts +30 -14
- package/src/ts/client/events.ts +31 -0
- package/src/ts/client/expose.ts +1 -2
- package/src/ts/client/grapesjs/LoginDialog.ts +12 -1
- package/src/ts/client/grapesjs/PublicationManager.ts +10 -10
- package/src/ts/client/grapesjs/eleventy.ts +2 -2
- package/src/ts/client/grapesjs/index.ts +8 -13
- package/src/ts/client/grapesjs/storage.ts +18 -10
- package/src/ts/client/index.ts +35 -16
- package/src/ts/constants.ts +2 -3
- package/src/ts/plugins/client/publicationRenderer.ts +128 -0
- package/src/ts/plugins/client/template.ts +4 -4
- package/src/ts/plugins/server/FtpConnector.test.ts +82 -0
- package/src/ts/plugins/server/FtpConnector.ts +31 -37
- package/src/ts/plugins/server/GitlabConnector.ts +434 -0
- package/src/ts/plugins/server/HooksPlugin.ts +8 -9
- package/src/ts/plugins/server/PublicationOptimizer.ts +14 -0
- package/src/ts/plugins/server/SslPlugin.ts +2 -2
- package/src/ts/plugins/server/StaticPlugin.ts +2 -2
- package/src/ts/server/api/connectorApi.ts +32 -27
- package/src/ts/server/api/publicationApi.ts +35 -48
- package/src/ts/server/api/websiteApi.ts +67 -45
- package/src/ts/server/cli.ts +25 -13
- package/src/ts/server/config.ts +80 -79
- package/src/ts/server/connectors/FsStorage.test.ts +51 -0
- package/src/ts/server/connectors/FsStorage.ts +45 -24
- package/src/ts/server/connectors/connectors.ts +35 -5
- package/src/ts/server/events.ts +20 -0
- package/src/ts/{events.ts → server/expose.ts} +2 -10
- package/src/ts/server/express.ts +3 -3
- package/src/ts/server/index.ts +36 -10
- package/src/ts/types.ts +10 -1
- package/.silex/default/website.json +0 -1
- package/dist/client/events.d.ts +0 -10
- package/dist/plugins/client/events.d.ts +0 -10
- package/dist/plugins/client/events.js.map +0 -1
- package/dist/plugins/server/events.d.ts +0 -10
- package/dist/plugins/server/events.js +0 -30
- package/dist/plugins/server/events.js.map +0 -1
- package/dist/server/events.js +0 -13
|
@@ -10,15 +10,11 @@ export declare enum ApiRoute {
|
|
|
10
10
|
WEBSITE_DELETE = "/api/website/",
|
|
11
11
|
WEBSITE_CREATE = "/api/website/",
|
|
12
12
|
WEBSITE_LIST = "/api/website/",
|
|
13
|
-
WEBSITE_ASSETS_READ = "/api/
|
|
14
|
-
WEBSITE_ASSETS_WRITE = "/api/
|
|
13
|
+
WEBSITE_ASSETS_READ = "/api/website/assets",
|
|
14
|
+
WEBSITE_ASSETS_WRITE = "/api/website/assets",
|
|
15
15
|
WEBSITE_META_READ = "/api/website/meta",
|
|
16
16
|
WEBSITE_META_WRITE = "/api/website/meta"
|
|
17
17
|
}
|
|
18
|
-
export declare class ApiError extends Error {
|
|
19
|
-
readonly code: number;
|
|
20
|
-
constructor(message: string, code: number);
|
|
21
|
-
}
|
|
22
18
|
export declare function getUser({ type, connectorId }: {
|
|
23
19
|
type: ConnectorType;
|
|
24
20
|
connectorId?: ConnectorId;
|
|
@@ -75,6 +71,10 @@ export declare function websiteAssetsLoad({ path, websiteId, connectorId }: {
|
|
|
75
71
|
websiteId: WebsiteId;
|
|
76
72
|
connectorId: ConnectorId;
|
|
77
73
|
}): Promise<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Not used directly, grapesjs handles the upload
|
|
76
|
+
* @see assetManager in src/ts/client/grapesjs/index.ts
|
|
77
|
+
*/
|
|
78
78
|
export declare function websiteAssetsSave({ websiteId, connectorId, files }: {
|
|
79
79
|
websiteId: WebsiteId;
|
|
80
80
|
connectorId: ConnectorId;
|
|
@@ -1,228 +1,43 @@
|
|
|
1
|
-
import { Config
|
|
2
|
-
|
|
1
|
+
import { Config } from '@silexlabs/silex-plugins';
|
|
2
|
+
import { ConnectorId, WebsiteId } from '../types';
|
|
3
|
+
import { EditorConfig } from 'grapesjs';
|
|
4
|
+
/**
|
|
5
|
+
* @fileoverview Silex client side config
|
|
6
|
+
*/
|
|
7
|
+
export declare class ClientConfig extends Config {
|
|
3
8
|
/**
|
|
4
|
-
*
|
|
9
|
+
* The website to load
|
|
10
|
+
* This is the id of the website in the storage connector
|
|
5
11
|
*/
|
|
6
|
-
|
|
12
|
+
websiteId: WebsiteId;
|
|
13
|
+
/**
|
|
14
|
+
* The storage connector to use
|
|
15
|
+
* If not found in the URL and the user is not logged in to any storage, use the first storage
|
|
16
|
+
*/
|
|
17
|
+
storageId: ConnectorId;
|
|
7
18
|
/**
|
|
8
19
|
* language for I18n module
|
|
9
20
|
*/
|
|
10
21
|
lang: string;
|
|
22
|
+
/**
|
|
23
|
+
* root url of Silex app
|
|
24
|
+
*/
|
|
25
|
+
rootUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* debug mode
|
|
28
|
+
*/
|
|
29
|
+
debug: boolean;
|
|
11
30
|
/**
|
|
12
31
|
* Grapesjs config
|
|
13
32
|
*/
|
|
14
|
-
grapesJsConfig:
|
|
15
|
-
container: string;
|
|
16
|
-
height: string;
|
|
17
|
-
showOffsets: boolean;
|
|
18
|
-
showDevices: boolean;
|
|
19
|
-
layerManager: {
|
|
20
|
-
appendTo: string;
|
|
21
|
-
};
|
|
22
|
-
blockManager: {
|
|
23
|
-
appendTo: string;
|
|
24
|
-
};
|
|
25
|
-
assetManager: {
|
|
26
|
-
upload: string;
|
|
27
|
-
};
|
|
28
|
-
storageManager: {
|
|
29
|
-
autoload: boolean;
|
|
30
|
-
type: string;
|
|
31
|
-
options: {
|
|
32
|
-
connector: {
|
|
33
|
-
id: string;
|
|
34
|
-
connectorId: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
cssIcons: string;
|
|
39
|
-
plugins: any[];
|
|
40
|
-
pluginsOpts: {
|
|
41
|
-
[x: number]: import("./grapesjs/PublicationManager").PublicationManagerOptions | import("./grapesjs/LoginDialog").LoginDialogOptions | {
|
|
42
|
-
blocks: string[];
|
|
43
|
-
category: string;
|
|
44
|
-
panels?: undefined;
|
|
45
|
-
cmdOpenNewPageDialog?: undefined;
|
|
46
|
-
cmdOpenSettings?: undefined;
|
|
47
|
-
appendTo?: undefined;
|
|
48
|
-
enableCount?: undefined;
|
|
49
|
-
enablePerformance?: undefined;
|
|
50
|
-
onError?: undefined;
|
|
51
|
-
blockLabel?: undefined;
|
|
52
|
-
blockCustomCode?: undefined;
|
|
53
|
-
api_key?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
panels: ({
|
|
56
|
-
id: string;
|
|
57
|
-
className: string;
|
|
58
|
-
attributes: {
|
|
59
|
-
title: string;
|
|
60
|
-
containerClassName?: undefined;
|
|
61
|
-
};
|
|
62
|
-
link: string;
|
|
63
|
-
command: string;
|
|
64
|
-
buttons?: undefined;
|
|
65
|
-
} | {
|
|
66
|
-
id: string;
|
|
67
|
-
className: string;
|
|
68
|
-
attributes: {
|
|
69
|
-
title: string;
|
|
70
|
-
containerClassName: string;
|
|
71
|
-
};
|
|
72
|
-
command: string;
|
|
73
|
-
link?: undefined;
|
|
74
|
-
buttons?: undefined;
|
|
75
|
-
} | {
|
|
76
|
-
id: string;
|
|
77
|
-
className: string;
|
|
78
|
-
attributes: {
|
|
79
|
-
title: string;
|
|
80
|
-
containerClassName: string;
|
|
81
|
-
};
|
|
82
|
-
command: string;
|
|
83
|
-
buttons: {
|
|
84
|
-
id: string;
|
|
85
|
-
className: string;
|
|
86
|
-
label: string;
|
|
87
|
-
command: string;
|
|
88
|
-
}[];
|
|
89
|
-
link?: undefined;
|
|
90
|
-
} | {
|
|
91
|
-
id: string;
|
|
92
|
-
className: string;
|
|
93
|
-
attributes: {
|
|
94
|
-
title: string;
|
|
95
|
-
containerClassName: string;
|
|
96
|
-
};
|
|
97
|
-
command: string;
|
|
98
|
-
buttons: {
|
|
99
|
-
className: string;
|
|
100
|
-
command: string;
|
|
101
|
-
text: string;
|
|
102
|
-
}[];
|
|
103
|
-
link?: undefined;
|
|
104
|
-
} | {
|
|
105
|
-
id: string;
|
|
106
|
-
className: string;
|
|
107
|
-
attributes: {
|
|
108
|
-
title: string;
|
|
109
|
-
containerClassName?: undefined;
|
|
110
|
-
};
|
|
111
|
-
command: any;
|
|
112
|
-
link?: undefined;
|
|
113
|
-
buttons?: undefined;
|
|
114
|
-
} | {
|
|
115
|
-
id: string;
|
|
116
|
-
attributes: {
|
|
117
|
-
title?: undefined;
|
|
118
|
-
containerClassName?: undefined;
|
|
119
|
-
};
|
|
120
|
-
className: string;
|
|
121
|
-
link?: undefined;
|
|
122
|
-
command?: undefined;
|
|
123
|
-
buttons?: undefined;
|
|
124
|
-
})[];
|
|
125
|
-
blocks?: undefined;
|
|
126
|
-
category?: undefined;
|
|
127
|
-
cmdOpenNewPageDialog?: undefined;
|
|
128
|
-
cmdOpenSettings?: undefined;
|
|
129
|
-
appendTo?: undefined;
|
|
130
|
-
enableCount?: undefined;
|
|
131
|
-
enablePerformance?: undefined;
|
|
132
|
-
onError?: undefined;
|
|
133
|
-
blockLabel?: undefined;
|
|
134
|
-
blockCustomCode?: undefined;
|
|
135
|
-
api_key?: undefined;
|
|
136
|
-
} | {
|
|
137
|
-
cmdOpenNewPageDialog: string;
|
|
138
|
-
cmdOpenSettings: string;
|
|
139
|
-
appendTo: string;
|
|
140
|
-
blocks?: undefined;
|
|
141
|
-
category?: undefined;
|
|
142
|
-
panels?: undefined;
|
|
143
|
-
enableCount?: undefined;
|
|
144
|
-
enablePerformance?: undefined;
|
|
145
|
-
onError?: undefined;
|
|
146
|
-
blockLabel?: undefined;
|
|
147
|
-
blockCustomCode?: undefined;
|
|
148
|
-
api_key?: undefined;
|
|
149
|
-
} | {
|
|
150
|
-
enableCount: boolean;
|
|
151
|
-
enablePerformance: boolean;
|
|
152
|
-
blocks?: undefined;
|
|
153
|
-
category?: undefined;
|
|
154
|
-
panels?: undefined;
|
|
155
|
-
cmdOpenNewPageDialog?: undefined;
|
|
156
|
-
cmdOpenSettings?: undefined;
|
|
157
|
-
appendTo?: undefined;
|
|
158
|
-
onError?: undefined;
|
|
159
|
-
blockLabel?: undefined;
|
|
160
|
-
blockCustomCode?: undefined;
|
|
161
|
-
api_key?: undefined;
|
|
162
|
-
} | {
|
|
163
|
-
onError: (errors: any) => void;
|
|
164
|
-
blocks?: undefined;
|
|
165
|
-
category?: undefined;
|
|
166
|
-
panels?: undefined;
|
|
167
|
-
cmdOpenNewPageDialog?: undefined;
|
|
168
|
-
cmdOpenSettings?: undefined;
|
|
169
|
-
appendTo?: undefined;
|
|
170
|
-
enableCount?: undefined;
|
|
171
|
-
enablePerformance?: undefined;
|
|
172
|
-
blockLabel?: undefined;
|
|
173
|
-
blockCustomCode?: undefined;
|
|
174
|
-
api_key?: undefined;
|
|
175
|
-
} | {
|
|
176
|
-
blockLabel: string;
|
|
177
|
-
blockCustomCode: {
|
|
178
|
-
category: string;
|
|
179
|
-
};
|
|
180
|
-
blocks?: undefined;
|
|
181
|
-
category?: undefined;
|
|
182
|
-
panels?: undefined;
|
|
183
|
-
cmdOpenNewPageDialog?: undefined;
|
|
184
|
-
cmdOpenSettings?: undefined;
|
|
185
|
-
appendTo?: undefined;
|
|
186
|
-
enableCount?: undefined;
|
|
187
|
-
enablePerformance?: undefined;
|
|
188
|
-
onError?: undefined;
|
|
189
|
-
api_key?: undefined;
|
|
190
|
-
} | {
|
|
191
|
-
appendTo: string;
|
|
192
|
-
blocks?: undefined;
|
|
193
|
-
category?: undefined;
|
|
194
|
-
panels?: undefined;
|
|
195
|
-
cmdOpenNewPageDialog?: undefined;
|
|
196
|
-
cmdOpenSettings?: undefined;
|
|
197
|
-
enableCount?: undefined;
|
|
198
|
-
enablePerformance?: undefined;
|
|
199
|
-
onError?: undefined;
|
|
200
|
-
blockLabel?: undefined;
|
|
201
|
-
blockCustomCode?: undefined;
|
|
202
|
-
api_key?: undefined;
|
|
203
|
-
} | {
|
|
204
|
-
api_key: string;
|
|
205
|
-
blocks?: undefined;
|
|
206
|
-
category?: undefined;
|
|
207
|
-
panels?: undefined;
|
|
208
|
-
cmdOpenNewPageDialog?: undefined;
|
|
209
|
-
cmdOpenSettings?: undefined;
|
|
210
|
-
appendTo?: undefined;
|
|
211
|
-
enableCount?: undefined;
|
|
212
|
-
enablePerformance?: undefined;
|
|
213
|
-
onError?: undefined;
|
|
214
|
-
blockLabel?: undefined;
|
|
215
|
-
blockCustomCode?: undefined;
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
};
|
|
33
|
+
grapesJsConfig: EditorConfig;
|
|
219
34
|
/**
|
|
220
35
|
* Client config url
|
|
221
36
|
* This is the url of the config file which is a plugin
|
|
222
37
|
*/
|
|
223
38
|
clientConfigUrl: string;
|
|
224
39
|
/**
|
|
225
|
-
*
|
|
40
|
+
* Init GrapesJS config which depend on the config file properties
|
|
226
41
|
*/
|
|
227
|
-
|
|
42
|
+
initGrapesConfig(): void;
|
|
228
43
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum ClientEvent {
|
|
2
|
+
STARTUP_START = "silex:startup:start",
|
|
3
|
+
STARTUP_END = "silex:startup:end",
|
|
4
|
+
GRAPESJS_START = "silex:grapesjs:start",
|
|
5
|
+
GRAPESJS_END = "silex:grapesjs:end",
|
|
6
|
+
PUBLISH_START = "silex:publish:start",
|
|
7
|
+
PUBLISH_DATA = "silex:publish:data",
|
|
8
|
+
PUBLISH_END = "silex:publish:end",
|
|
9
|
+
PUBLISH_ERROR = "silex:publish:error",
|
|
10
|
+
PUBLISH_LOGIN_START = "silex:publish:login:start",
|
|
11
|
+
PUBLISH_LOGIN_END = "silex:publish:login:end",
|
|
12
|
+
ASSET_WRITE_END = "silex:asset:write:end",
|
|
13
|
+
WRITE_END = "silex:write:end"
|
|
14
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * from './index';
|
|
2
1
|
export * from './grapesjs/index';
|
|
3
2
|
export * from './config';
|
|
4
3
|
export * as constants from '../constants';
|
|
5
4
|
export * as utils from './utils';
|
|
6
5
|
export * as api from './api';
|
|
7
|
-
export * as events from '
|
|
6
|
+
export * as events from './events';
|
|
8
7
|
export * as page from '../page';
|
|
9
8
|
export * as types from '../types';
|
|
@@ -2,6 +2,7 @@ import { Editor } from 'grapesjs';
|
|
|
2
2
|
import { ConnectorId, ConnectorType, ConnectorUser } from '../../types';
|
|
3
3
|
import { WebsiteId } from '../../types';
|
|
4
4
|
export declare const cmdLogin = "silex:auth:login";
|
|
5
|
+
export declare const cmdLogout = "silex:auth:logout";
|
|
5
6
|
export declare const eventLoggingIn = "silex:auth:logging-in";
|
|
6
7
|
export declare const eventLoggedIn = "silex:auth:logged-in";
|
|
7
8
|
export declare const eventLoginFailed = "silex:auth:login-failed";
|
|
@@ -1,211 +1,5 @@
|
|
|
1
|
-
import { Editor } from 'grapesjs';
|
|
2
|
-
import { LoginDialogOptions } from './LoginDialog';
|
|
3
|
-
import { PublicationManagerOptions } from './PublicationManager';
|
|
1
|
+
import { Editor, EditorConfig } from 'grapesjs';
|
|
4
2
|
import { ConnectorId, WebsiteId } from '../../types';
|
|
5
|
-
export declare function getEditorConfig(id: WebsiteId, connectorId: ConnectorId, rootUrl: string):
|
|
6
|
-
|
|
7
|
-
height: string;
|
|
8
|
-
showOffsets: boolean;
|
|
9
|
-
showDevices: boolean;
|
|
10
|
-
layerManager: {
|
|
11
|
-
appendTo: string;
|
|
12
|
-
};
|
|
13
|
-
blockManager: {
|
|
14
|
-
appendTo: string;
|
|
15
|
-
};
|
|
16
|
-
assetManager: {
|
|
17
|
-
upload: string;
|
|
18
|
-
};
|
|
19
|
-
storageManager: {
|
|
20
|
-
autoload: boolean;
|
|
21
|
-
type: string;
|
|
22
|
-
options: {
|
|
23
|
-
connector: {
|
|
24
|
-
id: string;
|
|
25
|
-
connectorId: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
cssIcons: string;
|
|
30
|
-
plugins: any[];
|
|
31
|
-
pluginsOpts: {
|
|
32
|
-
[x: number]: PublicationManagerOptions | LoginDialogOptions | {
|
|
33
|
-
blocks: string[];
|
|
34
|
-
category: string;
|
|
35
|
-
panels?: undefined;
|
|
36
|
-
cmdOpenNewPageDialog?: undefined;
|
|
37
|
-
cmdOpenSettings?: undefined;
|
|
38
|
-
appendTo?: undefined;
|
|
39
|
-
enableCount?: undefined;
|
|
40
|
-
enablePerformance?: undefined;
|
|
41
|
-
onError?: undefined;
|
|
42
|
-
blockLabel?: undefined;
|
|
43
|
-
blockCustomCode?: undefined;
|
|
44
|
-
api_key?: undefined;
|
|
45
|
-
} | {
|
|
46
|
-
panels: ({
|
|
47
|
-
id: string;
|
|
48
|
-
className: string;
|
|
49
|
-
attributes: {
|
|
50
|
-
title: string;
|
|
51
|
-
containerClassName?: undefined;
|
|
52
|
-
};
|
|
53
|
-
link: string;
|
|
54
|
-
command: string;
|
|
55
|
-
buttons?: undefined;
|
|
56
|
-
} | {
|
|
57
|
-
id: string;
|
|
58
|
-
className: string;
|
|
59
|
-
attributes: {
|
|
60
|
-
title: string;
|
|
61
|
-
containerClassName: string;
|
|
62
|
-
};
|
|
63
|
-
command: string;
|
|
64
|
-
link?: undefined;
|
|
65
|
-
buttons?: undefined;
|
|
66
|
-
} | {
|
|
67
|
-
id: string;
|
|
68
|
-
className: string;
|
|
69
|
-
attributes: {
|
|
70
|
-
title: string;
|
|
71
|
-
containerClassName: string;
|
|
72
|
-
};
|
|
73
|
-
command: string;
|
|
74
|
-
buttons: {
|
|
75
|
-
id: string;
|
|
76
|
-
className: string;
|
|
77
|
-
label: string;
|
|
78
|
-
command: string;
|
|
79
|
-
}[];
|
|
80
|
-
link?: undefined;
|
|
81
|
-
} | {
|
|
82
|
-
id: string;
|
|
83
|
-
className: string;
|
|
84
|
-
attributes: {
|
|
85
|
-
title: string;
|
|
86
|
-
containerClassName: string;
|
|
87
|
-
};
|
|
88
|
-
command: string;
|
|
89
|
-
buttons: {
|
|
90
|
-
className: string;
|
|
91
|
-
command: string;
|
|
92
|
-
text: string;
|
|
93
|
-
}[];
|
|
94
|
-
link?: undefined;
|
|
95
|
-
} | {
|
|
96
|
-
id: string;
|
|
97
|
-
className: string;
|
|
98
|
-
attributes: {
|
|
99
|
-
title: string;
|
|
100
|
-
containerClassName?: undefined;
|
|
101
|
-
};
|
|
102
|
-
command: any;
|
|
103
|
-
link?: undefined;
|
|
104
|
-
buttons?: undefined;
|
|
105
|
-
} | {
|
|
106
|
-
id: string;
|
|
107
|
-
attributes: {
|
|
108
|
-
title?: undefined;
|
|
109
|
-
containerClassName?: undefined;
|
|
110
|
-
};
|
|
111
|
-
className: string;
|
|
112
|
-
link?: undefined;
|
|
113
|
-
command?: undefined;
|
|
114
|
-
buttons?: undefined;
|
|
115
|
-
})[];
|
|
116
|
-
blocks?: undefined;
|
|
117
|
-
category?: undefined;
|
|
118
|
-
cmdOpenNewPageDialog?: undefined;
|
|
119
|
-
cmdOpenSettings?: undefined;
|
|
120
|
-
appendTo?: undefined;
|
|
121
|
-
enableCount?: undefined;
|
|
122
|
-
enablePerformance?: undefined;
|
|
123
|
-
onError?: undefined;
|
|
124
|
-
blockLabel?: undefined;
|
|
125
|
-
blockCustomCode?: undefined;
|
|
126
|
-
api_key?: undefined;
|
|
127
|
-
} | {
|
|
128
|
-
cmdOpenNewPageDialog: string;
|
|
129
|
-
cmdOpenSettings: string;
|
|
130
|
-
appendTo: string;
|
|
131
|
-
blocks?: undefined;
|
|
132
|
-
category?: undefined;
|
|
133
|
-
panels?: undefined;
|
|
134
|
-
enableCount?: undefined;
|
|
135
|
-
enablePerformance?: undefined;
|
|
136
|
-
onError?: undefined;
|
|
137
|
-
blockLabel?: undefined;
|
|
138
|
-
blockCustomCode?: undefined;
|
|
139
|
-
api_key?: undefined;
|
|
140
|
-
} | {
|
|
141
|
-
enableCount: boolean;
|
|
142
|
-
enablePerformance: boolean;
|
|
143
|
-
blocks?: undefined;
|
|
144
|
-
category?: undefined;
|
|
145
|
-
panels?: undefined;
|
|
146
|
-
cmdOpenNewPageDialog?: undefined;
|
|
147
|
-
cmdOpenSettings?: undefined;
|
|
148
|
-
appendTo?: undefined;
|
|
149
|
-
onError?: undefined;
|
|
150
|
-
blockLabel?: undefined;
|
|
151
|
-
blockCustomCode?: undefined;
|
|
152
|
-
api_key?: undefined;
|
|
153
|
-
} | {
|
|
154
|
-
onError: (errors: any) => void;
|
|
155
|
-
blocks?: undefined;
|
|
156
|
-
category?: undefined;
|
|
157
|
-
panels?: undefined;
|
|
158
|
-
cmdOpenNewPageDialog?: undefined;
|
|
159
|
-
cmdOpenSettings?: undefined;
|
|
160
|
-
appendTo?: undefined;
|
|
161
|
-
enableCount?: undefined;
|
|
162
|
-
enablePerformance?: undefined;
|
|
163
|
-
blockLabel?: undefined;
|
|
164
|
-
blockCustomCode?: undefined;
|
|
165
|
-
api_key?: undefined;
|
|
166
|
-
} | {
|
|
167
|
-
blockLabel: string;
|
|
168
|
-
blockCustomCode: {
|
|
169
|
-
category: string;
|
|
170
|
-
};
|
|
171
|
-
blocks?: undefined;
|
|
172
|
-
category?: undefined;
|
|
173
|
-
panels?: undefined;
|
|
174
|
-
cmdOpenNewPageDialog?: undefined;
|
|
175
|
-
cmdOpenSettings?: undefined;
|
|
176
|
-
appendTo?: undefined;
|
|
177
|
-
enableCount?: undefined;
|
|
178
|
-
enablePerformance?: undefined;
|
|
179
|
-
onError?: undefined;
|
|
180
|
-
api_key?: undefined;
|
|
181
|
-
} | {
|
|
182
|
-
appendTo: string;
|
|
183
|
-
blocks?: undefined;
|
|
184
|
-
category?: undefined;
|
|
185
|
-
panels?: undefined;
|
|
186
|
-
cmdOpenNewPageDialog?: undefined;
|
|
187
|
-
cmdOpenSettings?: undefined;
|
|
188
|
-
enableCount?: undefined;
|
|
189
|
-
enablePerformance?: undefined;
|
|
190
|
-
onError?: undefined;
|
|
191
|
-
blockLabel?: undefined;
|
|
192
|
-
blockCustomCode?: undefined;
|
|
193
|
-
api_key?: undefined;
|
|
194
|
-
} | {
|
|
195
|
-
api_key: string;
|
|
196
|
-
blocks?: undefined;
|
|
197
|
-
category?: undefined;
|
|
198
|
-
panels?: undefined;
|
|
199
|
-
cmdOpenNewPageDialog?: undefined;
|
|
200
|
-
cmdOpenSettings?: undefined;
|
|
201
|
-
appendTo?: undefined;
|
|
202
|
-
enableCount?: undefined;
|
|
203
|
-
enablePerformance?: undefined;
|
|
204
|
-
onError?: undefined;
|
|
205
|
-
blockLabel?: undefined;
|
|
206
|
-
blockCustomCode?: undefined;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
export declare function initEditor(config: any, grapesJsPlugins: any): Promise<Editor>;
|
|
3
|
+
export declare function getEditorConfig(id: WebsiteId, connectorId: ConnectorId, rootUrl: string): EditorConfig;
|
|
4
|
+
export declare function initEditor(config: EditorConfig): Promise<Editor>;
|
|
211
5
|
export declare function getEditor(): Editor;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
export declare const WEBSITE_DATA_FILE = "website.json";
|
|
5
5
|
export declare const WEBSITE_META_DATA_FILE = "meta.json";
|
|
6
6
|
export declare const DEFAULT_WEBSITE_ID = "default";
|
|
7
|
-
export declare const DEFAULT_CONNECTOR_ID = "";
|
|
8
7
|
export declare const DEFAULT_LANGUAGE = "en";
|
|
9
8
|
export declare const CLIENT_CONFIG_FILE_NAME = "silex.js";
|
|
10
9
|
export declare const API_PATH = "/api";
|
|
@@ -24,7 +23,7 @@ export declare const API_WEBSITE_WRITE = "/";
|
|
|
24
23
|
export declare const API_WEBSITE_CREATE = "/";
|
|
25
24
|
export declare const API_WEBSITE_DELETE = "/";
|
|
26
25
|
export declare const API_WEBSITE_LIST = "/";
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const API_WEBSITE_ASSETS_WRITE = "assets";
|
|
26
|
+
export declare const API_WEBSITE_ASSET_READ = "/assets";
|
|
27
|
+
export declare const API_WEBSITE_ASSETS_WRITE = "/assets";
|
|
29
28
|
export declare const API_WEBSITE_META_READ = "/meta";
|
|
30
29
|
export declare const API_WEBSITE_META_WRITE = "/meta";
|
|
@@ -4021,6 +4021,8 @@ form.silex-form .silex-form__group.col2 {
|
|
|
4021
4021
|
color: #ddd;
|
|
4022
4022
|
justify-content: center;
|
|
4023
4023
|
align-items: center;
|
|
4024
|
+
background-color: #444;
|
|
4025
|
+
z-index: 10;
|
|
4024
4026
|
}
|
|
4025
4027
|
|
|
4026
4028
|
.silex-main {
|
|
@@ -4190,6 +4192,11 @@ form.silex-form .silex-form__group.col2 {
|
|
|
4190
4192
|
font-weight: 900;
|
|
4191
4193
|
}
|
|
4192
4194
|
|
|
4195
|
+
.fa-sign-out:before {
|
|
4196
|
+
content: "\f08b";
|
|
4197
|
+
font-weight: 900;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4193
4200
|
/*
|
|
4194
4201
|
.fa-plus:before {
|
|
4195
4202
|
content: "+";
|