-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* clear search input when left from search page * comment update for field thumbnail of project * adjust order for project extra info * page titles * use displayName instead of name for user * typo * sync search input from URL query
- Loading branch information
Showing
20 changed files
with
203 additions
and
35 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
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,21 +1,34 @@ | ||
<script setup lang="ts"> | ||
import { computed } from 'vue' | ||
import { parseRemixSource, stringifyRemixSource } from '@/apis/project' | ||
import { parseRemixSource } from '@/apis/project' | ||
import { getProjectPageRoute } from '@/router' | ||
import { useUser } from '@/stores/user' | ||
import RouterUILink from '@/components/common/RouterUILink.vue' | ||
const props = defineProps<{ | ||
remixedFrom: string | ||
}>() | ||
const remixedFrom = computed(() => parseRemixSource(props.remixedFrom)) | ||
const { data: owner } = useUser(() => remixedFrom.value.owner) | ||
const title = computed(() => { | ||
if (owner.value == null) return null | ||
return { | ||
en: `${remixedFrom.value.project} created by ${owner.value.displayName}`, | ||
zh: `${remixedFrom.value.project},由 ${owner.value.displayName} 创建` | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<p class="remixed-from"> | ||
{{ $t({ en: 'Remixed from', zh: '改编自' }) }} | ||
<RouterUILink :to="getProjectPageRoute(remixedFrom.owner, remixedFrom.project)" type="boring"> | ||
{{ stringifyRemixSource(remixedFrom.owner, remixedFrom.project) }} | ||
<RouterUILink | ||
:to="getProjectPageRoute(remixedFrom.owner, remixedFrom.project)" | ||
type="boring" | ||
:title="$t(title)" | ||
> | ||
{{ remixedFrom.project }} | ||
</RouterUILink> | ||
</p> | ||
</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
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
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
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.