Skip to content

Commit

Permalink
astro view WIP
Browse files Browse the repository at this point in the history
SQUASHED: AUTO-COMMIT-src-components-tools-astro-view.html,AUTO-COMMIT-src-components-tools-astro-view.js,SQUASHED-AUTO-COMMIT-README.md,
  • Loading branch information
JensLincke committed Apr 23, 2024
1 parent 739c9bf commit b16abe1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/tools/astro-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,14 @@ export default class AstroView extends Morph {
this.get("#editorInfo").textContent = `${cm.indexFromPos(from)}-${cm.indexFromPos(to)}`
}

updateTokens() {
async updateTokens() {
this.get("#tokens").innerHTML = ""
let counter = 1
let pos = 0

// #TODO
// this.tokens = await fetch("lukas.server/asfasdfasdf")

this.tokens = this.source.split(/(?=[^a-zA-Z])/g)
.map(ea => {
let start = pos
Expand Down

0 comments on commit b16abe1

Please sign in to comment.