Skip to content

Commit

Permalink
fix: move static assets to public folder (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianGoeb authored Dec 10, 2023
1 parent 061d84b commit 34a0619
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/hsk/anki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Revision } from "./hsk";
export async function getWordIntervals(
_revision: Revision,
): Promise<Map<string, number>> {
const res = await fetch("src/assets/new_hsk_anki_notes.tsv");
const res = await fetch("new_hsk_anki_notes.tsv");
const text = await res.text();
const map = new Map<string, number>();
text.split("\n").forEach((line) => {
Expand Down
2 changes: 1 addition & 1 deletion src/hsk/hsk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export enum Revision {

export async function getWordsTsv(revision: Revision): Promise<HskWord[]> {
const prefix = revision === Revision.NEW ? "new" : "old";
const res = await fetch(`src/assets/${prefix}_hsk.tsv`);
const res = await fetch(`${prefix}_hsk.tsv`);
return wordsTsvToJson(await res.text());
}

Expand Down
2 changes: 1 addition & 1 deletion src/hsk/pleco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Revision } from "./hsk";
export async function getFakeWordIntervals(
_revision: Revision,
): Promise<Map<string, number>> {
const res = await fetch("src/assets/old_hsk.tsv");
const res = await fetch("old_hsk.tsv");
const text = await res.text();
const map = new Map<string, number>();
text
Expand Down

0 comments on commit 34a0619

Please sign in to comment.