refactoring some stuff
This commit is contained in:
parent
9121a3add4
commit
33416e8963
17 changed files with 266 additions and 109 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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)) || []);
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue