Changed path aliasing
This commit is contained in:
parent
909d370f13
commit
49474b1518
76 changed files with 336 additions and 341 deletions
|
@ -17,9 +17,9 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import projInfo from "@/data/projInfo.json";
|
||||
import { GenericLayer, layers } from "@/game/layers";
|
||||
import player from "@/game/player";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import { GenericLayer, layers } from "game/layers";
|
||||
import player from "game/player";
|
||||
import { computed, toRef } from "vue";
|
||||
import Layer from "./Layer.vue";
|
||||
import Nav from "./Nav.vue";
|
||||
|
|
|
@ -37,12 +37,12 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Modal from "@/components/Modal.vue";
|
||||
import { hasWon } from "@/data/projEntry";
|
||||
import projInfo from "@/data/projInfo.json";
|
||||
import player from "@/game/player";
|
||||
import { formatTime } from "@/util/bignum";
|
||||
import { loadSave, newSave } from "@/util/save";
|
||||
import Modal from "components/Modal.vue";
|
||||
import { hasWon } from "data/projEntry";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import player from "game/player";
|
||||
import { formatTime } from "util/bignum";
|
||||
import { loadSave, newSave } from "util/save";
|
||||
import { computed, toRef } from "vue";
|
||||
import Toggle from "./fields/Toggle.vue";
|
||||
|
||||
|
|
|
@ -50,11 +50,11 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Modal from "@/components/Modal.vue";
|
||||
import type Changelog from "@/data/Changelog.vue";
|
||||
import projInfo from "@/data/projInfo.json";
|
||||
import player from "@/game/player";
|
||||
import { formatTime } from "@/util/bignum";
|
||||
import Modal from "components/Modal.vue";
|
||||
import type Changelog from "data/Changelog.vue";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import player from "game/player";
|
||||
import { formatTime } from "util/bignum";
|
||||
import { computed, ref, toRefs, unref } from "vue";
|
||||
|
||||
const { title, logo, author, discordName, discordLink, versionNumber, versionTitle } = projInfo;
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Links from "@/components/links/Links.vue";
|
||||
import projInfo from "@/data/projInfo.json";
|
||||
import { CoercableComponent, StyleValue } from "@/features/feature";
|
||||
import { Link } from "@/features/links";
|
||||
import { PersistentRef } from "@/game/persistence";
|
||||
import player from "@/game/player";
|
||||
import { computeComponent, processedPropType, wrapRef } from "@/util/vue";
|
||||
import Links from "components/links/Links.vue";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import { CoercableComponent, StyleValue } from "features/feature";
|
||||
import { Link } from "features/links";
|
||||
import { PersistentRef } from "game/persistence";
|
||||
import player from "game/player";
|
||||
import { computeComponent, processedPropType, wrapRef } from "util/vue";
|
||||
import { computed, defineComponent, nextTick, PropType, toRefs, unref, watch } from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Link } from "@/features/links";
|
||||
import { Link } from "features/links";
|
||||
import { computed, ref, toRefs } from "vue";
|
||||
import Links from "./links/Links.vue";
|
||||
|
||||
|
|
|
@ -43,11 +43,11 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Modal from "@/components/Modal.vue";
|
||||
import projInfo from "@/data/projInfo.json";
|
||||
import player from "@/game/player";
|
||||
import state from "@/game/state";
|
||||
import Decimal, { DecimalSource, format } from "@/util/bignum";
|
||||
import Modal from "components/Modal.vue";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import player from "game/player";
|
||||
import state from "game/state";
|
||||
import Decimal, { DecimalSource, format } from "util/bignum";
|
||||
import { ComponentPublicInstance, computed, ref, toRef } from "vue";
|
||||
import Toggle from "./fields/Toggle.vue";
|
||||
import SavesManager from "./SavesManager.vue";
|
||||
|
|
|
@ -99,8 +99,8 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Changelog from "@/data/Changelog.vue";
|
||||
import projInfo from "@/data/projInfo.json";
|
||||
import Changelog from "data/Changelog.vue";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import { ComponentPublicInstance, ref } from "vue";
|
||||
import Info from "./Info.vue";
|
||||
import Options from "./Options.vue";
|
||||
|
|
|
@ -19,17 +19,17 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="tsx">
|
||||
import Modal from "@/components/Modal.vue";
|
||||
import rawThemes from "@/data/themes";
|
||||
import player from "@/game/player";
|
||||
import settings, { settingFields } from "@/game/settings";
|
||||
import { camelToTitle } from "@/util/common";
|
||||
import Modal from "components/Modal.vue";
|
||||
import rawThemes from "data/themes";
|
||||
import player from "game/player";
|
||||
import settings, { settingFields } from "game/settings";
|
||||
import { camelToTitle } from "util/common";
|
||||
import { computed, ref, toRefs } from "vue";
|
||||
import Toggle from "./fields/Toggle.vue";
|
||||
import Select from "./fields/Select.vue";
|
||||
import Tooltip from "./Tooltip.vue";
|
||||
import { jsx } from "@/features/feature";
|
||||
import { coerceComponent, render } from "@/util/vue";
|
||||
import { jsx } from "features/feature";
|
||||
import { coerceComponent, render } from "util/vue";
|
||||
|
||||
const isOpen = ref(false);
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import player from "@/game/player";
|
||||
import player from "game/player";
|
||||
import { computed, ref, toRefs, watch } from "vue";
|
||||
import DangerButton from "./fields/DangerButton.vue";
|
||||
import FeedbackButton from "./fields/FeedbackButton.vue";
|
||||
|
|
|
@ -57,10 +57,10 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Modal from "@/components/Modal.vue";
|
||||
import player, { PlayerData } from "@/game/player";
|
||||
import settings from "@/game/settings";
|
||||
import { getUniqueID, loadSave, save, newSave } from "@/util/save";
|
||||
import Modal from "components/Modal.vue";
|
||||
import player, { PlayerData } from "game/player";
|
||||
import settings from "game/settings";
|
||||
import { getUniqueID, loadSave, save, newSave } from "util/save";
|
||||
import {
|
||||
ComponentPublicInstance,
|
||||
computed,
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import state from "@/game/state";
|
||||
import Decimal, { DecimalSource, formatWhole } from "@/util/bignum";
|
||||
import state from "game/state";
|
||||
import Decimal, { DecimalSource, formatWhole } from "util/bignum";
|
||||
import { computed, ref, watchEffect } from "vue";
|
||||
|
||||
const tps = computed(() =>
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { CoercableComponent } from "@/features/feature";
|
||||
import { computeOptionalComponent, processedPropType, unwrapRef } from "@/util/vue";
|
||||
import { CoercableComponent } from "features/feature";
|
||||
import { computeOptionalComponent, processedPropType, unwrapRef } from "util/vue";
|
||||
import { computed, defineComponent, ref, toRefs, unref } from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import "@/components/common/fields.css";
|
||||
import { CoercableComponent } from "@/features/feature";
|
||||
import { computeOptionalComponent } from "@/util/vue";
|
||||
import "components/common/fields.css";
|
||||
import { CoercableComponent } from "features/feature";
|
||||
import { computeOptionalComponent } from "util/vue";
|
||||
import { ref, toRef, watch } from "vue";
|
||||
import VueNextSelect from "vue-next-select";
|
||||
import "vue-next-select/dist/index.css";
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<script setup lang="ts">
|
||||
import { computed, toRefs, unref } from "vue";
|
||||
import Tooltip from "../Tooltip.vue";
|
||||
import "@/components/common/fields.css";
|
||||
import "components/common/fields.css";
|
||||
|
||||
const _props = defineProps<{
|
||||
title?: string;
|
||||
|
|
|
@ -26,11 +26,11 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { CoercableComponent } from "@/features/feature";
|
||||
import { coerceComponent } from "@/util/vue";
|
||||
import { CoercableComponent } from "features/feature";
|
||||
import { coerceComponent } from "util/vue";
|
||||
import { computed, onMounted, ref, toRefs, unref } from "vue";
|
||||
import VueTextareaAutosize from "vue-textarea-autosize";
|
||||
import "@/components/common/fields.css";
|
||||
import "components/common/fields.css";
|
||||
|
||||
const _props = defineProps<{
|
||||
title?: CoercableComponent;
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { CoercableComponent } from "@/features/feature";
|
||||
import { coerceComponent } from "@/util/vue";
|
||||
import { CoercableComponent } from "features/feature";
|
||||
import { coerceComponent } from "util/vue";
|
||||
import { computed, unref } from "vue";
|
||||
import "@/components/common/fields.css";
|
||||
import "components/common/fields.css";
|
||||
|
||||
const props = defineProps<{
|
||||
title?: CoercableComponent;
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import "@/components/common/table.css";
|
||||
import themes from "@/data/themes";
|
||||
import settings from "@/game/settings";
|
||||
import "components/common/table.css";
|
||||
import themes from "data/themes";
|
||||
import settings from "game/settings";
|
||||
import { computed } from "vue";
|
||||
|
||||
const mergeAdjacent = computed(() => themes[settings.theme].mergeAdjacent);
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import "@/components/common/table.css";
|
||||
import themes from "@/data/themes";
|
||||
import settings from "@/game/settings";
|
||||
import "components/common/table.css";
|
||||
import themes from "data/themes";
|
||||
import settings from "game/settings";
|
||||
import { computed } from "vue";
|
||||
|
||||
const mergeAdjacent = computed(() => themes[settings.theme].mergeAdjacent);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Link, LinkNode } from "@/features/links";
|
||||
import { Link, LinkNode } from "features/links";
|
||||
import { computed, toRefs, unref } from "vue";
|
||||
|
||||
const _props = defineProps<{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { RegisterLinkNodeInjectionKey, UnregisterLinkNodeInjectionKey } from "@/features/links";
|
||||
import { RegisterLinkNodeInjectionKey, UnregisterLinkNodeInjectionKey } from "features/links";
|
||||
import { computed, inject, onUnmounted, ref, toRefs, unref, watch } from "vue";
|
||||
|
||||
const _props = defineProps<{ id: string }>();
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
LinkNode,
|
||||
RegisterLinkNodeInjectionKey,
|
||||
UnregisterLinkNodeInjectionKey
|
||||
} from "@/features/links";
|
||||
} from "features/links";
|
||||
import { computed, nextTick, onMounted, provide, ref, toRef } from "vue";
|
||||
import LinkVue from "./Link.vue";
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Modal from "@/components/Modal.vue";
|
||||
import Modal from "components/Modal.vue";
|
||||
import { ref } from "vue";
|
||||
|
||||
const isOpen = ref(false);
|
||||
|
|
|
@ -3,25 +3,25 @@ import {
|
|||
ClickableOptions,
|
||||
createClickable,
|
||||
GenericClickable
|
||||
} from "@/features/clickables/clickable";
|
||||
import { GenericConversion } from "@/features/conversion";
|
||||
import { CoercableComponent, jsx, Replace, setDefault } from "@/features/feature";
|
||||
import { displayResource } from "@/features/resources/resource";
|
||||
} from "features/clickables/clickable";
|
||||
import { GenericConversion } from "features/conversion";
|
||||
import { CoercableComponent, jsx, Replace, setDefault } from "features/feature";
|
||||
import { displayResource } from "features/resources/resource";
|
||||
import {
|
||||
createTreeNode,
|
||||
GenericTree,
|
||||
GenericTreeNode,
|
||||
TreeNode,
|
||||
TreeNodeOptions
|
||||
} from "@/features/trees/tree";
|
||||
import player from "@/game/player";
|
||||
import Decimal from "@/util/bignum";
|
||||
} from "features/trees/tree";
|
||||
import player from "game/player";
|
||||
import Decimal from "util/bignum";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
} from "util/computed";
|
||||
import { computed, Ref, unref } from "vue";
|
||||
|
||||
export interface ResetButtonOptions extends ClickableOptions {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { main } from "@/data/projEntry";
|
||||
import { createCumulativeConversion, createExponentialScaling } from "@/features/conversion";
|
||||
import { jsx } from "@/features/feature";
|
||||
import { createReset } from "@/features/reset";
|
||||
import MainDisplay from "@/features/resources/MainDisplay.vue";
|
||||
import { createResource } from "@/features/resources/resource";
|
||||
import { createLayer } from "@/game/layers";
|
||||
import { DecimalSource } from "@/lib/break_eternity";
|
||||
import { render } from "@/util/vue";
|
||||
import { main } from "data/projEntry";
|
||||
import { createCumulativeConversion, createExponentialScaling } from "features/conversion";
|
||||
import { jsx } from "features/feature";
|
||||
import { createReset } from "features/reset";
|
||||
import MainDisplay from "features/resources/MainDisplay.vue";
|
||||
import { createResource } from "features/resources/resource";
|
||||
import { createLayer } from "game/layers";
|
||||
import { DecimalSource } from "lib/break_eternity";
|
||||
import { render } from "util/vue";
|
||||
import { createLayerTreeNode, createResetButton } from "../common";
|
||||
|
||||
const layer = createLayer(() => {
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import Spacer from "@/components/layout/Spacer.vue";
|
||||
import { jsx } from "@/features/feature";
|
||||
import { createResource, trackBest, trackOOMPS, trackTotal } from "@/features/resources/resource";
|
||||
import { branchedResetPropagation, createTree, GenericTree } from "@/features/trees/tree";
|
||||
import { globalBus } from "@/game/events";
|
||||
import { createLayer, GenericLayer } from "@/game/layers";
|
||||
import player, { PlayerData } from "@/game/player";
|
||||
import { DecimalSource } from "@/lib/break_eternity";
|
||||
import Decimal, { format, formatTime } from "@/util/bignum";
|
||||
import { render } from "@/util/vue";
|
||||
import Spacer from "components/layout/Spacer.vue";
|
||||
import { jsx } from "features/feature";
|
||||
import { createResource, trackBest, trackOOMPS, trackTotal } from "features/resources/resource";
|
||||
import { branchedResetPropagation, createTree, GenericTree } from "features/trees/tree";
|
||||
import { globalBus } from "game/events";
|
||||
import { createLayer, GenericLayer } from "game/layers";
|
||||
import player, { PlayerData } from "game/player";
|
||||
import { DecimalSource } from "lib/break_eternity";
|
||||
import Decimal, { format, formatTime } from "util/bignum";
|
||||
import { render } from "util/vue";
|
||||
import { computed, toRaw } from "vue";
|
||||
import prestige from "./layers/prestige";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"title": "Profectus",
|
||||
"id": "",
|
||||
"author": "",
|
||||
"id": "profectus",
|
||||
"author": "thepaperpilot",
|
||||
"discordName": "The Paper Pilot Community",
|
||||
"discordLink": "https://discord.gg/WzejVAx",
|
||||
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { CoercableComponent, Visibility } from "@/features/feature";
|
||||
import { computeOptionalComponent, processedPropType } from "@/util/vue";
|
||||
import { CoercableComponent, Visibility } from "features/feature";
|
||||
import { computeOptionalComponent, processedPropType } from "util/vue";
|
||||
import { defineComponent, StyleValue, toRefs, unref } from "vue";
|
||||
import Tooltip from "@/components/Tooltip.vue";
|
||||
import LinkNode from "@/components/links/LinkNode.vue";
|
||||
import MarkNode from "@/components/MarkNode.vue";
|
||||
import "@/components/common/features.css";
|
||||
import Tooltip from "components/Tooltip.vue";
|
||||
import LinkNode from "components/links/LinkNode.vue";
|
||||
import MarkNode from "components/MarkNode.vue";
|
||||
import "components/common/features.css";
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import AchievementComponent from "@/features/achievements/Achievement.vue";
|
||||
import AchievementComponent from "features/achievements/Achievement.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
@ -9,19 +9,19 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import { globalBus } from "@/game/events";
|
||||
import "@/game/notifications";
|
||||
import { Persistent, makePersistent, PersistentState } from "@/game/persistence";
|
||||
} from "features/feature";
|
||||
import { globalBus } from "game/events";
|
||||
import "game/notifications";
|
||||
import { Persistent, makePersistent, PersistentState } from "game/persistence";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
import { coerceComponent } from "@/util/vue";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { coerceComponent } from "util/vue";
|
||||
import { Unsubscribe } from "nanoevents";
|
||||
import { Ref, unref } from "vue";
|
||||
import { useToast } from "vue-toastification";
|
||||
|
|
|
@ -46,12 +46,12 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Direction } from "./bar";
|
||||
import { CoercableComponent, Visibility } from "@/features/feature";
|
||||
import Decimal, { DecimalSource } from "@/util/bignum";
|
||||
import { computeOptionalComponent, processedPropType, unwrapRef } from "@/util/vue";
|
||||
import { CoercableComponent, Visibility } from "features/feature";
|
||||
import Decimal, { DecimalSource } from "util/bignum";
|
||||
import { computeOptionalComponent, processedPropType, unwrapRef } from "util/vue";
|
||||
import { computed, CSSProperties, defineComponent, StyleValue, toRefs, unref } from "vue";
|
||||
import LinkNode from "@/components/links/LinkNode.vue";
|
||||
import MarkNode from "@/components/MarkNode.vue";
|
||||
import LinkNode from "components/links/LinkNode.vue";
|
||||
import MarkNode from "components/MarkNode.vue";
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import BarComponent from "@/features/bars/Bar.vue";
|
||||
import BarComponent from "features/bars/Bar.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
@ -8,16 +8,16 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import { DecimalSource } from "@/lib/break_eternity";
|
||||
} from "features/feature";
|
||||
import { DecimalSource } from "lib/break_eternity";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
|
||||
export const BarType = Symbol("Bar");
|
||||
|
||||
|
|
|
@ -51,9 +51,9 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { BoardNode, GenericBoard, getNodeProperty } from "@/features/boards/board";
|
||||
import { FeatureComponent, Visibility } from "@/features/feature";
|
||||
import { PersistentState } from "@/game/persistence";
|
||||
import { BoardNode, GenericBoard, getNodeProperty } from "features/boards/board";
|
||||
import { FeatureComponent, Visibility } from "features/feature";
|
||||
import { PersistentState } from "game/persistence";
|
||||
import { computed, ref, toRefs } from "vue";
|
||||
import panZoom from "vue-panzoom";
|
||||
import BoardLinkVue from "./BoardLink.vue";
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { BoardNodeLink } from "@/features/boards/board";
|
||||
import { BoardNodeLink } from "features/boards/board";
|
||||
import { computed, toRefs, unref } from "vue";
|
||||
|
||||
const _props = defineProps<{
|
||||
|
|
|
@ -167,7 +167,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import themes from "@/data/themes";
|
||||
import themes from "data/themes";
|
||||
import {
|
||||
BoardNode,
|
||||
GenericBoardNodeAction,
|
||||
|
@ -175,9 +175,9 @@ import {
|
|||
getNodeProperty,
|
||||
ProgressDisplay,
|
||||
Shape
|
||||
} from "@/features/boards/board";
|
||||
import { Visibility } from "@/features/feature";
|
||||
import settings from "@/game/settings";
|
||||
} from "features/boards/board";
|
||||
import { Visibility } from "features/feature";
|
||||
import settings from "game/settings";
|
||||
import { computed, ref, toRefs, unref, watch } from "vue";
|
||||
|
||||
const sqrtTwo = Math.sqrt(2);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import BoardComponent from "@/features/boards/Board.vue";
|
||||
import BoardComponent from "features/boards/Board.vue";
|
||||
import {
|
||||
Component,
|
||||
findFeatures,
|
||||
|
@ -8,19 +8,19 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import { globalBus } from "@/game/events";
|
||||
import { State, Persistent, makePersistent, PersistentState } from "@/game/persistence";
|
||||
import Decimal, { DecimalSource } from "@/lib/break_eternity";
|
||||
import { isFunction } from "@/util/common";
|
||||
} from "features/feature";
|
||||
import { globalBus } from "game/events";
|
||||
import { State, Persistent, makePersistent, PersistentState } from "game/persistence";
|
||||
import Decimal, { DecimalSource } from "lib/break_eternity";
|
||||
import { isFunction } from "util/common";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { Unsubscribe } from "nanoevents";
|
||||
import { computed, Ref, unref } from "vue";
|
||||
import { Link } from "../links";
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
import ClickableComponent from "@/features/clickables/Clickable.vue";
|
||||
import { Resource } from "@/features/resources/resource";
|
||||
import { Persistent, makePersistent, PersistentState } from "@/game/persistence";
|
||||
import Decimal, { DecimalSource, format, formatWhole } from "@/util/bignum";
|
||||
import ClickableComponent from "features/clickables/Clickable.vue";
|
||||
import { Resource } from "features/resources/resource";
|
||||
import { Persistent, makePersistent, PersistentState } from "game/persistence";
|
||||
import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
import { coerceComponent, isCoercableComponent } from "@/util/vue";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { coerceComponent, isCoercableComponent } from "util/vue";
|
||||
import { computed, Ref, unref } from "vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
|
|
|
@ -27,11 +27,11 @@
|
|||
</template>
|
||||
|
||||
<script lang="tsx">
|
||||
import "@/components/common/features.css";
|
||||
import { GenericChallenge } from "@/features/challenges/challenge";
|
||||
import { jsx, StyleValue, Visibility } from "@/features/feature";
|
||||
import { getHighNotifyStyle, getNotifyStyle } from "@/game/notifications";
|
||||
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "@/util/vue";
|
||||
import "components/common/features.css";
|
||||
import { GenericChallenge } from "features/challenges/challenge";
|
||||
import { jsx, StyleValue, Visibility } from "features/feature";
|
||||
import { getHighNotifyStyle, getNotifyStyle } from "game/notifications";
|
||||
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue";
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
|
@ -43,8 +43,8 @@ import {
|
|||
UnwrapRef,
|
||||
watchEffect
|
||||
} from "vue";
|
||||
import LinkNode from "@/components/links/LinkNode.vue";
|
||||
import MarkNode from "@/components/MarkNode.vue";
|
||||
import LinkNode from "components/links/LinkNode.vue";
|
||||
import MarkNode from "components/MarkNode.vue";
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Toggle from "@/components/fields/Toggle.vue";
|
||||
import ChallengeComponent from "@/features/challenges/Challenge.vue";
|
||||
import Toggle from "components/fields/Toggle.vue";
|
||||
import ChallengeComponent from "features/challenges/Challenge.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
@ -10,21 +10,21 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import { GenericReset } from "@/features/reset";
|
||||
import { Resource } from "@/features/resources/resource";
|
||||
import { globalBus } from "@/game/events";
|
||||
import { persistent, PersistentRef } from "@/game/persistence";
|
||||
import settings, { registerSettingField } from "@/game/settings";
|
||||
import Decimal, { DecimalSource } from "@/util/bignum";
|
||||
} from "features/feature";
|
||||
import { GenericReset } from "features/reset";
|
||||
import { Resource } from "features/resources/resource";
|
||||
import { globalBus } from "game/events";
|
||||
import { persistent, PersistentRef } from "game/persistence";
|
||||
import settings, { registerSettingField } from "game/settings";
|
||||
import Decimal, { DecimalSource } from "util/bignum";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { computed, Ref, unref } from "vue";
|
||||
|
||||
export const ChallengeType = Symbol("ChallengeType");
|
||||
|
|
|
@ -29,18 +29,18 @@
|
|||
</template>
|
||||
|
||||
<script lang="tsx">
|
||||
import "@/components/common/features.css";
|
||||
import LinkNode from "@/components/links/LinkNode.vue";
|
||||
import MarkNode from "@/components/MarkNode.vue";
|
||||
import { GenericClickable } from "@/features/clickables/clickable";
|
||||
import { jsx, StyleValue, Visibility } from "@/features/feature";
|
||||
import "components/common/features.css";
|
||||
import LinkNode from "components/links/LinkNode.vue";
|
||||
import MarkNode from "components/MarkNode.vue";
|
||||
import { GenericClickable } from "features/clickables/clickable";
|
||||
import { jsx, StyleValue, Visibility } from "features/feature";
|
||||
import {
|
||||
coerceComponent,
|
||||
isCoercableComponent,
|
||||
processedPropType,
|
||||
setupHoldToClick,
|
||||
unwrapRef
|
||||
} from "@/util/vue";
|
||||
} from "util/vue";
|
||||
import {
|
||||
Component,
|
||||
defineComponent,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import ClickableComponent from "@/features/clickables/Clickable.vue";
|
||||
import ClickableComponent from "features/clickables/Clickable.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
@ -8,15 +8,15 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
} from "features/feature";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { unref } from "vue";
|
||||
|
||||
export const ClickableType = Symbol("Clickable");
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { GenericLayer } from "@/game/layers";
|
||||
import Decimal, { DecimalSource } from "@/util/bignum";
|
||||
import { GenericLayer } from "game/layers";
|
||||
import Decimal, { DecimalSource } from "util/bignum";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { computed, isRef, Ref, unref } from "vue";
|
||||
import { Replace, setDefault } from "./feature";
|
||||
import { Resource } from "./resources/resource";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { DefaultValue } from "@/game/persistence";
|
||||
import Decimal from "@/util/bignum";
|
||||
import { DoNotCache, ProcessedComputable } from "@/util/computed";
|
||||
import { DefaultValue } from "game/persistence";
|
||||
import Decimal from "util/bignum";
|
||||
import { DoNotCache, ProcessedComputable } from "util/computed";
|
||||
import { CSSProperties, DefineComponent, isRef } from "vue";
|
||||
|
||||
export const Component = Symbol("Component");
|
||||
|
|
|
@ -17,12 +17,12 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import "@/components/common/table.css";
|
||||
import themes from "@/data/themes";
|
||||
import { Visibility } from "@/features/feature";
|
||||
import { GridCell } from "@/features/grids/grid";
|
||||
import settings from "@/game/settings";
|
||||
import { processedPropType } from "@/util/vue";
|
||||
import "components/common/table.css";
|
||||
import themes from "data/themes";
|
||||
import { Visibility } from "features/feature";
|
||||
import { GridCell } from "features/grids/grid";
|
||||
import settings from "game/settings";
|
||||
import { processedPropType } from "util/vue";
|
||||
import { computed, defineComponent, unref } from "vue";
|
||||
import GridCellVue from "./GridCell.vue";
|
||||
|
||||
|
|
|
@ -23,15 +23,15 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import "@/components/common/features.css";
|
||||
import LinkNode from "@/components/links/LinkNode.vue";
|
||||
import { CoercableComponent, StyleValue, Visibility } from "@/features/feature";
|
||||
import "components/common/features.css";
|
||||
import LinkNode from "components/links/LinkNode.vue";
|
||||
import { CoercableComponent, StyleValue, Visibility } from "features/feature";
|
||||
import {
|
||||
computeComponent,
|
||||
computeOptionalComponent,
|
||||
processedPropType,
|
||||
setupHoldToClick
|
||||
} from "@/util/vue";
|
||||
} from "util/vue";
|
||||
import { defineComponent, PropType, toRefs, unref } from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import GridComponent from "@/features/grids/Grid.vue";
|
||||
import GridComponent from "features/grids/Grid.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
@ -8,18 +8,18 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import { isFunction } from "@/util/common";
|
||||
} from "features/feature";
|
||||
import { isFunction } from "util/common";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { computed, Ref, unref } from "vue";
|
||||
import { State, Persistent, makePersistent, PersistentState } from "@/game/persistence";
|
||||
import { State, Persistent, makePersistent, PersistentState } from "game/persistence";
|
||||
|
||||
export const GridType = Symbol("Grid");
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { hasWon } from "@/data/projEntry";
|
||||
import { globalBus } from "@/game/events";
|
||||
import player from "@/game/player";
|
||||
import { hasWon } from "data/projEntry";
|
||||
import { globalBus } from "game/events";
|
||||
import player from "game/player";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableTypeWithDefault,
|
||||
GetComputableType,
|
||||
ProcessedComputable,
|
||||
processComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { unref } from "vue";
|
||||
import { findFeatures, Replace, setDefault } from "./feature";
|
||||
|
||||
|
|
|
@ -29,11 +29,11 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import LinkNode from "@/components/links/LinkNode.vue";
|
||||
import themes from "@/data/themes";
|
||||
import { CoercableComponent, Visibility } from "@/features/feature";
|
||||
import settings from "@/game/settings";
|
||||
import { computeComponent, processedPropType } from "@/util/vue";
|
||||
import LinkNode from "components/links/LinkNode.vue";
|
||||
import themes from "data/themes";
|
||||
import { CoercableComponent, Visibility } from "features/feature";
|
||||
import settings from "game/settings";
|
||||
import { computeComponent, processedPropType } from "util/vue";
|
||||
import CollapseTransition from "@ivanv/vue-collapse-transition/src/CollapseTransition.vue";
|
||||
import { computed, defineComponent, PropType, Ref, StyleValue, toRefs, unref } from "vue";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import InfoboxComponent from "@/features/infoboxes/Infobox.vue";
|
||||
import InfoboxComponent from "features/infoboxes/Infobox.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
@ -8,17 +8,17 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
} from "features/feature";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { Ref } from "vue";
|
||||
import { Persistent, makePersistent, PersistentState } from "@/game/persistence";
|
||||
import { Persistent, makePersistent, PersistentState } from "game/persistence";
|
||||
|
||||
export const InfoboxType = Symbol("Infobox");
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Position } from "@/game/layers";
|
||||
import { Position } from "game/layers";
|
||||
import { InjectionKey, SVGAttributes } from "vue";
|
||||
|
||||
export interface LinkNode {
|
||||
|
|
|
@ -15,10 +15,10 @@
|
|||
</template>
|
||||
|
||||
<script lang="tsx">
|
||||
import "@/components/common/features.css";
|
||||
import { jsx, StyleValue, Visibility } from "@/features/feature";
|
||||
import { GenericMilestone } from "@/features/milestones/milestone";
|
||||
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "@/util/vue";
|
||||
import "components/common/features.css";
|
||||
import { jsx, StyleValue, Visibility } from "features/feature";
|
||||
import { GenericMilestone } from "features/milestones/milestone";
|
||||
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue";
|
||||
import { Component, defineComponent, shallowRef, toRefs, unref, UnwrapRef, watchEffect } from "vue";
|
||||
import LinkNode from "../../components/links/LinkNode.vue";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Select from "@/components/fields/Select.vue";
|
||||
import Select from "components/fields/Select.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
@ -10,22 +10,22 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import MilestoneComponent from "@/features/milestones/Milestone.vue";
|
||||
import { globalBus } from "@/game/events";
|
||||
import "@/game/notifications";
|
||||
import { makePersistent, Persistent, PersistentState } from "@/game/persistence";
|
||||
import settings, { registerSettingField } from "@/game/settings";
|
||||
import { camelToTitle } from "@/util/common";
|
||||
} from "features/feature";
|
||||
import MilestoneComponent from "features/milestones/Milestone.vue";
|
||||
import { globalBus } from "game/events";
|
||||
import "game/notifications";
|
||||
import { makePersistent, Persistent, PersistentState } from "game/persistence";
|
||||
import settings, { registerSettingField } from "game/settings";
|
||||
import { camelToTitle } from "util/common";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
import { coerceComponent, isCoercableComponent } from "@/util/vue";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { coerceComponent, isCoercableComponent } from "util/vue";
|
||||
import { Unsubscribe } from "nanoevents";
|
||||
import { computed, Ref, unref } from "vue";
|
||||
import { useToast } from "vue-toastification";
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
import { getUniqueID, Replace } from "@/features/feature";
|
||||
import { globalBus } from "@/game/events";
|
||||
import { GenericLayer } from "@/game/layers";
|
||||
import { getUniqueID, Replace } from "features/feature";
|
||||
import { globalBus } from "game/events";
|
||||
import { GenericLayer } from "game/layers";
|
||||
import {
|
||||
DefaultValue,
|
||||
Persistent,
|
||||
persistent,
|
||||
PersistentRef,
|
||||
PersistentState
|
||||
} from "@/game/persistence";
|
||||
import Decimal from "@/lib/break_eternity";
|
||||
import { Computable, GetComputableType, processComputable } from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "game/persistence";
|
||||
import Decimal from "lib/break_eternity";
|
||||
import { Computable, GetComputableType, processComputable } from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { Unsubscribe } from "nanoevents";
|
||||
import { computed, isRef, unref } from "vue";
|
||||
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { CoercableComponent } from "@/features/feature";
|
||||
import { Resource } from "@/features/resources/resource";
|
||||
import Decimal from "@/util/bignum";
|
||||
import { computeOptionalComponent } from "@/util/vue";
|
||||
import { CoercableComponent } from "features/feature";
|
||||
import { Resource } from "features/resources/resource";
|
||||
import Decimal from "util/bignum";
|
||||
import { computeOptionalComponent } from "util/vue";
|
||||
import { computed, Ref, StyleValue, toRefs } from "vue";
|
||||
import ResourceVue from "@/features/resources/Resource.vue";
|
||||
import ResourceVue from "features/resources/Resource.vue";
|
||||
|
||||
const _props = defineProps<{
|
||||
resource: Resource;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { displayResource, Resource } from "@/features/resources/resource";
|
||||
import { displayResource, Resource } from "features/resources/resource";
|
||||
import { computed } from "vue";
|
||||
|
||||
const props = defineProps<{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Decimal, { DecimalSource, format, formatWhole } from "@/util/bignum";
|
||||
import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
|
||||
import { computed, ComputedRef, ref, Ref, watch } from "vue";
|
||||
import { globalBus } from "@/game/events";
|
||||
import { State, persistent } from "@/game/persistence";
|
||||
import { globalBus } from "game/events";
|
||||
import { State, persistent } from "game/persistence";
|
||||
|
||||
export interface Resource<T = DecimalSource> extends Ref<T> {
|
||||
displayName: string;
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { CoercableComponent } from "@/features/feature";
|
||||
import { computeComponent } from "@/util/vue";
|
||||
import { CoercableComponent } from "features/feature";
|
||||
import { computeComponent } from "util/vue";
|
||||
import { toRefs } from "vue";
|
||||
|
||||
const _props = defineProps<{ display: CoercableComponent }>();
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { CoercableComponent, StyleValue, Visibility } from "@/features/feature";
|
||||
import { getNotifyStyle } from "@/game/notifications";
|
||||
import { computeComponent, processedPropType, unwrapRef } from "@/util/vue";
|
||||
import { CoercableComponent, StyleValue, Visibility } from "features/feature";
|
||||
import { getNotifyStyle } from "game/notifications";
|
||||
import { computeComponent, processedPropType, unwrapRef } from "util/vue";
|
||||
import { computed, defineComponent, toRefs, unref } from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
|
|
|
@ -30,14 +30,14 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Sticky from "@/components/layout/Sticky.vue";
|
||||
import themes from "@/data/themes";
|
||||
import { CoercableComponent, StyleValue, Visibility } from "@/features/feature";
|
||||
import { GenericTab } from "@/features/tabs/tab";
|
||||
import TabButton from "@/features/tabs/TabButton.vue";
|
||||
import { GenericTabButton } from "@/features/tabs/tabFamily";
|
||||
import settings from "@/game/settings";
|
||||
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "@/util/vue";
|
||||
import Sticky from "components/layout/Sticky.vue";
|
||||
import themes from "data/themes";
|
||||
import { CoercableComponent, StyleValue, Visibility } from "features/feature";
|
||||
import { GenericTab } from "features/tabs/tab";
|
||||
import TabButton from "features/tabs/TabButton.vue";
|
||||
import { GenericTabButton } from "features/tabs/tabFamily";
|
||||
import settings from "game/settings";
|
||||
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue";
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
|
|
|
@ -5,10 +5,10 @@ import {
|
|||
getUniqueID,
|
||||
Replace,
|
||||
StyleValue
|
||||
} from "@/features/feature";
|
||||
import TabComponent from "@/features/tabs/Tab.vue";
|
||||
import { Computable, GetComputableType } from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "features/feature";
|
||||
import TabComponent from "features/tabs/Tab.vue";
|
||||
import { Computable, GetComputableType } from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
|
||||
export const TabType = Symbol("Tab");
|
||||
|
||||
|
|
|
@ -7,18 +7,18 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import TabButtonComponent from "@/features/tabs/TabButton.vue";
|
||||
import TabFamilyComponent from "@/features/tabs/TabFamily.vue";
|
||||
import { Persistent, makePersistent, PersistentState } from "@/game/persistence";
|
||||
} from "features/feature";
|
||||
import TabButtonComponent from "features/tabs/TabButton.vue";
|
||||
import TabFamilyComponent from "features/tabs/TabFamily.vue";
|
||||
import { Persistent, makePersistent, PersistentState } from "game/persistence";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { computed, Ref, unref } from "vue";
|
||||
import { GenericTab } from "./tab";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { CoercableComponent } from "@/features/feature";
|
||||
import { ProcessedComputable } from "@/util/computed";
|
||||
import { CoercableComponent } from "features/feature";
|
||||
import { ProcessedComputable } from "util/computed";
|
||||
|
||||
declare module "@vue/runtime-dom" {
|
||||
interface CSSProperties {
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import "@/components/common/table.css";
|
||||
import { GenericTreeNode } from "@/features/trees/tree";
|
||||
import { processedPropType } from "@/util/vue";
|
||||
import "components/common/table.css";
|
||||
import { GenericTreeNode } from "features/trees/tree";
|
||||
import { processedPropType } from "util/vue";
|
||||
import { defineComponent, unref } from "vue";
|
||||
import TreeNode from "./TreeNode.vue";
|
||||
|
||||
|
|
|
@ -38,19 +38,19 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import LinkNode from "@/components/links/LinkNode.vue";
|
||||
import MarkNode from "@/components/MarkNode.vue";
|
||||
import TooltipVue from "@/components/Tooltip.vue";
|
||||
import { CoercableComponent, StyleValue, Visibility } from "@/features/feature";
|
||||
import { gatherTooltipProps, Tooltip } from "@/features/tooltip";
|
||||
import { ProcessedComputable } from "@/util/computed";
|
||||
import LinkNode from "components/links/LinkNode.vue";
|
||||
import MarkNode from "components/MarkNode.vue";
|
||||
import TooltipVue from "components/Tooltip.vue";
|
||||
import { CoercableComponent, StyleValue, Visibility } from "features/feature";
|
||||
import { gatherTooltipProps, Tooltip } from "features/tooltip";
|
||||
import { ProcessedComputable } from "util/computed";
|
||||
import {
|
||||
computeOptionalComponent,
|
||||
isCoercableComponent,
|
||||
processedPropType,
|
||||
setupHoldToClick,
|
||||
unwrapRef
|
||||
} from "@/util/vue";
|
||||
} from "util/vue";
|
||||
import {
|
||||
computed,
|
||||
defineComponent,
|
||||
|
|
|
@ -7,15 +7,15 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import { Link } from "@/features/links";
|
||||
import { GenericReset } from "@/features/reset";
|
||||
import { displayResource, Resource } from "@/features/resources/resource";
|
||||
import { Tooltip } from "@/features/tooltip";
|
||||
import TreeComponent from "@/features/trees/Tree.vue";
|
||||
import { persistent } from "@/game/persistence";
|
||||
import { DecimalSource, format } from "@/util/bignum";
|
||||
import Decimal, { formatWhole } from "@/util/break_eternity";
|
||||
} from "features/feature";
|
||||
import { Link } from "features/links";
|
||||
import { GenericReset } from "features/reset";
|
||||
import { displayResource, Resource } from "features/resources/resource";
|
||||
import { Tooltip } from "features/tooltip";
|
||||
import TreeComponent from "features/trees/Tree.vue";
|
||||
import { persistent } from "game/persistence";
|
||||
import { DecimalSource, format } from "util/bignum";
|
||||
import Decimal, { formatWhole } from "util/break_eternity";
|
||||
import {
|
||||
Computable,
|
||||
convertComputable,
|
||||
|
@ -23,8 +23,8 @@ import {
|
|||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { computed, ref, Ref, unref } from "vue";
|
||||
|
||||
export const TreeNodeType = Symbol("TreeNode");
|
||||
|
|
|
@ -25,14 +25,14 @@
|
|||
</template>
|
||||
|
||||
<script lang="tsx">
|
||||
import "@/components/common/features.css";
|
||||
import LinkNode from "@/components/links/LinkNode.vue";
|
||||
import MarkNode from "@/components/MarkNode.vue";
|
||||
import { jsx, StyleValue, Visibility } from "@/features/feature";
|
||||
import { displayResource, Resource } from "@/features/resources/resource";
|
||||
import { GenericUpgrade } from "@/features/upgrades/upgrade";
|
||||
import { DecimalSource } from "@/lib/break_eternity";
|
||||
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "@/util/vue";
|
||||
import "components/common/features.css";
|
||||
import LinkNode from "components/links/LinkNode.vue";
|
||||
import MarkNode from "components/MarkNode.vue";
|
||||
import { jsx, StyleValue, Visibility } from "features/feature";
|
||||
import { displayResource, Resource } from "features/resources/resource";
|
||||
import { GenericUpgrade } from "features/upgrades/upgrade";
|
||||
import { DecimalSource } from "lib/break_eternity";
|
||||
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue";
|
||||
import {
|
||||
Component,
|
||||
defineComponent,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import UpgradeComponent from "@/features/upgrades/Upgrade.vue";
|
||||
import UpgradeComponent from "features/upgrades/Upgrade.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
@ -9,21 +9,21 @@ import {
|
|||
setDefault,
|
||||
StyleValue,
|
||||
Visibility
|
||||
} from "@/features/feature";
|
||||
import { Resource } from "@/features/resources/resource";
|
||||
import { GenericLayer } from "@/game/layers";
|
||||
import Decimal, { DecimalSource } from "@/util/bignum";
|
||||
import { isFunction } from "@/util/common";
|
||||
} from "features/feature";
|
||||
import { Resource } from "features/resources/resource";
|
||||
import { GenericLayer } from "game/layers";
|
||||
import Decimal, { DecimalSource } from "util/bignum";
|
||||
import { isFunction } from "util/common";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { computed, Ref, unref } from "vue";
|
||||
import { Persistent, makePersistent, PersistentState } from "@/game/persistence";
|
||||
import { Persistent, makePersistent, PersistentState } from "game/persistence";
|
||||
|
||||
export const UpgradeType = Symbol("Upgrade");
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import projInfo from "@/data/projInfo.json";
|
||||
import Decimal, { DecimalSource } from "@/util/bignum";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import Decimal, { DecimalSource } from "util/bignum";
|
||||
import { createNanoEvents } from "nanoevents";
|
||||
import { App, Ref } from "vue";
|
||||
import { GenericLayer } from "./layers";
|
||||
|
@ -93,7 +93,7 @@ function update() {
|
|||
}
|
||||
|
||||
export async function startGameLoop() {
|
||||
hasWon = (await import("@/data/projEntry")).hasWon;
|
||||
hasWon = (await import("data/projEntry")).hasWon;
|
||||
if (settings.unthrottled) {
|
||||
requestAnimationFrame(update);
|
||||
} else {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Modal from "@/components/Modal.vue";
|
||||
import Modal from "components/Modal.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
jsx,
|
||||
|
@ -6,17 +6,17 @@ import {
|
|||
Replace,
|
||||
setDefault,
|
||||
StyleValue
|
||||
} from "@/features/feature";
|
||||
import { Link } from "@/features/links";
|
||||
import Decimal from "@/util/bignum";
|
||||
} from "features/feature";
|
||||
import { Link } from "features/links";
|
||||
import Decimal from "util/bignum";
|
||||
import {
|
||||
Computable,
|
||||
GetComputableType,
|
||||
GetComputableTypeWithDefault,
|
||||
processComputable,
|
||||
ProcessedComputable
|
||||
} from "@/util/computed";
|
||||
import { createLazyProxy } from "@/util/proxies";
|
||||
} from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
import { createNanoEvents, Emitter } from "nanoevents";
|
||||
import { ref, unref } from "vue";
|
||||
import { globalBus } from "./events";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { globalBus } from "@/game/events";
|
||||
import { globalBus } from "game/events";
|
||||
import Toast from "vue-toastification";
|
||||
import "vue-toastification/dist/index.css";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { globalBus } from "@/game/events";
|
||||
import Decimal, { DecimalSource } from "@/util/bignum";
|
||||
import { ProxyState } from "@/util/proxies";
|
||||
import { globalBus } from "game/events";
|
||||
import Decimal, { DecimalSource } from "util/bignum";
|
||||
import { ProxyState } from "util/proxies";
|
||||
import { isArray } from "@vue/shared";
|
||||
import { isRef, Ref, ref } from "vue";
|
||||
import { GenericLayer } from "./layers";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Decimal, { DecimalSource } from "@/util/bignum";
|
||||
import { isPlainObject } from "@/util/common";
|
||||
import { ProxiedWithState, ProxyPath, ProxyState } from "@/util/proxies";
|
||||
import Decimal, { DecimalSource } from "util/bignum";
|
||||
import { isPlainObject } from "util/common";
|
||||
import { ProxiedWithState, ProxyPath, ProxyState } from "util/proxies";
|
||||
import { reactive, unref } from "vue";
|
||||
import transientState from "./state";
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import projInfo from "@/data/projInfo.json";
|
||||
import { Themes } from "@/data/themes";
|
||||
import { CoercableComponent } from "@/features/feature";
|
||||
import { globalBus } from "@/game/events";
|
||||
import { hardReset } from "@/util/save";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import { Themes } from "data/themes";
|
||||
import { CoercableComponent } from "features/feature";
|
||||
import { globalBus } from "game/events";
|
||||
import { hardReset } from "util/save";
|
||||
import { reactive, watch } from "vue";
|
||||
|
||||
export interface Settings {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Import Decimal and numberUtils from a different file to globally change which big num library gets used
|
||||
// This way switching out big number libraries just needs to happen here, not every file that needs big numbers
|
||||
import { DecimalSource as RawDecimalSource } from "@/lib/break_eternity";
|
||||
import Decimal, * as numberUtils from "@/util/break_eternity";
|
||||
import { DecimalSource as RawDecimalSource } from "lib/break_eternity";
|
||||
import Decimal, * as numberUtils from "util/break_eternity";
|
||||
|
||||
export const {
|
||||
exponentialFormat,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Decimal, { DecimalSource } from "@/lib/break_eternity";
|
||||
import projInfo from "@/data/projInfo.json";
|
||||
import Decimal, { DecimalSource } from "lib/break_eternity";
|
||||
import projInfo from "data/projInfo.json";
|
||||
|
||||
export default Decimal;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import projInfo from "@/data/projInfo.json";
|
||||
import player, { Player, PlayerData, stringifySave } from "@/game/player";
|
||||
import settings, { loadSettings } from "@/game/settings";
|
||||
import projInfo from "data/projInfo.json";
|
||||
import player, { Player, PlayerData, stringifySave } from "game/player";
|
||||
import settings, { loadSettings } from "game/settings";
|
||||
import Decimal from "./bignum";
|
||||
import { ProxyState } from "./proxies";
|
||||
|
||||
|
@ -74,8 +74,8 @@ export function getUniqueID(): string {
|
|||
|
||||
export async function loadSave(playerObj: Partial<PlayerData>): Promise<void> {
|
||||
console.info("Loading save", playerObj);
|
||||
const { layers, removeLayer, addLayer } = await import("@/game/layers");
|
||||
const { fixOldSave, getInitialLayers } = await import("@/data/projEntry");
|
||||
const { layers, removeLayer, addLayer } = await import("game/layers");
|
||||
const { fixOldSave, getInitialLayers } = await import("data/projEntry");
|
||||
|
||||
for (const layer in layers) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import Col from "@/components/layout/Column.vue";
|
||||
import Row from "@/components/layout/Row.vue";
|
||||
import Col from "components/layout/Column.vue";
|
||||
import Row from "components/layout/Row.vue";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component as ComponentKey,
|
||||
GatherProps,
|
||||
GenericComponent,
|
||||
JSXFunction
|
||||
} from "@/features/feature";
|
||||
} from "features/feature";
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
|
|
|
@ -15,15 +15,10 @@
|
|||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"baseUrl": "src",
|
||||
"types": [
|
||||
"webpack-env"
|
||||
],
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"src/*"
|
||||
]
|
||||
},
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom",
|
||||
|
|
Loading…
Reference in a new issue