-
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.
- Loading branch information
1 parent
1fdd74e
commit 1872477
Showing
24 changed files
with
177 additions
and
175 deletions.
There are no files selected for viewing
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
39 changes: 20 additions & 19 deletions
39
app/static/src/app/components/graphConfig/GraphConfigsCollapsible.vue
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,27 +1,28 @@ | ||
<template> | ||
<vertical-collapse v-if="showGraphs" title="Graphs" collapse-id="graphs"> | ||
<graph-configs></graph-configs> | ||
</vertical-collapse> | ||
<vertical-collapse v-if="showGraphs" title="Graphs" collapse-id="graphs"> | ||
<graph-configs></graph-configs> | ||
</vertical-collapse> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import GraphConfigs from "@/app/components/graphConfig/GraphConfigs.vue"; | ||
import VerticalCollapse from "@/app/components/VerticalCollapse.vue"; | ||
import {computed, defineComponent} from "vue"; | ||
import {useStore} from "vuex"; | ||
import { computed, defineComponent } from "vue"; | ||
import { useStore } from "vuex"; | ||
export default defineComponent({ | ||
name: "GraphConfigsCollapsible", | ||
components: { | ||
GraphConfigs, | ||
VerticalCollapse | ||
}, | ||
setup(){ | ||
const store = useStore(); | ||
const allVariables = computed<string[]>(() => store.state.model.odinModelResponse?.metadata?.variables || []); | ||
const showGraphs = computed(() => allVariables.value.length && !store.state.model.compileRequired); | ||
return { | ||
showGraphs | ||
}; | ||
} | ||
name: "GraphConfigsCollapsible", | ||
components: { | ||
GraphConfigs, | ||
VerticalCollapse | ||
}, | ||
setup() { | ||
const store = useStore(); | ||
const allVariables = computed<string[]>(() => store.state.model.odinModelResponse?.metadata?.variables || []); | ||
const showGraphs = computed(() => allVariables.value.length && !store.state.model.compileRequired); | ||
return { | ||
showGraphs | ||
}; | ||
} | ||
}); | ||
</script> | ||
</script> |
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,5 +1,5 @@ | ||
import * as Color from "color"; | ||
|
||
export const fadeColor = (color: string) => { | ||
export const fadeColor = (color: string): string => { | ||
return Color(color).desaturate(0.6).fade(0.4).rgb().string(); | ||
}; | ||
}; |
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
Oops, something went wrong.