Move handlers to separate folder
This commit is contained in:
parent
518997ed8b
commit
69932a28f7
5 changed files with 15 additions and 15 deletions
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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[]>([]);
|
|
@ -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;
|
|
@ -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 = {
|
Reference in a new issue