-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deployment workflow and new components for app integration
- Loading branch information
Showing
4 changed files
with
92 additions
and
0 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,30 @@ | ||
<script setup> | ||
import DefaultTheme from "vitepress/theme"; | ||
</script> | ||
|
||
<template> | ||
<DefaultTheme.Layout> | ||
<template #home-features-before> | ||
<div class="app-preview"> | ||
<iframe src="/apps/gfs/"></iframe> | ||
</div> | ||
</template> | ||
</DefaultTheme.Layout> | ||
</template> | ||
|
||
<style scoped> | ||
.app-preview { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 0 0 40px 0; | ||
iframe { | ||
width: 800px; | ||
height: 540px; | ||
border: none; | ||
border-radius: 8px; | ||
overflow: hidden; | ||
box-shadow: 0 0 16px rgba(0, 0, 0, 0.4); | ||
} | ||
} | ||
</style> |
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,7 @@ | ||
import DefaultTheme from "vitepress/theme"; | ||
import HomeLayout from "./components/HomeLayout.vue"; | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
Layout: HomeLayout, | ||
}; |
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,42 @@ | ||
window.runtime = { | ||
WindowSetSystemDefaultTheme() {}, | ||
EventsOnMultiple(id, fn) { | ||
console.log(id, fn) | ||
}, | ||
WindowIsMaximised() {}, | ||
WindowIsMinimised() {}, | ||
} | ||
|
||
const events = { | ||
data: [], | ||
on() {}, | ||
} | ||
|
||
window.go = { | ||
bridge: { | ||
App: { | ||
UpdateTray() {}, | ||
UpdateTrayMenus() {}, | ||
GetEnv() { | ||
return { os: 'darwin' } | ||
}, | ||
Readdir() { | ||
return { flag: true, data: '' } | ||
}, | ||
IsStartup() { | ||
return true | ||
}, | ||
Requests() {}, | ||
Writefile(path, content) { | ||
localStorage.setItem(path, content) | ||
return { flag: true } | ||
}, | ||
Readfile(path) { | ||
return { flag: true, data: localStorage.getItem(path) } | ||
}, | ||
ExecBackground(path, args, out, end) { | ||
return { flag: true, data: 999 } | ||
}, | ||
}, | ||
}, | ||
} |