From 139b1590ce6d48ca7958c25316650d116a7b7973 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Wed, 29 Apr 2026 13:40:40 +0200 Subject: [PATCH] :zap: Uses original router - it has benefits to use hash properly --- bs/hooks-npm/postinstall | 12 ------------ src/app-episodes/routes.ts | 2 +- src/index.ts | 2 +- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100755 bs/hooks-npm/postinstall diff --git a/bs/hooks-npm/postinstall b/bs/hooks-npm/postinstall deleted file mode 100755 index 2253154..0000000 --- a/bs/hooks-npm/postinstall +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/env bash -set -eo pipefail # this can be harmful, see https://www.youtube.com/watch?v=4Jo3Ml53kvc -. bs/.common || { - echo 'Please run this script from the project root directory' >&2; - exit 1; -} -declare -r tmp=/tmp/lit-router-extended -declare -r pkg=./node_modules/@lit-labs/router - -git clone git@github.com:klauss194/lit-router-extended.git --depth 1 "$tmp" -cp "$tmp"/* "$pkg" -rm -rf "$tmp" diff --git a/src/app-episodes/routes.ts b/src/app-episodes/routes.ts index dfd3367..a0cd12f 100644 --- a/src/app-episodes/routes.ts +++ b/src/app-episodes/routes.ts @@ -2,7 +2,7 @@ import type { RouteConfig } from "@lit-labs/router"; import { html } from "lit"; export const route = { - path: "/#/episodes", + path: "/episodes" as const, async enter() { await import("./index.js"); return true; diff --git a/src/index.ts b/src/index.ts index fe13061..a625ec3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ export class AppCfpodcasts extends LitElement {
${this._routes.outlet()}
`; }