forked from FreeTubeApp/FreeTube
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FreeTubeApp-development' into development
- Loading branch information
Showing
47 changed files
with
7,123 additions
and
8,083 deletions.
There are no files selected for viewing
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
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
22 changes: 22 additions & 0 deletions
22
src/renderer/components/ft-age-restricted/ft-age-restricted.js
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,22 @@ | ||
import Vue from 'vue' | ||
|
||
export default Vue.extend({ | ||
name: 'FtAgeRestricted', | ||
props: { | ||
contentTypeString: { | ||
type: String, | ||
required: true | ||
} | ||
}, | ||
computed: { | ||
emoji: function () { | ||
const emojis = ['😵', '😦', '🙁', '☹️', '😦', '🤫', '😕'] | ||
return emojis[Math.floor(Math.random() * emojis.length)] | ||
}, | ||
|
||
restrictedMessage: function () { | ||
const contentType = this.$t('Age Restricted.Type.' + this.contentTypeString) | ||
return this.$t('Age Restricted.This $contentType is age restricted').replace('$contentType', contentType) | ||
} | ||
} | ||
}) |
14 changes: 14 additions & 0 deletions
14
src/renderer/components/ft-age-restricted/ft-age-restricted.sass
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,14 @@ | ||
.ft-age-restricted | ||
color: var(--primary-text-color) | ||
h2 | ||
width: 100% | ||
text-align: center | ||
background-color: var(--card-bg-color) | ||
padding: 10px 0 | ||
.frown | ||
width: 100% | ||
text-align: center | ||
background-color: var(--card-bg-color) | ||
font-size: 10em | ||
padding: 20px 0 | ||
height: 100% |
15 changes: 15 additions & 0 deletions
15
src/renderer/components/ft-age-restricted/ft-age-restricted.vue
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,15 @@ | ||
<template> | ||
<div | ||
class="ft-age-restricted" | ||
> | ||
<h2> | ||
{{ restrictedMessage }} | ||
</h2> | ||
<div class="frown"> | ||
{{ emoji }} | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script src="./ft-age-restricted.js" /> | ||
<style scoped lang="sass" src="./ft-age-restricted.sass" /> |
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
1 change: 1 addition & 0 deletions
1
src/renderer/components/ft-list-lazy-wrapper/ft-list-lazy-wrapper.vue
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
Oops, something went wrong.