Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: V3 #1502

Draft
wants to merge 789 commits into
base: main
Choose a base branch
from
Draft

WIP: V3 #1502

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
789 commits
Select commit Hold shift + click to select a range
4959283
fix template plugin
lexoyo Aug 28, 2023
2edbc29
fix bg image publication
lexoyo Sep 14, 2023
29bea27
duplicate website api
lexoyo Sep 14, 2023
40e74a3
duplicate
lexoyo Sep 14, 2023
9344c19
lint
lexoyo Sep 14, 2023
8f635e2
3.0.0-alpha.118
lexoyo Sep 14, 2023
9c5c97b
fix logo size
lexoyo Sep 14, 2023
a2652d9
fix fs publication with utf8 chars
lexoyo Sep 27, 2023
7e58a97
3.0.0-alpha.119
lexoyo Sep 27, 2023
2245ba7
fix image upload with gitlab api
lexoyo Sep 29, 2023
b9b2c27
3.0.0-alpha.120
lexoyo Sep 29, 2023
d42c3e0
fix #1538 missing commands in rte
lexoyo Sep 29, 2023
a9f5bae
3.0.0-alpha.121
lexoyo Sep 29, 2023
660ff68
add utf8 meta charset in the head of published pages
lexoyo Nov 2, 2023
115d6e6
3.0.0-alpha.122
lexoyo Nov 2, 2023
a180047
ncu
lexoyo Nov 3, 2023
fe818a6
rename cli param config to server-config
lexoyo Nov 3, 2023
a4b4c5b
docs
lexoyo Nov 3, 2023
4267dd0
docs
lexoyo Nov 3, 2023
cc2b808
3.0.0-alpha.123
lexoyo Nov 6, 2023
8d31165
cleanup starter logs, default config for local
lexoyo Nov 6, 2023
6058d85
ncu, deep merge config from plugins, refactor project bar
lexoyo Nov 8, 2023
01877e8
add example plugin for project bar
lexoyo Nov 8, 2023
419a20f
ncu
lexoyo Nov 9, 2023
2ea2662
new filetype
lexoyo Nov 16, 2023
f89cfca
3.0.0-alpha.124
lexoyo Nov 16, 2023
ab44770
fix docker image on dockerhub, missing dist
lexoyo Nov 17, 2023
6b5c11e
3.0.0-alpha.125
lexoyo Nov 17, 2023
cc623d9
add copy paste buttons
lexoyo Nov 18, 2023
de1de49
fix build with new version of formidable
lexoyo Nov 18, 2023
b3974ce
3.0.0-alpha.126
lexoyo Nov 18, 2023
3408cfe
publication and settings dialogs styles
lexoyo Nov 19, 2023
3822140
new design for settings dialog
lexoyo Nov 19, 2023
9125cb6
font dialog styles
lexoyo Nov 19, 2023
4ad8ed5
fix settings save
lexoyo Nov 19, 2023
6f644c9
duplicate page
lexoyo Nov 19, 2023
b2d2c32
lint
lexoyo Nov 19, 2023
c94cf5b
3.0.0-alpha.127
lexoyo Nov 19, 2023
847ddb9
fix init head editor
lexoyo Nov 19, 2023
838b218
3.0.0-alpha.128
lexoyo Nov 19, 2023
a3e5465
fix head editor scroll
lexoyo Nov 19, 2023
9f42827
3.0.0-alpha.129
lexoyo Nov 19, 2023
18c6e8a
add sections to settings with silex client side API
lexoyo Nov 20, 2023
947b888
3.0.0-alpha.130
lexoyo Nov 20, 2023
fe0ae52
add useful events for plugins
lexoyo Nov 21, 2023
ffe815f
3.0.0-alpha.131
lexoyo Nov 21, 2023
8cb5149
better default for hosting and storage providers
lexoyo Nov 24, 2023
27935bf
3.0.0-alpha.132
lexoyo Nov 24, 2023
1a77ea3
cleanup
lexoyo Nov 30, 2023
febe3f0
3.0.0-alpha.133
lexoyo Nov 30, 2023
97c9cd0
resise right panel
lexoyo Nov 30, 2023
1ea07c7
3.0.0-alpha.134
lexoyo Nov 30, 2023
ed482fa
fix z-index of views options buttons
lexoyo Dec 1, 2023
510a79f
3.0.0-alpha.135
lexoyo Dec 1, 2023
505b44c
fix canvas width
lexoyo Dec 1, 2023
1c9a47e
3.0.0-alpha.136
lexoyo Dec 1, 2023
9d02f55
fix canvas resize
lexoyo Dec 1, 2023
8e70edd
3.0.0-alpha.137
lexoyo Dec 1, 2023
ac36c9e
remove console.log
lexoyo Dec 1, 2023
3d30afb
3.0.0-alpha.138
lexoyo Dec 6, 2023
4606c34
new option in template plugin to disable publication
lexoyo Dec 7, 2023
6989382
3.0.0-alpha.139
lexoyo Dec 7, 2023
28e029f
fix settings keep unset values
lexoyo Dec 8, 2023
594c7da
3.0.0-alpha.140
lexoyo Dec 8, 2023
552bc9b
fix some false warnings
lexoyo Jan 12, 2024
2ecbc9d
fix object style apply to some elements not components of type image …
lexoyo Jan 12, 2024
fbd0de1
3.0.0-alpha.141
lexoyo Jan 12, 2024
a8baf07
catch more errors in plugins for publication
lexoyo Jan 23, 2024
6e57223
3.0.0-alpha.142
lexoyo Jan 23, 2024
a3ddd25
cleanup, add plugin publish custom code block
lexoyo Feb 6, 2024
689dce3
3.0.0-alpha.143
lexoyo Feb 6, 2024
c7d1510
fix publication with embed fonts
lexoyo Feb 13, 2024
22dd194
3.0.0-alpha.144
lexoyo Feb 13, 2024
8098020
fix #1559 Custom <head> code must be reapplied
lexoyo Feb 13, 2024
0942935
ncu
lexoyo Feb 14, 2024
67c626d
3.0.0-alpha.145
lexoyo Feb 14, 2024
a4632e8
option to add hash in css files names
lexoyo Feb 23, 2024
4a659ab
fix multiple background images
lexoyo Feb 26, 2024
d6938c2
remove old plugins
lexoyo Feb 26, 2024
e1c0e1e
3.0.0-alpha.146
lexoyo Feb 26, 2024
eed8847
no auto indent for code editors
lexoyo Feb 27, 2024
02e2641
fix settings head editor init is buguy
lexoyo Feb 27, 2024
3e7bc3a
fix #1559 Custom <head> code must be reapplied
lexoyo Feb 27, 2024
76d1a12
3.0.0-alpha.147
lexoyo Feb 27, 2024
fa5625b
work on contribution docs
lexoyo Mar 1, 2024
eb0b6be
Update README.md
lexoyo Mar 2, 2024
0344c35
Update CONTRIBUTING.md with Node V>=18
oliviermgx Mar 2, 2024
44b3a18
add dependency http-server in json packages
Mar 2, 2024
489a3f1
Merge pull request #1568 from oliviermgx/oliviermgx-Node-V>=18
lexoyo Mar 3, 2024
98ca716
Merge pull request #1567 from oliviermgx/with_http-server_dep
lexoyo Mar 3, 2024
29beba0
Update index.ts with editor.UndoManager.clear();
oliviermgx Mar 4, 2024
3480e17
Merge branch 'silexlabs:dev' into dev
oliviermgx Mar 4, 2024
dbea21c
Update index.ts suite erreur undo
oliviermgx Mar 4, 2024
7480292
Update CONTRIBUTING.md
lexoyo Mar 6, 2024
5c3ae0c
Update CODE_OF_CONDUCT.md
lexoyo Mar 6, 2024
92eb62d
Create SECURITY.md
lexoyo Mar 6, 2024
98d0caa
last ctrl+Z no more erases frame
Mar 6, 2024
3b34148
Merge pull request #1571 from oliviermgx/ctrlZ_branch
lexoyo Mar 8, 2024
0a573c7
local folder for dev is silex
lexoyo Mar 8, 2024
d687520
version without ';'
Mar 8, 2024
10bfbbd
Merge pull request #1572 from oliviermgx/ctrlZ_branch_v2
lexoyo Mar 10, 2024
d5cdcad
Run test action on PR
lexoyo Mar 10, 2024
5af2716
ncu
lexoyo Mar 27, 2024
6d67d9b
better events/hooks in publication, doc
lexoyo Mar 27, 2024
866398f
expose the state-editor web component for use by the main app
lexoyo Mar 27, 2024
9aaa19b
fix #1559 Custom <head> code must be reapplied again for page this time
lexoyo Mar 28, 2024
e94150f
fix duplication of page with attributes under body
lexoyo Mar 29, 2024
ee69bb2
3.0.0-alpha.148
lexoyo Mar 29, 2024
ca58b47
ncu
lexoyo Apr 1, 2024
24fa0c0
3.0.0-alpha.149
lexoyo Apr 1, 2024
b5b845a
UI with empty initial properties
Apr 3, 2024
4d3a69d
Update css-props.ts
oliviermgx Apr 3, 2024
58dcc29
Merge pull request #1573 from oliviermgx/default_prop_empty
lexoyo Apr 3, 2024
2bbce43
cleanup old plugin
lexoyo Apr 2, 2024
862fd3c
support alternative dropin replacements of google fonts
lexoyo Apr 5, 2024
1f49603
ncu
lexoyo Apr 5, 2024
20ce8e4
cleanup client side env vars
lexoyo Apr 8, 2024
8b5def9
ncu grapesjs
lexoyo Apr 11, 2024
6d53d91
3.0.0-alpha.150
lexoyo Apr 11, 2024
7cd5d33
fix after upgrade of grapes
lexoyo Apr 12, 2024
6913d8e
3.0.0-alpha.151
lexoyo Apr 12, 2024
cbeb11f
Empty initial properties. Fix:#1543 (continued)
Apr 12, 2024
56ccba4
Merge pull request #1578 from oliviermgx/defaults_prop_empty_2
lexoyo Apr 12, 2024
8d94019
notifications plugin
lexoyo Apr 19, 2024
7d0eec7
dirty state in project bar for notifications
lexoyo Apr 22, 2024
2cd508a
ncu
lexoyo Apr 22, 2024
c892dc4
fix lint
lexoyo Apr 23, 2024
79df9aa
Merge pull request #1582 from silexlabs/notifications
lexoyo Apr 23, 2024
e8e62bd
Added stickiness to the Style Manager's top section
SuperDelphi Apr 23, 2024
7121f3b
Added a capital letter to a comment
SuperDelphi Apr 23, 2024
1672a3e
bronken links detection now uses notifications plugin
lexoyo Apr 24, 2024
e9b09e0
detect image loading problems
lexoyo Apr 24, 2024
b6851b0
lint
lexoyo Apr 24, 2024
cc231fe
Lint fix
SuperDelphi Apr 24, 2024
337bda5
Merge pull request #1583 from SuperDelphi/sticky-css-selector
lexoyo Apr 25, 2024
67ce3ad
flexible Gitlab connector for gitlab.com or other self hosted gitlab
Apr 26, 2024
7ad2365
Update GitlabConnector.ts
oliviermgx Apr 26, 2024
f0d450c
Merge pull request #1585 from oliviermgx/Gitlab-com-and-self
lexoyo Apr 29, 2024
1b7d860
fix settings when no settings section is selected
lexoyo Apr 29, 2024
ad53fc4
3.0.0-alpha.152
lexoyo May 1, 2024
c587420
ncu
lexoyo May 2, 2024
c5d3a45
fix google fonts url
lexoyo May 2, 2024
754c393
better start script
lexoyo May 2, 2024
36ba0a9
Update utils.ts
oliviermgx May 2, 2024
dc71ee0
Merge pull request #1592 from oliviermgx/dev
lexoyo May 3, 2024
aee30ba
Improved error display + Added connector header
SuperDelphi May 7, 2024
af72b0b
Removed testing
SuperDelphi May 7, 2024
285c902
better handling of server side generic error
lexoyo May 8, 2024
2d24f4e
Logs
SuperDelphi May 11, 2024
1fbcaba
Fixed connector selection buttons
SuperDelphi May 13, 2024
ea25227
Removing tests
SuperDelphi May 13, 2024
666d6bc
Added hover/active styles
SuperDelphi May 13, 2024
fc866b3
Removing tests
SuperDelphi May 13, 2024
a56cb09
Merge branch 'dev' into better-publish-modal
SuperDelphi May 13, 2024
9913662
Merge pull request #1595 from SuperDelphi/better-publish-modal
lexoyo May 14, 2024
e262da3
use connectorId to store the session in gitlab connector (#1589)
lexoyo May 14, 2024
549bf7b
add help button in publish
lexoyo May 14, 2024
fd17b5f
Keymaps feature (#1594)
SuperDelphi May 22, 2024
59311cb
Gitlab hosting connector with gitlab pages url management (#1597)
oliviermgx May 23, 2024
3073194
3.0.0-alpha.153
lexoyo May 23, 2024
90e8b91
support for 11ty in gitlab publication
lexoyo May 24, 2024
137cf02
3.0.0-alpha.154
lexoyo May 24, 2024
684f107
support for 11ty in gitlab publication
lexoyo May 24, 2024
5596136
support for 11ty in gitlab publication
lexoyo May 24, 2024
d2e666c
3.0.0-alpha.155
lexoyo May 24, 2024
0318881
ncu fonts plugin
lexoyo May 24, 2024
386a549
3.0.0-alpha.156
lexoyo May 24, 2024
1ad747f
build on tags
lexoyo May 24, 2024
215fa5f
3.0.0-alpha.157
lexoyo May 24, 2024
d137880
better publish message for gitlab
lexoyo May 27, 2024
45814de
better publish message for gitlab
lexoyo May 27, 2024
f4c718b
3.0.0-alpha.158
lexoyo May 27, 2024
f735662
better publish message for gitlab
lexoyo May 27, 2024
6da311b
3.0.0-alpha.159
lexoyo May 27, 2024
67d49dd
prevent unwanted save at startup and login
lexoyo May 27, 2024
dc43bbc
fix error at startup with gitlab after silex server restart
lexoyo May 27, 2024
e182870
3.0.0-alpha.160
lexoyo May 28, 2024
4fcfe2c
removed missleading comment
lexoyo May 28, 2024
9f3030f
fix error at startup with gitlab after silex server restart
lexoyo May 28, 2024
77f61d1
3.0.0-alpha.161
lexoyo May 28, 2024
97e5936
fix error at startup with gitlab after silex server restart
lexoyo May 28, 2024
5481117
3.0.0-alpha.162
lexoyo May 28, 2024
f599f97
better error message in gitlab connector, better detection of website…
lexoyo May 29, 2024
4a6b6c0
New shortcuts (#1599)
SuperDelphi May 29, 2024
859cbe5
ncu node_modules-path
lexoyo Jun 2, 2024
7a1359e
Integration of the keymaps dialog plugin (#1601)
SuperDelphi Jun 3, 2024
a4c1b0d
ncu
lexoyo Jun 3, 2024
4f4aaab
login cleanup
lexoyo Jun 5, 2024
4db837c
3.0.0-alpha.163
lexoyo Jun 5, 2024
fc7b8ad
fix startup with fs storage
lexoyo Jun 5, 2024
295731c
3.0.0-alpha.164
lexoyo Jun 5, 2024
496fc04
WIP: prevent saving during publication
lexoyo Jun 13, 2024
2544a21
3.0.0-alpha.165
lexoyo Jun 13, 2024
45ff2c6
do not save during publicatoin
lexoyo Jun 17, 2024
16eb955
3.0.0-alpha.166
lexoyo Jun 17, 2024
a2cae53
Bug job id return in gitlab host connector (#1604)
oliviermgx Jun 19, 2024
44f2023
GitLab policy error fix (#1605)
SuperDelphi Jun 19, 2024
30c9f3c
publication tag = timestamp ms
Jun 26, 2024
8dcf258
Merge pull request #1608 from oliviermgx/with_TimeTag
lexoyo Jun 27, 2024
a55c0ac
better build and config example
lexoyo Jun 27, 2024
de09ea2
3.0.0-alpha.167
lexoyo Jun 27, 2024
0c1fe22
The "grapesjs-navbar" plugin has been added to the editor under the "…
JeremyZXi Jul 23, 2024
1b431c7
Merge pull request #1612 from JeremyZXi/adding-navbar
lexoyo Jul 24, 2024
bc9016e
ncu lit-html
lexoyo Aug 2, 2024
b0bd6fc
icons for connectors
lexoyo Aug 3, 2024
5476520
ncu
lexoyo Aug 3, 2024
7bbfbdf
3.0.0-alpha.168
lexoyo Aug 3, 2024
9349d8c
fix scss warning
lexoyo Aug 8, 2024
65640a5
cleanup static plugin
lexoyo Aug 8, 2024
a67b248
prevent multiple save after publication, fix error after publication
lexoyo Aug 8, 2024
01eb201
fix apply head HTML to the stage on load
lexoyo Aug 12, 2024
b962256
3.0.0-alpha.169
lexoyo Aug 12, 2024
d4568de
better debug of settings plugins, add command to pause auto save
lexoyo Aug 13, 2024
158b426
3.0.0-alpha.170
lexoyo Aug 13, 2024
06df777
fix css in head are not applyed when change page
lexoyo Aug 13, 2024
e926734
3.0.0-alpha.171
lexoyo Aug 13, 2024
17b7791
fix: when holding shift the shortcuts help show up
lexoyo Aug 14, 2024
0a87fd8
ncu @silexlabs/grapesjs-keymaps-dialog
lexoyo Aug 14, 2024
f12aeb2
3.0.0-alpha.172
lexoyo Aug 14, 2024
a291d02
fix tooltip
lexoyo Aug 14, 2024
5a85538
fix focus for keyboard nav, fix esc shortcut, add pages shortcuts, fi…
lexoyo Aug 14, 2024
aeea9a5
lint
lexoyo Aug 27, 2024
9c61924
3.0.0-alpha.173
lexoyo Aug 27, 2024
a28df8c
allow silex to update / overrite file .gitlab-ci.yaml
lexoyo Aug 27, 2024
c145726
3.0.0-alpha.174
lexoyo Aug 27, 2024
41fedd0
workaround https://github.com/11ty/eleventy/issues/3425
lexoyo Aug 29, 2024
fc385d7
3.0.0-alpha.175
lexoyo Aug 29, 2024
687b894
revert workaround https://github.com/11ty/eleventy/issues/3425 since …
lexoyo Sep 16, 2024
9c517e0
ncu grapesjs
lexoyo Sep 16, 2024
d83d9b0
3.0.0-alpha.176
lexoyo Sep 16, 2024
2700b92
Add files via upload
lexoyo Sep 23, 2024
37393ba
ftp download corrections
Sep 16, 2024
b7cfff7
ftp connector corrections after comments review
Sep 24, 2024
723e3c5
Revert "ftp connector corrections after comments review"
Sep 24, 2024
73e65f4
ftp connector corrections after comments review
Sep 24, 2024
b1806df
ftp connector corrections after comments review
Sep 24, 2024
01316cd
Revert "ftp connector corrections after comments review"
Sep 24, 2024
f23298a
ftp connector 2
Sep 24, 2024
406be6d
modif ftp connect2
Sep 24, 2024
3526840
Merge pull request #1614 from oliviermgx/silex-ftpConnector
lexoyo Sep 25, 2024
4bf2f84
3.0.0-alpha.177
lexoyo Sep 25, 2024
68d7c1b
readme
lexoyo Sep 27, 2024
d588f89
add missing units in css eitor
lexoyo Oct 1, 2024
3a9edb5
log the time it takes to publish pages
lexoyo Oct 3, 2024
900be57
3.0.0-alpha.178
lexoyo Oct 3, 2024
336f98d
3.0.0-alpha.179
lexoyo Oct 3, 2024
cc100bd
more events for plugins
lexoyo Oct 11, 2024
d337cef
3.0.0-alpha.180
lexoyo Oct 11, 2024
f81d6b1
better .gitlab-ci.yml for gitlab hosting connector
lexoyo Oct 22, 2024
b4a9001
ncu @silexlabs/grapesjs-symbols
lexoyo Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
docs
node_modules
Dockerfile
!.
!.env.default
20 changes: 20 additions & 0 deletions .env.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SILEX_URL=http://localhost:6805
SILEX_EXPRESS_JSON_LIMIT=1mb
SILEX_EXPRESS_TEXT_LIMIT=10mb
SILEX_EXPRESS_URLENCODED_LIMIT=1mb
SILEX_SESSION_NAME=silex-session
SILEX_SESSION_SECRET=replace this session secret in env vars
SILEX_PORT=6805 # 6805 is the date of sexual revolution started in paris france 8-)
SILEX_HOST=localhost
SILEX_PROTOCOL=http
SILEX_DEBUG=FALSE
SILEX_SERVER_CONFIG=
SILEX_SSL_PORT=
SILEX_FORCE_HTTPS=
SILEX_SSL_PRIVATE_KEY=
SILEX_SSL_CERTIFICATE=
SILEX_FORCE_HTTPS_TRUST_XFP_HEADER=
SILEX_CORS_URL=
SILEX_CLIENT_CONFIG=
SILEX_FS_ROOT=
SILEX_FS_HOSTING_ROOT=
45 changes: 45 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"ignorePatterns": [ "dist/" ],
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"no-case-declarations": [0],
"@typescript-eslint/no-unused-vars": [0],
"@typescript-eslint/no-explicit-any": [0],
"@typescript-eslint/ban-ts-comment": [0],
"@typescript-eslint/no-empty-function": [0]
}
}
36 changes: 36 additions & 0 deletions .github/workflows/docker-hub-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish DockerHub image
# from https://itsmetommy.com/2021/07/05/push-to-docker-hub-using-github-actions/

on:
push:
tags:
- '*'

jobs:
build-container:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: silexlabs/silex

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Run tests

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -9,8 +9,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 11.x, 12.x]
# os: [macos-latest, windows-latest, ubuntu-latest]
node-version: [16.x, 18.x]
os: [ubuntu-latest]

steps:
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
node_modules
*.log
.vscode
dist/client
dist/server
dist/prodotype
dist/html
.git
old
dist/
silex/
.env
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.22.10
18.13.0
71 changes: 71 additions & 0 deletions .silex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
* Silex website builder, free/libre no-code tool for makers.
* Copyright (c) 2023 lexoyo and Silex Labs foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @fileoverview This file is loaded by Silex at startup, after the user config if you specify one
*/

const SslPlugin = require('./dist/plugins/server/plugins/server/SslPlugin').default
const StaticPlugin = require('./dist/plugins/server/plugins/server/StaticPlugin').default
const { join } = require('path')
const nodeModules = require('node_modules-path')

module.exports = async function(config, options) {
try {
await config.addPlugin([
SslPlugin,
StaticPlugin,
], {
[StaticPlugin]: {
routes: [
{
route: '/',
path: join(__dirname, 'public'),
}, {
route: '/css/',
path: nodeModules('@fortawesome/fontawesome-free') + '/@fortawesome/fontawesome-free/css/',
}, {
route: '/webfonts/',
path: nodeModules('@fortawesome/fontawesome-free') + '/@fortawesome/fontawesome-free/webfonts/',
}, {
route: '/css/files/',
path: nodeModules('@fontsource/ubuntu') + '/@fontsource/ubuntu/files/',
}, {
route: '/',
path: join(__dirname, 'dist', 'client'),
}, {
route: '/',
path: join(__dirname, 'dist', 'plugins', 'client'),
},
]
// add project route for source maps
.concat(config.debug ? [{
route: '/',
path: './',
}, {
route: '/js/',
path: nodeModules('@silexlabs/silex-cms') + '/@silexlabs/silex-cms/',
}] : []),
},
})
} catch(e) {
console.error(e)
}

// Return an object to be merged with Silex config
return {}
}
129 changes: 1 addition & 128 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,128 +1 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
contact [at] silex.me.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
## This page [has moved to Silex documentation website](https://docs.silex.me/en/collaborate)
Loading
Loading