Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow port configuration, refactor start actor modal #73

Merged
merged 6 commits into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ npm-debug.log
*.so

.elixir_ls/

# Stop committing temporary files
*.tmp
338 changes: 169 additions & 169 deletions wasmcloud_host/assets/vendor/wasmcloud/js/wasmcloud.js
Original file line number Diff line number Diff line change
@@ -1,173 +1,173 @@
// Custom JS for wasmCloud logic goes here
var cardChart1 = new Chart(document.getElementById('card-chart1'), {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'transparent',
borderColor: 'rgba(255,255,255,.55)',
pointBackgroundColor: '#321fdb',
data: [65, 59, 84, 84, 51, 55, 40]
}]
},
options: {
maintainAspectRatio: false,
legend: {
display: false
},
scales: {
xAxes: [{
gridLines: {
color: 'transparent',
zeroLineColor: 'transparent'
},
ticks: {
fontSize: 2,
fontColor: 'transparent'
}
}],
yAxes: [{
display: false,
ticks: {
display: false,
min: 35,
max: 89
}
}]
},
elements: {
line: {
borderWidth: 1
},
point: {
radius: 4,
hitRadius: 10,
hoverRadius: 4
}
}
}
}); // eslint-disable-next-line no-unused-vars
// // Custom JS for wasmCloud logic goes here
brooksmtownsend marked this conversation as resolved.
Show resolved Hide resolved
// var cardChart1 = new Chart(document.getElementById('card-chart1'), {
// type: 'line',
// data: {
// labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
// datasets: [{
// label: 'My First dataset',
// backgroundColor: 'transparent',
// borderColor: 'rgba(255,255,255,.55)',
// pointBackgroundColor: '#321fdb',
// data: [65, 59, 84, 84, 51, 55, 40]
// }]
// },
// options: {
// maintainAspectRatio: false,
// legend: {
// display: false
// },
// scales: {
// xAxes: [{
// gridLines: {
// color: 'transparent',
// zeroLineColor: 'transparent'
// },
// ticks: {
// fontSize: 2,
// fontColor: 'transparent'
// }
// }],
// yAxes: [{
// display: false,
// ticks: {
// display: false,
// min: 35,
// max: 89
// }
// }]
// },
// elements: {
// line: {
// borderWidth: 1
// },
// point: {
// radius: 4,
// hitRadius: 10,
// hoverRadius: 4
// }
// }
// }
// }); // eslint-disable-next-line no-unused-vars

var cardChart2 = new Chart(document.getElementById('card-chart2'), {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'transparent',
borderColor: 'rgba(255,255,255,.55)',
pointBackgroundColor: '#39f',
data: [1, 18, 9, 17, 34, 22, 11]
}]
},
options: {
maintainAspectRatio: false,
legend: {
display: false
},
scales: {
xAxes: [{
gridLines: {
color: 'transparent',
zeroLineColor: 'transparent'
},
ticks: {
fontSize: 2,
fontColor: 'transparent'
}
}],
yAxes: [{
display: false,
ticks: {
display: false,
min: -4,
max: 39
}
}]
},
elements: {
line: {
tension: 0.00001,
borderWidth: 1
},
point: {
radius: 4,
hitRadius: 10,
hoverRadius: 4
}
}
}
}); // eslint-disable-next-line no-unused-vars
// var cardChart2 = new Chart(document.getElementById('card-chart2'), {
// type: 'line',
// data: {
// labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
// datasets: [{
// label: 'My First dataset',
// backgroundColor: 'transparent',
// borderColor: 'rgba(255,255,255,.55)',
// pointBackgroundColor: '#39f',
// data: [1, 18, 9, 17, 34, 22, 11]
// }]
// },
// options: {
// maintainAspectRatio: false,
// legend: {
// display: false
// },
// scales: {
// xAxes: [{
// gridLines: {
// color: 'transparent',
// zeroLineColor: 'transparent'
// },
// ticks: {
// fontSize: 2,
// fontColor: 'transparent'
// }
// }],
// yAxes: [{
// display: false,
// ticks: {
// display: false,
// min: -4,
// max: 39
// }
// }]
// },
// elements: {
// line: {
// tension: 0.00001,
// borderWidth: 1
// },
// point: {
// radius: 4,
// hitRadius: 10,
// hoverRadius: 4
// }
// }
// }
// }); // eslint-disable-next-line no-unused-vars

