mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Move menu to islands
This commit is contained in:
@@ -5,13 +5,16 @@
|
||||
import config from "./deno.json" assert { type: "json" };
|
||||
import * as $0 from "./routes/api/task/list.ts";
|
||||
import * as $1 from "./routes/index.tsx";
|
||||
import * as $$0 from "./islands/Menu.tsx";
|
||||
|
||||
const manifest = {
|
||||
routes: {
|
||||
"./routes/api/task/list.ts": $0,
|
||||
"./routes/index.tsx": $1,
|
||||
},
|
||||
islands: {},
|
||||
islands: {
|
||||
"./islands/Menu.tsx": $$0,
|
||||
},
|
||||
baseUrl: import.meta.url,
|
||||
config,
|
||||
};
|
||||
|
||||
@@ -2,8 +2,8 @@ import { Head } from "$fresh/runtime.ts";
|
||||
import { Component } from "preact";
|
||||
import { ContextType } from "preact";
|
||||
import TopAppBar from "preact-material-components/TopAppBar";
|
||||
import StyleSheet from "./StyleSheet.tsx";
|
||||
import { GlobalCtx } from "./GlobalContext.tsx";
|
||||
import StyleSheet from "../components/StyleSheet.tsx";
|
||||
import { GlobalCtx } from "../components/GlobalContext.tsx";
|
||||
|
||||
export default class Menu extends Component {
|
||||
static contextType = GlobalCtx;
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Head } from "$fresh/runtime.ts";
|
||||
import GlobalContext from "../components/GlobalContext.tsx";
|
||||
import Menu from "../components/Menu.tsx";
|
||||
import StyleSheet from "../components/StyleSheet.tsx";
|
||||
import Menu from "../islands/Menu.tsx";
|
||||
|
||||
export default function Index() {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user