Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix README anchor link to: #get-started-locally #691

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make deno task ok not fail
  • Loading branch information
davis9001 committed Jan 25, 2025
commit 9a8bc05a056efb993271d40e38f715f6a2b584c7
2 changes: 1 addition & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { SITE_NAME } from "@/utils/constants.ts";
import IconBrandDiscord from "tabler_icons_tsx/brand-discord.tsx";
import IconBrandGithub from "tabler_icons_tsx/brand-github.tsx";
2 changes: 1 addition & 1 deletion components/GitHubAvatarImg.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
export interface GitHubAvatarImgProps {
/** The GitHub user's username */
login: string;
2 changes: 1 addition & 1 deletion components/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { Head as _Head } from "$fresh/runtime.ts";
import Meta, { type MetaProps } from "./Meta.tsx";
import { SITE_DESCRIPTION, SITE_NAME } from "@/utils/constants.ts";
2 changes: 1 addition & 1 deletion components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { SITE_NAME } from "@/utils/constants.ts";
import { isStripeEnabled } from "@/utils/stripe.ts";
import IconX from "tabler_icons_tsx/x.tsx";
2 changes: 1 addition & 1 deletion components/Meta.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
export interface MetaProps {
/** Title of the current page */
title: string;
2 changes: 1 addition & 1 deletion components/PremiumBadge.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
interface PremiumBadgeProps {
class?: string;
}
2 changes: 1 addition & 1 deletion components/TabsBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { ComponentChildren } from "preact";

export interface TabItemProps {
2 changes: 1 addition & 1 deletion dev.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env -S deno run -A --watch=static/,routes/
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.

import dev from "$fresh/dev.ts";
import config from "./fresh.config.ts";
2 changes: 1 addition & 1 deletion e2e_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.

import { createHandler } from "$fresh/server.ts";
import manifest from "@/fresh.gen.ts";
2 changes: 1 addition & 1 deletion fresh.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import tailwind from "$fresh/plugins/tailwind.ts";
import kvOAuthPlugin from "./plugins/kv_oauth.ts";
import sessionPlugin from "./plugins/session.ts";
2 changes: 1 addition & 1 deletion islands/Chart.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
export { Chart as default } from "fresh_charts/island.tsx";
2 changes: 1 addition & 1 deletion islands/ItemsList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { Signal, useComputed, useSignal } from "@preact/signals";
import { useEffect } from "preact/hooks";
import { type Item } from "@/utils/db.ts";
2 changes: 1 addition & 1 deletion islands/UsersTable.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { useSignal } from "@preact/signals";
import { useEffect } from "preact/hooks";
import type { User } from "@/utils/db.ts";
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
2 changes: 1 addition & 1 deletion plugins/blog/components/Share.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import IconBrandFacebook from "tabler_icons_tsx/brand-facebook.tsx";
import IconBrandLinkedin from "tabler_icons_tsx/brand-linkedin.tsx";
import IconBrandReddit from "tabler_icons_tsx/brand-reddit.tsx";
2 changes: 1 addition & 1 deletion plugins/blog/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Plugin } from "$fresh/server.ts";
import BlogIndex from "./routes/blog/index.tsx";
import BlogSlug from "./routes/blog/[slug].tsx";
2 changes: 1 addition & 1 deletion plugins/blog/routes/blog/[slug].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { defineRoute } from "$fresh/server.ts";
import { CSS, render } from "jsr:@deno/gfm";
import { getPost } from "../../utils/posts.ts";
2 changes: 1 addition & 1 deletion plugins/blog/routes/blog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { defineRoute } from "$fresh/server.ts";
import { getPosts, type Post } from "../../utils/posts.ts";
import Head from "@/components/Head.tsx";
2 changes: 1 addition & 1 deletion plugins/blog/routes/feed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { Feed } from "npm:feed@4.2.2";
import { getPosts } from "../utils/posts.ts";
import { SITE_NAME } from "@/utils/constants.ts";
2 changes: 1 addition & 1 deletion plugins/blog/utils/posts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { extract } from "$std/front_matter/yaml.ts";
import { join } from "$std/path/join.ts";

2 changes: 1 addition & 1 deletion plugins/blog/utils/posts_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { getPost, getPosts } from "./posts.ts";

import { assert, assertEquals } from "$std/assert/mod.ts";
2 changes: 1 addition & 1 deletion plugins/error_handling.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Plugin } from "$fresh/server.ts";
import type { State } from "@/plugins/session.ts";
import { BadRequestError, redirect, UnauthorizedError } from "@/utils/http.ts";
2 changes: 1 addition & 1 deletion plugins/kv_oauth.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Plugin } from "$fresh/server.ts";
import {
createGitHubOAuthConfig,
2 changes: 1 addition & 1 deletion plugins/security_headers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Plugin } from "$fresh/server.ts";

