@silexlabs/silex 3.6.0-canary.0 → 3.6.0-canary.2
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 +11 -0
- package/dist/client/client/grapesjs/cms/index.d.ts +0 -1
- package/dist/client/client/grapesjs/cms/liquid.d.ts +16 -2
- package/dist/client/constants.d.ts +1 -0
- package/dist/client/css/admin.css +4 -1
- package/dist/client/index.html +2 -2
- package/dist/client/js/main.js +931 -360
- package/dist/client/types.d.ts +11 -0
- package/dist/plugins/client/types.d.ts +11 -0
- package/dist/plugins/client/types.js.map +1 -1
- package/dist/plugins/server/constants.d.ts +1 -0
- package/dist/plugins/server/constants.js +2 -1
- package/dist/plugins/server/constants.js.map +1 -1
- package/dist/plugins/server/plugins/server/GitlabConnector.d.ts +7 -0
- package/dist/plugins/server/plugins/server/GitlabConnector.js +60 -2
- package/dist/plugins/server/plugins/server/GitlabConnector.js.map +1 -1
- package/dist/plugins/server/types.d.ts +11 -0
- package/dist/plugins/server/types.js.map +1 -1
- package/dist/server/constants.js +2 -1
- package/dist/server/server/api/connectorApi.js +16 -3
- package/dist/server/server/api/websiteApi.js +25 -0
- package/package.json +3 -3
- package/src/css/dialog.scss +3 -0
- package/src/css/silex.scss +0 -1
- package/src/ts/client/api.ts +14 -2
- package/src/ts/client/grapesjs/cms/index.ts +38 -2
- package/src/ts/client/grapesjs/cms/liquid.ts +64 -13
- package/src/ts/client/grapesjs/cms/page-settings.ts +105 -8
- package/src/ts/client/grapesjs/cms/publication.ts +36 -3
- package/src/ts/client/grapesjs/cms/site-settings.ts +4 -2
- package/src/ts/client/grapesjs/img.ts +0 -1
- package/src/ts/constants.ts +1 -0
- package/src/ts/plugins/server/GitlabConnector.ts +64 -2
- package/src/ts/server/api/connectorApi.ts +17 -3
- package/src/ts/server/api/websiteApi.ts +38 -2
- package/src/ts/types.ts +4 -1
|
@@ -9,6 +9,7 @@ export declare enum ApiRoute {
|
|
|
9
9
|
WEBSITE_WRITE = "/api/website/",
|
|
10
10
|
WEBSITE_DELETE = "/api/website/",
|
|
11
11
|
WEBSITE_DUPLICATE = "/api/website/duplicate",
|
|
12
|
+
WEBSITE_FORK = "/api/website/fork",
|
|
12
13
|
WEBSITE_CREATE = "/api/website/",
|
|
13
14
|
WEBSITE_LIST = "/api/website/",
|
|
14
15
|
WEBSITE_ASSETS_READ = "/api/website/assets",
|
|
@@ -59,6 +60,16 @@ export declare function websiteDuplicate({ websiteId, connectorId }: {
|
|
|
59
60
|
websiteId: WebsiteId;
|
|
60
61
|
connectorId?: ConnectorId;
|
|
61
62
|
}): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Fork an external/public GitLab project
|
|
65
|
+
* @param gitlabUrl - The project path in the "username/repo" format (URLs are not accepted)
|
|
66
|
+
* @param connectorId - Optional connector ID (must be a GitLab connector)
|
|
67
|
+
* @returns The new website ID
|
|
68
|
+
*/
|
|
69
|
+
export declare function websiteFork({ gitlabUrl, connectorId }: {
|
|
70
|
+
gitlabUrl: string;
|
|
71
|
+
connectorId?: ConnectorId;
|
|
72
|
+
}): Promise<WebsiteId>;
|
|
62
73
|
export declare function websiteCreate({ websiteId, data, connectorId }: {
|
|
63
74
|
websiteId: WebsiteId;
|
|
64
75
|
data: WebsiteMetaFileContent;
|
|
@@ -23,7 +23,6 @@ export interface Silex11tyPluginWebsiteSettings extends WebsiteSettings {
|
|
|
23
23
|
eleventyPageData?: string;
|
|
24
24
|
eleventyPermalink?: string;
|
|
25
25
|
eleventyPageSize?: string;
|
|
26
|
-
eleventyPageReverse?: boolean;
|
|
27
26
|
silexLanguagesList?: string;
|
|
28
27
|
silexLanguagesDefault?: string;
|
|
29
28
|
eleventyNavigationKey?: string;
|
|
@@ -53,7 +53,21 @@ export declare function getNextVariableName(component: Component, numNextVar: nu
|
|
|
53
53
|
* - state can only be the first token
|
|
54
54
|
*
|
|
55
55
|
* Example of return value: `countries.continent.countries | first.name`
|
|
56
|
+
*
|
|
57
|
+
* Returns both the main statement and any prefix statements needed for nested filter options
|
|
56
58
|
*/
|
|
57
|
-
export declare function getLiquidStatement(expression: Expression, variableName: string, lastVariableName?: string):
|
|
59
|
+
export declare function getLiquidStatement(expression: Expression, variableName: string, lastVariableName?: string, component?: Component): {
|
|
60
|
+
statement: string;
|
|
61
|
+
prefixStatements: {
|
|
62
|
+
variableName: string;
|
|
63
|
+
liquid: string;
|
|
64
|
+
}[];
|
|
65
|
+
};
|
|
58
66
|
export declare function getLiquidStatementProperties(properties: (Property | State)[]): string;
|
|
59
|
-
export declare function getLiquidStatementFilters(filters: Filter[]):
|
|
67
|
+
export declare function getLiquidStatementFilters(filters: Filter[], component?: Component): {
|
|
68
|
+
filterStr: string;
|
|
69
|
+
prefixStatements: {
|
|
70
|
+
variableName: string;
|
|
71
|
+
liquid: string;
|
|
72
|
+
}[];
|
|
73
|
+
};
|
|
@@ -25,6 +25,7 @@ export declare const API_WEBSITE_WRITE = "/";
|
|
|
25
25
|
export declare const API_WEBSITE_CREATE = "/";
|
|
26
26
|
export declare const API_WEBSITE_DELETE = "/";
|
|
27
27
|
export declare const API_WEBSITE_DUPLICATE = "/duplicate";
|
|
28
|
+
export declare const API_WEBSITE_FORK = "/fork";
|
|
28
29
|
export declare const API_WEBSITE_LIST = "/";
|
|
29
30
|
export declare const API_WEBSITE_ASSET_READ = "/assets";
|
|
30
31
|
export declare const API_WEBSITE_ASSETS_WRITE = "/assets";
|
|
@@ -4308,7 +4308,6 @@ textarea:focus {
|
|
|
4308
4308
|
}
|
|
4309
4309
|
.settings-dialog .settings-body {
|
|
4310
4310
|
flex: 1;
|
|
4311
|
-
overflow: auto;
|
|
4312
4311
|
padding: 0;
|
|
4313
4312
|
}
|
|
4314
4313
|
.settings-dialog .settings-body .silex-form {
|
|
@@ -4631,6 +4630,10 @@ form.silex-form .silex-form__element {
|
|
|
4631
4630
|
margin: 0;
|
|
4632
4631
|
}
|
|
4633
4632
|
|
|
4633
|
+
details.silex-more summary {
|
|
4634
|
+
cursor: pointer;
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4634
4637
|
details.silex-more,
|
|
4635
4638
|
.silex-help {
|
|
4636
4639
|
margin: 10px 0;
|
package/dist/client/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" translate="no"><head><title>Silex</title><meta name="description" content="This is a public instance of Silex website builder. Build websites in the browser"><link rel="shortcut icon" href="assets/favicon.png?
|
|
1
|
+
<!DOCTYPE html><html lang="en" translate="no"><head><title>Silex</title><meta name="description" content="This is a public instance of Silex website builder. Build websites in the browser"><link rel="shortcut icon" href="assets/favicon.png?410412"><style>body {
|
|
2
2
|
background-color: #444444;
|
|
3
3
|
font-family: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
4
4
|
}
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
transition: opacity 0.25s 0.25s ease-in-out;
|
|
8
8
|
}
|
|
9
9
|
</style></head><body class="silex-loading"><div class="silex-loader silex-dialog" role="status" aria-live="polite" aria-busy="true">Loading
|
|
10
|
-
</div><link rel="stylesheet" type="text/css" href="css/admin.css?
|
|
10
|
+
</div><link rel="stylesheet" type="text/css" href="css/admin.css?54411"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?54411"></script><script>silex.start()
|
|
11
11
|
// From here silex.config is available and Silex is getting started</script></body></html>
|