-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pages): improve the routing of the connections related pages
- Loading branch information
Showing
15 changed files
with
99 additions
and
44 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,18 @@ | ||
<script setup lang="ts"> | ||
const { connections } = useMockData() | ||
</script> | ||
|
||
<template> | ||
<CommonSplitView class="connections-container" min-size="180px" max-size="400px"> | ||
<template #panel-1> | ||
<div class="connections-list h-full shadow shadow-shadow-leftlist"> | ||
<ConnectionsListView :data="connections" /> | ||
</div> | ||
</template> | ||
<template #panel-2> | ||
<div class="connection-detail h-full"> | ||
<RouterView /> | ||
</div> | ||
</template> | ||
</CommonSplitView> | ||
</template> |
9 changes: 9 additions & 0 deletions
9
apps/desktop/src/renderer/src/pages/connections/[id].edit.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,9 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
TODO: Edit Connection | ||
</div> | ||
</template> |
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,9 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
TODO: Create New Connection | ||
</div> | ||
</template> |
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,19 +1,3 @@ | ||
<script lang="ts" setup> | ||
const { connections } = useMockData() | ||
</script> | ||
|
||
<template> | ||
<CommonSplitView class="connections-container" min-size="180px" max-size="400px"> | ||
<template #panel-1> | ||
<div class="connections-list h-full shadow shadow-shadow-leftlist"> | ||
<ConnectionsListView :data="connections" /> | ||
</div> | ||
</template> | ||
<template #panel-2> | ||
<div class="connection-detail h-full"> | ||
<RouterView v-if="connections.length" /> | ||
<CommonEmptyView v-else /> | ||
</div> | ||
</template> | ||
</CommonSplitView> | ||
<CommonEmptyView /> | ||
</template> |
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,18 @@ | ||
<script setup lang="ts"> | ||
const { connections } = useMockData() | ||
</script> | ||
|
||
<template> | ||
<CommonSplitView class="connections-container" min-size="180px" max-size="400px"> | ||
<template #panel-1> | ||
<div class="connections-list h-full shadow shadow-shadow-leftlist"> | ||
<ConnectionsListView :data="connections" /> | ||
</div> | ||
</template> | ||
<template #panel-2> | ||
<div class="connection-detail h-full"> | ||
<RouterView /> | ||
</div> | ||
</template> | ||
</CommonSplitView> | ||
</template> |
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,9 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
TODO: Edit Connection | ||
</div> | ||
</template> |
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,9 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
TODO: Create New Connection | ||
</div> | ||
</template> |
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,19 +1,3 @@ | ||
<script lang="ts" setup> | ||
const { connections } = useMockData() | ||
</script> | ||
|
||
<template> | ||
<CommonSplitView class="connections-container" min-size="180px" max-size="400px"> | ||
<template #panel-1> | ||
<div class="connections-list h-full shadow shadow-shadow-leftlist"> | ||
<ConnectionsListView :data="connections" /> | ||
</div> | ||
</template> | ||
<template #panel-2> | ||
<div class="connection-detail h-full"> | ||
<RouterView v-if="connections.length" /> | ||
<CommonEmptyView v-else /> | ||
</div> | ||
</template> | ||
</CommonSplitView> | ||
<CommonEmptyView /> | ||
</template> |
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