From 2174e1ccae356f116fe2fafc0e202e8d5ba431bb Mon Sep 17 00:00:00 2001 From: Kayla Glick <12898988+kayla-glick@users.noreply.github.com> Date: Fri, 25 Nov 2022 06:04:22 +0000 Subject: [PATCH] reorganizing and streamlining stylesheets --- makefile | 4 +-- package-lock.json | 8 +++++ package.json | 3 +- ui/balance_druid/index.scss | 2 -- ui/deathknight/index.scss | 2 -- ui/elemental_shaman/index.scss | 2 -- ui/enhancement_shaman/index.scss | 2 -- ui/feral_druid/index.scss | 2 -- ui/feral_tank_druid/index.scss | 2 -- ui/healing_priest/index.scss | 2 -- ui/hunter/index.scss | 2 -- ui/index.html | 2 +- ui/index.scss | 2 -- ui/index.ts | 3 ++ ui/index_template.html | 14 ++++---- ui/mage/index.scss | 2 -- ui/protection_paladin/index.scss | 2 -- ui/protection_warrior/index.scss | 2 -- ui/retribution_paladin/index.scss | 2 -- ui/rogue/index.scss | 2 -- .../core/components/bonus_stats_picker.scss} | 0 .../core/components/boolean_picker.scss} | 0 .../core/components/character_stats.scss} | 0 .../core/components/close_button.scss} | 0 .../core/components/cooldowns_picker.scss} | 0 .../components/custom_rotation_picker.scss} | 0 .../core/components/detailed_results.scss} | 0 .../core/components/encounter_picker.scss} | 0 .../core/components/enum_picker.scss} | 0 .../core/components/exporters.scss} | 0 .../core/components/filters_menu.scss} | 0 .../core/components/gear_picker.scss} | 0 .../core/components/icon_enum_picker.scss} | 0 .../core/components/icon_picker.scss} | 0 .../core/components/importers.scss} | 0 .../core/components/input.scss} | 0 .../core/components/list_picker.scss} | 0 .../core/components/log_runner.scss} | 0 .../core/components/multi_icon_picker.scss} | 0 .../core/components/number_list_picker.scss} | 0 .../core/components/number_picker.scss} | 0 .../core/components/popup.scss} | 0 .../core/components/raid_sim_action.scss} | 0 .../core/components/raid_target_picker.scss} | 0 .../core/components/saved_data_manager.scss} | 0 .../core/components/settings_menu.scss} | 0 .../core/components/stat_weights_action.scss} | 0 .../core/components/string_picker.scss} | 0 .../core/components/title.scss} | 0 .../core/components/totem_inputs.scss} | 0 ui/scss/core/individual_sim_ui/index.scss | 32 +++++++++++++++++++ .../core/individual_sim_ui/shared.scss} | 28 ---------------- ui/scss/core/sim_ui/index.scss | 10 ++++++ .../core/sim_ui/shared.scss} | 8 ++--- .../core/talents/glyphs_picker.scss} | 0 .../core/talents/hunter_pet.scss} | 1 - .../core/talents/talents_picker.scss} | 0 ui/scss/global.scss | 4 +++ .../_shared.scss => scss/global_old.scss} | 0 ui/scss/{ => homepage}/homepage.scss | 0 ui/scss/homepage/index.scss | 2 ++ ui/scss/index.scss | 13 +++++--- ui/scss/sims/balance_druid/index.scss | 2 ++ .../sims/balance_druid/sim.scss} | 0 ui/scss/sims/deathknight/index.scss | 2 ++ .../sims/deathknight/sim.scss} | 0 .../sims/detailed_results/dps_histogram.scss} | 0 .../sims}/detailed_results/index.scss | 20 ++++++------ .../sims/detailed_results/player_damage.scss} | 0 .../detailed_results/resource_metrics.scss} | 0 .../detailed_results/results_filter.scss} | 0 .../sims/detailed_results/source_chart.scss} | 0 .../sims/detailed_results/timeline.scss} | 0 .../detailed_results/topline_results.scss} | 2 +- ui/scss/sims/elemental_shaman/index.scss | 3 ++ .../sims/elemental_shaman/sim.scss} | 2 -- ui/scss/sims/enhancement_shaman/index.scss | 3 ++ .../sims/enhancement_shaman/sim.scss} | 2 -- ui/scss/sims/feral_druid/index.scss | 2 ++ .../sims/feral_druid/sim.scss} | 0 ui/scss/sims/feral_tank_druid/index.scss | 2 ++ .../sims/feral_tank_druid/sim.scss} | 0 ui/scss/sims/healing_priest/index.scss | 2 ++ .../sims/healing_priest/sim.scss} | 0 ui/scss/sims/hunter/index.scss | 3 ++ .../_sim.scss => scss/sims/hunter/sim.scss} | 2 -- ui/scss/sims/mage/index.scss | 2 ++ .../_sim.scss => scss/sims/mage/sim.scss} | 0 ui/scss/sims/protection_paladin/index.scss | 2 ++ .../sims/protection_paladin/sim.scss} | 0 ui/scss/sims/protection_warrior/index.scss | 2 ++ .../sims/protection_warrior/sim.scss} | 0 .../sims/raid/assignments_picker.scss} | 0 .../sims/raid/blessings_picker.scss} | 1 - ui/{ => scss/sims}/raid/index.scss | 24 ++++++-------- .../sims/raid/raid_picker.scss} | 0 .../sims/raid/raid_sim_ui.scss} | 0 ui/scss/sims/raid/sim.scss | 8 +++++ .../sims/raid/tanks_picker.scss} | 0 ui/scss/sims/retribution_paladin/index.scss | 2 ++ .../sims/retribution_paladin/sim.scss} | 0 ui/scss/sims/rogue/index.scss | 3 ++ .../_sim.scss => scss/sims/rogue/sim.scss} | 2 -- ui/scss/sims/shadow_priest/index.scss | 2 ++ .../sims/shadow_priest/sim.scss} | 0 ui/scss/sims/smite_priest/index.scss | 2 ++ .../sims/smite_priest/sim.scss} | 0 ui/scss/sims/tank_deathknight/index.scss | 2 ++ .../sims/tank_deathknight/sim.scss} | 0 ui/scss/sims/warlock/index.scss | 2 ++ .../_sim.scss => scss/sims/warlock/sim.scss} | 0 ui/scss/sims/warrior/index.scss | 2 ++ .../_sim.scss => scss/sims/warrior/sim.scss} | 0 ui/shadow_priest/index.scss | 2 -- ui/smite_priest/index.scss | 2 -- ui/tank_deathknight/index.scss | 2 -- ui/warlock/index.scss | 2 -- ui/warrior/index.scss | 2 -- 118 files changed, 150 insertions(+), 123 deletions(-) delete mode 100644 ui/balance_druid/index.scss delete mode 100644 ui/deathknight/index.scss delete mode 100644 ui/elemental_shaman/index.scss delete mode 100644 ui/enhancement_shaman/index.scss delete mode 100644 ui/feral_druid/index.scss delete mode 100644 ui/feral_tank_druid/index.scss delete mode 100644 ui/healing_priest/index.scss delete mode 100644 ui/hunter/index.scss delete mode 100644 ui/index.scss delete mode 100644 ui/mage/index.scss delete mode 100644 ui/protection_paladin/index.scss delete mode 100644 ui/protection_warrior/index.scss delete mode 100644 ui/retribution_paladin/index.scss delete mode 100644 ui/rogue/index.scss rename ui/{core/components/_bonus_stats_picker.scss => scss/core/components/bonus_stats_picker.scss} (100%) rename ui/{core/components/_boolean_picker.scss => scss/core/components/boolean_picker.scss} (100%) rename ui/{core/components/_character_stats.scss => scss/core/components/character_stats.scss} (100%) rename ui/{core/components/_close_button.scss => scss/core/components/close_button.scss} (100%) rename ui/{core/components/_cooldowns_picker.scss => scss/core/components/cooldowns_picker.scss} (100%) rename ui/{core/components/_custom_rotation_picker.scss => scss/core/components/custom_rotation_picker.scss} (100%) rename ui/{core/components/_detailed_results.scss => scss/core/components/detailed_results.scss} (100%) rename ui/{core/components/_encounter_picker.scss => scss/core/components/encounter_picker.scss} (100%) rename ui/{core/components/_enum_picker.scss => scss/core/components/enum_picker.scss} (100%) rename ui/{core/components/_exporters.scss => scss/core/components/exporters.scss} (100%) rename ui/{core/components/_filters_menu.scss => scss/core/components/filters_menu.scss} (100%) rename ui/{core/components/_gear_picker.scss => scss/core/components/gear_picker.scss} (100%) rename ui/{core/components/_icon_enum_picker.scss => scss/core/components/icon_enum_picker.scss} (100%) rename ui/{core/components/_icon_picker.scss => scss/core/components/icon_picker.scss} (100%) rename ui/{core/components/_importers.scss => scss/core/components/importers.scss} (100%) rename ui/{core/components/_input.scss => scss/core/components/input.scss} (100%) rename ui/{core/components/_list_picker.scss => scss/core/components/list_picker.scss} (100%) rename ui/{core/components/_log_runner.scss => scss/core/components/log_runner.scss} (100%) rename ui/{core/components/_multi_icon_picker.scss => scss/core/components/multi_icon_picker.scss} (100%) rename ui/{core/components/_number_list_picker.scss => scss/core/components/number_list_picker.scss} (100%) rename ui/{core/components/_number_picker.scss => scss/core/components/number_picker.scss} (100%) rename ui/{core/components/_popup.scss => scss/core/components/popup.scss} (100%) rename ui/{core/components/_raid_sim_action.scss => scss/core/components/raid_sim_action.scss} (100%) rename ui/{core/components/_raid_target_picker.scss => scss/core/components/raid_target_picker.scss} (100%) rename ui/{core/components/_saved_data_manager.scss => scss/core/components/saved_data_manager.scss} (100%) rename ui/{core/components/_settings_menu.scss => scss/core/components/settings_menu.scss} (100%) rename ui/{core/components/_stat_weights_action.scss => scss/core/components/stat_weights_action.scss} (100%) rename ui/{core/components/_string_picker.scss => scss/core/components/string_picker.scss} (100%) rename ui/{core/components/_title.scss => scss/core/components/title.scss} (100%) rename ui/{core/components/_totem_inputs.scss => scss/core/components/totem_inputs.scss} (100%) create mode 100644 ui/scss/core/individual_sim_ui/index.scss rename ui/{core/_individual_sim_ui.scss => scss/core/individual_sim_ui/shared.scss} (80%) create mode 100644 ui/scss/core/sim_ui/index.scss rename ui/{core/_sim_ui.scss => scss/core/sim_ui/shared.scss} (97%) rename ui/{core/talents/_glyphs_picker.scss => scss/core/talents/glyphs_picker.scss} (100%) rename ui/{core/talents/_hunter_pet.scss => scss/core/talents/hunter_pet.scss} (99%) rename ui/{core/talents/_talents_picker.scss => scss/core/talents/talents_picker.scss} (100%) rename ui/{core/_shared.scss => scss/global_old.scss} (100%) rename ui/scss/{ => homepage}/homepage.scss (100%) create mode 100644 ui/scss/homepage/index.scss create mode 100644 ui/scss/sims/balance_druid/index.scss rename ui/{balance_druid/_sim.scss => scss/sims/balance_druid/sim.scss} (100%) create mode 100644 ui/scss/sims/deathknight/index.scss rename ui/{deathknight/_sim.scss => scss/sims/deathknight/sim.scss} (100%) rename ui/{detailed_results/_dps_histogram.scss => scss/sims/detailed_results/dps_histogram.scss} (100%) rename ui/{ => scss/sims}/detailed_results/index.scss (90%) rename ui/{detailed_results/_player_damage.scss => scss/sims/detailed_results/player_damage.scss} (100%) rename ui/{detailed_results/_resource_metrics.scss => scss/sims/detailed_results/resource_metrics.scss} (100%) rename ui/{detailed_results/_results_filter.scss => scss/sims/detailed_results/results_filter.scss} (100%) rename ui/{detailed_results/_source_chart.scss => scss/sims/detailed_results/source_chart.scss} (100%) rename ui/{detailed_results/_timeline.scss => scss/sims/detailed_results/timeline.scss} (100%) rename ui/{detailed_results/_topline_results.scss => scss/sims/detailed_results/topline_results.scss} (60%) create mode 100644 ui/scss/sims/elemental_shaman/index.scss rename ui/{elemental_shaman/_sim.scss => scss/sims/elemental_shaman/sim.scss} (92%) create mode 100644 ui/scss/sims/enhancement_shaman/index.scss rename ui/{enhancement_shaman/_sim.scss => scss/sims/enhancement_shaman/sim.scss} (93%) create mode 100644 ui/scss/sims/feral_druid/index.scss rename ui/{feral_druid/_sim.scss => scss/sims/feral_druid/sim.scss} (100%) create mode 100644 ui/scss/sims/feral_tank_druid/index.scss rename ui/{feral_tank_druid/_sim.scss => scss/sims/feral_tank_druid/sim.scss} (100%) create mode 100644 ui/scss/sims/healing_priest/index.scss rename ui/{healing_priest/_sim.scss => scss/sims/healing_priest/sim.scss} (100%) create mode 100644 ui/scss/sims/hunter/index.scss rename ui/{hunter/_sim.scss => scss/sims/hunter/sim.scss} (94%) create mode 100644 ui/scss/sims/mage/index.scss rename ui/{mage/_sim.scss => scss/sims/mage/sim.scss} (100%) create mode 100644 ui/scss/sims/protection_paladin/index.scss rename ui/{protection_paladin/_sim.scss => scss/sims/protection_paladin/sim.scss} (100%) create mode 100644 ui/scss/sims/protection_warrior/index.scss rename ui/{protection_warrior/_sim.scss => scss/sims/protection_warrior/sim.scss} (100%) rename ui/{raid/_assignments_picker.scss => scss/sims/raid/assignments_picker.scss} (100%) rename ui/{raid/_blessings_picker.scss => scss/sims/raid/blessings_picker.scss} (99%) rename ui/{ => scss/sims}/raid/index.scss (63%) rename ui/{raid/_raid_picker.scss => scss/sims/raid/raid_picker.scss} (100%) rename ui/{raid/_raid_sim_ui.scss => scss/sims/raid/raid_sim_ui.scss} (100%) create mode 100644 ui/scss/sims/raid/sim.scss rename ui/{raid/_tanks_picker.scss => scss/sims/raid/tanks_picker.scss} (100%) create mode 100644 ui/scss/sims/retribution_paladin/index.scss rename ui/{retribution_paladin/_sim.scss => scss/sims/retribution_paladin/sim.scss} (100%) create mode 100644 ui/scss/sims/rogue/index.scss rename ui/{rogue/_sim.scss => scss/sims/rogue/sim.scss} (93%) create mode 100644 ui/scss/sims/shadow_priest/index.scss rename ui/{shadow_priest/_sim.scss => scss/sims/shadow_priest/sim.scss} (100%) create mode 100644 ui/scss/sims/smite_priest/index.scss rename ui/{smite_priest/_sim.scss => scss/sims/smite_priest/sim.scss} (100%) create mode 100644 ui/scss/sims/tank_deathknight/index.scss rename ui/{tank_deathknight/_sim.scss => scss/sims/tank_deathknight/sim.scss} (100%) create mode 100644 ui/scss/sims/warlock/index.scss rename ui/{warlock/_sim.scss => scss/sims/warlock/sim.scss} (100%) create mode 100644 ui/scss/sims/warrior/index.scss rename ui/{warrior/_sim.scss => scss/sims/warrior/sim.scss} (100%) delete mode 100644 ui/shadow_priest/index.scss delete mode 100644 ui/smite_priest/index.scss delete mode 100644 ui/tank_deathknight/index.scss delete mode 100644 ui/warlock/index.scss delete mode 100644 ui/warrior/index.scss diff --git a/makefile b/makefile index 5ad737285a..927640452b 100644 --- a/makefile +++ b/makefile @@ -85,7 +85,7 @@ ui/core/proto/api.ts: proto/*.proto node_modules ui/%/index.html: ui/index_template.html $(eval title := $(shell echo $(shell basename $(@D)) | sed -r 's/(^|_)([a-z])/\U \2/g' | cut -c 2-)) - cat ui/index_template.html | sed 's/@@TITLE@@/WOTLK $(title) Simulator/g' > $@ + cat ui/index_template.html | sed -e 's/@@TITLE@@/WOTLK $(title) Simulator/g' -e 's/@@SPEC@@/$(shell basename $(@D))/g' > $@ package-lock.json: npm install @@ -103,7 +103,7 @@ $(OUT_DIR)/%/index.html: ui/index_template.html $(OUT_DIR)/assets $(eval title := $(shell echo $(shell basename $(@D)) | sed -r 's/(^|_)([a-z])/\U \2/g' | cut -c 2-)) echo $(title) mkdir -p $(@D) - cat ui/index_template.html | sed 's/@@TITLE@@/WOTLK $(title) Simulator/g' > $@ + cat ui/index_template.html | sed -e 's/@@TITLE@@/WOTLK $(title) Simulator/g' -e 's/@@SPEC@@/$(shell basename $(@D))/g' > $@ .PHONY: wasm wasm: $(OUT_DIR)/lib.wasm diff --git a/package-lock.json b/package-lock.json index cc5aa15e5f..077b8217f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2013,6 +2013,14 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, + "tippy.js": { + "version": "6.3.7", + "resolved": "https://registry.npmjs.org/tippy.js/-/tippy.js-6.3.7.tgz", + "integrity": "sha512-E1d3oP2emgJ9dRQZdf3Kkn0qJgI6ZLpyS5z6ZkY1DF3kaQaBsGZsndEpHwx+eC+tYM41HaSNvNtLx8tU57FzTQ==", + "requires": { + "@popperjs/core": "^2.9.0" + } + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", diff --git a/package.json b/package.json index ae054465f7..5feaacb821 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ }, "dependencies": { "@popperjs/core": "^2.11.6", - "bootstrap": "5.2.3" + "bootstrap": "5.2.3", + "tippy.js": "^6.3.7" } } diff --git a/ui/balance_druid/index.scss b/ui/balance_druid/index.scss deleted file mode 100644 index 8c6b3f596d..0000000000 --- a/ui/balance_druid/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../core/individual_sim_ui"; -@import "./sim"; diff --git a/ui/deathknight/index.scss b/ui/deathknight/index.scss deleted file mode 100644 index 8c6b3f596d..0000000000 --- a/ui/deathknight/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../core/individual_sim_ui"; -@import "./sim"; diff --git a/ui/elemental_shaman/index.scss b/ui/elemental_shaman/index.scss deleted file mode 100644 index 8c6b3f596d..0000000000 --- a/ui/elemental_shaman/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../core/individual_sim_ui"; -@import "./sim"; diff --git a/ui/enhancement_shaman/index.scss b/ui/enhancement_shaman/index.scss deleted file mode 100644 index 8c6b3f596d..0000000000 --- a/ui/enhancement_shaman/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../core/individual_sim_ui"; -@import "./sim"; diff --git a/ui/feral_druid/index.scss b/ui/feral_druid/index.scss deleted file mode 100644 index 8c6b3f596d..0000000000 --- a/ui/feral_druid/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../core/individual_sim_ui"; -@import "./sim"; diff --git a/ui/feral_tank_druid/index.scss b/ui/feral_tank_druid/index.scss deleted file mode 100644 index 8c6b3f596d..0000000000 --- a/ui/feral_tank_druid/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../core/individual_sim_ui"; -@import "./sim"; diff --git a/ui/healing_priest/index.scss b/ui/healing_priest/index.scss deleted file mode 100644 index 8c6b3f596d..0000000000 --- a/ui/healing_priest/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../core/individual_sim_ui"; -@import "./sim"; diff --git a/ui/hunter/index.scss b/ui/hunter/index.scss deleted file mode 100644 index 8c6b3f596d..0000000000 --- a/ui/hunter/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../core/individual_sim_ui"; -@import "./sim"; diff --git a/ui/index.html b/ui/index.html index 9ee21ed70c..ff1e0fe907 100644 --- a/ui/index.html +++ b/ui/index.html @@ -5,7 +5,7 @@ - + diff --git a/ui/index.scss b/ui/index.scss deleted file mode 100644 index 474cc4fac2..0000000000 --- a/ui/index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "scss/index"; -@import "scss/homepage"; diff --git a/ui/index.ts b/ui/index.ts index 6aeeddb0df..24f55625ad 100644 --- a/ui/index.ts +++ b/ui/index.ts @@ -1,15 +1,18 @@ import * as Popper from '@popperjs/core'; import * as bootstrap from 'bootstrap'; +import tippy from 'tippy.js'; declare global { interface Window { Popper: any; bootstrap: any; + tippy: any; } } window.Popper = Popper; window.bootstrap = bootstrap; +window.tippy = tippy; import './shared/bootstrap_overrides'; diff --git a/ui/index_template.html b/ui/index_template.html index b1f1aa1fdd..fa985ff24e 100644 --- a/ui/index_template.html +++ b/ui/index_template.html @@ -1,13 +1,13 @@ + @@TITLE@@ - + - - + @@ -15,12 +15,10 @@ - - + + - - - +