var cardChart3 = new Chart(document.getElementById('card-chart3'), {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'rgba(255,255,255,.2)',
borderColor: 'rgba(255,255,255,.55)',
data: [78, 81, 80, 45, 34, 12, 40]
}]
},
options: {
maintainAspectRatio: false,
legend: {
display: false
},
scales: {
xAxes: [{
display: false
}],
yAxes: [{
display: false
}]
},
elements: {
line: {
borderWidth: 2
},
point: {
radius: 0,
hitRadius: 10,
hoverRadius: 4
}
}
}
}); // eslint-disable-next-line no-unused-vars
// var cardChart3 = new Chart(document.getElementById('card-chart3'), {
// type: 'line',
// data: {
// labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
// datasets: [{
// label: 'My First dataset',
// backgroundColor: 'rgba(255,255,255,.2)',
// borderColor: 'rgba(255,255,255,.55)',
// data: [78, 81, 80, 45, 34, 12, 40]
// }]
// },
// options: {
// maintainAspectRatio: false,
// legend: {
// display: false
// },
// scales: {
// xAxes: [{
// display: false
// }],
// yAxes: [{
// display: false
// }]
// },
// elements: {
// line: {
// borderWidth: 2
// },
// point: {
// radius: 0,
// hitRadius: 10,
// hoverRadius: 4
// }
// }
// }
// }); // eslint-disable-next-line no-unused-vars

var cardChart4 = new Chart(document.getElementById('card-chart4'), {
type: 'bar',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', 'January', 'February', 'March', 'April'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'rgba(255,255,255,.2)',
borderColor: 'rgba(255,255,255,.55)',
data: [78, 81, 80, 45, 34, 12, 40, 85, 65, 23, 12, 98, 34, 84, 67, 82],
barPercentage: 0.6
}]
},
options: {
maintainAspectRatio: false,
legend: {
display: false
},
scales: {
xAxes: [{
display: false
}],
yAxes: [{
display: false
}]
}
}
}); // Random Numbers
// var cardChart4 = new Chart(document.getElementById('card-chart4'), {
// type: 'bar',
// data: {
// labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', 'January', 'February', 'March', 'April'],
// datasets: [{
// label: 'My First dataset',
// backgroundColor: 'rgba(255,255,255,.2)',
// borderColor: 'rgba(255,255,255,.55)',
// data: [78, 81, 80, 45, 34, 12, 40, 85, 65, 23, 12, 98, 34, 84, 67, 82],
// barPercentage: 0.6
// }]
// },
// options: {
// maintainAspectRatio: false,
// legend: {
// display: false
// },
// scales: {
// xAxes: [{
// display: false
// }],
// yAxes: [{
// display: false
// }]
// }
// }
// }); // Random Numbers

/**
* For some reason, stopping the execution of this file here makes the charts load correctly.
* Until we figure that out, leave this in.
* Thanks, JavaScript.
*/
null.ignoreThisError
// /**
// * For some reason, stopping the execution of this file here makes the charts load correctly.
// * Until we figure that out, leave this in.
// * Thanks, JavaScript.
// */
// null.ignoreThisError
5 changes: 5 additions & 0 deletions wasmcloud_host/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ config :logger, :console,
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason

# Allow wasm uploads
config :mime, :types, %{
brooksmtownsend marked this conversation as resolved.
Show resolved Hide resolved
"application/wasm" => ["wasm"]
}

# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"
2 changes: 1 addition & 1 deletion wasmcloud_host/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Mix.Config
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :wasmcloud_host, WasmcloudHostWeb.Endpoint,
http: [port: 4000],
http: [port: System.get_env("PORT") || 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
Expand Down