From 215ddf27842eed2c3fed34a9753efe456f3e5d87 Mon Sep 17 00:00:00 2001 From: ouidade Date: Mon, 6 Nov 2023 14:43:39 +0100 Subject: [PATCH] config view content admin --- .vscode/launch.json | 48 +++++++++++++ config/sync/views.view.content.yml | 58 ++++++++++++++++ config/sync/views.view.viewed_by_book.yml | 69 +++++++++++++++++-- web/sites/development.services.yml | 50 -------------- .../custom/rorschach/css-compiled/styles.css | 8 +++ .../rorschach/scss/pages/_bookpage.scss | 10 ++- 6 files changed, 187 insertions(+), 56 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..9dc6b4d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,48 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Listen for Xdebug", + "type": "php", + "request": "launch", + "port": 9003 + }, + { + "name": "Launch currently open script", + "type": "php", + "request": "launch", + "program": "${file}", + "cwd": "${fileDirname}", + "port": 0, + "runtimeArgs": [ + "-dxdebug.start_with_request=yes" + ], + "env": { + "XDEBUG_MODE": "debug,develop", + "XDEBUG_CONFIG": "client_port=${port}" + } + }, + { + "name": "Launch Built-in web server", + "type": "php", + "request": "launch", + "runtimeArgs": [ + "-dxdebug.mode=debug", + "-dxdebug.start_with_request=yes", + "-S", + "localhost:0" + ], + "program": "", + "cwd": "${workspaceRoot}", + "port": 9003, + "serverReadyAction": { + "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started", + "uriFormat": "http://localhost:%s", + "action": "openExternally" + } + } + ] +} \ No newline at end of file diff --git a/config/sync/views.view.content.yml b/config/sync/views.view.content.yml index a92dafc..ebeaf78 100644 --- a/config/sync/views.view.content.yml +++ b/config/sync/views.view.content.yml @@ -2,6 +2,8 @@ uuid: 786e4799-0ec6-4293-bbfb-5e1ed6c7d7a6 langcode: fr status: true dependencies: + config: + - taxonomy.vocabulary.book module: - book - node @@ -714,6 +716,62 @@ display: expose: operator_limit_selection: false operator_list: { } + field_parent_book_target_id: + id: field_parent_book_target_id + table: node__field_parent_book + field: field_parent_book_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: taxonomy_index_tid + operator: or + value: null + group: 1 + exposed: true + expose: + operator_id: field_parent_book_target_id_op + label: 'Parent Book (field_parent_book)' + description: '' + use_operator: false + operator: field_parent_book_target_id_op + operator_limit_selection: false + operator_list: { } + identifier: field_parent_book_target_id + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + admin: '0' + root: '0' + editor: '0' + translator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + reduce_duplicates: false + vid: book + type: cshs + hierarchy: false + limit: true + error_message: true + save_lineage: false + force_deepest: false + parent: 0 + level_labels: '' + hierarchy_depth: 0 + required_depth: 0 filter_groups: operator: AND groups: diff --git a/config/sync/views.view.viewed_by_book.yml b/config/sync/views.view.viewed_by_book.yml index 10012be..32556f9 100644 --- a/config/sync/views.view.viewed_by_book.yml +++ b/config/sync/views.view.viewed_by_book.yml @@ -24,6 +24,65 @@ display: display_options: title: 'viewed by book' fields: + node_bulk_form: + id: node_bulk_form + table: node + field: node_bulk_form + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: node_bulk_form + label: 'Node operations bulk form' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + action_title: Action + include_exclude: exclude + selected_actions: + - node_break_lock_action + - node_delete_action + - node_edit_action + - node_publish_action + - node_save_action + - node_unpublish_action title: id: title table: node_field_data @@ -91,12 +150,12 @@ display: id: depth table: book field: depth - relationship: none + relationship: pid group_type: group admin_label: '' plugin_id: numeric label: Depth - exclude: true + exclude: false alter: alter_text: false text: '' @@ -584,7 +643,7 @@ display: footer: { } display_extenders: { } cache_metadata: - max-age: -1 + max-age: 0 contexts: - 'languages:language_content' - 'languages:language_interface' @@ -602,7 +661,7 @@ display: display_options: display_extenders: { } cache_metadata: - max-age: -1 + max-age: 0 contexts: - 'languages:language_content' - 'languages:language_interface' @@ -632,7 +691,7 @@ display: parent: '' context: '0' cache_metadata: - max-age: -1 + max-age: 0 contexts: - 'languages:language_content' - 'languages:language_interface' diff --git a/web/sites/development.services.yml b/web/sites/development.services.yml index cc931e1..d2857c6 100644 --- a/web/sites/development.services.yml +++ b/web/sites/development.services.yml @@ -3,56 +3,6 @@ # To activate this feature, follow the instructions at the top of the # 'example.settings.local.php' file, which sits next to this file. parameters: - twig.config: - # Twig debugging: - # - # When debugging is enabled: - # - The markup of each Twig template is surrounded by HTML comments that - # contain theming information, such as template file name suggestions. - # - Note that this debugging markup will cause automated tests that directly - # check rendered HTML to fail. When running automated tests, 'debug' - # should be set to FALSE. - # - The dump() function can be used in Twig templates to output information - # about template variables. - # - Twig templates are automatically recompiled whenever the source code - # changes (see auto_reload below). - # - # For more information about debugging Twig templates, see - # https://www.drupal.org/node/1906392. - # - # Not recommended in production environments - # @default false - debug: true - # Twig auto-reload: - # - # Automatically recompile Twig templates whenever the source code changes. - # If you don't provide a value for auto_reload, it will be determined - # based on the value of debug. - # - # Not recommended in production environments - # @default null - auto_reload: null - # Twig cache: - # - # By default, Twig templates will be compiled and stored in the filesystem - # to increase performance. Disabling the Twig cache will recompile the - # templates from source each time they are used. In most cases the - # auto_reload setting above should be enabled rather than disabling the - # Twig cache. - # - # Not recommended in production environments - # @default true - cache: false - # Cacheability debugging: - # - # Responses with cacheability metadata (CacheableResponseInterface instances) - # get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers. - # - # For more information about debugging cacheable responses, see - # https://www.drupal.org/developing/api/8/response/cacheable-response-interface - # - # Not recommended in production environments - # @default false http.response.debug_cacheability_headers: true services: cache.backend.null: diff --git a/web/themes/custom/rorschach/css-compiled/styles.css b/web/themes/custom/rorschach/css-compiled/styles.css index 9a7c17a..cd50f17 100644 --- a/web/themes/custom/rorschach/css-compiled/styles.css +++ b/web/themes/custom/rorschach/css-compiled/styles.css @@ -822,6 +822,14 @@ a { .field--name-field-subheading { font-size: 1rem; } +.note { + display: table; + border: 1px solid #333; + text-align: center; + font-weight: bold; + padding: 1rem; + background-color: grey; } + .node-book-edit-form { width: 80%; border-top-style: solid; diff --git a/web/themes/custom/rorschach/scss/pages/_bookpage.scss b/web/themes/custom/rorschach/scss/pages/_bookpage.scss index 6e8d70a..e15cb75 100644 --- a/web/themes/custom/rorschach/scss/pages/_bookpage.scss +++ b/web/themes/custom/rorschach/scss/pages/_bookpage.scss @@ -3,4 +3,12 @@ } - +.note{ + display: table; + border: 1px solid #333; + text-align: center; + font-weight: bold; + padding: 1rem; + background-color: grey; +} + \ No newline at end of file