-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
325 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 +1 @@ | ||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/dash/favicon.ico><title>dash</title><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css><link href=/dash/css/app.7eddb38a.css rel=preload as=style><link href=/dash/css/chunk-vendors.ad854b7a.css rel=preload as=style><link href=/dash/js/app.46e18992.js rel=preload as=script><link href=/dash/js/chunk-vendors.4e70bf30.js rel=preload as=script><link href=/dash/css/chunk-vendors.ad854b7a.css rel=stylesheet><link href=/dash/css/app.7eddb38a.css rel=stylesheet></head><body><noscript><strong>We're sorry but dash doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/dash/js/chunk-vendors.4e70bf30.js></script><script src=/dash/js/app.46e18992.js></script></body></html> | ||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/dash/favicon.ico><title>dash</title><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css><link href=/dash/css/app.5be19580.css rel=preload as=style><link href=/dash/css/chunk-vendors.ad854b7a.css rel=preload as=style><link href=/dash/js/app.269155a6.js rel=preload as=script><link href=/dash/js/chunk-vendors.4e70bf30.js rel=preload as=script><link href=/dash/css/chunk-vendors.ad854b7a.css rel=stylesheet><link href=/dash/css/app.5be19580.css rel=stylesheet></head><body><noscript><strong>We're sorry but dash doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/dash/js/chunk-vendors.4e70bf30.js></script><script src=/dash/js/app.269155a6.js></script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div> | ||
<v-card-title v-if="widgetData.title !== ''" v-bind:style="{ fontSize: widgetData.style.titleSize + 'px' }">{{ widgetData.title }}</v-card-title> | ||
<v-card-text class="text-center"> | ||
<v-content> | ||
<v-btn text v-bind:to="{name: 'dash', params: {dashId: widgetData.target }}"> | ||
<img v-bind:style="{height: widgetData.style.contentSize + 'px'}" v-bind:src="picture" /> | ||
</v-btn> | ||
</v-content> | ||
</v-card-text> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "LinkToDash", | ||
props: { | ||
widgetData: {} | ||
}, | ||
computed: { | ||
picture() { | ||
return "/data/pictures/" + this.widgetData.picture; | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.v-card__title { | ||
justify-content: center; | ||
} | ||
</style> |
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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<template> | ||
<v-card color="blue-grey lighten-5"> | ||
<v-card-title> | ||
Dashs | ||
<v-spacer /> | ||
<v-text-field v-model="search" append-icon="mdi-magnify" label="Filtrer" single-line hide-details></v-text-field> | ||
</v-card-title> | ||
<v-data-table | ||
v-bind:headers="headers" | ||
v-bind:items="dashsList" | ||
single-select | ||
show-select | ||
item-key="id" | ||
v-bind:items-per-page="5" | ||
v-bind:loading="Object.keys(rawDashs).length === 0" | ||
loading-text="Chargement..." | ||
class="elevation-10" | ||
v-model="scenario" | ||
v-bind:search="search" | ||
></v-data-table> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
import Communication from "@/libs/Communication"; | ||
export default { | ||
name: "FilteredDashs", | ||
props: { | ||
value: { | ||
type: Array, | ||
default: () => [] | ||
}, | ||
type: {} | ||
}, | ||
data: () => ({ | ||
rawDashs: {}, | ||
dashsList: [], | ||
search: "", | ||
headers: [ | ||
{ text: "ID", value: "id" }, | ||
{ text: "Nom", value: "name" } | ||
] | ||
}), | ||
created() { | ||
Communication.get("/api/dash/all", result => { | ||
this.rawDashs = result; | ||
this.dashsList = result; | ||
// this.updateDashsList(); | ||
}); | ||
}, | ||
computed: { | ||
dataLoaded() { | ||
return !(Object.keys(this.rawDashs).length === 0); | ||
}, | ||
scenario: { | ||
get() { | ||
return this.value; | ||
}, | ||
set(newValue) { | ||
this.$emit("input", newValue); | ||
} | ||
} | ||
}, | ||
methods: { | ||
/* | ||
updateScenariosList() { | ||
this.dashsList = []; | ||
for (let scenarioIndex in this.rawScenarios) { | ||
const scenario = this.rawScenarios[scenarioIndex]; | ||
if (!(!scenario.active && this.hideInactives)) { | ||
this.scenariosList.push({ | ||
scenario: scenario, | ||
id: scenario.id, | ||
name: scenario.name, | ||
group: scenario.group | ||
}); | ||
} | ||
} | ||
} | ||
*/ | ||
} | ||
}; | ||
</script> |
Oops, something went wrong.