kopia lustrzana https://github.com/elk-zone/elk
				
				
				
			feat: support paginator in local timeline
							rodzic
							
								
									696ddb2bad
								
							
						
					
					
						commit
						eb3f2ab771
					
				|  | @ -1,3 +1,4 @@ | |||
| { | ||||
|   "extends": "@antfu" | ||||
|   "extends": "@antfu", | ||||
|   "ignorePatterns": ["!pages/public"] | ||||
| } | ||||
|  |  | |||
|  | @ -1,8 +1,8 @@ | |||
| <script setup lang="ts"> | ||||
| const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchPublic({ local: true }).then(r => r.value)) | ||||
| const paginator = masto.timelines.getPublicIterable({ local: true }) | ||||
| 
 | ||||
| useHead({ | ||||
|   title: 'Local' | ||||
|   title: 'Local', | ||||
| }) | ||||
| </script> | ||||
| 
 | ||||
|  | @ -13,7 +13,7 @@ useHead({ | |||
|     </template> | ||||
| 
 | ||||
|     <slot> | ||||
|       <TimelineList :timelines="timelines" /> | ||||
|       <TimelinePaginator :paginator="paginator" /> | ||||
|     </slot> | ||||
|   </MainContent> | ||||
| </template> | ||||
|  |  | |||
|  | @ -10,7 +10,7 @@ definePageMeta({ | |||
|         status, | ||||
|       }, | ||||
|     } | ||||
|   } | ||||
|   }, | ||||
| }) | ||||
| </script> | ||||
| 
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 三咲智子
						三咲智子