This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from Arondight/dev
- Loading branch information
Showing
27 changed files
with
202 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Update Vue.js in dev branch | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# UTC | ||
- cron: "0 21 * * *" | ||
|
||
jobs: | ||
vue_update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: dev | ||
- name: Update Vue.js | ||
run: ./data/js/update.sh | ||
- name: Config git | ||
run: | | ||
git config user.name 'github-actions' | ||
git config user.email '[email protected]' | ||
- name: Commit and push | ||
run: | | ||
if [[ -n $(git status --porcelain) ]] | ||
then | ||
git add . | ||
git commit -m 'Update Vue.js' | ||
git push | ||
else | ||
echo "Nothing to commit." | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
RDIR=$(dirname $(readlink -f "$0")) | ||
CURL=('curl' '-sL') | ||
|
||
typeset -A LOCPATH=( | ||
['https://cn.vuejs.org/js/vue.js']="${RDIR}/vue2.js" | ||
['https://cn.vuejs.org/js/vue.min.js']="${RDIR}/vue2.min.js" | ||
['https://unpkg.com/vue@next/dist/vue.global.js']="${RDIR}/vue3.global.js" | ||
['https://unpkg.com/vue@next/dist/vue.global.prod.js']="${RDIR}/vue3.global.prod.js" | ||
) | ||
|
||
function check() | ||
{ | ||
if ! (type 'curl' >/dev/null 2>&1) | ||
then | ||
echo 'No curl command found.' >&2 | ||
return 1 | ||
fi | ||
|
||
return 0 | ||
} | ||
|
||
# MAIN | ||
{ | ||
check || exit 1 | ||
|
||
for url in "${!LOCPATH[@]}" | ||
do | ||
echo -e "Fetch\t${url}" | ||
command "${CURL[@]}" "$url" -o "${LOCPATH[${url}]}" | ||
done | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
./aby/ | ||
genshin-aby.html | ||
|
||
./artifact/ | ||
genshin-artifact.html | ||
|
||
./card/ | ||
genshin-card.html | ||
|
||
./card-8/ | ||
genshin-card-8.html | ||
|
||
./common/ | ||
公共库 | ||
|
||
./character/ | ||
genshin-character.html | ||
|
||
./gacha/ | ||
genshin-gacha.html | ||
|
||
./overview/ | ||
genshin-overview.html | ||
|
||
./package/ | ||
genshin-package.html |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
./param.js | ||
getParams 从 window.location.href 中获取参数 |
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 @@ | ||
function decodeURIComponentHelper(encoded) { | ||
return decodeURIComponent( | ||
window | ||
.atob(encoded) | ||
.split("") | ||
.map((c) => "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2)) | ||
.join("") | ||
); | ||
} | ||
|
||
function getParams(href) { | ||
return JSON.parse(decodeURIComponentHelper(new URL(href).searchParams.get("data")) || "{}"); | ||
} | ||
|
||
export { getParams }; |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.