Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions frontend/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,7 @@
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "/privacy-policy",
"destination": "/privacy-policy.html"
},
{
"source": "/terms-of-service",
"destination": "/terms-of-service.html"
},
{
"source": "/security-policy",
"destination": "/security-policy.html"
},
{
"source": "/adtest",
"destination": "/adtest.html"
},
{
"source": "/test",
"destination": "/index.html"
},
{
"source": "!/@(js|about|challenges|css|fonts|funbox|images|languages|layouts|quotes|sound|themes|webfonts)/**",
"source": "/@(test|settings|account|about|login|profile|friends|account-settings|leaderboards){,/**}",
"destination": "/index.html"
}
],
Expand Down
1 change: 1 addition & 0 deletions frontend/src/ts/controllers/page-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type ChangeOptions = {
loadingOptions?: LoadingOptions;
};

// NOTE: whenever adding a page add the pathname to the `firebase.json` rewrite rule
const pages = {
loading: PageLoading.page,
test: PageTest.page,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/ts/utils/json-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export async function getChallengeList(): Promise<Challenge[]> {
* @returns A promise that resolves to the list of supporters.
*/
export async function getSupportersList(): Promise<string[]> {
const data = await cachedFetchJson<string[]>("/about/supporters.json");
const data = await cachedFetchJson<string[]>("/supporters.json");
return data;
}

Expand All @@ -177,7 +177,7 @@ export async function getSupportersList(): Promise<string[]> {
* @returns A promise that resolves to the list of contributors.
*/
export async function getContributorsList(): Promise<string[]> {
const data = await cachedFetchJson<string[]>("/about/contributors.json");
const data = await cachedFetchJson<string[]>("/contributors.json");
return data;
}

Expand Down
File renamed without changes.