-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(vue): Add custom pages and links (#4708)
- Loading branch information
1 parent
5150fa1
commit bca0e77
Showing
12 changed files
with
512 additions
and
19 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,5 @@ | ||
--- | ||
"@clerk/vue": patch | ||
--- | ||
|
||
Add support for custom pages and links |
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
29 changes: 29 additions & 0 deletions
29
integration/templates/vue-vite/src/views/custom-pages/OrganizationProfile.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,29 @@ | ||
<script setup lang="ts"> | ||
import { OrganizationProfile } from '@clerk/vue'; | ||
</script> | ||
|
||
<template> | ||
<OrganizationProfile> | ||
<OrganizationProfile.Page | ||
label="Terms" | ||
url="terms" | ||
> | ||
<template #labelIcon> | ||
<div>Icon</div> | ||
</template> | ||
<div> | ||
<h1>Custom Terms Page</h1> | ||
<p>This is the custom terms page</p> | ||
</div> | ||
</OrganizationProfile.Page> | ||
<OrganizationProfile.Link | ||
label="Homepage" | ||
url="/" | ||
> | ||
<template #labelIcon> | ||
<div>Icon</div> | ||
</template> | ||
</OrganizationProfile.Link> | ||
<OrganizationProfile.Page label="general" /> | ||
</OrganizationProfile> | ||
</template> |
29 changes: 29 additions & 0 deletions
29
integration/templates/vue-vite/src/views/custom-pages/UserProfile.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,29 @@ | ||
<script setup lang="ts"> | ||
import { UserProfile } from '@clerk/vue'; | ||
</script> | ||
|
||
<template> | ||
<UserProfile> | ||
<UserProfile.Page | ||
label="Terms" | ||
url="terms" | ||
> | ||
<template #labelIcon> | ||
<div>Icon</div> | ||
</template> | ||
<div> | ||
<h1>Custom Terms Page</h1> | ||
<p>This is the custom terms page</p> | ||
</div> | ||
</UserProfile.Page> | ||
<UserProfile.Link | ||
label="Homepage" | ||
url="/" | ||
> | ||
<template #labelIcon> | ||
<div>Icon</div> | ||
</template> | ||
</UserProfile.Link> | ||
<UserProfile.Page label="security" /> | ||
</UserProfile> | ||
</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
Oops, something went wrong.