File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11export const WORLD_RECORD_URL = "https://mkwrs.com/mkworld/" ;
2- export const CORS_PROXY_URL = "https://api.codetabs.com/v1/proxy?quest=" ;
2+ export const CORS_PROXY = {
3+ URL : "https://corx.venipa.workers.dev/?url=" ,
4+ POWERED_BY : "corx" ,
5+ SOURCE : "https://github.com/Venipa/corx" ,
6+ } as const ;
Original file line number Diff line number Diff line change 1- import { CORS_PROXY_URL , WORLD_RECORD_URL } from "../../_core/constants/external-urls" ;
1+ import { CORS_PROXY , WORLD_RECORD_URL } from "../../_core/constants/external-urls" ;
22import type { Brand } from "../../_core/utils/brand" ;
33import { JSONUtils } from "../../_core/utils/json-utils" ;
44import { MkwWrs } from "../../_core/utils/mkw-wrs" ;
@@ -16,7 +16,7 @@ function useWorldRecordsRepositorySingleton() {
1616 const { attempts, getTimeRecordsByTrack } = useAttempts ( store ) ;
1717
1818 const automaticProcessForMkrws = async ( ) : Promise < void > => {
19- const response = await fetch ( `${ CORS_PROXY_URL } ${ WORLD_RECORD_URL } ` ) ;
19+ const response = await fetch ( `${ CORS_PROXY . URL } ${ WORLD_RECORD_URL } ` ) ;
2020 const text = await response . text ( ) ;
2121 const parser = new DOMParser ( ) ;
2222 const doc = parser . parseFromString ( text , "text/html" ) ;
Original file line number Diff line number Diff line change 1- import { A } from "@solidjs/router" ;
21import type { Component } from "solid-js" ;
32import { Mkwttb } from "../../domains/_core/components/mkwttb" ;
4- import { WORLD_RECORD_URL } from "../../domains/_core/constants/external-urls" ;
53
64export const FaqMiscellaneous : Component = ( ) => {
75 return (
@@ -25,20 +23,6 @@ export const FaqMiscellaneous: Component = () => {
2523 </ p >
2624 </ details >
2725
28- < details >
29- < summary > What is CodeTabs?</ summary >
30- < p >
31- < A target = "_blank" href = "https://codetabs.com/" >
32- CodeTabs
33- </ A > { " " }
34- provides a cors proxy. It allows you to retrieve data from{ " " }
35- < A target = "_blank" href = { WORLD_RECORD_URL } >
36- mkwrs.com
37- </ A >
38- . Without, it would not be possible due to technical limitations.
39- </ p >
40- </ details >
41-
4226 < details >
4327 < summary > Why the OBS icon looks strange on MacOS?</ summary >
4428 < p >
Original file line number Diff line number Diff line change 11import { type Component , onMount } from "solid-js" ;
22import { AttemptsTable } from "../domains/attempt/components/attempts-table" ;
3+ import { CORS_PROXY } from "../domains/_core/constants/external-urls" ;
34import { Cell } from "../domains/ui/components/grid/cell" ;
45import { GridColumn } from "../domains/ui/components/grid/grid-column" ;
56import { ValibotImportButton } from "../domains/database/components/valibot-import-button/valibot-import-button" ;
@@ -37,7 +38,9 @@ export const WorldRecords: Component = () => {
3738 < Cell text = "Manual" css = { [ sCellMode ] } />
3839 < div >
3940 < ValibotImportButton onClick = { worldRecords . automaticProcessForMkrws } > Refresh</ ValibotImportButton >
40- < div class = { sNoWrap } > powered by CodeTabs</ div >
41+ < div class = { sNoWrap } >
42+ powered by < a href = { CORS_PROXY . SOURCE } > { CORS_PROXY . POWERED_BY } </ a >
43+ </ div >
4144 </ div >
4245 < dl >
4346 < dt > Step 1</ dt >
You can’t perform that action at this time.
0 commit comments