mirror of
https://git.cloudron.io/cloudron/freshrss-app
synced 2025-09-16 10:19:15 +00:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e8690400c9 | ||
|
852944cb8f | ||
|
94ccfe149e | ||
|
01e3d7ad53 | ||
|
c89fca80bc | ||
|
3594901aee | ||
|
5bb5fae5c8 | ||
|
2bc2cf8292 | ||
|
8a318646c6 | ||
|
81724b280f |
28
CHANGELOG
28
CHANGELOG
@@ -47,3 +47,31 @@
|
||||
[1.1.0]
|
||||
* Update FreshRSS to 1.11.0
|
||||
|
||||
[1.1.1]
|
||||
* Update FreshRSS to to 1.11.1
|
||||
|
||||
[1.1.2]
|
||||
* Update FreshRSS to 1.11.2
|
||||
|
||||
[1.2.0]
|
||||
* Use latest base image
|
||||
|
||||
[1.3.0]
|
||||
* Update FreshRSS to 1.12.0
|
||||
* Features
|
||||
* Ability to add labels (custom tags) to articles #928
|
||||
* Handle article tags containing spaces, as well as comma-separated tags #2023
|
||||
* Handle authors containing spaces, as well as comma or semi-colon separated authors #2025
|
||||
* Searches by tag, author, etc. accept Unicode characters #2025
|
||||
* New option to disable cache for feeds with invalid HTTP caching #2052
|
||||
* UI
|
||||
* New theme Swage #2069
|
||||
* Click on authors to initiate a search by author #2025
|
||||
* Fix CSS for button alignments in older Chrome versions #2020
|
||||
* Security
|
||||
* Improved flow for password change (avoid error 403) #2056
|
||||
* Allow dot . in username (best to avoid, though) #2061
|
||||
* Performance
|
||||
* Remove some counterproductive preload / prefetch rules #2040
|
||||
* Improved fast flush (earlier transfer, fetching of resources, and rendering) #2045
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "RSS feed reader",
|
||||
"version": "1.1.0",
|
||||
"version": "1.3.0",
|
||||
"healthCheckPath": "/",
|
||||
"httpPort": 8000,
|
||||
"addons": {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
This app packages FreshRSS <upstream>1.11.0</upstream>.
|
||||
This app packages FreshRSS <upstream>1.12.0</upstream>.
|
||||
|
||||
FreshRSS is a self-hosted RSS feed aggregator such as Leed or Kriss Feed.
|
||||
|
||||
|
25
Dockerfile
25
Dockerfile
@@ -1,21 +1,14 @@
|
||||
FROM cloudron/base:0.10.0
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install php php-curl php-gmp php-intl php-mbstring php-xml php-zip \
|
||||
libapache2-mod-php mysql-client php-mysql
|
||||
|
||||
ENV EXTENSIONS_VERSION b63f55d6fdd8e93da846bb741c3fed12d50909be
|
||||
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
||||
|
||||
RUN mkdir -p /app/code
|
||||
WORKDIR /app/code
|
||||
|
||||
# contains fix for extensions_path (see #2)
|
||||
RUN curl -L https://github.com/FreshRSS/FreshRSS/archive/1.11.0.tar.gz | tar -zxvf - --strip-components=1
|
||||
RUN curl -L https://github.com/FreshRSS/FreshRSS/archive/1.12.0.tar.gz | tar -zxvf - --strip-components=1
|
||||
|
||||
RUN mv data data-orig && ln -s /app/data data
|
||||
|
||||
# official extensions
|
||||
RUN wget https://github.com/FreshRSS/Extensions/archive/${EXTENSIONS_VERSION}.tar.gz -O - | tar -xz --strip-components=1 -C /app/code/extensions && \
|
||||
RUN wget https://github.com/FreshRSS/Extensions/archive/2d0358e75961cbfcac7c2cbe09b098905ff67803.tar.gz -O - | tar -xz --strip-components=1 -C /app/code/extensions && \
|
||||
mv /app/code/extensions /app/code/extensions-orig && \
|
||||
ln -s /app/data/extensions /app/code/extensions
|
||||
|
||||
@@ -34,12 +27,12 @@ RUN rm -rf /var/lib/php \
|
||||
&& ln -s /run/php /var/lib/php \
|
||||
&& mkdir -p /run/php/session
|
||||
|
||||
RUN crudini --set /etc/php/7.0/apache2/php.ini PHP upload_max_filesize 64M && \
|
||||
crudini --set /etc/php/7.0/apache2/php.ini PHP post_max_size 64M && \
|
||||
crudini --set /etc/php/7.0/apache2/php.ini PHP memory_limit 64M && \
|
||||
crudini --set /etc/php/7.0/apache2/php.ini Session session.save_path /run/php/session && \
|
||||
crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_probability 1 && \
|
||||
crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_divisor 100
|
||||
RUN crudini --set /etc/php/7.2/apache2/php.ini PHP upload_max_filesize 64M && \
|
||||
crudini --set /etc/php/7.2/apache2/php.ini PHP post_max_size 64M && \
|
||||
crudini --set /etc/php/7.2/apache2/php.ini PHP memory_limit 64M && \
|
||||
crudini --set /etc/php/7.2/apache2/php.ini Session session.save_path /run/php/session && \
|
||||
crudini --set /etc/php/7.2/apache2/php.ini Session session.gc_probability 1 && \
|
||||
crudini --set /etc/php/7.2/apache2/php.ini Session session.gc_divisor 100
|
||||
|
||||
ADD start.sh /app/code/start.sh
|
||||
|
||||
|
118
test/test.js
118
test/test.js
@@ -45,79 +45,83 @@ describe('Application life cycle test', function () {
|
||||
var TEST_TIMEOUT = 10000;
|
||||
var app;
|
||||
|
||||
function exists(selector, callback) {
|
||||
return browser.wait(until.elementLocated(selector), TEST_TIMEOUT).then(function () {
|
||||
callback();
|
||||
});
|
||||
function exists(selector) {
|
||||
return browser.wait(until.elementLocated(selector), TEST_TIMEOUT);
|
||||
}
|
||||
|
||||
function visible(selector, callback) {
|
||||
exists(selector, function () {
|
||||
browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT).then(function () {
|
||||
callback();
|
||||
});
|
||||
return exists(selector).then(function () {
|
||||
return browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT);
|
||||
});
|
||||
}
|
||||
|
||||
function login(callback) {
|
||||
browser.manage().deleteAllCookies();
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
visible(by.id('loginButton'), function () {
|
||||
browser.findElement(by.id('username')).sendKeys(username);
|
||||
browser.findElement(by.id('passwordPlain')).sendKeys(password);
|
||||
browser.findElement(by.id('loginButton')).click();
|
||||
browser.wait(until.elementLocated(by.id('dropdown-configure')), TEST_TIMEOUT).then(function () { callback(); });
|
||||
browser.manage().deleteAllCookies().then(function () {
|
||||
return browser.get('https://' + app.fqdn);
|
||||
}).then(function () {
|
||||
return visible(by.id('loginButton'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('username')).sendKeys(username);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('passwordPlain')).sendKeys(password);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('loginButton')).click();
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.id('dropdown-configure')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function logout(callback) {
|
||||
var logout_btn = by.xpath('//ul[@class="dropdown-menu"]/li/a[@class="signout"]');
|
||||
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
visible(by.id('stream'), function () {
|
||||
browser.findElement(by.className('dropdown-toggle')).click();
|
||||
visible(logout_btn, function () {
|
||||
browser.findElement(logout_btn).click();
|
||||
|
||||
browser.wait(until.elementLocated(by.id('loginButton')), TEST_TIMEOUT).then(function () { callback(); });
|
||||
});
|
||||
browser.get('https://' + app.fqdn).then(function () {
|
||||
return visible(by.id('stream'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.className('dropdown-toggle')).click();
|
||||
}).then(function () {
|
||||
return visible(logout_btn);
|
||||
}).then(function () {
|
||||
return browser.findElement(logout_btn).click();
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.id('loginButton')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function addSubscription(callback) {
|
||||
var url = "https://cloudron.io/blog/rss.xml";
|
||||
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
visible(by.id('stream'), function () {
|
||||
browser.findElement(by.xpath('//a[@href=".?c=subscription"]')).click();
|
||||
visible(by.id('add_rss'), function () {
|
||||
browser.findElement(by.xpath('//input[@name="url_rss"]')).sendKeys(url);
|
||||
browser.findElement(by.xpath('//form[@id="add_rss"]/div/button[@type="submit"]')).click();
|
||||
visible(by.xpath('//div[@id="notification" and @class="notification good"]'), function() { callback(); });
|
||||
});
|
||||
browser.get(`https://${app.fqdn}/p/i/?c=subscription`).then(function () {
|
||||
return visible(by.xpath('//input[@name="url_rss"]'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//input[@name="url_rss"]')).sendKeys(url);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//form[@id="add_rss"]/div/button[@type="submit"]')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//div[@id="notification" and @class="notification good"]'));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function addUser(callback) {
|
||||
var test_username = 'test';
|
||||
var manage_users_btn = by.xpath('//a[@href=".?c=user&a=manage"]');
|
||||
|
||||
browser.get('https://' + app.fqdn);
|
||||
|
||||
visible(by.id('stream'), function () {
|
||||
browser.findElement(by.className('dropdown-toggle')).click();
|
||||
visible(manage_users_btn, function () {
|
||||
browser.findElement(manage_users_btn).click();
|
||||
visible(by.id('new_user_name'), function () {
|
||||
browser.findElement(by.id('new_user_name')).sendKeys(test_username);
|
||||
browser.findElement(by.id('new_user_passwordPlain')).sendKeys(password);
|
||||
browser.findElement(by.xpath('//form[@action=".?c=user&a=create"]/div/div/button[@type="submit"]')).click();
|
||||
visible(by.xpath('//div[@id="notification" and @class="notification good"]'), function() { callback(); });
|
||||
});
|
||||
});
|
||||
browser.get(`https://${app.fqdn}/p/i/?c=user&a=manage`).then(function () {
|
||||
return visible(by.id('new_user_name'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('new_user_name')).sendKeys(test_username);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('new_user_passwordPlain')).sendKeys(password);
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//button[text()="Create"]')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//div[@id="notification" and @class="notification good"]'));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -125,13 +129,17 @@ describe('Application life cycle test', function () {
|
||||
browser.get('https://' + app.fqdn + '/p/i/?c=auth').then(function () {
|
||||
return browser.findElement(by.id('api_enabled')).click();
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//form[@action=".?c=auth"]')).submit();
|
||||
}).then(callback);
|
||||
return browser.findElement(by.xpath('//button[text()="Submit"]')).submit();
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function checkApiConfiguration(callback) {
|
||||
browser.get('https://' + app.fqdn + '/p/api/greader.php/check%2Fcompatibility').then(function () {
|
||||
exists(by.xpath('//pre[text()="PASS"]'), callback);
|
||||
return exists(by.xpath('//pre[text()="PASS"]'));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -142,9 +150,11 @@ describe('Application life cycle test', function () {
|
||||
}
|
||||
|
||||
function subscriptionExists(callback) {
|
||||
browser.get('https://' + app.fqdn + '/p/i/?get=c_1');
|
||||
|
||||
visible(by.xpath('//a[text()="Cloudron.io"]'), callback);
|
||||
browser.get('https://' + app.fqdn + '/p/i/?get=c_1').then(function () {
|
||||
return visible(by.xpath('//a[text()="Cloudron.io"]'));
|
||||
}).then(function () {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function getStaticExtensionFile(callback) {
|
||||
|
Reference in New Issue
Block a user