Skip to content

Commit

Permalink
Release build 6.7.0 [ci release]
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane authored and github-actions[bot] committed Aug 9, 2024
1 parent 13ee45e commit f97053d
Show file tree
Hide file tree
Showing 121 changed files with 16,673 additions and 5,075 deletions.
4,456 changes: 3,237 additions & 1,219 deletions Sources/ContentScopeScripts/dist/pages/duckplayer/index.html

Large diffs are not rendered by default.

693 changes: 693 additions & 0 deletions Sources/ContentScopeScripts/dist/pages/duckplayer/js/index.css

Large diffs are not rendered by default.

3,387 changes: 2,498 additions & 889 deletions Sources/ContentScopeScripts/dist/pages/duckplayer/js/index.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions Sources/ContentScopeScripts/dist/pages/duckplayer/js/inline.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use strict";
(() => {
// pages/duckplayer/src/js/inline.js
var param = new URLSearchParams(window.location.search).get("platform");
if (isAllowed(param)) {
document.documentElement.dataset.platform = String(param);
} else {
document.documentElement.dataset.platform = "apple";
}
function isAllowed(input) {
const allowed = ["windows", "apple", "integration"];
return allowed.includes(input);
}
})();
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.
10 changes: 10 additions & 0 deletions Sources/ContentScopeScripts/dist/pages/duckplayer/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ export function createYoutubeURLForError (href, urlBase) {

return url.toString()
}

