From: Will Budic Date: Fri, 22 Sep 2023 09:30:56 +0000 (+1000) Subject: Added more feeds. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=347acb2a07348276b0f963042e19b25f231875fc;p=LifeLog.git Added more feeds. --- diff --git a/htdocs/cgi-bin/CNFServices.cgi b/htdocs/cgi-bin/CNFServices.cgi index 512925d..b6ab00e 100755 --- a/htdocs/cgi-bin/CNFServices.cgi +++ b/htdocs/cgi-bin/CNFServices.cgi @@ -98,7 +98,8 @@ The Perl Weekly ( http://perlweekly.com/ ) is a newsletter including links to bl #`The Cipher Brief RSS Feed`https://www.thecipherbrief.com/feed`The Cipher Brief is the go-to digital platform for the latest security news and high-level analysis. Each day, we offer multiple expert perspectives, engaging the private sector to find solutions and foster dialogue on what events mean for businesses and organizations around the world. More than just reporting on the news, The Cipher Brief helps readers understand what the news means to you.~ #`Viral Now`https://viralnow.uk/feed/`ViralNow is a dynamic online platform at the forefront of curating and delivering trending and viral content. ViralNow brings you the latest and most engaging stories, videos, and articles from around the world.~ #`The Sydney Morning Herald - World RSS Feed`http://www.smh.com.au/rssheadlines/world/article/rss.xml`The Sydney Morning Herald is Australia's leading news source. The Sydney Morning Herald sets the standard for journalistic excellence for Sydney, Australia, and the rest of the world. From breaking news, to travel and fashion, The Sydney Morning Herald continues to transform the way Australians get their news.~ -#`LifeHacker`https://lifehacker.com/rss`Lifehacker’s an award-winning daily blog that features tips, shortcuts, and downloads that help you work and live smarter and more efficiently.~ +#`Life Hacker`https://lifehacker.com/rss`Lifehacker’s an award-winning daily blog that features tips, shortcuts, and downloads that help you work and live smarter and more efficiently.~ +#`Politico`http://www.politico.com/rss/politicopicks.xml`POLITICO strives to be the dominant source for news on politics and policy in power centers across every continent where access to reliable information, nonpartisan journ.lism and real-time tools create, inform and engage a global citizenry.~ >> __CNF_IS_COOL__ diff --git a/htdocs/cgi-bin/index.cnf b/htdocs/cgi-bin/index.cnf index 1e03012..c011985 100644 --- a/htdocs/cgi-bin/index.cnf +++ b/htdocs/cgi-bin/index.cnf @@ -42,7 +42,7 @@ text-align: left; vertical-align: middle; margin:5px; - background: rgba(128,128,128,0.2); + background: rgba(0, 223, 246, 0.13); } #content ul { diff --git a/htdocs/cgi-bin/system/modules/RSSFeedsPlugin.pm b/htdocs/cgi-bin/system/modules/RSSFeedsPlugin.pm index dab22fa..7ed191f 100644 --- a/htdocs/cgi-bin/system/modules/RSSFeedsPlugin.pm +++ b/htdocs/cgi-bin/system/modules/RSSFeedsPlugin.pm @@ -52,9 +52,11 @@ sub process ($self, $parser, $property) { my $page = '

List Of Feeds

    '; for my $idx (1 .. $#data){ my @col = @{$data[$idx]}; - $page .= qq|
  1. $col[1]   [ $col[4] ]
    $col[3]
  2. \n|; + $page .= qq|
  3. + $col[1] +   [ $col[4] ]
    $col[3]
  4. \n|; } - $page .= '
'; + $page .= '
'; $parser->data()->{PAGE} = \$page }else{ $parser->addPostParseProcessor($self,'collectFeeds'); @@ -94,7 +96,7 @@ sub collectFeeds($self, $parser) { if(isCNFTrue($self->{CONVERT_CNF_HTML})){ $page .= _treeToHTML($tree); $page .=qq(RSS Feeds - + ) } }else{ @@ -126,7 +128,7 @@ sub _treeToHTML($tree){ next if $item->name() ne 'Item'; my ($Title,$Link,$Date) = $item -> array('Title','Link','Date'); my $Description = $item -> node('Description') -> val(); - $Description =~ s/
@@ -262,6 +264,10 @@ my $buffer = capture_stdout { if(!$date) { $date = $item->query('dc:date'); } + if(!$date){ + print "Feed pub date item error with:$title"; + next + } $date = $date->text_content; $date = CNFDateTime::_toCNFDate($date, $self->{TZ})->toTimestampShort(); if($console){ diff --git a/htdocs/cgi-bin/wsrc/feeds.css b/htdocs/cgi-bin/wsrc/feeds.css index 463812b..22e0809 100644 --- a/htdocs/cgi-bin/wsrc/feeds.css +++ b/htdocs/cgi-bin/wsrc/feeds.css @@ -5,7 +5,6 @@ .feed { text-align:left; - width: 100%; border: 1px solid black; margin-bottom: 5px; padding: 8px; @@ -13,7 +12,9 @@ .feed div { text-align:left; border:0; - +} +.feed li { + margin-top: 5px;; } .feed_lbl { @@ -98,7 +99,7 @@ margin-left: 10px; margin-right: 0; width: 30px; - content: "...read\f101"; + content: "...more\f101"; } .article-read-more a { diff --git a/htdocs/cgi-bin/wsrc/feeds.js b/htdocs/cgi-bin/wsrc/feeds.js index 97d1942..37d27c8 100644 --- a/htdocs/cgi-bin/wsrc/feeds.js +++ b/htdocs/cgi-bin/wsrc/feeds.js @@ -12,10 +12,11 @@ function fetchFeeds(id){ function(response) {pnl.html("Service Error: "+response.status,response.responseText);pnl.fadeOut(10000);} ); } -function fetchFeed(feed){ - var pnl = $('#feeds'); +function fetchFeed(feed) { + ID = '#feeds'; + var pnl = $(ID); pnl.html( - '
P l e a s e    W a i t '+feed+' loading...
' + '
Please   Wait -> '+feed+' loading...
' ); pnl.show(); pnl.css('visibility','visible'); diff --git a/htdocs/cgi-bin/wsrc/fonts/fontawesome-webfont.woff2 b/htdocs/cgi-bin/wsrc/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000..4d13fc6 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/fonts/fontawesome-webfont.woff2 differ