Skip to content

Commit

Permalink
r0b08x [chore] 9/7/2021, 1:47:34 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Sep 7, 2021
1 parent 36a211c commit 3daa0b5
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 17 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.141
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.143

[![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) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@



# 🤖 P3X Gitlist - A decorated enhanced elegant, feature rich and modern private git ui repository viewer v2021.10.141
# 🤖 P3X Gitlist - A decorated enhanced elegant, feature rich and modern private git ui repository viewer v2021.10.143



Expand Down Expand Up @@ -128,11 +128,11 @@ https://github.com/klaussilveira/gitlist

#### Gitlist
https://github.com/klaussilveira/gitlist/commits/master
May 16, 2020
Sept 7, 2021

#### Gitter
https://github.com/klaussilveira/gitter/commits/master
May 16, 2020
Sept 7, 2021

# URL links

Expand Down Expand Up @@ -167,7 +167,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.141
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.143

[![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) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
3 changes: 2 additions & 1 deletion artifacts/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repositories[] = '../git-test' ; Path to your repositories
; You can hide repositories from GitList, just copy this for each repository you want to hide
; hidden[] = '/home/git/repositories/BetaTest'

strip_dot_git = false ; Remove usual bare repo .git extension from displayed name
[app]
debug = false
cache = false
Expand Down Expand Up @@ -75,4 +76,4 @@ format = 'Y.m.d. H:i:s'
; custom avatar service
[avatar]
; url = '//gravatar.com/avatar/'
; query[] = 'd=identicon'
; query[] = 'd=identicon'
3 changes: 2 additions & 1 deletion artifacts/config.windows.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repositories[] = 'C:\Users\patrikx3\Projects\patrikx3\gitlist-workspace\gitlist\
; You can hide repositories from GitList, just copy this for each repository you want to hide
; hidden[] = '/home/git/repositories/BetaTest'

strip_dot_git = false ; Remove usual bare repo .git extension from displayed name
[app]
debug = false
cache = false
Expand Down Expand Up @@ -76,4 +77,4 @@ format = 'Y.m.d. H:i:s'
; custom avatar service
[avatar]
; url = '//gravatar.com/avatar/'
; query[] = 'd=identicon'
; query[] = 'd=identicon'
2 changes: 1 addition & 1 deletion artifacts/php-7.2-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.141
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.143

[![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) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/screenshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.141
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.143

[![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) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion change-break.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.141
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.143

[![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) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
[//]: #@corifeus-header:end

## v2021.10.143
* FEATURE: Add option to remove .git extension from repo names
* BASED ON: https://github.com/klaussilveira/gitlist/commit/434521a4e762e72a9d69d8756ee2d1279134c8af

## v2021.4.102
* CHORE: Update deps.

Expand Down Expand Up @@ -409,7 +413,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.141
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.143

[![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) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 2 additions & 0 deletions config.docker.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ repositories[] = '/var/git/' ; Path to your repositories
; You can hide repositories from GitList, just copy this for each repository you want to hide
; hidden[] = '/home/git/repositories/BetaTest'

strip_dot_git = false ; Remove usual bare repo .git extension from displayed name

[app]
title = P3X GitList
debug = false
Expand Down
1 change: 1 addition & 0 deletions config.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repositories[] = '/var/git/' ; Path to your repositories
; You can hide repositories from GitList, just copy this for each repository you want to hide
; hidden[] = '/home/git/repositories/BetaTest'

strip_dot_git = false ; Remove usual bare repo .git extension from displayed name
[app]
title = P3X GitList
debug = false
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-gitlist",
"version": "2021.10.142",
"version": "2021.10.144",
"corifeus": {
"prod-dir": "prod",
"css-postfix": "2603b0fd5c87d6a5f8882dd33db2c21a9a0a217acb2d048e218a986a0368c20f",
Expand Down Expand Up @@ -31,7 +31,7 @@
"bootswatch": "^3.4.1",
"concurrently": "^6.2.1",
"corifeus-builder": "^2021.10.105",
"corifeus-utils": "^2021.10.105",
"corifeus-utils": "^2021.10.107",
"css-loader": "^6.2.0",
"css-minimizer-webpack-plugin": "^3.0.2",
"fs-extra": "^10.0.0",
Expand All @@ -47,7 +47,7 @@
"style-loader": "^3.2.1",
"terser-webpack-plugin": "^5.2.3",
"url-loader": "^4.1.1",
"webpack": "^5.51.2",
"webpack": "^5.52.0",
"webpack-cli": "^4.8.0",
"webpack-remove-debug": "^0.1.0",
"worker-loader": "^3.0.8"
Expand Down
1 change: 1 addition & 0 deletions src/GitList/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function __construct(Config $config, $root = null)
$config->get('git', 'hidden') : array(),
'git.default_branch' => $config->get('git', 'default_branch') ?
$config->get('git', 'default_branch') : 'master',
'git.strip_dot_git' => $config->get('git', 'strip_dot_git')
));

$this->register(new ViewUtilServiceProvider());
Expand Down
1 change: 1 addition & 0 deletions src/GitList/Provider/GitServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function register(Container $app)
$options['projects'] = $app['git.projects'];
$options['ini.file'] = $app['ini.file'];
$options['default_branch'] = $app['git.default_branch'];
$options['strip_dot_git'] = $app['git.strip_dot_git'];

return new Client($options);
};
Expand Down
9 changes: 7 additions & 2 deletions src/Gitter/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Client
protected $hidden;
protected $projects;
protected $path;

protected $stripDotGit;

public function __construct($options = null)
{
Expand All @@ -29,6 +29,7 @@ public function __construct($options = null)
$this->setDefaultBranch($options['default_branch']);
$this->setHidden($options['hidden']);
$this->setProjects($options['projects'] ?? array());
$this->stripDotGit = $options['strip_dot_git'];
$path = $options['path'];
}

Expand Down Expand Up @@ -225,7 +226,11 @@ private function recurseDirectory($path, $appendPath = '')
$description = null;
}

$repoName = $appendPath . $file->getFilename();
if (($file->getExtension() == 'git') and $this->stripDotGit) {
$repoName = $appendPath . pathinfo($file->getFilename(), PATHINFO_FILENAME);
} else {
$repoName = $appendPath . $file->getFilename();
}

if (is_array($this->getProjects()) && !in_array($repoName, $this->getProjects())) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.141
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2021.10.143

[![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) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down

0 comments on commit 3daa0b5

Please sign in to comment.