JS frontend stuff

Move old ember frontend to properly named folder
Add vue based new frontend
This commit is contained in:
Melody Becker 2025-07-07 21:48:39 +02:00
parent 8947d97825
commit 88398334fe
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
254 changed files with 837 additions and 0 deletions

View file

@ -1,24 +0,0 @@
import { helper } from '@ember/component/helper'
class Token {
declare token: string
declare elements: Array<string | Token>
public constructor(token: string) {
this.token = token
this.elements = new Array()
}
}
export default helper(function formatter(
positional: Array<string>,
named: {
matchers: Array<{ match: RegExp; replace: string }>
},
): string {
let out = positional[0] ?? ''
named.matchers.forEach((x) => {
out = out.replaceAll(x.match, x.replace)
})
return out
})