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> </template>
<script setup lang="ts"> <script setup lang="ts">
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import { GenericLayer, layers } from "@/game/layers"; import { GenericLayer, layers } from "game/layers";
import player from "@/game/player"; import player from "game/player";
import { computed, toRef } from "vue"; import { computed, toRef } from "vue";
import Layer from "./Layer.vue"; import Layer from "./Layer.vue";
import Nav from "./Nav.vue"; import Nav from "./Nav.vue";

View file

@ -37,12 +37,12 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/Modal.vue"; import Modal from "components/Modal.vue";
import { hasWon } from "@/data/projEntry"; import { hasWon } from "data/projEntry";
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import player from "@/game/player"; import player from "game/player";
import { formatTime } from "@/util/bignum"; import { formatTime } from "util/bignum";
import { loadSave, newSave } from "@/util/save"; import { loadSave, newSave } from "util/save";
import { computed, toRef } from "vue"; import { computed, toRef } from "vue";
import Toggle from "./fields/Toggle.vue"; import Toggle from "./fields/Toggle.vue";

View file

@ -50,11 +50,11 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/Modal.vue"; import Modal from "components/Modal.vue";
import type Changelog from "@/data/Changelog.vue"; import type Changelog from "data/Changelog.vue";
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import player from "@/game/player"; import player from "game/player";
import { formatTime } from "@/util/bignum"; import { formatTime } from "util/bignum";
import { computed, ref, toRefs, unref } from "vue"; import { computed, ref, toRefs, unref } from "vue";
const { title, logo, author, discordName, discordLink, versionNumber, versionTitle } = projInfo; const { title, logo, author, discordName, discordLink, versionNumber, versionTitle } = projInfo;

View file

