Commit Graph

93 Commits

Author SHA1 Message Date
Alexandre Alapetite
295cb89af3 Fix PHP 5.5 compat for array const (#2360)
https://github.com/FreshRSS/FreshRSS/issues/2359
2019-04-07 21:39:48 +02:00
Alexandre Alapetite
d9e246ecf7 Shortcuts legacy (#2320)
Fix https://github.com/FreshRSS/FreshRSS/issues/2316
2019-04-02 00:08:51 +02:00
Patrick Crandol
ebb9ee0873 Edit cookie_duration from GUI (#2137)
* Use cookie_duration correctly

* WIP allow cookie_duration to be modified from GUI

* Allow cookie_duration to actually be updated

* Update view to properly display cookie_duration

* Add new strings in Translation Files

* Fix typo

* Fix trailing whitespace

* I18n: French translation

* I18n fr: Forgot todo
2018-11-18 19:34:41 +01:00
Alexandre Alapetite
8ee8a573f1 Custom labels (#2027)
* First draft of custom tags

https://github.com/FreshRSS/FreshRSS/issues/928
https://github.com/FreshRSS/FreshRSS/issues/1367

* SMALLINT to BIGINT for id_entry

And uppercase SQL types

* Fix layout for unreads

* Start UI menu

* Change menu order

* Clean database helpers

https://github.com/FreshRSS/FreshRSS/pull/2027#discussion_r217971535

* Travis rules do not understand PostgreSQL constants

Grrr

* Tag controller + UI

* Add column attributes to tags

* Use only favicon for now, for label

* Fix styling for different themes

* Constant for maximum InnoDB index length in Unicode

https://github.com/FreshRSS/FreshRSS/pull/2027#discussion_r219052200
(I would have personnally prefered keeping the readability of a real
value instead of a constant, in this case of many SQL fields)

* Use FreshRSS_Factory::createCategoryDao

* Add view of all articles containing any tag

* Fix search in tags

* Mark as read tags

* Partial auto-update unread tags

* More auto update tag unreads

* Add tag deletion

* Do not purge tagged articles

* Minor comment

* Fix SQLite and UI bug

* Google Reader API support for user tags

Add SQL check that tag names must be distinct from category names

* whitespace

* Add missing API for EasyRSS

* Compatibility SQLite

Problematic parentheses

* Add SQL DISTINCT for cases with multiple tags

* Fix for PostgreSQL

PostgreSQL needs some additional type hint to avoid "could not determine
data type of parameter $1"

http://www.postgresql-archive.org/Could-not-determine-data-type-of-parameter-1-tp2171092p2171094.html
2018-09-29 20:47:17 +02:00
Matt DeMoss
0936a6cdb2 Option to hide nav_entries (#1764)
* put nav_entries in a div so they can be hidden, add config option, no labels yet

* add English text for hide_nav_entries, choose better name

* Update conf.php

add comma to last item

* hide nav_entries by optionally not rendering in normal.phtml

* fix logic, remove containing div

* apply phpcbf to ConfigurationSetter.php

* Make navigation buttons options positive

And add TODOs for i18n, and add default config.
2018-02-19 15:36:18 +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
Alexandre Alapetite
f632a34626 CLI optimize database (#1663)
CLI optimize database https://github.com/FreshRSS/FreshRSS/issues/1583
And VACUUM in SQLite https://github.com/FreshRSS/FreshRSS/issues/918
Add VACUUM for PostgreSQL (Not tested yet)
2017-10-12 20:11:06 +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
cbb6c26db7 Fix share POST
https://github.com/FreshRSS/FreshRSS/issues/1289
2016-10-10 22:07:58 +02:00
Alexandre Alapetite
56ffc115d1 Do not mix POST and GET params
Avoid returning CSRF POST token for a GET
2016-08-13 19:10:32 +02:00
Marien Fressinaud
697817eebf Make auto-update server URL alterable
See https://github.com/FreshRSS/FreshRSS/issues/1019
2015-11-02 21:14:13 +01:00
Alexis Degrugillier
d396dd7152 Add instance name in system configuration page 2015-08-24 18:41:57 -04:00
Alexis Degrugillier
269c6b88c4 Add a system configuration page
It allows to modify system configuration from the interface. At the moment, only limits are modifiable. The user limit was removed from the user page and added here along with categories and feeds limits.
2015-08-22 09:33:58 -04:00
Alexandre Alapetite
0d0c6b7493 Moved updated/unread option from global to user
https://github.com/FreshRSS/FreshRSS/issues/798
2015-05-10 14:04:12 +02:00
Alexis Degrugillier
5b90e1f4a0 Introduce user queries objects
There is now an object to manipulate user queries. It allows to move logic to handle those from the view and the controller in the model.
Thus making the view and the controller easier to read.
I introduced a new interface to start using dependency injection. There is still some rough edges but we are moving in the right direction.
The new object is fully tested but it still need some improvements, for instance, it is still tied to the search object.
There might be a better way to do that.
2015-03-05 13:29:41 +01:00
Marien Fressinaud
eff804572f Fix setters on $user_conf
Old setters does not exist anymore, remove them.

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 21:54:46 +01:00
Marien Fressinaud
7cca47d1ab Change name of user configuration var in Context
- FreshRSS_Context::$conf is replaced by FreshRSS_Context::$user_conf
- Introduce FreshRSS_Context::$system_conf
- Remove FreshRSS_Configuration object

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-05 22:45:03 +01:00
Marien Fressinaud
fee1ae997a Fix i18n for conf, entry, error, feed Controllers 2014-12-11 19:02:05 +01:00
Alexandre Alapetite
2c50ed7dc1 Merge pull request #694 from FreshRSS/hide-article
Add a feature to hide articles when they are read
2014-11-16 18:10:55 +01:00
Marien Fressinaud
0b7af8f871 Fix bug on archiving page
Introduced by ee5bbe4826
2014-11-04 13:39:17 +01:00
Alexis Degrugillier
960f86ba20 Add a feature to hide articles when they are read
This is a new reading option to hide articles when they are read. The hidding process occurs when the article is left for an other article. This way, even when the article is marked as read on opening, it is hidden only while navigating to an other article.
I'm not really happy with the behavior when the "mark while scrolling" option is enabled. Please review.
It is missing the i18n since we're not supposed to push them before it exists on i18n.freshrss.org. Or maybe I misunderstood the process.

See #476
2014-11-02 10:05:26 -05:00
Marien Fressinaud
58deab37cd Fix Minz_Error::error() -> use default values 2014-10-30 19:57:08 +01:00
Marien Fressinaud
ee5bbe4826 Fix bug size with SQLite 2014-10-30 19:19:09 +01:00
Marien Fressinaud
8a6ad05eba Remove STATE_STRICT
See https://github.com/marienfressinaud/FreshRSS/issues/634
2014-10-22 18:33:46 +02:00
Marien Fressinaud
9551145200 Better view mode
- Seperate view mode from default state in conf
- Load read articles if no unread articles only if view is adaptive

See https://github.com/marienfressinaud/FreshRSS/issues/634
2014-10-22 18:21:36 +02:00
Marien Fressinaud
1a22a87fb1 Use FreshRSS_Context::$conf only
- Replace $this->view->conf in controllers
- Replace $this->conf in views
2014-10-20 18:45:22 +02:00
Marien Fressinaud
6009990935 Introduce FreshRSS_Auth::hasAccess('admin')
Replace Minz_Configuration::isAdmin($user). FreshRSS_Auth::hasAccess() could
be extended to others scopes later.

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-07 10:16:38 +02:00
Marien Fressinaud
79aa5beaf4 Refactor authentication system.
Big work, not finished. A lot of features have been removed.

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-06 23:29:20 +02:00
Marien Fressinaud
64d1026dd9 Move usersAction into usersController 2014-10-05 17:55:35 +02:00
Marien Fressinaud
1eef789306 Reorganize subscription management code
There is still a lot of work to do. Some links are broken.

See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-10-01 11:27:41 +02:00
Marien Fressinaud
fdb63fbbe6 Simplify configureController
Remove useless code for category configuration.

See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-10-01 10:19:38 +02:00
Marien Fressinaud
7481887db7 Load feed configuration on the same page
Need improvements

See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-10-01 10:06:04 +02:00
Marien Fressinaud
13fb1170c0 Move deletion of categories into new Controller
Fix i18n (occured -> occurred)

See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-09-30 16:31:38 +02:00
Marien Fressinaud
edb02c8fef Move creation of categories in a new Controller
Category names are 255 chars max
2014-09-30 15:02:56 +02:00
Marien Fressinaud
5a1baff9be Refactor removing query by get param
See https://github.com/marienfressinaud/FreshRSS/issues/625
2014-09-24 13:28:09 +02:00
Marien Fressinaud
666162ae56 Fix a bug when $query['state'] doesn't exist
Add a test in addQueryAction().
2014-09-24 12:34:44 +02:00
Marien Fressinaud
a80e12cbf7 Remove queries at the same time as categories
See https://github.com/marienfressinaud/FreshRSS/issues/625
2014-09-24 12:32:49 +02:00
Marien Fressinaud
0ea3a5a394 Coding style configureController.php 2014-09-24 11:49:32 +02:00
Alexis Degrugillier
c791d84ded Fix user queries
Before, when adding a user query where the state contains the strict filter, the label applied to the query was wrong.
Now, the strict filter is always removed so the label applied is correct.
2014-09-21 18:49:34 -04:00
Alexis Degrugillier
23e4577e02 Change param filter for user queries
Before, the filter was based on a blacklist so the user could add something and have unwanted behavior.
Now, the filter is based on a whilelist so the user can use only predetermined parameters.
2014-09-21 18:40:08 -04:00
Alexis Degrugillier
04403c5dfa Remove number values for shortcuts as they are used in the default configuration 2014-09-21 18:26:27 -04:00
Alexis Degrugillier
3753ea8fd6 Change parameter settings to be consistent through out the file 2014-09-21 18:23:25 -04:00
Alexis Degrugillier
f87dfbc528 Change notification code
Before, it was using the old way to display notifications to the user.
Now, it uses the encapsulated method to do that.
2014-09-21 18:09:10 -04:00
Alexis Degrugillier
5889ef35c8 Change todo align 2014-09-21 12:01:36 -04:00
Alexis Degrugillier
bad165b0c4 Add a todo 2014-09-21 11:28:46 -04:00
Alexis Degrugillier
cf01508fa5 Fix typo 2014-09-21 11:25:53 -04:00
Alexis Degrugillier
ea7f21ba7f Add some comments
It is a work in progress. I only did that for a single class so you can tell me if this is a good idea, if the content is missing something.
Any comments are welcome.
2014-09-21 11:21:51 -04:00
Marien Fressinaud
ae4ecd8e09 Coding style (user queries) 2014-09-19 15:44:33 +02:00
Marien Fressinaud
ba378791c2 Fix blank page for invalid user queries
Add a "deprecated" information

See https://github.com/marienfressinaud/FreshRSS/issues/625
2014-09-19 13:52:50 +02:00