-
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.
* added logs component * added opening the logs folder on click * added linux specifiuc d3ependency * correct path format for dbus-send * fixed navigation --------- Co-authored-by: Petr Gadorek <[email protected]>
- Loading branch information
Showing
6 changed files
with
186 additions
and
13 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 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,30 @@ | ||
<script> | ||
import { NButton } from 'naive-ui' | ||
import { invoke } from "@tauri-apps/api/core"; | ||
export default { | ||
name: 'LogLink', | ||
components: { NButton }, | ||
data() { | ||
return { | ||
LogPath: '' | ||
} | ||
}, | ||
async created() { | ||
this.LogPath = await invoke("get_logs_folder", {}); | ||
}, | ||
methods: { | ||
async open_logs(e) { | ||
e.preventDefault(); | ||
console.log("Opening logs folder: " + this.LogPath); | ||
invoke("show_in_folder", { path: this.LogPath }); | ||
console.log("Logs folder opened."); | ||
} | ||
} | ||
} | ||
</script> | ||
<template> | ||
<p> | ||
<a href="_self" @click="open_logs($event)">Logs folder</a> | ||
</p> | ||
</template> |