mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-26 06:06:15 +02:00
Import svelte web frontend
This commit is contained in:
15
web/frontend/src/node.entrypoint.js
Normal file
15
web/frontend/src/node.entrypoint.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import {} from './header.entrypoint.js'
|
||||
import Node from './Node.root.svelte'
|
||||
|
||||
new Node({
|
||||
target: document.getElementById('svelte-app'),
|
||||
props: {
|
||||
cluster: infos.cluster,
|
||||
hostname: infos.hostname,
|
||||
from: infos.from,
|
||||
to: infos.to
|
||||
},
|
||||
context: new Map([
|
||||
['cc-config', clusterCockpitConfig]
|
||||
])
|
||||
})
|
Reference in New Issue
Block a user