toodles 0.1.0.10 → 0.1.0.11
raw patch · 4 files changed
+5/−6 lines, 4 files
Files
- app/Main.hs +1/−1
- toodles.cabal +1/−1
- web/html/index.html +2/−2
- web/js/app.js +1/−2
app/Main.hs view
@@ -6,7 +6,7 @@ {-# LANGUAGE TypeOperators #-} --- TODO(avi|p=3|#cleanup|key=val|k3y=asdf) - break this into modules+-- TODO (avi|p=3|#cleanup|key=val|k3y=asdf|key=1) - break this into modules module Main where import qualified Control.Exception as E
toodles.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: toodles-version: 0.1.0.10+version: 0.1.0.11 license: MIT copyright: 2018 Avi Press maintainer: mail@avi.press
web/html/index.html view
@@ -74,7 +74,7 @@ <label class="label">Add Custom Attributes (comma separated)</label> <div class="input-error key-val-parse-error" v-show="addKeyValParseError">Parse error, check your formatting and try again</div> <div class="control">- <input class="input" type="text" placeholder="key1:val1,key2:val2,..." v-model="addKeyVals" @keyup.enter="submitTodoEdits">+ <input class="input" type="text" placeholder="key1=val1,key2=val2,..." v-model="addKeyVals" @keyup.enter="submitTodoEdits"> </div> </div> @@ -142,7 +142,7 @@ <td class="todo-item-customAttributes"> <div v-show="Object.keys(todo.customAttributes).length" class="attribute-block"> <span v-for="entry in Object.entries(todo.customAttributes)" class="attribute-item" @change="updateTodo('here')">- <span >{{entry[0]}}</span>: <span >{{entry[1]}}</span>+ <span >{{entry[0]}}</span>=<span >{{entry[1]}}</span> </span> </div> <div class="tag-block" v-show="Object.keys(todo.tags).length">
web/js/app.js view
@@ -30,7 +30,6 @@ type: "GET", dataType: "json", success: function(data) {- console.log("here", data) this.todos = data.todos.map(t => { return { id: t.id,@@ -180,7 +179,7 @@ const keyVals = this.addKeyVals.trim() === "" ? [] :- this.addKeyVals.split(",").map(p => p.split(":").map(t => t.trim()))+ this.addKeyVals.split(",").map(p => p.split("=").map(t => t.trim())) const keyValError = keyVals.some(p => p && p.length !== 2) if (keyValError) { this.addKeyValParseError = true