diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-25 06:04:06 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-25 06:04:06 +0900 |
| commit | 69b730e91a4196b724eef1f9328c7ef220012902 (patch) | |
| tree | 2ebf426f6642fda07f120dd6c79273d869de6152 /src/client/app | |
| parent | Bump webpack from 4.22.0 to 4.23.0 (#3007) (diff) | |
| download | misskey-69b730e91a4196b724eef1f9328c7ef220012902.tar.gz misskey-69b730e91a4196b724eef1f9328c7ef220012902.tar.bz2 misskey-69b730e91a4196b724eef1f9328c7ef220012902.zip | |
Clean up
Diffstat (limited to 'src/client/app')
| -rw-r--r-- | src/client/app/mobile/views/components/drive.file-detail.vue | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/client/app/mobile/views/components/drive.file-detail.vue b/src/client/app/mobile/views/components/drive.file-detail.vue index 872f2f59b1..c80cb61fa9 100644 --- a/src/client/app/mobile/views/components/drive.file-detail.vue +++ b/src/client/app/mobile/views/components/drive.file-detail.vue @@ -5,7 +5,6 @@ :src="file.url" :alt="file.name" :title="file.name" - @load="onImageLoaded" :style="style"> <template v-if="kind != 'image'">%fa:file%</template> <footer v-if="kind == 'image' && file.properties && file.properties.width && file.properties.height"> @@ -46,14 +45,6 @@ <ui-button @click="del">%fa:trash-alt R% %i18n:@delete%</ui-button> </div> </div> - <div class="exif" v-show="exif"> - <div> - <p> - %fa:camera%%i18n:@exif% - </p> - <pre ref="exif" class="json">{{ exif ? JSON.stringify(exif, null, 2) : '' }}</pre> - </div> - </div> <div class="hash"> <div> <p> @@ -67,8 +58,6 @@ <script lang="ts"> import Vue from 'vue'; -import * as EXIF from 'exif-js'; -import * as hljs from 'highlight.js'; import { gcd } from '../../../../../prelude/math'; export default Vue.extend({ @@ -139,15 +128,6 @@ export default Vue.extend({ showCreatedAt() { alert(new Date(this.file.createdAt).toLocaleString()); - }, - - onImageLoaded() { - const self = this; - EXIF.getData(this.$refs.img, function(this: any) { - const allMetaData = EXIF.getAllTags(this); - self.exif = allMetaData; - hljs.highlightBlock(self.$refs.exif); - }); } } }); @@ -256,34 +236,4 @@ export default Vue.extend({ border-radius 2px background #f5f5f5 - > .exif - padding 14px - border-top solid 1px var(--faceDivider) - - > div - max-width 500px - margin 0 auto - - > p - display block - margin 0 - padding 0 - color var(--text) - font-size 0.9em - - > [data-fa] - margin-right 4px - - > pre - display block - width 100% - margin 6px 0 0 0 - padding 8px - height 128px - overflow auto - font-size 0.9em - border solid 1px #dfdfdf - border-radius 2px - background #f5f5f5 - </style> |