Code Monkey home page Code Monkey logo

horizon-thinkmark's People

Contributors

segphault avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

horizon-thinkmark's Issues

adding fields

Thank you for this tutorial.
Question: What is the process of adding a field to the bookmarks?
I tried to add a "notes" field., in app.js I changed it to:

showBookmarkPrompt(ev) {
      this.editingBookmark = null;
    this.newBookmark = {url: "", title: "", notes: ""};
    },

and index.html:

<div class="add-bookmark" v-if="newBookmark || bookmarks.length == 0">
          <h2>Add New Bookmark</h2>
          <input type="text" v-model="newBookmark.url" placeholder="URL" />
          <input type="text" v-model="newBookmark.title" placeholder="Title" />
          <input type="text" v-model="newBookmark.notes" placeholder="Notes" />
          <button @click="addBookmark"><i class="icon ion-android-add"></i>Add</button>
          <button @click="cancelBookmark" v-if="newBookmark"><i class="icon ion-android-close"></i>Cancel</button>
        </div>

        <div class="add-bookmark" v-if="editingBookmark">
          <h2>Edit Bookmark</h2>
          <input type="text" v-model="editingBookmark.bookmark.url" placeholder="URL" />
          <input type="text" v-model="editingBookmark.bookmark.title" placeholder="Title" />
          <input type="text" v-model="newBookmark.notes" placeholder="Notes" />
          <button @click="updateBookmark"><i class="icon ion-compose"></i>Update</button>
          <button @click="cancelBookmark"><i class="icon ion-android-close"></i>Cancel</button>
        </div>

But it is not working correctly. Looking at the database I see that the notes field is there and gets populated when creating a new bookmark, but updates do not work.

Also wondering how to add "tags" to bookmarks. Best to store in bookmarks table or separate table? Would like to see all bookmarks with a particular tag and when new bookmarks added with tag, to automatically update the page (if on a "tag" page).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.