-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Electron] Add electron-specific setup page (#1444)
* Add dummy server start view * Do external nav * nit * nit * nit * nit
- Loading branch information
Showing
3 changed files
with
43 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function isElectron() { | ||
return 'electronAPI' in window && window['electronAPI'] !== undefined | ||
} |
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,17 @@ | ||
<!-- This is a dummy page built for electron app only. --> | ||
<!-- Replace this page with the electron side logic on installation & log streaming. --> | ||
<template> | ||
<div | ||
class="absolute inset-0 flex flex-col items-center justify-center h-screen bg-surface-0" | ||
> | ||
<ProgressSpinner class="w-16 h-16 mb-4" /> | ||
<div class="text-xl">{{ $t('loading') }}{{ counter }}</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import ProgressSpinner from 'primevue/progressspinner' | ||
import { useInterval } from '@vueuse/core' | ||
|
||
const counter = useInterval(1000) | ||
</script> |