Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit fc2587a

Browse files
committed
x
1 parent 33973d6 commit fc2587a

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

src/renderer/components/FileView.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<div v-if="viewing" class="file-view">
33
<div class="image-view" v-if="viewing.type == 'mp4'">
44
<div class="video-big">
5-
<video class="player" height="100px" playsinline loop controls>
6-
<source :src='`${dumpDirectory.replace(/[ ]/g, "\\ ")}/${viewing.dumpKey.replace(/[ ]/g, "\ ")}`' type="video/mp4">
5+
<video class="player" height="440px" width="370px" playsinline loop controls>
6+
<source :src='`${dumpDirectory.replace(ws1, ws2)}/${viewing.dumpKey.replace(ws1, ws3)}`' type="video/mp4">
77
</video>
88
</div>
99
</div>
1010
<div class="image-view" v-else>
1111
<div
1212
class="image-big"
13-
:style='{ "background-image": `url("file://${dumpDirectory.replace(/[ ]/g, "\\ ")}/${viewing.dumpKey.replace(/[ ]/g, "\ ")}")` }'
13+
:style='{ "background-image": `url("file://${dumpDirectory.replace(ws1, ws2)}/${viewing.dumpKey.replace(ws1, ws3)}")` }'
1414
/>
1515
</div>
1616
<div class="info-area">
@@ -22,12 +22,16 @@
2222
style="flex-grow:1;margin-right:10px;"
2323
@click="$root.$emit('previousItem')"
2424
v-shortkey="['arrowleft']" @shortkey="$root.$emit('previousItem')"
25+
v-tippy="$store.state.tooltipDefault"
26+
title="Arrow keys work too..."
2527
>Previous</button>
2628
<button
2729
class="coolbtn margin-vertical"
2830
style="flex-grow:1"
2931
@click="$root.$emit('nextItem')"
3032
v-shortkey="['arrowright']" @shortkey="$root.$emit('nextItem')"
33+
v-tippy="$store.state.tooltipDefault"
34+
title="You can use your left and right arrow keys btw"
3135
>Next</button>
3236
</div>
3337

@@ -114,7 +118,10 @@ export default {
114118
data() {
115119
return {
116120
saved: false,
117-
savedAs: false
121+
savedAs: false,
122+
ws1: /[ ]/g,
123+
ws2: "\\ ",
124+
ws3: "\ "
118125
};
119126
},
120127
computed: {
@@ -215,8 +222,7 @@ export default {
215222
right: 0;
216223
margin: auto;
217224
min-height: 200px;
218-
margin-top: 100px;
219-
float: left;
225+
220226
}
221227
.image-big {
222228
height: 70vh;

src/renderer/components/Info.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
</div>
2424
<!-- <icon :icon="['fab', 'twitter']"/> -->
2525
<h4>🤔 What is a cache?</h4>
26-
<p>Caching is common practice by apps to help decreace server bandwidth costs and improve loadtimes. If an app can save media to your device, it need not request it from the server again.</p>
26+
<p>Caching is common practice by apps to help decreace server bandwidth costs and improve loadtimes. If an app can save media to your device, it need not request it from the server again. These apps usually store the files without any metadata or even filetype. CacheMonkey takes care of discovering the original filetype and processing the cache files for preview.</p>
27+
<h4>🌚 What stuff gets cached?</h4>
28+
<p>Most apps will store all media that is loaded from their servers. For example, entering Discord channel will load not only the images you see with your eyes, but approximatly 6 times your screen height, even if you don't scroll up. Images that are deleted immediately after posting are still saved in your cache if they loaded to your client- which could remain there for months. In Electron's case it is limited by size.</p>
2729
<h4>🔑 What apps does CacheMonkey support?</h4>
2830
<p>In theory, anything with a "Cache" folder, if you can locate it, we should be able to convert it to the original filetype and allow you to view it with this app.</p>
2931
<h4>🛠 Developers, you can help!</h4>

0 commit comments

Comments
 (0)