first commit

This commit is contained in:
2024-07-15 12:33:27 +02:00
commit ce50ae282b
22084 changed files with 2623791 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{{ machine_name }}.add_example:
route_name: {{ machine_name }}.add_example
route_parameters:
node: 123
title: 'Add example'
options:
attributes: {target: _blank}
weight: 10
appears_on:
- system.admin_content

View File

@@ -0,0 +1,5 @@
# Add a link to node revisions page.
{{ machine_name }}.node_revisions:
title: Revisions
route_name: entity.node.version_history
group: node

View File

@@ -0,0 +1,34 @@
# Simple link.
{{ machine_name }}.node_add:
title: Add content
description: Add new content.
menu_name: main
route_name: node.add_page
weight: 10
# Child link.
{{ machine_name }}.node_add_article:
title: Add article
menu_name: main
parent: {{ machine_name }}.node_add
route_name: node.add
route_parameters:
node_type: article
weight: 20
# Dynamic link.
{{ machine_name }}.user:
menu_name: main
class: Drupal\user\Plugin\Menu\LoginLogoutMenuLink
weight: 30
# External link.
{{ machine_name }}.drupal.org:
title: Drupal.org
description: Drupal is an open source platform for building amazing digital experiences.
url: https://www.drupal.org
menu_name: main
weight: 40
options:
attributes:
target: _blank

View File

@@ -0,0 +1,20 @@
{{ machine_name }}.foo:
title: Foo
route_name: {{ machine_name }}.foo_1
base_route: {{ machine_name }}.foo_1
{{ machine_name }}.foo_1:
title: Foo 1
route_name: {{ machine_name }}.foo_1
parent_id: {{ machine_name }}.foo
{{ machine_name }}.foo_2:
title: Foo 2
route_name: {{ machine_name }}.foo_2
parent_id: {{ machine_name }}.foo
{{ machine_name }}.foo_3:
title: Foo 3
route_name: {{ machine_name }}.foo_3
parent_id: {{ machine_name }}.foo
{{ machine_name }}.bar:
title: Bar
route_name: {{ machine_name }}.bar
base_route: {{ machine_name }}.foo_1

View File

@@ -0,0 +1,30 @@
{{ machine_name }}.extra_small:
label: mobile
mediaQuery: ''
weight: 0
multipliers:
- 1x
{{ machine_name }}.small:
label: mobile
mediaQuery: 'all and (min-width: 576px) and (max-width: 767px)'
weight: 1
multipliers:
- 1x
{{ machine_name }}.medium:
label: narrow
mediaQuery: 'all and (min-width: 768px) and (max-width: 991px)'
weight: 2
multipliers:
- 1x
{{ machine_name }}.large:
label: wide
mediaQuery: 'all and (min-width: 992px) and (max-width: 1199px)'
weight: 3
multipliers:
- 1x
{{ machine_name }}.extra_large:
label: wide
mediaQuery: 'all and (min-width: 1200px)'
weight: 4
multipliers:
- 1x

View File

@@ -0,0 +1,19 @@
id: {{ plugin_id }}
label: {{ plugin_label }}
migration_tags:
- Drupal 7
source:
plugin: {{ source_plugin }}
process:
# See https://www.drupal.org/node/2129651 on how to define
# process map for the migration.
{% for field in fields %}
{{ field }}: {{ field }}
{% endfor %}
destination:
plugin: {{ destination_plugin }}
# The general rule of thumb is that any migrations referenced by migration
# process plugins should be required here.
#migration_dependencies:
# required:
# - example

View File

@@ -0,0 +1,14 @@
name: {{ name }}
type: module
description: {{ description }}
package: {{ package }}
core_version_requirement: ^10 || ^11
{% if dependencies %}
dependencies:
{% for dependency in dependencies %}
- {{ dependency }}
{% endfor %}
{% endif %}
{% if configure %}
configure: {{ configure }}
{% endif %}

View File

@@ -0,0 +1,37 @@
# Custom library for general purposes.
example_1:
js:
js/example-1.js: {}
css:
component:
css/example-1.css: {}
dependencies:
- core/drupalSettings
- {{ machine_name }}/example_2
# Third-party library (self hosted).
example_2:
remote: https://example.com
version: 1.0.0
license:
name: MIT
url: https://github.com/example/example-2/path/to/LICENSE
gpl-compatible: true
js:
/libraries/example-2/source/example-2.js: {}
css:
component:
/libraries/example-2/source/example-2.css: {}
dependencies:
- core/jquery
# Third-party library (CDN).
example_3:
remote: https://example.com
version: 1.0.0
license:
name: MIT
url: https://github.com/example/example-3/path/to/LICENSE
gpl-compatible: true
js:
https://cdnjs.cloudflare.com/ajax/libs/example/1.0.0/example-3.min.js: {type: external, minified: true}

View File

@@ -0,0 +1,8 @@
{{ id }}:
title: '{{ title }}'
{% if description %}
description: '{{ description }}'
{% endif %}
{% if restrict_access %}
restrict access: true
{% endif %}

View File

@@ -0,0 +1,7 @@
{{ machine_name }}.example:
path: '/{{ machine_name|u2h }}/example'
defaults:
_controller: '\Drupal\{{ machine_name }}\Controller\{{ class }}::build'
_title: 'Example'
requirements:
_permission: 'some permission'

View File

@@ -0,0 +1,4 @@
services:
{{ machine_name }}.example:
class: Drupal\{{ machine_name }}\Example
arguments: ['@entity_type.manager']

View File

@@ -0,0 +1,20 @@
name: {{ name }}
type: theme
base theme: {{ base_theme }}
description: {{ description }}
package: {{ package }}
core_version_requirement: ^10 || ^11
libraries:
- {{ machine_name }}/global
regions:
header: 'Header'
primary_menu: 'Primary menu'
secondary_menu: 'Secondary menu'
page_top: 'Page top'
page_bottom: 'Page bottom'
featured: 'Featured'
breadcrumb: 'Breadcrumb'
content: 'Content'
sidebar_first: 'Sidebar first'
sidebar_second: 'Sidebar second'
footer: 'Footer'

View File

@@ -0,0 +1,24 @@
# Main theme library.
global:
js:
js/{{ machine_name|u2h }}.js: {}
css:
base:
css/base/elements.css: {}
component:
css/components/block.css: {}
css/components/breadcrumb.css: {}
css/components/field.css: {}
css/components/form.css: {}
css/components/header.css: {}
css/components/menu.css: {}
css/components/messages.css: {}
css/components/node.css: {}
css/components/sidebar.css: {}
css/components/table.css: {}
css/components/tabs.css: {}
css/components/buttons.css: {}
layout:
css/layouts/layout.css: {}
theme:
css/theme/print.css: { media: print }