@silexlabs/silex 3.0.0-alpha.24 → 3.0.0-alpha.26

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 (43) hide show
  1. package/dist/client/js/main.js +1 -1
  2. package/dist/server/cli.js +31 -0
  3. package/package.json +7 -1
  4. package/src/ts/server/cli.ts +1 -1
  5. package/.dockerignore +0 -5
  6. package/.editorconfig +0 -14
  7. package/.eslintrc.json +0 -43
  8. package/.github/FUNDING.yml +0 -13
  9. package/.github/workflows/docker-hub-publish.yml +0 -36
  10. package/.github/workflows/npm-publish.yml +0 -19
  11. package/.github/workflows/test.yml +0 -26
  12. package/.nvmrc +0 -1
  13. package/CODE_OF_CONDUCT.md +0 -128
  14. package/CONTRIBUTING.md +0 -108
  15. package/Dockerfile +0 -15
  16. package/app.json +0 -106
  17. package/directus.silex.js +0 -7
  18. package/jest.config.js +0 -10
  19. package/logos/logo_by_ceubri/silex-icon-2018@200px.png +0 -0
  20. package/logos/logo_by_ceubri/silex-icon-2018@4x.png +0 -0
  21. package/logos/logo_by_ceubri/silex-logo-2018-white-transp.pdf +0 -0
  22. package/logos/logo_by_ceubri/silex-logo-2018-white.jpg +0 -0
  23. package/logos/logo_by_ceubri/silex-logo-2018-white.pdf +0 -0
  24. package/logos/logo_by_ceubri/silex-logo-2018-white.png +0 -0
  25. package/logos/logo_by_ceubri/silex-logo-2018-white@0.5x.png +0 -0
  26. package/logos/logo_by_ceubri/silex-logo-2018-white@0.75x.png +0 -0
  27. package/logos/logo_by_ceubri/silex-logo-2018-white@4x.jpg +0 -0
  28. package/logos/logo_by_ceubri/silex-logo-2018-white@4x.png +0 -0
  29. package/logos/logo_by_ceubri/silex-logo-2018.ai +5 -2521
  30. package/logos/logo_by_ceubri/silex-logo-2018.jpg +0 -0
  31. package/logos/logo_by_ceubri/silex-logo-2018.pdf +0 -0
  32. package/logos/logo_by_ceubri/silex-logo-2018.png +0 -0
  33. package/logos/logo_by_ceubri/silex-logo-2018@0.5x.png +0 -0
  34. package/logos/logo_by_ceubri/silex-logo-2018@0.75x.png +0 -0
  35. package/logos/logo_by_ceubri/silex-logo-2018@4x.jpg +0 -0
  36. package/logos/logo_by_ceubri/silex-logo-2018@4x.png +0 -0
  37. package/logos/silexlabs.png +0 -0
  38. package/tsconfig-server-debug.json +0 -20
  39. package/tsconfig-server-release.json +0 -19
  40. package/tsconfig.jest.json +0 -9
  41. package/tsconfig.json +0 -27
  42. package/webpack.config.js +0 -29
  43. package/webpack.debug.config.js +0 -8
