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
| import Vue from 'vue' | |
| import ResizeObserver from 'resize-observer-polyfill'; | |
| declare module 'vue/types/vue' { | |
| interface Vue { | |
| observe(ref: string, cb: (ref: DOMRectReadOnly) => void); | |
| unobserve(ref: string); | |
| } | |
| } |
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
| import * as levelup from "levelup"; | |
| export = sublevel | |
| declare namespace sublevel { | |
| interface Hook { | |
| (ch: any, add: (op: SublevelBatch | boolean) => void): void; | |
| } |
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
| const path = require("path"); | |
| const { EnvironmentPlugin, ProvidePlugin, LoaderOptionsPlugin, optimize } = require("webpack"); | |
| const { AureliaPlugin } = require("aurelia-webpack-plugin"); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const autoprefixer = require("autoprefixer"); | |
| let config = { | |
| entry: { "main": "aurelia-bootstrapper" }, // (1) | |
| output: { // (2) | |
| path: path.resolve(__dirname, "www"), |
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
| export function* skip<T>(it: Iterable<T>, count: number): Iterable<T> { | |
| for (const $ of it) { | |
| if (count-- <= 0) { | |
| yield $; | |
| } | |
| } | |
| } | |
| export function* take<T>(it: Iterable<T>, count: number): Iterable<T> { | |
| for (const $ of it) { | |
| if (count-- <= 0) { |
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
| <template> | |
| <div repeat.for="item of items"> | |
| ${item} | |
| <button click.trigger="replaceItem($index)">replace</button> | |
| </div> | |
| first by index number: ${items[0]} | |
| <br> | |
| first by property string: ${items["0"]} <!-- dirty check --> | |
| </template> |
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
| <template> | |
| <require from="my-component"></require> | |
| <h1>${message}</h1> | |
| <my-component></my-component> | |
| </template> |
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
| <template> | |
| <ul> | |
| <li> one </li> | |
| <li> two </li> | |
| <template if="true"><li>three</li></template> | |
| </ul> | |
| </template> |
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
| <template> | |
| <ul> | |
| <li> one </li> | |
| <li> two </li> | |
| <template><li>three</li></template> | |
| </ul> | |
| </template> |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Threading.Tasks; | |
| using System.Web; | |
| namespace Owin | |
| { | |
| using AppFunc = Func<IDictionary<string, object>, Task>; |
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
| public interface INotifyCollection<T> | |
| : ICollection<T>, | |
| INotifyCollectionChanged | |
| {} |
NewerOlder