Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: dynamic title head #46

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import IShakeHand from '~/components/icons/IShakeHand.vue'
import ICompany from '~/components/icons/ICompany.vue'
import ITeam from '~/components/icons/ITeam.vue'
import Itestimonial from '~/components/icons/ITestimonial.vue'
useHead({
title: 'e-shopee | about',
})
</script>

<template>
Expand Down
3 changes: 3 additions & 0 deletions src/pages/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export default defineComponent({
[THEME_KEY]: 'light',
},
setup() {
useHead({
title: 'admin | home',
})
const option = ref({
title: {
text: 'Top sales',
Expand Down
6 changes: 6 additions & 0 deletions src/pages/admin/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ meta:
layout: ALogin
</route>

<script setup lang="ts">
useHead({
title: 'admin | login',
})
</script>

<template>
<div class="login-container grid grid-rows-5">
<div class="login-banner row-span-2 flex justify-center items-center relative">
Expand Down
6 changes: 6 additions & 0 deletions src/pages/cart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ meta:
layout: LCart
</route>

<script setup>
useHead({
title: 'e-shopee | cart',
})
</script>

<template>
<div class="cart-container text-center">
<table class="table w-full">
Expand Down
3 changes: 3 additions & 0 deletions src/pages/checkout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ meta:
</route>

<script setup>
useHead({
title: 'e-shopee | checkout',
})
const isPersonal = ref(true)
const isAddress = ref(false)
const isShipping = ref(false)
Expand Down
6 changes: 6 additions & 0 deletions src/pages/contact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ meta:
layout: LContact
</route>

<script setup>
useHead({
title: 'e-shopee | contact',
})
</script>

<template>
<div class="contact-container grid grid-cols-2 gap-15 text-left p-15">
<div class="left divide-light-700 divide-y">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { t } = useI18n()
<carbon-campsite class="inline-block" />
</p>
<p>
<a rel="noreferrer" href="https://github.com/antfu/vitesse" target="_blank">
<a rel="noreferrer" href="https://github.com/thuongtruong1009/e-shopee" target="_blank">
Vitesse
</a>
</p>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/seller/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ meta:
layout: SHome
</route>

<script setup>
useHead({
title: 'seller | home',
})
</script>

<template>
<div class="">
home
Expand Down
7 changes: 7 additions & 0 deletions src/pages/seller/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ meta:
layout: SLogin
</route>

<script setup>
useHead({
title: 'seller | login',
})
</script>


<template>
<div class="seller-login-container grid grid-cols-2">
<div class="seller-login-container-left grid pt-10">
Expand Down
3 changes: 3 additions & 0 deletions src/pages/seller/notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ meta:
</route>

<script setup>
useHead({
title: 'seller | notifications',
})
const notifications = reactive([{
img: 'https://cf.shopee.vn/file/dc275ef5663eaf4ef26ba0e9f50e737e',
title: 'Shopee Xu sắp hết hạn!!',
Expand Down
3 changes: 3 additions & 0 deletions src/pages/seller/orders/all.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ meta:

<script setup>
import PNotFound from '~/components/partterns/PNotFound.vue'
useHead({
title: 'seller | all-orders',
})
const queryType = ref('code orders')
const navActive = ref('all')

Expand Down
3 changes: 3 additions & 0 deletions src/pages/seller/prods/add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ meta:
<script setup>
import ISearch from '~/components/ISearch.vue'
import ICaretRight from '~/components/ICaretRight.vue'
useHead({
title: 'seller | add-productions',
})
const numberWord = ref('')
const productsList = reactive([
{
Expand Down
3 changes: 3 additions & 0 deletions src/pages/seller/prods/all.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ meta:

<script setup>
import IQuestion from '~/components/IQuestion.vue'
useHead({
title: 'seller | all-productions',
})

const queryType = ref('all')

Expand Down
4 changes: 4 additions & 0 deletions src/pages/seller/shop/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import IPlus from '~/components/icons/IPlus.vue'
import IQuestion from '~/components/IQuestion.vue'
const numberShopName = ref('Lamborghini Aventador S')
const numberShopDescription = ref('')

useHead({
title: 'seller | profile',
})
</script>

<template>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/sitemap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ meta:

<script setup>
import CMap from '~/components/CMap.vue'

useHead({
title: 'e-shopee | sitemap',
})
</script>

<template>
Expand Down