Skip to content

Commit

Permalink
Merge pull request #155 from LCOGT/update/analysis-file-org
Browse files Browse the repository at this point in the history
Update/analysis file org
  • Loading branch information
LTDakin authored Feb 12, 2025
2 parents 5c0c69e + dd5f1a3 commit 1671b61
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 42 deletions.
6 changes: 1 addition & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import { onMounted, computed, watch } from 'vue'
import { onMounted, computed } from 'vue'
import { useUserDataStore } from '@/stores/userData'
import { useConfigurationStore } from './stores/configuration'
import NavBar from './components/Global/NavBar.vue'
Expand Down Expand Up @@ -30,10 +30,6 @@ onMounted(async () => {
}
})
watch(() => userDataStore.isColorblindMode, (newVal) => {
document.documentElement.setAttribute('colorblind', newVal)
}, { immediate: true })
</script>

<template>
Expand Down
12 changes: 0 additions & 12 deletions src/assets/css/custom-colors.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
:root {
--dark-blue: rgb(44,54,63);
--dark-green: rgb(75,127,82);
--tangerine: rgb(255,90,95);
--tan: rgb(233,205,155);
--metal: rgb(36, 44, 51);
--light-gray: rgb(204, 208, 211);
--light-blue: rgb(126,155,196);
--cancel: rgb(254,101,79);
}


[colorblind="true"] {
--dark-blue: rgb(28, 34, 40);
--dark-green: rgb(245, 118, 0);
--tangerine: rgb(255,90,95);
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,19 @@ function fetchCatalog(){
<style>
/* Custom icons for leaflet-geoman */
.custom-reset-zoom-icon {
background-image: url('../../../assets/images/resize.svg');
background-image: url('../../assets/images/resize.svg');
}
.leaflet-pm-toolbar .leaflet-pm-icon-delete {
background-image: url('../../../assets/images/delete.svg');
background-image: url('../../assets/images/delete.svg');
}
.leaflet-pm-toolbar .leaflet-pm-icon-polyline {
background-image: url('../../../assets/images/vector-line.svg');
background-image: url('../../assets/images/vector-line.svg');
}
.leaflet-pm-toolbar .leaflet-pm-icon-edit {
background-image: url('../../../assets/images/vector-polyline-edit.svg');
background-image: url('../../assets/images/vector-polyline-edit.svg');
}
/* Custom styling for toolbar */
.leaflet-bar a:hover{
Expand Down
File renamed without changes.
7 changes: 5 additions & 2 deletions src/components/Global/FilterBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ const props = defineProps({
</template>
<style scoped>
.filter-badge {
border-radius: 5px;
border-radius: 10px;
color: var(--tan);
padding: 5px 10px;
padding: 6px 10px;
display: inline-block;
user-select: none;
font-size: smaller;
font-weight: bolder;
}
</style>
2 changes: 1 addition & 1 deletion src/components/Global/ImageGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useThumbnailsStore } from '@/stores/thumbnails'
import { useConfigurationStore } from '@/stores/configuration'
import { useAlertsStore } from '@/stores/alerts'
import FilterBadge from './FilterBadge.vue'
import ImageAnalyzer from '../Project/ImageAnalysis/ImageAnalyzer.vue'
import ImageAnalyzer from '../../views/AnalysisView.vue'
const props = defineProps({
images: {
Expand Down
11 changes: 0 additions & 11 deletions src/components/Global/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,6 @@ function logOut() {
@click="logOut"
/>
</v-list-item>
<v-list-item>
Settings
</v-list-item>
<v-list-item>
<v-switch
v-model="userDataStore.isColorblindMode"
label="High Contrast"
color="var(--light-blue)"
base-color="var(--light-blue)"
/>
</v-list-item>
</v-card>
</v-menu>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Project/ImageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useAlertsStore } from '@/stores/alerts'
import { useConfigurationStore } from '@/stores/configuration'
import { siteIDToName } from '@/utils/common'
import FilterBadge from '@/components/Global/FilterBadge.vue'
import ImageAnalyzer from '../Project/ImageAnalysis/ImageAnalyzer.vue'
import ImageAnalyzer from '../../views/AnalysisView.vue'
const props = defineProps({
images: {
Expand Down
1 change: 0 additions & 1 deletion src/stores/userData.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const useUserDataStore = defineStore('userData', {
profile: {},
proposals: [],
openProposals: [],
isColorblindMode: false,
gridToggle: true,
activeSessionId: ''
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script setup>
import { ref, computed } from 'vue'
import { fetchApiCall } from '../../../utils/api'
import { fetchApiCall } from '../utils/api'
import { useConfigurationStore } from '@/stores/configuration'
import { useAlertsStore } from '@/stores/alerts'
import ImageViewer from './ImageViewer.vue'
import LinePlot from './LinePlot.vue'
import FilterBadge from '@/components/Global/FilterBadge.vue'
import NonLinearSlider from '@/components/Global/NonLinearSlider.vue'
import ImageDownloadMenu from '@/components/Project/ImageAnalysis/ImageDownloadMenu.vue'
import FitsHeaderTable from './FitsHeaderTable.vue'
import ImageDownloadMenu from '@/components/Analysis/ImageDownloadMenu.vue'
import FitsHeaderTable from '@/components/Analysis/FitsHeaderTable.vue'
import ImageViewer from '@/components/Analysis/ImageViewer.vue'
import LinePlot from '@/components/Analysis/LinePlot.vue'
import { siteIDToName } from '@/utils/common'
const props = defineProps({
Expand Down

0 comments on commit 1671b61

Please sign in to comment.