new things.
This commit is contained in:
@@ -159,6 +159,8 @@ class FightTrainingController extends ControllerBase {
|
||||
|
||||
$extracted_values = $this->extractValuesFromFields($id, $this->fields, $prefix);
|
||||
|
||||
|
||||
/* return $extracted_values; */
|
||||
return $this->normalizeData($extracted_values);
|
||||
}
|
||||
|
||||
|
||||
@@ -181,8 +181,8 @@ $databases = [];
|
||||
*
|
||||
* WARNING: The above defaults are designed for database portability. Changing
|
||||
* them may cause unexpected behavior, including potential data loss. See
|
||||
* https://www.drupal.org/developing/api/database/configuration for more
|
||||
* information on these defaults and the potential issues.
|
||||
* https://www.drupal.org/docs/8/api/database-api/database-configuration for
|
||||
* more information on these defaults and the potential issues.
|
||||
*
|
||||
* More details can be found in the constructor methods for each driver:
|
||||
* - \Drupal\mysql\Driver\Database\mysql\Connection::__construct()
|
||||
|
||||
@@ -900,6 +900,7 @@ if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
|
||||
}
|
||||
|
||||
$settings['file_public_path'] = 'sites/default/files';
|
||||
$settings['file_private_path'] = $app_root . '/../private-files';
|
||||
$config['image.settings']['allow_insecure_derivatives'] = TRUE;
|
||||
$settings['config_sync_directory'] = '../config/default';
|
||||
|
||||
|
||||
@@ -53,5 +53,5 @@
|
||||
*
|
||||
* @see default.settings.php
|
||||
* @see \Drupal\Core\DrupalKernel::getSitePath()
|
||||
* @see https://www.drupal.org/documentation/install/multi-site
|
||||
* @see https://www.drupal.org/docs/getting-started/multisite-drupal
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
name: Accordion
|
||||
props:
|
||||
type: object
|
||||
properties: { }
|
||||
slots:
|
||||
# Content.
|
||||
accordion_headline:
|
||||
title: Accordion Title
|
||||
description: "The accordion title."
|
||||
accordion_content:
|
||||
title: Accordion Content
|
||||
description: "The accordion content."
|
||||
@@ -0,0 +1,14 @@
|
||||
{% set classes = [
|
||||
'accordion',
|
||||
] %}
|
||||
|
||||
<div class="accordion">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
{% block accordion_title %}{% endblock %}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="accordion-body">
|
||||
{% block accordion_content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
name: Button
|
||||
props:
|
||||
type: object
|
||||
required:
|
||||
- type
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
title: Type
|
||||
description: "The type of button to render"
|
||||
# The enum directive restricts the possible values in the element to our list.
|
||||
enum: ['primary', 'secondary', 'danger']
|
||||
slots:
|
||||
# Content to display in the chip.
|
||||
button_text:
|
||||
title: Button Text
|
||||
description: The text for the button
|
||||
7
web/themes/custom/dchadwick/components/button/button.js
Normal file
7
web/themes/custom/dchadwick/components/button/button.js
Normal file
@@ -0,0 +1,7 @@
|
||||
((Drupal) => {
|
||||
Drupal.behaviors.button = {
|
||||
attach(context) {
|
||||
console.log("hello");
|
||||
},
|
||||
};
|
||||
})(Drupal);
|
||||
10
web/themes/custom/dchadwick/components/button/button.twig
Normal file
10
web/themes/custom/dchadwick/components/button/button.twig
Normal file
@@ -0,0 +1,10 @@
|
||||
{%
|
||||
set classes = [
|
||||
'btn',
|
||||
'btn-' ~ type|clean_class,
|
||||
]
|
||||
%}
|
||||
|
||||
<button class="{{ classes|join(" ") }}">
|
||||
{% block button_text %}{% endblock %}
|
||||
</button>
|
||||
@@ -32,6 +32,10 @@ $container-plus-padding: 1216px;
|
||||
@import "partials/footer";
|
||||
@import "partials/recent-fights";
|
||||
|
||||
html {
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background: $base_light;
|
||||
color: $muted;
|
||||
|
||||
@@ -15,6 +15,20 @@
|
||||
</main>
|
||||
</section>
|
||||
<footer aria-label="Site footer" class="footer" id="footer" role="contentinfo">
|
||||
{{ include('dchadwick:button', {text: 'Click me', type: 'danger'}, with_context = false) }}
|
||||
|
||||
{% embed 'dchadwick:accordion' %}
|
||||
|
||||
{% block accordion_title %}
|
||||
Click Me!
|
||||
{% endblock %}
|
||||
|
||||
{% block accordion_content %}
|
||||
Here is some content that goes in the place where the body is.
|
||||
{% endblock %}
|
||||
|
||||
{% endembed %}
|
||||
|
||||
<div class="footer--bottom">
|
||||
{{ page.footer_bottom }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user