Skip to content

Commit

Permalink
Merge pull request #192 from Wakamai-Fondue/vue-updates
Browse files Browse the repository at this point in the history
Vue updates
  • Loading branch information
RoelN authored Oct 8, 2024
2 parents 1b65357 + 2c3c089 commit dcee2e6
Show file tree
Hide file tree
Showing 14 changed files with 82 additions and 253 deletions.
188 changes: 9 additions & 179 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"core-js": "^3.25.2",
"prismjs": "^1.29.0",
"vue": "^3.2.39",
"vue-linkify": "^1.0.1",
"vue-prism-component": "^2.0.0"
},
"devDependencies": {
Expand Down
9 changes: 6 additions & 3 deletions src/components/report/CharGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@
<template v-if="cat.subCategory || cat.script">
{{ cat.subCategory }}
{{ cat.script | capitalize }}
{{ $filters.capitalize(cat.script) }}
</template>
</h3>

<ol class="grid" :style="variableStyles | inlinestyle">
<ol
class="grid"
:style="$filters.inlinestyle(variableStyles)"
>
<!-- Put this back → :class="char.feature ? 'feature' : 'code'" -->
<li
v-for="char in cat.chars"
Expand All @@ -75,7 +78,7 @@

<ol
class="grid"
:style="variableStyles | inlinestyle"
:style="$filters.inlinestyle(variableStyles)"
v-if="!showCategories"
>
<!-- Put this back → :class="char.feature ? 'feature' : 'code'" -->
Expand Down
4 changes: 2 additions & 2 deletions src/components/report/ColorFont.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<div class="content">
<p>
This font has
<strong>{{ this.font.colorFormats | listify }}</strong>
<strong>{{ $filters.listify(this.font.colorFormats) }}</strong>
color glyphs.

<template v-if="palettes.length">
It has {{ palettes.length }}
{{ palettes.length | pluralize("palette") }}.
{{ $filters.pluralize(palettes.length, "palette") }}.
</template>
<template v-else>
The colors are hardcoded in the font.
Expand Down
7 changes: 4 additions & 3 deletions src/components/report/FeatureControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default {
state = this.currentStates[feature.tag];
} else {
// No CSS state yet, set to "default" (null)
this.$set(this.currentStates, feature.tag, null);
this.currentStates[feature.tag] = null;
state = null;
}
if (state === null) continue;
Expand All @@ -111,8 +111,9 @@ export default {
}
},
toggleAlternate: function (feature, value) {
this.$set(this.currentStates, feature, value);
this.$set(this.alternateStates, feature, value);
this.currentStates[feature] = value;
this.alternateStates[feature] = value;

this.updateStyles();
},
},
Expand Down
Loading

0 comments on commit dcee2e6

Please sign in to comment.