]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
skip solve step
authorMarc Foley <m.foley.88@gmail.com>
Tue, 18 Feb 2025 13:47:42 +0000 (13:47 +0000)
committerMarc Foley <m.foley.88@gmail.com>
Tue, 4 Mar 2025 10:24:40 +0000 (10:24 +0000)
.ci/tags.html

index e03f22b4874b18891d4712ea0bea7ef8dd1d3532..6bb4db3792008ede64d19ed6b19079d2f8506134 100644 (file)
@@ -55,7 +55,7 @@
           </li>
           <li>
               <div class="join" style="padding-top: 12px;">
-                  <input class="join-item input input-sm input-bordered w-full max-w-xs" v-model="nameFilter" placeholder="filter">
+                  <input class="join-item input input-sm input-bordered w-full max-w-xs" placeholder="filter">
               </div>
           </li>
         </ul>
               </label>
             </div>  
           </div>
-          <div v-if="newAxes.length > 0">
-            <button @click="solveAxes" class="btn btn-xs">Solve</button>
-          </div>
           
           <div style="margin-bottom: 12pt;" v-for="(axisSet, idx) in solvedAxes">
             <div v-for="axis in axisSet.axes">
               <input type="number" class="grow" placeholder="400" v-model="axisSet.score" />
             </label>
           </div>
-        
-
-
         </div>
+
         <div class="divider"></div>
         <form @submit.prevent="copyFamily">
           <div class="label lavel-xs">
@@ -403,9 +398,6 @@ function axesCombos(axes) {
           }
         )
       },
-      solveAxes() {
-        this.solvedAxes = axesCombos(this.newAxes);
-      },
       sortedCategories() {
         return Array.from(this.categories).sort();
       },
@@ -483,13 +475,13 @@ function axesCombos(axes) {
       AddFamily() {
         this.isEdited = true;
         const fonts = document.getElementById("fonts")
-        if (this.solvedAxes.length > 0) {
-          this.solvedAxes.forEach((ax) => {
+        if (this.newAxes.length > 0) {
+          const solved = axesCombos(this.newAxes);
+          solved.forEach((ax) => {
             let name = `${this.newFamily}:"${ax.axes.map((a) => a.tag).join(",")}@${ax.axes.map((a) => a.coords).join(",")}"`;
             let newFamily = new FontTag(name, this.currentCategory, ax.score)
             this.tags.push(newFamily);
           })
-          // Remove all axis inputs for the next family
           this.newAxes = [];
         } else {
           let newFamily = new FontTag(this.newFamily, this.currentCategory, axes=this.newAxes, score=this.newWeight);