Skip to content

Commit

Permalink
CLDR-17205 kbd: fix charts problem (#3370)
Browse files Browse the repository at this point in the history
- charts broke with recent renames (such as to= to output=)

(cherry picked from commit fa9259f)
  • Loading branch information
srl295 authored and pedberg-icu committed Oct 31, 2023
1 parent 4d2e753 commit d643509
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions docs/charts/keyboard/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
<i
>Note: This is a very preliminary chart. For feedback on this chart or
contents, please comment on:
<a href="https://unicode-org.atlassian.net/browse/CLDR-16655"
>https://unicode-org.atlassian.net/browse/CLDR-16655</a
<a href="https://unicode-org.atlassian.net/browse/CLDR-17205"
>https://unicode-org.atlassian.net/browse/CLDR-17205</a
></i
>
<!-- {{ message }} -->
Expand All @@ -68,14 +68,14 @@
<h2 :id="file"><code>{{file}}</code></h2>
<ul>
<li v-for="layers of getLayers(file)">
<h3 v-if="layers.form">Form: {{ layers.form }}</h3>
<h3 v-if="layers.formId">Form: {{ layers.formId }}</h3>
<h3 v-if="layers.id">ID: {{ layers.id }}</h3>
<h4 v-if="layers.minDeviceWidth">
minDeviceWidth: {{ layers.minDeviceWidth }}mm
</h4>
<ul>
<li v-for="layer of layers.layer">
<h4 v-if="layer.modifier">Modifier: {{ layer.modifier }}</h4>
<h4 v-if="layer.modifiers">Modifier: {{ layer.modifiers }}</h4>
<h4 v-if="layer.id">{{ layer.id }}</h4>
<div class="rows">
<div class="row" v-for="row of layer.row">
Expand All @@ -84,8 +84,8 @@ <h4 v-if="layer.id">{{ layer.id }}</h4>
:class="getKeyClass(key)"
v-for="key of row.keys"
>
{{key.to}}
<b title="Switch" v-if="key.switch">☞ {{key.switch}}</b>
{{key.output}}
<b title="Switch" v-if="key.layerId">☞ {{key.layerId}}</b>
</span>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/charts/keyboard/static/keyboard-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ function mogrifyKeys(keys) {
return keys.reduce((p, v) => {
// TODO: any other swapping
mogrifyAttrs(v);
const { id, to } = v;
if (to) {
v.to = unescapeStr(to);
const { id, output } = v;
if (output) {
v.output = unescapeStr(output);
}
p[id] = v;
return p;
Expand Down

0 comments on commit d643509

Please sign in to comment.