Skip to content

Commit

Permalink
cleanup files and code
Browse files Browse the repository at this point in the history
  • Loading branch information
cshagen committed Jan 12, 2025
1 parent 3406c45 commit 62a0095
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 189 deletions.
24 changes: 0 additions & 24 deletions packages/modules/display_themes/colors/source/.eslintrc

This file was deleted.

39 changes: 0 additions & 39 deletions packages/modules/display_themes/colors/source/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions packages/modules/display_themes/colors/source/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
<script setup lang="ts">
import NavigationBar from './views/NavigationBar.vue'
import DisplayTheme from './views/DisplayTheme.vue'
//import { RouterLink, RouterView } from 'vue-router'
//import HelloWorld from './components/HelloWorld.vue'
// methods
</script>

<style>
Expand Down
86 changes: 0 additions & 86 deletions packages/modules/display_themes/colors/source/src/assets/base.css

This file was deleted.

35 changes: 0 additions & 35 deletions packages/modules/display_themes/colors/source/src/assets/main.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</ModalComponent>
</template>
<script setup lang="ts">
import { onMounted } from 'vue'
import { onBeforeUnmount, onMounted } from 'vue'
import { globalConfig, initConfig } from '@/assets/js/themeConfig'
import { updateDimensions } from '@/assets/js/themeConfig'
import PowerMeter from '@/components/powerMeter/PowerMeter.vue'
Expand Down Expand Up @@ -84,6 +84,11 @@ onMounted(() => {
//window.addEventListener('blur',lostFocus)
msgInit()
})
onBeforeUnmount(() => {
window.removeEventListener('focus', haveFocus)
window.removeEventListener('resize', updateDimensions)
})
function haveFocus() {
if (document.hasFocus()) {
// console.log('I have focus')
Expand Down

0 comments on commit 62a0095

Please sign in to comment.