@silexlabs/silex 3.3.1-4 → 3.3.1-6

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.
Files changed (30) hide show
  1. package/README.md +27 -2
  2. package/dist/client/index.html +2 -2
  3. package/dist/client/js/main.js +214 -214
  4. package/dist/client/js/main.js.LICENSE.txt +1 -14
  5. package/dist/plugins/server/plugins/server/FtpConnector.js +53 -8
  6. package/dist/plugins/server/plugins/server/FtpConnector.js.map +1 -1
  7. package/dist/plugins/server/plugins/server/GitlabConnector.js +21 -66
  8. package/dist/plugins/server/plugins/server/GitlabConnector.js.map +1 -1
  9. package/dist/plugins/server/server/connectors/FsStorage.js +50 -4
  10. package/dist/plugins/server/server/connectors/FsStorage.js.map +1 -1
  11. package/dist/plugins/server/server/utils/websiteDataSerialization.d.ts +20 -0
  12. package/dist/plugins/server/server/utils/websiteDataSerialization.js +127 -0
  13. package/dist/plugins/server/server/utils/websiteDataSerialization.js.map +1 -0
  14. package/dist/server/page.js +14 -0
  15. package/dist/server/server/connectors/FsStorage.js +40 -4
  16. package/dist/server/server/utils/websiteDataSerialization.js +85 -0
  17. package/package.json +12 -15
  18. package/src/ts/client/grapesjs/PublicationUi.ts +1 -1
  19. package/src/ts/client/grapesjs/index.ts +9 -11
  20. package/src/ts/client/grapesjs/storage.ts +6 -9
  21. package/src/ts/client/index.ts +0 -2
  22. package/src/ts/plugins/server/FtpConnector.test.ts +2 -1
  23. package/src/ts/plugins/server/FtpConnector.ts +61 -9
  24. package/src/ts/plugins/server/GitlabConnector.ts +22 -80
  25. package/src/ts/server/connectors/FsStorage.test.ts +6 -2
  26. package/src/ts/server/connectors/FsStorage.ts +60 -5
  27. package/src/ts/server/utils/websiteDataSerialization.test.ts +59 -0
  28. package/src/ts/server/utils/websiteDataSerialization.ts +143 -0
  29. package/src/ts/client/grapesjs/dynamic-plugins.ts +0 -63
  30. package/src/ts/client/grapesjs/plugin-options.ts +0 -243
package/README.md CHANGED
@@ -4,6 +4,7 @@ This repository is the core library of Silex, it is a nodejs server which serves
4
4
 
5
5
  Useful links
6
6
 
7
+ * [Documentation for developers](https://docs.silex.me/en/dev/run)
7
8
  * [npm package for this repo](https://www.npmjs.com/package/@silexlabs/silex)
8
9
  * [Docker image for this repo](https://hub.docker.com/r/silexlabs/silex)
9
10
  * [Official website](https://www.silex.me/)
@@ -71,7 +72,7 @@ You can configure Silex using environment variables and command-line options. Al
71
72
  Check the example config files - which are the same as plugins in Silex, in the [`examples/`](./examples/) folder. To test these configs, start Silex locally like this:
72
73
 
73
74
  ```sh
74
- $ npx silex --client-config=./examples/client-config-transformers.js --server-config=`pwd`/examples/server-config-plugins.js
75
+ $ npx silex --client-config=./examples/client-config-transformers.js --server-config=`pwd`/examples/server-config-plugins.js
75
76
  ```
76
77
 
77
78
  Or like this:
@@ -80,6 +81,31 @@ Or like this:
80
81
  $ SILEX_CLIENT_CONFIG=./examples/client-config-transformers.js SILEX_SERVER_CONFIG=`pwd`/examples/server-config-plugins.js npm run start:debug
81
82
  ```
82
83
 
84
+ ## Development
85
+
86
+ To contribute to this project:
87
+
88
+ 1. **Clone the Repository**:
89
+ ```bash
90
+ git clone https://github.com/silexlabs/silex-lib.git
91
+ cd silex-lib
92
+ ```
93
+
94
+ 2. **Install Dependencies**:
95
+ ```bash
96
+ npm install
97
+ ```
98
+
99
+ 3. **Build the Project**:
100
+ ```bash
101
+ npm run build
102
+ ```
103
+
104
+ 4. **Start Development Server**:
105
+ ```bash
106
+ npm run start:debug
107
+ ```
108
+
83
109
  ## Contributing
84
110
 
85
111
  Contributions are welcome! Please read our [contributing guidelines](CONTRIBUTING.md) for details on how to contribute to Silex.
@@ -95,4 +121,3 @@ The upstream projects we use in Silex are all listed in [Silex meta package](htt
95
121
  ## Github stars history
96
122
 
97
123
  [![Star History Chart](https://api.star-history.com/svg?repos=silexlabs/Silex&type=Timeline)](https://star-history.com/#silexlabs/Silex&Timeline)
98
-
@@ -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?903727"><style>body {
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?37978"><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?16660"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?16660"></script><script>silex.start()
10
+ </div><link rel="stylesheet" type="text/css" href="css/admin.css?786600"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?786600"></script><script>silex.start()
11
11
  // From here silex.config is available and Silex is getting started</script></body></html>