Compare commits
No commits in common. "35b156ba5a707c0395a4e65ba52219edde7be23a" and "a89c43efd2a10e0a94f28ade301537a44a2a07a1" have entirely different histories.
35b156ba5a
...
a89c43efd2
|
@ -1,9 +1,12 @@
|
|||
// Import native Node libraries.
|
||||
import path from "node:path";
|
||||
import process from "node:process";
|
||||
import fsp from "node:fs/promises";
|
||||
// Import Esbuild and associated plugins.
|
||||
import esbuild from "esbuild";
|
||||
import copyPlugin from "esbuild-copy-static-files";
|
||||
import {sassPlugin} from "esbuild-sass-plugin";
|
||||
// Import PostCSS and associated plugins.
|
||||
import cssnano from "cssnano";
|
||||
import postcss from "postcss";
|
||||
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
import {Component} from "preact";
|
||||
import {type SharedProps} from "./shared.js";
|
||||
|
||||
export class BigDate extends Component<SharedProps> {
|
||||
render() {
|
||||
const {today} = this.props;
|
||||
|
||||
const date = [
|
||||
["year", today.date.getFullYear().toString()],
|
||||
["month", today.paddedMonth()],
|
||||
["day", today.paddedDay()],
|
||||
]
|
||||
.map(([name, value]) => <span class={name}>{value}</span>)
|
||||
// Add a dash between each part of the date.
|
||||
// eslint-disable-next-line unicorn/no-array-reduce
|
||||
.reduce((accumulator, current) => (
|
||||
<>
|
||||
{accumulator}
|
||||
<span class="dash">-</span>
|
||||
{current}
|
||||
</>
|
||||
));
|
||||
|
||||
return <h1 class="big-date">{date}</h1>;
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import {type DateWrapper} from "../date/date.js";
|
||||
|
||||
export type SharedProps = {
|
||||
today: DateWrapper;
|
||||
};
|
|
@ -1,4 +1,6 @@
|
|||
// Third-party imports.
|
||||
import {setup} from "@holllo/test";
|
||||
// First-party imports.
|
||||
import {DateWrapper} from "./date.js";
|
||||
|
||||
await setup("DateWrapper", async (group) => {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Third-party imports.
|
||||
import {render} from "preact";
|
||||
// CSS imports.
|
||||
import "modern-normalize/modern-normalize.css";
|
||||
import "./global.scss";
|
||||
// First-party imports.
|
||||
import {App} from "./app.js";
|
||||
|
||||
if ($dev) {
|
||||
|
|
Loading…
Reference in New Issue