refactoring some stuff

This commit is contained in:
りき萌 2024-03-02 20:53:44 +01:00
parent 9121a3add4
commit 33416e8963
17 changed files with 266 additions and 109 deletions

View file

@ -1,5 +1,5 @@
import { CodeJar } from "../vendor/codejar.js";
import { compileSyntax, highlight } from "./literate-programming/highlight.js";
import { CodeJar } from "treehouse/vendor/codejar.js";
import { compileSyntax, highlight } from "treehouse/components/literate-programming/highlight.js";
let literatePrograms = new Map();

View file

@ -1,8 +1,8 @@
// news.js because new.js makes the TypeScript language server flip out.
// Likely because `new` is a keyword, but also, what the fuck.
import { getSettingValue } from "./settings.js";
import { Branch } from "./tree.js";
import { getSettingValue } from "treehouse/settings.js";
import { Branch } from "treehouse/tree.js";
const seenStatesKey = "treehouse.news.seenBranches";
const seenStates = new Set(JSON.parse(localStorage.getItem(seenStatesKey)) || []);

View file

@ -1,7 +1,7 @@
// This is definitely not a three.js ripoff.
import { navigationMap } from "/navmap.js";
import * as ulid from './ulid.js';
import * as ulid from "treehouse/ulid.js";
/* Branch persistence */