Commit Graph

472 Commits (afc7142250dc02654a53a7222abe88df964d58f4)

Author SHA1 Message Date
Andrew Dolgov 905f038610 search dialog: display active query if searching already 6 years ago
Andrew Dolgov 09f520eda2 fix search query test statement stopping valid modifiers like unread: from working 6 years ago
Andrew Dolgov de713035fd when subscribing, check for valid html content type before checking if requested document has HTML doctype/start element 6 years ago
Andrew Dolgov 84d43a1b44 catchup_feed: invoke HOOK_SEARCH if necessary 6 years ago
Andrew Dolgov ccc0315ef0 better tsquery support:
1. report query syntax errors properly
2. fall back to implicit &-joining only if no joiners are detected in user query, otherwise permit full tsquery syntax
6 years ago
Andrew Dolgov 1cd9b3c866 prevent a fatal error on an invalid tsquery syntax 6 years ago
Michael Kuhn e38fcd6dea Fix button focus issues
This change introduces derived classes for ComboButton, DropDownButton
and Select that make sure that buttons do not remain focused after their
menus are closed. This allows using hotkeys after closing them.
6 years ago
Andrew Dolgov c936cc3a1f use DEFAULT_SEARCH_LANGUAGE to generate tsvector index if per-feed language is not specified, also use it as default value on search form for convenience 6 years ago
Andrew Dolgov 19f162dbe3 css: insensitive -> text-muted 6 years ago
Andrew Dolgov 0b74db5ad7 remove feedbrowser (other feeds) 6 years ago
Andrew Dolgov 54c1b5c611 fill in some missing doctypes; use short doctype where it wasn't 6 years ago
Andrew Dolgov a366da90a6 add label.inline 6 years ago
Andrew Dolgov 335147e572 dialogs: use semantic markup instead of dlgsec stuff
continue unifying quoting style for html strings
6 years ago
Andrew Dolgov 4e253add8c UI: add some more info links to relevant wiki pages; minor layout updates 6 years ago
Andrew Dolgov 26e57604c0 simplify layout of search and subscribe dialogs 6 years ago
Andrew Dolgov f8836ec080 search dialog fixes
pgsql: get FTS languages list from the database
6 years ago
Andrew Dolgov 4d9141d762 simplify dlgSec-related markup 6 years ago
Andrew Dolgov 9e7bbf6809 debugger: use narrow fieldsets for checkboxes 6 years ago
Andrew Dolgov 55d2e5871a feed debugger: dojoify controls 6 years ago
Andrew Dolgov 8cd7f31bde utility css updates 6 years ago
Andrew Dolgov 8b26b8629f headlines-frame: set is-vfeed attribute if result is virtual feed 6 years ago
Andrew Dolgov 4729bdb132 queryFeedHeadlines: fix published field not returned when browsing by tag 6 years ago
Andrew Dolgov 215c9f0f88 fail better if Feeds.view() data failed encoding to JSON 6 years ago
Andrew Dolgov eda4ac2a2b add fallback colors for headline feed titles based on feed name if favicon color is not available 6 years ago
Andrew Dolgov f3c04fc5d8 sync modified scores via mutation observer 6 years ago
Andrew Dolgov 25ca144bb7 score: get correct classes for rows/score icons on the client 6 years ago
Andrew Dolgov a5813bb766 mysql: use date_format() for yyiw part in queryFeedHeadlines() 6 years ago
Michael Kuhn 3484ad2aaf Use IYYY in combination with IW
Otherwise, we could end up with a wrong date, see:
https://community.oracle.com/thread/997899
6 years ago
Andrew Dolgov fa538a6c86 implement year-week sorting window if headlines buffer is grouped by feed titles 6 years ago
Andrew Dolgov 8f5b5ae09e if not enabled, set content_preview to "" instead of null 6 years ago
Andrew Dolgov bd66a9ef28 render article on the client using headlines data 6 years ago
Andrew Dolgov 41e967136f format headlines list: normalize booleans for pdo mysql 6 years ago
Andrew Dolgov 811e1514a3 remove uuid from headlines JSON output 6 years ago
Andrew Dolgov 3b7a9219f6 viewfeed: cleanup unneeded stuff from server JSON output 6 years ago
Andrew Dolgov 76885fc5ad viewfeed: general code cleanup 6 years ago
Andrew Dolgov 8f75b06835 implement feed grouping display, remove unneeded server vgrlf passing 6 years ago
Andrew Dolgov 0b84d1d0dc viewfeed: add orig_feed object 6 years ago
Andrew Dolgov e075e6141b json-viewfeed updates 6 years ago
Andrew Dolgov 249c93a228 initial for js templates 6 years ago
Andrew Dolgov e9cf8e8e35 normalize archived articles output in headlines 6 years ago
Andrew Dolgov 26c074ed7e rework article header to use flexbox 6 years ago
Andrew Dolgov b4c2b26822 remove collapse.png 6 years ago
Andrew Dolgov 0b8cbc9156 remove some bitmaps and rework stuff using it to use iconfont instead 6 years ago
Andrew Dolgov d2d2cb7e7d rework scoring display, JS processing and icons 6 years ago
Andrew Dolgov 8b2286305e and again 6 years ago
Andrew Dolgov 1de1426114 Revert "change fresh feed icon"
This reverts commit 69da55b945.
6 years ago
Andrew Dolgov 69da55b945 change fresh feed icon 6 years ago
Andrew Dolgov c700345c96 trgm: use vector icon, replace recently read icon 6 years ago
Andrew Dolgov cad6d1d7fd various icon updates; use new icons in feed tree 6 years ago
Andrew Dolgov a0778577ac remove pub_{set,unset}.png usage in main code 6 years ago
Andrew Dolgov cbd7328cb4 minor fixes to pub/mark icons etc 6 years ago
Andrew Dolgov b65d8384c2 update headlines to use vector icons 6 years ago
Andrew Dolgov 89b213b4bb initial for material-icons 6 years ago
Andrew Dolgov edd348b16c rework not-cdm headline rows to use flex-box 6 years ago
Andrew Dolgov 88c2da72d5 combined mode: use flex-box for header/footer layout 6 years ago
Andrew Dolgov 2621180b54 in three panel mode, attach context menu to the title, instead of entire headlines row 6 years ago
Andrew Dolgov 2ab097b2e5 initial work for flat modern theme 6 years ago
Andrew Dolgov 6befff30d7 updates for flat theme (mostly disable old dijit overrides) 6 years ago
Andrew Dolgov 0b8fef8262 combined unexpanded: respect 'SHOW_CONTENT_PREVIEW' preference 6 years ago
Andrew Dolgov 27b93988e7 add placeholder loading indicator to CDM entries
restore missing "originally from" for archived articles
6 years ago
Andrew Dolgov e76d1fb995 plugins: mail, mailto: remove code from global context 6 years ago
wn_ 6100392bd5 Fix an `onclick` (`Article.editArticleTags` --> `Article.editTags`) 6 years ago
Andrew Dolgov 5ead558e43 move Utils to AppBase where it belongs 6 years ago
Andrew Dolgov ad1b6f0a86 bring back excerpts in unexpanded mode 6 years ago
Andrew Dolgov 874560db54 remove obsolete row selection functions
move getUrlParam() to Utils
6 years ago
Andrew Dolgov 0a18d0b1ed Feeds: shorten some method names
finally rename "view as rss"
6 years ago
Andrew Dolgov 6e625555c9 Headlines: shorten selectArticles 6 years ago
Andrew Dolgov 3678315bea Article, Headlines: shorten several method names 6 years ago
Andrew Dolgov cc26be0793 migrate tt-rss.js contents to App 6 years ago
Andrew Dolgov ab0fadf60d fix vfeed group title CSS in not combined mode 6 years ago
Andrew Dolgov 642c37ea61 further effocts to wrap JS stuff into objects 6 years ago
Andrew Dolgov 4bed9be57d js-ification: start on some common dialogs 6 years ago
Andrew Dolgov 97df81d8d9 even more objectification of JS 6 years ago
Andrew Dolgov d86ddbc635 further objectification of JS code 6 years ago
Andrew Dolgov 049a37aa0e WIP reshuffling of JS global context into separate logical objects 6 years ago
Andrew Dolgov 195180b64d minor refactoring: normalize some function names; cleanup; etc 6 years ago
Andrew Dolgov a2ef54cd92 toggleMark, togglePub: refactor implementation
shorten marked/published img CSS classes
6 years ago
Andrew Dolgov 5aa9c60494 bring back (debloated) version of unexpanded combined mode 6 years ago
Andrew Dolgov 2e01a1d41d css updates; night theme fixes for changed CSS classes 6 years ago
Andrew Dolgov 07fd4f8d9d minor css fixes (mostly for zoom mode) 6 years ago
Andrew Dolgov 8359ca6dad combined mode (and more) css class name updates 6 years ago
Andrew Dolgov 5f211e37a4 remove FTITLE- id 6 years ago
Andrew Dolgov 67cdf4cf12 remove some unnecessary element IDs
rework plugins/note to use xhrJson()
6 years ago
Andrew Dolgov b9585004e6 packed headlines: no point in using JSON here 6 years ago
Andrew Dolgov 7673331850 headlines: remove collapseBtn 6 years ago
Andrew Dolgov 9563e3bcd6 remove expandable CDM headlines 6 years ago
Andrew Dolgov c8c9a26f30 move to simpler CDM handling of encoded content (instead of CENCW... etc) 6 years ago
Andrew Dolgov c10a43069e debug logging system rework:
* support various logging levels per-message
 * remove hacks like debug_suppress, DAEMON_EXTENDED_DEBUG, etc
 * _debug() is kept as a compatibility shim for plugins
6 years ago
Andrew Dolgov 4508e3103d some more eslint-related stuff 6 years ago
Andrew Dolgov 3a0292303e php: remove trailing whitespaces 6 years ago
Andrew Dolgov 2aef804f4b split transparent rewriting of locally cached media URLs to execute after both sanitize() and HOOK_RENDER_ARTICLE to allow plugins work on original source URLs consistently 6 years ago
MatthieuS 5d95676ecc Call the subscription hook from the plugins even if fetch_file_contents returned no data
This allows a plug-in to override the fetch when the core fetch method fails for some feeds (eg. Tumblr feeds when requested from an EU IP).
7 years ago
Andrew Dolgov c30f5e1811 subscribe_to_feed: force-cast login and password to string 7 years ago
Andrew Dolgov 8dedacf497 remove synchronous feed refreshing on ForceUpdate 7 years ago
Andrew Dolgov bed2d6e054 force-cast some variables used in queries to integer
do not display SQL query in headlines debug mode
7 years ago
Andrew Dolgov 0f05147531 properly highlight search keywords containing forward slash 7 years ago
Andrew Dolgov ef1feb3610 subscribe dialog: add primary action 7 years ago
Andrew Dolgov 6fb5ce5e35 add some primary dialog actions; update css 7 years ago
Andrew Dolgov 5f7be9957f filter,label dlg: use default action 7 years ago
Andrew Dolgov 320a3ba529 search form: set default action 7 years ago
Andrew Dolgov 1c1fc17120 synchronous feed update: catch PDO exceptions as to not break headlines output 7 years ago
Andrew Dolgov 8f92a67e6f some (very minor) code cleanup in feeds class 7 years ago
Andrew Dolgov 003a7447c3 format_headlines_list: prevent warning on first_id changed check 7 years ago
Andrew Dolgov 7c6f7bb0aa fix some minor issues found by code analyzer 7 years ago
Andrew Dolgov fa3bcfa379 queryfeedheadlines: there's no need to quote order_by/override_order
else: feedicon cache busting etc
7 years ago
Andrew Dolgov 5f5b0de423 style feed icon and opml file upload controls 7 years ago
Andrew Dolgov 1f16f9b8ae feed debugger: only allow debugging users own feeds 7 years ago
Andrew Dolgov 09bc54c690 further stylesheet simplification related fixes 7 years ago
Andrew Dolgov 64312bfd71 feeds: remove sql_bool_to_bool() 7 years ago
Andrew Dolgov 187abfe732 main classes: remove sql_bool_to_bool() kludge 7 years ago
Andrew Dolgov aee3f0e6d9 fix typo 7 years ago
Andrew Dolgov 7fc303e6ab query feed headlines: fix limit/offset 7 years ago
Andrew Dolgov 3623ebb1a1 feeds: handle escaping 7 years ago
Andrew Dolgov c9b6ca8b70 feeds: remove escaping 7 years ago
Andrew Dolgov b5791f11c5 queryfeedheadlines: PDOize (1) 7 years ago
Andrew Dolgov 29f1908e03 feeds: right before queryfeedheadlines() 7 years ago
Andrew Dolgov cc9450c309 ccache, misc: fixes
feeds: start PDO transition
7 years ago
Gilles Grandou 81d96c0dee makes 'order by title' to sort by title and by ascending date
* this allows to chronologically browse all articles with the
  same title.
