Reorganized components

This commit is contained in:
thepaperpilot 2022-02-27 16:04:56 -06:00
parent 552aca20e4
commit a8af84f581
65 changed files with 147 additions and 144 deletions

View file

@ -11,11 +11,11 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, toRef, unref } from "vue"; import { computed, toRef, unref } from "vue";
import Game from "./components/system/Game.vue"; import Game from "./components/Game.vue";
import GameOverScreen from "./components/system/GameOverScreen.vue"; import GameOverScreen from "./components/GameOverScreen.vue";
import NaNScreen from "./components/system/NaNScreen.vue"; import NaNScreen from "./components/NaNScreen.vue";
import Nav from "./components/system/Nav.vue"; import Nav from "./components/Nav.vue";
import TPS from "./components/system/TPS.vue"; import TPS from "./components/TPS.vue";
import modInfo from "./data/modInfo.json"; import modInfo from "./data/modInfo.json";
import themes from "./data/themes"; import themes from "./data/themes";
import settings from "./game/settings"; import settings from "./game/settings";

View file

@ -36,7 +36,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/system/Modal.vue"; import Modal from "@/components/Modal.vue";
import { hasWon } from "@/data/mod"; import { hasWon } from "@/data/mod";
import modInfo from "@/data/modInfo.json"; import modInfo from "@/data/modInfo.json";
import player from "@/game/player"; import player from "@/game/player";

View file

@ -48,13 +48,12 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/system/Modal.vue"; import Modal from "@/components/Modal.vue";
import type Changelog from "@/data/Changelog.vue"; import type Changelog from "@/data/Changelog.vue";
import modInfo from "@/data/modInfo.json"; import modInfo from "@/data/modInfo.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";
import Profectus from "./Profectus.vue";
const { title, logo, author, discordName, discordLink, versionNumber, versionTitle } = modInfo; const { title, logo, author, discordName, discordLink, versionNumber, versionTitle } = modInfo;

View file

@ -21,7 +21,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import Links from "@/components/system/Links.vue"; import Links from "@/components/links/Links.vue";
import modInfo from "@/data/modInfo.json"; import modInfo from "@/data/modInfo.json";
import { CoercableComponent, PersistentRef, StyleValue } from "@/features/feature"; import { CoercableComponent, PersistentRef, StyleValue } from "@/features/feature";
import { Link } from "@/features/links"; import { Link } from "@/features/links";

View file

