-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
045330c
commit 2854300
Showing
14 changed files
with
1,217 additions
and
125 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
31 changes: 31 additions & 0 deletions
31
src/web/src/components/breadcrumbs/BatchBreadcrumbItem.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,31 @@ | ||
<script setup lang="ts"> | ||
import { NIcon, NBreadcrumbItem } from 'naive-ui' | ||
import { BatchIcon, BatchIndexIcon } from '../icons' | ||
import { RouterLink } from 'vue-router' | ||
import { useStore } from '../../services/store' | ||
const props = defineProps<{ | ||
isIndex?: boolean; | ||
}>(); | ||
const store = useStore(); | ||
</script> | ||
|
||
<template> | ||
<n-breadcrumb-item> | ||
<router-link to="/batch"> | ||
<n-icon> | ||
<BatchIcon /> | ||
</n-icon> | ||
Batch | ||
</router-link> | ||
</n-breadcrumb-item> | ||
<n-breadcrumb-item v-if="isIndex"> | ||
<router-link to="/batch"> | ||
<n-icon> | ||
<BatchIndexIcon /> | ||
</n-icon> | ||
Index | ||
</router-link> | ||
</n-breadcrumb-item> | ||
</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,28 @@ | ||
<script setup lang="ts"> | ||
import { ref, computed, onMounted, h, defineComponent, reactive } from 'vue' | ||
import { NSpace, NText, NDivider, DataTableColumns, NDataTable, DataTableBaseColumn, NScrollbar, NCollapseTransition, NPopover, NIcon, NButton, NInputGroup, NInput, NCode, useMessage } from 'naive-ui' | ||
import { useStore } from '../../services/store' | ||
const message = useMessage(); | ||
const store = useStore(); | ||
const packages = ref<string[] | undefined>(); | ||
onMounted(async () => { | ||
try { | ||
packages.value = await store.state.api.packages(); | ||
} | ||
catch (e) { | ||
console.error(e); | ||
message.error(`Failed to load package index.`); | ||
} | ||
}); | ||
</script> | ||
|
||
<template> | ||
<n-space v-if="packages"> | ||
<n-button v-for="item in packages" :key="item" text tag="a" | ||
:href="`/packages/${item}`" target="_blank">{{ item }}</n-button> | ||
</n-space> | ||
</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
Oops, something went wrong.