-
Notifications
You must be signed in to change notification settings - Fork 2
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
9 changed files
with
92 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<template> | ||
<div class="mx-auto max-w-3xl py-10"> | ||
<div class="bg-orange-100 px-2 pb-2"> | ||
<div class="text-xs text-center underline py-4"> | ||
<slot name="title" /> | ||
</div> | ||
<div class="bg-white p-4 text-center border border-orange-200 rounded"> | ||
<slot /> | ||
</div> | ||
</div> | ||
</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 |
---|---|---|
@@ -1,18 +1,27 @@ | ||
<template> | ||
<NuxtLink class="underline hover:no-underline" :href="href"> | ||
<NuxtLink | ||
class="hover:no-underline" :class="active" | ||
:href="href" | ||
> | ||
{{ to }} | ||
</NuxtLink> | ||
</template> | ||
|
||
<script setup type="ts"> | ||
const props = defineProps({ | ||
params: { type: Object, required: true }, | ||
to: { type: String, required: true } | ||
to: { type: String, required: true }, | ||
current: { type: String, default: "" } | ||
}); | ||
const href = computed(() => { | ||
const { params, to } = props; | ||
const permalink = `/${params.owner}/${params.repo}/pull/${params.number}/review-${params.review}`; | ||
return to === 'cards' ? permalink : `${permalink}/slides`; | ||
}); | ||
const active = computed(() => { | ||
const { current, to } = props; | ||
return current == to ? "font-bold no-underline" : "underline"; | ||
}); | ||
</script> |
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,5 @@ | ||
<template> | ||
<button class="text-xs py-1 px-2 hover:bg-gray-50 hover:underline"> | ||
<slot /> | ||
</button> | ||
</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
4 changes: 2 additions & 2 deletions
4
frontend/pages/[org]/[repo]/pull/[pull]/review-[review]/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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<template> | ||
<Review-PageChrome v-slot="data"> | ||
<ReviewPageChrome v-slot="data" name="cards"> | ||
<div class="mx-auto max-w-screen-2xl"> | ||
<ReviewPageContent :model="data.data" /> | ||
</div> | ||
</Review-PageChrome> | ||
</ReviewPageChrome> | ||
</template> |
7 changes: 5 additions & 2 deletions
7
frontend/pages/[org]/[repo]/pull/[pull]/review-[review]/slides.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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<template> | ||
<Review-PageChrome v-slot="data" height="h-[95vh]"> | ||
<ReviewPageChrome | ||
v-slot="data" height="h-[95vh]" | ||
name="slides" | ||
> | ||
<SlideShow :model="data.data" /> | ||
</Review-PageChrome> | ||
</ReviewPageChrome> | ||
</template> |