-
Notifications
You must be signed in to change notification settings - Fork 1
/
suggestions.ts
33 lines (31 loc) · 1 KB
/
suggestions.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function Suggestion(name: string, aliases: string[], url: string, favicon: string, description: string) {
this.name = name;
this.aliases = aliases;
this.aliases.unshift(name);
this.url = url;
this.favicon = favicon;
this.description = description;
}
const suggestions = [];
const search = `~QUERYHERE~`;
suggestions.push(new Suggestion("public", ["pub"], `https://github.com/section/${search}`, "github.png", "Section Github Org Search"));
suggestions.push(new Suggestion("redirect", [], `${search}`, "redirect.png", "redirect to url"));
suggestions.push(
new Suggestion(
"ebo",
["ebayorders"],
`https://www.ebay.com/mye/myebay/v2/purchase?page=1&q=${search}&mp=purchase-search-module-v2&type=v2&pg=purchase`,
"ebay.png",
"ebay orders"
)
);
suggestions.push(
new Suggestion(
"orders",
["o"],
`https://smile.amazon.com/gp/your-account/order-history/ref=ppx_yo_dt_b_search?opt=ab&search=${search}`,
"amazon-32.jpg",
"Amazon Orders"
)
);
export default suggestions;