export default {
2 changes: 1 addition & 1 deletion plugins/session.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { Plugin } from "$fresh/server.ts";
import type { FreshContext } from "$fresh/server.ts";
import { getSessionId } from "kv_oauth/mod.ts";
2 changes: 1 addition & 1 deletion plugins/welcome.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Plugin } from "$fresh/server.ts";
import { isGitHubSetup } from "@/utils/github.ts";
import { redirect } from "@/utils/http.ts";
2 changes: 1 addition & 1 deletion routes/_404.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.

export default function NotFoundPage() {
return (
2 changes: 1 addition & 1 deletion routes/_500.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { PageProps } from "$fresh/server.ts";

export default function Error500Page(props: PageProps) {
2 changes: 1 addition & 1 deletion routes/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import Header from "@/components/Header.tsx";
import Footer from "@/components/Footer.tsx";
import type { State } from "@/plugins/session.ts";
2 changes: 1 addition & 1 deletion routes/account/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { defineRoute } from "$fresh/server.ts";
import type { SignedInState } from "@/plugins/session.ts";
import { isStripeEnabled } from "@/utils/stripe.ts";
2 changes: 1 addition & 1 deletion routes/account/manage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { defineRoute } from "$fresh/server.ts";
import type { SignedInState } from "@/plugins/session.ts";
import { redirect } from "@/utils/http.ts";
2 changes: 1 addition & 1 deletion routes/account/upgrade.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { defineRoute } from "$fresh/server.ts";
import type { SignedInState } from "@/plugins/session.ts";
import { redirect } from "@/utils/http.ts";
2 changes: 1 addition & 1 deletion routes/api/items/[id].ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Handlers } from "$fresh/server.ts";
import { getItem } from "@/utils/db.ts";

2 changes: 1 addition & 1 deletion routes/api/items/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.

import { collectValues, listItems } from "@/utils/db.ts";
import { getCursor } from "@/utils/http.ts";
2 changes: 1 addition & 1 deletion routes/api/me/votes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Handlers } from "$fresh/server.ts";
import { collectValues, listItemsVotedByUser } from "@/utils/db.ts";
import { SignedInState } from "@/plugins/session.ts";
2 changes: 1 addition & 1 deletion routes/api/stripe-webhooks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { type Handlers } from "$fresh/server.ts";
import { STATUS_CODE } from "$std/http/status.ts";
import { isStripeEnabled, stripe } from "@/utils/stripe.ts";
2 changes: 1 addition & 1 deletion routes/api/users/[login]/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Handlers } from "$fresh/server.ts";
import { getUser } from "@/utils/db.ts";

2 changes: 1 addition & 1 deletion routes/api/users/[login]/items.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Handlers } from "$fresh/server.ts";
import { collectValues, getUser, listItemsByUser } from "@/utils/db.ts";
import { getCursor } from "@/utils/http.ts";
2 changes: 1 addition & 1 deletion routes/api/users/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { Handlers } from "$fresh/server.ts";
import { collectValues, listUsers } from "@/utils/db.ts";
import { getCursor } from "@/utils/http.ts";
2 changes: 1 addition & 1 deletion routes/api/vote.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { type Handlers } from "$fresh/server.ts";
import { STATUS_CODE } from "$std/http/status.ts";
import type { SignedInState } from "@/plugins/session.ts";
2 changes: 1 addition & 1 deletion routes/dashboard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { redirect } from "@/utils/http.ts";
import { Handlers } from "$fresh/server.ts";

