diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-13 22:23:54 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-13 22:23:54 -0800 |
| commit | 860e1ecb570bda229b6a64fef905923898e0f832 (patch) | |
| tree | 261c4781766e3d6d273809625cc4e364ab07b925 /web/static/ui.html | |
| parent | 47c43577ead8721008b858232511b2f65e0ed574 (diff) | |
| download | neko-860e1ecb570bda229b6a64fef905923898e0f832.tar.gz neko-860e1ecb570bda229b6a64fef905923898e0f832.tar.bz2 neko-860e1ecb570bda229b6a64fef905923898e0f832.zip | |
Audit and reduce Go dependencies: replace go.rice with embed, pflag with flag
Diffstat (limited to 'web/static/ui.html')
| -rw-r--r-- | web/static/ui.html | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/web/static/ui.html b/web/static/ui.html new file mode 100644 index 0000000..214a544 --- /dev/null +++ b/web/static/ui.html @@ -0,0 +1,119 @@ +<!DOCTYPE html> +<html> + <head> + <title>neko rss mode</title> + <link rel="stylesheet" href="/static/style.css" /> + <script src="/static/jquery-3.3.1.min.js"></script> + <script src="/static/jquery.tmpl.min.js"></script> + <script src="/static/underscore-1.13.1.min.js"></script> + <script src="/static/backbone-1.3.3.min.js"></script> + <script> + PUBLIC_VERSION = false; + </script> + <script src="/static/ui.js"></script> + <meta name="viewport" content="width=device-width,height=device-height, initial-scale=1, maximum-scale=1" /> + <base target="_blank"> + </head> + <body> + <h1 class="logo" onclick="$('#filters').toggleClass('hidden');">🐱</h1> + + <div id="filters"> + + <div id="controls"></div> + <h4 onclick="$('#tags').toggle();">Tags</h4> + <ul id="tags" style="display: none;"> + </ul> + + <h4 onclick="$('#feeds').toggle();">Feeds</h4> + <ul id="feeds" style="display: none;"> + </ul> + + <h4 onclick="$('#export').toggle();">Export</h4> + <ul id="export" style="display: none;"> + <li><a href="/export/opml">opml</a></li> + <li><a href="/export/text">text</a></li> + <li><a href="/export/json">json</a></li> + </ul> + </div> + + </div> + + <div id="c"> + <div id="items"> + </div> + </div> + + <script id="item_template" type="text/jqtmp"> + <h2><a class="i" id="i_${item_id}" href="${item.url}">${item.title }</a> + <span class={{if item.starred}}"unstar"{{else}}"star"{{/if}}>★</span> + </h2> + <p class="dateline" style="clear: both;"> + <a href="${item.feed_url}">${item.feed_title}</a> | <a href="${item.url}">${item.p_url}</a> + | ${item.feed_category} | + <span class="full">{{if item.full}}hide{{else}}scrape{{/if}} full text</span> + + </p> + {{if item.header_image}} + <div class="img"><img src="${item.header_image}" /></div> + {{/if}} + <div class="description"> + {{if item.full}} + {{html item.full_content}} + {{else}} + {{html item.description}} + {{/if}} + </div> + </script> + + <script id="tag_template" type="text/jqtmp"> + {{if tag.selected}}<b>{{/if}} + ${tag.title} + {{if tag.selected}}</b>{{/if}} + </script> + + <script id="feed_template" type="text/jqtmp"> + {{if feed.selected}}<b>{{/if}} + <span class="txt"> + {{if feed.title}} + ${feed.title} + {{else}} + ${feed.url} + {{/if}} + + </span> + <span class="edit">[e]</span> + <span class="delete">[x]</span> + {{if feed.selected}}</b>{{/if}} + </script> + + <script id="controls_template" type="text/jqtmp"> + <ul> + <li class="unread_filter"> + <a {{if app.unreadFilter}}style="font-weight: bold;"{{/if}} + >unread</a> + </li> + <li class="all_filter"> + <a + {{if app.allFilter}}style="font-weight: bold;"{{/if}} + >all</a> + </li> + <li class="starred_filter"> + <a {{if app.starredFilter}}style="font-weight: bold;"{{/if}} + >★ starred</a> + </li> + <li> + <button class="new_feed"> + new </button> + </li> + <li> + <input id="search" type="search" /><button class="search_go">search</button> + </li> + <li class="themes"> + <button class="light_theme">light</button> + <button class="dark_theme">dark</button> + <button class="black_theme">black</button> + </li> + </ul> + </script> + +</body> +</html> |
