Commit Graph

1388 Commits

Author SHA1 Message Date
Alexandre Alapetite
e4775bf30d Fever API: Log messages for wrong credendials (#1910) 2018-06-01 23:20:29 +02:00
Girish Ramakrishnan
fa3532dc8e Use realpath of EXTENSIONS_PATH (#1911)
This handles the case where the extensions directory might be a symlink
2018-06-01 23:19:23 +02:00
Kevin Papst
8f1bad60d0 Add Fever API and user documentation (#1836)
* added fever api and documentation

* spaces to tabs

* fixed code format

* added links

* added utf8 to header

* removed XML support

* removed before check, as we have to convert it afterwards

* added sandboxed setting (currently disabled)
added support for extensions using entry_before_display

* listFeedsOrderUpdate LIMIT

https://github.com/FreshRSS/FreshRSS/pull/1836/files#r175287881

* removed custom sql by using FreshRSS_FeedDAO::listFeedsOrderUpdate()

* fixed mark all as read

* replaced custom sql for getUnread() and getStarred() with dao functions

* removed sanitization functions

* Rework fever login

* Fix config bug

Plus documentation

* Fix array syntax

For compatibility with PHP 5.3

* Disable cookies and session for API

* Fix currentUser

* added response header and error log

* adjusted phpdoc to match new authentication

* Mechanism to delete old keys

* replace PHP_INT_MAX with zero to disable limit

* replace method_exists with check for explicit methods

* removed Press support and smaller refactoring + updated docu

* Rewrite bindParamArray

Avoid one of the SQL injection risks

* Docs and readme

* Fix API link

* Simplify reverse key check

Using userConfig
2018-05-24 21:53:47 +02:00
Alexandre Alapetite
84d891f8cf Light Boolean search implementation (#1828)
* Light Boolean search implementation

"Hello intitle:World OR date:P1D example"
https://github.com/FreshRSS/FreshRSS/issues/879

* Doc Boolean search

* Doc typos
2018-03-14 17:20:41 +01:00
Alexandre Alapetite
cb1c788c8a Fix API bug with EasyRSS (#1800)
Regression in FreshRSS 1.10.0
https://github.com/FreshRSS/FreshRSS/issues/1799
2018-02-28 09:29:09 +01:00
Alexandre Alapetite
c79b8fb46e Fix commented Minz_Log::debug (#1788)
Move Minz_Log::debug() examples after the Minz_Configuration::register()
2018-02-16 11:14:23 +01:00
Alexandre Alapetite
79f8b440d1 API /reader/api/0/stream/items/contents (#1774)
* API /reader/api/0/stream/items/contents

For FeedMe

* Fix continuation

* Continuation in stream/items/ids

* Fix multiple continuations

* Allow empty POST tokens

For FeedMe.
This token is not used by e.g. The Old Reader API.
There is the Authorization header anyway.
TODO: Check security consequences

* API compatibility FeedMe: add/remove feed

FeedMe uses GET for some parameters typically given by POST

* A bit of sanitization

* Links to FeedMe

* API favicons more robust when base_url is not set

* Changelog FeedMe
2018-02-08 20:11:05 +01:00
Alexis Degrugillier
951eb708e6 Fix shortcuts for view switching
I've introduced shortcuts to switch between view in #1755. They have been broken by #1714.
Then I've made an ugly fix in #1758.

This change revert all changes to have something better.

See #1757
2018-01-26 08:17:32 +01:00
Alexis Degrugillier
db959a1a44 Fix shortcuts triggering view switching 2018-01-02 19:49:38 +01:00
Alexis Degrugillier
8c2113f9e6 Add mute strategy configuration (#1750) 2018-01-01 20:34:06 +01:00
Alexis Degrugillier
e73fae1591 Add shortcuts to switch views (#1755) 2018-01-01 18:53:53 +01:00
Frans de Jonge
469d601bcb [doc] Editing for better style (#1736)
* Also removed references to Persona authentication.
* Changed code comment about Persona because it's for HTTP auth
  in general. See 3d876091e1
  and https://github.com/FreshRSS/FreshRSS/issues/358#issuecomment-31931484
2017-12-22 12:02:06 +01:00
Alexandre Alapetite
52d0988655 Use __DIR__ for relative include and require
For uniformity, and to avoid having PHP searching in include_path.
http://php.net/manual/function.include.php
https://github.com/FreshRSS/FreshRSS/pull/1715
https://github.com/FreshRSS/FreshRSS/pull/1711#issuecomment-350581350
2017-12-11 21:11:34 +01:00
Alexandre Alapetite
b1c317a253 Log rotation, use Minz_Log, new log constants
ADMIN_LOG, API_LOG, PSHB_LOG
2017-12-10 21:58:24 +01:00
Pavel Pletenev
ac73ba3acc Add more glyphs for opensans font (#1032)
* Add more glyphs for opensans font

* Update .htaccess to support woff2 file format

* Fixed browser support for new font face

* Fixed Origine theme css and .htaccess

* Deleted unneeded fonts

* Added stylefiles for OpenSans font

* Fixed all themes with new font css

* Avoid additional CSS file

* htaccess cache control public

* Font casing bug

* Remove TTF font

Too big, low need https://caniuse.com/#search=woff

* Changelog 1032

https://github.com/FreshRSS/FreshRSS/pull/1032
https://github.com/FreshRSS/FreshRSS/pull/1028
2017-12-02 19:01:29 +01:00
Alexandre Alapetite
07fa243bf2 Fix link encoding in API (#1686)
https://github.com/FreshRSS/FreshRSS/issues/1683
https://github.com/Alkarex/EasyRSS/issues/35
2017-11-11 12:21:41 +01:00
Alexis Degrugillier
afffbfce07 Add a Mastodon share (#1674)
See #1521
2017-11-04 21:19:51 +01:00
Alexis Degrugillier
ee834888cd Remove limitation on toggleContent (#1647)
Before, articles were repositioned only when the new and the old article were different. When they were the same, it was just closed.
It was frustrating with long articles, especially during reading.

Now, when an article is collapsed, it is repositionned no matter the collapsing method.

This should fix #1177
2017-09-30 08:25:07 +02:00
Alexis Degrugillier
47abdd051c Change layout for the share options on mobile (#1645)
* Change layout for the share options on mobile

Before, it was impossible to click on links to share on small screens.
Now, all dropdowns are opened at the bottom of the screen and stays there.

Linked to #1506

* Change rule for border-radius
2017-09-28 22:46:59 +02:00
Alexandre Alapetite
92a1bf3917 Update some HTTP links (doc, HTTPS) (#1641)
https://github.com/FreshRSS/FreshRSS/issues/1605
2017-09-26 22:20:25 +02:00
Alexandre Alapetite
ca7d1fddde Minor JS whitespace 2017-09-23 13:41:26 +02:00
Alexandre Alapetite
2fd5ab8c55 Fix global view CSRF
https://github.com/FreshRSS/FreshRSS/issues/1591
2017-09-23 13:34:57 +02:00
Frans de Jonge
4e174ed9dd [ci] Add Travis (#1619)
* [ci] Add Travis

* Exclude some libs

* Semi-auto whitespace fixes

* line length in SQLite

* Exclude tests from line length

* Feed.php line length

* Feed.php: get rid of unnecessary concat

* Feed.php: line length

* bootstrap.php: no newline at end of file

* Allow concatenating across multiple lines

* Add Travis badge

* do-install line length

* update-or-create-user line length

* cli/create-user line length

* tests/app/Models/SearchTest.php fix indentation

* tests/app/Models/UserQueryTest.php fix indentation

* tests/app/Models/CategoryTest.php fix indentation

* [fix] PHP 5.3 on precise

* cli/do-install no spaces

* cli/list-users line length

* cli/reconfigure line length

* empty catch statements

* api/index line length nonsense

* spaces before semicolon

* app/Models/EntryDAO bunch of indentation

* extra blank lines

* spaces before comma in function call

* testing tabwidth

* increase to 10

* comment out tabwidth line

* try older phpcs version 3.0.0RC4

* line length exception for app/install.php

* proper spaces

* stray spaces in i18n

* Minz/ModelPdo line length

* Minz whitespace

* greader line length

* greader elseif placement

* app/Models/Feed.php spacing in function argument

* ignore php 5.3

* app/Models/ConfigurationSetter.php stray whitespace

* EntryDAOSQLite line length

* I vote for higher max line length =P

* ignore SQL

* remove classname complaint

* line length/more legible SQL

* ignore line length nonsense

* greader line length

* feedController issues

* uppercase TRUE, FALSE, NULL

* revert

* importExportController lowercase null

* Share.php default value not necessary because ! is_array () a few lines down

* CategoryDAO constants should be UPPERCASE

* EntryDAO reduce line length

* contentious autofix

* Allow failures on all versions of PHP except 7.1 because reasons
2017-09-22 12:13:46 +02:00
Alexandre Alapetite
eb84d4f8ff Recalc sticky column on lazy img load
https://github.com/FreshRSS/FreshRSS/issues/1593
2017-08-20 10:21:08 +02:00
Alexandre Alapetite
3108b2729f Minor JS hints 2017-08-20 10:18:54 +02:00
Alexandre Alapetite
771d3b5ca3 Merge pull request #1589 from romibi/ft-dynamic-feedlist-padding
Make feedlist padding a bit dynamic
2017-08-19 17:05:19 +02:00
Alexandre Alapetite
46c31a75d7 Fix timestamp format with PostgreSQL for EasyRSS
https://github.com/Alkarex/EasyRSS/issues/31
2017-07-23 11:51:46 +02:00
Alexandre Alapetite
16b269f33d Merge pull request #1594 from sandfoxme/patch-1
Fix Illegal String Offset warning (PHP 7.1) in greader.php
2017-07-13 14:24:01 +02:00
Anton Smirnov
78ca4341d1 Use PHP <= 5.3 array syntax in greader.php fix 2017-07-13 14:34:01 +03:00
Anton Smirnov
93fa066298 Fix Illegal String Offset warning (PHP 7.1) in greader.php 2017-07-12 18:58:12 +03:00
romibi
d4cd72dd21 Make feedlist padding a bit dynamic 2017-06-21 13:35:35 +02:00
Alexandre Alapetite
8af80091c7 file_get_contents fix
PHP 7.1 https://github.com/FreshRSS/FreshRSS/issues/1584
2017-06-14 11:04:00 +02:00
Alexandre Alapetite
8a04454655 Merge pull request #1564 from aledeg/open-site-shortcut
Add support for a new shortcut in reader view
2017-06-03 12:02:27 +02:00
Alexis Degrugillier
c86ad2d660 Improve js comments 2017-06-03 07:23:01 +02:00
Alexis Degrugillier
5f942cc1c9 Add support for a new shortcut in reader view
Now you can open the original page in the reader view with the same shortcut you'll use in the normal view.
I've changed how we identify the link to make it more flexible.
The previous way was too restrictive since the selector used a really strict path to get the url.

There was another way to achieve the same thing without changing the selector.
It was quite ugly since some meaningless class would be added on the markup to match the selector query.

See #1400
2017-06-02 22:53:13 +02:00
Alexandre Alapetite
2b0c9100ea Merge pull request #1550 from mszkb/dev
fix font-sizes of input fields for exotic browsers
2017-05-28 02:23:33 +02:00
Alexandre Alapetite
d2f65e6986 font-size for input 2017-05-28 02:19:33 +02:00
Alexandre Alapetite
eeb5d6dd5e More uniform styling of A and BUTTON in drop-downs
https://github.com/FreshRSS/FreshRSS/issues/1556
2017-05-27 23:05:44 +02:00
mszkb
20281fb7eb fixed typo in css for font-size 2017-05-26 18:23:42 +02:00
mszkb
c7b79a6527 fix font-sizes of input fields for exotic browsers 2017-05-26 15:57:10 +02:00
Alexandre Alapetite
5208872481 sides_close_article: JS syntax 2017-05-26 13:08:00 +02:00
Alexandre Alapetite
e12f9d4a98 Merge remote-tracking branch 'FreshRSS/dev' into dev 2017-05-26 12:19:41 +02:00
Alexandre Alapetite
b848511574 Merge pull request #1541 from hoilc/simplified-chinese-translation
simplified chinese translation
2017-05-26 12:16:28 +02:00
hoilc
1828e0c27a add default simplified chinese font for Windows and MacOS 2017-05-24 11:55:05 +08:00
Paulius Šukys
e98b510cbb Merge branch 'master' into dev 2017-05-22 11:24:52 +02:00
Paulius Šukys
67dd80f842 Added additional configuration setting for #1530 . This includes default settings and translation entry for English 2017-05-22 09:33:55 +02:00
Alexandre Alapetite
af8960b8b3 Move default configuration files
https://github.com/FreshRSS/FreshRSS/issues/1531
2017-05-12 23:33:58 +02:00
Seokseong Jeon
0bc59ba140 Make actualizeFeed returns values consistent&safe 2017-05-05 17:18:16 +09:00
Alexandre Alapetite
44c9ae51c4 Rewriten Favicon library using cURL
Reduce the number of requests, more robust, many more cases working,
reduced code
2017-04-23 14:06:37 +02:00
Alexandre Alapetite
535aa35ba7 PSHB better unsubscribe
Cases when a user is deleted, or when a feed is deleted.
Removed random key do reduce the risk of subscribing several times to
the same PSHB feed.
2017-04-10 19:09:21 +02:00