Skip to content

Commit

Permalink
Edited the information available in the About page
Browse files Browse the repository at this point in the history
This is an automated nightly publish.
  • Loading branch information
MarmadileManteater committed Aug 15, 2022
2 parents 9cb0970 + 3a0fb7a commit 51a19d4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
8 changes: 8 additions & 0 deletions _scripts/cordova-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const archiver = require('archiver');
rendererContent = rendererContent.replace(/const store (= localforage.createInstance)/g, 'const store = window.dataStore $1')
rendererContent = rendererContent.replace(/{openExternalLink\({rootState:t},e\){/g, "{openExternalLink:window.openExternalLink,electronOpenExternalLink({rootState:t},e){")
rendererContent = rendererContent.replace(/navigator.clipboard.writeText\(/g, "window.copyToClipboard\(")
rendererContent = rendererContent.replace(/,async downloadMedia\({rootState:t,dispatch:e},{url:i,title:s,extension:n,fallingBackPath:a}\){/g,", downloadMedia(state, mediaFormat) { window.downloadExternalLink(state, mediaFormat.url); return new Promise(function (resolve, reject) { resolve() }) }, async oldDownloadMedia({rootState:t,dispatch:e},{url:i,title:s,extension:n,fallingBackPath:a}){")
if (exportType === 'cordova') {
rendererContent = rendererContent.replace(/this.invidiousGetVideoInformation\(this.videoId\).then\(/g, 'this.invidiousGetVideoInformation(this.videoId).then(updatePlayingVideo);this.invidiousGetVideoInformation\(this.videoId\).then(')
rendererContent = rendererContent.replace('systemTheme:function(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}', 'systemTheme:function () { return window.isDarkMode }')
Expand Down Expand Up @@ -557,6 +558,13 @@ const archiver = require('archiver');
a.setAttribute("target", "_blank");
a.click();
};
window.downloadExternalLink = function ({ rootState }, link) {
var a = document.createElement("a");
a.setAttribute("href", link);
a.setAttribute("target", "_blank");
a.download = 'download';
a.click();
}
` + ((exportType === 'cordova')
? `
window.copyToClipboard = function (content) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@
justify-content: flex-start

::v-deep .iconDropdown
left: calc(50% - 20px)
left: inherit !important
right: auto
margin-left: 100px
3 changes: 2 additions & 1 deletion src/renderer/views/Channel/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ export default Vue.extend({
this.channelDescription = autolinker.link(response.description)
this.relatedChannels = response.relatedChannels.map((channel) => {
channel.authorThumbnails[channel.authorThumbnails.length - 1].url = channel.authorThumbnails[channel.authorThumbnails.length - 1].url.replace('https://yt3.ggpht.com', `${this.currentInvidiousInstance}/ggpht/`)

// Mapping authorId to channelId
channel.channelId = channel.authorId
return channel
})
this.latestVideos = response.latestVideos
Expand Down
18 changes: 18 additions & 0 deletions static/locales/ja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Settings:
Light: 'ライト'
Dracula: 'ドラキュラ'
System Default: 初期設定
Catppuccin Mocha: Catppuccin Mocha
Main Color Theme:
Main Color Theme: 'テーマのメイン カラー'
Red: ''
Expand All @@ -174,6 +175,20 @@ Settings:
Dracula Purple: 'ドラキュラ 紫'
Dracula Red: 'ドラキュラ 赤'
Dracula Yellow: 'ドラキュラ 黄'
Catppuccin Mocha Rosewater: Catppuccin Mocha Rosewater
Catppuccin Mocha Flamingo: Catppuccin Mocha Flamingo
Catppuccin Mocha Pink: Catppuccin Mocha Pink
Catppuccin Mocha Mauve: Catppuccin Mocha Mauve
Catppuccin Mocha Red: Catppuccin Mocha Red
Catppuccin Mocha Maroon: Catppuccin Mocha Maroon
Catppuccin Mocha Peach: Catppuccin Mocha Peach
Catppuccin Mocha Yellow: Catppuccin Mocha Yellow
Catppuccin Mocha Green: Catppuccin Mocha Green
Catppuccin Mocha Teal: Catppuccin Mocha Teal
Catppuccin Mocha Sky: Catppuccin Mocha Sky
Catppuccin Mocha Sapphire: Catppuccin Mocha Sapphire
Catppuccin Mocha Blue: Catppuccin Mocha Blue
Catppuccin Mocha Lavender: Catppuccin Mocha Lavender
Secondary Color Theme: 'テーマのアクセント カラー'
#* Main Color Theme
UI Scale: UI 縮尺率
Expand Down Expand Up @@ -365,6 +380,9 @@ Settings:
Ignore Unsupported Action Warnings: 未対応のアクションの警告を無視
External Player: 外部プレーヤー
External Player Settings: 外部プレーヤーの設定
Players:
None:
Name: なし
Download Settings:
Download Settings: ダウンロードの設定
Ask Download Path: ダウンロードパスの設定
Expand Down

0 comments on commit 51a19d4

Please sign in to comment.