Skip to content

Instantly share code, notes, and snippets.

View Wolfr's full-sized avatar

Wolfr Wolfr

View GitHub Profile
@Wolfr
Wolfr / accordion.hbs
Created April 8, 2021 17:35
Accordion in Ember
<div class="auk-accordion {{if this.isActive "auk-accordion--is-active"}}">
<WebComponents::AuButtonLink
@padded="padded-y"
@icon="chevron-right"
@block="true"
{{on "click" this.toggleAccordion}}
aria-expanded={{if this.isActive "true" "false"}}
aria-controls={{this.accordionId}}>{{@label}}
</WebComponents::AuButtonLink>
@Wolfr
Wolfr / global.css
Last active January 17, 2021 18:56
Toolbar
body {
background: red;
}
.st-toolbar {
display: flex;
width: 100%;
justify-content: space-between;
}
import { Component, Element, State, h } from '@stencil/core';
import { hasSlot } from '../../utilities/slot';
/**
* @since 2.0
* @status stable
*
* @slot - The card's body.
* @slot header - The card's header.
* @slot footer - The card's footer.
@-moz-document domain("www.ejustice.just.fgov.be") {
/* Stylesheet to make staatsblad more legible */
frame {
border: none;
}
a {
color: #468FFA;
}
Now using node v12.14.1 (npm v6.13.6)
johanronsse@Johans-iMac spark-backoffice-prototype % npm i
> [email protected] install /Users/johanronsse/Sites/spark-backoffice-prototype/node_modules/glob-watcher/node_modules/fsevents
> node install.js
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
@Wolfr
Wolfr / input.scss
Created September 7, 2020 15:34
Generated by SassMeister.com.
$theme-color: #000;
$theme-name: "|customer-a";
*[data-theme="#{$theme-name}"] button {
color: $theme-color;
}
# htaccess config to redirect SPAs to index.html
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.html
tree .
.
|-- CONTRIBUTING.md
|-- LICENSE.md
|-- README.md
|-- addon
| |-- components
| | |-- alert.hbs
| | |-- alert.js
| | |-- avatar.hbs
import Component from '@glimmer/component';
export default class extends Component {
}

Routify updates + Frequently asked questions

The past month we've seen three new Routify feature releases:

  • 1.8 (beta)
    • Support for service workers
    • Support for prefetching
    • Support disabling prerendering with prerender=false
    • Support plugins
  • Example plugin: FrontMatter