In addition to the Storybook for React setup, you'll also need to install these packages:
npm i -D @babel/core babel-loader css-loader style-loader
| #!/bin/bash | |
| OVPN_FILE="${1}" | |
| OUTPUT_PREFIX="${2}" | |
| if [ ! -e "${OVPN_FILE}" ]; then | |
| echo "File not found: ${OVPN_FILE}" | |
| exit 1 | |
| fi |
| # UPDATED 17 February 2019 | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| # SSL configuration |
| import {Action, ActionCreator, Dispatch} from 'redux'; | |
| import {ThunkAction} from 'redux-thunk'; | |
| // Redux action | |
| const reduxAction: ActionCreator<Action> = (text: string) => { | |
| return { | |
| type: SET_TEXT, | |
| text | |
| }; | |
| }; |
| const cleanTypenameLink = new ApolloLink((operation, forward) => { | |
| if (operation.variables) { | |
| operation.variables = this.omitDeep (operation.variables, "__typename") | |
| } | |
| return forward(operation).map((data) => { | |
| return data; | |
| }) | |
| }) | |
| private omitDeep(obj, key) { |
| // File log.js | |
| (function (global, factory) { | |
| if (typeof define === "function" && define.amd) { | |
| define(["exports"], factory); | |
| } else if (typeof exports !== "undefined") { | |
| factory(exports); | |
| } else { | |
| var mod = { | |
| exports: {} | |
| }; |
| // .babelrc in packages/foodloc-models/.babelrc | |
| { | |
| "presets": ["env", "react"], | |
| "plugins": [ | |
| "@babel/plugin-syntax-dynamic-import", | |
| "@babel/plugin-transform-modules-commonjs", | |
| "@babel/plugin-transform-runtime", | |
| "@babel/plugin-proposal-export-default-from" | |
| ] |
In addition to the Storybook for React setup, you'll also need to install these packages:
npm i -D @babel/core babel-loader css-loader style-loader
| this.obs = createFrom(async function *() { | |
| await delay(1000); | |
| yield 1; | |
| yield 2; | |
| await delay(500); | |
| await delay(300); | |
| yield 3; | |
| await delay(400); | |
| yield 4; | |
| yield 5; |
| interface PictureInPictureResizeEvent extends Event { | |
| readonly target: PictureInPictureWindow; | |
| } | |
| interface PictureInPictureWindow { | |
| readonly width: number; | |
| readonly height: number; | |
| onresize(this: PictureInPictureWindow, ev: PictureInPictureResizeEvent): void; | |
| addEventListener( | |
| type: 'resize', |