Skip to content

Commit

Permalink
favicons, use unshift instead of push to reverse order the notes are …
Browse files Browse the repository at this point in the history
…appearing in
  • Loading branch information
Swimburger committed Apr 21, 2016
1 parent be8c1ec commit f8aa87f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Google Keep clone built with Vue and Firebase</title>
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="icon" href="/favicon-32x32.png" sizes="32x32">
<link rel="apple-touch-icon-precomposed" href="/favicon-128x128.png">
<meta name="msapplication-TileImage" content="/favicon-128x128.png">
<meta name="theme-color" content="#41b883">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion src/components/notes/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
let firebase = new Firebase('https://gkeep-vueifire.firebaseio.com/')
firebase.child('notes').on('child_added', (snapshot) => {
let note = snapshot.val()
this.notes.push(note)
this.notes.unshift(note)
this.$nextTick(() => { // the new note hasn't been rendered yet, but in the nextTick, it will be rendered
masonry.reloadItems()
masonry.layout()
Expand Down
Binary file added static/favicon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon.ico
Binary file not shown.

0 comments on commit f8aa87f

Please sign in to comment.