aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/js/app.js')
-rw-r--r--app/js/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/js/app.js b/app/js/app.js
index c0ed616..11581b6 100644
--- a/app/js/app.js
+++ b/app/js/app.js
@@ -149,6 +149,11 @@ function createDirectory(name) {
149 }); 149 });
150} 150}
151 151
152Vue.filter('prettyDate', function (value) {
153 var d = new Date(value);
154 return d.toDateString();
155});
156
152var app = new Vue({ 157var app = new Vue({
153 el: '#app', 158 el: '#app',
154 data: { 159 data: {
@@ -177,8 +182,6 @@ var app = new Vue({
177 } 182 }
178}); 183});
179 184
180window.app = app;
181
182login(localStorage.username, localStorage.password); 185login(localStorage.username, localStorage.password);
183 186
184})(); 187})();