forked from tdjsnelling/sqtracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrss.js
More file actions
41 lines (37 loc) · 1.24 KB
/
Copy pathrss.js
File metadata and controls
41 lines (37 loc) · 1.24 KB
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
import React, { useContext } from "react";
import getConfig from "next/config";
import SEO from "../components/SEO";
import Text from "../components/Text";
import LocaleContext from "../utils/LocaleContext";
const Rss = () => {
const {
publicRuntimeConfig: { SQ_BASE_URL },
} = getConfig();
const { getLocaleString } = useContext(LocaleContext);
return (
<>
<SEO title={getLocaleString("navRSS")} />
<Text as="h1" mb={4}>
{getLocaleString("navRSS")}
</Text>
<Text mb={4}>
{getLocaleString("rssThereRSSFeedAt")}{" "}
<strong>{SQ_BASE_URL}/api/rss</strong>.
</Text>
<Text mb={4}>
{getLocaleString("rssToAuthenticateYourself")}{" "}
<strong>{getLocaleString("username")}</strong>{" "}
{getLocaleString("rssAnd")}{" "}
<strong>{getLocaleString("password")}</strong>{" "}
{getLocaleString("rssToRSSEndpoint")}
</Text>
<Text mb={4}>{getLocaleString("rssNoQueryParametersAreProvided")}</Text>
<Text>
{getLocaleString("rssOnlyIncludeMatchingResults")}{" "}
<strong>query</strong> {getLocaleString("rssQueryParameter")}{" "}
<strong>/api/rss?query=loremipsum</strong>.
</Text>
</>
);
};
export default Rss;