-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.ts
77 lines (70 loc) · 2.31 KB
/
config.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
const hnMenu = [
"topstories",
"newstories",
"beststories",
"showstories",
"askstories",
"jobstories",
]
const textName = "Cylinder HN"
export default {
site: process.env.SITE_URL || "http://localhost:3000",
textName,
meta: {
title: `${textName}: Latest Hacker News,Trending Hacker News, Hacker News Search`,
description:
"Visit latest and trending Hacker News's stories, Aak HN, Show HN, HN Jobs, search everything in Hacker News",
keywords: [
textName,
"Hacker News",
"Cylinder Hacker News",
"Latest Hacker news",
"Latest HN",
"Hacker News Search",
"HN Search",
"Hacker News Trending",
"HN Trending",
"Tech News",
"Programing News",
...hnMenu,
...hnMenu.map(s => s.replace("stories", "") + " stories"),
],
},
hnMenu,
resources: [
{ label: "Hacker News API", url: "https://github.com/HackerNews/API" },
{ label: "Hacker News Search API", url: "https://hn.algolia.com/api" },
],
relevant: [{ label: "GitHub Trending API", url: "https://github.com/doforce/github-trending" }],
social: {
repo: { label: "Repository", url: "https://github.com/doforce/cylinder" },
bmac: { label: "Support me", url: "https://www.buymeacoffee.com/doforce" },
},
datePresets: [
{ key: "-1", label: "yesterday", unit: "day" },
{ key: "-3", label: "3 days ago", unit: "day" },
{ key: "-7", label: "a week ago", unit: "day" },
{ key: "-1", label: "a month ago", unit: "month" },
{ key: "-3", label: "3 months ago", unit: "month" },
{ key: "-6", label: "6 months ago", unit: "month" },
{ key: "-1", label: "a year ago", unit: "year" },
{ key: "-3", label: "3 years ago", unit: "year" },
{ key: "-5", label: "5 years ago", unit: "year" },
{ key: "-10", label: "10 year ago", unit: "year" },
],
hnPageSize: 30,
hnBase: "https://hacker-news.firebaseio.com/v0/",
hnSearchBase: "https://hn.algolia.com/api/v1",
hnSort: [
{ key: "search", label: "By relevance" },
{ key: "search_by_date", label: "By date" },
],
hnSupportTags: [
{ key: "story", label: "Stories" },
{ key: "comment", label: "Comments" },
{ key: "poll", label: "Polls" },
{ key: "pollopt", label: "Pollopts" },
{ key: "show_hn", label: "Show" },
{ key: "ask_hn", label: "Ask" },
],
}