@ -21,13 +21,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import Links from "@/components/links/Links.vue"; import Links from "components/links/Links.vue";
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import { CoercableComponent, StyleValue } from "@/features/feature"; import { CoercableComponent, StyleValue } from "features/feature";
import { Link } from "@/features/links"; import { Link } from "features/links";
import { PersistentRef } from "@/game/persistence"; import { PersistentRef } from "game/persistence";
import player from "@/game/player"; import player from "game/player";
import { computeComponent, processedPropType, wrapRef } from "@/util/vue"; import { computeComponent, processedPropType, wrapRef } from "util/vue";
import { computed, defineComponent, nextTick, PropType, toRefs, unref, watch } from "vue"; import { computed, defineComponent, nextTick, PropType, toRefs, unref, watch } from "vue";
export default defineComponent({ export default defineComponent({

View file

@ -40,7 +40,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { Link } from "@/features/links"; import { Link } from "features/links";
import { computed, ref, toRefs } from "vue"; import { computed, ref, toRefs } from "vue";
import Links from "./links/Links.vue"; import Links from "./links/Links.vue";

View file

@ -43,11 +43,11 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/Modal.vue"; import Modal from "components/Modal.vue";
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import player from "@/game/player"; import player from "game/player";
import state from "@/game/state"; import state from "game/state";
import Decimal, { DecimalSource, format } from "@/util/bignum"; import Decimal, { DecimalSource, format } from "util/bignum";
import { ComponentPublicInstance, computed, ref, toRef } from "vue"; import { ComponentPublicInstance, computed, ref, toRef } from "vue";
import Toggle from "./fields/Toggle.vue"; import Toggle from "./fields/Toggle.vue";
import SavesManager from "./SavesManager.vue"; import SavesManager from "./SavesManager.vue";

View file

@ -99,8 +99,8 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Changelog from "@/data/Changelog.vue"; import Changelog from "data/Changelog.vue";
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import { ComponentPublicInstance, ref } from "vue"; import { ComponentPublicInstance, ref } from "vue";
import Info from "./Info.vue"; import Info from "./Info.vue";
import Options from "./Options.vue"; import Options from "./Options.vue";

View file

@ -19,17 +19,17 @@
</template> </template>
<script setup lang="tsx"> <script setup lang="tsx">
import Modal from "@/components/Modal.vue"; import Modal from "components/Modal.vue";
import rawThemes from "@/data/themes"; import rawThemes from "data/themes";
import player from "@/game/player"; import player from "game/player";
import settings, { settingFields } from "@/game/settings"; import settings, { settingFields } from "game/settings";
import { camelToTitle } from "@/util/common"; import { camelToTitle } from "util/common";
import { computed, ref, toRefs } from "vue"; import { computed, ref, toRefs } from "vue";
import Toggle from "./fields/Toggle.vue"; import Toggle from "./fields/Toggle.vue";
import Select from "./fields/Select.vue"; import Select from "./fields/Select.vue";
import Tooltip from "./Tooltip.vue"; import Tooltip from "./Tooltip.vue";
import { jsx } from "@/features/feature"; import { jsx } from "features/feature";
import { coerceComponent, render } from "@/util/vue"; import { coerceComponent, render } from "util/vue";
const isOpen = ref(false); const isOpen = ref(false);

View file

@ -58,7 +58,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import player from "@/game/player"; import player from "game/player";
import { computed, ref, toRefs, watch } from "vue"; import { computed, ref, toRefs, watch } from "vue";
import DangerButton from "./fields/DangerButton.vue"; import DangerButton from "./fields/DangerButton.vue";
import FeedbackButton from "./fields/FeedbackButton.vue"; import FeedbackButton from "./fields/FeedbackButton.vue";

View file

@ -57,10 +57,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/Modal.vue"; import Modal from "components/Modal.vue";
import player, { PlayerData } from "@/game/player"; import player, { PlayerData } from "game/player";
import settings from "@/game/settings"; import settings from "game/settings";
import { getUniqueID, loadSave, save, newSave } from "@/util/save"; import { getUniqueID, loadSave, save, newSave } from "util/save";
import { import {
ComponentPublicInstance, ComponentPublicInstance,
computed, computed,

View file

@ -8,8 +8,8 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import state from "@/game/state"; import state from "game/state";
import Decimal, { DecimalSource, formatWhole } from "@/util/bignum"; import Decimal, { DecimalSource, formatWhole } from "util/bignum";
import { computed, ref, watchEffect } from "vue"; import { computed, ref, watchEffect } from "vue";
const tps = computed(() => const tps = computed(() =>

View file

@ -28,8 +28,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "features/feature";
import { computeOptionalComponent, processedPropType, unwrapRef } from "@/util/vue"; import { computeOptionalComponent, processedPropType, unwrapRef } from "util/vue";
import { computed, defineComponent, ref, toRefs, unref } from "vue"; import { computed, defineComponent, ref, toRefs, unref } from "vue";
export default defineComponent({ export default defineComponent({

View file

@ -14,9 +14,9 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import "@/components/common/fields.css"; import "components/common/fields.css";
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "features/feature";
import { computeOptionalComponent } from "@/util/vue"; import { computeOptionalComponent } from "util/vue";
import { ref, toRef, watch } from "vue"; import { ref, toRef, watch } from "vue";
import VueNextSelect from "vue-next-select"; import VueNextSelect from "vue-next-select";
import "vue-next-select/dist/index.css"; import "vue-next-select/dist/index.css";

View file

@ -10,7 +10,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, toRefs, unref } from "vue"; import { computed, toRefs, unref } from "vue";
import Tooltip from "../Tooltip.vue"; import Tooltip from "../Tooltip.vue";
import "@/components/common/fields.css"; import "components/common/fields.css";
const _props = defineProps<{ const _props = defineProps<{
title?: string; title?: string;

View file

@ -26,11 +26,11 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "features/feature";
import { coerceComponent } from "@/util/vue"; import { coerceComponent } from "util/vue";
import { computed, onMounted, ref, toRefs, unref } from "vue"; import { computed, onMounted, ref, toRefs, unref } from "vue";
import VueTextareaAutosize from "vue-textarea-autosize"; import VueTextareaAutosize from "vue-textarea-autosize";
import "@/components/common/fields.css"; import "components/common/fields.css";
const _props = defineProps<{ const _props = defineProps<{
title?: CoercableComponent; title?: CoercableComponent;

View file

@ -6,10 +6,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "features/feature";
import { coerceComponent } from "@/util/vue"; import { coerceComponent } from "util/vue";
import { computed, unref } from "vue"; import { computed, unref } from "vue";
import "@/components/common/fields.css"; import "components/common/fields.css";
const props = defineProps<{ const props = defineProps<{
title?: CoercableComponent; title?: CoercableComponent;

View file

@ -7,9 +7,9 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import "@/components/common/table.css"; import "components/common/table.css";
import themes from "@/data/themes"; import themes from "data/themes";
import settings from "@/game/settings"; import settings from "game/settings";
import { computed } from "vue"; import { computed } from "vue";
const mergeAdjacent = computed(() => themes[settings.theme].mergeAdjacent); const mergeAdjacent = computed(() => themes[settings.theme].mergeAdjacent);

View file

@ -7,9 +7,9 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import "@/components/common/table.css"; import "components/common/table.css";
import themes from "@/data/themes"; import themes from "data/themes";
import settings from "@/game/settings"; import settings from "game/settings";
import { computed } from "vue"; import { computed } from "vue";
const mergeAdjacent = computed(() => themes[settings.theme].mergeAdjacent); const mergeAdjacent = computed(() => themes[settings.theme].mergeAdjacent);

View file

@ -11,7 +11,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { Link, LinkNode } from "@/features/links"; import { Link, LinkNode } from "features/links";
import { computed, toRefs, unref } from "vue"; import { computed, toRefs, unref } from "vue";
const _props = defineProps<{ const _props = defineProps<{

View file

@ -3,7 +3,7 @@
</template> </template>
<script setup lang="ts"> <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"; import { computed, inject, onUnmounted, ref, toRefs, unref, watch } from "vue";
const _props = defineProps<{ id: string }>(); const _props = defineProps<{ id: string }>();

View file

@ -18,7 +18,7 @@ import {
LinkNode, LinkNode,
RegisterLinkNodeInjectionKey, RegisterLinkNodeInjectionKey,
UnregisterLinkNodeInjectionKey UnregisterLinkNodeInjectionKey
} from "@/features/links"; } from "features/links";
import { computed, nextTick, onMounted, provide, ref, toRef } from "vue"; import { computed, nextTick, onMounted, provide, ref, toRef } from "vue";
import LinkVue from "./Link.vue"; import LinkVue from "./Link.vue";

View file

@ -19,7 +19,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/Modal.vue"; import Modal from "components/Modal.vue";
import { ref } from "vue"; import { ref } from "vue";
const isOpen = ref(false); const isOpen = ref(false);

View file

@ -3,25 +3,25 @@ import {
ClickableOptions, ClickableOptions,
createClickable, createClickable,
GenericClickable GenericClickable
} from "@/features/clickables/clickable"; } from "features/clickables/clickable";
import { GenericConversion } from "@/features/conversion"; import { GenericConversion } from "features/conversion";
import { CoercableComponent, jsx, Replace, setDefault } from "@/features/feature"; import { CoercableComponent, jsx, Replace, setDefault } from "features/feature";
import { displayResource } from "@/features/resources/resource"; import { displayResource } from "features/resources/resource";
import { import {
createTreeNode, createTreeNode,
GenericTree, GenericTree,
GenericTreeNode, GenericTreeNode,
TreeNode, TreeNode,
TreeNodeOptions TreeNodeOptions
} from "@/features/trees/tree"; } from "features/trees/tree";
import player from "@/game/player"; import player from "game/player";
import Decimal from "@/util/bignum"; import Decimal from "util/bignum";
import { import {
Computable, Computable,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { computed, Ref, unref } from "vue"; import { computed, Ref, unref } from "vue";
export interface ResetButtonOptions extends ClickableOptions { export interface ResetButtonOptions extends ClickableOptions {

View file

@ -1,12 +1,12 @@
import { main } from "@/data/projEntry"; import { main } from "data/projEntry";
import { createCumulativeConversion, createExponentialScaling } from "@/features/conversion"; import { createCumulativeConversion, createExponentialScaling } from "features/conversion";
import { jsx } from "@/features/feature"; import { jsx } from "features/feature";
import { createReset } from "@/features/reset"; import { createReset } from "features/reset";
import MainDisplay from "@/features/resources/MainDisplay.vue"; import MainDisplay from "features/resources/MainDisplay.vue";
import { createResource } from "@/features/resources/resource"; import { createResource } from "features/resources/resource";
import { createLayer } from "@/game/layers"; import { createLayer } from "game/layers";
import { DecimalSource } from "@/lib/break_eternity"; import { DecimalSource } from "lib/break_eternity";
import { render } from "@/util/vue"; import { render } from "util/vue";
import { createLayerTreeNode, createResetButton } from "../common"; import { createLayerTreeNode, createResetButton } from "../common";
const layer = createLayer(() => { const layer = createLayer(() => {

View file

@ -1,13 +1,13 @@
import Spacer from "@/components/layout/Spacer.vue"; import Spacer from "components/layout/Spacer.vue";
import { jsx } from "@/features/feature"; import { jsx } from "features/feature";
import { createResource, trackBest, trackOOMPS, trackTotal } from "@/features/resources/resource"; import { createResource, trackBest, trackOOMPS, trackTotal } from "features/resources/resource";
import { branchedResetPropagation, createTree, GenericTree } from "@/features/trees/tree"; import { branchedResetPropagation, createTree, GenericTree } from "features/trees/tree";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import { createLayer, GenericLayer } from "@/game/layers"; import { createLayer, GenericLayer } from "game/layers";
import player, { PlayerData } from "@/game/player"; import player, { PlayerData } from "game/player";
import { DecimalSource } from "@/lib/break_eternity"; import { DecimalSource } from "lib/break_eternity";
import Decimal, { format, formatTime } from "@/util/bignum"; import Decimal, { format, formatTime } from "util/bignum";
import { render } from "@/util/vue"; import { render } from "util/vue";
import { computed, toRaw } from "vue"; import { computed, toRaw } from "vue";
import prestige from "./layers/prestige"; import prestige from "./layers/prestige";

View file

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

View file

@ -23,13 +23,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { CoercableComponent, Visibility } from "@/features/feature"; import { CoercableComponent, Visibility } from "features/feature";
import { computeOptionalComponent, processedPropType } from "@/util/vue"; import { computeOptionalComponent, processedPropType } from "util/vue";
import { defineComponent, StyleValue, toRefs, unref } from "vue"; import { defineComponent, StyleValue, toRefs, unref } from "vue";
import Tooltip from "@/components/Tooltip.vue"; import Tooltip from "components/Tooltip.vue";
import LinkNode from "@/components/links/LinkNode.vue"; import LinkNode from "components/links/LinkNode.vue";
import MarkNode from "@/components/MarkNode.vue"; import MarkNode from "components/MarkNode.vue";
import "@/components/common/features.css"; import "components/common/features.css";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,4 @@
import AchievementComponent from "@/features/achievements/Achievement.vue"; import AchievementComponent from "features/achievements/Achievement.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -9,19 +9,19 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import "@/game/notifications"; import "game/notifications";
import { Persistent, makePersistent, PersistentState } from "@/game/persistence"; import { Persistent, makePersistent, PersistentState } from "game/persistence";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { coerceComponent } from "@/util/vue"; import { coerceComponent } from "util/vue";
import { Unsubscribe } from "nanoevents"; import { Unsubscribe } from "nanoevents";
import { Ref, unref } from "vue"; import { Ref, unref } from "vue";
import { useToast } from "vue-toastification"; import { useToast } from "vue-toastification";

View file

@ -46,12 +46,12 @@
<script lang="ts"> <script lang="ts">
import { Direction } from "./bar"; import { Direction } from "./bar";
import { CoercableComponent, Visibility } from "@/features/feature"; import { CoercableComponent, Visibility } from "features/feature";
import Decimal, { DecimalSource } from "@/util/bignum"; import Decimal, { DecimalSource } from "util/bignum";
import { computeOptionalComponent, processedPropType, unwrapRef } from "@/util/vue"; import { computeOptionalComponent, processedPropType, unwrapRef } from "util/vue";
import { computed, CSSProperties, defineComponent, StyleValue, toRefs, unref } from "vue"; import { computed, CSSProperties, defineComponent, StyleValue, toRefs, unref } from "vue";
import LinkNode from "@/components/links/LinkNode.vue"; import LinkNode from "components/links/LinkNode.vue";
import MarkNode from "@/components/MarkNode.vue"; import MarkNode from "components/MarkNode.vue";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,4 @@
import BarComponent from "@/features/bars/Bar.vue"; import BarComponent from "features/bars/Bar.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -8,16 +8,16 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { DecimalSource } from "@/lib/break_eternity"; import { DecimalSource } from "lib/break_eternity";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
export const BarType = Symbol("Bar"); export const BarType = Symbol("Bar");

View file

@ -51,9 +51,9 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { BoardNode, GenericBoard, getNodeProperty } from "@/features/boards/board"; import { BoardNode, GenericBoard, getNodeProperty } from "features/boards/board";
import { FeatureComponent, Visibility } from "@/features/feature"; import { FeatureComponent, Visibility } from "features/feature";
import { PersistentState } from "@/game/persistence"; import { PersistentState } from "game/persistence";
import { computed, ref, toRefs } from "vue"; import { computed, ref, toRefs } from "vue";
import panZoom from "vue-panzoom"; import panZoom from "vue-panzoom";
import BoardLinkVue from "./BoardLink.vue"; import BoardLinkVue from "./BoardLink.vue";

View file

@ -11,7 +11,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { BoardNodeLink } from "@/features/boards/board"; import { BoardNodeLink } from "features/boards/board";
import { computed, toRefs, unref } from "vue"; import { computed, toRefs, unref } from "vue";
const _props = defineProps<{ const _props = defineProps<{

View file

@ -167,7 +167,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import themes from "@/data/themes"; import themes from "data/themes";
import { import {
BoardNode, BoardNode,
GenericBoardNodeAction, GenericBoardNodeAction,
@ -175,9 +175,9 @@ import {
getNodeProperty, getNodeProperty,
ProgressDisplay, ProgressDisplay,
Shape Shape
} from "@/features/boards/board"; } from "features/boards/board";
import { Visibility } from "@/features/feature"; import { Visibility } from "features/feature";
import settings from "@/game/settings"; import settings from "game/settings";
import { computed, ref, toRefs, unref, watch } from "vue"; import { computed, ref, toRefs, unref, watch } from "vue";
const sqrtTwo = Math.sqrt(2); 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 { import {
Component, Component,
findFeatures, findFeatures,
@ -8,19 +8,19 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import { State, Persistent, makePersistent, PersistentState } from "@/game/persistence"; import { State, Persistent, makePersistent, PersistentState } from "game/persistence";
import Decimal, { DecimalSource } from "@/lib/break_eternity"; import Decimal, { DecimalSource } from "lib/break_eternity";
import { isFunction } from "@/util/common"; import { isFunction } from "util/common";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { Unsubscribe } from "nanoevents"; import { Unsubscribe } from "nanoevents";
import { computed, Ref, unref } from "vue"; import { computed, Ref, unref } from "vue";
import { Link } from "../links"; import { Link } from "../links";

View file

@ -1,16 +1,16 @@
import ClickableComponent from "@/features/clickables/Clickable.vue"; import ClickableComponent from "features/clickables/Clickable.vue";
import { Resource } from "@/features/resources/resource"; import { Resource } from "features/resources/resource";
import { Persistent, makePersistent, PersistentState } from "@/game/persistence"; import { Persistent, makePersistent, PersistentState } from "game/persistence";
import Decimal, { DecimalSource, format, formatWhole } from "@/util/bignum"; import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { coerceComponent, isCoercableComponent } from "@/util/vue"; import { coerceComponent, isCoercableComponent } from "util/vue";
import { computed, Ref, unref } from "vue"; import { computed, Ref, unref } from "vue";
import { import {
CoercableComponent, CoercableComponent,

View file

@ -27,11 +27,11 @@
</template> </template>
<script lang="tsx"> <script lang="tsx">
import "@/components/common/features.css"; import "components/common/features.css";
import { GenericChallenge } from "@/features/challenges/challenge"; import { GenericChallenge } from "features/challenges/challenge";
import { jsx, StyleValue, Visibility } from "@/features/feature"; import { jsx, StyleValue, Visibility } from "features/feature";
import { getHighNotifyStyle, getNotifyStyle } from "@/game/notifications"; import { getHighNotifyStyle, getNotifyStyle } from "game/notifications";
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "@/util/vue"; import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue";
import { import {
Component, Component,
computed, computed,
@ -43,8 +43,8 @@ import {
UnwrapRef, UnwrapRef,
watchEffect watchEffect
} from "vue"; } from "vue";
import LinkNode from "@/components/links/LinkNode.vue"; import LinkNode from "components/links/LinkNode.vue";
import MarkNode from "@/components/MarkNode.vue"; import MarkNode from "components/MarkNode.vue";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,5 +1,5 @@
import Toggle from "@/components/fields/Toggle.vue"; import Toggle from "components/fields/Toggle.vue";
import ChallengeComponent from "@/features/challenges/Challenge.vue"; import ChallengeComponent from "features/challenges/Challenge.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -10,21 +10,21 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { GenericReset } from "@/features/reset"; import { GenericReset } from "features/reset";
import { Resource } from "@/features/resources/resource"; import { Resource } from "features/resources/resource";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import { persistent, PersistentRef } from "@/game/persistence"; import { persistent, PersistentRef } from "game/persistence";
import settings, { registerSettingField } from "@/game/settings"; import settings, { registerSettingField } from "game/settings";
import Decimal, { DecimalSource } from "@/util/bignum"; import Decimal, { DecimalSource } from "util/bignum";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { computed, Ref, unref } from "vue"; import { computed, Ref, unref } from "vue";
export const ChallengeType = Symbol("ChallengeType"); export const ChallengeType = Symbol("ChallengeType");

View file

@ -29,18 +29,18 @@
</template> </template>
<script lang="tsx"> <script lang="tsx">
import "@/components/common/features.css"; import "components/common/features.css";
import LinkNode from "@/components/links/LinkNode.vue"; import LinkNode from "components/links/LinkNode.vue";
import MarkNode from "@/components/MarkNode.vue"; import MarkNode from "components/MarkNode.vue";
import { GenericClickable } from "@/features/clickables/clickable"; import { GenericClickable } from "features/clickables/clickable";
import { jsx, StyleValue, Visibility } from "@/features/feature"; import { jsx, StyleValue, Visibility } from "features/feature";
import { import {
coerceComponent, coerceComponent,
isCoercableComponent, isCoercableComponent,
processedPropType, processedPropType,
setupHoldToClick, setupHoldToClick,
unwrapRef unwrapRef
} from "@/util/vue"; } from "util/vue";
import { import {
Component, Component,
defineComponent, defineComponent,

View file

@ -1,4 +1,4 @@
import ClickableComponent from "@/features/clickables/Clickable.vue"; import ClickableComponent from "features/clickables/Clickable.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -8,15 +8,15 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { unref } from "vue"; import { unref } from "vue";
export const ClickableType = Symbol("Clickable"); export const ClickableType = Symbol("Clickable");

View file

@ -1,12 +1,12 @@
import { GenericLayer } from "@/game/layers"; import { GenericLayer } from "game/layers";
import Decimal, { DecimalSource } from "@/util/bignum"; import Decimal, { DecimalSource } from "util/bignum";
import { import {
Computable, Computable,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { computed, isRef, Ref, unref } from "vue"; import { computed, isRef, Ref, unref } from "vue";
import { Replace, setDefault } from "./feature"; import { Replace, setDefault } from "./feature";
import { Resource } from "./resources/resource"; import { Resource } from "./resources/resource";

View file

@ -1,6 +1,6 @@
import { DefaultValue } from "@/game/persistence"; import { DefaultValue } from "game/persistence";
import Decimal from "@/util/bignum"; import Decimal from "util/bignum";
import { DoNotCache, ProcessedComputable } from "@/util/computed"; import { DoNotCache, ProcessedComputable } from "util/computed";
import { CSSProperties, DefineComponent, isRef } from "vue"; import { CSSProperties, DefineComponent, isRef } from "vue";
export const Component = Symbol("Component"); export const Component = Symbol("Component");

View file

@ -17,12 +17,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import "@/components/common/table.css"; import "components/common/table.css";
import themes from "@/data/themes"; import themes from "data/themes";
import { Visibility } from "@/features/feature"; import { Visibility } from "features/feature";
import { GridCell } from "@/features/grids/grid"; import { GridCell } from "features/grids/grid";
import settings from "@/game/settings"; import settings from "game/settings";
import { processedPropType } from "@/util/vue"; import { processedPropType } from "util/vue";
import { computed, defineComponent, unref } from "vue"; import { computed, defineComponent, unref } from "vue";
import GridCellVue from "./GridCell.vue"; import GridCellVue from "./GridCell.vue";

View file

@ -23,15 +23,15 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import "@/components/common/features.css"; import "components/common/features.css";
import LinkNode from "@/components/links/LinkNode.vue"; import LinkNode from "components/links/LinkNode.vue";
import { CoercableComponent, StyleValue, Visibility } from "@/features/feature"; import { CoercableComponent, StyleValue, Visibility } from "features/feature";
import { import {
computeComponent, computeComponent,
computeOptionalComponent, computeOptionalComponent,
processedPropType, processedPropType,
setupHoldToClick setupHoldToClick
} from "@/util/vue"; } from "util/vue";
import { defineComponent, PropType, toRefs, unref } from "vue"; import { defineComponent, PropType, toRefs, unref } from "vue";
export default defineComponent({ export default defineComponent({

View file

@ -1,4 +1,4 @@
import GridComponent from "@/features/grids/Grid.vue"; import GridComponent from "features/grids/Grid.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -8,18 +8,18 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { isFunction } from "@/util/common"; import { isFunction } from "util/common";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { computed, Ref, unref } from "vue"; 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"); export const GridType = Symbol("Grid");

View file

@ -1,14 +1,14 @@
import { hasWon } from "@/data/projEntry"; import { hasWon } from "data/projEntry";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import player from "@/game/player"; import player from "game/player";
import { import {
Computable, Computable,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
GetComputableType, GetComputableType,
ProcessedComputable, ProcessedComputable,
processComputable processComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { unref } from "vue"; import { unref } from "vue";
import { findFeatures, Replace, setDefault } from "./feature"; import { findFeatures, Replace, setDefault } from "./feature";

View file

@ -29,11 +29,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import LinkNode from "@/components/links/LinkNode.vue"; import LinkNode from "components/links/LinkNode.vue";
import themes from "@/data/themes"; import themes from "data/themes";
import { CoercableComponent, Visibility } from "@/features/feature"; import { CoercableComponent, Visibility } from "features/feature";
import settings from "@/game/settings"; import settings from "game/settings";
import { computeComponent, processedPropType } from "@/util/vue"; import { computeComponent, processedPropType } from "util/vue";
import CollapseTransition from "@ivanv/vue-collapse-transition/src/CollapseTransition.vue"; import CollapseTransition from "@ivanv/vue-collapse-transition/src/CollapseTransition.vue";
import { computed, defineComponent, PropType, Ref, StyleValue, toRefs, unref } from "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 { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -8,17 +8,17 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { Ref } from "vue"; import { Ref } from "vue";
import { Persistent, makePersistent, PersistentState } from "@/game/persistence"; import { Persistent, makePersistent, PersistentState } from "game/persistence";
export const InfoboxType = Symbol("Infobox"); 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"; import { InjectionKey, SVGAttributes } from "vue";
export interface LinkNode { export interface LinkNode {

View file

@ -15,10 +15,10 @@
</template> </template>
<script lang="tsx"> <script lang="tsx">
import "@/components/common/features.css"; import "components/common/features.css";
import { jsx, StyleValue, Visibility } from "@/features/feature"; import { jsx, StyleValue, Visibility } from "features/feature";
import { GenericMilestone } from "@/features/milestones/milestone"; import { GenericMilestone } from "features/milestones/milestone";
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "@/util/vue"; import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue";
import { Component, defineComponent, shallowRef, toRefs, unref, UnwrapRef, watchEffect } from "vue"; import { Component, defineComponent, shallowRef, toRefs, unref, UnwrapRef, watchEffect } from "vue";
import LinkNode from "../../components/links/LinkNode.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 { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -10,22 +10,22 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import MilestoneComponent from "@/features/milestones/Milestone.vue"; import MilestoneComponent from "features/milestones/Milestone.vue";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import "@/game/notifications"; import "game/notifications";
import { makePersistent, Persistent, PersistentState } from "@/game/persistence"; import { makePersistent, Persistent, PersistentState } from "game/persistence";
import settings, { registerSettingField } from "@/game/settings"; import settings, { registerSettingField } from "game/settings";
import { camelToTitle } from "@/util/common"; import { camelToTitle } from "util/common";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { coerceComponent, isCoercableComponent } from "@/util/vue"; import { coerceComponent, isCoercableComponent } from "util/vue";
import { Unsubscribe } from "nanoevents"; import { Unsubscribe } from "nanoevents";
import { computed, Ref, unref } from "vue"; import { computed, Ref, unref } from "vue";
import { useToast } from "vue-toastification"; import { useToast } from "vue-toastification";

View file

@ -1,16 +1,16 @@
import { getUniqueID, Replace } from "@/features/feature"; import { getUniqueID, Replace } from "features/feature";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import { GenericLayer } from "@/game/layers"; import { GenericLayer } from "game/layers";
import { import {
DefaultValue, DefaultValue,
Persistent, Persistent,
persistent, persistent,
PersistentRef, PersistentRef,
PersistentState PersistentState
} from "@/game/persistence"; } from "game/persistence";
import Decimal from "@/lib/break_eternity"; import Decimal from "lib/break_eternity";
import { Computable, GetComputableType, processComputable } from "@/util/computed"; import { Computable, GetComputableType, processComputable } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { Unsubscribe } from "nanoevents"; import { Unsubscribe } from "nanoevents";
import { computed, isRef, unref } from "vue"; import { computed, isRef, unref } from "vue";

View file

@ -10,12 +10,12 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "features/feature";
import { Resource } from "@/features/resources/resource"; import { Resource } from "features/resources/resource";
import Decimal from "@/util/bignum"; import Decimal from "util/bignum";
import { computeOptionalComponent } from "@/util/vue"; import { computeOptionalComponent } from "util/vue";
import { computed, Ref, StyleValue, toRefs } from "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<{ const _props = defineProps<{
resource: Resource; resource: Resource;

View file

@ -5,7 +5,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { displayResource, Resource } from "@/features/resources/resource"; import { displayResource, Resource } from "features/resources/resource";
import { computed } from "vue"; import { computed } from "vue";
const props = defineProps<{ 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 { computed, ComputedRef, ref, Ref, watch } from "vue";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import { State, persistent } from "@/game/persistence"; import { State, persistent } from "game/persistence";
export interface Resource<T = DecimalSource> extends Ref<T> { export interface Resource<T = DecimalSource> extends Ref<T> {
displayName: string; displayName: string;

View file

@ -3,8 +3,8 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "features/feature";
import { computeComponent } from "@/util/vue"; import { computeComponent } from "util/vue";
import { toRefs } from "vue"; import { toRefs } from "vue";
const _props = defineProps<{ display: CoercableComponent }>(); const _props = defineProps<{ display: CoercableComponent }>();

View file

@ -20,9 +20,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { CoercableComponent, StyleValue, Visibility } from "@/features/feature"; import { CoercableComponent, StyleValue, Visibility } from "features/feature";
import { getNotifyStyle } from "@/game/notifications"; import { getNotifyStyle } from "game/notifications";
import { computeComponent, processedPropType, unwrapRef } from "@/util/vue"; import { computeComponent, processedPropType, unwrapRef } from "util/vue";
import { computed, defineComponent, toRefs, unref } from "vue"; import { computed, defineComponent, toRefs, unref } from "vue";
export default defineComponent({ export default defineComponent({

View file

@ -30,14 +30,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import Sticky from "@/components/layout/Sticky.vue"; import Sticky from "components/layout/Sticky.vue";
import themes from "@/data/themes"; import themes from "data/themes";
import { CoercableComponent, StyleValue, Visibility } from "@/features/feature"; import { CoercableComponent, StyleValue, Visibility } from "features/feature";
import { GenericTab } from "@/features/tabs/tab"; import { GenericTab } from "features/tabs/tab";
import TabButton from "@/features/tabs/TabButton.vue"; import TabButton from "features/tabs/TabButton.vue";
import { GenericTabButton } from "@/features/tabs/tabFamily"; import { GenericTabButton } from "features/tabs/tabFamily";
import settings from "@/game/settings"; import settings from "game/settings";
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "@/util/vue"; import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue";
import { import {
Component, Component,
computed, computed,

View file

@ -5,10 +5,10 @@ import {
getUniqueID, getUniqueID,
Replace, Replace,
StyleValue StyleValue
} from "@/features/feature"; } from "features/feature";
import TabComponent from "@/features/tabs/Tab.vue"; import TabComponent from "features/tabs/Tab.vue";
import { Computable, GetComputableType } from "@/util/computed"; import { Computable, GetComputableType } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
export const TabType = Symbol("Tab"); export const TabType = Symbol("Tab");

View file

@ -7,18 +7,18 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import TabButtonComponent from "@/features/tabs/TabButton.vue"; import TabButtonComponent from "features/tabs/TabButton.vue";
import TabFamilyComponent from "@/features/tabs/TabFamily.vue"; import TabFamilyComponent from "features/tabs/TabFamily.vue";
import { Persistent, makePersistent, PersistentState } from "@/game/persistence"; import { Persistent, makePersistent, PersistentState } from "game/persistence";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { computed, Ref, unref } from "vue"; import { computed, Ref, unref } from "vue";
import { GenericTab } from "./tab"; import { GenericTab } from "./tab";

View file

@ -1,5 +1,5 @@
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "features/feature";
import { ProcessedComputable } from "@/util/computed"; import { ProcessedComputable } from "util/computed";
declare module "@vue/runtime-dom" { declare module "@vue/runtime-dom" {
interface CSSProperties { interface CSSProperties {

View file

@ -28,9 +28,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import "@/components/common/table.css"; import "components/common/table.css";
import { GenericTreeNode } from "@/features/trees/tree"; import { GenericTreeNode } from "features/trees/tree";
import { processedPropType } from "@/util/vue"; import { processedPropType } from "util/vue";
import { defineComponent, unref } from "vue"; import { defineComponent, unref } from "vue";
import TreeNode from "./TreeNode.vue"; import TreeNode from "./TreeNode.vue";

View file

@ -38,19 +38,19 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import LinkNode from "@/components/links/LinkNode.vue"; import LinkNode from "components/links/LinkNode.vue";
import MarkNode from "@/components/MarkNode.vue"; import MarkNode from "components/MarkNode.vue";
import TooltipVue from "@/components/Tooltip.vue"; import TooltipVue from "components/Tooltip.vue";
import { CoercableComponent, StyleValue, Visibility } from "@/features/feature"; import { CoercableComponent, StyleValue, Visibility } from "features/feature";
import { gatherTooltipProps, Tooltip } from "@/features/tooltip"; import { gatherTooltipProps, Tooltip } from "features/tooltip";
import { ProcessedComputable } from "@/util/computed"; import { ProcessedComputable } from "util/computed";
import { import {
computeOptionalComponent, computeOptionalComponent,
isCoercableComponent, isCoercableComponent,
processedPropType, processedPropType,
setupHoldToClick, setupHoldToClick,
unwrapRef unwrapRef
} from "@/util/vue"; } from "util/vue";
import { import {
computed, computed,
defineComponent, defineComponent,

View file

@ -7,15 +7,15 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { Link } from "@/features/links"; import { Link } from "features/links";
import { GenericReset } from "@/features/reset"; import { GenericReset } from "features/reset";
import { displayResource, Resource } from "@/features/resources/resource"; import { displayResource, Resource } from "features/resources/resource";
import { Tooltip } from "@/features/tooltip"; import { Tooltip } from "features/tooltip";
import TreeComponent from "@/features/trees/Tree.vue"; import TreeComponent from "features/trees/Tree.vue";
import { persistent } from "@/game/persistence"; import { persistent } from "game/persistence";
import { DecimalSource, format } from "@/util/bignum"; import { DecimalSource, format } from "util/bignum";
import Decimal, { formatWhole } from "@/util/break_eternity"; import Decimal, { formatWhole } from "util/break_eternity";
import { import {
Computable, Computable,
convertComputable, convertComputable,
@ -23,8 +23,8 @@ import {
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { computed, ref, Ref, unref } from "vue"; import { computed, ref, Ref, unref } from "vue";
export const TreeNodeType = Symbol("TreeNode"); export const TreeNodeType = Symbol("TreeNode");

View file

@ -25,14 +25,14 @@
</template> </template>
<script lang="tsx"> <script lang="tsx">
import "@/components/common/features.css"; import "components/common/features.css";
import LinkNode from "@/components/links/LinkNode.vue"; import LinkNode from "components/links/LinkNode.vue";
import MarkNode from "@/components/MarkNode.vue"; import MarkNode from "components/MarkNode.vue";
import { jsx, StyleValue, Visibility } from "@/features/feature"; import { jsx, StyleValue, Visibility } from "features/feature";
import { displayResource, Resource } from "@/features/resources/resource"; import { displayResource, Resource } from "features/resources/resource";
import { GenericUpgrade } from "@/features/upgrades/upgrade"; import { GenericUpgrade } from "features/upgrades/upgrade";
import { DecimalSource } from "@/lib/break_eternity"; import { DecimalSource } from "lib/break_eternity";
import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "@/util/vue"; import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue";
import { import {
Component, Component,
defineComponent, defineComponent,

View file

@ -1,4 +1,4 @@
import UpgradeComponent from "@/features/upgrades/Upgrade.vue"; import UpgradeComponent from "features/upgrades/Upgrade.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -9,21 +9,21 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "features/feature";
import { Resource } from "@/features/resources/resource"; import { Resource } from "features/resources/resource";
import { GenericLayer } from "@/game/layers"; import { GenericLayer } from "game/layers";
import Decimal, { DecimalSource } from "@/util/bignum"; import Decimal, { DecimalSource } from "util/bignum";
import { isFunction } from "@/util/common"; import { isFunction } from "util/common";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { computed, Ref, unref } from "vue"; 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"); export const UpgradeType = Symbol("Upgrade");

View file

@ -1,5 +1,5 @@
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import Decimal, { DecimalSource } from "@/util/bignum"; import Decimal, { DecimalSource } from "util/bignum";
import { createNanoEvents } from "nanoevents"; import { createNanoEvents } from "nanoevents";
import { App, Ref } from "vue"; import { App, Ref } from "vue";
import { GenericLayer } from "./layers"; import { GenericLayer } from "./layers";
@ -93,7 +93,7 @@ function update() {
} }
export async function startGameLoop() { export async function startGameLoop() {
hasWon = (await import("@/data/projEntry")).hasWon; hasWon = (await import("data/projEntry")).hasWon;
if (settings.unthrottled) { if (settings.unthrottled) {
requestAnimationFrame(update); requestAnimationFrame(update);
} else { } else {

View file

@ -1,4 +1,4 @@
import Modal from "@/components/Modal.vue"; import Modal from "components/Modal.vue";
import { import {
CoercableComponent, CoercableComponent,
jsx, jsx,
@ -6,17 +6,17 @@ import {
Replace, Replace,
setDefault, setDefault,
StyleValue StyleValue
} from "@/features/feature"; } from "features/feature";
import { Link } from "@/features/links"; import { Link } from "features/links";
import Decimal from "@/util/bignum"; import Decimal from "util/bignum";
import { import {
Computable, Computable,
GetComputableType, GetComputableType,
GetComputableTypeWithDefault, GetComputableTypeWithDefault,
processComputable, processComputable,
ProcessedComputable ProcessedComputable
} from "@/util/computed"; } from "util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "util/proxies";
import { createNanoEvents, Emitter } from "nanoevents"; import { createNanoEvents, Emitter } from "nanoevents";
import { ref, unref } from "vue"; import { ref, unref } from "vue";
import { globalBus } from "./events"; 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 Toast from "vue-toastification";
import "vue-toastification/dist/index.css"; import "vue-toastification/dist/index.css";

View file

@ -1,6 +1,6 @@
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import Decimal, { DecimalSource } from "@/util/bignum"; import Decimal, { DecimalSource } from "util/bignum";
import { ProxyState } from "@/util/proxies"; import { ProxyState } from "util/proxies";
import { isArray } from "@vue/shared"; import { isArray } from "@vue/shared";
import { isRef, Ref, ref } from "vue"; import { isRef, Ref, ref } from "vue";
import { GenericLayer } from "./layers"; import { GenericLayer } from "./layers";

View file

@ -1,6 +1,6 @@
import Decimal, { DecimalSource } from "@/util/bignum"; import Decimal, { DecimalSource } from "util/bignum";
import { isPlainObject } from "@/util/common"; import { isPlainObject } from "util/common";
import { ProxiedWithState, ProxyPath, ProxyState } from "@/util/proxies"; import { ProxiedWithState, ProxyPath, ProxyState } from "util/proxies";
import { reactive, unref } from "vue"; import { reactive, unref } from "vue";
import transientState from "./state"; import transientState from "./state";

View file

@ -1,8 +1,8 @@
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import { Themes } from "@/data/themes"; import { Themes } from "data/themes";
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "features/feature";
import { globalBus } from "@/game/events"; import { globalBus } from "game/events";
import { hardReset } from "@/util/save"; import { hardReset } from "util/save";
import { reactive, watch } from "vue"; import { reactive, watch } from "vue";
export interface Settings { 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 // 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 // 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 { DecimalSource as RawDecimalSource } from "lib/break_eternity";
import Decimal, * as numberUtils from "@/util/break_eternity"; import Decimal, * as numberUtils from "util/break_eternity";
export const { export const {
exponentialFormat, exponentialFormat,

View file

@ -1,5 +1,5 @@
import Decimal, { DecimalSource } from "@/lib/break_eternity"; import Decimal, { DecimalSource } from "lib/break_eternity";
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
export default Decimal; export default Decimal;

View file

@ -1,6 +1,6 @@
import projInfo from "@/data/projInfo.json"; import projInfo from "data/projInfo.json";
import player, { Player, PlayerData, stringifySave } from "@/game/player"; import player, { Player, PlayerData, stringifySave } from "game/player";
import settings, { loadSettings } from "@/game/settings"; import settings, { loadSettings } from "game/settings";
import Decimal from "./bignum"; import Decimal from "./bignum";
import { ProxyState } from "./proxies"; import { ProxyState } from "./proxies";
@ -74,8 +74,8 @@ export function getUniqueID(): string {
export async function loadSave(playerObj: Partial<PlayerData>): Promise<void> { export async function loadSave(playerObj: Partial<PlayerData>): Promise<void> {
console.info("Loading save", playerObj); console.info("Loading save", playerObj);
const { layers, removeLayer, addLayer } = await import("@/game/layers"); const { layers, removeLayer, addLayer } = await import("game/layers");
const { fixOldSave, getInitialLayers } = await import("@/data/projEntry"); const { fixOldSave, getInitialLayers } = await import("data/projEntry");
for (const layer in layers) { for (const layer in layers) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion // eslint-disable-next-line @typescript-eslint/no-non-null-assertion

View file

@ -1,12 +1,12 @@
import Col from "@/components/layout/Column.vue"; import Col from "components/layout/Column.vue";
import Row from "@/components/layout/Row.vue"; import Row from "components/layout/Row.vue";
import { import {
CoercableComponent, CoercableComponent,
Component as ComponentKey, Component as ComponentKey,
GatherProps, GatherProps,
GenericComponent, GenericComponent,
JSXFunction JSXFunction
} from "@/features/feature"; } from "features/feature";
import { import {
Component, Component,
computed, computed,

View file

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