routes(route_config)
route_config : オブジェクトの配列
path: マッチするパス (配列可)- 正規表現 or 文字列
| class TupleRegistry { | |
| tuples = [] | |
| constructor() { | |
| this.fregistry = new FinalizationRegistry(() => { | |
| this.tuples = this.tuples.filter(ref => ref.deref()) | |
| }) | |
| } | |
| add(tuple) { |
| C:\Users\user\Desktop>cscript //E:{1b7cd997-e5ff-4932-a7a6-2a9e636da385} repl.js | |
| Microsoft (R) Windows Script Host Version 5.812 | |
| Copyright (C) Microsoft Corporation. All rights reserved. | |
| > if(true){\ | |
| > 1\ | |
| > } | |
| 1 | |
| > var a = 10 | |
| undefined |
| const add = (a, b) => a + b | |
| export default add |
| [root@af929bf74005 /]# time dnf install git -y | |
| Fedora 38 - x86_64 9.5 MB/s | 83 MB 00:08 | |
| Fedora 38 openh264 (From Cisco) - x86_64 1.1 kB/s | 2.5 kB 00:02 | |
| Fedora Modular 38 - x86_64 3.2 MB/s | 2.8 MB 00:00 | |
| Fedora 38 - x86_64 - Updates 3.8 MB/s | 36 MB 00:09 | |
| Fedora Modular 38 - x86_64 - Updates 1.5 MB/s | 2.1 MB 00:01 | |
| Dependencies resolved. | |
| ======================================================================================================================== | |
| Package Architecture Version Repository Size | |
| ======================================================================================================================== |
| export const sortDomain = (domains) => { | |
| return domains.map(x => x.split(".")).sort((a, b) => { | |
| const max = Math.max(a.length, b.length) | |
| const recur = (i = 0) => { | |
| if (i >= max) return 0 | |
| return (a.at(-i - 1) ?? "").localeCompare(b.at(-i - 1) ?? "") || recur(i + 1) | |
| } | |
| return recur() | |
| }).map(x => x.join(".")) | |
| } |
| <!DOCTYPE html> | |
| <meta charset="utf-8" /> | |
| <script type="module"> | |
| import { html, render } from "https://cdn.jsdelivr.net/npm/uhtml@4.1.20/node.js" | |
| const page = async () => { | |
| const valueFormat = (value) => { | |
| try { |
| import { LitElement, css, html } from "lit" | |
| import { live } from "lit/directives/live.js" | |
| export class TimeInput extends LitElement { | |
| static styles = css` | |
| .container { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| input { |
| <!doctype html> | |
| <meta charset="utf-8" /> | |
| <script type="module"> | |
| import { createApp, ref, h } from "https://unpkg.com/vue@3.3.7/dist/vue.esm-browser.js" | |
| import htm from "https://cdn.jsdelivr.net/npm/htm@3.1.1/mini/index.module.js" | |
| const html = htm.bind( | |
| (type, props, ...children) => | |
| h(type, props, typeof type === "string" ? children : () => children) | |
| ) |
| foo-bar { | |
| display: block; | |
| margin: 10px; | |
| } | |
| /* not applied */ | |
| .box { | |
| color: red; | |
| } |