fix: remove duplicate property
This commit is contained in:
		
							parent
							
								
									2e046ad09f
								
							
						
					
					
						commit
						d066319b45
					
				| @ -35,15 +35,9 @@ const m = toolsByCategory.map(category => ({ | |||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|   <menu-layout |   <menu-layout class="menu-layout" :class="{ isSmallScreen: styleStore.isSmallScreen }"> | ||||||
|     class="menu-layout" |  | ||||||
|     :class="{ isSmallScreen: styleStore.isSmallScreen }" |  | ||||||
|   > |  | ||||||
|     <template #sider> |     <template #sider> | ||||||
|       <router-link |       <router-link to="/" class="hero-wrapper"> | ||||||
|         to="/" |  | ||||||
|         class="hero-wrapper" |  | ||||||
|       > |  | ||||||
|         <hero-gradient class="gradient" /> |         <hero-gradient class="gradient" /> | ||||||
|         <div class="text-wrapper"> |         <div class="text-wrapper"> | ||||||
|           <div class="title"> |           <div class="title"> | ||||||
| @ -57,63 +51,33 @@ const m = toolsByCategory.map(category => ({ | |||||||
|       </router-link> |       </router-link> | ||||||
| 
 | 
 | ||||||
|       <div class="sider-content"> |       <div class="sider-content"> | ||||||
|         <n-space |         <n-space v-if="styleStore.isSmallScreen" justify="center"> | ||||||
|           v-if="styleStore.isSmallScreen" |  | ||||||
|           justify="center" |  | ||||||
|         > |  | ||||||
|           <navbar-buttons /> |           <navbar-buttons /> | ||||||
|         </n-space> |         </n-space> | ||||||
| 
 | 
 | ||||||
|         <n-menu |         <n-menu v-model:value="activeKey" :value="route.name" class="menu" :collapsed-width="64" | ||||||
|           v-model:value="activeKey" |           :collapsed-icon-size="22" :options="m" :indent="20" /> | ||||||
|           :value="route.name" |  | ||||||
|           class="menu" |  | ||||||
|           :collapsed-width="64" |  | ||||||
|           :collapsed-icon-size="22" |  | ||||||
|           :options="m" |  | ||||||
|           :indent="20" |  | ||||||
|         /> |  | ||||||
| 
 | 
 | ||||||
|         <div class="footer"> |         <div class="footer"> | ||||||
|           <div> |           <div> | ||||||
|             IT-Tools |             IT-Tools | ||||||
| 
 | 
 | ||||||
|             <n-button |             <n-button text tag="a" target="_blank" rel="noopener" type="primary" depth="3" | ||||||
|               text |               :href="`https://github.com/CorentinTh/it-tools/tree/v${version}`"> | ||||||
|               tag="a" |  | ||||||
|               target="_blank" |  | ||||||
|               rel="noopener" |  | ||||||
|               type="primary" |  | ||||||
|               depth="3" |  | ||||||
|               :href="`https://github.com/CorentinTh/it-tools/tree/v${version}`" |  | ||||||
|             > |  | ||||||
|               v{{ version }} |               v{{ version }} | ||||||
|             </n-button> |             </n-button> | ||||||
| 
 | 
 | ||||||
|             <template v-if="commitSha && commitSha.length > 0"> |             <template v-if="commitSha && commitSha.length > 0"> | ||||||
|               - |               - | ||||||
|               <n-button |               <n-button text tag="a" target="_blank" rel="noopener" type="primary" depth="3" | ||||||
|                 text |                 :href="`https://github.com/CorentinTh/it-tools/tree/v${commitSha}`"> | ||||||
|                 tag="a" |  | ||||||
|                 target="_blank" |  | ||||||
|                 rel="noopener" |  | ||||||
|                 type="primary" |  | ||||||
|                 depth="3" |  | ||||||
|                 :href="`https://github.com/CorentinTh/it-tools/tree/v${commitSha}`" |  | ||||||
|               > |  | ||||||
|                 {{ commitSha }} |                 {{ commitSha }} | ||||||
|               </n-button> |               </n-button> | ||||||
|             </template> |             </template> | ||||||
|           </div> |           </div> | ||||||
|           <div> |           <div> | ||||||
|             © {{ new Date().getFullYear() }} |             © {{ new Date().getFullYear() }} | ||||||
|             <n-button |             <n-button text tag="a" target="_blank" rel="noopener" type="primary"> | ||||||
|               text |  | ||||||
|               tag="a" |  | ||||||
|               target="_blank" |  | ||||||
|               rel="noopener" |  | ||||||
|               type="primary" |  | ||||||
|             > |  | ||||||
|               Corentin Thomasset |               Corentin Thomasset | ||||||
|             </n-button> |             </n-button> | ||||||
|           </div> |           </div> | ||||||
| @ -123,47 +87,22 @@ const m = toolsByCategory.map(category => ({ | |||||||
| 
 | 
 | ||||||
|     <template #content> |     <template #content> | ||||||
|       <div class="navigation"> |       <div class="navigation"> | ||||||
|         <n-tooltip |         <n-tooltip trigger="hover" placement="bottom-start"> | ||||||
|           trigger="hover" |  | ||||||
|           placement="bottom-start" |  | ||||||
|         > |  | ||||||
|           <template #trigger> |           <template #trigger> | ||||||
|             <n-button |             <n-button :size="styleStore.isSmallScreen ? 'medium' : 'large'" circle quaternary aria-label="Toogle menu" | ||||||
|               :size="styleStore.isSmallScreen ? 'medium' : 'large'" |               @click="styleStore.isMenuCollapsed = !styleStore.isMenuCollapsed"> | ||||||
|               circle |               <n-icon size="25" :component="Menu2" /> | ||||||
|               quaternary |             </n-button> | ||||||
|               aria-label="Toogle menu" |  | ||||||
|               @click="styleStore.isMenuCollapsed = !styleStore.isMenuCollapsed" |  | ||||||
|             > |  | ||||||
|               <n-icon |  | ||||||
|                 size="25" |  | ||||||
|                 :component="Menu2" |  | ||||||
|               /> |  | ||||||
|             </n-button>  |  | ||||||
|           </template> |           </template> | ||||||
|           Toggle menu |           Toggle menu | ||||||
|         </n-tooltip> |         </n-tooltip> | ||||||
| 
 | 
 | ||||||
|         <router-link |         <router-link to="/" #="{ navigate, href }" custom> | ||||||
|           to="/" |  | ||||||
|           #="{ navigate, href }" |  | ||||||
|           custom |  | ||||||
|         > |  | ||||||
|           <n-tooltip trigger="hover"> |           <n-tooltip trigger="hover"> | ||||||
|             <template #trigger> |             <template #trigger> | ||||||
|               <n-button |               <n-button tag="a" :href="href" :size="styleStore.isSmallScreen ? 'medium' : 'large'" circle quaternary | ||||||
|                 tag="a" |                 aria-label="Home" @click="navigate"> | ||||||
|                 :href="href" |                 <n-icon size="25" :component="Home2" /> | ||||||
|                 :size="styleStore.isSmallScreen ? 'medium' : 'large'" |  | ||||||
|                 circle |  | ||||||
|                 quaternary |  | ||||||
|                 aria-label="Home" |  | ||||||
|                 @click="navigate" |  | ||||||
|               > |  | ||||||
|                 <n-icon |  | ||||||
|                   size="25" |  | ||||||
|                   :component="Home2" |  | ||||||
|                 /> |  | ||||||
|               </n-button> |               </n-button> | ||||||
|             </template> |             </template> | ||||||
|             Home |             Home | ||||||
| @ -174,18 +113,9 @@ const m = toolsByCategory.map(category => ({ | |||||||
| 
 | 
 | ||||||
|         <n-tooltip trigger="hover"> |         <n-tooltip trigger="hover"> | ||||||
|           <template #trigger> |           <template #trigger> | ||||||
|             <n-button |             <n-button type="primary" tag="a" href="https://github.com/sponsors/CorentinTh" rel="noopener" | ||||||
|               type="primary" |               target="_blank"> | ||||||
|               tag="a" |               <n-icon v-if="!styleStore.isSmallScreen" :component="Heart" style="margin-right: 5px;" /> | ||||||
|               href="https://github.com/sponsors/CorentinTh" |  | ||||||
|               rel="noopener" |  | ||||||
|               target="_blank" |  | ||||||
|             > |  | ||||||
|               <n-icon |  | ||||||
|                 v-if="!styleStore.isSmallScreen" |  | ||||||
|                 :component="Heart" |  | ||||||
|                 style="margin-right: 5px;" |  | ||||||
|               /> |  | ||||||
|               Sponsor |               Sponsor | ||||||
|             </n-button> |             </n-button> | ||||||
|           </template> |           </template> | ||||||
| @ -226,7 +156,6 @@ const m = toolsByCategory.map(category => ({ | |||||||
| .hero-wrapper { | .hero-wrapper { | ||||||
|   position: absolute; |   position: absolute; | ||||||
|   display: block; |   display: block; | ||||||
|   position: absolute; |  | ||||||
|   left: 0; |   left: 0; | ||||||
|   width: 100%; |   width: 100%; | ||||||
|   z-index: 10; |   z-index: 10; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user