From 062218f87179a6fad7a148e8b68cb66f7bec90f0 Mon Sep 17 00:00:00 2001 From: patrikx3 Date: Thu, 20 Sep 2018 10:53:09 +0200 Subject: [PATCH] robo8x [chore] 9/20/2018, 10:53:09 AM --- INSTALL.md | 2 +- README.md | 6 +++--- artifacts/php-7.2-ubuntu.md | 2 +- changelog.md | 5 ++++- composer.lock | 24 +++++++++++++---------- gitlist.iml | 1 + package.json | 2 +- src/GitList/Controller/MainController.php | 7 +++++-- src/Gitter/Repository.php | 2 +- todo.md | 2 +- 10 files changed, 32 insertions(+), 21 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index c30e101d..d949b6de 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -116,7 +116,7 @@ UrlToolkit { --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.16-2 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.20-0 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/README.md b/README.md index 76f23a25..cc4fcf1a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ -# 🤖 P3X Gitlist v2018.9.16-2 +# 🤖 P3X Gitlist v2018.9.20-0 This is an open-source project. Star this repository, if you like it, or even donate! Thank you so much! :) @@ -117,7 +117,7 @@ https://github.com/klaussilveira/gitlist #### Gitlist https://github.com/klaussilveira/gitlist/commits/master -Jun 27, 2018 +Sep 4, 2018 #### Gitter https://github.com/klaussilveira/gitter/commits/master @@ -182,7 +182,7 @@ npm run watch --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.16-2 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.20-0 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/artifacts/php-7.2-ubuntu.md b/artifacts/php-7.2-ubuntu.md index 07fd31fc..e49c94e4 100644 --- a/artifacts/php-7.2-ubuntu.md +++ b/artifacts/php-7.2-ubuntu.md @@ -20,7 +20,7 @@ sudo apt upgrade -y --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.16-2 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.20-0 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/changelog.md b/changelog.md index cf638f81..da7e597b 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,9 @@ [//]: #@corifeus-header:end +## 2018.9.20-0 +* Sort the repo list by last updated + ## v2.12 * Treegraph is using markdown @@ -175,7 +178,7 @@ require('codemirror/mode/yaml/yaml'); --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.16-2 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.20-0 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/composer.lock b/composer.lock index 186d9d23..8c24de5d 100644 --- a/composer.lock +++ b/composer.lock @@ -399,6 +399,7 @@ "keywords": [ "microframework" ], + "abandoned": "symfony/flex", "time": "2018-04-20T05:17:01+00:00" }, { @@ -1757,21 +1758,24 @@ }, { "name": "phpunit/php-file-iterator", - "version": "2.0.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cecbc684605bb0cc288828eb5d65d93d5c676d3c" + "reference": "050bedf145a257b1ff02746c31894800e5122946" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cecbc684605bb0cc288828eb5d65d93d5c676d3c", - "reference": "cecbc684605bb0cc288828eb5d65d93d5c676d3c", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946", + "reference": "050bedf145a257b1ff02746c31894800e5122946", "shasum": "" }, "require": { "php": "^7.1" }, + "require-dev": { + "phpunit/phpunit": "^7.1" + }, "type": "library", "extra": { "branch-alias": { @@ -1800,7 +1804,7 @@ "filesystem", "iterator" ], - "time": "2018-06-11T11:44:00+00:00" + "time": "2018-09-13T20:33:42+00:00" }, { "name": "phpunit/php-text-template", @@ -1943,16 +1947,16 @@ }, { "name": "phpunit/phpunit", - "version": "7.3.3", + "version": "7.3.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "1bd5629cccfb2c0a9ef5474b4ff772349e1ec898" + "reference": "7b331efabbb628c518c408fdfcaf571156775de2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1bd5629cccfb2c0a9ef5474b4ff772349e1ec898", - "reference": "1bd5629cccfb2c0a9ef5474b4ff772349e1ec898", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7b331efabbb628c518c408fdfcaf571156775de2", + "reference": "7b331efabbb628c518c408fdfcaf571156775de2", "shasum": "" }, "require": { @@ -2023,7 +2027,7 @@ "testing", "xunit" ], - "time": "2018-09-01T15:49:55+00:00" + "time": "2018-09-08T15:14:29+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", diff --git a/gitlist.iml b/gitlist.iml index 8a66053c..1b143115 100644 --- a/gitlist.iml +++ b/gitlist.iml @@ -3,6 +3,7 @@ + diff --git a/package.json b/package.json index cea04b45..3419f4fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p3x-gitlist", - "version": "2018.9.16-3", + "version": "2018.9.20-1", "corifeus": { "prod-dir": "prod", "postfix": "b2c12b19179d52db3488baed66a493c18ff1737f3dcfa5604783b86c7672078a", diff --git a/src/GitList/Controller/MainController.php b/src/GitList/Controller/MainController.php index 2599d141..8114c753 100644 --- a/src/GitList/Controller/MainController.php +++ b/src/GitList/Controller/MainController.php @@ -47,8 +47,10 @@ public function connect(Application $app) $branch = trim($branchArray[1]); } $repositories[$repo['name']]['time'] = $output[6]; + $repositories[$repo['name']]['timestamp'] = strtotime($output[6]); $repositories[$repo['name']]['user'] = $output[7]; $repositories[$repo['name']]['branch'] = $branch; + $repositories[$repo['name']]['key'] = $repo['name']; /* $graphItems[] = array( @@ -66,8 +68,9 @@ public function connect(Application $app) } } - // print_r($repositories); - + uksort($repositories, function($a, $b) use ($repositories) { + return $repositories[$a]['timestamp'] < $repositories[$b]['timestamp'] ? 1 : -1; + }); return $app['twig']->render('index.twig', array( 'repositories' => $repositories, diff --git a/src/Gitter/Repository.php b/src/Gitter/Repository.php index 8b9d5579..17f1b600 100644 --- a/src/Gitter/Repository.php +++ b/src/Gitter/Repository.php @@ -802,7 +802,7 @@ public function getCommitsLogPatch($file) . '%ct' . '' . '' - . "\" $file" + . "\" -- $file" ); $patch_collection = []; diff --git a/todo.md b/todo.md index 15361bea..340ff086 100644 --- a/todo.md +++ b/todo.md @@ -32,7 +32,7 @@ --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.16-2 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.20-0 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact)