rethinkdb / horizon-thinkmark Goto Github PK
View Code? Open in Web Editor NEWA social bookmark management tool built with Horizon and Vue.js
A social bookmark management tool built with Horizon and Vue.js
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.