This commit is contained in:
Henry Jameson 2022-08-12 01:27:09 +03:00
parent 7d13f38d88
commit 80600137d1
9 changed files with 94 additions and 59 deletions

View File

@ -1,6 +1,11 @@
<template> <template>
<ul> <ul>
<NavigationEntry v-for="item in lists" :key="item.name" :show-pin="showPin" :item="item" /> <NavigationEntry
v-for="item in lists"
:key="item.name"
:show-pin="showPin"
:item="item"
/>
</ul> </ul>
</template> </template>

View File

@ -18,7 +18,10 @@
/> />
</button> </button>
</div> </div>
<ul class="panel-body" v-if="!collapsed || forceExpand"> <ul
v-if="!collapsed || forceExpand"
class="panel-body"
>
<li v-if="currentUser || !privateMode"> <li v-if="currentUser || !privateMode">
<button <button
class="button-unstyled menu-item" class="button-unstyled menu-item"
@ -40,7 +43,12 @@
class="timelines-background" class="timelines-background"
> >
<ul class="timelines"> <ul class="timelines">
<NavigationEntry v-for="item in timelinesItems" :key="item.name" :show-pin="true" :item="item" /> <NavigationEntry
v-for="item in timelinesItems"
:key="item.name"
:show-pin="true"
:item="item"
/>
</ul> </ul>
</div> </div>
</li> </li>
@ -74,10 +82,18 @@
v-show="showLists" v-show="showLists"
class="timelines-background" class="timelines-background"
> >
<ListsMenuContent :showPin="true" class="timelines" /> <ListsMenuContent
:show-pin="true"
class="timelines"
/>
</div> </div>
</li> </li>
<NavigationEntry v-for="item in rootItems" :key="item.name" :show-pin="true" :item="item" /> <NavigationEntry
v-for="item in rootItems"
:key="item.name"
:show-pin="true"
:item="item"
/>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -11,8 +11,8 @@
:icon="item.icon" :icon="item.icon"
/> />
<span <span
class="icon iconLetter fa-scale-110"
v-if="item.iconLetter" v-if="item.iconLetter"
class="icon iconLetter fa-scale-110"
>{{ item.iconLetter }} >{{ item.iconLetter }}
</span>{{ item.labelRaw || $t(item.label) }} </span>{{ item.labelRaw || $t(item.label) }}
<button <button

View File

@ -1,7 +1,9 @@
<template> <template>
<span class="NavigationPins"> <span class="NavigationPins">
<router-link <router-link
v-for="item in pinnedList" :key="item.name" class="pinned-item" v-for="item in pinnedList"
:key="item.name"
class="pinned-item"
:to="item.routeObject || { name: (currentUser || item.anon) ? item.route : item.anonRoute, params: { username: currentUser.screen_name } }" :to="item.routeObject || { name: (currentUser || item.anon) ? item.route : item.anonRoute, params: { username: currentUser.screen_name } }"
> >
<FAIcon <FAIcon

View File

@ -1,7 +1,10 @@
<template> <template>
<div :class="['Timeline', classes.root]"> <div :class="['Timeline', classes.root]">
<div :class="classes.header"> <div :class="classes.header">
<TimelineMenu v-if="!embedded" :timeline-name="timelineName"/> <TimelineMenu
v-if="!embedded"
:timeline-name="timelineName"
/>
<button <button
v-if="showLoadButton" v-if="showLoadButton"
class="button-default loadmore-button" class="button-default loadmore-button"

View File

@ -10,9 +10,18 @@
@close="() => isOpen = false" @close="() => isOpen = false"
> >
<template #content> <template #content>
<ListsMenuContent v-if="useListsMenu" :showPin="false" class="timelines" /> <ListsMenuContent
v-if="useListsMenu"
:show-pin="false"
class="timelines"
/>
<ul v-else> <ul v-else>
<NavigationEntry v-for="item in timelinesList" :key="item.name" :show-pin="false" :item="item" /> <NavigationEntry
v-for="item in timelinesList"
:key="item.name"
:show-pin="false"
:item="item"
/>
</ul> </ul>
</template> </template>
<template #trigger> <template #trigger>