@ -42,7 +42,7 @@
<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.vue"; import Links from "./links/Links.vue";
const _props = defineProps<{ const _props = defineProps<{
modelValue: boolean; modelValue: boolean;

View file

@ -43,13 +43,13 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/system/Modal.vue"; import Modal from "@/components/Modal.vue";
import modInfo from "@/data/modInfo.json"; import modInfo from "@/data/modInfo.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";
const { discordName, discordLink } = modInfo; const { discordName, discordLink } = modInfo;

View file

@ -19,15 +19,15 @@
</template> </template>
<script setup lang="tsx"> <script setup lang="tsx">
import Modal from "@/components/system/Modal.vue"; import Modal from "@/components/Modal.vue";
import rawThemes from "@/data/themes"; import rawThemes from "@/data/themes";
import { MilestoneDisplay } from "@/features/milestone"; import { MilestoneDisplay } from "@/features/milestones/milestone";
import player from "@/game/player"; import player from "@/game/player";
import settings from "@/game/settings"; import settings 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";

View file

@ -51,16 +51,18 @@
<div class="details" v-else-if="save.error == undefined && isEditing"> <div class="details" v-else-if="save.error == undefined && isEditing">
<Text v-model="newName" class="editname" @submit="changeName" /> <Text v-model="newName" class="editname" @submit="changeName" />
</div> </div>
<div v-else class="details error">Error: Failed to load save with id {{ save.id }}<br/>{{ save.error }}</div> <div v-else class="details error">
Error: Failed to load save with id {{ save.id }}<br />{{ save.error }}
</div>
</div> </div>
</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";
import Text from "../fields/Text.vue"; import Text from "./fields/Text.vue";
import { LoadablePlayerData } from "./SavesManager.vue"; import { LoadablePlayerData } from "./SavesManager.vue";
const _props = defineProps<{ const _props = defineProps<{

View file

@ -57,7 +57,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/system/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";
@ -70,8 +70,8 @@ import {
unref, unref,
watch watch
} from "vue"; } from "vue";
import Select from "../fields/Select.vue"; import Select from "./fields/Select.vue";
import Text from "../fields/Text.vue"; import Text from "./fields/Text.vue";
import Save from "./Save.vue"; import Save from "./Save.vue";
import Draggable from "vuedraggable"; import Draggable from "vuedraggable";
@ -117,7 +117,7 @@ watch(saveToImport, save => {
} }
}); });
let bankContext = require.context("raw-loader!../../../saves", true, /\.txt$/); let bankContext = require.context("raw-loader!../../saves", true, /\.txt$/);
let bank = ref( let bank = ref(
bankContext.keys().reduce((acc: Array<{ label: string; value: string }>, curr) => { bankContext.keys().reduce((acc: Array<{ label: string; value: string }>, curr) => {
// .slice(2, -4) strips the leading ./ and the trailing .txt // .slice(2, -4) strips the leading ./ and the trailing .txt

View file

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

View file

@ -19,7 +19,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Modal from "@/components/system/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,17 +3,17 @@ import {
ClickableOptions, ClickableOptions,
createClickable, createClickable,
GenericClickable GenericClickable
} from "@/features/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/resource"; import { displayResource } from "@/features/resources/resource";
import { import {
createTreeNode, createTreeNode,
GenericTree, GenericTree,
GenericTreeNode, GenericTreeNode,
TreeNode, TreeNode,
TreeNodeOptions TreeNodeOptions
} from "@/features/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 {

View file

@ -1,11 +1,11 @@
import Row from "@/components/system/Row.vue"; import Row from "@/components/layout/Row.vue";
import Tooltip from "@/components/system/Tooltip.vue"; import Tooltip from "@/components/Tooltip.vue";
import { main } from "@/data/mod"; import { main } from "@/data/mod";
import { createAchievement } from "@/features/achievement"; import { createAchievement } from "@/features/achievements/achievement";
import { jsx } from "@/features/feature"; import { jsx } from "@/features/feature";
import { createGrid } from "@/features/grid"; import { createGrid } from "@/features/grids/grid";
import { createResource } from "@/features/resource"; import { createResource } from "@/features/resources/resource";
import { createTreeNode } from "@/features/tree"; import { createTreeNode } from "@/features/trees/tree";
import { createLayer } from "@/game/layers"; import { createLayer } from "@/game/layers";
import { DecimalSource } from "@/lib/break_eternity"; import { DecimalSource } from "@/lib/break_eternity";
import Decimal from "@/util/bignum"; import Decimal from "@/util/bignum";

View file

@ -1,21 +1,19 @@
import MainDisplay from "@/components/features/MainDisplay.vue";
import Slider from "@/components/fields/Slider.vue"; import Slider from "@/components/fields/Slider.vue";
import Text from "@/components/fields/Text.vue"; import Text from "@/components/fields/Text.vue";
import Toggle from "@/components/fields/Toggle.vue"; import Toggle from "@/components/fields/Toggle.vue";
import Column from "@/components/system/Column.vue"; import Column from "@/components/layout/Column.vue";
import Modal from "@/components/system/Modal.vue"; import Row from "@/components/layout/Row.vue";
import Resource from "@/components/system/Resource.vue"; import Spacer from "@/components/layout/Spacer.vue";
import Row from "@/components/system/Row.vue"; import Sticky from "@/components/layout/Sticky.vue";
import Spacer from "@/components/system/Spacer.vue"; import VerticalRule from "@/components/layout/VerticalRule.vue";
import Sticky from "@/components/system/Sticky.vue"; import Modal from "@/components/Modal.vue";
import VerticalRule from "@/components/system/VerticalRule.vue";
import { createLayerTreeNode, createResetButton } from "@/data/common"; import { createLayerTreeNode, createResetButton } from "@/data/common";
import { main } from "@/data/mod"; import { main } from "@/data/mod";
import themes from "@/data/themes"; import themes from "@/data/themes";
import { createBar, Direction } from "@/features/bar"; import { createBar, Direction } from "@/features/bars/bar";
import { createBuyable } from "@/features/buyable"; import { createBuyable } from "@/features/buyable";
import { createChallenge } from "@/features/challenge"; import { createChallenge } from "@/features/challenges/challenge";
import { createClickable } from "@/features/clickable"; import { createClickable } from "@/features/clickables/clickable";
import { import {
addSoftcap, addSoftcap,
createCumulativeConversion, createCumulativeConversion,
@ -23,14 +21,16 @@ import {
} from "@/features/conversion"; } from "@/features/conversion";
import { jsx, persistent, showIf, Visibility } from "@/features/feature"; import { jsx, persistent, showIf, Visibility } from "@/features/feature";
import { createHotkey } from "@/features/hotkey"; import { createHotkey } from "@/features/hotkey";
import { createInfobox } from "@/features/infobox"; import { createInfobox } from "@/features/infoboxes/infobox";
import { createMilestone } from "@/features/milestone"; import { createMilestone } from "@/features/milestones/milestone";
import { createReset } from "@/features/reset"; import { createReset } from "@/features/reset";
import { createResource, displayResource, trackBest } from "@/features/resource"; import MainDisplay from "@/features/resources/MainDisplay.vue";
import { createTab } from "@/features/tab"; import { createResource, displayResource, trackBest } from "@/features/resources/resource";
import { createTabButton, createTabFamily } from "@/features/tabFamily"; import Resource from "@/features/resources/Resource.vue";
import { createTree, createTreeNode, GenericTreeNode, TreeBranch } from "@/features/tree"; import { createTab } from "@/features/tabs/tab";
import { createUpgrade } from "@/features/upgrade"; import { createTabButton, createTabFamily } from "@/features/tabs/tabFamily";
import { createTree, createTreeNode, GenericTreeNode, TreeBranch } from "@/features/trees/tree";
import { createUpgrade } from "@/features/upgrades/upgrade";
import { createLayer } from "@/game/layers"; import { createLayer } from "@/game/layers";
import settings from "@/game/settings"; import settings from "@/game/settings";
import { DecimalSource } from "@/lib/break_eternity"; import { DecimalSource } from "@/lib/break_eternity";
@ -121,12 +121,14 @@ const layer = createLayer(() => {
return showIf(Decimal.gt(best.value, 0)); return showIf(Decimal.gt(best.value, 0));
}, },
goal: 20, goal: 20,
reset,
resource: main.points, resource: main.points,
onComplete() { onComplete() {
console.log("hiii"); console.log("hiii");
}, },
onEnter() { onEnter() {
main.points.value = 0;
main.best.value = main.points.value;
main.total.value = main.points.value;
console.log("So challenging"); console.log("So challenging");
}, },
onExit() { onExit() {

View file

@ -1,12 +1,12 @@
import MainDisplay from "@/components/features/MainDisplay.vue";
import { createLayerTreeNode, createResetButton } from "@/data/common"; import { createLayerTreeNode, createResetButton } from "@/data/common";
import { main } from "@/data/mod"; import { main } from "@/data/mod";
import { createClickable } from "@/features/clickable"; import { createClickable } from "@/features/clickables/clickable";
import { createExponentialScaling, createIndependentConversion } from "@/features/conversion"; import { createExponentialScaling, createIndependentConversion } from "@/features/conversion";
import { jsx, persistent } from "@/features/feature"; import { jsx, persistent } from "@/features/feature";
import { createInfobox } from "@/features/infobox"; import { createInfobox } from "@/features/infoboxes/infobox";
import { createReset } from "@/features/reset"; import { createReset } from "@/features/reset";
import { createResource, displayResource } from "@/features/resource"; import MainDisplay from "@/features/resources/MainDisplay.vue";
import { createResource, displayResource } from "@/features/resources/resource";
import { createLayer } from "@/game/layers"; import { createLayer } from "@/game/layers";
import Decimal, { DecimalSource, formatWhole } from "@/util/bignum"; import Decimal, { DecimalSource, formatWhole } from "@/util/bignum";
import { render } from "@/util/vue"; import { render } from "@/util/vue";

View file

@ -1,9 +1,9 @@
import Modal from "@/components/system/Modal.vue"; import Modal from "@/components/Modal.vue";
import Profectus from "@/components/system/Profectus.vue"; import Profectus from "@/components/Profectus.vue";
import Spacer from "@/components/system/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/resource"; import { createResource, trackBest, trackOOMPS, trackTotal } from "@/features/resources/resource";
import { branchedResetPropagation, createTree, GenericTree } from "@/features/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";

View file

@ -26,9 +26,9 @@
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/system/Tooltip.vue"; import Tooltip from "@/components/Tooltip.vue";
import LinkNode from "../system/LinkNode.vue"; import LinkNode from "@/components/links/LinkNode.vue";
import MarkNode from "./MarkNode.vue"; import MarkNode from "@/components/MarkNode.vue";
import "@/components/common/features.css"; import "@/components/common/features.css";
export default defineComponent({ export default defineComponent({

View file

@ -1,4 +1,4 @@
import AchievementComponent from "@/components/features/Achievement.vue"; import AchievementComponent from "@/features/achievements/Achievement.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,

View file

@ -45,13 +45,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { Direction } from "@/features/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 "../system/LinkNode.vue"; import LinkNode from "@/components/links/LinkNode.vue";
import MarkNode from "./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 "@/components/features/Bar.vue"; import BarComponent from "@/features/bars/Bar.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,

View file

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

View file

@ -11,7 +11,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { BoardNodeLink } from "@/features/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

@ -175,7 +175,7 @@ import {
getNodeProperty, getNodeProperty,
ProgressDisplay, ProgressDisplay,
Shape Shape
} from "@/features/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";

View file

@ -1,4 +1,4 @@
import BoardComponent from "@/components/features/board/Board.vue"; import BoardComponent from "@/features/boards/Board.vue";
import { import {
Component, Component,
findFeatures, findFeatures,
@ -26,7 +26,7 @@ import {
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";
export const BoardType = Symbol("Board"); export const BoardType = Symbol("Board");

View file

@ -1,5 +1,5 @@
import ClickableComponent from "@/components/features/Clickable.vue"; import ClickableComponent from "@/features/clickables/Clickable.vue";
import { Resource } from "@/features/resource"; import { Resource } from "@/features/resources/resource";
import Decimal, { DecimalSource, format, formatWhole } from "@/util/bignum"; import Decimal, { DecimalSource, format, formatWhole } from "@/util/bignum";
import { import {
Computable, Computable,

View file

@ -28,7 +28,7 @@
<script lang="tsx"> <script lang="tsx">
import "@/components/common/features.css"; import "@/components/common/features.css";
import { GenericChallenge } from "@/features/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";
@ -43,8 +43,8 @@ import {
UnwrapRef, UnwrapRef,
watchEffect watchEffect
} from "vue"; } from "vue";
import LinkNode from "../system/LinkNode.vue"; import LinkNode from "@/components/links/LinkNode.vue";
import MarkNode from "./MarkNode.vue"; import MarkNode from "@/components/MarkNode.vue";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,4 @@
import ChallengeComponent from "@/components/features/Challenge.vue"; import ChallengeComponent from "@/features/challenges/Challenge.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -11,7 +11,8 @@ import {
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "@/features/feature";
import { Resource } from "@/features/resource"; import { GenericReset } from "@/features/reset";
import { Resource } from "@/features/resources/resource";
import { globalBus } from "@/game/events"; import { globalBus } from "@/game/events";
import settings from "@/game/settings"; import settings from "@/game/settings";
import Decimal, { DecimalSource } from "@/util/bignum"; import Decimal, { DecimalSource } from "@/util/bignum";
@ -24,7 +25,6 @@ import {
} 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 { GenericReset } from "./reset";
export const ChallengeType = Symbol("ChallengeType"); export const ChallengeType = Symbol("ChallengeType");

View file

@ -30,7 +30,10 @@
</template> </template>
<script lang="tsx"> <script lang="tsx">
import { GenericClickable } from "@/features/clickable"; 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 { jsx, StyleValue, Visibility } from "@/features/feature";
import { import {
coerceComponent, coerceComponent,
@ -49,9 +52,6 @@ import {
UnwrapRef, UnwrapRef,
watchEffect watchEffect
} from "vue"; } from "vue";
import LinkNode from "../system/LinkNode.vue";
import MarkNode from "./MarkNode.vue";
import "@/components/common/features.css";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,4 @@
import ClickableComponent from "@/components/features/Clickable.vue"; import ClickableComponent from "@/features/clickables/Clickable.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,

View file

@ -9,7 +9,7 @@ import {
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 "./resource"; import { Resource } from "./resources/resource";
export interface ConversionOptions { export interface ConversionOptions {
scaling: ScalingFunction; scaling: ScalingFunction;

View file

@ -17,14 +17,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import "@/components/common/table.css";
import themes from "@/data/themes";
import { Visibility } from "@/features/feature"; import { Visibility } from "@/features/feature";
import { GridCell } from "@/features/grid"; import { GridCell } from "@/features/grids/grid";
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";
import "@/components/common/table.css";
import settings from "@/game/settings";
import themes from "@/data/themes";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -24,6 +24,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import "@/components/common/features.css";
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,
@ -32,8 +34,6 @@ import {
setupHoldToClick setupHoldToClick
} from "@/util/vue"; } from "@/util/vue";
import { defineComponent, PropType, toRefs, unref } from "vue"; import { defineComponent, PropType, toRefs, unref } from "vue";
import LinkNode from "../system/LinkNode.vue";
import "@/components/common/features.css";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,4 @@
import GridComponent from "@/components/features/Grid.vue"; import GridComponent from "@/features/grids/Grid.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,

View file

@ -29,13 +29,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
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";
import LinkNode from "../system/LinkNode.vue";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,4 @@
import InfoboxComponent from "@/components/features/Infobox.vue"; import InfoboxComponent from "@/features/infoboxes/Infobox.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,

View file

@ -15,12 +15,12 @@
</template> </template>
<script lang="tsx"> <script lang="tsx">
import "@/components/common/features.css";
import { jsx, StyleValue, Visibility } from "@/features/feature"; import { jsx, StyleValue, Visibility } from "@/features/feature";
import { GenericMilestone } from "@/features/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 "../system/LinkNode.vue"; import LinkNode from "../../components/links/LinkNode.vue";
import "@/components/common/features.css";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,4 @@
import MilestoneComponent from "@/components/features/Milestone.vue"; import MilestoneComponent from "@/features/milestones/Milestone.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,

View file

@ -11,11 +11,11 @@
<script setup lang="ts"> <script setup lang="ts">
import { CoercableComponent } from "@/features/feature"; import { CoercableComponent } from "@/features/feature";
import { Resource } from "@/features/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 "../system/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/resource"; import { displayResource, Resource } from "@/features/resources/resource";
import { computed } from "vue"; import { computed } from "vue";
const props = defineProps<{ const props = defineProps<{

View file

@ -30,10 +30,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
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/tab"; import { GenericTab } from "@/features/tabs/tab";
import { GenericTabButton } from "@/features/tabFamily"; import TabButton from "@/features/tabs/TabButton.vue";
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 {
@ -47,8 +49,6 @@ import {
unref, unref,
watchEffect watchEffect
} from "vue"; } from "vue";
import Sticky from "../system/Sticky.vue";
import TabButton from "./TabButton.vue";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,6 +1,3 @@
import TabComponent from "@/components/features/Tab.vue";
import { Computable, GetComputableType } from "@/util/computed";
import { createLazyProxy } from "@/util/proxies";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -8,7 +5,10 @@ import {
getUniqueID, getUniqueID,
Replace, Replace,
StyleValue StyleValue
} from "./feature"; } 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"); export const TabType = Symbol("Tab");

View file

@ -1,14 +1,3 @@
import TabButtonComponent from "@/components/features/TabButton.vue";
import TabFamilyComponent from "@/components/features/TabFamily.vue";
import {
Computable,
GetComputableType,
GetComputableTypeWithDefault,
processComputable,
ProcessedComputable
} from "@/util/computed";
import { createLazyProxy } from "@/util/proxies";
import { computed, Ref, unref } from "vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -21,7 +10,18 @@ import {
setDefault, setDefault,
StyleValue, StyleValue,
Visibility Visibility
} from "./feature"; } from "@/features/feature";
import TabButtonComponent from "@/features/tabs/TabButton.vue";
import TabFamilyComponent from "@/features/tabs/TabFamily.vue";
import {
Computable,
GetComputableType,
GetComputableTypeWithDefault,
processComputable,
ProcessedComputable
} from "@/util/computed";
import { createLazyProxy } from "@/util/proxies";
import { computed, Ref, unref } from "vue";
import { GenericTab } from "./tab"; import { GenericTab } from "./tab";
export const TabButtonType = Symbol("TabButton"); export const TabButtonType = Symbol("TabButton");

View file

@ -29,7 +29,7 @@
<script lang="ts"> <script lang="ts">
import "@/components/common/table.css"; import "@/components/common/table.css";
import { GenericTreeNode } from "@/features/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

@ -39,7 +39,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import TooltipVue from "@/components/system/Tooltip.vue"; 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 { 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";
@ -60,8 +62,6 @@ import {
unref, unref,
watchEffect watchEffect
} from "vue"; } from "vue";
import LinkNode from "../../system/LinkNode.vue";
import MarkNode from "../MarkNode.vue";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,3 @@
import TreeComponent from "@/components/features/tree/Tree.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -10,7 +9,11 @@ import {
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "@/features/feature";
import { displayResource, Resource } from "@/features/resource"; 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 { 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 {
@ -23,9 +26,6 @@ import {
} 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";
import { Link } from "./links";
import { GenericReset } from "./reset";
import { Tooltip } from "./tooltip";
export const TreeNodeType = Symbol("TreeNode"); export const TreeNodeType = Symbol("TreeNode");
export const TreeType = Symbol("Tree"); export const TreeType = Symbol("Tree");

View file

@ -25,9 +25,12 @@
</template> </template>
<script lang="tsx"> <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 { jsx, StyleValue, Visibility } from "@/features/feature";
import { displayResource, Resource } from "@/features/resource"; import { displayResource, Resource } from "@/features/resources/resource";
import { GenericUpgrade } from "@/features/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 {
@ -40,9 +43,6 @@ import {
UnwrapRef, UnwrapRef,
watchEffect watchEffect
} from "vue"; } from "vue";
import LinkNode from "../system/LinkNode.vue";
import MarkNode from "./MarkNode.vue";
import "@/components/common/features.css";
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,4 +1,4 @@
import UpgradeComponent from "@/components/features/Upgrade.vue"; import UpgradeComponent from "@/features/upgrades/Upgrade.vue";
import { import {
CoercableComponent, CoercableComponent,
Component, Component,
@ -13,7 +13,7 @@ import {
StyleValue, StyleValue,
Visibility Visibility
} from "@/features/feature"; } from "@/features/feature";
import { Resource } from "@/features/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";

View file

@ -1,5 +1,5 @@
import Col from "@/components/system/Column.vue"; import Col from "@/components/layout/Column.vue";
import Row from "@/components/system/Row.vue"; import Row from "@/components/layout/Row.vue";
import { import {
CoercableComponent, CoercableComponent,
Component as ComponentKey, Component as ComponentKey,