FILE | METHOD | CODE |
---|---|---|
src/components/AlertBar | storiesOf |
import { storiesOf } from '@storybook/react' |
src/components/AppLayout | storiesOf |
import { storiesOf } from '@storybook/react' |
src/components/CouponForm | storiesOf |
import { storiesOf } from '@storybook/react' |
src/components/DialogMessage | storiesOf |
import { storiesOf } from '@storybook/react' |
src/components/Header | storiesOf |
import { storiesOf } from '@storybook/react' |
Meta |
import { Meta } from '@storybook/react' |
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 { DateTime } = require("luxon"); | |
const start = parseDateTime("Thu Apr 13", "1pm"); | |
const end = parseDateTime("Mon Dec 19 2022", "4pM"); | |
console.log(`${start} -- ${end}`); | |
function parseDateTime(dateString, timeString) { | |
const CURR_YEAR = new Date().getFullYear(); | |
const DATE_FORMAT = /* ccc */ "LLL d yyyy"; | |
const TIME_FORMAT = "h:mma"; |
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
moment is missing FxA "ast" locale (21%) | |
moment is missing FxA "cak" locale (67%) | |
moment is missing FxA "dsb" locale (82%) | |
moment is missing FxA "es-ar" locale (100%) | |
moment is missing FxA "es-cl" locale (100%) | |
moment is missing FxA "es-es" locale (92%) | |
moment is missing FxA "fur" locale (36%) | |
moment is missing FxA "fy-nl" locale (100%) | |
moment is missing FxA "gn" locale (100%) | |
moment is missing FxA "hi-in" locale (32%) |
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
https://addons.mozilla.org/api/v5/addons/search/?author=mozilla&page_size=100&type=extension | |
name: Firefox Relay (2.6.1) | |
size: 777.5 KB | |
last_updated: Feb 22, 2023 (2 days ago) | |
ratings: 4.0957 (1,275) | |
average_daily_users: 138,528 | |
weekly_downloads: 2,394 | |
homepage: https://relay.firefox.com/ |
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 fs = require("node:fs/promises"); | |
const { inspect } = require("node:util"); | |
/** | |
* @typedef {import('@11ty/eleventy/src/UserConfig')} EleventyConfig | |
* @typedef {ReturnType<import('@11ty/eleventy/src/defaultConfig')>} EleventyReturnValue | |
* @type {(eleventyConfig: EleventyConfig) => EleventyReturnValue} | |
*/ | |
module.exports = function (eleventyConfig) { | |
const eventData = []; |
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 { execSync } from "node:child_process"; | |
import path from "node:path"; | |
import minimatch from "minimatch"; | |
import prettier from "prettier"; | |
const ignores = [ | |
".circleci/**", | |
".github/**", | |
".vscode/**", |
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 { inspect } = require("node:util"); | |
// `npm i sort-object-keys -D` | |
const sortObj = require("sort-object-keys"); | |
// `npm i eslint-plugin-jsx-a11y -D` | |
// console.log(dump("eslint-plugin-jsx-a11y")); | |
// `npm i eslint-plugin-react -D` | |
console.log(dump("eslint-plugin-react")); |
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 axios = require("axios"); | |
const glob = require("fast-glob"); | |
const parse = require("parse-github-repo-url"); | |
glob("./packages/*/package.json").then(files => { | |
for (const file of files) { | |
const pkg = require(file); | |
const allDeps = Object.assign({}, pkg.dependencies, pkg.devDependencies); | |
const httpDeps = Object.entries(allDeps) | |
.filter(([name, version]) => version.startsWith("https://")); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<style> | |
h2 { | |
color: salmon; | |
font-family: "Comic Sans MS"; | |
} | |
dt { |
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 fs from "node:fs/promises"; | |
import glob from "fast-glob"; | |
import {HTMLHint} from "htmlhint"; | |
const res = await verifyGlob("**/*.ftl", false); | |
console.log(res); | |
async function verifyGlob(fileglob, ignoreComments=true) { | |
let errors = []; | |
for (const file of await glob([fileglob, "!node_modules/**"])) { |