@silexlabs/silex 3.6.0-canary.1 → 3.6.0
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/constants.d.ts +1 -0
- package/dist/client/css/admin.css +0 -1
- package/dist/client/index.html +2 -2
- package/dist/client/js/main.js +146 -146
- 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 -4
- package/src/css/silex.scss +0 -1
- package/src/ts/client/api.ts +14 -2
- 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;
|
|
@@ -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";
|
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?442241"><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?333480"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?333480"></script><script>silex.start()
|
|
11
11
|
// From here silex.config is available and Silex is getting started</script></body></html>
|