Skip to content

Commit

Permalink
added version to the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Gadorek committed Nov 20, 2024
1 parent 0b62d89 commit 76cbe74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,27 @@
<global-progress />
<!-- Footer -->
<footer class="footer">
ESP-IDF Installation Manager v1.0.0 (TODO:INSERT VERSION)
ESP-IDF Installation Manager {{ appVersion }}
</footer>
</div>
</template>

<script setup>
import { NConfigProvider, NLayout, NLayoutHeader, NLayoutContent, useOsTheme } from 'naive-ui'
import { darkTheme } from 'naive-ui'
import { computed, onMounted } from 'vue'
import { ref, onMounted } from 'vue'
import MessageDisplay from './components/MessageDisplay.vue'
import GlobalProgress from './components/GlobalProgress.vue'
import { attachConsole } from '@tauri-apps/plugin-log'
import { getVersion } from '@tauri-apps/api/app';
const osTheme = useOsTheme()
const theme = null // computed(() => (osTheme.value === 'dark' ? darkTheme : null))
const appVersion = ref('');
onMounted(async () => {
const detach = await attachConsole()
const detach = await attachConsole();
appVersion.value = await getVersion();
})
</script>

0 comments on commit 76cbe74

Please sign in to comment.