Initial release
[websub-hub] / test / test-data / link-helper.js
1 'use strict';
2
3 const rssFeedUrl = 'https://puppetcircuits.wordpress.com/feed/';
4 const rssFeedBody = `<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
5 xmlns:content="http://purl.org/rss/1.0/modules/content/"
6 xmlns:wfw="http://wellformedweb.org/CommentAPI/"
7 xmlns:dc="http://purl.org/dc/elements/1.1/"
8 xmlns:atom="http://www.w3.org/2005/Atom"
9 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
10 xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
11 xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
12 >
13
14 <channel>
15 <title>Puppet Circuits</title>
16 <atom:link href="https://puppetcircuits.wordpress.com/feed/" rel="self" type="application/rss+xml" />
17 <link>https://puppetcircuits.wordpress.com</link>
18 <description></description>
19 <lastBuildDate>Fri, 10 Feb 2012 19:26:16 +0000</lastBuildDate>
20 <language>en</language>
21 <sy:updatePeriod>
22 hourly </sy:updatePeriod>
23 <sy:updateFrequency>
24 1 </sy:updateFrequency>
25 <generator>http://wordpress.com/</generator>
26 <cloud domain='puppetcircuits.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
27 <image>
28 <url>https://s0.wp.com/i/buttonw-com.png</url>
29 <title>Puppet Circuits</title>
30 <link>https://puppetcircuits.wordpress.com</link>
31 </image>
32 <atom:link rel="search" type="application/opensearchdescription+xml" href="https://puppetcircuits.wordpress.com/osd.xml" title="Puppet Circuits" />
33 <atom:link rel='hub' href='https://puppetcircuits.wordpress.com/?pushpress=hub'/>
34 <item>
35 <title>Been a while! And: fun video from Eric</title>
36 <link>https://puppetcircuits.wordpress.com/2012/02/10/been-a-while-and-fun-video-from-eric/</link>
37 <comments>https://puppetcircuits.wordpress.com/2012/02/10/been-a-while-and-fun-video-from-eric/#respond</comments>
38
39 <dc:creator><![CDATA[raphaelabrams]]></dc:creator>
40 <pubDate>Fri, 10 Feb 2012 19:26:16 +0000</pubDate>
41 <category><![CDATA[Uncategorized]]></category>
42 <guid isPermaLink="false">http://puppetcircuits.wordpress.com/?p=164</guid>
43
44 <description><![CDATA[Yes, I DO think I can space my posts one year apart! Here&#8217;s a really very nice video that Eric Skiff made that features me and one of my creations.]]></description>
45 <content:encoded><![CDATA[<p>Yes, I DO think I can space my posts one year apart!</p>
46 <p>Here&#8217;s a really very nice video that Eric Skiff made that features me and one of my creations.</p>
47 <iframe class='youtube-player' width='560' height='315' src='https://www.youtube.com/embed/7yHF0Ubxdnc?version=3&#038;rel=0&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent' allowfullscreen='true' style='border:0;' sandbox='allow-scripts allow-same-origin allow-popups allow-presentation'></iframe>
48 ]]></content:encoded>
49
50 <wfw:commentRss>https://puppetcircuits.wordpress.com/2012/02/10/been-a-while-and-fun-video-from-eric/feed/</wfw:commentRss>
51 <slash:comments>0</slash:comments>
52
53
54
55 <media:content url="https://0.gravatar.com/avatar/c19e5ba7f3abc36656779edcc9c6b6eb?s=96&#38;d=identicon&#38;r=G" medium="image">
56 <media:title type="html">raphaelabrams</media:title>
57 </media:content>
58 </item>
59 <item>
60 <title>Botacon!</title>
61 <link>https://puppetcircuits.wordpress.com/2011/02/22/botacon/</link>
62 <comments>https://puppetcircuits.wordpress.com/2011/02/22/botacon/#respond</comments>
63
64 <dc:creator><![CDATA[raphaelabrams]]></dc:creator>
65 <pubDate>Tue, 22 Feb 2011 06:55:49 +0000</pubDate>
66 <category><![CDATA[robotics]]></category>
67 <category><![CDATA[servos]]></category>
68 <guid isPermaLink="false">http://puppetcircuits.wordpress.com/?p=158</guid>
69
70 <description><![CDATA[A little late, but here&#8217;s a video of me talking at Botacon a few months ago.]]></description>
71 <content:encoded><![CDATA[<p>A little late, but here&#8217;s a video of me talking at Botacon a few months ago.</p>
72 <iframe class='youtube-player' width='450' height='254' src='https://www.youtube.com/embed/OV5gG29jvaQ?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent' allowfullscreen='true' style='border:0;' sandbox='allow-scripts allow-same-origin allow-popups allow-presentation'></iframe>
73 ]]></content:encoded>
74
75 <wfw:commentRss>https://puppetcircuits.wordpress.com/2011/02/22/botacon/feed/</wfw:commentRss>
76 <slash:comments>0</slash:comments>
77
78
79
80 <media:content url="https://0.gravatar.com/avatar/c19e5ba7f3abc36656779edcc9c6b6eb?s=96&#38;d=identicon&#38;r=G" medium="image">
81 <media:title type="html">raphaelabrams</media:title>
82 </media:content>
83 </item>
84 <item>
85 <title>Oddball Hotplate</title>
86 <link>https://puppetcircuits.wordpress.com/2011/01/22/oddball-hotplate/</link>
87 <comments>https://puppetcircuits.wordpress.com/2011/01/22/oddball-hotplate/#comments</comments>
88
89 <dc:creator><![CDATA[raphaelabrams]]></dc:creator>
90 <pubDate>Sat, 22 Jan 2011 21:26:55 +0000</pubDate>
91 <category><![CDATA[electronics]]></category>
92 <guid isPermaLink="false">http://puppetcircuits.wordpress.com/?p=155</guid>
93
94 <description><![CDATA[I made a special hotplate for soldering all the circuit boards for the Blueman project. It&#8217;s 22&#8243; long and 1&#8243; wide. I made it out of a single block of aluminum that I CNC milled to fit two 750 watt heaters and a thermocouple. There&#8217;s also a PIC that monitors the thermocouple and has a [&#8230;]]]></description>
95 <content:encoded><![CDATA[<iframe class='youtube-player' width='450' height='254' src='https://www.youtube.com/embed/Va2SkWK1QII?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent' allowfullscreen='true' style='border:0;' sandbox='allow-scripts allow-same-origin allow-popups allow-presentation'></iframe>
96 <p>I made a special hotplate for soldering all the circuit boards for the Blueman project. It&#8217;s 22&#8243; long and 1&#8243; wide. I made it out of a single block of aluminum that I CNC milled to fit two 750 watt heaters and a thermocouple. There&#8217;s also a PIC that monitors the thermocouple and has a relay to turn the heaters on and off. The display shows target and current temperatures to within 1/4 degree Celcius. Having this to do my soldering kept me from losing my sanity. There&#8217;s 0ver 1000 solder joints on each wand!</p>
97 <p>&nbsp;</p>
98 ]]></content:encoded>
99
100 <wfw:commentRss>https://puppetcircuits.wordpress.com/2011/01/22/oddball-hotplate/feed/</wfw:commentRss>
101 <slash:comments>1</slash:comments>
102
103
104
105 <media:content url="https://0.gravatar.com/avatar/c19e5ba7f3abc36656779edcc9c6b6eb?s=96&#38;d=identicon&#38;r=G" medium="image">
106 <media:title type="html">raphaelabrams</media:title>
107 </media:content>
108 </item>
109 </channel>
110 </rss>`;
111
112 const atomFeedUrl = 'https://squeep.com/eats/atom/';
113 const atomFeedBody = `<?xml version="1.0" encoding="UTF-8"?>
114 <feed
115 xmlns="http://www.w3.org/2005/Atom"
116 xmlns:thr="http://purl.org/syndication/thread/1.0"
117 xml:lang="en" >
118 <title type="text">Fyne Vyttles</title>
119 <subtitle type="text">An incomplete collection of foods worth sharing.</subtitle>
120 <generator>Recipe Index v0.0</generator>
121 <updated>2020-10-08T19:47:16Z</updated>
122 <link rel="alternate" type="text/xhtml" href="https://squeep.com/eats/" />
123 <link rel="self" type="application/atom+xml" href="https://squeep.com/eats/atom/" />
124 <link rel="hub" href="https://hub.squeep.com/" />
125 <id>https://squeep.com/eats/atom/</id>
126 <entry>
127 <author>
128 <name></name>
129 <uri>https://squeep.com/eats/</uri>
130 </author>
131 <title>![CDATA[E&amp;O Trading Company Corn Fritters]]</title>
132 <link rel="alternate" type="text/xhtml" href="https://squeep.com/eats/secret/e-and-o-corn-fritters.xhtml" />
133 <id>https://squeep.com/eats/secret/e-and-o-corn-fritters.xhtml</id>
134 <category scheme="https://squeep.com/eats/" term="secret" />
135 <updated>2020-10-08T19:47:16Z</updated>
136 <published>2020-10-08T19:47:16Z</published>
137 </entry>
138 <entry>
139 <author>
140 <name></name>
141 <uri>https://squeep.com/eats/</uri>
142 </author>
143 <title>![CDATA[Chevy's Sweet Corn Tamalito]]</title>
144 <link rel="alternate" type="text/xhtml" href="https://squeep.com/eats/secret/chevys-sweet-corn-tamalito.xhtml" />
145 <id>https://squeep.com/eats/secret/chevys-sweet-corn-tamalito.xhtml</id>
146 <category scheme="https://squeep.com/eats/" term="secret" />
147 <updated>2020-07-15T02:15:28Z</updated>
148 <published>2020-07-15T02:15:28Z</published>
149 </entry>
150 </feed>
151 `;
152
153 const htmlUrl = 'https://squeep.com/eats/';
154 const htmlBody = `<?xml version="1.0" encoding="UTF-8" ?>
155 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
156 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
157 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
158 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
159 xsi:schemaLocation="http://www.w3.org/1999/xhtml
160 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"
161 >
162 <head>
163 <title>Squeep Recipe Book</title>
164 <link rel="preload" href="oldstyle.otf" as="font" type="font/opentype" crossorigin="anonymous" />
165 <link rel="stylesheet" type="text/css" href="eats.css" />
166 <link rel="hub" href="https://hub.squeep.com/" />
167 <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="https://squeep.com/eats/atom/" />
168 </head>
169 <body>
170 <hr />`;
171
172 module.exports = {
173 atomFeedBody,
174 atomFeedUrl,
175 htmlBody,
176 htmlUrl,
177 rssFeedBody,
178 rssFeedUrl,
179 };