Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 5, 2023
0 parents commit e9a300b
Show file tree
Hide file tree
Showing 288 changed files with 6,164 additions and 0 deletions.
69 changes: 69 additions & 0 deletions %E5%85%B3%E4%BA%8E%E6%88%91.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<title>Redirecting...</title>
<script>
const { hash, origin, pathname } = window.location;
const routePath = pathname.substring(18);
const { languages } = window.navigator;
const anchor = hash.substring(1);

const localeConfig = {"0":["/en/",["en-US","en-UK","en"]],"1":["/zh/",["zh-CN","zh-TW","zh"]],"/zh/":["zh"],"/en/":["en"]};
const availableLocales = ["/zh/"];
const defaultLocale = "/zh/";
const defaultBehavior = "defaultLocale"

let matchedLocalePath = null;

// get matched locale
findLanguage:
for (const lang of languages)
for (const [localePath, langs] of Object.entries(localeConfig))
if (langs.includes(lang)) {
if (!availableLocales.includes(localePath))
continue;
matchedLocalePath = localePath;
break findLanguage;
}

// default link
const defaultLink = defaultLocale? `${origin}/SteamTools-Guide${defaultLocale}${routePath}${anchor? `#${anchor}`: ""}`: null;

// a locale matches
if (matchedLocalePath) {
const localeLink = `${origin}/SteamTools-Guide${matchedLocalePath}${routePath}${anchor? `#${anchor}`: ""}`;

if (availableLocales.includes(matchedLocalePath)) {
location.href = localeLink;
}
// the page does not exist
else {
// locale homepage
if (defaultBehavior === "homepage") {
location.href = `${origin}/SteamTools-Guide${matchedLocalePath}`;
}
// default locale page
else if (defaultBehavior === "defaultLocale" && defaultLink) {
location.href = defaultLink;
}
// as is to get a 404 page of that locale
else {
location.href = localeLink;
}
}
}
// we have a default page
else if (defaultLink) {
location.href = defaultLink;
}
else {
location.href = `${origin}/SteamTools-Guide/404.html`;
}
</script>
</head>
<body>
<p>Redirecting...</p>
</body>
</html>
40 changes: 40 additions & 0 deletions 404.html

Large diffs are not rendered by default.

Binary file added Badge/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Badge/chrome2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Badge/edge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Badge/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Badge/opera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Brands/android.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Brands/apple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Brands/linux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Brands/windows.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Change-name/QQ图片20220512025429.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Change-name/QQ图片20220512025924.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Change-name/Snipaste_2022-05-12_02-54-07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/2FA to import Guard.html-52a373fb.js

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

1 change: 1 addition & 0 deletions assets/2FA to import Guard.html-644deed2.js

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

1 change: 1 addition & 0 deletions assets/2FA.html-0e94dcb4.js

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

5 changes: 5 additions & 0 deletions assets/2FA.html-79ef0fcc.js

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

Loading

0 comments on commit e9a300b

Please sign in to comment.