annotate app/views/tweets/index.html.erb @ 243:bc2f45058c9e legit-client

Prevent caching of rate limited error and combine response handling
author nanaya <me@nanaya.net>
date Sun, 16 Jul 2023 08:53:59 +0900
parents d58666587a55
children e181716b8dc8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 <!DOCTYPE html>
188
d58666587a55 Whoops wrong lang attribute placement
nanaya <me@nanaya.pro>
parents: 187
diff changeset
2 <html lang="en">
d58666587a55 Whoops wrong lang attribute placement
nanaya <me@nanaya.pro>
parents: 187
diff changeset
3 <head>
8
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
4 <title>rsstweet</title>
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
51
d4bda7501b77 Less serif.
nanaya <me@myconan.net>
parents: 38
diff changeset
7
187
a8ffbc623905 Remove unnecessary style type.
nanaya <me@nanaya.pro>
parents: 186
diff changeset
8 <style>
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
9 *, *::before, *::after {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
10 box-sizing: border-box;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
11 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
12
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
13 html {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
14 line-height: 1.5;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
15 font-family: Arial, sans-serif;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
16 font-size: 14px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
17 height: 100%;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
18 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
19
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
20 code {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
21 font-family: "Courier New", monospace;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
22 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
23
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
24 .main {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
25 margin: auto;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
26 max-width: 600px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
27 width: 100%;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
28 display: flex;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
29 flex-direction: column;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
30 height: 100%;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
31 padding: 0 10px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
32 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
33
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
34 .main__content {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
35 flex: 1;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
36 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
37
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
38 .main__footer {
117
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
39 padding: 5px 0;
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
40 border-top: 1px solid #000;
119
18f1c5f989bb Forgot the footer margin
nanaya <me@myconan.net>
parents: 118
diff changeset
41 margin-top: 10px;
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
42 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
43
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
44 .twitter-form {
117
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
45 text-align: center;
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
46 background-color: #eee;
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
47 border: 1px solid #ccc;
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
48 padding: 10px;
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
49 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
50
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
51 .twitter-form__input {
117
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
52 width: 100%;
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
53 margin-right: 5px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
54 font-family: "Courier New", monospace;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
55 font-size: 16px;
117
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
56 padding: 5px;
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
57 }
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
58
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
59 .twitter-form__button {
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
60 margin-top: 10px;
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
61 padding: 5px 30px;
51
d4bda7501b77 Less serif.
nanaya <me@myconan.net>
parents: 38
diff changeset
62 }
d4bda7501b77 Less serif.
nanaya <me@myconan.net>
parents: 38
diff changeset
63 </style>
8
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
64 </head>
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
65 <body class="main">
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
66 <div class="main__content">
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
67 <h1>rsstweet</h1>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
68 <p>
118
dc67a2f34fb7 Wording
nanaya <me@myconan.net>
parents: 117
diff changeset
69 Proxies Twitter user timeline for usage with RSS readers.
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
70 Doesn't actually output <code>rss</code> but generates <code>atom</code> instead.
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
71 Not that it matters because either way it works with any RSS readers.
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
72 </p>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
73
117
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
74 <form class="twitter-form">
116
32c8c150cd80 100% less javascripts
nanaya <me@myconan.net>
parents: 114
diff changeset
75 <input
32c8c150cd80 100% less javascripts
nanaya <me@myconan.net>
parents: 114
diff changeset
76 name="id"
32c8c150cd80 100% less javascripts
nanaya <me@myconan.net>
parents: 114
diff changeset
77 type="text"
32c8c150cd80 100% less javascripts
nanaya <me@myconan.net>
parents: 114
diff changeset
78 placeholder="Enter Username"
117
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
79 class="twitter-form__input"
116
32c8c150cd80 100% less javascripts
nanaya <me@myconan.net>
parents: 114
diff changeset
80 autofocus
32c8c150cd80 100% less javascripts
nanaya <me@myconan.net>
parents: 114
diff changeset
81 >
117
e3067b426b70 Improved style
nanaya <me@myconan.net>
parents: 116
diff changeset
82 <button type="submit" class="twitter-form__button">
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
83 Go
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
84 </button>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
85 </form>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
86 </div>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
87 <div class="main__footer">
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
88 <a href="https://bitbucket.org/nanaya1/rsstweet">Source</a>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
89 </div>
8
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
90 </body>
188
d58666587a55 Whoops wrong lang attribute placement
nanaya <me@nanaya.pro>
parents: 187
diff changeset
91 </html>