diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-27 02:17:10 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-27 02:17:10 +0900 |
| commit | 15c94f6b8158a72f7f3d9335238770c8a851f1fd (patch) | |
| tree | 7a06b872897085ec36e7f20216734b42850f52e4 /src/web/app/common | |
| parent | #372 (diff) | |
| download | misskey-15c94f6b8158a72f7f3d9335238770c8a851f1fd.tar.gz misskey-15c94f6b8158a72f7f3d9335238770c8a851f1fd.tar.bz2 misskey-15c94f6b8158a72f7f3d9335238770c8a851f1fd.zip | |
:v:
Diffstat (limited to 'src/web/app/common')
| -rw-r--r-- | src/web/app/common/filters/index.ts | 1 | ||||
| -rw-r--r-- | src/web/app/common/views/filters/bytes.ts (renamed from src/web/app/common/filters/bytes.ts) | 0 | ||||
| -rw-r--r-- | src/web/app/common/views/filters/index.ts | 2 | ||||
| -rw-r--r-- | src/web/app/common/views/filters/number.ts | 5 |
4 files changed, 7 insertions, 1 deletions
diff --git a/src/web/app/common/filters/index.ts b/src/web/app/common/filters/index.ts deleted file mode 100644 index 16ff8c87a4..0000000000 --- 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 index 3afb11e9ae..3afb11e9ae 100644 --- a/src/web/app/common/filters/bytes.ts +++ b/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 0000000000..3a1d1ac235 --- /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 0000000000..d9f48229dd --- /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(); +}); |