diff --git a/README.md b/README.md index 7ebd12b72..c8c0e8e91 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ file. If you'd like to change the filename, also be sure to change the ## Deploy to Production This section assumes that a -[local development environment](#getting-started-locally) is already set up. +[local development environment](#get-started-locally) is already set up. 1. Navigate to your [GitHub OAuth application settings page](https://github.com/settings/developers). diff --git a/components/Footer.tsx b/components/Footer.tsx index 9e30e86c2..ecc559c2f 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -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"; diff --git a/components/GitHubAvatarImg.tsx b/components/GitHubAvatarImg.tsx index 76723eae0..f189c2577 100644 --- a/components/GitHubAvatarImg.tsx +++ b/components/GitHubAvatarImg.tsx @@ -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; diff --git a/components/Head.tsx b/components/Head.tsx index b624b096d..82e5db8cb 100644 --- a/components/Head.tsx +++ b/components/Head.tsx @@ -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"; diff --git a/components/Header.tsx b/components/Header.tsx index 37482a0e5..736ea16df 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -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"; diff --git a/components/Meta.tsx b/components/Meta.tsx index f5328aba7..1cf6d3cb6 100644 --- a/components/Meta.tsx +++ b/components/Meta.tsx @@ -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; diff --git a/components/PremiumBadge.tsx b/components/PremiumBadge.tsx index eba0ebb2e..60433e1ee 100644 --- a/components/PremiumBadge.tsx +++ b/components/PremiumBadge.tsx @@ -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; } diff --git a/components/TabsBar.tsx b/components/TabsBar.tsx index b5989dc5a..cb3dcab0c 100644 --- a/components/TabsBar.tsx +++ b/components/TabsBar.tsx @@ -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 { diff --git a/dev.ts b/dev.ts index 448693350..e26b5373d 100755 --- a/dev.ts +++ b/dev.ts @@ -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"; diff --git a/e2e_test.ts b/e2e_test.ts index 445d69dc4..27a0d37ca 100644 --- a/e2e_test.ts +++ b/e2e_test.ts @@ -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"; diff --git a/fresh.config.ts b/fresh.config.ts index 922ba6837..95cd5313c 100644 --- a/fresh.config.ts +++ b/fresh.config.ts @@ -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"; diff --git a/islands/Chart.tsx b/islands/Chart.tsx index 009b584be..a7638b3cb 100644 --- a/islands/Chart.tsx +++ b/islands/Chart.tsx @@ -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"; diff --git a/islands/ItemsList.tsx b/islands/ItemsList.tsx index dd26cf781..dfe4add6c 100644 --- a/islands/ItemsList.tsx +++ b/islands/ItemsList.tsx @@ -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"; diff --git a/islands/UsersTable.tsx b/islands/UsersTable.tsx index 7587fed7b..6063c93f0 100644 --- a/islands/UsersTable.tsx +++ b/islands/UsersTable.tsx @@ -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"; diff --git a/main.ts b/main.ts index a233b587c..c00f23543 100644 --- a/main.ts +++ b/main.ts @@ -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. /// /// /// diff --git a/plugins/blog/components/Share.tsx b/plugins/blog/components/Share.tsx index c1731d12e..ecf8f927d 100644 --- a/plugins/blog/components/Share.tsx +++ b/plugins/blog/components/Share.tsx @@ -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"; diff --git a/plugins/blog/mod.ts b/plugins/blog/mod.ts index c2f27cb66..136cb769f 100644 --- a/plugins/blog/mod.ts +++ b/plugins/blog/mod.ts @@ -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"; diff --git a/plugins/blog/routes/blog/[slug].tsx b/plugins/blog/routes/blog/[slug].tsx index 5862eb475..7291a56b2 100644 --- a/plugins/blog/routes/blog/[slug].tsx +++ b/plugins/blog/routes/blog/[slug].tsx @@ -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"; diff --git a/plugins/blog/routes/blog/index.tsx b/plugins/blog/routes/blog/index.tsx index 9bb1f3da1..e9bf22f93 100644 --- a/plugins/blog/routes/blog/index.tsx +++ b/plugins/blog/routes/blog/index.tsx @@ -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"; diff --git a/plugins/blog/routes/feed.ts b/plugins/blog/routes/feed.ts index 6647ff09b..bf59369c9 100644 --- a/plugins/blog/routes/feed.ts +++ b/plugins/blog/routes/feed.ts @@ -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"; diff --git a/plugins/blog/utils/posts.ts b/plugins/blog/utils/posts.ts index 002116488..01e5203b1 100644 --- a/plugins/blog/utils/posts.ts +++ b/plugins/blog/utils/posts.ts @@ -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"; diff --git a/plugins/blog/utils/posts_test.ts b/plugins/blog/utils/posts_test.ts index 6d207ee5e..dda3521aa 100644 --- a/plugins/blog/utils/posts_test.ts +++ b/plugins/blog/utils/posts_test.ts @@ -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"; diff --git a/plugins/error_handling.ts b/plugins/error_handling.ts index 9a2b1524c..c9808d78a 100644 --- a/plugins/error_handling.ts +++ b/plugins/error_handling.ts @@ -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"; diff --git a/plugins/kv_oauth.ts b/plugins/kv_oauth.ts index 8a741f292..2ea41ed44 100644 --- a/plugins/kv_oauth.ts +++ b/plugins/kv_oauth.ts @@ -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, diff --git a/plugins/security_headers.ts b/plugins/security_headers.ts index 6c2537c0e..7953f5a7a 100644 --- a/plugins/security_headers.ts +++ b/plugins/security_headers.ts @@ -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 { diff --git a/plugins/session.ts b/plugins/session.ts index cc12fd7fa..0b822efe0 100644 --- a/plugins/session.ts +++ b/plugins/session.ts @@ -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"; diff --git a/plugins/welcome.ts b/plugins/welcome.ts index dc39f9402..22e66cc1c 100644 --- a/plugins/welcome.ts +++ b/plugins/welcome.ts @@ -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"; diff --git a/routes/_404.tsx b/routes/_404.tsx index b3a52a802..559f2e54c 100644 --- a/routes/_404.tsx +++ b/routes/_404.tsx @@ -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 ( diff --git a/routes/_500.tsx b/routes/_500.tsx index 36faad5c5..5d23bd9fd 100644 --- a/routes/_500.tsx +++ b/routes/_500.tsx @@ -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) { diff --git a/routes/_app.tsx b/routes/_app.tsx index f8621d6b1..f88d00566 100644 --- a/routes/_app.tsx +++ b/routes/_app.tsx @@ -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"; diff --git a/routes/account/index.tsx b/routes/account/index.tsx index e24ad67cc..516f075f4 100644 --- a/routes/account/index.tsx +++ b/routes/account/index.tsx @@ -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"; diff --git a/routes/account/manage.ts b/routes/account/manage.ts index 1cdc28490..9bd2bba2e 100644 --- a/routes/account/manage.ts +++ b/routes/account/manage.ts @@ -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"; diff --git a/routes/account/upgrade.ts b/routes/account/upgrade.ts index defdb7957..82e5302f8 100644 --- a/routes/account/upgrade.ts +++ b/routes/account/upgrade.ts @@ -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"; diff --git a/routes/api/items/[id].ts b/routes/api/items/[id].ts index 497ad8549..93ab6c39e 100644 --- a/routes/api/items/[id].ts +++ b/routes/api/items/[id].ts @@ -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"; diff --git a/routes/api/items/index.ts b/routes/api/items/index.ts index 4eb4418c6..75fb02c0d 100644 --- a/routes/api/items/index.ts +++ b/routes/api/items/index.ts @@ -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"; diff --git a/routes/api/me/votes.ts b/routes/api/me/votes.ts index e2566eda5..efbef7117 100644 --- a/routes/api/me/votes.ts +++ b/routes/api/me/votes.ts @@ -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"; diff --git a/routes/api/stripe-webhooks.ts b/routes/api/stripe-webhooks.ts index d915bf70f..227f368f5 100644 --- a/routes/api/stripe-webhooks.ts +++ b/routes/api/stripe-webhooks.ts @@ -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"; diff --git a/routes/api/users/[login]/index.ts b/routes/api/users/[login]/index.ts index 10fcb51be..aef2e64b9 100644 --- a/routes/api/users/[login]/index.ts +++ b/routes/api/users/[login]/index.ts @@ -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"; diff --git a/routes/api/users/[login]/items.ts b/routes/api/users/[login]/items.ts index 99cd23aa6..bf1fb7644 100644 --- a/routes/api/users/[login]/items.ts +++ b/routes/api/users/[login]/items.ts @@ -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"; diff --git a/routes/api/users/index.ts b/routes/api/users/index.ts index 13e2caea0..9f6dfc64b 100644 --- a/routes/api/users/index.ts +++ b/routes/api/users/index.ts @@ -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"; diff --git a/routes/api/vote.ts b/routes/api/vote.ts index 698a016f1..fd19d3f4a 100644 --- a/routes/api/vote.ts +++ b/routes/api/vote.ts @@ -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"; diff --git a/routes/dashboard/index.tsx b/routes/dashboard/index.tsx index 075e48e12..0e130b7b6 100644 --- a/routes/dashboard/index.tsx +++ b/routes/dashboard/index.tsx @@ -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"; diff --git a/routes/dashboard/stats.tsx b/routes/dashboard/stats.tsx index d70fa6a0e..c8708ec0d 100644 --- a/routes/dashboard/stats.tsx +++ b/routes/dashboard/stats.tsx @@ -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"; diff --git a/routes/dashboard/users.tsx b/routes/dashboard/users.tsx index 0d98fbd53..9bb204273 100644 --- a/routes/dashboard/users.tsx +++ b/routes/dashboard/users.tsx @@ -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"; diff --git a/routes/index.tsx b/routes/index.tsx index 70ca1d978..e8eb742c1 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -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"; diff --git a/routes/pricing.tsx b/routes/pricing.tsx index 75af0dde2..9a9031df1 100644 --- a/routes/pricing.tsx +++ b/routes/pricing.tsx @@ -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"; diff --git a/routes/submit.tsx b/routes/submit.tsx index 83722afd2..d003612f3 100644 --- a/routes/submit.tsx +++ b/routes/submit.tsx @@ -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"; diff --git a/routes/users/[login].tsx b/routes/users/[login].tsx index 16809a381..97c8f3ca2 100644 --- a/routes/users/[login].tsx +++ b/routes/users/[login].tsx @@ -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"; diff --git a/routes/welcome.tsx b/routes/welcome.tsx index aaefd0780..ca9509c89 100644 --- a/routes/welcome.tsx +++ b/routes/welcome.tsx @@ -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"; diff --git a/tailwind.config.ts b/tailwind.config.ts index ed62e854b..b044b070b 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -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 { diff --git a/tasks/check_license.ts b/tasks/check_license.ts index 5eb26b023..391ee2aed 100644 --- a/tasks/check_license.ts +++ b/tasks/check_license.ts @@ -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"; diff --git a/tasks/db_dump.ts b/tasks/db_dump.ts index 4c8b0ac1c..f59c66680 100644 --- a/tasks/db_dump.ts +++ b/tasks/db_dump.ts @@ -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. diff --git a/tasks/db_migrate.ts b/tasks/db_migrate.ts index aebe605df..b81a04766 100644 --- a/tasks/db_migrate.ts +++ b/tasks/db_migrate.ts @@ -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 diff --git a/tasks/db_reset.ts b/tasks/db_reset.ts index cc4963bd7..fb72fef40 100644 --- a/tasks/db_reset.ts +++ b/tasks/db_reset.ts @@ -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(); diff --git a/tasks/db_restore.ts b/tasks/db_restore.ts index 5ad297d77..1dbf67290 100644 --- a/tasks/db_restore.ts +++ b/tasks/db_restore.ts @@ -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. diff --git a/tasks/db_seed.ts b/tasks/db_seed.ts index 95395c51c..be148ca6b 100644 --- a/tasks/db_seed.ts +++ b/tasks/db_seed.ts @@ -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"; diff --git a/tasks/init_stripe.ts b/tasks/init_stripe.ts index f99838697..38f658f01 100644 --- a/tasks/init_stripe.ts +++ b/tasks/init_stripe.ts @@ -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"; diff --git a/utils/constants.ts b/utils/constants.ts index 08dc80ea0..de1faff5a 100644 --- a/utils/constants.ts +++ b/utils/constants.ts @@ -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."; diff --git a/utils/db.ts b/utils/db.ts index 4012be565..0e56dbd6a 100644 --- a/utils/db.ts +++ b/utils/db.ts @@ -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. /// diff --git a/utils/db_test.ts b/utils/db_test.ts index 7de65ef08..19b66ef18 100644 --- a/utils/db_test.ts +++ b/utils/db_test.ts @@ -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 { diff --git a/utils/display.ts b/utils/display.ts index 6139d481a..b57b273ab 100644 --- a/utils/display.ts +++ b/utils/display.ts @@ -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"; /** diff --git a/utils/display_test.ts b/utils/display_test.ts index 7d7842090..4afb1ec0e 100644 --- a/utils/display_test.ts +++ b/utils/display_test.ts @@ -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"; diff --git a/utils/github.ts b/utils/github.ts index 6b7f1ff15..2a67e5fc1 100644 --- a/utils/github.ts +++ b/utils/github.ts @@ -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"; diff --git a/utils/github_test.ts b/utils/github_test.ts index 5dcfe2bf4..0b2b9bfaf 100644 --- a/utils/github_test.ts +++ b/utils/github_test.ts @@ -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"; diff --git a/utils/http.ts b/utils/http.ts index 084fb5aad..92cef23f1 100644 --- a/utils/http.ts +++ b/utils/http.ts @@ -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"; /** diff --git a/utils/http_test.ts b/utils/http_test.ts index 621f64516..9eb6c9e07 100644 --- a/utils/http_test.ts +++ b/utils/http_test.ts @@ -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"; diff --git a/utils/stripe.ts b/utils/stripe.ts index f63033eeb..ffa489fbd 100644 --- a/utils/stripe.ts +++ b/utils/stripe.ts @@ -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"; diff --git a/utils/stripe_test.ts b/utils/stripe_test.ts index 22174b59f..69a723d53 100644 --- a/utils/stripe_test.ts +++ b/utils/stripe_test.ts @@ -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";