Move handlers to separate folder

This commit is contained in:
Tobias Berger 2021-11-02 13:28:35 +01:00
parent 518997ed8b
commit 69932a28f7
5 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import type { TabHandler } from "../shark/TabHandler"; import type { TabHandler } from "../shark/handlers/TabHandler";
export let tabs: typeof TabHandler.AllTabs; export let tabs: typeof TabHandler.AllTabs;
export let selectedTab: typeof TabHandler.currentTab; export let selectedTab: typeof TabHandler.currentTab;

View file

@ -1,9 +1,9 @@
import { Resources } from "./data/Resources"; import { Resources } from "./data/Resources";
import { MessageHandler } from "./MessageHandler"; import { MessageHandler } from "./handlers/MessageHandler";
import { SaveHandler } from "./SaveHandler"; import { SaveHandler } from "./handlers/SaveHandler";
import { Settings } from "./Settings"; import { Settings } from "./Settings";
import { StaticClass } from "./StaticClass"; import { StaticClass } from "./StaticClass";
import { TabHandler } from "./TabHandler"; import { TabHandler } from "./handlers/TabHandler";
import { HomeActions } from "./data/HomeActions"; import { HomeActions } from "./data/HomeActions";

View file

@ -1,8 +1,8 @@
import { writable } from "svelte/store"; import { writable } from "svelte/store";
import { Message, MessageType } from "./Message"; import { Message, MessageType } from "../Message";
import { Settings } from "./Settings"; import { Settings } from "../Settings";
import { StaticClass } from "./StaticClass"; import { StaticClass } from "../StaticClass";
export class MessageHandler extends StaticClass { export class MessageHandler extends StaticClass {
static messages = writable<Message[]>([]); static messages = writable<Message[]>([]);

View file

@ -1,9 +1,9 @@
import type { Message, MessageType } from "./Message"; import type { Message, MessageType } from "../Message";
import type { SharkGame } from "./SharkGame"; import type { SharkGame } from "../SharkGame";
import { StaticClass } from "./StaticClass"; import { StaticClass } from "../StaticClass";
import type { TabHandler } from "./TabHandler"; import type { TabHandler } from "./TabHandler";
import { LZString } from "./LZString"; import { LZString } from "../LZString";
import { Settings } from "./Settings"; import { Settings } from "../Settings";
const __EMPTY_OBJECT = {}; const __EMPTY_OBJECT = {};
type Version0Save = typeof __EMPTY_OBJECT; type Version0Save = typeof __EMPTY_OBJECT;

View file

@ -1,6 +1,6 @@
import Home from "../components/Tabs/Home.svelte"; import { StaticClass } from "../StaticClass";
import Lab from "../components/Tabs/Lab.svelte"; import Home from "../../components/Tabs/Home.svelte";
import { StaticClass } from "./StaticClass"; import Lab from "../../components/Tabs/Lab.svelte";
export class TabHandler extends StaticClass { export class TabHandler extends StaticClass {
static readonly AllTabs = { static readonly AllTabs = {