Lint fixes
This commit is contained in:
parent
4550ec3cd3
commit
a69e1097f0
@ -46,10 +46,6 @@ export default function html({
|
|||||||
class="title--${typeof title == "string" ? toKebabCase(title) : ""}"
|
class="title--${typeof title == "string" ? toKebabCase(title) : ""}"
|
||||||
>
|
>
|
||||||
<head>
|
<head>
|
||||||
<meta
|
|
||||||
name="google-site-verification"
|
|
||||||
content="Tf9a888qUgbgQJS4u1F6A8H7ZI_DBJvAeduluSI0T_g"
|
|
||||||
/>
|
|
||||||
${makeHead({
|
${makeHead({
|
||||||
ctx,
|
ctx,
|
||||||
title: title,
|
title: title,
|
||||||
|
@ -36,7 +36,6 @@ export class Countdown extends Component<typeof component_arguments> {
|
|||||||
async toHTML({
|
async toHTML({
|
||||||
args: { date },
|
args: { date },
|
||||||
classes,
|
classes,
|
||||||
jdd_context: { render_markdown, render_image, language },
|
|
||||||
}: ComponentToHTMLArgs<typeof component_arguments>): Promise<string> {
|
}: ComponentToHTMLArgs<typeof component_arguments>): Promise<string> {
|
||||||
const { days, hours, minutes, seconds } = calculateDifference(date);
|
const { days, hours, minutes, seconds } = calculateDifference(date);
|
||||||
return (
|
return (
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { TempstreamJSX } from "tempstream";
|
import { TempstreamJSX } from "tempstream";
|
||||||
import type { ComponentToHTMLArgs } from "@sealcode/jdd";
|
import type { ComponentToHTMLArgs } from "@sealcode/jdd";
|
||||||
import { Component, ComponentArguments } from "@sealcode/jdd";
|
import { Component, ComponentArguments } from "@sealcode/jdd";
|
||||||
import { Collection } from "sealious";
|
|
||||||
|
|
||||||
const component_arguments = {
|
const component_arguments = {
|
||||||
mode: new ComponentArguments.Enum(["horizontal"]),
|
mode: new ComponentArguments.Enum(["horizontal"]),
|
||||||
@ -25,7 +24,7 @@ export class ItemsList extends Component<typeof component_arguments> {
|
|||||||
async toHTML({
|
async toHTML({
|
||||||
args: { mode, collection, title_field, text_content_field },
|
args: { mode, collection, title_field, text_content_field },
|
||||||
classes,
|
classes,
|
||||||
jdd_context: { render_markdown, render_image, language, ctx },
|
jdd_context: { render_markdown, language, ctx },
|
||||||
}: ComponentToHTMLArgs<typeof component_arguments>): Promise<string> {
|
}: ComponentToHTMLArgs<typeof component_arguments>): Promise<string> {
|
||||||
classes.push(`items-list--mode-${mode}`);
|
classes.push(`items-list--mode-${mode}`);
|
||||||
const collections = ctx.$app.collections;
|
const collections = ctx.$app.collections;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import type { BaseContext } from "koa";
|
import type { BaseContext } from "koa";
|
||||||
import type { FlatTemplatable } from "tempstream";
|
import type { FlatTemplatable } from "tempstream";
|
||||||
import { SignInURL, LogoutURL, PagesCRUDListURL } from "../urls.js";
|
|
||||||
|
|
||||||
export async function default_navbar(ctx: BaseContext): Promise<FlatTemplatable> {
|
export async function default_navbar(ctx: BaseContext): Promise<FlatTemplatable> {
|
||||||
const { items: navbar_items } = await ctx.$app.collections["navbar-links"]
|
const { items: navbar_items } = await ctx.$app.collections["navbar-links"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user