diff --git a/src/web/app/common/filters/index.ts b/src/web/app/common/filters/index.ts deleted file mode 100644 index 16ff8c87a..000000000 --- a/src/web/app/common/filters/index.ts +++ /dev/null @@ -1 +0,0 @@ -require('./bytes'); diff --git a/src/web/app/common/filters/bytes.ts b/src/web/app/common/views/filters/bytes.ts similarity index 100% rename from src/web/app/common/filters/bytes.ts rename to src/web/app/common/views/filters/bytes.ts diff --git a/src/web/app/common/views/filters/index.ts b/src/web/app/common/views/filters/index.ts new file mode 100644 index 000000000..3a1d1ac23 --- /dev/null +++ b/src/web/app/common/views/filters/index.ts @@ -0,0 +1,2 @@ +require('./bytes'); +require('./number'); diff --git a/src/web/app/common/views/filters/number.ts b/src/web/app/common/views/filters/number.ts new file mode 100644 index 000000000..d9f48229d --- /dev/null +++ b/src/web/app/common/views/filters/number.ts @@ -0,0 +1,5 @@ +import Vue from 'vue'; + +Vue.filter('number', (n) => { + return n.toLocaleString(); +}); diff --git a/src/web/app/mobile/views/pages/user.vue b/src/web/app/mobile/views/pages/user.vue index 378beeaf1..ae2fbe85d 100644 --- a/src/web/app/mobile/views/pages/user.vue +++ b/src/web/app/mobile/views/pages/user.vue @@ -27,15 +27,15 @@