From 52d2b9619cf7ba3c579d984faecac1af4838c748 Mon Sep 17 00:00:00 2001 From: Andrei Andreev Date: Wed, 10 Nov 2021 14:55:37 +0300 Subject: [PATCH] Migrate to ES Modules --- .eslintrc.json | 4 +- .gitignore | 1 - index.html | 436 +----- .../normal/normal-achievement-row.js | 2 +- .../achievements/normal/normal-achievement.js | 3 +- .../normal/normal-achievements-tab.js | 2 +- .../secret/secret-achievement-row.js | 2 +- .../achievements/secret/secret-achievement.js | 2 +- .../secret/secret-achievements-tab.js | 2 +- .../celestials/celestial-quote-history.js | 2 - .../celestials/modal-celestial-quote.js | 2 - .../components/celestials/navigation.js | 2 - .../celestials/subtabs/effarig/effarig-tab.js | 3 +- .../subtabs/effarig/effarig-unlock-button.js | 3 +- .../celestials/subtabs/enslaved-tab.js | 3 +- .../subtabs/laitela/laitela-autobuyer-pane.js | 2 - .../subtabs/laitela/laitela-center-pane.js | 2 +- .../celestials/subtabs/laitela/laitela-tab.js | 7 +- .../subtabs/laitela/milestone-pane.js | 2 +- .../subtabs/laitela/singularity-milestone.js | 2 - .../laitela/singularity-milestones-modal.js | 2 +- .../subtabs/laitela/singularity-pane.js | 2 - .../subtabs/matter-dimension-row.js | 2 - .../celestials/subtabs/pelle-tab.js | 6 +- .../subtabs/ra/alchemy-circle-node.js | 2 +- .../subtabs/ra/alchemy-resource-info.js | 2 +- .../celestials/subtabs/ra/alchemy-tab.js | 3 +- .../celestials/subtabs/ra/ra-level-chevron.js | 44 - .../celestials/subtabs/ra/ra-pet-level-bar.js | 2 - .../subtabs/ra/ra-pet-recollection-button.js | 2 - .../celestials/subtabs/ra/ra-pet.js | 3 +- .../celestials/subtabs/ra/ra-tab.js | 4 +- .../celestials/subtabs/ra/ra-upgrade-icon.js | 2 - .../subtabs/ra/reality-glyph-creation.js | 2 - .../subtabs/teresa/perk-shop-upgrade.js | 4 +- .../celestials/subtabs/teresa/teresa-tab.js | 4 +- .../components/celestials/subtabs/v-tab.js | 3 +- .../components/challenges/challenge-box.js | 2 +- .../components/challenges/challenge-grid.js | 2 - .../challenges/challenges-header.js | 2 - .../challenges/eternity-challenge-box.js | 2 +- .../challenges/eternity-challenges-tab.js | 6 +- .../challenges/infinity-challenges-tab.js | 6 +- .../challenges/normal-challenges-tab.js | 7 +- .../components/common/ad-slider-component.js | 11 +- javascripts/components/common/cost-display.js | 2 - .../components/common/description-display.js | 2 - .../components/common/effect-display.js | 2 - .../common/expanding-control-box.js | 2 - javascripts/components/common/footer-links.js | 2 - javascripts/components/common/hint-text.js | 2 - javascripts/components/common/news-ticker.js | 2 - .../components/common/plus-minus-button.js | 2 - .../components/common/primary-button.js | 4 +- .../antimatter/antimatter-dim-boost-row.js | 2 - .../antimatter/antimatter-dim-galaxy-row.js | 2 - .../antimatter/antimatter-dim-row.js | 2 - .../antimatter/antimatter-dim-tab-header.js | 2 - .../antimatter-dim-tab-progress-bar.js | 2 - .../antimatter/antimatter-dim-tab.js | 6 +- .../dimensions/infinity/infinity-dim-row.js | 2 - .../dimensions/infinity/infinity-dim-tab.js | 2 +- .../dimensions/time/time-dim-row.js | 2 - .../dimensions/time/time-dim-tab.js | 2 +- .../eternity/dilation/dilation-button.js | 2 - .../eternity/dilation/dilation-upgrade.js | 4 +- .../eternity/dilation/tachyon-particles.js | 2 - .../eternity/dilation/time-dilation-tab.js | 4 +- .../eternity/eternity-points-header.js | 2 - .../eternity/milestones/eternity-milestone.js | 2 - .../milestones/eternity-milestones-tab.js | 2 +- .../time-studies/dilation-time-study.js | 3 +- .../eternity/time-studies/ec-time-study.js | 2 +- .../time-studies/normal-time-study.js | 5 +- .../components/eternity/time-studies/rem.js | 12 +- .../time-studies/secret-time-study.js | 7 +- .../eternity/time-studies/time-studies-tab.js | 14 +- .../time-studies/time-study-connection.js | 4 +- .../eternity/time-studies/time-study.js | 10 +- .../eternity/time-studies/triad-time-study.js | 5 +- .../eternity/upgrades/ep-multiplier-button.js | 2 - .../upgrades/eternity-upgrade-button.js | 4 +- .../upgrades/eternity-upgrades-tab.js | 3 +- javascripts/components/failable-ec-text.js | 2 - javascripts/components/game-ui.js | 7 +- .../components/header-challenge-display.js | 2 +- javascripts/components/help-me.js | 2 - javascripts/components/hover-menu.js | 2 - javascripts/components/index.js | 60 + .../infinity/autobuyers/autobuyer-box.js | 2 - .../infinity/autobuyers/autobuyer-input.js | 2 - .../autobuyers/autobuyer-interval-button.js | 2 - .../autobuyers/autobuyer-interval-label.js | 2 - .../autobuyers/autobuyer-toggle-label.js | 2 - .../infinity/autobuyers/autobuyer-toggles.js | 2 - .../infinity/autobuyers/autobuyers-tab.js | 12 +- .../autobuyers/big-crunch-autobuyer-box.js | 4 +- .../autobuyers/dimboost-autobuyer-box.js | 4 +- .../autobuyers/dimension-autobuyer-box.js | 3 +- .../autobuyers/eternity-autobuyer-box.js | 3 +- .../autobuyers/galaxy-autobuyer-box.js | 4 +- .../autobuyers/multiple-autobuyers-box.js | 3 +- .../autobuyers/reality-autobuyer-box.js | 3 +- .../autobuyers/sacrifice-autobuyer-box.js | 3 +- .../autobuyers/single-autobuyer-box.js | 4 +- .../autobuyers/tickspeed-autobuyer-box.js | 3 +- .../break-infinity/break-infinity-button.js | 2 - .../break-infinity/break-infinity-tab.js | 3 +- .../infinity/infinity-points-header.js | 2 - .../infinity/infinity-upgrade-button.js | 4 +- .../replicanti/replicanti-gain-text.js | 2 - .../replicanti/replicanti-galaxy-button.js | 2 - .../infinity/replicanti/replicanti-tab.js | 4 +- .../replicanti/replicanti-upgrade-button.js | 4 +- .../upgrades/infinity-upgrades-tab.js | 3 +- .../infinity/upgrades/ip-multiplier-button.js | 2 +- .../cloud/modal-cloud-conflict-record.js | 4 +- .../modals/cloud/modal-cloud-load-conflict.js | 2 +- .../modals/cloud/modal-cloud-save-conflict.js | 2 +- javascripts/components/modals/index.js | 49 + .../modals/modal-automator-script-delete.js | 2 - .../modals/modal-automator-script-import.js | 2 - .../components/modals/modal-away-progress.js | 2 - .../components/modals/modal-break-infinity.js | 2 - .../components/modals/modal-celestials.js | 2 - .../modals/modal-delete-companion.js | 2 - .../components/modals/modal-edit-tree.js | 2 - .../components/modals/modal-enter-dilation.js | 2 - .../components/modals/modal-eternity.js | 2 - .../modals/modal-exit-celestial-reality.js | 2 - .../components/modals/modal-glyph-delete.js | 2 - .../components/modals/modal-glyph-refine.js | 2 - .../components/modals/modal-glyph-replace.js | 2 - .../modals/modal-glyph-sacrifice.js | 2 - .../modals/modal-glyph-showcase-panel.js | 3 +- .../components/modals/modal-glyph-undo.js | 2 - javascripts/components/modals/modal-h2p.js | 2 - .../components/modals/modal-hard-reset.js | 2 - .../components/modals/modal-import-tree.js | 2 - javascripts/components/modals/modal-import.js | 2 - .../components/modals/modal-load-game.js | 2 - .../components/modals/modal-message.js | 2 - javascripts/components/modals/modal-popup.js | 2 - .../components/modals/modal-preferred-tree.js | 2 - .../components/modals/modal-progress-bar.js | 2 - .../components/modals/modal-reality.js | 2 +- .../components/modals/modal-reset-reality.js | 2 - .../components/modals/modal-sacrifice.js | 2 - .../modals/modal-set-save-delete.js | 4 +- .../components/modals/modal-shortcuts.js | 2 - .../modals/modal-start-eternity-challenge.js | 2 - .../modals/modal-start-infinity-challenge.js | 2 - .../modals/modal-start-normal-challenge.js | 2 - .../components/modals/modal-std-store.js | 2 - .../components/modals/modal-ui-choice.js | 2 - .../modals/options/modal-animation-options.js | 2 +- .../options/modal-away-progress-options.js | 2 +- .../options/modal-confirmation-options.js | 2 +- .../modals/options/modal-hidden-tabs.js | 2 - .../options/modal-info-display-options.js | 2 +- .../modals/options/modal-news-options.js | 2 +- .../modals/options/modal-options.js | 4 +- .../dimensions-tab/new-dim-boost-row.js | 2 - .../dimensions-tab/new-dimension-row.js | 2 - .../dimensions-tab/new-dimensions-tab.js | 6 +- .../new-ui/dimensions-tab/new-galaxy-row.js | 2 - .../dimensions-tab/new-tickspeed-row.js | 2 +- .../new-inf-dimension-row.js | 2 - .../new-inf-dimensions-tab.js | 2 +- javascripts/components/new-ui/new-ui.js | 10 +- .../sidebar-resources/sidebar-currency.js | 2 - javascripts/components/new-ui/sidebar.js | 3 +- javascripts/components/new-ui/tab-button.js | 2 - .../new-time-dimension-row.js | 2 - .../new-time-dimensions-tab.js | 2 +- .../old-ui/header/game-header-amounts-line.js | 2 - .../header/game-header-big-crunch-button.js | 2 - .../header/game-header-eternity-button.js | 2 - .../header/game-header-gamespeed-display.js | 2 - .../header/game-header-new-dim-button.js | 2 - .../header/game-header-tickspeed-row.js | 2 +- .../components/old-ui/header/game-header.js | 8 +- .../components/old-ui/old-ui-subtab-bar.js | 2 +- .../components/old-ui/old-ui-subtab-button.js | 2 - .../components/old-ui/old-ui-tab-bar.js | 2 +- .../components/old-ui/old-ui-tab-button.js | 2 - javascripts/components/old-ui/old-ui.js | 6 +- .../options/options-gameplay-tab.js | 2 - .../components/options/options-saving-tab.js | 2 - .../components/options/options-visual-tab.js | 4 +- .../components/options/select-notation.js | 2 - .../components/options/select-theme.js | 2 - .../automator/automator-block-editor.js | 4 +- .../reality/automator/automator-block-tab.js | 12 - .../reality/automator/automator-blocks.js | 10 +- .../reality/automator/automator-button.js | 2 - .../reality/automator/automator-controls.js | 2 - .../reality/automator/automator-editor.js | 7 +- .../reality/automator/automator-error-page.js | 2 - .../reality/automator/automator-event-log.js | 2 - .../automator/automator-points-list.js | 2 - .../automator/automator-single-block.js | 2 - .../reality/automator/automator-tab.js | 6 +- .../automator/automator-text-editor.js | 4 +- .../docs/automator-docs-main-page.js | 2 - .../reality/automator/docs/automator-docs.js | 7 +- .../automator/docs/automator-man-page.js | 2 - .../black-hole/black-hole-animation.js | 8 +- .../black-hole/black-hole-header-row.js | 2 - .../black-hole/black-hole-state-row.js | 2 - .../reality/black-hole/black-hole-tab.js | 12 +- .../black-hole/black-hole-unlock-button.js | 2 - .../black-hole/black-hole-upgrade-button.js | 4 +- .../black-hole/black-hole-upgrade-row.js | 2 +- .../reality/glyphs/current-glyph-effects.js | 6 +- .../reality/glyphs/equipped-glyphs.js | 2 +- .../reality/glyphs/glyph-component.js | 2 - .../reality/glyphs/glyph-inventory.js | 2 +- .../glyphs/glyph-levels-and-weights.js | 2 +- .../components/reality/glyphs/glyph-peek.js | 2 +- .../reality/glyphs/glyph-set-name.js | 2 - .../reality/glyphs/glyph-set-preview.js | 3 +- .../components/reality/glyphs/glyphs-tab.js | 13 +- .../reality/glyphs/reality-amplify-button.js | 2 - .../reality/glyphs/reality-button.js | 2 - .../reality/glyphs/reset-reality-button.js | 2 - .../reality/glyphs/sacrificed-glyphs.js | 2 - .../sidebar/glyph-autosort-button-group.js | 2 - .../sidebar/glyph-clean-button-group.js | 2 - .../glyphs/sidebar/glyph-filter-panel.js | 5 +- .../glyph-inventory-management-panel.js | 5 +- .../glyph-protected-row-button-group.js | 2 - .../glyphs/sidebar/glyph-rejection-panel.js | 2 - .../glyphs/sidebar/glyph-set-save-panel.js | 2 +- .../glyphs/sidebar/glyph-sort-button-group.js | 2 - .../glyphs/sidebar/glyph-tab-sidebar.js | 6 +- javascripts/components/reality/perks-tab.js | 15 +- javascripts/components/reality/pp-label.js | 2 - .../reality/reality-machines-header.js | 2 - .../components/reality/reality-reminder.js | 2 - .../upgrades/imaginary-upgrade-button.js | 5 +- .../upgrades/imaginary-upgrades-tab.js | 2 +- .../upgrades/reality-upgrade-button.js | 5 +- .../reality/upgrades/reality-upgrades-tab.js | 2 +- javascripts/components/save-timer.js | 2 - javascripts/components/shop/shop-button.js | 2 - javascripts/components/shop/shop-tab.js | 2 +- .../challenges/challenge-records-list.js | 2 - .../challenges/challenge-records-tab.js | 2 +- .../components/statistics/glyph-sets-tab.js | 2 +- .../statistics/runs/past-runs-container.js | 2 - .../statistics/runs/past-runs-tab.js | 2 +- .../components/statistics/statistics-tab.js | 2 - javascripts/components/tt-shop.js | 2 +- .../core/achievements/achievement-timer.js | 4 +- .../core/achievements/normal-achievement.js | 6 +- .../core/achievements/secret-achievement.js | 6 +- javascripts/core/app/modal.js | 4 +- javascripts/core/app/notify.js | 4 +- javascripts/core/app/options.js | 8 +- javascripts/core/app/player-progress.js | 4 +- javascripts/core/app/themes.js | 6 +- javascripts/core/app/ui.init.js | 4 +- javascripts/core/app/ui.js | 14 +- javascripts/core/async-utils.js | 4 +- .../antimatter-dimension-autobuyer.js | 2 +- javascripts/core/autobuyers/autobuyer.js | 11 +- javascripts/core/autobuyers/autobuyers.js | 4 +- .../core/autobuyers/big-crunch-autobuyer.js | 4 +- .../autobuyers/black-hole-power-autobuyer.js | 2 +- .../autobuyers/dilation-upgrade-autobuyer.js | 2 +- .../core/autobuyers/dimboost-autobuyer.js | 2 +- .../core/autobuyers/eternity-autobuyer.js | 2 +- .../core/autobuyers/galaxy-autobuyer.js | 2 +- .../autobuyers/imaginary-upgrade-autobuyer.js | 2 +- javascripts/core/autobuyers/index.js | 23 + .../infinity-dimension-autobuyer.js | 2 +- .../prestige-currency-multiplier-autobuyer.js | 2 +- .../core/autobuyers/reality-autobuyer.js | 2 +- .../autobuyers/reality-upgrade-autobuyer.js | 2 +- .../autobuyers/replicanti-galaxy-autobuyer.js | 2 +- .../replicanti-upgrade-autobuyer.js | 2 +- .../core/autobuyers/sacrifice-autobuyer.js | 2 +- .../core/autobuyers/tickspeed-autobuyer.js | 2 +- .../autobuyers/time-dimension-autobuyer.js | 2 +- .../core/autobuyers/time-theorem-autobuyer.js | 2 +- .../core/automator/automator-backend.js | 18 +- .../core/automator/automator-codemirror.js | 3 +- .../core/automator/automator-commands.js | 4 +- .../core/automator/automator-points.js | 4 +- javascripts/core/automator/compiler.js | 10 +- javascripts/core/automator/index.js | 5 + javascripts/core/automator/lexer.js | 11 +- javascripts/core/automator/parser.js | 5 +- javascripts/core/away-progress.js | 4 +- javascripts/core/big_crunch.js | 24 +- javascripts/core/black_hole.js | 8 +- javascripts/core/cache.js | 5 +- javascripts/core/celestials/V.js | 12 +- javascripts/core/celestials/celestials.js | 9 +- javascripts/core/celestials/effarig.js | 12 +- javascripts/core/celestials/enslaved.js | 12 +- .../core/celestials/laitela/laitela.js | 4 +- .../celestials/laitela/matter_dimension.js | 12 +- .../core/celestials/laitela/singularity.js | 12 +- javascripts/core/celestials/quotes.js | 4 +- javascripts/core/celestials/ra/alchemy.js | 8 +- javascripts/core/celestials/ra/ra.js | 8 +- javascripts/core/celestials/teresa.js | 10 +- javascripts/core/challenge.js | 14 +- javascripts/core/constants.js | 32 +- javascripts/core/crash.js | 10 +- javascripts/core/currency.js | 5 +- javascripts/core/devtools.js | 19 +- javascripts/core/dilation.js | 30 +- javascripts/core/dimboost.js | 10 +- .../core/dimensions/antimatter-dimension.js | 22 +- javascripts/core/dimensions/dimension.js | 4 +- .../core/dimensions/infinity-dimension.js | 18 +- javascripts/core/dimensions/time-dimension.js | 22 +- javascripts/core/eternity.js | 20 +- javascripts/core/eternity_challenge.js | 8 +- javascripts/core/event-hub.js | 8 +- javascripts/core/extensions.js | 6 +- javascripts/core/format.js | 74 +- javascripts/core/galaxy.js | 8 +- .../core/game-mechanics/bit-purchasable.js | 4 +- javascripts/core/game-mechanics/effect.js | 4 +- javascripts/core/game-mechanics/effects.js | 4 +- .../core/game-mechanics/game-mechanic.js | 4 +- javascripts/core/game-mechanics/index.js | 7 + javascripts/core/game-mechanics/puchasable.js | 4 +- javascripts/core/game-mechanics/rebuyable.js | 4 +- .../core/game-mechanics/set-purchasable.js | 4 +- javascripts/core/globals.js | 78 + javascripts/core/glyph-effects.js | 30 +- .../core/glyphs/auto-glyph-processor.js | 8 +- javascripts/core/glyphs/glyph-core.js | 26 +- javascripts/core/glyphs/glyph-effects.js | 22 +- javascripts/core/glyphs/glyph-generator.js | 4 +- .../core/glyphs/glyph-purge-handler.js | 4 +- javascripts/core/hotkeys.js | 4 +- javascripts/core/imaginary-upgrades.js | 6 +- javascripts/core/intervals.js | 4 +- javascripts/core/keyboard.js | 4 +- javascripts/core/kong.js | 22 +- javascripts/core/machines.js | 4 +- javascripts/core/math.js | 155 +- javascripts/core/news-ticker.js | 6 +- javascripts/core/notations.js | 6 +- javascripts/core/performance-stats.js | 4 +- javascripts/core/perks.js | 8 +- javascripts/core/player.js | 9 +- javascripts/core/playfab.js | 4 +- javascripts/core/polyfill.js | 8 +- javascripts/core/reality-upgrades.js | 8 +- javascripts/core/reality.js | 28 +- javascripts/core/replicanti.js | 18 +- javascripts/core/sacrifice.js | 8 +- .../achievements/normal-achievements.js | 2 +- .../achievements/secret-achievements.js | 2 +- .../core/secret-formula/celestials/alchemy.js | 2 +- .../core/secret-formula/celestials/effarig.js | 2 +- .../secret-formula/celestials/enslaved.js | 2 +- .../secret-formula/celestials/navigation.js | 10 +- .../secret-formula/celestials/perk-shop.js | 2 +- .../celestials/singularity-milestones.js | 4 +- .../core/secret-formula/celestials/v.js | 4 +- .../challenges/eternity-challenges.js | 2 +- .../challenges/infinity-challenges.js | 2 +- .../challenges/normal-challenges.js | 2 +- .../eternity/dilation-upgrades.js | 2 +- .../eternity/eternity-milestones.js | 6 +- .../eternity/eternity-upgrades.js | 2 +- .../time-studies/dilation-time-studies.js | 2 +- .../eternity/time-studies/ec-time-studies.js | 2 +- .../time-studies/normal-time-studies.js | 2 +- .../core/secret-formula/game-database.js | 10 +- javascripts/core/secret-formula/h2p.js | 2 +- javascripts/core/secret-formula/index.js | 33 + .../infinity/break-infinity-upgrades.js | 2 +- .../infinity/infinity-upgrades.js | 2 +- javascripts/core/secret-formula/news.js | 2 +- .../core/secret-formula/reality/automator.js | 12 +- .../reality/glyph-sacrifices.js | 2 +- .../reality/imaginary-upgrades.js | 2 +- .../core/secret-formula/reality/perks.js | 4 +- .../reality/reality-upgrades.js | 2 +- .../core/secret-formula/shop-purchases.js | 4 +- .../core/secret-formula/tab-notifications.js | 2 +- javascripts/core/secret-formula/tabs.js | 2 +- javascripts/core/storage/cloud-saving.js | 4 +- javascripts/core/storage/dev-migrations.js | 2 +- javascripts/core/storage/index.js | 6 + javascripts/core/storage/migrations.js | 2 +- javascripts/core/storage/progress-checker.js | 4 +- javascripts/core/storage/serializer.js | 4 +- javascripts/core/storage/storage.js | 4 +- javascripts/core/tickspeed.js | 14 +- javascripts/core/time-theorems.js | 6 +- javascripts/core/time.js | 6 +- javascripts/core/timespan.js | 6 +- javascripts/core/timestudies.js | 30 +- javascripts/core/tutorial.js | 6 +- javascripts/core/ui/tab-notifications.js | 4 +- javascripts/core/ui/tabs.js | 6 +- javascripts/core/utils.js | 14 + javascripts/game.js | 98 +- javascripts/{ => lib}/DragDropTouch.js | 0 javascripts/{ => lib}/longpress.js | 0 javascripts/main.js | 47 + package-lock.json | 1344 +++++++++++++++++ package.json | 10 + 413 files changed, 2626 insertions(+), 1650 deletions(-) delete mode 100644 javascripts/components/celestials/subtabs/ra/ra-level-chevron.js create mode 100644 javascripts/components/index.js create mode 100644 javascripts/components/modals/index.js delete mode 100644 javascripts/components/reality/automator/automator-block-tab.js create mode 100644 javascripts/core/autobuyers/index.js create mode 100644 javascripts/core/automator/index.js create mode 100644 javascripts/core/game-mechanics/index.js create mode 100644 javascripts/core/globals.js create mode 100644 javascripts/core/secret-formula/index.js create mode 100644 javascripts/core/storage/index.js create mode 100644 javascripts/core/utils.js rename javascripts/{ => lib}/DragDropTouch.js (100%) rename javascripts/{ => lib}/longpress.js (100%) create mode 100644 javascripts/main.js create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.eslintrc.json b/.eslintrc.json index d65bd5956..d44dd5e08 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -9,9 +9,7 @@ }, "parserOptions": { "ecmaVersion": 2021, - "ecmaFeatures": { - "impliedStrict": false - } + "sourceType": "module" }, "rules": { "no-console": "warn", diff --git a/.gitignore b/.gitignore index 4e09f5086..8904cbe26 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ .idea node_modules .eslintrc.js -package-lock.json playfab.js diff --git a/index.html b/index.html index be6ad532b..2f59f3ae4 100644 --- a/index.html +++ b/index.html @@ -87,440 +87,10 @@ - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/javascripts/components/achievements/normal/normal-achievement-row.js b/javascripts/components/achievements/normal/normal-achievement-row.js index 8d4ab3996..e69883d0d 100644 --- a/javascripts/components/achievements/normal/normal-achievement-row.js +++ b/javascripts/components/achievements/normal/normal-achievement-row.js @@ -1,4 +1,4 @@ -"use strict"; +import "./normal-achievement.js"; Vue.component("normal-achievement-row", { props: { diff --git a/javascripts/components/achievements/normal/normal-achievement.js b/javascripts/components/achievements/normal/normal-achievement.js index b00cc8be3..4f448035d 100644 --- a/javascripts/components/achievements/normal/normal-achievement.js +++ b/javascripts/components/achievements/normal/normal-achievement.js @@ -1,4 +1,5 @@ -"use strict"; +import "../../common/hint-text.js"; +import "../../common/effect-display.js"; Vue.component("normal-achievement", { props: { diff --git a/javascripts/components/achievements/normal/normal-achievements-tab.js b/javascripts/components/achievements/normal/normal-achievements-tab.js index bd5391674..30e160146 100644 --- a/javascripts/components/achievements/normal/normal-achievements-tab.js +++ b/javascripts/components/achievements/normal/normal-achievements-tab.js @@ -1,4 +1,4 @@ -"use strict"; +import "./normal-achievement-row.js"; Vue.component("normal-achievements-tab", { components: { diff --git a/javascripts/components/achievements/secret/secret-achievement-row.js b/javascripts/components/achievements/secret/secret-achievement-row.js index 4d4be3152..759ad4ec0 100644 --- a/javascripts/components/achievements/secret/secret-achievement-row.js +++ b/javascripts/components/achievements/secret/secret-achievement-row.js @@ -1,4 +1,4 @@ -"use strict"; +import "./secret-achievement.js"; Vue.component("secret-achievement-row", { props: { diff --git a/javascripts/components/achievements/secret/secret-achievement.js b/javascripts/components/achievements/secret/secret-achievement.js index 5907fe209..fc2330923 100644 --- a/javascripts/components/achievements/secret/secret-achievement.js +++ b/javascripts/components/achievements/secret/secret-achievement.js @@ -1,4 +1,4 @@ -"use strict"; +import "../../common/hint-text.js"; Vue.component("secret-achievement", { props: { diff --git a/javascripts/components/achievements/secret/secret-achievements-tab.js b/javascripts/components/achievements/secret/secret-achievements-tab.js index 27095573a..bf40d3add 100644 --- a/javascripts/components/achievements/secret/secret-achievements-tab.js +++ b/javascripts/components/achievements/secret/secret-achievements-tab.js @@ -1,4 +1,4 @@ -"use strict"; +import "./secret-achievement-row.js"; Vue.component("secret-achievements-tab", { computed: { diff --git a/javascripts/components/celestials/celestial-quote-history.js b/javascripts/components/celestials/celestial-quote-history.js index 53fe4cbb0..80e07460c 100644 --- a/javascripts/components/celestials/celestial-quote-history.js +++ b/javascripts/components/celestials/celestial-quote-history.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("celestial-quote-history", { props: { celestial: String, diff --git a/javascripts/components/celestials/modal-celestial-quote.js b/javascripts/components/celestials/modal-celestial-quote.js index 8b7756ba3..827a08061 100644 --- a/javascripts/components/celestials/modal-celestial-quote.js +++ b/javascripts/components/celestials/modal-celestial-quote.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("modal-celestial-quote", { data: () => ({ index: 0, diff --git a/javascripts/components/celestials/navigation.js b/javascripts/components/celestials/navigation.js index 17da20334..3b3cd8123 100644 --- a/javascripts/components/celestials/navigation.js +++ b/javascripts/components/celestials/navigation.js @@ -1,5 +1,3 @@ -"use strict"; - const BezTestData = { P0: new Vector(300, 300), scale: 100, diff --git a/javascripts/components/celestials/subtabs/effarig/effarig-tab.js b/javascripts/components/celestials/subtabs/effarig/effarig-tab.js index 55854784d..2abb25e9b 100644 --- a/javascripts/components/celestials/subtabs/effarig/effarig-tab.js +++ b/javascripts/components/celestials/subtabs/effarig/effarig-tab.js @@ -1,4 +1,5 @@ -"use strict"; +import "./effarig-unlock-button.js"; +import "../../celestial-quote-history.js"; Vue.component("effarig-tab", { components: { diff --git a/javascripts/components/celestials/subtabs/effarig/effarig-unlock-button.js b/javascripts/components/celestials/subtabs/effarig/effarig-unlock-button.js index 57232356f..d83cde46e 100644 --- a/javascripts/components/celestials/subtabs/effarig/effarig-unlock-button.js +++ b/javascripts/components/celestials/subtabs/effarig/effarig-unlock-button.js @@ -1,4 +1,5 @@ -"use strict"; +import "../../../common/cost-display.js"; +import "../../../common/description-display.js"; Vue.component("effarig-unlock-button", { props: { diff --git a/javascripts/components/celestials/subtabs/enslaved-tab.js b/javascripts/components/celestials/subtabs/enslaved-tab.js index 059724b29..63b34fadb 100644 --- a/javascripts/components/celestials/subtabs/enslaved-tab.js +++ b/javascripts/components/celestials/subtabs/enslaved-tab.js @@ -1,4 +1,5 @@ -"use strict"; +import "../celestial-quote-history.js"; +import "../../common/ad-slider-component.js"; Vue.component("modal-enslaved-hints", { data() { diff --git a/javascripts/components/celestials/subtabs/laitela/laitela-autobuyer-pane.js b/javascripts/components/celestials/subtabs/laitela/laitela-autobuyer-pane.js index f4b6c1e50..c1f93307e 100644 --- a/javascripts/components/celestials/subtabs/laitela/laitela-autobuyer-pane.js +++ b/javascripts/components/celestials/subtabs/laitela/laitela-autobuyer-pane.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("laitela-autobuyer-settings", { data() { return { diff --git a/javascripts/components/celestials/subtabs/laitela/laitela-center-pane.js b/javascripts/components/celestials/subtabs/laitela/laitela-center-pane.js index 0c0de8465..ddfc2d8cd 100644 --- a/javascripts/components/celestials/subtabs/laitela/laitela-center-pane.js +++ b/javascripts/components/celestials/subtabs/laitela/laitela-center-pane.js @@ -1,4 +1,4 @@ -"use strict"; +import "../matter-dimension-row.js"; Vue.component("dark-matter-dimension-group", { data() { diff --git a/javascripts/components/celestials/subtabs/laitela/laitela-tab.js b/javascripts/components/celestials/subtabs/laitela/laitela-tab.js index ffc942622..4c13be06f 100644 --- a/javascripts/components/celestials/subtabs/laitela/laitela-tab.js +++ b/javascripts/components/celestials/subtabs/laitela/laitela-tab.js @@ -1,4 +1,9 @@ -"use strict"; +import "./singularity-pane.js"; +import "./milestone-pane.js"; +import "./laitela-center-pane.js"; +import "./laitela-autobuyer-pane.js"; +import "./singularity-milestone.js"; +import "../../celestial-quote-history.js"; Vue.component("laitela-tab", { data() { diff --git a/javascripts/components/celestials/subtabs/laitela/milestone-pane.js b/javascripts/components/celestials/subtabs/laitela/milestone-pane.js index d37257c2c..036def8c3 100644 --- a/javascripts/components/celestials/subtabs/laitela/milestone-pane.js +++ b/javascripts/components/celestials/subtabs/laitela/milestone-pane.js @@ -1,4 +1,4 @@ -"use strict"; +import "./singularity-milestone.js"; Vue.component("singularity-milestone-pane", { data() { diff --git a/javascripts/components/celestials/subtabs/laitela/singularity-milestone.js b/javascripts/components/celestials/subtabs/laitela/singularity-milestone.js index ce9e01da2..4aa32454e 100644 --- a/javascripts/components/celestials/subtabs/laitela/singularity-milestone.js +++ b/javascripts/components/celestials/subtabs/laitela/singularity-milestone.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("singularity-milestone", { props: ["milestone", "suppressGlow"], data: () => ({ diff --git a/javascripts/components/celestials/subtabs/laitela/singularity-milestones-modal.js b/javascripts/components/celestials/subtabs/laitela/singularity-milestones-modal.js index 80639e87c..5839f030f 100644 --- a/javascripts/components/celestials/subtabs/laitela/singularity-milestones-modal.js +++ b/javascripts/components/celestials/subtabs/laitela/singularity-milestones-modal.js @@ -1,4 +1,4 @@ -"use strict"; +import "./singularity-milestone.js"; Vue.component("singularity-milestones-modal", { data: () => ({ diff --git a/javascripts/components/celestials/subtabs/laitela/singularity-pane.js b/javascripts/components/celestials/subtabs/laitela/singularity-pane.js index c6cf827b8..e9580b70f 100644 --- a/javascripts/components/celestials/subtabs/laitela/singularity-pane.js +++ b/javascripts/components/celestials/subtabs/laitela/singularity-pane.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("singularity-container", { data() { return { diff --git a/javascripts/components/celestials/subtabs/matter-dimension-row.js b/javascripts/components/celestials/subtabs/matter-dimension-row.js index a352414b5..ac9b71375 100644 --- a/javascripts/components/celestials/subtabs/matter-dimension-row.js +++ b/javascripts/components/celestials/subtabs/matter-dimension-row.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("matter-dimension-row", { props: { dimension: Object diff --git a/javascripts/components/celestials/subtabs/pelle-tab.js b/javascripts/components/celestials/subtabs/pelle-tab.js index e399e61db..2bfc217bb 100644 --- a/javascripts/components/celestials/subtabs/pelle-tab.js +++ b/javascripts/components/celestials/subtabs/pelle-tab.js @@ -1,9 +1,7 @@ -"use strict"; - Vue.component('pelle-tab', { data: function() { return { - + }; }, methods: { @@ -15,4 +13,4 @@ Vue.component('pelle-tab', { `

pelle here

` -}); \ No newline at end of file +}); diff --git a/javascripts/components/celestials/subtabs/ra/alchemy-circle-node.js b/javascripts/components/celestials/subtabs/ra/alchemy-circle-node.js index 87bdd2d1e..8c4aaf881 100644 --- a/javascripts/components/celestials/subtabs/ra/alchemy-circle-node.js +++ b/javascripts/components/celestials/subtabs/ra/alchemy-circle-node.js @@ -1,4 +1,4 @@ -"use strict"; +import "../../../common/hint-text.js"; Vue.component("alchemy-circle-node", { props: { diff --git a/javascripts/components/celestials/subtabs/ra/alchemy-resource-info.js b/javascripts/components/celestials/subtabs/ra/alchemy-resource-info.js index 195368f56..f1b1835b2 100644 --- a/javascripts/components/celestials/subtabs/ra/alchemy-resource-info.js +++ b/javascripts/components/celestials/subtabs/ra/alchemy-resource-info.js @@ -1,4 +1,4 @@ -"use strict"; +import "../../../common/effect-display.js"; Vue.component("alchemy-resource-info", { props: { diff --git a/javascripts/components/celestials/subtabs/ra/alchemy-tab.js b/javascripts/components/celestials/subtabs/ra/alchemy-tab.js index 2ba587a1f..f3e79116e 100644 --- a/javascripts/components/celestials/subtabs/ra/alchemy-tab.js +++ b/javascripts/components/celestials/subtabs/ra/alchemy-tab.js @@ -1,4 +1,5 @@ -"use strict"; +import "./alchemy-circle-node.js"; +import "./alchemy-resource-info.js"; class AlchemyOrbitLayout { constructor(tier, radius, angleOffset = 0) { diff --git a/javascripts/components/celestials/subtabs/ra/ra-level-chevron.js b/javascripts/components/celestials/subtabs/ra/ra-level-chevron.js deleted file mode 100644 index c3bb52d60..000000000 --- a/javascripts/components/celestials/subtabs/ra/ra-level-chevron.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; - -Vue.component("ra-level-chevron", { - props: { - minLevel: Number, - level: Number, - goal: Number, - singleLevel: { - type: Boolean, - defualt: false - }, - isImportantLevel: Boolean - }, - computed: { - levelPercent() { - const startScl = Math.sqrt(Ra.totalExpForLevel(this.minLevel)); - const endScl = Math.sqrt(Ra.totalExpForLevel(this.goal)); - const currentScl = Math.sqrt(Ra.totalExpForLevel(this.level)); - const expFraction = (currentScl - startScl) / (endScl - startScl); - return 100 * expFraction; - }, - levelPosition() { - if (this.level === this.goal) return { right: "0%" }; - if (this.singleLevel) return { left: "0%" }; - return { left: `${this.levelPercent}%` }; - }, - classList() { - return [ - this.isImportantLevel ? "c-important-chevron" : "", - this.level === 1 || this.level === this.goal || this.singleLevel ? "l-ra-lvl-chevron--no-bar" : "" - ]; - } - }, - template: ` -
- - {{ formatInt(level) }} - -
` -}); diff --git a/javascripts/components/celestials/subtabs/ra/ra-pet-level-bar.js b/javascripts/components/celestials/subtabs/ra/ra-pet-level-bar.js index 9ff0f2b84..420b3fef1 100644 --- a/javascripts/components/celestials/subtabs/ra/ra-pet-level-bar.js +++ b/javascripts/components/celestials/subtabs/ra/ra-pet-level-bar.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("ra-pet-level-bar", { props: { petConfig: Object diff --git a/javascripts/components/celestials/subtabs/ra/ra-pet-recollection-button.js b/javascripts/components/celestials/subtabs/ra/ra-pet-recollection-button.js index 56d398499..4ada7708e 100644 --- a/javascripts/components/celestials/subtabs/ra/ra-pet-recollection-button.js +++ b/javascripts/components/celestials/subtabs/ra/ra-pet-recollection-button.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("ra-pet-recollection-button", { props: { petConfig: Object, diff --git a/javascripts/components/celestials/subtabs/ra/ra-pet.js b/javascripts/components/celestials/subtabs/ra/ra-pet.js index 60079ae65..c82da4b50 100644 --- a/javascripts/components/celestials/subtabs/ra/ra-pet.js +++ b/javascripts/components/celestials/subtabs/ra/ra-pet.js @@ -1,4 +1,5 @@ -"use strict"; +import "./ra-upgrade-icon.js"; +import "./ra-pet-level-bar.js"; Vue.component("ra-pet", { props: { diff --git a/javascripts/components/celestials/subtabs/ra/ra-tab.js b/javascripts/components/celestials/subtabs/ra/ra-tab.js index ec853f67a..1a9dccb35 100644 --- a/javascripts/components/celestials/subtabs/ra/ra-tab.js +++ b/javascripts/components/celestials/subtabs/ra/ra-tab.js @@ -1,4 +1,6 @@ -"use strict"; +import "./ra-pet.js"; +import "./ra-pet-recollection-button.js"; +import "../../celestial-quote-history.js"; Vue.component("ra-tab", { data() { diff --git a/javascripts/components/celestials/subtabs/ra/ra-upgrade-icon.js b/javascripts/components/celestials/subtabs/ra/ra-upgrade-icon.js index 57094895c..d98adb0a0 100644 --- a/javascripts/components/celestials/subtabs/ra/ra-upgrade-icon.js +++ b/javascripts/components/celestials/subtabs/ra/ra-upgrade-icon.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("ra-upgrade-icon", { props: { unlock: Object, diff --git a/javascripts/components/celestials/subtabs/ra/reality-glyph-creation.js b/javascripts/components/celestials/subtabs/ra/reality-glyph-creation.js index 0b1930ffa..8a0eaee49 100644 --- a/javascripts/components/celestials/subtabs/ra/reality-glyph-creation.js +++ b/javascripts/components/celestials/subtabs/ra/reality-glyph-creation.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("modal-reality-glyph-creation", { data() { return { diff --git a/javascripts/components/celestials/subtabs/teresa/perk-shop-upgrade.js b/javascripts/components/celestials/subtabs/teresa/perk-shop-upgrade.js index c384c0a03..2be678f86 100644 --- a/javascripts/components/celestials/subtabs/teresa/perk-shop-upgrade.js +++ b/javascripts/components/celestials/subtabs/teresa/perk-shop-upgrade.js @@ -1,4 +1,6 @@ -"use strict"; +import "../../../common/effect-display.js"; +import "../../../common/cost-display.js"; +import "../../../common/description-display.js"; Vue.component("perk-shop-upgrade", { props: { diff --git a/javascripts/components/celestials/subtabs/teresa/teresa-tab.js b/javascripts/components/celestials/subtabs/teresa/teresa-tab.js index ead6c2a51..217f953aa 100644 --- a/javascripts/components/celestials/subtabs/teresa/teresa-tab.js +++ b/javascripts/components/celestials/subtabs/teresa/teresa-tab.js @@ -1,4 +1,6 @@ -"use strict"; +import "./perk-shop-upgrade.js"; +import "../../celestial-quote-history.js"; +import "../../../reality/glyphs/glyph-set-preview.js"; Vue.component("teresa-tab", { data() { diff --git a/javascripts/components/celestials/subtabs/v-tab.js b/javascripts/components/celestials/subtabs/v-tab.js index 009327ca5..f85d5a69b 100644 --- a/javascripts/components/celestials/subtabs/v-tab.js +++ b/javascripts/components/celestials/subtabs/v-tab.js @@ -1,4 +1,5 @@ -"use strict"; +import "../../reality/glyphs/glyph-set-preview.js"; +import "../celestial-quote-history.js"; Vue.component("v-tab", { data() { diff --git a/javascripts/components/challenges/challenge-box.js b/javascripts/components/challenges/challenge-box.js index 4cb998bc8..9c1c86dde 100644 --- a/javascripts/components/challenges/challenge-box.js +++ b/javascripts/components/challenges/challenge-box.js @@ -1,4 +1,4 @@ -"use strict"; +import "../common/hint-text.js"; Vue.component("challenge-box", { props: { diff --git a/javascripts/components/challenges/challenge-grid.js b/javascripts/components/challenges/challenge-grid.js index 5a679adb9..7a0ac8774 100644 --- a/javascripts/components/challenges/challenge-grid.js +++ b/javascripts/components/challenges/challenge-grid.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("challenge-grid", { props: { count: Number, diff --git a/javascripts/components/challenges/challenges-header.js b/javascripts/components/challenges/challenges-header.js index 554b82630..2704c85ae 100644 --- a/javascripts/components/challenges/challenges-header.js +++ b/javascripts/components/challenges/challenges-header.js @@ -1,5 +1,3 @@ -"use strict"; - Vue.component("challenges-header", { data() { return { diff --git a/javascripts/components/challenges/eternity-challenge-box.js b/javascripts/components/challenges/eternity-challenge-box.js index 01cc976b2..99f4b93e1 100644 --- a/javascripts/components/challenges/eternity-challenge-box.js +++ b/javascripts/components/challenges/eternity-challenge-box.js @@ -1,4 +1,4 @@ -"use strict"; +import "../common/hint-text.js"; Vue.component("eternity-challenge-box", { props: { diff --git a/javascripts/components/challenges/eternity-challenges-tab.js b/javascripts/components/challenges/eternity-challenges-tab.js index ebc7511b3..05f53d8f5 100644 --- a/javascripts/components/challenges/eternity-challenges-tab.js +++ b/javascripts/components/challenges/eternity-challenges-tab.js @@ -1,4 +1,8 @@ -"use strict"; +import "./challenges-header.js"; +import "./challenge-grid.js"; +import "./eternity-challenge-box.js"; +import "../common/effect-display.js"; +import "../common/description-display.js"; Vue.component("eternity-challenges-tab", { components: { diff --git a/javascripts/components/challenges/infinity-challenges-tab.js b/javascripts/components/challenges/infinity-challenges-tab.js index a4c0fd247..befb5b2db 100644 --- a/javascripts/components/challenges/infinity-challenges-tab.js +++ b/javascripts/components/challenges/infinity-challenges-tab.js @@ -1,4 +1,8 @@ -"use strict"; +import "./challenges-header.js"; +import "./challenge-grid.js"; +import "./challenge-box.js"; +import "../common/effect-display.js"; +import "../common/description-display.js"; Vue.component("infinity-challenges-tab", { components: { diff --git a/javascripts/components/challenges/normal-challenges-tab.js b/javascripts/components/challenges/normal-challenges-tab.js index 952dcedd2..336271ce1 100644 --- a/javascripts/components/challenges/normal-challenges-tab.js +++ b/javascripts/components/challenges/normal-challenges-tab.js @@ -1,4 +1,7 @@ -"use strict"; +import "./challenges-header.js"; +import "./challenge-grid.js"; +import "./challenge-box.js"; +import "../common/description-display.js"; Vue.component("normal-challenges-tab", { components: { @@ -59,7 +62,7 @@ Vue.component("normal-challenges-tab", {
- If you have an active Big Crunch Autobuyer, it will attempt to Crunch + If you have an active Big Crunch Autobuyer, it will attempt to Crunch as soon as possible when reaching Infinite antimatter.
diff --git a/javascripts/components/common/ad-slider-component.js b/javascripts/components/common/ad-slider-component.js index 405526168..92ed24e93 100644 --- a/javascripts/components/common/ad-slider-component.js +++ b/javascripts/components/common/ad-slider-component.js @@ -1,4 +1,5 @@ -"use strict"; +import "./plus-minus-button.js"; + /* * This is based on vue-slider-component * downloaded from https://github.com/NightCatSama/vue-slider-component @@ -1116,10 +1117,10 @@ Vue.component("ad-slider-component", {