This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema":"http://json-schema.org/draft-04/schema#", | |
| "id":"http://d8/schemata/node/article?_format=schema_json&_describes=hal_json", | |
| "type":"object", | |
| "title":"node:article Schema", | |
| "description":"Use articles for time-sensitive content like news, press releases or blog posts.", | |
| "properties":{ | |
| "nid":{ | |
| "type":"array", | |
| "title":"ID", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": [ | |
| { | |
| "type": "node--article", | |
| "id": "799bf41c-5f5d-403f-8c51-b929dd649794", | |
| "attributes": { | |
| "nid": 1, | |
| "uuid": "799bf41c-5f5d-403f-8c51-b929dd649794", | |
| "vid": 1, | |
| "langcode": "en", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/modules/field_layout/field_layout.layouts.yml b/core/modules/field_layout/field_layout.layouts.yml | |
| index 0aaa87b..ed30a94 100644 | |
| --- a/core/modules/field_layout/field_layout.layouts.yml | |
| +++ b/core/modules/field_layout/field_layout.layouts.yml | |
| @@ -19,3 +19,18 @@ twocol: | |
| label: Left | |
| right: | |
| label: Right | |
| + | |
| +threecol: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/modules/outside_in/js/offcanvas.js b/core/modules/outside_in/js/offcanvas.js | |
| index b3c4237..9522f03 100644 | |
| --- a/core/modules/outside_in/js/offcanvas.js | |
| +++ b/core/modules/outside_in/js/offcanvas.js | |
| @@ -106,6 +106,7 @@ | |
| $element.dialog('widget').attr('data-offset-' + edge, ''); | |
| + $element.closest('[role="dialog"]').wrap('<div class="offcanvas-wrapper"></div>'); | |
| $(window) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <h1><a href="#" id="login">login</a></h1> | |
| <h1><a href="#" id="logout">logout</a></h1> | |
| <h1><a href="#" id="get-node-1">get node 1</a></h1> | |
| <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.0.min.js"></script> | |
| <script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'dialog:aftercreate': function (event, dialog, $element, settings) { | |
| if ($element.is('#drupal-offcanvas')) { | |
| var eventData = {settings: settings, $element: $element}; | |
| // Add dialog id for CSS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| $('.ui-dialog-offcanvas').attr('id','dialog-offcanvas'); | |
| $element | |
| .on('dialogresize.outsidein', eventData, debounce(bodyPadding, 100)) | |
| .on('dialogContentResize.outsidein', eventData, handleDialogResize) | |
| .trigger('dialogresize.outsidein'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Drupal\outside_in\Ajax; | |
| use Drupal\Core\Ajax\OpenDialogCommand; | |
| /** | |
| * Defines an AJAX command to open content in a dialog in a off-canvas tray. | |
| * | |
| * @ingroup ajax |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $new_region = NULL; | |
| if (!isset($regions[$this->region]) && $this->status()) { | |
| if (isset($this->original)) { | |
| $original_region = $this->original->getRegion(); | |
| // If \Drupal\block\BlockInterface::BLOCK_REGION_NONE was used to | |
| // disable the block and we have an original region then keep in the | |
| // block in the original region. | |
| if (isset($regions[$original_region]) && $this->region == BlockInterface::BLOCK_REGION_NONE) { | |
| $new_region = $original_region; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Let’s say that I am on the master branch. But I wanted slothparadise.txt from the devel branch. | |
| git checkout devel -- slothparadise.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. read https://github.com/blinkreaction/drude - do 1 time setup | |
| 2. git clone --depth 1 git@github.com:tedbow/drude-d8-start.git | |
| 3. | |
| 3. drupal site:new docroot |