From a3b0c35d3c4296cd6a5ccf4e961527c06c9769b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Sat, 6 Jan 2024 16:40:25 +0100 Subject: [PATCH] Spremembe dev services / settings, http link v env, config export --- .gitignore | 2 - ...iew_display.media.remote_video.default.yml | 2 + config/sync/views.view.block_content.yml | 9 + config/sync/views.view.comment.yml | 18 ++ config/sync/views.view.media.yml | 9 + config/sync/views.view.media_library.yml | 9 + config/sync/views.view.moderated_content.yml | 9 + nuxt/.env | 2 +- web/sites/development.services.yml | 24 +++ web/sites/settings.local.php | 155 ++++++++++++++++++ 10 files changed, 236 insertions(+), 3 deletions(-) create mode 100644 web/sites/development.services.yml create mode 100644 web/sites/settings.local.php diff --git a/.gitignore b/.gitignore index d93762a..d2e5cd5 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ # Ignore configuration files that may contain sensitive information /web/sites/*/*settings*.php !/web/sites/default/settings.php -/web/sites/*/services.yml # Ignore paths that may contain user-generated content /web/sites/*/files @@ -29,7 +28,6 @@ /web/modules/contrib/ !/web/modules/custom /web/profiles/README.txt -/web/sites/development.services.yml /web/sites/example.settings.local.php /web/sites/example.sites.php /web/sites/README.txt diff --git a/config/sync/core.entity_view_display.media.remote_video.default.yml b/config/sync/core.entity_view_display.media.remote_video.default.yml index 8728a0b..2265079 100644 --- a/config/sync/core.entity_view_display.media.remote_video.default.yml +++ b/config/sync/core.entity_view_display.media.remote_video.default.yml @@ -20,6 +20,8 @@ content: settings: max_width: 0 max_height: 0 + loading: + attribute: eager third_party_settings: { } weight: 0 region: content diff --git a/config/sync/views.view.block_content.yml b/config/sync/views.view.block_content.yml index 70845c4..2ce24e3 100644 --- a/config/sync/views.view.block_content.yml +++ b/config/sync/views.view.block_content.yml @@ -209,6 +209,15 @@ display: date_format: short custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 operations: id: operations table: block_content diff --git a/config/sync/views.view.comment.yml b/config/sync/views.view.comment.yml index e6cd561..0caf7fb 100644 --- a/config/sync/views.view.comment.yml +++ b/config/sync/views.view.comment.yml @@ -394,6 +394,15 @@ display: date_format: short custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true @@ -1272,6 +1281,15 @@ display: date_format: short custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true diff --git a/config/sync/views.view.media.yml b/config/sync/views.view.media.yml index f988ac5..4784f5e 100644 --- a/config/sync/views.view.media.yml +++ b/config/sync/views.view.media.yml @@ -448,6 +448,15 @@ display: date_format: short custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true diff --git a/config/sync/views.view.media_library.yml b/config/sync/views.view.media_library.yml index 8908b74..f8e8112 100644 --- a/config/sync/views.view.media_library.yml +++ b/config/sync/views.view.media_library.yml @@ -1172,6 +1172,15 @@ display: date_format: short custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 access: type: perm options: diff --git a/config/sync/views.view.moderated_content.yml b/config/sync/views.view.moderated_content.yml index 228b536..4538076 100644 --- a/config/sync/views.view.moderated_content.yml +++ b/config/sync/views.view.moderated_content.yml @@ -344,6 +344,15 @@ display: date_format: short custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true diff --git a/nuxt/.env b/nuxt/.env index 95952a9..aed8778 100644 --- a/nuxt/.env +++ b/nuxt/.env @@ -1,4 +1,4 @@ -BASE_URL="https://yufu-manifest.ddev.site" +BASE_URL="http://yufu-manifest.ddev.site" JSONAPI_PATH="/jsonapi" FILE_PATH="/sites/default/files" ETHERPAD_URL="https://pisi.kompot.si" diff --git a/web/sites/development.services.yml b/web/sites/development.services.yml new file mode 100644 index 0000000..141a156 --- /dev/null +++ b/web/sites/development.services.yml @@ -0,0 +1,24 @@ +# Local development services. +# +# To activate this feature, follow the instructions at the top of the +# 'example.settings.local.php' file, which sits next to this file. +parameters: + http.response.debug_cacheability_headers: true + cors.config: + enabled: true + # Specify allowed headers, like 'x-allowed-header'. + allowedHeaders: ['x-csrf-token','authorization','content-type','accept','origin','x-requested-with'] + # Specify allowed request methods, specify ['*'] to allow all possible ones. + allowedMethods: ['*'] + # Configure requests allowed from specific origins. Do not include trailing + # slashes with URLs. + allowedOrigins: ['*'] + # Sets the Access-Control-Expose-Headers header. + exposedHeaders: false + # Sets the Access-Control-Max-Age header. + maxAge: false + # Sets the Access-Control-Allow-Credentials header. + supportsCredentials: false +services: + cache.backend.null: + class: Drupal\Core\Cache\NullBackendFactory diff --git a/web/sites/settings.local.php b/web/sites/settings.local.php new file mode 100644 index 0000000..7cb0e68 --- /dev/null +++ b/web/sites/settings.local.php @@ -0,0 +1,155 @@ +