Skip to content

Commit

Permalink
robo8x [chore] 1/24/2020, 10:22:04 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Jan 24, 2020
1 parent 0ed3fb5 commit 4b15a9e
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 63 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://pages.corifeus.com/gitlist) Build v2020.4.103
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.105

[![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
4 changes: 2 additions & 2 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 v2020.4.103
# 🤖 P3X Gitlist - A decorated enhanced elegant, feature rich and modern private git ui repository viewer v2020.4.105



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

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.103
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.105

[![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/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://pages.corifeus.com/gitlist) Build v2020.4.103
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.105

[![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://pages.corifeus.com/gitlist) Build v2020.4.103
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.105

[![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://pages.corifeus.com/gitlist) Build v2020.4.103
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.105

[![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

## v2020.4.105
* CHORE: Updated NPM versions.
* BUGFIX: Network graph was not working (drag / scroll).

## v2020.4.103
* CHORE: Updated NPM versions.

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

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.103
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.105

[![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
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "p3x-gitlist",
"version": "2020.4.104",
"version": "2020.4.106",
"corifeus": {
"prod-dir": "prod",
"css-postfix": "06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28",
"css-postfix": "367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725",
"prefix": "p3x-",
"publish": false,
"type": "p3x",
Expand Down Expand Up @@ -45,7 +45,7 @@
"on-build-webpack": "^0.1.0",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-safe-parser": "^4.0.1",
"style-loader": "^1.1.2",
"style-loader": "^1.1.3",
"terser-webpack-plugin": "^2.3.2",
"url-loader": "^3.0.0",
"webpack": "^4.41.5",
Expand All @@ -59,8 +59,8 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^5.12.0",
"bootstrap": "^3.4.1",
"codemirror": "^5.50.2",
"highlight.js": "^9.17.1",
"codemirror": "^5.51.0",
"highlight.js": "^9.18.0",
"is-string-int": "^1.0.1",
"jquery": "^3.4.1",
"jquery.redirect": "^1.1.4",
Expand Down
25 changes: 20 additions & 5 deletions src/browser/js/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ const phpDate = require('php-date')
$.fn.dragScrollr = function () {
let lastX,
lastY,
hotZone = 200,
hotZone = 50,
container = this.first(),
domElement = container[0]; // so basically container without the jQuery stuff

function handleMouseDown(evt) {

container.on('mousemove', handleMouseMove);
container.on('mouseup', handleMouseUp);
container.on('mouseleave', handleMouseUp);
Expand All @@ -76,13 +77,16 @@ $.fn.dragScrollr = function () {
}

function handleMouseMove(evt) {

evt.preventDefault();

// save the last scroll position to figure out whether the scroll event has entered the hot zone
const lastScrollLeft = domElement.scrollLeft;
domElement.scrollLeft = domElement.scrollLeft + lastX - evt.pageX;
domElement.scrollTop = domElement.scrollTop + lastY - evt.pageY;

//console.log(lastScrollLeft, hotZone, domElement)
// WARNING: hotZone !!!!
if (lastScrollLeft > hotZone && domElement.scrollLeft <= hotZone) {
container.trigger('enterHotZone');
}
Expand Down Expand Up @@ -286,9 +290,19 @@ function commitDataRetriever(startPage, callback) {

that.updateIndicators = function () {
if (global.isLoading) {
$(indicatorElements).addClass('loading-commits');
$('body').append(`
<div class="p3x-gitlist-overlay">
<div>
<i class="fas fa-cog fa-spin fa-4x"></i>
</div>
<br/>
<div>
Hang on, retrieving the network graph...
</div>
</div>
`)
} else {
$(indicatorElements).removeClass('loading-commits');
$('.p3x-gitlist-overlay').remove()
}
};

Expand Down Expand Up @@ -592,9 +606,10 @@ window.gitlist.networkRedraw = () => {
// fixup parent's scroll position

try {
paper.canvas.parentNode.scrollLeft = paper.canvas.parentNode.scrollLeft + deltaX;
const parent = document.getElementsByClassName('network-graph')[0]
parent.scrollLeft = parent.scrollLeft + deltaX;
} catch (e) {
console.warn(e)
console.error(e)
}

// now fixup the x positions of existing circles and lines
Expand Down
36 changes: 18 additions & 18 deletions src/browser/js/themes.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

const themes = {
"bootstrap-default": "prod/css/bootstrap-default.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-solar": "prod/css/bootstrap-solar.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-cerulean": "prod/css/bootstrap-cerulean.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-cosmo": "prod/css/bootstrap-cosmo.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-cyborg": "prod/css/bootstrap-cyborg.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-darkly": "prod/css/bootstrap-darkly.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-flatly": "prod/css/bootstrap-flatly.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-journal": "prod/css/bootstrap-journal.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-lumen": "prod/css/bootstrap-lumen.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-paper": "prod/css/bootstrap-paper.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-readable": "prod/css/bootstrap-readable.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-sandstone": "prod/css/bootstrap-sandstone.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-simplex": "prod/css/bootstrap-simplex.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-slate": "prod/css/bootstrap-slate.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-spacelab": "prod/css/bootstrap-spacelab.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-superhero": "prod/css/bootstrap-superhero.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-united": "prod/css/bootstrap-united.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css",
"bootstrap-yeti": "prod/css/bootstrap-yeti.06a6aa56e6059d4a23001b44540767b6b87d4ad21af5bc9ba3885b5f309ceb28.css"
"bootstrap-default": "prod/css/bootstrap-default.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-solar": "prod/css/bootstrap-solar.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-cerulean": "prod/css/bootstrap-cerulean.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-cosmo": "prod/css/bootstrap-cosmo.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-cyborg": "prod/css/bootstrap-cyborg.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-darkly": "prod/css/bootstrap-darkly.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-flatly": "prod/css/bootstrap-flatly.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-journal": "prod/css/bootstrap-journal.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-lumen": "prod/css/bootstrap-lumen.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-paper": "prod/css/bootstrap-paper.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-readable": "prod/css/bootstrap-readable.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-sandstone": "prod/css/bootstrap-sandstone.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-simplex": "prod/css/bootstrap-simplex.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-slate": "prod/css/bootstrap-slate.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-spacelab": "prod/css/bootstrap-spacelab.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-superhero": "prod/css/bootstrap-superhero.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-united": "prod/css/bootstrap-united.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css",
"bootstrap-yeti": "prod/css/bootstrap-yeti.367d8f15ce37630f55021bb649494b1fec485e51d5991b8296ae009a7d03a725.css"
};
module.exports = themes;
27 changes: 0 additions & 27 deletions src/browser/less/network.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,6 @@
position: relative;
overflow: hidden;

&.loading-commits {

&:before {
content: "";
display: block;
height: 100px;
width: 200px;
box-sizing: border-box;
padding: 10px;
font-weight: bold;
position: absolute;

left: 50%;
top: 50%;
margin-left: -100px;
margin-top: -50px;

z-index: 2000;
}

.network-header .meta:after {
content: " - Loading";
}
}

.network-header {
}

pre {
margin: 0;
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://pages.corifeus.com/gitlist) Build v2020.4.103
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2020.4.105

[![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 4b15a9e

Please sign in to comment.