-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from HarmlessKey/feature/dm_screen
Dm Screen
- Loading branch information
Showing
188 changed files
with
13,012 additions
and
8,293 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<template> | ||
<div class="drawer"> | ||
<a @click="hideDrawer()" v-shortkey="['esc']" @shortkey="hideDrawer()" class="hide"> | ||
<i aria-hidden="true" class="far fa-chevron-double-right" /> | ||
<span class="neutral-2 ml-2 d-none d-sm-inline">[esc]</span> | ||
<q-tooltip anchor="bottom middle" self="center middle"> Hide [esc] </q-tooltip> | ||
</a> | ||
<q-scroll-area :dark="$store.getters.theme === 'dark'" :thumb-style="{ width: '5px' }"> | ||
<div class="drawer__content" :class="drawer.classes"> | ||
<component | ||
v-if="component" | ||
v-bind="drawer.data" | ||
:is="component" | ||
:data="drawer.data" | ||
:type="drawer.type" | ||
/> | ||
</div> | ||
</q-scroll-area> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { mapActions } from "vuex"; | ||
export default { | ||
name: "Drawer", | ||
data() { | ||
return { | ||
drawer: this.$store.getters.getDrawer, | ||
component: null, | ||
}; | ||
}, | ||
computed: { | ||
loader() { | ||
if (!this.drawer.type) { | ||
return null; | ||
} | ||
return () => import(`./${this.drawer.type}.vue`); | ||
}, | ||
}, | ||
mounted() { | ||
this.loader() | ||
.then(() => { | ||
this.component = () => this.loader(); | ||
}) | ||
.catch(() => { | ||
this.component = () => import("./drawers/Error.vue"); | ||
}); | ||
}, | ||
methods: { | ||
...mapActions(["setDrawer"]), | ||
hideDrawer() { | ||
this.setDrawer(false); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.q-scrollarea { | ||
height: 100%; | ||
position: relative; | ||
&::v-deep { | ||
.q-scrollarea__content { | ||
width: 100%; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<div> | ||
<iframe | ||
v-if="music" | ||
ref="music" | ||
:src="`${music_url}?autoplay=1&mute=0&playsinline=1&controls=0`" | ||
title="Music player" | ||
class="music-player" | ||
allow="autoplay" | ||
/> | ||
<iframe | ||
v-for="sound in ambience" | ||
:key="sound.url" | ||
:src="`${ambience_url(sound.url)}?autoplay=1&mute=0&playsinline=1&controls=0`" | ||
title="Music player" | ||
class="music-player" | ||
allow="autoplay" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { generateYoutubeEmbedUrl, urlType } from "src/utils/generalFunctions"; | ||
import { mapGetters } from "vuex"; | ||
export default { | ||
name: "MusicPlayer", | ||
computed: { | ||
...mapGetters(["music", "ambience"]), | ||
music_url() { | ||
return urlType(this.music?.url) === "youtube" | ||
? generateYoutubeEmbedUrl(this.music?.url) | ||
: this.music?.url; | ||
}, | ||
}, | ||
methods: { | ||
ambience_url(url) { | ||
return urlType(url) === "youtube" ? generateYoutubeEmbedUrl(url) : url; | ||
}, | ||
}, | ||
}; | ||
</script> | ||
<style lang="scss" scoped> | ||
iframe { | ||
display: none; | ||
} | ||
</style> |
Oops, something went wrong.