Changed path aliasing

This commit is contained in:
thepaperpilot 2022-03-03 21:39:48 -06:00
parent 909d370f13
commit 49474b1518
76 changed files with 336 additions and 341 deletions

View file

@ -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";

View file

@ -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";

View file

@ -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;

View file

@ -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({

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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);

View file

@ -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";

View file

@ -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,

View file

@ -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(() =>

View file

@ -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({

View file

@ -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";

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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);

View file

@ -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);

View file

@ -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<{

View file

@ -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 }>();

View file

@ -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";

View file

@ -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);

View file

@ -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 {

View file

@ -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(() => {

View file

@ -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";

View file

@ -1,7 +1,7 @@
{
"title": "Profectus",
"id": "",
"author": "",
"id": "profectus",
"author": "thepaperpilot",
"discordName": "The Paper Pilot Community",
"discordLink": "https://discord.gg/WzejVAx",

View file

@ -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: {

View file

@ -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";

View file

@ -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: {

View file

@ -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");

View file

@ -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";

View file

@ -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<{

View file

@ -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);

View file

@ -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";

View file

@ -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,

View file

@ -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: {

View file

@ -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");

View file

@ -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,

View file

@ -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");

View file

@ -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";

View file

@ -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");

View file

@ -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";

View file

@ -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({

View file

@ -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");

View file

@ -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";

View file

@ -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";

View file

@ -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");

View file

@ -1,4 +1,4 @@
import { Position } from "@/game/layers";
import { Position } from "game/layers";
import { InjectionKey, SVGAttributes } from "vue";
export interface LinkNode {

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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;

View file

@ -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<{

View file

@ -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;

View file

@ -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 }>();

View file

@ -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({

View file

@ -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,

View file

@ -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");

View file

@ -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";

View file

@ -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 {

View file

@ -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";

View file

@ -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,

View file

@ -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");

View file

@ -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,

View file

@ -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");

View file

@ -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 {

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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 {

View file

@ -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,

View file

@ -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;

View file

@ -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

View file

@ -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,

View file

@ -15,15 +15,10 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"baseUrl": "src",
"types": [
"webpack-env"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",