Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit ce262a5

Browse files
committed
fix(workers): fix workers static index page load interface url
1 parent 0ae54dd commit ce262a5

File tree

3 files changed

+45
-57
lines changed

3 files changed

+45
-57
lines changed

CHANGELOG.md

+38-50
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,58 @@
11
## [0.0.12-alpha](https://github.com/toshikidev/fuki/compare/v0.0.12...v0.0.12-alpha) (2023-02-13)
22

3-
43
### Bug Fixes
54

6-
* **cdn:** fix cdn link of plugins of toshikimoe theme to personal package based cdn ([cb47b13](https://github.com/toshikidev/fuki/commit/cb47b1304c38d40ea8377c56b54ab3e5a148549d))
7-
* **scripts:** fix publish script via npm and add script shortcut commit message after lint ([2c43dd5](https://github.com/toshikidev/fuki/commit/2c43dd5cc024fae69d00bdb505e93d9f43b93a99))
8-
9-
5+
- **cdn:** fix cdn link of plugins of toshikimoe theme to personal package based cdn ([cb47b13](https://github.com/toshikidev/fuki/commit/cb47b1304c38d40ea8377c56b54ab3e5a148549d))
6+
- **scripts:** fix publish script via npm and add script shortcut commit message after lint ([2c43dd5](https://github.com/toshikidev/fuki/commit/2c43dd5cc024fae69d00bdb505e93d9f43b93a99))
107

118
## [0.0.12](https://github.com/toshikidev/fuki/compare/v0.0.1...v0.0.12) (2023-02-13)
129

13-
1410
### Bug Fixes
1511

16-
* **cdn:** fix typo in cdn link with to username on package name ([6061a3b](https://github.com/toshikidev/fuki/commit/6061a3b2ddee1a8ef83cba2aecb5f88a96ff6e25))
17-
* **cdn:** update prior jsd cdn towards js file to the latest version with username ([d4bdd62](https://github.com/toshikidev/fuki/commit/d4bdd627530e3febd93f394c556ffbbf64b50440))
18-
* **default theme:** 🐳 ([bdb38c8](https://github.com/toshikidev/fuki/commit/bdb38c831ed0a72cc24828b455a22116a22c09da))
19-
* **default theme:** update default theme content with favicon and copywrite ([2a5dcc8](https://github.com/toshikidev/fuki/commit/2a5dcc8defc1741cd5fd7628567de74d406165b4))
20-
* **repo:** update repo redirect github link on redirection page ([3528ad2](https://github.com/toshikidev/fuki/commit/3528ad2a0eb1402cdba35701c154ef8eab585bee))
21-
* **scripts:** fix changelog build script in package info file ([3a92112](https://github.com/toshikidev/fuki/commit/3a921121d25b1565b55384893ad64a9e27752bab))
22-
* **theme:** fix index demo theme page title for meeting convention ([d501874](https://github.com/toshikidev/fuki/commit/d5018748869c9cbe4e6647c6f2138e60504b383d))
23-
* **theme:** fix theme title and copywrite info ([c4ec43e](https://github.com/toshikidev/fuki/commit/c4ec43e52ebc5f40c5a1ad65cb271bfd2cfcdd2d))
24-
* **vibrant theme:** add favicon to vibrant theme as all page requires ([a67b455](https://github.com/toshikidev/fuki/commit/a67b455ef309ff914f9e2349e342d1ccedf7f084))
25-
12+
- **cdn:** fix typo in cdn link with to username on package name ([6061a3b](https://github.com/toshikidev/fuki/commit/6061a3b2ddee1a8ef83cba2aecb5f88a96ff6e25))
13+
- **cdn:** update prior jsd cdn towards js file to the latest version with username ([d4bdd62](https://github.com/toshikidev/fuki/commit/d4bdd627530e3febd93f394c556ffbbf64b50440))
14+
- **default theme:** 🐳 ([bdb38c8](https://github.com/toshikidev/fuki/commit/bdb38c831ed0a72cc24828b455a22116a22c09da))
15+
- **default theme:** update default theme content with favicon and copywrite ([2a5dcc8](https://github.com/toshikidev/fuki/commit/2a5dcc8defc1741cd5fd7628567de74d406165b4))
16+
- **repo:** update repo redirect github link on redirection page ([3528ad2](https://github.com/toshikidev/fuki/commit/3528ad2a0eb1402cdba35701c154ef8eab585bee))
17+
- **scripts:** fix changelog build script in package info file ([3a92112](https://github.com/toshikidev/fuki/commit/3a921121d25b1565b55384893ad64a9e27752bab))
18+
- **theme:** fix index demo theme page title for meeting convention ([d501874](https://github.com/toshikidev/fuki/commit/d5018748869c9cbe4e6647c6f2138e60504b383d))
19+
- **theme:** fix theme title and copywrite info ([c4ec43e](https://github.com/toshikidev/fuki/commit/c4ec43e52ebc5f40c5a1ad65cb271bfd2cfcdd2d))
20+
- **vibrant theme:** add favicon to vibrant theme as all page requires ([a67b455](https://github.com/toshikidev/fuki/commit/a67b455ef309ff914f9e2349e342d1ccedf7f084))
2621

2722
### Features
2823

29-
* **changelog:** add changelog build script in package info file for shorcut ([afe1472](https://github.com/toshikidev/fuki/commit/afe14721c3f208e1c1b31744fbd6496e08daf140))
30-
* **changelog:** add changelog building cli via conventional commits changelog cli and corresponded toolchain ([2656a40](https://github.com/toshikidev/fuki/commit/2656a405a90e29735d6681ca468f7448cc3231f8))
31-
* **theme:** make default moefied index theme to `toshikimoe` selectable option ([9c0abbd](https://github.com/toshikidev/fuki/commit/9c0abbdc89df46443c3a6a77a9998077898caaac))
32-
* **tool:** move shell script shortcut toolchain to `tools` dir ([ba74df2](https://github.com/toshikidev/fuki/commit/ba74df299ede9e5492f3c70be6492e01f5692fc2))
33-
34-
24+
- **changelog:** add changelog build script in package info file for shorcut ([afe1472](https://github.com/toshikidev/fuki/commit/afe14721c3f208e1c1b31744fbd6496e08daf140))
25+
- **changelog:** add changelog building cli via conventional commits changelog cli and corresponded toolchain ([2656a40](https://github.com/toshikidev/fuki/commit/2656a405a90e29735d6681ca468f7448cc3231f8))
26+
- **theme:** make default moefied index theme to `toshikimoe` selectable option ([9c0abbd](https://github.com/toshikidev/fuki/commit/9c0abbdc89df46443c3a6a77a9998077898caaac))
27+
- **tool:** move shell script shortcut toolchain to `tools` dir ([ba74df2](https://github.com/toshikidev/fuki/commit/ba74df299ede9e5492f3c70be6492e01f5692fc2))
3528

3629
## [0.0.1](https://github.com/toshikidev/fuki/compare/25c589908945f965c57b92db32409c9f066283fa...v0.0.1) (2023-02-12)
3730

38-
3931
### Bug Fixes
4032

41-
* **cdn:** alter local css style file path to jsdlelivr npm package cdn serving ([256b5c5](https://github.com/toshikidev/fuki/commit/256b5c525a8780ddb4d512e89b14a3445b04d973))
42-
* **config:** update theme variable to `themes` for fetching theme page as a regard to dir name ([8f68916](https://github.com/toshikidev/fuki/commit/8f689163e3add26f0816dcf2f428016d420c3d0f))
43-
* **lockfile:** rm unused lockfile with yarn ([7eae958](https://github.com/toshikidev/fuki/commit/7eae9582012d83740193a2798a12fbbc8e6594a0))
44-
* **npm:** fix gh action checkout step `npm ci` command to `yarn ci` ([7a0326f](https://github.com/toshikidev/fuki/commit/7a0326fc50f34463fe08c4f4893032c7986e5868))
45-
* **npm:** fix gh action npm publish workflow to yarn based ([eb4125b](https://github.com/toshikidev/fuki/commit/eb4125b18a894f7c1d1531640a24f0d1b35c6a4f))
46-
* **package info:** update script setting in json file since wrongfully placed ([14289c5](https://github.com/toshikidev/fuki/commit/14289c56d625728f0edfe00ed4f388424813f3e6))
47-
* **pkg name:** alter npm package name for action auto build and release ([732569b](https://github.com/toshikidev/fuki/commit/732569b5f9a8b7f4521654997b0c898c17e5b30a))
48-
* **pkg name:** alter npm package name from personal package to public wide base ([25c5899](https://github.com/toshikidev/fuki/commit/25c589908945f965c57b92db32409c9f066283fa))
49-
* **pkg:** update package visibility and add code owner to `package.json` file ([3db39e5](https://github.com/toshikidev/fuki/commit/3db39e531b286d52c3c091f3478f84ac4f07d7d1))
50-
* **publish:** revert publish command from yarn back to npm for successful publishing ([0b01938](https://github.com/toshikidev/fuki/commit/0b01938ed78d01e850f6a1b2942a6726e483d9b5))
51-
* **publish:** update publish workflow for test run ([9a34acf](https://github.com/toshikidev/fuki/commit/9a34acf53643ed495aa282b68443fd530ca7f8b2))
52-
* **spacing:** update server console log print spacing via space variable instead of utf8 ([53c43d4](https://github.com/toshikidev/fuki/commit/53c43d473773b0848a6c0db845a3881b1f1c9ab8))
53-
* **title:** update site title and description ([bd816bd](https://github.com/toshikidev/fuki/commit/bd816bdfb0f72011a0c38058ad2a7066d0fd62ed))
54-
* **title:** update site title and favicon ([0f314e4](https://github.com/toshikidev/fuki/commit/0f314e4d56d46d313867506ae4b6ba4dd9fe6c23))
55-
* **visibility:** change npm package visibility to public ([6d9d5fa](https://github.com/toshikidev/fuki/commit/6d9d5fa047ca5f2a89c550b7b7161fae07d6f405))
56-
* **yarn:** fix publish step command in workflow yarn for `npm ci` equivalent ([3dac983](https://github.com/toshikidev/fuki/commit/3dac98364ae76258d749f4d71f5506b498e4fa14))
57-
* **yarn:** fix registry setting command in yarn to `yarn config set` ([7f8b833](https://github.com/toshikidev/fuki/commit/7f8b833d0b46cfdda29d7a3bbc9185dd8583c0f7))
58-
33+
- **cdn:** alter local css style file path to jsdlelivr npm package cdn serving ([256b5c5](https://github.com/toshikidev/fuki/commit/256b5c525a8780ddb4d512e89b14a3445b04d973))
34+
- **config:** update theme variable to `themes` for fetching theme page as a regard to dir name ([8f68916](https://github.com/toshikidev/fuki/commit/8f689163e3add26f0816dcf2f428016d420c3d0f))
35+
- **lockfile:** rm unused lockfile with yarn ([7eae958](https://github.com/toshikidev/fuki/commit/7eae9582012d83740193a2798a12fbbc8e6594a0))
36+
- **npm:** fix gh action checkout step `npm ci` command to `yarn ci` ([7a0326f](https://github.com/toshikidev/fuki/commit/7a0326fc50f34463fe08c4f4893032c7986e5868))
37+
- **npm:** fix gh action npm publish workflow to yarn based ([eb4125b](https://github.com/toshikidev/fuki/commit/eb4125b18a894f7c1d1531640a24f0d1b35c6a4f))
38+
- **package info:** update script setting in json file since wrongfully placed ([14289c5](https://github.com/toshikidev/fuki/commit/14289c56d625728f0edfe00ed4f388424813f3e6))
39+
- **pkg name:** alter npm package name for action auto build and release ([732569b](https://github.com/toshikidev/fuki/commit/732569b5f9a8b7f4521654997b0c898c17e5b30a))
40+
- **pkg name:** alter npm package name from personal package to public wide base ([25c5899](https://github.com/toshikidev/fuki/commit/25c589908945f965c57b92db32409c9f066283fa))
41+
- **pkg:** update package visibility and add code owner to `package.json` file ([3db39e5](https://github.com/toshikidev/fuki/commit/3db39e531b286d52c3c091f3478f84ac4f07d7d1))
42+
- **publish:** revert publish command from yarn back to npm for successful publishing ([0b01938](https://github.com/toshikidev/fuki/commit/0b01938ed78d01e850f6a1b2942a6726e483d9b5))
43+
- **publish:** update publish workflow for test run ([9a34acf](https://github.com/toshikidev/fuki/commit/9a34acf53643ed495aa282b68443fd530ca7f8b2))
44+
- **spacing:** update server console log print spacing via space variable instead of utf8 ([53c43d4](https://github.com/toshikidev/fuki/commit/53c43d473773b0848a6c0db845a3881b1f1c9ab8))
45+
- **title:** update site title and description ([bd816bd](https://github.com/toshikidev/fuki/commit/bd816bdfb0f72011a0c38058ad2a7066d0fd62ed))
46+
- **title:** update site title and favicon ([0f314e4](https://github.com/toshikidev/fuki/commit/0f314e4d56d46d313867506ae4b6ba4dd9fe6c23))
47+
- **visibility:** change npm package visibility to public ([6d9d5fa](https://github.com/toshikidev/fuki/commit/6d9d5fa047ca5f2a89c550b7b7161fae07d6f405))
48+
- **yarn:** fix publish step command in workflow yarn for `npm ci` equivalent ([3dac983](https://github.com/toshikidev/fuki/commit/3dac98364ae76258d749f4d71f5506b498e4fa14))
49+
- **yarn:** fix registry setting command in yarn to `yarn config set` ([7f8b833](https://github.com/toshikidev/fuki/commit/7f8b833d0b46cfdda29d7a3bbc9185dd8583c0f7))
5950

6051
### Features
6152

62-
* **cdn:** replace some static file links to cdn via jsdelivr ([4fda71f](https://github.com/toshikidev/fuki/commit/4fda71f643731fe52cade7dc0c68242d4c6551ec))
63-
* **cdn:** replace some static file links to cdn via jsdelivr ([8e94c39](https://github.com/toshikidev/fuki/commit/8e94c3941cb89b255f60d445e9642e034b6b9e77))
64-
* **gh corner:** update redirect link to repo on gh corner banner ([36e07b9](https://github.com/toshikidev/fuki/commit/36e07b98d07448bb61fc571a27c3deda1ae63fb8))
65-
* **npm:** add npm publish script for publishing public pkg ([3507d61](https://github.com/toshikidev/fuki/commit/3507d6112ac9790e61a455b77f77a98b5e8d6259))
66-
* **publish:** add publish automation workflow for publishing package to both npm and ghrc registry ([c4a51bf](https://github.com/toshikidev/fuki/commit/c4a51bf8d5c51cba22fa5a69dd61e2ce29d80eb7))
67-
* **script:** add package build and release script for github action release ([838d2de](https://github.com/toshikidev/fuki/commit/838d2de2ca04727d2d7484294bd35f582565593d))
68-
69-
70-
53+
- **cdn:** replace some static file links to cdn via jsdelivr ([4fda71f](https://github.com/toshikidev/fuki/commit/4fda71f643731fe52cade7dc0c68242d4c6551ec))
54+
- **cdn:** replace some static file links to cdn via jsdelivr ([8e94c39](https://github.com/toshikidev/fuki/commit/8e94c3941cb89b255f60d445e9642e034b6b9e77))
55+
- **gh corner:** update redirect link to repo on gh corner banner ([36e07b9](https://github.com/toshikidev/fuki/commit/36e07b98d07448bb61fc571a27c3deda1ae63fb8))
56+
- **npm:** add npm publish script for publishing public pkg ([3507d61](https://github.com/toshikidev/fuki/commit/3507d6112ac9790e61a455b77f77a98b5e8d6259))
57+
- **publish:** add publish automation workflow for publishing package to both npm and ghrc registry ([c4a51bf](https://github.com/toshikidev/fuki/commit/c4a51bf8d5c51cba22fa5a69dd61e2ce29d80eb7))
58+
- **script:** add package build and release script for github action release ([838d2de](https://github.com/toshikidev/fuki/commit/838d2de2ca04727d2d7484294bd35f582565593d))

src/workers/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async function handleRequest(request) {
154154

155155
console.log(path)
156156
if (!path) {
157-
const html = await fetch('https://xytom.github.io/Url-Shorten-Worker/' + config.themes + '/index.html')
157+
const html = await fetch('https://static.fuki.cc/' + config.themes + '/index.html')
158158

159159
return new Response(await html.text(), {
160160
headers: {
@@ -176,7 +176,7 @@ async function handleRequest(request) {
176176
if (location) {
177177
if (config.safe_browsing_api_key) {
178178
if (!(await is_url_safe(location))) {
179-
let warning_page = await fetch('https://xytom.github.io/Url-Shorten-Worker/safe-browsing.html')
179+
let warning_page = await fetch('https://static.fuki.cc/safe-browsing.html')
180180
warning_page = await warning_page.text()
181181
warning_page = warning_page.replace(/{Replace}/gm, location)
182182
return new Response(warning_page, {
@@ -187,7 +187,7 @@ async function handleRequest(request) {
187187
}
188188
}
189189
if (config.no_ref == 'on') {
190-
let no_ref = await fetch('https://xytom.github.io/Url-Shorten-Worker/no-ref.html')
190+
let no_ref = await fetch('https://static.fuki.cc/no-ref.html')
191191
no_ref = await no_ref.text()
192192
no_ref = no_ref.replace(/{Replace}/gm, location)
193193
return new Response(no_ref, {

vercel.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"env": {
3-
"BRANCH": "gh-pages"
4-
}
5-
}
2+
"env": {
3+
"BRANCH": "gh-pages"
4+
}
5+
}

0 commit comments

Comments
 (0)