misc: add new pins
This commit is contained in:
1 parent
e1158bf8e0
commit
02912341f8
1 file changed
+27
@@ -13,6 +13,9 @@ import {
|
|||||||
ServerStack,
|
ServerStack,
|
||||||
PencilSquare,
|
PencilSquare,
|
||||||
MapPin,
|
MapPin,
|
||||||
|
Fire,
|
||||||
|
ArrowTrendingUp,
|
||||||
|
Star,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
import { get } from 'svelte/store'
|
import { get } from 'svelte/store'
|
||||||
|
|
||||||
@@ -38,6 +41,22 @@ export const defaultLinks: Link[] = [
|
|||||||
url: '/?type=Subscribed',
|
url: '/?type=Subscribed',
|
||||||
label: t.get('filter.location.subscribed'),
|
label: t.get('filter.location.subscribed'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
url: '/?type=All&sort=Hot',
|
||||||
|
label: t.get('filter.sort.hot'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/?type=All&sort=Active',
|
||||||
|
label: t.get('filter.sort.active'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/?type=All&sort=TopDay',
|
||||||
|
label: t.get('filter.sort.top.time.day'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/?type=All&sort=New',
|
||||||
|
label: t.get('filter.sort.new'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
url: '/communities',
|
url: '/communities',
|
||||||
label: t.get('nav.communities'),
|
label: t.get('nav.communities'),
|
||||||
@@ -74,6 +93,14 @@ export const iconOfLink = (url: string): IconSource => {
|
|||||||
return Newspaper
|
return Newspaper
|
||||||
case '/?type=Local':
|
case '/?type=Local':
|
||||||
return MapPin
|
return MapPin
|
||||||
|
case '/?type=All&sort=Hot':
|
||||||
|
return Fire
|
||||||
|
case '/?type=All&sort=Active':
|
||||||
|
return ArrowTrendingUp
|
||||||
|
case '/?type=All&sort=TopDay':
|
||||||
|
return ChartBar
|
||||||
|
case '/?type=All&sort=New':
|
||||||
|
return Star
|
||||||
case '/communities':
|
case '/communities':
|
||||||
return GlobeAlt
|
return GlobeAlt
|
||||||
case '/search':
|
case '/search':
|
||||||
|
|||||||
Reference in new issue
Block a user