@silexlabs/silex 3.0.0-alpha.122 → 3.0.0-alpha.124
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/.env.default +1 -1
- package/README.md +25 -9
- package/dist/client/client/grapesjs/project-bar.d.ts +16 -0
- package/dist/client/css/admin.css +5 -0
- package/dist/client/js/main.js +156 -83
- package/dist/client/js/main.js.LICENSE.txt +11 -1
- package/dist/client/types.d.ts +2 -1
- package/dist/plugins/client/client/config.js +19 -2
- package/dist/plugins/client/client/config.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/index.js +11 -11
- package/dist/plugins/client/client/grapesjs/index.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/project-bar.d.ts +16 -0
- package/dist/plugins/client/client/grapesjs/project-bar.js +72 -68
- package/dist/plugins/client/client/grapesjs/project-bar.js.map +1 -1
- package/dist/plugins/client/types.d.ts +2 -1
- package/dist/plugins/client/types.js +1 -0
- package/dist/plugins/client/types.js.map +1 -1
- package/dist/plugins/server/server/config.js +3 -3
- package/dist/plugins/server/server/config.js.map +1 -1
- package/dist/plugins/server/server/connectors/FsHosting.js +1 -0
- package/dist/plugins/server/server/connectors/FsHosting.js.map +1 -1
- package/dist/plugins/server/server/connectors/FsStorage.js +1 -0
- package/dist/plugins/server/server/connectors/FsStorage.js.map +1 -1
- package/dist/plugins/server/types.d.ts +2 -1
- package/dist/plugins/server/types.js +1 -0
- package/dist/plugins/server/types.js.map +1 -1
- package/dist/server/server/cli.js +5 -5
- package/dist/server/server/config.js +3 -3
- package/dist/server/server/connectors/FsHosting.js +1 -0
- package/dist/server/server/connectors/FsStorage.js +1 -0
- package/dist/server/types.js +1 -0
- package/package.json +22 -22
- package/src/ts/client/config.ts +20 -2
- package/src/ts/client/grapesjs/index.ts +11 -11
- package/src/ts/client/grapesjs/internal-links.test.ts +1 -5
- package/src/ts/client/grapesjs/project-bar.ts +82 -64
- package/src/ts/client/index.ts +1 -0
- package/src/ts/client/publication-transformers.test.ts +1 -4
- package/src/ts/server/cli.ts +4 -4
- package/src/ts/server/config.ts +4 -4
- package/src/ts/server/connectors/FsHosting.ts +1 -0
- package/src/ts/server/connectors/FsStorage.ts +1 -0
- package/src/ts/types.ts +1 -0
package/.env.default
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
[](https://
|
|
1
|
+
[](https://v3.silex.me)
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
Brought to you by [Alex Hoyau](https://www.patreon.com/lexoyo) and [Silex contributors](https://github.com/silexlabs/Silex/graphs/contributors).
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Help make Silex sustainable by being [part of the community](https://community.silex.me/), [contributing documentation](https://docs.silex.me/), [making a financial contribution](https://opencollective.com/silex), [report bugs](https://github.com/silexlabs/Silex/issues).
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Silex
|
|
10
10
|
|
|
11
11
|
Silex is a no-code tool for building websites. It also lets you code when needed. It can be used online, offline or in a JAMStack project.
|
|
12
12
|
|
|
@@ -48,13 +48,15 @@ There is a desktop application that you can install on your computer which may b
|
|
|
48
48
|
|
|
49
49
|
You can also run Silex locally or on your server using `npx`, `npm`, or `Docker`.
|
|
50
50
|
|
|
51
|
+
Check the [developer docs](https://docs.silex.me/en/dev) for configuration options and integration with your js projects.
|
|
52
|
+
|
|
51
53
|
#### Using npx
|
|
52
54
|
|
|
53
55
|
```bash
|
|
54
56
|
npx @silexlabs/silex
|
|
55
57
|
```
|
|
56
58
|
|
|
57
|
-
This command will run Silex with
|
|
59
|
+
This command will run Silex with default config.
|
|
58
60
|
|
|
59
61
|
#### Using Docker
|
|
60
62
|
|
|
@@ -62,7 +64,7 @@ This command will run Silex with the entry point being `src/ts/server/cli.ts`.
|
|
|
62
64
|
docker run -p 6805:6805 silexlabs/silex
|
|
63
65
|
```
|
|
64
66
|
|
|
65
|
-
This command will run Silex in a Docker container
|
|
67
|
+
This command will run Silex in a Docker container.
|
|
66
68
|
|
|
67
69
|
#### Using npm
|
|
68
70
|
|
|
@@ -72,16 +74,30 @@ First, install Silex as a dev dependency in your project:
|
|
|
72
74
|
npm install --save-dev @silexlabs/silex
|
|
73
75
|
```
|
|
74
76
|
|
|
75
|
-
Then, you can run Silex with the `silex` command
|
|
77
|
+
Then, you can run Silex with the `silex` command in your `package.json` scripts:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"scripts": {
|
|
82
|
+
"start": "silex"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
76
86
|
|
|
77
87
|
## Configuration
|
|
78
88
|
|
|
79
|
-
You can configure Silex using environment variables and command-line options. All available options can be found in `src/ts/server/cli.ts
|
|
89
|
+
You can configure Silex using environment variables and command-line options. All available options can be found in the [developer docs](https://docs.silex.me/en/dev) as well as in the code: [`src/ts/server/cli.ts`](./src/ts/server/cli.ts).
|
|
90
|
+
|
|
91
|
+
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:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
$ npx silex --client-config=./examples/client-config-transformers.js --server-config=`pwd`/examples/server-config-plugins.js
|
|
95
|
+
```
|
|
80
96
|
|
|
81
|
-
|
|
97
|
+
Or like this:
|
|
82
98
|
|
|
83
99
|
```sh
|
|
84
|
-
$ SILEX_CLIENT_CONFIG=./examples/client-config-transformers.js
|
|
100
|
+
$ SILEX_CLIENT_CONFIG=./examples/client-config-transformers.js SILEX_SERVER_CONFIG=`pwd`/examples/server-config-plugins.js npm run start:debug
|
|
85
101
|
```
|
|
86
102
|
|
|
87
103
|
## Contributing
|
|
@@ -1 +1,17 @@
|
|
|
1
|
+
import { Editor } from 'grapesjs';
|
|
2
|
+
export interface PanelObject {
|
|
3
|
+
command: string | ((editor: Editor) => void);
|
|
4
|
+
text: string;
|
|
5
|
+
className: string;
|
|
6
|
+
attributes: {
|
|
7
|
+
title?: string;
|
|
8
|
+
containerClassName?: string;
|
|
9
|
+
};
|
|
10
|
+
buttons?: {
|
|
11
|
+
command: string;
|
|
12
|
+
text: string;
|
|
13
|
+
className: string;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
1
16
|
export declare const projectBarPlugin: (editor: any, opts: any) => void;
|
|
17
|
+
export declare function addButton(editor: Editor, panel: PanelObject): void;
|
|
@@ -1916,6 +1916,11 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
|
|
|
1916
1916
|
width: 100%;
|
|
1917
1917
|
height: 100%;
|
|
1918
1918
|
}
|
|
1919
|
+
.gjs-cv-canvas__spots {
|
|
1920
|
+
position: absolute;
|
|
1921
|
+
pointer-events: none;
|
|
1922
|
+
z-index: 1;
|
|
1923
|
+
}
|
|
1919
1924
|
.gjs-cv-canvas .gjs-ghost {
|
|
1920
1925
|
display: none;
|
|
1921
1926
|
pointer-events: none;
|