-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from City-of-Helsinki/dev
Dev to main
- Loading branch information
Showing
23 changed files
with
12,631 additions
and
3,685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
15 | ||
16 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
conf/cmi/language/fi/field.field.paragraph.event_list.field_event_location.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
label: Tapahtumapaikka | ||
description: 'Näytä "tapahtumapaikka" -suodatin. Älä käytä yhtä aikaa "Etätapahtumat" -suodattimen kanssa. Tapahtumapaikat pitää valita tapahtumakalenterista ennen kuin kopioit linkin.' | ||
description: 'Näytä "tapahtumapaikka" -suodatin.Tapahtumapaikat pitää valita tapahtumakalenterista ennen kuin kopioit linkin.' | ||
settings: | ||
on_label: Kyllä | ||
off_label: Ei |
2 changes: 1 addition & 1 deletion
2
conf/cmi/language/fi/field.field.paragraph.event_list.field_remote_events.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
label: Etätapahtumat | ||
description: 'Näytä "näytä vain etätapahtumat" -suodatin. Älä käytä yhtä aikaa "Tapahtumapaikka" -suodattimen kanssa.' | ||
description: 'Näytä "näytä vain etätapahtumat" -suodatin.' | ||
settings: | ||
on_label: Kyllä | ||
off_label: Ei |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
source /init.sh | ||
|
||
if [ -f "../docker/openshift/preflight/preflight.php" ]; then | ||
echo "Running preflight checks ..." | ||
if ! php ../docker/openshift/preflight/preflight.php; then | ||
exit 1 | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# Skip deployment script if ENV var is true | ||
if [ "$SKIP_DEPLOY_SCRIPTS" = "true" ]; then | ||
echo "SKIP_DEPLOY_SCRIPTS is true. Skipping the steps." | ||
return | ||
fi | ||
|
||
source /init.sh | ||
|
||
echo "Starting deploy: $(date)" | ||
|
||
# Populate deploy ID so 20-deploy.sh is skipped. | ||
# @todo Remove this once 20-deploy.sh is removed. | ||
set_deploy_id $OPENSHIFT_BUILD_NAME | ||
|
||
drush state:set system.maintenance_mode 1 --input-format=integer | ||
# Run pre-deploy tasks. | ||
# @see https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/blob/main/documentation/deploy-hooks.md | ||
drush helfi:pre-deploy || true | ||
# Run maintenance tasks (config import, database updates etc) | ||
drush deploy | ||
# Run post-deploy tasks. | ||
# @see https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/blob/main/documentation/deploy-hooks.md | ||
drush helfi:post-deploy || true | ||
# Disable maintenance mode | ||
drush state:set system.maintenance_mode 0 --input-format=integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# Populate twig caches. | ||
if [ ! -d "/tmp/twig" ]; then | ||
drush twig:compile || true | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/**/* | ||
webpack.config.js | ||
webpack.svgToSprite.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"extends": [ | ||
"airbnb-base", | ||
"prettier", | ||
"plugin:import/recommended" | ||
], | ||
"plugins": [ | ||
"jsdoc" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2022, | ||
"sourceType": "module" | ||
}, | ||
"globals": { | ||
"Drupal": true, | ||
"drupalSettings": true, | ||
"drupalTranslations": true, | ||
"jQuery": true, | ||
"_": true, | ||
"Cookies": true, | ||
"Backbone": true, | ||
"Modernizr": true, | ||
"Popper": true, | ||
"Shepherd": true, | ||
"Sortable": true, | ||
"once": true, | ||
"CKEDITOR": true, | ||
"tabbable": true | ||
}, | ||
"rules": { | ||
"arrow-spacing": ["warn", { "before": true, "after": true }], | ||
"comma-spacing": ["warn", { "before": false, "after": true }], | ||
"consistent-return": ["off"], | ||
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}], | ||
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], | ||
"max-nested-callbacks": ["warn", 5], | ||
"no-plusplus": [ | ||
"warn", | ||
{ | ||
"allowForLoopAfterthoughts": true | ||
} | ||
], | ||
"no-param-reassign": ["off"], | ||
"no-prototype-builtins": ["off"], | ||
"no-unused-vars": ["warn"], | ||
"no-underscore-dangle": ["off"], | ||
"no-whitespace-before-property": "warn", | ||
"object-curly-spacing": ["error", "always"], | ||
"operator-linebreak": [ | ||
"error", | ||
"after", | ||
{ "overrides": { "?": "ignore", ":": "ignore" } } | ||
], | ||
"prefer-arrow-callback":["off"], | ||
"quotes": ["warn", "single"], | ||
"semi": ["error", "always"], | ||
"space-in-parens": ["warn", "never"], | ||
"space-before-function-paren": ["error", "never"], | ||
"valid-jsdoc": [ | ||
"warn", | ||
{ | ||
"prefer": { | ||
"returns": "return", | ||
"property": "prop" | ||
}, | ||
"requireReturn": false | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20 | ||
23 |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.