Merge pull request #64 from opdavies/update-sculpin
Update Sculpin Fixes #61
This commit is contained in:
commit
6aa1b01f77
|
@ -13,7 +13,7 @@ class SculpinKernel extends AbstractKernel
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected function getAdditionalSculpinBundles()
|
protected function getAdditionalSculpinBundles(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
SculpinContentGeneratorBundle::class,
|
SculpinContentGeneratorBundle::class,
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
"test": "phpunit"
|
"test": "phpunit"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^5.5|^7.0",
|
"php": "^7.2",
|
||||||
"dflydev/embedded-composer": "^1.0@dev",
|
"dflydev/embedded-composer": "^1.0@dev",
|
||||||
"josephlavin/tap": "^1.0",
|
"josephlavin/tap": "^1.0",
|
||||||
"opdavies/sculpin-gist-embed-bundle": "^0.1",
|
"opdavies/sculpin-gist-embed-bundle": "^0.1",
|
||||||
"opdavies/sculpin-twig-markdown-bundle": "^0.1",
|
"opdavies/sculpin-twig-markdown-bundle": "^0.1",
|
||||||
"sculpin/sculpin": "^2.1@dev",
|
"sculpin/sculpin": "^3",
|
||||||
"tsphethean/sculpin-related-posts-bundle": "~0.1.0",
|
"tsphethean/sculpin-related-posts-bundle": "~0.1.0",
|
||||||
"wikimedia/composer-merge-plugin": "^1.4"
|
"wikimedia/composer-merge-plugin": "^1.4"
|
||||||
},
|
},
|
||||||
|
|
990
composer.lock
generated
990
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -69,7 +69,7 @@ talks:
|
||||||
The Twig layout:
|
The Twig layout:
|
||||||
|
|
||||||
```language-twig
|
```language-twig
|
||||||
{% raw -%}
|
{% verbatim -%}
|
||||||
{% for talk in talks|reverse if talk.date >= now %}
|
{% for talk in talks|reverse if talk.date >= now %}
|
||||||
{# Upcoming talks #}
|
{# Upcoming talks #}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -77,7 +77,7 @@ The Twig layout:
|
||||||
{% for talk in talks if talk.date < now %}
|
{% for talk in talks if talk.date < now %}
|
||||||
{# Previous talks #}
|
{# Previous talks #}
|
||||||
{% endfor%}
|
{% endfor%}
|
||||||
{%- endraw %}
|
{%- endverbatim %}
|
||||||
```
|
```
|
||||||
|
|
||||||
I also didn’t want to have to push an empty commit or manually trigger a job in Jenkins after doing a talk in order for it to be positioned in the correct place on the page, so I also wanted Jenkins to schedule a regular build regardless of whether or not code had been pushed, so ensure that my talks page would be up to date.
|
I also didn’t want to have to push an empty commit or manually trigger a job in Jenkins after doing a talk in order for it to be positioned in the correct place on the page, so I also wanted Jenkins to schedule a regular build regardless of whether or not code had been pushed, so ensure that my talks page would be up to date.
|
||||||
|
|
|
@ -50,7 +50,7 @@ Before:
|
||||||
|
|
||||||
<div v-pre markdown="1">
|
<div v-pre markdown="1">
|
||||||
```language-twig
|
```language-twig
|
||||||
{% raw %}{{ filter.isArchive ? 'true' : 'false' }}{% endraw %}
|
{% verbatim %}{{ filter.isArchive ? 'true' : 'false' }}{% endverbatim %}
|
||||||
```
|
```
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ After:
|
||||||
|
|
||||||
<div v-pre markdown="1">
|
<div v-pre markdown="1">
|
||||||
```language-twig
|
```language-twig
|
||||||
{% raw %}{{ filter.isArchive|boolean_string }}{% endraw %}
|
{% verbatim %}{{ filter.isArchive|boolean_string }}{% endverbatim %}
|
||||||
```
|
```
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ export default {
|
||||||
|
|
||||||
`src/components/Welcome.vue`:
|
`src/components/Welcome.vue`:
|
||||||
|
|
||||||
<div v-pre markdown="1">{% raw %}
|
<div v-pre markdown="1">{% verbatim %}
|
||||||
```vuejs
|
```vuejs
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
@ -163,7 +163,7 @@ export default {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
{% endraw %}</div>
|
{% endverbatim %}</div>
|
||||||
|
|
||||||
## Making it responsive
|
## Making it responsive
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@ I also moved the links into `data` too - each link is it’s own object with it'
|
||||||
|
|
||||||
`src/components/MainMenu.vue`:
|
`src/components/MainMenu.vue`:
|
||||||
|
|
||||||
{% raw %}<div v-pre markdown="1">
|
{% verbatim %}<div v-pre markdown="1">
|
||||||
```vuejs
|
```vuejs
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
@ -275,7 +275,7 @@ I also moved the links into `data` too - each link is it’s own object with it'
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
</div>{% endraw %}
|
</div>{% endverbatim %}
|
||||||
|
|
||||||
## The result
|
## The result
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ The `v-cloak` directive exists on an element until Vue finishes compiling, after
|
||||||
|
|
||||||
In my `base.html.twig` template, I’ve added `v-cloak` to the wrapper div within the `body`.
|
In my `base.html.twig` template, I’ve added `v-cloak` to the wrapper div within the `body`.
|
||||||
|
|
||||||
{% raw %}<div v-pre markdown="1">
|
{% verbatim %}<div v-pre markdown="1">
|
||||||
```twig
|
```twig
|
||||||
<body class="font-sans leading-normal">
|
<body class="font-sans leading-normal">
|
||||||
<div id="app" v-cloak>
|
<div id="app" v-cloak>
|
||||||
|
@ -62,11 +62,11 @@ In my `base.html.twig` template, I’ve added `v-cloak` to the wrapper div withi
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
```
|
```
|
||||||
</div>{% endraw %}
|
</div>{% endverbatim %}
|
||||||
|
|
||||||
Within my `navbar.html.twig` partial, I have a placeholder div that also contains the site name, which is instantly visible but has the `v-cloak-block` class so it’s hidden once Vue has compiled and the `Navbar` Vue component is visible instead.
|
Within my `navbar.html.twig` partial, I have a placeholder div that also contains the site name, which is instantly visible but has the `v-cloak-block` class so it’s hidden once Vue has compiled and the `Navbar` Vue component is visible instead.
|
||||||
|
|
||||||
{% raw %}<div v-pre markdown="1">
|
{% verbatim %}<div v-pre markdown="1">
|
||||||
```twig
|
```twig
|
||||||
<div class="border-bottom border-b border-gray-300 mb-6">
|
<div class="border-bottom border-b border-gray-300 mb-6">
|
||||||
<div class="container mx-auto">
|
<div class="container mx-auto">
|
||||||
|
@ -81,7 +81,7 @@ Within my `navbar.html.twig` partial, I have a placeholder div that also contain
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
</div>{% endraw %}
|
</div>{% endverbatim %}
|
||||||
|
|
||||||
I was originally surprised that these classes weren’t included as part of Tailwind or as part of an existing plugin, but as I’ve already used these styles on several projects that include Vue.js with Symfony or Sculpin, it made sense to extract it into a plugin and make it available as a npm package which I can easily add to any project - as well as making it easier to maintain if I need to add additional variations at a later point.
|
I was originally surprised that these classes weren’t included as part of Tailwind or as part of an existing plugin, but as I’ve already used these styles on several projects that include Vue.js with Symfony or Sculpin, it made sense to extract it into a plugin and make it available as a npm package which I can easily add to any project - as well as making it easier to maintain if I need to add additional variations at a later point.
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ In the first version, every link was individually styled which resulted in a lot
|
||||||
|
|
||||||
I added a `style` section within `Welcome.vue`, and added some default styling for links based on their location on the page - [extracting some Tailwind components](https://tailwindcss.com/docs/extracting-components).
|
I added a `style` section within `Welcome.vue`, and added some default styling for links based on their location on the page - [extracting some Tailwind components](https://tailwindcss.com/docs/extracting-components).
|
||||||
|
|
||||||
<div v-pre markdown="1">{% raw %}
|
<div v-pre markdown="1">{% verbatim %}
|
||||||
```vuejs
|
```vuejs
|
||||||
<template>
|
<template>
|
||||||
...
|
...
|
||||||
|
@ -104,7 +104,7 @@ Within the `style` section, I’m able to use Tailwind’s custom `@apply` direc
|
||||||
@apply border-none
|
@apply border-none
|
||||||
</style>
|
</style>
|
||||||
```
|
```
|
||||||
{% endraw %}</div>
|
{% endverbatim %}</div>
|
||||||
|
|
||||||
## Extracting a Vue component for Drupal blocks
|
## Extracting a Vue component for Drupal blocks
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: Drupal 8: Rejoining the Herd
|
title: 'Drupal 8: Rejoining the Herd'
|
||||||
description: A talk highlighting some of the recent technical and non-technical changes in Drupal 8.
|
description: A talk highlighting some of the recent technical and non-technical changes in Drupal 8.
|
||||||
tags: [conference, php, drupal, drupal-8]
|
tags: [conference, php, drupal, drupal-8]
|
||||||
speakerdeck:
|
speakerdeck:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: Drupal.org in 2015: What's Coming Next
|
title: "Drupal.org in 2015: What's Coming Next"
|
||||||
description: A retrospective of the Drupal Association’s work in 2014 and a look forward to what we’ll be working on in 2015.
|
description: A retrospective of the Drupal Association’s work in 2014 and a look forward to what we’ll be working on in 2015.
|
||||||
tags: [conference, drupalcamp, drupalcamp-london, drupal-association]
|
tags: [conference, drupalcamp, drupalcamp-london, drupal-association]
|
||||||
speakerdeck:
|
speakerdeck:
|
||||||
|
|
Loading…
Reference in a new issue