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,28 @@
'$schema': 'https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json'
name: {{ component_name }}
status: stable
{% if component_description %}
description: {{ component_description }}
{% endif %}
{% if component_libraries|length > 0 %}
libraryOverrides:
dependencies:
{% for library in component_libraries %}
- {{ library }}
{% endfor %}
{% endif %}
{% if component_props|length > 0 %}
props:
type: object
properties:
{% for prop in component_props %}
{{ prop.name }}:
type: {{ prop.type }}
title: {{ prop.title }}
{% if prop.description %}
description: {{ prop.description }}
{% endif %}
# @todo Add examples here.
examples: []
{% endfor %}
{% endif %}

View File

@@ -0,0 +1,9 @@
(function(Drupal) {
Drupal.behaviors.{{ component_machine_name|camelize(false) }} = {
attach(context) {
console.log('@todo Replace me with the real JS behavior.');
},
};
})(Drupal);

View File

@@ -0,0 +1,13 @@
# {{ component_name|capitalize }}
This is some default content for the README. Change this to the appropriate
content.
## Usage
Here you should describe how/when to use this component. This information may be
for developers or for editors, depending on the component type.
## Additional information
Some extra info about the component.

View File

@@ -0,0 +1,3 @@
[data-component-id="{{ machine_name }}:{{ component_machine_name }}"] {
/* @todo Add your styles here. */
}

View File

@@ -0,0 +1,6 @@
<div {{ '{{ attributes }}' }}>
{{ '{# ' }}Keep the outer div whenever possible it is a nice way to ensure the presence of "attributes" {{ '#}' }}
{{ '{% ' }}block example_block {{ '%}' }}
The contents of the example block
{{ '{% ' }}endblock {{ '%}' }}
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB