1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-05-11 04:34:06 +02:00
Nextcloud-News/js
Tucker McKnight 5ba6f04bae Fix incorrect article sorting
Currently, an article with an ID of 1000 will show up
earlier than one with ID = 900, because the IDs are being treated
as strings and compared alphabetically. (1 comes before 9, and
the comparison stops there.)

We need to parse them as integers to ensure that 900 is less than
1000.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-02-22 19:44:33 +01:00
..
admin Fix UpdateInteval not being saved to config 2020-09-02 08:31:10 +02:00
app Always show the unread articles. 2020-04-23 12:37:24 +02:00
controller Fix incorrect article sorting 2021-02-22 19:44:33 +01:00
directive fix search 2019-03-15 09:29:37 +01:00
filter Adjust copyright header 2016-07-23 21:32:42 +02:00
gui New layout fix, scrolling and keyboard shortcuts fixes 2018-08-03 16:25:16 +02:00
plugin version bump 2015-01-26 10:50:37 +01:00
service Cleanup JS and prolong error notification 2019-03-05 11:35:14 +01:00
tests Fix incorrect article sorting 2021-02-22 19:44:33 +01:00
.jshintignore Remove bower, install everything using npm () 2017-06-18 12:19:38 +02:00
.jshintrc Cleanup JS and prolong error notification 2019-03-05 11:35:14 +01:00
gulpfile.js Bump versions and remove outdated file () 2019-12-25 07:01:54 +01:00
karma.conf.js switch to actions for frontend tests and remove travis 2020-12-09 19:53:35 +01:00
package-lock.json Bump karma from 6.1.0 to 6.1.1 in /js 2021-02-15 08:25:37 +01:00
package.json Bump karma from 6.1.0 to 6.1.1 in /js 2021-02-15 08:25:37 +01:00
protractor.conf.js Adjust copyright header 2016-07-23 21:32:42 +02:00
README.md Bump versions and remove outdated file () 2019-12-25 07:01:54 +01:00

JavaScript Development

JavaScript is built and minified using gulp.

Therefore you need to install Node.js 6+ and npm. Then use npm to install gulp-cli:

sudo npm -g install gulp-cli

Then install the local dependencies by running:

npm install

Tasks

The following tasks are available:

  • Build the JavaScript:

      gulp
    
  • Watch for changes and build JavaScript:

      gulp watch
    
  • Run JavaScript unit tests:

      gulp karma
    
  • Watch for changes and run JavaScript unit tests:

      gulp watch-karma