vue 2 to 3 #1

Merged
gator merged 25 commits from dev into master 2022-12-02 11:23:43 +01:00
3 changed files with 7 additions and 10 deletions
Showing only changes of commit 9613f023b1 - Show all commits

View File

@ -1,9 +0,0 @@
<template>
<div class="form-field" v-if="type === 'checkbox'">
<label>{{ name }}
<input type="checkbox" name="{{ name }}">
</label>
</div>
<div class="form-field" v-else-if="type === ''">
</div>
</template>

View File

@ -38,7 +38,12 @@ export default {
cursor: pointer;
border: 2px solid darkgrey;
margin: 0 0 10px 0;
}
}
select {
margin-top: 10px;
padding: 5px;
}
input[type="button"] {
min-width: 60px;

View File

@ -73,6 +73,7 @@ function conwayRules(cell, neighbors) {
}
// get the next evolution of a 2D CA initial state
// Rules : Moore neighborhood
function evolve2d(board, rulesFn) {
return board.map((row, x) => row.map((cell, y) => {
const neighbors = getCellNeighbors(board, [x, y]);