-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
223 additions
and
384 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
26 changes: 26 additions & 0 deletions
26
ui/src/layouts/common/GlobalTab/components/SettingButton/index.vue
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,26 @@ | ||
<template> | ||
<hover-container class="w-64px h-full" tooltip-content="设置" placement="bottom-end" @click="toSettingView"> | ||
<Icon icon="icon-park-outline:setting-two" class="text-18px"/> | ||
</hover-container> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {Icon} from "@iconify/vue"; | ||
import {routeName} from "@/router"; | ||
import {useRouterPush} from "@/composables"; | ||
defineOptions({name: 'ProjectSettingButton'}); | ||
const {routerPush} = useRouterPush(); | ||
const toSettingView = () => { | ||
routerPush({ | ||
name: routeName('project_setting'), | ||
hash: '#DEMO_HASH' | ||
}); | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
55 changes: 55 additions & 0 deletions
55
ui/src/layouts/common/GlobalTab/components/WindowButton/index.vue
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,55 @@ | ||
<template> | ||
<hover-container class="w-64px h-full" tooltip-content="缩小" placement="bottom-end" @click="minimize"> | ||
<Icon icon="clarity:window-min-line" class="text-18px"/> | ||
</hover-container> | ||
<hover-container v-if="!isMaximized" class="w-64px h-full" tooltip-content="最大化" placement="bottom-end" @click="maximize"> | ||
<Icon icon="typcn:arrow-maximise" class="text-18px"/> | ||
</hover-container> | ||
<hover-container v-else class="w-64px h-full" tooltip-content="还原" placement="bottom-end" @click="maximize"> | ||
<Icon icon="material-symbols:close-fullscreen" class="text-18px"/> | ||
</hover-container> | ||
<hover-container class="w-64px h-full" tooltip-content="关闭" placement="bottom-end" @click="close"> | ||
<Icon icon="material-symbols:close" class="text-18px"/> | ||
</hover-container> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {appWindow} from "@tauri-apps/api/window"; | ||
import { Icon } from '@iconify/vue'; | ||
import {useAppStore} from '@/store'; | ||
import {useLoading} from '@/hooks'; | ||
import {ref} from "vue"; | ||
defineOptions({name: 'ReloadButton'}); | ||
const isMaximized=ref(false); | ||
const app = useAppStore(); | ||
const {loading, startLoading, endLoading} = useLoading(); | ||
const minimize = () => { | ||
appWindow.minimize(); | ||
} | ||
const maximize = async () => { | ||
await appWindow.toggleMaximize(); | ||
isMaximized.value=await appWindow.isMaximized(); | ||
} | ||
const close = () => { | ||
appWindow.close(); | ||
} | ||
function handleRefresh() { | ||
startLoading(); | ||
app.reloadPage(); | ||
setTimeout(() => { | ||
endLoading(); | ||
}, 1000); | ||
} | ||
</script> | ||
|
||
<style scoped></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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import TabDetail from './TabDetail/index.vue'; | ||
import ReloadButton from './ReloadButton/index.vue'; | ||
import ProjectSettingButton from './SettingButton/index.vue'; | ||
import WindowButton from './WindowButton/index.vue'; | ||
|
||
export { TabDetail, ReloadButton }; | ||
export { TabDetail, ProjectSettingButton,WindowButton }; |
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
33 changes: 0 additions & 33 deletions
33
ui/src/layouts/common/SettingDrawer/components/DrawerButton/index.vue
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
ui/src/layouts/common/SettingDrawer/components/LayoutMode/components/LayoutCheckbox.vue
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
ui/src/layouts/common/SettingDrawer/components/LayoutMode/components/index.ts
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
ui/src/layouts/common/SettingDrawer/components/LayoutMode/index.vue
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.