Skip to content

Commit

Permalink
p3x-robot sunday release 2018-5-21 22:40:42
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed May 21, 2018
1 parent 3802dbb commit ec74e1f
Show file tree
Hide file tree
Showing 19 changed files with 192 additions and 95 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 v2.7.6-745
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.7.9-749

[![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 @@ -4,7 +4,7 @@



# 🤖 P3X Gitlist v2.7.6-745
# 🤖 P3X Gitlist v2.7.9-749

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

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

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.7.6-745
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.7.9-749

[![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 v2.7.6-745
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.7.9-749

[![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 @@ -139,7 +139,7 @@ require('codemirror/mode/yaml/yaml');

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.7.6-745
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.7.9-749

[![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 composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"symfony/twig-bridge": ">=4",
"twig/twig": ">=2",
"silex/silex": ">=2",
"patrikx3/gitter": "^2.0"
"patrikx3/gitter": "^2.1"
},
"require-dev": {
"symfony/browser-kit": ">=4",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-gitlist",
"version": "2.7.6-745",
"version": "2.7.9-749",
"corifeus": {
"postfix": "",
"prefix": "p3x-",
Expand Down
24 changes: 5 additions & 19 deletions public/js/commit.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
$(() => {

const diffEditors = $('.p3x-gitlist-commit-diff');
const diffEditors = $('.p3x-gitlist-diff-container');

let deferScroll;
if (diffEditors) {
for (let diffEditor of diffEditors) {
const $editableHover = $('#' + diffEditor.dataset.diffId);
const editableHover = $editableHover.get(0);
$editableHover.one('click', () => {
clearTimeout(deferScroll)
setTimeout(() => {
window.gitlist.scrollIntoView(document.getElementById(diffEditor.dataset.diffRef))
window.gitlist.pushHash(`#${diffEditor.dataset.diffRef}`)
//console.log(diffEditor)
$(diffEditor).show();
}, 0)
$editableHover.find('.panel-body').html('<i class="fas fa-cog fa-spin"></i> Loading the diff ...')
const value = JSON.parse(diffEditor.innerText).toString()
diffEditor.remove();
const editor = CodeMirror(function (node) {
editableHover.parentNode.replaceChild(node, editableHover);
}, {
styleActiveLine: true,
styleSelectedText: true,
value: value,
lineNumbers: false,
matchBrackets: true,
lineWrapping: false,
readOnly: true,
mode: 'text/x-diff',
theme: window.gitlist.getActualThemeCodemirror(),
});
window.gitlist.diffEditors.push(editor)
$editableHover.hide();
})
}
}
Expand Down
18 changes: 9 additions & 9 deletions public/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ const Cookies = require('js-cookie')

const scrollIntoViewOptions = {
behavior: "instant",
block: "start",
inline: "start"
// block: "start",
// inline: "start"
}
const navbarHeight = 80;
const scrollIntoView = (el) => {
el.scrollIntoView(scrollIntoViewOptions)
/*
if ((window.innerHeight + window.scrollY) <= document.body.offsetHeight - navbarHeight ) {
window.scrollBy(0,-navbarHeight )
window.scrollBy(0, -navbarHeight )
}
*/
}

window.gitlist.scrollIntoView = scrollIntoView;
Expand Down Expand Up @@ -100,14 +102,12 @@ window.gitlist.setTheme = () => {
if (gitlist.viewer !== undefined) {
gitlist.viewer.setOption("theme", window.gitlist.codemirrorTheme.dark);
}
gitlist.diffEditors.forEach(editor => editor.setOption('theme', window.gitlist.codemirrorTheme.dark ) )
} else {
$body.addClass('p3x-gitlist-light')
$body.removeClass('p3x-gitlist-dark')
if (gitlist.viewer !== undefined) {
gitlist.viewer.setOption("theme", window.gitlist.codemirrorTheme.light);
}
gitlist.diffEditors.forEach(editor => editor.setOption('theme', window.gitlist.codemirrorTheme.light ) )
}
window.gitlist.networkRedraw();
window.gitlist.treegraph();
Expand All @@ -118,7 +118,6 @@ window.gitlist.setTheme = () => {
}, 250)
// }
}

const pushHash = (hash) => {
if(history.pushState) {
const pushState = location.pathname + hash;
Expand All @@ -129,16 +128,17 @@ const pushHash = (hash) => {
}

}

window.gitlist.pushHash = pushHash;

global.gitlist.scrollHash = function(element, event) {
const url = new URL(element.href)
const id = url.hash.substring(1)
const elfind = document.getElementById(id + '-parent')
if (elfind === null) {
const elfind2 = document.getElementById(id)
if (elfind === null && elfind2 === null) {
return true;
}
scrollIntoView(elfind);
scrollIntoView(elfind || elfind2);

if (event !== undefined) {
event.preventDefault()
Expand Down
24 changes: 11 additions & 13 deletions public/js/theme-switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ $(function () {
return;
}

// console.log('p3x-gitlist themer swtich')

themesheet.attr('href', href);
gitlist.setTheme()
}

clearTimeout(deferredSwitchTheme)
deferredSwitchTheme = setTimeout(() => {
$('body').prepend(`
<div class="p3x-gitlist-overlay">
<div>
Expand All @@ -85,11 +77,17 @@ $(function () {
</div>
</div>
`)
clearTimeout(deferredSwitchTheme)
deferredSwitchTheme = setTimeout(() => {
generateNewTheme()
}, 250)
}, 250);

// console.log('p3x-gitlist themer swtich')

themesheet.attr('href', href);
gitlist.setTheme()
}

clearTimeout(deferredSwitchTheme)
deferredSwitchTheme = setTimeout(() => {
generateNewTheme()
}, 250)

});
});
36 changes: 18 additions & 18 deletions public/js/themes.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

const themes = {
"bootstrap-default": "generated/css/bootstrap-default.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-solar": "generated/css/bootstrap-solar.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-cerulean": "generated/css/bootstrap-cerulean.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-cosmo": "generated/css/bootstrap-cosmo.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-cyborg": "generated/css/bootstrap-cyborg.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-darkly": "generated/css/bootstrap-darkly.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-flatly": "generated/css/bootstrap-flatly.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-journal": "generated/css/bootstrap-journal.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-lumen": "generated/css/bootstrap-lumen.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-paper": "generated/css/bootstrap-paper.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-readable": "generated/css/bootstrap-readable.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-sandstone": "generated/css/bootstrap-sandstone.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-simplex": "generated/css/bootstrap-simplex.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-slate": "generated/css/bootstrap-slate.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-spacelab": "generated/css/bootstrap-spacelab.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-superhero": "generated/css/bootstrap-superhero.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-united": "generated/css/bootstrap-united.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css",
"bootstrap-yeti": "generated/css/bootstrap-yeti.70d464b5072e216915595192980aeb66414879b74b8abf06c30347c6ce498380.css"
"bootstrap-default": "generated/css/bootstrap-default.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-solar": "generated/css/bootstrap-solar.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-cerulean": "generated/css/bootstrap-cerulean.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-cosmo": "generated/css/bootstrap-cosmo.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-cyborg": "generated/css/bootstrap-cyborg.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-darkly": "generated/css/bootstrap-darkly.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-flatly": "generated/css/bootstrap-flatly.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-journal": "generated/css/bootstrap-journal.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-lumen": "generated/css/bootstrap-lumen.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-paper": "generated/css/bootstrap-paper.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-readable": "generated/css/bootstrap-readable.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-sandstone": "generated/css/bootstrap-sandstone.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-simplex": "generated/css/bootstrap-simplex.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-slate": "generated/css/bootstrap-slate.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-spacelab": "generated/css/bootstrap-spacelab.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-superhero": "generated/css/bootstrap-superhero.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-united": "generated/css/bootstrap-united.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css",
"bootstrap-yeti": "generated/css/bootstrap-yeti.0cb44d6d8514c81191a3e7056a7e51afcf11e0bde96495e59da4cb1dd343f1c8.css"
};
module.exports = themes;
64 changes: 64 additions & 0 deletions public/less/commit.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.p3x-gitlist-diff-container {
width: 100%;
display: block;

a, a:hover {
text-decoration: none !important;
}

.p3x-gitlist-diff {

border: 1px solid @navbar-default-border;
max-width: 100%;
min-width: 100%;
overflow-x: auto;
pre {
background-color: @body-bg;
color: @text-color;
margin: 0;
padding: 0 0 0 6px;
border-radius: 0;
overflow: hidden;
border: 1px solid transparent;
font-family: monospace;

&:hover {
// filter: brightness(0.9);
}
}
table {
}
table td {
padding: 0;
}
.new {
background-color: @alert-success-bg;
color: @alert-success-text;
}
.old {
background-color: @alert-danger-bg;
color: @alert-danger-text;
}
.chunk {
background-color: @alert-info-bg;
color: @alert-info-text;
}
.lineNo {
// background-color: @navbar-default-bg !important;
// color: @navbar-default-color !important;
padding: 0 6px;
text-align: right;
border-right: 1px solid @navbar-default-border !important;
font-family: monospace;
}
.lineNo a {
color: @navbar-default-color !important;
}
}

.image-blob {
padding: 10px;
max-width: 100%;
}
}

17 changes: 10 additions & 7 deletions public/less/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,18 @@
}
}

code, pre {
overflow-x: auto;
//white-space:pre-wrap;
font-family: monospace;
}

.p3x-gitlist-dark {
#snackbar-container > div {
border: 1px solid @navbar-default-border;
}

code {
overflow-x: auto;
white-space:pre-wrap;
}

code.p3x-gitlist-code {
code.p3x-gitlist-code, pre.p3x-gitlist-code {
background-color: lighten(@navbar-inverse-bg, 5%);
color: @navbar-inverse-color;
border-color: @navbar-inverse-border;
Expand Down Expand Up @@ -107,4 +108,6 @@ img.emoji {
@import "browser";
@import "overlay";
@import "search";
@import "codemirror";
@import "codemirror";
@import "commit";
@import "tree";
5 changes: 5 additions & 0 deletions public/less/tree.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#p3x-gitlist-tree-table {
a {
text-decoration: none !important;
}
}
Loading

0 comments on commit ec74e1f

Please sign in to comment.