Skip to content

Commit

Permalink
robo8x [chore] 10/8/2018, 3:05:40 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Oct 8, 2018
1 parent 79e42b5 commit 38f2fb9
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ UrlToolkit {

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.28-2
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.10.8-1

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

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



# 🤖 P3X Gitlist - An elegant, feature rich and modern git ui repository viewer v2018.9.28-2
# 🤖 P3X Gitlist - An elegant, feature rich and modern git ui repository viewer v2018.10.8-1

This is an open-source project. Star this repository, if you like it, or even donate! Thank you so much! :)

Expand Down Expand Up @@ -182,7 +182,7 @@ npm run watch

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.28-2
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.10.8-1

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

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 @@ -20,7 +20,7 @@ sudo apt upgrade -y

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.28-2
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.10.8-1

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

Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ require('codemirror/mode/yaml/yaml');

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.28-2
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.10.8-1

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

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-gitlist",
"version": "2018.10.8-0",
"version": "2018.10.8-2",
"corifeus": {
"prod-dir": "prod",
"postfix": "b2c12b19179d52db3488baed66a493c18ff1737f3dcfa5604783b86c7672078a",
Expand Down Expand Up @@ -59,6 +59,7 @@
"bootstrap": "^3.3.7",
"codemirror": "^5.40.2",
"highlight.js": "^9.12.0",
"is-string-int": "^1.0.1",
"jquery": "^3.3.1",
"jquery.redirect": "^1.1.4",
"js-cookie": "^2.2.0",
Expand All @@ -72,4 +73,4 @@
"snackbarjs": "^1.1.0",
"twemoji": "^11.0.1"
}
}
}
17 changes: 17 additions & 0 deletions src/browser/js/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@ $(() => {

if ($diffEditors.length > 0) {



for (let diffEditor of $diffEditors) {
const $editableHover = $('#' + diffEditor.dataset.diffId);
const $diffEditor = $(diffEditor);
$editableHover.on('click', () => {
const url = new URL(location)
$diffEditor.toggle()

$editableHover.toggleClass('active')
if (diffEditor.dataset.loaded) {
return;
}
const loopIndex = diffEditor.dataset.loopIndex;

//console.log(loopIndex)
diffEditor.dataset.loaded = true
url.searchParams.append('ajax', '1')
Expand Down Expand Up @@ -67,6 +71,19 @@ $(() => {
}
}).catch(window.gitlist.ajaxErrorHandler)
})

}

const isStringInt = require('is-string-int')
if(isStringInt(location.hash.substr(1))) {
const diff = parseInt(location.hash.substr(1))
const position = `p3x-gitlist-diff-${diff}`
const element = document.getElementById(position);
const diffButton = $(`#p3x-gitlist-diff-data-${diff}`)
setTimeout(() => {
window.gitlist.scrollIntoView(element)
diffButton.click()
}, 500)
}
}

Expand Down
2 changes: 1 addition & 1 deletion todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.9.28-2
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2018.10.8-1

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

Expand Down

0 comments on commit 38f2fb9

Please sign in to comment.