@@ -89,7 +89,7 @@ var silex;(()=>{var t={357:function(t){var e;"undefined"!=typeof globalThis?glob
89
89
  ><span>${e.text}</span></div>
90
90
  `))}
91
91
  </header>
92
- `,r),document.body.appendChild(r),t.on("load",(()=>{n.view.el.appendChild(r)}))),t.Commands.add(e.command,{run(){e.link&&window.open(e.link),e.attributes.containerClassName&&(n.set("visible",!0),r.classList.remove("gjs-hidden"),t.Canvas.getFrameEl().classList.add("silex-squeeze-left"))},stop(){e.attributes.containerClassName&&(n.set("visible",!1),r.classList.add("gjs-hidden"),t.Canvas.getFrameEl().classList.remove("silex-squeeze-left"))}})})),t.on("load device:select page",(()=>{!function(){const e=n.view.el,r=t.Canvas.getFrameEl();r.classList.remove("enable-squeeze"),setTimeout((()=>{const t=r.getClientRects()[0]?.left,n=e.getClientRects()[0]?.right;t<n||!n?r.classList.add("enable-squeeze"):r.classList.remove("enable-squeeze")}),400),n.get("visible")?r.classList.add("silex-squeeze-left"):r.classList.remove("silex-squeeze-left")}()}))},te=document.createElement("div");let ee;const ne="open-settings";let re="v3";const oe=f.plugins.add("settings-dialog",((t,e)=>{try{re="3.0.0-alpha.24"}catch(t){}console.log("Silex version:",re),t.Commands.add(ne,{run:(e,n,{page:r})=>{ee=t.Modal.open({title:r?"Page settings":"Site Settings",content:"",attributes:{class:"settings-dialog"}}).onceClose((()=>{t.stopCommand(ne)})),function(t,e,n=t.getModel()){const r=n.get("settings")||{};n.set("settings",r),Ct(it`
92
+ `,r),document.body.appendChild(r),t.on("load",(()=>{n.view.el.appendChild(r)}))),t.Commands.add(e.command,{run(){e.link&&window.open(e.link),e.attributes.containerClassName&&(n.set("visible",!0),r.classList.remove("gjs-hidden"),t.Canvas.getFrameEl().classList.add("silex-squeeze-left"))},stop(){e.attributes.containerClassName&&(n.set("visible",!1),r.classList.add("gjs-hidden"),t.Canvas.getFrameEl().classList.remove("silex-squeeze-left"))}})})),t.on("load device:select page",(()=>{!function(){const e=n.view.el,r=t.Canvas.getFrameEl();r.classList.remove("enable-squeeze"),setTimeout((()=>{const t=r.getClientRects()[0]?.left,n=e.getClientRects()[0]?.right;t<n||!n?r.classList.add("enable-squeeze"):r.classList.remove("enable-squeeze")}),400),n.get("visible")?r.classList.add("silex-squeeze-left"):r.classList.remove("silex-squeeze-left")}()}))},te=document.createElement("div");let ee;const ne="open-settings";let re="v3";const oe=f.plugins.add("settings-dialog",((t,e)=>{try{re="3.0.0-alpha.26"}catch(t){}console.log("Silex version:",re),t.Commands.add(ne,{run:(e,n,{page:r})=>{ee=t.Modal.open({title:r?"Page settings":"Site Settings",content:"",attributes:{class:"settings-dialog"}}).onceClose((()=>{t.stopCommand(ne)})),function(t,e,n=t.getModel()){const r=n.get("settings")||{};n.set("settings",r),Ct(it`
93
93
  <p>The page settings will override site settings, <a href="https://github.com/silexlabs/Silex/wiki/Settings" target="_blank">more info about settings here</a>.</p>
94
94
  <form class="silex-form">
95
95
  <h2>General settings</h2>
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const cli_1 = require("cli");
5
+ const options = (0, cli_1.parse)({
6
+ config: ['c', 'Path for the server side config file to load at startup', 'file'],
7
+ port: ['p', 'Port to listen to', 'int'],
8
+ 'ssl-port': [false, 'Port to listen to for SSL/HTTPS', 'int'],
9
+ 'force-https': [false, 'Force HTTPS', 'true'],
10
+ 'ssl-private-key': [false, 'Path to private key for SSL', 'file'],
11
+ 'ssl-certificate': [false, 'Path to SSL certificate', 'file'],
12
+ 'force-https-trust-xfp-header': [false, 'Sets the trustXFPHeader param of the express module "cookie-session". Use only with --force-https', 'true'],
13
+ 'session-secret': ['s', 'Session secret', 'string'],
14
+ }, {});
15
+ if (options.config)
16
+ process.env.CONFIG = options.config;
17
+ if (options.port)
18
+ process.env.PORT = options.port;
19
+ if (options['ssl-port'])
20
+ process.env.SSL_PORT = options['ssl-port'];
21
+ if (options['force-https'])
22
+ process.env.SILEX_FORCE_HTTPS = options['force-https'];
23
+ if (options['ssl-private-key'])
24
+ process.env.SILEX_SSL_PRIVATE_KEY = options['ssl-private-key'];
25
+ if (options['ssl-certificate'])
26
+ process.env.SILEX_SSL_CERTIFICATE = options['ssl-certificate'];
27
+ if (options['force-https-trust-xfp-header'])
28
+ process.env.SILEX_FORCE_HTTPS_TRUST_XFP_HEADER = options['force-https-trust-xfp-header'];
29
+ if (options['session-secret'])
30
+ process.env.SILEX_SESSION_SECRET = options['session-secret'];
31
+ require("./index");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@silexlabs/silex",
3
3
  "description": "Free and easy website builder for everyone.",
4
- "version": "3.0.0-alpha.24",
4
+ "version": "3.0.0-alpha.26",
5
5
  "version:backwardcompat": "3.0.0",
6
6
  "author": {
7
7
  "name": "Alex Hoyau",
@@ -11,6 +11,12 @@
11
11
  "bin": {
12
12
  "silex": "./dist/server/cli.js"
13
13
  },
14
+ "files": [
15
+ "src",
16
+ "dist",
17
+ "public",
18
+ ".silex.js"
19
+ ],
14
20
  "license": "GPL-3.0",
15
21
  "engines": {
16
22
  "node": ">=12"
@@ -1,4 +1,4 @@
1
- #!/usr/bin/node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import { parse } from 'cli'
4
4
 
package/.dockerignore DELETED
@@ -1,5 +0,0 @@
1
- .git
2
- .gitmodules
3
- docs
4
- node_modules
5
- Dockerfile
package/.editorconfig DELETED
@@ -1,14 +0,0 @@
1
- # EditorConfig defines and maintains consistent coding styles between different
2
- # editors and IDEs: http://EditorConfig.org/
3
-
4
- # Top-most EditorConfig file
5
- root = true
6
-
7
- # All files
8
- [*]
9
- charset = utf-8
10
- end_of_line = lf
11
- insert_final_newline = true
12
- indent_style = space
13
- indent_size = 2
14
- trim_trailing_whitespace = true
package/.eslintrc.json DELETED
@@ -1,43 +0,0 @@
1
- {
2
- "ignorePatterns": [ "dist/" ],
3
- "env": {
4
- "browser": true,
5
- "es2021": true,
6
- "node": true
7
- },
8
- "extends": [
9
- "eslint:recommended",
10
- "plugin:@typescript-eslint/recommended"
11
- ],
12
- "overrides": [
13
- ],
14
- "parser": "@typescript-eslint/parser",
15
- "parserOptions": {
16
- "ecmaVersion": "latest",
17
- "sourceType": "module"
18
- },
19
- "plugins": [
20
- "@typescript-eslint"
21
- ],
22
- "rules": {
23
- "indent": [
24
- "error",
25
- 2
26
- ],
27
- "linebreak-style": [
28
- "error",
29
- "unix"
30
- ],
31
- "quotes": [
32
- "error",
33
- "single"
34
- ],
35
- "semi": [
36
- "error",
37
- "never"
38
- ],
39
- "no-case-declarations": [0],
40
- "@typescript-eslint/no-unused-vars": [0],
41
- "@typescript-eslint/no-explicit-any": [0]
42
- }
43
- }
@@ -1,13 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- # github: [lexoyo]
4
- # patreon: lexoyo
5
- open_collective: silex
6
-
7
- # ko_fi: # Replace with a single Ko-fi username
8
- # tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
9
- # community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
10
- # liberapay: # Replace with a single Liberapay username
11
- # issuehunt: # Replace with a single IssueHunt username
12
- # otechie: # Replace with a single Otechie username
13
- # custom: # Replace with a single custom sponsorship URL
@@ -1,36 +0,0 @@
1
- name: Publish DockerHub image
2
- # from https://itsmetommy.com/2021/07/05/push-to-docker-hub-using-github-actions/
3
-
4
- on:
5
- push:
6
- tags:
7
- - '*'
8
-
9
- jobs:
10
- build-container:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout code
14
- uses: actions/checkout@v2
15
-
16
- - name: Login to DockerHub
17
- uses: docker/login-action@v1
18
- with:
19
- username: ${{ secrets.DOCKER_USERNAME }}
20
- password: ${{ secrets.DOCKER_PASSWORD }}
21
-
22
- - name: Extract metadata (tags, labels) for Docker
23
- id: meta
24
- uses: docker/metadata-action@v3
25
- with:
26
- images: silexlabs/silex
27
-
28
- - name: Build and push
29
- uses: docker/build-push-action@v2
30
- with:
31
- context: .
32
- push: true
33
- tags: ${{ steps.meta.outputs.tags }}
34
- labels: ${{ steps.meta.outputs.labels }}
35
-
36
-
@@ -1,19 +0,0 @@
1
- name: Publish on npm
2
- on:
3
- push:
4
- tags:
5
- - '*'
6
- jobs:
7
- build:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: actions/checkout@v2
11
- # Setup .npmrc file to publish to npm
12
- - uses: actions/setup-node@v1
13
- with:
14
- node-version: '18.x'
15
- registry-url: 'https://registry.npmjs.org'
16
- - run: npm install
17
- - run: npm publish --access=public
18
- env:
19
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,26 +0,0 @@
1
- name: Run tests
2
-
3
- on: [push]
4
-
5
- jobs:
6
- build:
7
-
8
- runs-on: ${{ matrix.os }}
9
-
10
- strategy:
11
- matrix:
12
- node-version: [16.x, 18.x]
13
- os: [ubuntu-latest]
14
-
15
- steps:
16
- - uses: actions/checkout@v2
17
- - name: Use Node.js ${{ matrix.node-version }}
18
- uses: actions/setup-node@v1
19
- with:
20
- node-version: ${{ matrix.node-version }}
21
- - run: npm install
22
- - run: npm run build
23
- - run: npm test
24
- env:
25
- CI: true
26
- - run: npm run lint
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 18.13.0
@@ -1,128 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, religion, or sexual identity
10
- and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- * Demonstrating empathy and kindness toward other people
21
- * Being respectful of differing opinions, viewpoints, and experiences
22
- * Giving and gracefully accepting constructive feedback
23
- * Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- * Focusing on what is best not just for us as individuals, but for the
26
- overall community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- * The use of sexualized language or imagery, and sexual attention or
31
- advances of any kind
32
- * Trolling, insulting or derogatory comments, and personal or political attacks
33
- * Public or private harassment
34
- * Publishing others' private information, such as a physical or email
35
- address, without their explicit permission
36
- * Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official e-mail address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- contact [at] silex.me.
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series
86
- of actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or
93
- permanent ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within
113
- the community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.0, available at
119
- https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
-
121
- Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
- enforcement ladder](https://github.com/mozilla/diversity).
123
-
124
- [homepage]: https://www.contributor-covenant.org
125
-
126
- For answers to common questions about this code of conduct, see the FAQ at
127
- https://www.contributor-covenant.org/faq. Translations are available at
128
- https://www.contributor-covenant.org/translations.
package/CONTRIBUTING.md DELETED
@@ -1,108 +0,0 @@
1
- ### Overview
2
-
3
- To contribute code (features, bug fixes, design changes etc.) to the Silex code base, you'll need to complete a few steps to get a local working copy of our repository. Below are the steps you'll need to fork, clone, branch, and create a pull request.
4
-
5
- Please be sure to conform to the coding standards used throughout our project and bear in mind that, by contributing to this project, you agree to our [Code of Conduct](https://github.com/silexlabs/Silex/wiki/Silex-Code-of-Conduct).
6
-
7
- ### Steps
8
-
9
- If you don't have a GitHub account, start [here](https://github.com/join).
10
-
11
- 1. **Fork the project**
12
-
13
- Open the [Silex Project](https://github.com/silexlabs/Silex/) in GitHub. Click `Fork` in the upper right corner of the window. This adds a copy of the Silex repository to your GitHub account.
14
-
15
- 2. **Clone the fork**
16
-
17
- Now you'll make a local copy of the repository. From the command line:
18
-
19
- ```bash
20
- # Open command line terminal
21
- # Navigate to your desired working directory
22
- cd <your-desired-working-directory>
23
- git clone https://github.com/<your-username>/Silex.git
24
- ```
25
-
26
- 3. **Set the upstream repository**
27
-
28
- Assign Silex as the upstream repository. Setting the upstream repository tells Git where to pull from when you use the pull command (which you'll do in the next step).
29
-
30
- ```bash
31
- cd Silex
32
- git remote add upstream https://github.com/silexlabs/Silex.git
33
- ```
34
-
35
- 4. **Pull the latest upstream changes**
36
-
37
- ```bash
38
- git pull upstream develop
39
- ```
40
-
41
- 5. **Create a new branch** (Recommended)
42
-
43
- Though you can work directly in the default develop branch, it is best practice to keep that branch synced with Silex and create a new working branch for your changes. Name the new branch whatever you'd like.
44
-
45
- ```bash
46
- git checkout -b <new-branch-name>
47
- ```
48
-
49
- You'll need to set the upstream branch so git knows where to point your new branch's pull and push commands. Below you set your local develop branch as the upstream branch to your new branch.
50
-
51
- ```bash
52
- git branch --set-upstream-to=develop <new-branch-name>
53
- ```
54
-
55
- **Notes on branch management:**
56
- You can easily see a list of all of the branches in the local repository. The branch with [*] is the current working branch.
57
-
58
- ```bash
59
- git branch
60
- ```
61
- You can switch between local branches using this command:
62
-
63
- ```bash
64
- git checkout <branch to which you wish to switch>
65
- ```
66
-
67
- 6. **Make your changes**
68
- Once changes are complete, use one of the following commands to stage the changes to be committed.
69
-
70
- ```bash
71
- # Add all changes to commit
72
- git add .
73
-
74
- # Add changes from one file to commit
75
- git add <file-name>
76
- ```
77
-
78
- **Note on change management:**
79
- You can always use this command to see which changes are staged for commit and which aren't.
80
-
81
- ```bash
82
- git status
83
- ```
84
-
85
- 7. **Prepare to commit your changes**
86
- Once your changes are ready and all files you wish to commit have been added (step #5), you'll create your commit.
87
-
88
- ```bash
89
- git commit -m "This is a short message about the change made in this commit"
90
- ```
91
-
92
- **Note on commiting:** If you have multiple commits or wish to change your commit message, you can use [interactive rebase](https://help.github.com/articles/about-git-rebase) to clean up and consolidate your commits before making your pull request.
93
-
94
- 8. **Rebase the upstream branch** into your local branch(es)
95
-
96
- ```bash
97
- git pull [--rebase] upstream develop
98
- ```
99
-
100
- 9. **Push your local branch** up to your fork
101
-
102
- ```bash
103
- git push origin <branch-name>
104
- ```
105
-
106
- 10. **Create a pull request**
107
-
108
- [Create your request](https://help.github.com/articles/creating-a-pull-request/), making sure the title is as clear and descriptive as possible.
package/Dockerfile DELETED
@@ -1,15 +0,0 @@
1
- FROM node:18
2
-
3
- # see doc about env vars here: https://github.com/silexlabs/Silex/wiki/How-to-Host-An-Instance-of-Silex#environment-variables
4
- # these can be overriden using the `-e` option in docker run
5
- # FS_ROOT=/repo.git/
6
- ENV DIRECTUS_URL=
7
-
8
- COPY . /silex
9
- WORKDIR /silex
10
- RUN apt-get update
11
- RUN npm install
12
- # RUN npm run build
13
-
14
- EXPOSE 6805
15
- CMD ["npm", "start"]
package/app.json DELETED
@@ -1,106 +0,0 @@
1
- {
2
- "name": "Silex",
3
- "description": "Hackable website builder",
4
- "logo": "https://user-images.githubusercontent.com/715377/45088401-2944d900-b109-11e8-8bae-54cf87724de9.png",
5
- "repository":"https://github.com/silexlabs/Silex.git",
6
- "buildpacks": [
7
- {
8
- "url": "heroku/jvm"
9
- },
10
- {
11
- "url": "heroku/nodejs"
12
- }
13
-
14
- ],
15
- "env": {
16
- "SERVER_URL": {
17
- "description": "The URL of your new Silex instance on heroku. E.g. 'https://app-name.herokuapp.com'"
18
- },
19
- "SILEX_SESSION_SECRET": {
20
- "description": "[Optional] Secret key used to encrypt cookies",
21
- "required": false
22
- },
23
- "GITHUB_CLIENT_ID": {
24
- "description": "[Optional] Github app ID. <a href='https://github.com/settings/developers'>Create an app here</a> with the param 'Authorization callback URL' set to the URL of your new Silex instance on heroku + '/github/oauth_callback'. E.g. 'https://app-name.herokuapp.com/github/oauth_callback'",
25
- "required": false
26
- },
27
- "GITHUB_CLIENT_SECRET": {
28
- "description": "[Optional] Github app secret. <a href='https://github.com/settings/developers'>Create an app here</a> with the param 'Authorization callback URL' set to the URL of your new Silex instance on heroku + '/github/oauth_callback'. E.g. 'https://app-name.herokuapp.com/github/oauth_callback'",
29
- "required": false
30
- },
31
- "ENABLE_FTP": {
32
- "description": "[Optional] Set this value to 'true' if you want your users to be able to use FTP to open/save/publish. Leave blank to disable.",
33
- "required": false
34
- },
35
- "ENABLE_SFTP": {
36
- "description": "[Optional, default is 'true'] Set this value to 'false' if you do not want your users to be able to use SFTP to open/save/publish. Leave blank to disable.",
37
- "required": false
38
- },
39
- "ENABLE_WEBDAV": {
40
- "description": "[Optional] Set this value to 'true' if you want your users to be able to use webdav to open/save/publish. Leave blank to disable. Webdav can be used to access NextCloud files.",
41
- "required": false
42
- },
43
- "DROPBOX_CLIENT_ID": {
44
- "description": "[Optional] Dropbox app key. Set this value if you want your users to be able to open/save/publish to their Dropbox account. Leave blank to disable. You will need to <a href='https://www.dropbox.com/developers/apps'>create an app here</a> with a 'Redirect URIs' set to the URL of your new Silex instance on heroku + '/ce/dropbox/oauth_callback'. E.g. 'http://app-name.herokuapp.com/ce/dropbox/oauth_callback'",
45
- "required": false
46
- },
47
- "DROPBOX_CLIENT_SECRET": {
48
- "description": "[Optional] Dropbox app secret. Set this value if you want your users to be able to open/save/publish to their Dropbox account. Leave blank to disable. You will need to <a href='https://www.dropbox.com/developers/apps'>create an app here</a> with a 'Redirect URIs' set to the URL of your new Silex instance on heroku + '/ce/dropbox/oauth_callback'. E.g. 'http://app-name.herokuapp.com/ce/dropbox/oauth_callback'",
49
- "required": false
50
- },
51
- "SKIP_HOSTING_SELECTION": {
52
- "description": "[Optional] Skip the hosting selection dialog. This is a publication setting. Set this value to true if you want the user to be forced to publish in the first hosting provider you enable. This is useful when you provide hosting to your users.",
53
- "required": false
54
- },
55
- "ENABLE_HOSTING_GH_PAGES": {
56
- "description": "[Optional] Enable Github Pages hosting provider. This is a publication setting. Set this value to true if you want your users to be able to publish to <a href='https://pages.github.com/'>Github Pages</a>.",
57
- "required": false
58
- },
59
- "ENABLE_HOSTING_UNIFILE": {
60
- "description": "[Optional, default is 'true'] Enable the user to select a folder to publish to. This is a publication setting. Set this value to false if you do not want your users to be able to manually select a folder when they try to publsh a website.",
61
- "required": false
62
- }
63
- },
64
- "keywords": [
65
- "online html page builder",
66
- "cloud based open source SaaS",
67
- "free website template builder",
68
- "live web page editor",
69
- "html5 web page editor",
70
- "free html5 editor",
71
- "free website builder with source code",
72
- "free cms for html website",
73
- "free website with html",
74
- "cms open source",
75
- "free online html editors",
76
- "open source online editor",
77
- "silex website",
78
- "silex website builder",
79
- "silex.me",
80
- "open source online website builder",
81
- "silex web",
82
- "free cms editor",
83
- "tuto silex",
84
- "website free builder",
85
- "html5 website builder online",
86
- "silex css",
87
- "cms flash open source",
88
- "website builder with html editor",
89
- "free website builder sites",
90
- "silex cms",
91
- "online website builder open source",
92
- "Create a free website",
93
- "Wix.com open source alternative",
94
- "professional designer",
95
- "webdesigner, CSS web master",
96
- "webmaster CSS made easy",
97
- "open source CMS",
98
- "CSS3 HTML5&nbsp;HTML 5&nbsp;javascript editor",
99
- "WYSIWYG",
100
- "creative commons web templates",
101
- "creative templates",
102
- "github",
103
- "silex",
104
- "creative commons"
105
- ]
106
- }
package/directus.silex.js DELETED
@@ -1,7 +0,0 @@
1
- module.exports = function (silexConfig) {
2
- // Add plugins
3
- silexConfig.addPlugin(__dirname + '/src/plugins/AuthPlugin', {
4
- directusUrl: process.env.DIRECTUS_SERVER_TO_SERVER_URL || process.env.DIRECTUS_URL,
5
- directusToken: process.env.DIRECTUS_TOKEN, // In case no token is passed in the request body
6
- })
7
- }
package/jest.config.js DELETED
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- "testMatch": ['<rootDir>/**/*.test.ts'],
3
- "testEnvironment": 'jsdom',
4
- "extensionsToTreatAsEsm": [".ts"],
5
- "transform": {
6
- ".ts": ['ts-jest', {
7
- "useESM": true,
8
- }],
9
- },
10
- };