diff --git a/src/assets/bulma-variables.scss b/src/assets/bulma-variables.scss index ed5746d..18d5260 100644 --- a/src/assets/bulma-variables.scss +++ b/src/assets/bulma-variables.scss @@ -12,6 +12,7 @@ $input-focus-color: lighten($input-color, 10%); $input-hover-color: lighten($text, 7.5%); $input-background-color: $background; $input-border-color: lighten($input-background-color, 10%); +$button-hover-color: lighten(invert($text), 5%); // These values are same as Bulma's default, however, // we need here in order not to load entire Bulma files for these values. diff --git a/src/assets/variables.scss b/src/assets/variables.scss index aa6e7d1..71101c9 100644 --- a/src/assets/variables.scss +++ b/src/assets/variables.scss @@ -3,6 +3,7 @@ $background: #2c3e50; $body-background-color: #131a22; // == darken(#1c2732, 5%); $border: #46627f; $link: #2fe3be; +$modal-background-color: rgba($background, 0.6); $twitter-color: lighten(#1da1f2, 10%); diff --git a/src/components/ResultsFilter.vue b/src/components/ResultsFilter.vue index 3f32177..82e2e23 100644 --- a/src/components/ResultsFilter.vue +++ b/src/components/ResultsFilter.vue @@ -1,18 +1,28 @@ - - - - - - - - Clear - Fail - - - - - + + + + + + + - + Clear + Fail + + + + + + + + + + + + + + Golden eggs @@ -75,8 +85,6 @@ - - @@ -97,6 +105,7 @@ import { idKeyMapModule } from '@/store/modules/id-key-map'; import { translate } from '@/helper'; import FormField from '@/components/FormField.vue'; +import WeaponPicker from '@/components/WeaponPicker.vue'; const allAvailableFilters: FilterType[] = ['is_cleared', 'golden_egg', 'power_egg', 'events', 'stages', 'weapons', 'special']; @@ -178,6 +187,8 @@ export const restoreFilters = (serialziedFilters: string): ResultsFilter => { defaultFilter.golden_egg.max = filter.max_golden_egg || defaultFilter.golden_egg.max; defaultFilter.power_egg.min = filter.min_power_egg || defaultFilter.power_egg.min; defaultFilter.power_egg.max = filter.max_power_egg || defaultFilter.power_egg.max; + defaultFilter.stages = filter.stages ? filter.stages : defaultFilter.stages; + defaultFilter.weapons = filter.weapons ? filter.weapons : defaultFilter.weapons; return defaultFilter; } catch (_) { @@ -187,7 +198,7 @@ export const restoreFilters = (serialziedFilters: string): ResultsFilter => { @Component({ name: 'results-filter', - components: { FormField }, + components: { FormField, WeaponPicker }, computed: mapGetters('id-key-map', ['stageIds']), methods: { translate }, }) diff --git a/src/components/WeaponPicker.vue b/src/components/WeaponPicker.vue new file mode 100644 index 0000000..c40ca02 --- /dev/null +++ b/src/components/WeaponPicker.vue @@ -0,0 +1,149 @@ + + + + Open + ({{selectedWeapons.length}}/{{weapons.length}}) + + + + + + + Select All + Unselect All + Close + + + + + {{ counts[weaponId] }} + + + + + + + + +
({{selectedWeapons.length}}/{{weapons.length}})