mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 04:38:55 +03:00
Allow Trending to be added to Shortcuts
This commit is contained in:
parent
9e2f5f72bc
commit
dffd344deb
1 changed files with 16 additions and 0 deletions
|
@ -27,6 +27,7 @@ const TYPES = [
|
||||||
'bookmarks',
|
'bookmarks',
|
||||||
'favourites',
|
'favourites',
|
||||||
'hashtag',
|
'hashtag',
|
||||||
|
'trending',
|
||||||
];
|
];
|
||||||
const TYPE_TEXT = {
|
const TYPE_TEXT = {
|
||||||
following: 'Home / Following',
|
following: 'Home / Following',
|
||||||
|
@ -38,6 +39,7 @@ const TYPE_TEXT = {
|
||||||
bookmarks: 'Bookmarks',
|
bookmarks: 'Bookmarks',
|
||||||
favourites: 'Favourites',
|
favourites: 'Favourites',
|
||||||
hashtag: 'Hashtag',
|
hashtag: 'Hashtag',
|
||||||
|
trending: 'Trending',
|
||||||
};
|
};
|
||||||
const TYPE_PARAMS = {
|
const TYPE_PARAMS = {
|
||||||
list: [
|
list: [
|
||||||
|
@ -59,6 +61,14 @@ const TYPE_PARAMS = {
|
||||||
placeholder: 'e.g. mastodon.social',
|
placeholder: 'e.g. mastodon.social',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
trending: [
|
||||||
|
{
|
||||||
|
text: 'Instance',
|
||||||
|
name: 'instance',
|
||||||
|
type: 'text',
|
||||||
|
placeholder: 'e.g. mastodon.social',
|
||||||
|
},
|
||||||
|
],
|
||||||
search: [
|
search: [
|
||||||
{
|
{
|
||||||
text: 'Search term',
|
text: 'Search term',
|
||||||
|
@ -118,6 +128,12 @@ export const SHORTCUTS_META = {
|
||||||
path: ({ local, instance }) => `/${instance}/p${local ? '/l' : ''}`,
|
path: ({ local, instance }) => `/${instance}/p${local ? '/l' : ''}`,
|
||||||
icon: ({ local }) => (local ? 'group' : 'earth'),
|
icon: ({ local }) => (local ? 'group' : 'earth'),
|
||||||
},
|
},
|
||||||
|
trending: {
|
||||||
|
id: 'trending',
|
||||||
|
title: 'Trending',
|
||||||
|
path: ({ instance }) => `/${instance}/trending`,
|
||||||
|
icon: 'chart',
|
||||||
|
},
|
||||||
search: {
|
search: {
|
||||||
id: 'search',
|
id: 'search',
|
||||||
title: ({ query }) => query,
|
title: ({ query }) => query,
|
||||||
|
|
Loading…
Reference in a new issue