-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attach config to incoming data attribute
- Loading branch information
Showing
5 changed files
with
24 additions
and
79 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
import { createApp, h } from "vue"; | ||
import App from "./App.vue"; | ||
|
||
const config = { | ||
credentials: process.env.credentials, | ||
dataset_url: null, | ||
dataset_id: "12e4b4feedfe9f3f", | ||
settings: { | ||
setting_text: "My Test Setting", | ||
setting_boolean: true, | ||
setting_conditional: { | ||
case_false: "something else", | ||
test_condition: "false", | ||
const dataIncoming = { | ||
visualization_config: { | ||
dataset_url: null, | ||
dataset_id: "12e4b4feedfe9f3f", | ||
settings: { | ||
setting_text: "My Test Setting", | ||
setting_boolean: true, | ||
setting_conditional: { | ||
case_false: "something else", | ||
test_condition: "false", | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
const xml = "galaxy-charts.xml"; | ||
|
||
// Attach config to the data-incoming attribute | ||
const appElement = document.querySelector("#app"); | ||
appElement.setAttribute("data-incoming", JSON.stringify(dataIncoming)); | ||
|
||
createApp({ | ||
render: () => h(App, { config: config, xml: xml }), | ||
render: () => h(App, { credentials: process.env.credentials, xml: xml }), | ||
}).mount("#app"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters