diff options
Diffstat (limited to 'app/js/app.js')
-rw-r--r-- | app/js/app.js | 7 |
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 | ||
152 | Vue.filter('prettyDate', function (value) { | ||
153 | var d = new Date(value); | ||
154 | return d.toDateString(); | ||
155 | }); | ||
156 | |||
152 | var app = new Vue({ | 157 | var 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 | ||
180 | window.app = app; | ||
181 | |||
182 | login(localStorage.username, localStorage.password); | 185 | login(localStorage.username, localStorage.password); |
183 | 186 | ||
184 | })(); | 187 | })(); |