- FreshTomato based router (tested on 2024.1 on an ARM router)
- a USB key (to store the file that will be served)
- Download the binary from netboot.xyz – I used x86_64 Legacy DHCP bootloader
| import { render } from "@react-email/render"; | |
| import type { Meta, StoryFn } from "@storybook/react"; | |
| import Email from "./email"; | |
| const meta: Meta<typeof Email> = { | |
| title: "components/Email", | |
| component: Email, | |
| parameters: { | |
| layout: "fullscreen", | |
| }, |
| // custom `renderFn` to render the custom Menu widget | |
| function renderFn(menuRenderingOptions, isFirstRendering) { | |
| if (isFirstRendering) { | |
| menuRenderingOptions.widgetParams.containerNode | |
| .html('<select></select'); | |
| menuRenderingOptions.widgetParams.containerNode | |
| .find('select') | |
| .on('change', function(event) { | |
| menuRenderingOptions.refine(event.target.value); |
| const MySearchBox = connectSearchBox(({currentRefinement, refine}) => { | |
| return <input type="text" value={currentRefinement} onChange={(e) => refine(e.target.value)}/>; | |
| }); |
In this sample, we cover those topics:
See on jsFiddle
In this sample, we cover those topics:
See on jsFiddle
In this sample, we cover those topics:
result event and read the results from AlgoliaSee on jsFiddle
| search = instantsearch({}); | |
| search.addWidget({ | |
| getConfiguration: function(){ | |
| return {disjunctiveFacets: ['director']}; | |
| }, | |
| init: function(state){ | |
| state.addDisjunctiveFacetRefinement('director', 'Clint Eastwood'); | |
| } | |
| }) |
| program.on("--help", function() { | |
| console.log(function() {/* | |
| Examples: | |
| # pass an input and output file | |
| $ cssnext input.css output.css | |
| # start cssnext watcher (need input & output) | |
| $ cssnext --watch input.css output.css | |
| # using stdin and stdout | |
| $ cat input.css | cssnext > output.css | |
| */ |