2 changes: 1 addition & 1 deletion routes/dashboard/stats.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import Chart from "@/islands/Chart.tsx";
import Head from "@/components/Head.tsx";
import TabsBar from "@/components/TabsBar.tsx";
2 changes: 1 addition & 1 deletion routes/dashboard/users.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import Head from "@/components/Head.tsx";
import TabsBar from "@/components/TabsBar.tsx";
import UsersTable from "@/islands/UsersTable.tsx";
2 changes: 1 addition & 1 deletion routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { State } from "@/plugins/session.ts";
import Head from "@/components/Head.tsx";
import ItemsList from "@/islands/ItemsList.tsx";
2 changes: 1 addition & 1 deletion routes/pricing.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { State } from "@/plugins/session.ts";
import { assertIsPrice, isStripeEnabled, stripe } from "@/utils/stripe.ts";
import { formatCurrency } from "@/utils/display.ts";
2 changes: 1 addition & 1 deletion routes/submit.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import Head from "@/components/Head.tsx";
import IconCheckCircle from "tabler_icons_tsx/circle-check.tsx";
import IconCircleX from "tabler_icons_tsx/circle-x.tsx";
2 changes: 1 addition & 1 deletion routes/users/[login].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type { State } from "@/plugins/session.ts";
import { getUser } from "@/utils/db.ts";
import IconBrandGithub from "tabler_icons_tsx/brand-github.tsx";
2 changes: 1 addition & 1 deletion routes/welcome.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { defineRoute } from "$fresh/src/server/defines.ts";
import Head from "@/components/Head.tsx";
import { isGitHubSetup } from "@/utils/github.ts";
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { type Config } from "tailwindcss";

export default {
2 changes: 1 addition & 1 deletion tasks/check_license.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
// Copied from std/_tools/check_license.ts

import { walk } from "$std/fs/walk.ts";
2 changes: 1 addition & 1 deletion tasks/db_dump.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
/**
* This script prints all entries in the KV database formatted as JSON. This
* can be used to create a backup file.
2 changes: 1 addition & 1 deletion tasks/db_migrate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
/**
* This script is used to perform migration jobs on the database. These jobs
* can be performed on remote KV instances using
2 changes: 1 addition & 1 deletion tasks/db_reset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { kv } from "@/utils/db.ts";

if (!confirm("WARNING: The database will be reset. Continue?")) Deno.exit();
2 changes: 1 addition & 1 deletion tasks/db_restore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
/**
* This script is used to restore a KV database by a file generated by the dump
* script.
2 changes: 1 addition & 1 deletion tasks/db_seed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
// Description: Seeds the kv db with Hacker News stories
import { createItem, createUser } from "@/utils/db.ts";
import { ulid } from "$std/ulid/mod.ts";
2 changes: 1 addition & 1 deletion tasks/init_stripe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import type Stripe from "stripe";
import { SITE_DESCRIPTION } from "@/utils/constants.ts";
import { isStripeEnabled, stripe } from "@/utils/stripe.ts";
2 changes: 1 addition & 1 deletion utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
export const SITE_NAME = "Deno Hunt (Beta)";
export const SITE_DESCRIPTION = "Discover new Deno projects. Share your own.";
2 changes: 1 addition & 1 deletion utils/db.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.

/// <reference lib="deno.unstable" />

2 changes: 1 addition & 1 deletion utils/db_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertRejects } from "$std/assert/mod.ts";
import { ulid } from "$std/ulid/mod.ts";
import {
2 changes: 1 addition & 1 deletion utils/display.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { difference } from "$std/datetime/difference.ts";

/**
2 changes: 1 addition & 1 deletion utils/display_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { formatCurrency, pluralize, timeAgo } from "./display.ts";
import { DAY, HOUR, MINUTE, SECOND } from "$std/datetime/constants.ts";
import { assertEquals, assertThrows } from "$std/assert/mod.ts";
2 changes: 1 addition & 1 deletion utils/github.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { createGitHubOAuthConfig } from "kv_oauth/mod.ts";
import { BadRequestError } from "@/utils/http.ts";

2 changes: 1 addition & 1 deletion utils/github_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { assertRejects } from "$std/assert/assert_rejects.ts";
import { getGitHubUser } from "./github.ts";
import { returnsNext, stub } from "$std/testing/mock.ts";
2 changes: 1 addition & 1 deletion utils/http.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { RedirectStatus, STATUS_CODE } from "$std/http/status.ts";

/**
2 changes: 1 addition & 1 deletion utils/http_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { returnsNext, stub } from "$std/testing/mock.ts";
import { fetchValues, getCursor, redirect } from "./http.ts";
import { assert, assertEquals, assertRejects } from "$std/assert/mod.ts";
2 changes: 1 addition & 1 deletion utils/stripe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import Stripe from "stripe";
import { AssertionError } from "$std/assert/assertion_error.ts";

2 changes: 1 addition & 1 deletion utils/stripe_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { AssertionError, assertThrows } from "$std/assert/mod.ts";
import { assertIsPrice } from "./stripe.ts";