7 years ago
Andrew Dolgov 51b521c326 fix batch feed editor using wrong SQL syntax when saving feed password
remove uses of auth_pass_encrypted in several other places
7 years ago
Andrew Dolgov e50a647916 add HOOK_FORMAT_ARTICLE & HOOK_FORMAT_ARTICLE_CDM
Feeds::format_headlines_list: add some comments for cdm article closing tags
8 years ago
Andrew Dolgov e6c886bf66 wrap rssfuncs into rssutils class 8 years ago
Andrew Dolgov 7c9b5a3fe4 move label stuff to Labels class
fix some unresolved functions
8 years ago
Andrew Dolgov 0086a89740 move some label stuff to labels.php
move getfeedcategory() to Feeds
8 years ago
Andrew Dolgov 4a0da0e5bf move get_article_labels to Article 8 years ago
Andrew Dolgov 2ed0d6c433 move counter cache to a separate class
fix references to get_article_tags
8 years ago
Andrew Dolgov aeb1abedb2 move a bunch of functions into Feeds/Article namespaces
+       static function catchupArticlesById($ids, $cmode, $owner_uid = false) {
+       static function getLastArticleId() {
+       static function queryFeedHeadlines($params) {
+       static function getParentCategories($cat, $owner_uid) {
+       static function getChildCategories($cat, $owner_uid) {

move the rest of functions2.php back to functions.php as it is of more manageable size, remove the former
8 years ago
Andrew Dolgov a230bf88a9 move to Article:
+       static function purge_orphans($do_output = false) {

move to Feeds

+       static function getGlobalUnread($user_id = false) {
+       static function getCategoryTitle($cat_id) {
+       static function getLabelUnread($label_id, $owner_uid = false) {
8 years ago
Andrew Dolgov 86a8351ca2 move the following to Feeds:
+       static function catchup_feed($feed, $cat_view, $owner_uid = false, $mode = 'all', $search = false) {
+       static function getFeedArticles($feed, $is_cat = false, $unread_only = false,
+       static function subscribe_to_feed($url, $cat_id = 0,
+       static function getFeedIcon($id) {
+       static function getFeedTitle($id, $cat = false) {
+       static function getCategoryUnread($cat, $owner_uid = false) {
+       static function getCategoryChildrenUnread($cat, $owner_uid = false) {
8 years ago
Andrew Dolgov 7e5f8d9fb3 move the following to Article:
+       static function format_article_enclosures($id, $always_display_enclosures,
+       static function format_article($id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false) {
+       static function get_article_tags($id, $owner_uid = 0, $tag_cache = false) {
+       static function format_tags_string($tags) {
+       static function format_article_labels($labels) {
+       static function format_article_note($id, $note, $allow_edit = true) {
+       static function get_article_enclosures($id) {
8 years ago
Andrew Dolgov 4122da0290 move getArticleFeed to Article
move print_label_select to controls
8 years ago
Andrew Dolgov 7b55001eee fix various issues reported by static analysis
update gitlab-ci config
8 years ago
Andrew Dolgov 337535416f filter by search results while marking feed as read 8 years ago
Andrew Dolgov 63f0ed3d9c cdmClicked: do not use event.target.parents to figure out if clicked on a heading 8 years ago
Andrew Dolgov b835a52814 rework the way headlines menus identify calling row 8 years ago
Andrew Dolgov 5161460048 bind headlines menu to a selector to avoid remaking it unnecessarily 8 years ago
Jérémy DECOOL ba2853caac Prevent target='_blank' vulnerability on dynamic link 8 years ago
Andrew Dolgov 328118d12e use print_hidden() for hidden dojo form fields 8 years ago
Andrew Dolgov 24c7e4132d subscribe dialog: do not report errors via alert()
fetch_file_contents: reset all globals on start, return error message body when not using curl
subscribe_to_feed: report if cloudflare is in the error message
8 years ago
Andrew Dolgov ad326dbf78 unpackVisibleHeadlines: do not iterate over all RROWs all the time 8 years ago
Andrew Dolgov 967f0619c7 force ngettext() count argument type to string 8 years ago
Andrew Dolgov 6b06a609af headlines toolbar: move selection links into the dropdown 8 years ago
Andrew Dolgov c9a5903bcc disable autocomplete in subscription dialog 9 years ago
Andrew Dolgov b6b5554db4 normalize some html5 custom attributes 9 years ago
Andrew Dolgov 2d052e42b5 getLoadedArticleIds: consider visible rows only
catchupFeedInGroup: hide articles when catching up, with caveats
9 years ago
Andrew Dolgov d9de136c39 inline feed update: set feed as needing update if open_basedir is set + plugins need curl 9 years ago
Andrew Dolgov 71b75bb7fa fix multiple issues with archived feeds 9 years ago
Andrew Dolgov 41245888f1 only stop inline feed updates with open_basedir enabled if there are any plugins that require CURL enabled
add plugin->flags() returning array with additional plugin information, currently only CURL requirement (optional)
9 years ago
Andrew Dolgov 29c92d7b08 prevent frontend updating of feeds on view if open_basedir is set to prevent plugins potentially not working correctly (i.e. if backend system has open_basedir disabled) 9 years ago
Andrew Dolgov f61f2a2699 format_headlines_list: fix pg_num_rows() called incorrectly when firstid check failed 9 years ago
Andrew Dolgov 1bd552ee31 compat patches for php7 9 years ago