From 161a91a69f2cf4a640243c0869a724dcfd414d48 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 20 Feb 2018 12:38:45 +0900 Subject: [PATCH] wip --- .eslintrc | 3 +- src/web/app/mobile/tags/drive/file-viewer.tag | 282 ----------------- .../views/components/drive.file-detail.vue | 290 ++++++++++++++++++ src/web/app/mobile/views/components/drive.vue | 2 +- 4 files changed, 293 insertions(+), 284 deletions(-) delete mode 100644 src/web/app/mobile/tags/drive/file-viewer.tag create mode 100644 src/web/app/mobile/views/components/drive.file-detail.vue diff --git a/.eslintrc b/.eslintrc index d30cf2aa56..6caf8f532a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -12,6 +12,7 @@ "vue/html-indent": false, "vue/html-self-closing": false, "vue/no-unused-vars": false, - "no-console": 0 + "no-console": 0, + "no-unused-vars": 0 } } diff --git a/src/web/app/mobile/tags/drive/file-viewer.tag b/src/web/app/mobile/tags/drive/file-viewer.tag deleted file mode 100644 index e9a89493e1..0000000000 --- a/src/web/app/mobile/tags/drive/file-viewer.tag +++ /dev/null @@ -1,282 +0,0 @@ - -
- { - -
- - { file.properties.width } - × - { file.properties.height } - px - - - - { file.properties.width / gcd(file.properties.width, file.properties.height) } - : - { file.properties.height / gcd(file.properties.width, file.properties.height) } - -
-
-
-
- { file.type } - - { bytesToSize(file.datasize) } - - %fa:R clock% -
-
- -
-
-

- %fa:camera%%i18n:mobile.tags.mk-drive-file-viewer.exif% -

-
{ exif ? JSON.stringify(exif, null, 2) : '' }
-
-
-
-
-

- %fa:hashtag%%i18n:mobile.tags.mk-drive-file-viewer.hash% -

- { file.md5 } -
-
- - -
diff --git a/src/web/app/mobile/views/components/drive.file-detail.vue b/src/web/app/mobile/views/components/drive.file-detail.vue new file mode 100644 index 0000000000..db0c3c7019 --- /dev/null +++ b/src/web/app/mobile/views/components/drive.file-detail.vue @@ -0,0 +1,290 @@ + + + + + diff --git a/src/web/app/mobile/views/components/drive.vue b/src/web/app/mobile/views/components/drive.vue index 0e54563323..59b2c256d5 100644 --- a/src/web/app/mobile/views/components/drive.vue +++ b/src/web/app/mobile/views/components/drive.vue @@ -47,7 +47,7 @@ - +