Skip to content

Commit

Permalink
fix(title): add tab title for each page
Browse files Browse the repository at this point in the history
close #130
  • Loading branch information
zjp-CN committed Nov 29, 2024
1 parent 0319035 commit 6cc5478
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions os-checks/pages/charts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import type { PassCountRepos } from '~/shared/types';
import type { Context } from 'chartjs-plugin-datalabels';
import ChartDataLabels from 'chartjs-plugin-datalabels';
useHead({ title: 'Charts' });
// 无诊断的仓库数量和具有 target 的总仓库
const passCountRepos = ref<PassCountRepos>({ "": { pass: 0, total: 0 } });
Expand Down
2 changes: 2 additions & 0 deletions os-checks/pages/diagnostics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import type { FetchError } from 'ofetch';
import type { TreeNode } from 'primevue/treenode';
import type { Columns, PassCountRepo, PassCountRepos } from '~/shared/types';
useHead({ title: 'Diagnostics' });
// fetch JSON data from content dir
const nodes = ref<TreeNode[]>([])
Expand Down
4 changes: 4 additions & 0 deletions os-checks/pages/file-tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
<FileTree :fetch_path="(target: string) => `ui/file-tree/split/${target}.json`" />
</div>
</template>

<script lang="ts" setup>
useHead({ title: 'Issue File Tree' });
</script>
2 changes: 1 addition & 1 deletion os-checks/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ watchEffect(() => {
router.push({ path: route.path, query });
});
useHead({ title: 'Package Information' });
useHead({ title: 'Packages Information' });
</script>

<style lang="css">
Expand Down
2 changes: 2 additions & 0 deletions os-checks/pages/target.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
<script lang="ts" setup>
import { type Resolved, type Source, type Source2, type UserRepo, resolvedColumns, sourcesColumns } from '~/shared/target';
useHead({ title: 'Target' });
const label = (a: string) => a;
// const selectedKind = ref<TableKind>(TableKind.Resolved);
const selectedUser = ref("");
Expand Down
2 changes: 2 additions & 0 deletions os-checks/pages/workflows.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
import type { DataTableRowSelectEvent } from 'primevue/datatable';
import { type Workflows, type Summary, summary_to_workflows } from '~/shared/workflows';
useHead({ title: 'Github Workflows' });
const { color, viewportHeight } = storeToRefs(useStyleStore());
const heightWorkflows = computed(() => `${viewportHeight.value * 0.5}px`);
Expand Down

0 comments on commit 6cc5478

Please sign in to comment.