/**
* @param {string|null|undefined} iframeTitle
* @return {string | null}
*/
export function getValidVideoTitle (iframeTitle) {
if (typeof iframeTitle !== 'string') return null
if (iframeTitle === 'YouTube') return null
return iframeTitle.replace(/ - YouTube$/g, '')
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"smartling": {
"string_format": "icu",
"translate_paths": [
{
"path": "*/title",
"key": "{*}/title",
"instruction": "*/note"
}
]
},
"alwaysWatchHere": {
"title": "Always open YouTube videos here",
"note": "label text for a checkbox that enables this feature for all videos, not just the current one"
},
"keepEnabled": {
"title": "Keep Duck Player turned on",
"note": "label text for a checkbox that enables this feature for all videos, not just the current one"
},
"openInfoButton": {
"title": "Open Info",
"note": "aria label text on a button, to indicate there's more information to be shown if clicked"
},
"openSettingsButton": {
"title": "Open Settings",
"note": "aria label text on a button, opens a screen where the user can change settings"
},
"watchOnYoutube": {
"title": "Watch on YouTube",
"note": "text on a link that takes the user from the current page back onto YouTube.com"
},
"invalidIdError": {
"title": "<b>ERROR:</b> Invalid video id",
"note": "Shown when the page URL doesn't match a known video ID. Note for translators: The <b> tag makes the word 'ERROR:' bold. Depending on the grammar of the target language, you might need to move it so that the correct word is emphasized."
}
}
52 changes: 28 additions & 24 deletions Sources/ContentScopeScripts/dist/pages/onboarding/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 24 additions & 20 deletions Sources/ContentScopeScripts/dist/pages/release-notes/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,15 +604,15 @@
isReducedMotion: false,
isDarkMode: false,
debugState: false,
platform: (
/** @type {import('../environment').Environment['platform']} */
injectName: (
/** @type {import('../environment').Environment['injectName']} */
"windows"
),
willThrow: false
});
var THEME_QUERY = "(prefers-color-scheme: dark)";
var REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
function EnvironmentProvider({ children, debugState, willThrow = false, platform = "windows" }) {
function EnvironmentProvider({ children, debugState, willThrow = false, injectName = "windows" }) {
const [theme, setTheme] = h2(window.matchMedia(THEME_QUERY).matches ? "dark" : "light");
const [isReducedMotion, setReducedMotion] = h2(window.matchMedia(REDUCED_MOTION_QUERY).matches);
p2(() => {
Expand All @@ -623,19 +623,23 @@
}, []);
p2(() => {
const mediaQueryList = window.matchMedia(REDUCED_MOTION_QUERY);
const listener = (e3) => setReducedMotion(e3.matches);
const listener = (e3) => setter(e3.matches);
mediaQueryList.addEventListener("change", listener);
setter(mediaQueryList.matches);
function setter(value) {
document.documentElement.dataset.reducedMotion = String(value);
setReducedMotion(value);
}
window.addEventListener("toggle-reduced-motion", () => {
setReducedMotion(true);
document.documentElement.dataset.reducedMotion = String(true);
setter(true);
});
return () => mediaQueryList.removeEventListener("change", listener);
}, []);
return /* @__PURE__ */ y(EnvironmentContext.Provider, { value: {
isReducedMotion,
debugState,
isDarkMode: theme === "dark",
platform,
injectName,
willThrow
} }, children);
}
Expand Down Expand Up @@ -1072,7 +1076,7 @@
EnvironmentProvider,
{
debugState: environment.debugState,
platform: environment.platform,
injectName: environment.injectName,
willThrow: environment.willThrow
},
/* @__PURE__ */ y(TranslationProvider, { translationObject: strings, fallback: release_notes_default, textLength: environment.textLength }, /* @__PURE__ */ y(MessagingContext.Provider, { value: { messages: messages2 } }, /* @__PURE__ */ y(App, null)))
Expand All @@ -1086,7 +1090,7 @@
EnvironmentProvider,
{
debugState: environment.debugState,
platform: environment.platform,
injectName: environment.injectName,
willThrow: environment.willThrow
},
/* @__PURE__ */ y(TranslationProvider, { translationObject: strings, fallback: release_notes_default, textLength: environment.textLength }, /* @__PURE__ */ y(MessagingContext.Provider, { value: { messages: messages2 } }, /* @__PURE__ */ y(Components, null)))
Expand Down Expand Up @@ -2083,7 +2087,7 @@
* @param {'app' | 'components'} [params.display] - whether to show the application or component list
* @param {'production' | 'development'} [params.env] - application environment
* @param {URLSearchParams} [params.urlParams] - URL params passed into the page
* @param {ImportMeta['injectName']} [params.platform] - application platform
* @param {ImportMeta['injectName']} [params.injectName] - application platform
* @param {boolean} [params.willThrow] - whether the application will simulate an error
* @param {boolean} [params.debugState] - whether to show debugging UI
* @param {string} [params.locale] - for applications strings
Expand All @@ -2092,7 +2096,7 @@
constructor({
env = "production",
urlParams = new URLSearchParams(location.search),
platform = "windows",
injectName = "windows",
willThrow = urlParams.get("willThrow") === "true",
debugState = urlParams.has("debugState"),
display = "app",
Expand All @@ -2101,25 +2105,25 @@
} = {}) {
this.display = display;
this.urlParams = urlParams;
this.platform = platform;
this.injectName = injectName;
this.willThrow = willThrow;
this.debugState = debugState;
this.env = env;
this.locale = locale;
this.textLength = textLength;
}
/**
* @param {string|null|undefined} platform
* @param {string|null|undefined} injectName
* @returns {Environment}
*/
withPlatform(platform) {
if (!platform)
withInjectName(injectName) {
if (!injectName)
return this;
if (!isPlatform(platform))
if (!isInjectName(injectName))
return this;
return new _Environment({
...this,
platform
injectName
});
}
/**
Expand Down Expand Up @@ -2183,7 +2187,7 @@
return this;
}
};
function isPlatform(input) {
function isInjectName(input) {
const allowed = ["windows", "apple", "integration", "android"];
return allowed.includes(input);
}
Expand Down Expand Up @@ -2242,9 +2246,9 @@
return this.messaging.subscribe("onUpdate", callback);
}
};
var baseEnvironment = new Environment().withPlatform(document.documentElement.dataset.platform).withEnv("production");
var baseEnvironment = new Environment().withInjectName(document.documentElement.dataset.platform).withEnv("production");
var messaging = createSpecialPageMessaging({
injectName: baseEnvironment.platform,
injectName: baseEnvironment.injectName,
env: "production",
pageName: "release-notes"
});
Expand Down
Loading

0 comments on commit f97053d

Please sign in to comment.