freetube/src/renderer/App.vue

80 lines
1.9 KiB
Vue
Raw Normal View History

2020-02-16 18:30:00 +00:00
<template>
2020-09-16 02:55:19 +00:00
<div
id="app"
:class="{
hideOutlines: hideOutlines,
rightAligned: isRightAligned
2020-09-16 02:55:19 +00:00
}"
>
2020-02-16 18:30:00 +00:00
<top-nav ref="topNav" />
<side-nav ref="sideNav" />
<ft-flex-box
v-if="showUpdatesBanner || showBlogBanner"
class="flexBox routerView"
:class="{ expand: !isOpen }"
>
<ft-notification-banner
v-if="showUpdatesBanner"
class="banner"
:message="updateBannerMessage"
@click="handleUpdateBannerClick"
/>
<ft-notification-banner
v-if="showBlogBanner"
class="banner"
:message="blogBannerMessage"
@click="handleNewBlogBannerClick"
/>
</ft-flex-box>
2020-09-20 13:35:53 +00:00
<transition
v-if="dataReady"
2020-02-16 18:30:00 +00:00
mode="out-in"
2020-09-20 13:35:53 +00:00
name="fade"
2020-02-16 18:30:00 +00:00
>
<!-- <keep-alive> -->
<RouterView
ref="router"
class="routerView"
:class="{ expand: !isOpen }"
/>
<!-- </keep-alive> -->
2020-09-20 13:35:53 +00:00
</transition>
<ft-prompt
v-if="showReleaseNotes"
@click="showReleaseNotes = !showReleaseNotes"
>
<h2>
{{ changeLogTitle }}
</h2>
<span
id="changeLogText"
v-html="updateChangelog"
/>
<ft-flex-box>
<ft-button
:label="$t('Download From Site')"
@click="openDownloadsPage"
/>
</ft-flex-box>
</ft-prompt>
<ft-prompt
v-if="showExternalLinkOpeningPrompt"
:label="$t('Are you sure you want to open this link?')"
:extra-labels="[lastExternalLinkToBeOpened]"
:option-names="externalLinkOpeningPromptNames"
:option-values="externalLinkOpeningPromptValues"
@click="handleExternalLinkOpeningPromptAnswer"
/>
<ft-toast />
<ft-progress-bar
v-if="showProgressBar"
/>
2020-02-16 18:30:00 +00:00
</div>
</template>
<script src="./App.js" />
<style src="./themes.css" />
<style src="./videoJS.css" />
2020-09-17 12:23:50 +00:00
<style scoped src="./App.css" />