Commit 0f760e9b authored by yPhil's avatar yPhil
Browse files

#feature : Infinite scroll (#63)

parent 2dcfd4b3
Pipeline #394670 passed with stage
in 51 seconds
......@@ -10,7 +10,7 @@
"keywords": [
"rss"
],
"homepage": "",
"homepage": "https://framagit.org/yphil/petrolette",
"ignore": [
"**/.*",
"node_modules",
......@@ -24,7 +24,6 @@
"intro.js": "^3.3.1",
"remotestorage": "rs#1.1.0",
"rs-widget": "1.3.0",
"bLazy": "blazy#^1.8.2",
"DOMPurify": "dompurify#^2.2.6",
"responsively-lazy": "^2.0.2"
},
......
{
"name": "petrolette",
"description": "Fly-by-night news reading webapp.",
"version": "1.1.2",
"description": "News reading webapp.",
"version": "1.2.0",
"private": true,
"license": "GPL-3.0-only",
"FAVICONS_CACHE_DIR": "favicons-cache",
......
......@@ -1191,10 +1191,14 @@ li.feed div.feed-body {
border-right: 1px solid var(--color-bg1);
margin: 0;
/* height: 150px; */
overflow-y: auto;
overflow: hidden;
/* resize: vertical; */
}
li.feed div.feed-body:hover {
overflow-y: scroll;
}
.folded {
height: 0 !important;
}
......
......@@ -183,8 +183,6 @@ PTL.feed = {
$feedToggle = $feed.find('.feed-toggle'),
$feedIcon = $feed.find('.feed-toggle > i');
console.log('feedLimit: %s (%s)', feedLimit);
$feedBody.css('height', feedLimit);
var l = PTL.util.getLocation(feedUrl),
......
......@@ -420,7 +420,7 @@ PTL.i18n.translations = {
"Index" : { fr: "Indice", ja: "インデックス", es: "Índice" },
"Items" : { fr: "Articles", ja: "記事", es: "Elementos" },
"Height" : { fr: "Hauteur", ja: "高さ", es: "Altura" },
"Number of items displayed in this feed" : { fr: "Nombre d'articles affichés dans ce flux", ja: "このソースの項目数", es: "Número de elementos en este fuente" },
"Number of feeds" : { fr: "Nombre de flux", ja: "ソース数", es: "Cantidad de fuentes" },
......
......@@ -6,58 +6,58 @@ PTL.prefs = (function() {
{"name":"news",
"columns": [
[
{"url":"https://www.sciencemag.org/rss/weekly_news_email.xml","type":"photo","limit": 1,"status":"off"},
{"url":"http://rss.sciam.com/ScientificAmerican-Global","type":"mixed","limit": 6,"status":"on"},
{"url":"https://www.popsci.com/arcio/rss/","type":"mixed","limit": 6,"status":"off"},
{"url":"https://www.sciencemag.org/rss/weekly_news_email.xml","type":"photo","limit": 200,"status":"off"},
{"url":"http://rss.sciam.com/ScientificAmerican-Global","type":"mixed","limit": 450,"status":"on"},
{"url":"https://www.popsci.com/arcio/rss/","type":"mixed","limit": 450,"status":"off"},
{"url":"https://www.wired.com/category/science/feed","type":"mixed","limit": 8,"status":"on"}
{"url":"https://www.wired.com/category/science/feed","type":"mixed","limit": 450,"status":"on"}
],
[
{"url":"https://www.reddit.com/r/worldnews.rss","type":"mixed","limit": 6,"status":"off"},
{"url":"https://rss.art19.com/apology-line","type":"text","limit": 4,"status":"off"},
{"url":"http://feeds.feedburner.com/sciencealert-latestnews","type":"mixed","limit": 6,"status":"on"},
{"url":"https://www.npr.org/rss/rss.php?id=1001","type":"mixed","limit": 4,"status":"on"}
{"url":"https://www.reddit.com/r/worldnews.rss","type":"mixed","limit": 450,"status":"off"},
{"url":"https://rss.art19.com/apology-line","type":"text","limit": 40,"status":"off"},
{"url":"http://feeds.feedburner.com/sciencealert-latestnews","type":"mixed","limit": 450,"status":"on"},
{"url":"https://www.npr.org/rss/rss.php?id=1001","type":"mixed","limit": 400,"status":"on"}
],
[
{"url":"http://comicfeeds.chrisbenard.net/view/dilbert/default","type":"photo","limit": 1,"status":"on"},
{"url":"http://explainxkcd.com/rss.xml","type":"photo","limit": 4,"status":"on"},
{"url":"http://xkcd.com/rss.xml","type":"photo","limit": 2,"status":"on"}
{"url":"http://comicfeeds.chrisbenard.net/view/dilbert/default","type":"photo","limit": 200,"status":"on"},
{"url":"http://xkcd.com/rss.xml","type":"photo","limit": 400,"status":"on"},
{"url":"http://explainxkcd.com/rss.xml","type":"photo","limit": 60,"status":"on"}
],
[
{"url":"https://www.yellowtrace.com.au/category/architecture/feed/","type":"photo","limit": 2,"status":"off"},
{"url":"https://www.ignant.com/category/architecture/feed/","type":"photo","limit": 6,"status":"on"}
{"url":"https://www.yellowtrace.com.au/category/architecture/feed/","type":"photo","limit": 200,"status":"off"},
{"url":"https://www.ignant.com/category/architecture/feed/","type":"photo","limit": 450,"status":"on"}
]
]
},
{"name":"tek",
"columns": [
[
{"url":"http://feeds.bbci.co.uk/news/technology/rss.xml","type":"mixed","limit": 6,"status":"on"},
{"url":"http://feeds.feedburner.com/hackaday/LgoM/","type":"mixed","limit": 8,"status":"on"},
{"url":"http://feeds.bbci.co.uk/news/technology/rss.xml","type":"mixed","limit": 450,"status":"on"},
{"url":"http://feeds.feedburner.com/hackaday/LgoM/","type":"mixed","limit": 450,"status":"on"},
{"url":"https://hackernoon.com/feed","type":"mixed","limit": 8,"status":"off"}
{"url":"https://hackernoon.com/feed","type":"mixed","limit": 450,"status":"off"}
],
[
{"url":"https://hacks.mozilla.org/feed/","type":"mixed","limit": 4,"status":"on"},
{"url":"http://feeds.arstechnica.com/arstechnica/index","type":"mixed","limit": 6,"status":"on"}
{"url":"https://hacks.mozilla.org/feed/","type":"mixed","limit": 400,"status":"on"},
{"url":"http://feeds.arstechnica.com/arstechnica/index","type":"mixed","limit": 450,"status":"on"}
],
[
{"url":"https://www.technologyreview.com/topnews.rss","type":"mixed","limit": 4,"status":"on"},
{"url":"https://www.techmeme.com/feed.xml?x=1","type":"mixed","limit": 4,"status":"on"},
{"url":"https://www.technologyreview.com/topnews.rss","type":"mixed","limit": 400,"status":"on"},
{"url":"https://www.techmeme.com/feed.xml?x=1","type":"mixed","limit": 400,"status":"on"},
{"url":"http://feeds.feedburner.com/thechangelog","type":"text","limit": 4,"status":"off"}
{"url":"http://feeds.feedburner.com/thechangelog","type":"text","limit": 400,"status":"off"}
]
]
},
{"name":"img",
"columns": [
[
{"url":"http://cabinporn.com/rss/","type":"photo","limit": 3,"status":"off"},
{"url":"https://iso.500px.com/feed/","type":"photo","limit": 3,"status":"on"}
{"url":"http://cabinporn.com/rss/","type":"photo","limit": 250,"status":"off"},
{"url":"https://iso.500px.com/feed/","type":"photo","limit": 250,"status":"on"}
],
[
{"url":"http://www.nasa.gov/rss/dyn/lg_image_of_the_day.rss","type":"photo","limit": 3,"status":"off"},
{"url":"https://mastodon.social/@256.rss","type":"photo","limit": 3,"status":"on"}
{"url":"http://www.nasa.gov/rss/dyn/lg_image_of_the_day.rss","type":"photo","limit": 250,"status":"off"},
{"url":"https://mastodon.social/@256.rss","type":"photo","limit": 250,"status":"on"}
]
]
......@@ -65,34 +65,34 @@ PTL.prefs = (function() {
{"name":"social",
"columns": [
[
{"url":"https://mastodon.social/@Gargron.rss","type":"mixed","limit": 8,"status":"off"},
{"url":"https://bitcoinhackers.org/@mastodonusercount.rss","type":"photo","limit": 1,"status":"on"},
{"url":"https://tenforward.social/@packetcat/tagged/nowplaying.rss","type":"mixed","limit": 8,"status":"on"}
{"url":"https://mastodon.social/@Gargron.rss","type":"mixed","limit": 450,"status":"off"},
{"url":"https://bitcoinhackers.org/@mastodonusercount.rss","type":"photo","limit": 200,"status":"on"},
{"url":"https://tenforward.social/@packetcat/tagged/nowplaying.rss","type":"mixed","limit": 450,"status":"on"}
],
[
{"url":"https://framasphere.org/public/librazik.atom","type":"mixed","limit": 8,"status":"on"},
{"url":"https://botsin.space/@hackaday","type":"photo","limit": 3,"status":"on"}
{"url":"https://framasphere.org/public/librazik.atom","type":"mixed","limit": 450,"status":"on"},
{"url":"https://botsin.space/@hackaday","type":"photo","limit": 250,"status":"on"}
],
[
{"url":"https://mastodon.social/@unfa.rss","type":"mixed","limit": 8,"status":"on"},
{"url":"https://botsin.space/@tinyskylines.rss","type":"photo","limit": 3,"status":"on"}
{"url":"https://mastodon.social/@unfa.rss","type":"mixed","limit": 450,"status":"on"},
{"url":"https://botsin.space/@tinyskylines.rss","type":"photo","limit": 250,"status":"on"}
]
]
},
{"name":"music",
"columns": [
[
{"url":"http://createdigitalmusic.com/feed/","type":"mixed","limit": 8,"status":"off"},
{"url":"http://planet.linuxaudio.org/rss20.xml","type":"mixed","limit": 8,"status":"on"},
{"url":"https://www.youtube.com/feeds/videos.xml?channel_id=UCAYKj_peyESIMDp5LtHlH2A","type":"mixed","limit": 8,"status":"on"}
{"url":"http://createdigitalmusic.com/feed/","type":"mixed","limit": 450,"status":"off"},
{"url":"http://planet.linuxaudio.org/rss20.xml","type":"mixed","limit": 450,"status":"on"},
{"url":"https://www.youtube.com/feeds/videos.xml?channel_id=UCAYKj_peyESIMDp5LtHlH2A","type":"mixed","limit": 450,"status":"on"}
],
[
{"url":"https://www.rollingstone.com/music/rss","type":"photo","limit": 4,"status":"on"},
{"url":"http://www.premierguitar.com/rss/1","type":"mixed","limit": 12,"status":"on"}
{"url":"https://www.rollingstone.com/music/rss","type":"photo","limit": 200,"status":"on"},
{"url":"http://www.premierguitar.com/rss/1","type":"mixed","limit": 200,"status":"on"}
],
[
{"url":"https://feeds.feedburner.com/dangerousminds/dot/net","type":"photo","mixed": 4,"status":"on"}
{"url":"https://feeds.feedburner.com/dangerousminds/dot/net","type":"photo","limit": 400,"status":"on"}
]
]
}
......
......@@ -64,8 +64,8 @@
</div>
</fieldset>
<legend data-content="Items"
class="ui-corner-top translate">Items</legend>
<legend data-content="Height"
class="ui-corner-top translate">Height</legend>
<fieldset id="feedLimitFieldset" class="ui-widget ui-widget-content ui-corner-all" data-title="Woyo!">
<div class="flex-box translate"
data-title="Number of items displayed in this feed">
......
......@@ -44,8 +44,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Pétrolette">
<meta property="og:description" content="The fly-by-night news reader">
<meta name="description" content="The fly-by-night news reader" />
<meta property="og:description" content="The news reader that doesn't know you">
<meta name="description" content="The news reader that doesn't know you" />
<meta property="og:image" content="https://framagit.org/yphil/assets/-/raw/main/img/petrolette.png">
<meta property="og:url" content="http://petrolette.space">
<meta name="twitter:card" content="summary_large_image">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment