Skip to content

Commit

Permalink
p3x-robot sunday release 7/8/2018, 7:50:07 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Jul 8, 2018
1 parent 8bdb839 commit b32e4cf
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 49 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.9.4-886
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.9.6-887

[![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.9.4-886
# 🤖 P3X Gitlist v2.9.6-887

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

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

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.9.4-886
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.9.6-887

[![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.9.4-886
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.9.6-887

[![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.9.4-886
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.9.6-887

[![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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-gitlist",
"version": "2.9.5-886",
"version": "2.9.7-887",
"corifeus": {
"prod-dir": "prod",
"postfix": "2607a7cb45c1136298a2a2ccb0a3d49ec147c7dab987b6dd4ec124a716e92c92",
Expand Down
93 changes: 51 additions & 42 deletions src/browser/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,58 +108,67 @@ window.gitlist.setTheme = () => {
for(let diffButton of diffButtons ) {
diffButton.click();
}
if (diffButtons.length > 0) {
$.snackbar({
content: `We hid the shown diffs, to make the theme switching faster.`,
timeout: window.gitlist.snapckbarLongTimeout,
});
window.scrollTo(0, 0);
}

// console.log('p3x-gitlist switching theme')
currentTheme = theme;
const switchThemeActually = () => {
currentTheme = theme;

/*
const themeBlameCodeMirror = (options) => {
const { theme } = options
for(let cm of window.gitlist.blameCodeMirror) {
cm.setOption("theme", theme);
/*
const themeBlameCodeMirror = (options) => {
const { theme } = options
for(let cm of window.gitlist.blameCodeMirror) {
cm.setOption("theme", theme);
}
}
}
*/
*/

let bodyAddClass
let bodyRemoveClass
let codeMirrorTheme
if (window.gitlist.isDark(theme)) {
bodyAddClass = 'p3x-gitlist-dark'
bodyRemoveClass = 'p3x-gitlist-light'
codeMirrorTheme = window.gitlist.codemirrorTheme.dark
} else {
bodyAddClass = 'p3x-gitlist-light'
bodyRemoveClass = 'p3x-gitlist-dark'
codeMirrorTheme = window.gitlist.codemirrorTheme.light

let bodyAddClass
let bodyRemoveClass
let codeMirrorTheme
if (window.gitlist.isDark(theme)) {
bodyAddClass = 'p3x-gitlist-dark'
bodyRemoveClass = 'p3x-gitlist-light'
codeMirrorTheme = window.gitlist.codemirrorTheme.dark
} else {
bodyAddClass = 'p3x-gitlist-light'
bodyRemoveClass = 'p3x-gitlist-dark'
codeMirrorTheme = window.gitlist.codemirrorTheme.light
}

}
$body.addClass(bodyAddClass)
$body.removeClass(bodyRemoveClass)
if (gitlist.viewer !== undefined) {
gitlist.viewer.setOption("theme", codeMirrorTheme);
}
if (gitlist.blameCodeMirror !== undefined) {
gitlist.blameCodeMirror.setOption("theme", codeMirrorTheme);
}


window.gitlist.networkRedraw();
window.gitlist.treegraph();
// if (window.gitlist.lastloadSpan !== undefined && window.gitlist.lastloadSpan > 1000) {
clearTimeout(setTimeoutSwitch)
setTimeoutSwitch = setTimeout(() => {
$('.p3x-gitlist-overlay').remove();
}, 250)

$body.addClass(bodyAddClass)
$body.removeClass(bodyRemoveClass)
if (gitlist.viewer !== undefined) {
gitlist.viewer.setOption("theme", codeMirrorTheme);
}
if (gitlist.blameCodeMirror !== undefined) {
gitlist.blameCodeMirror.setOption("theme", codeMirrorTheme);
// console.log('p3x-gitlist switching theme')
// }

if (diffButtons.length > 0) {
$.snackbar({
content: `We hid the shown diffs, to make the theme switching faster.`,
timeout: window.gitlist.snapckbarLongTimeout,
});
window.scrollTo(0, 0);
setTimeout(switchThemeActually, 250)
} else {
switchThemeActually()
}


window.gitlist.networkRedraw();
window.gitlist.treegraph();
// if (window.gitlist.lastloadSpan !== undefined && window.gitlist.lastloadSpan > 1000) {
clearTimeout(setTimeoutSwitch)
setTimeoutSwitch = setTimeout(() => {
$('.p3x-gitlist-overlay').remove();
}, 250)
// }
}
const pushHash = (hash) => {
if(history.pushState) {
Expand Down
2 changes: 1 addition & 1 deletion todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.9.4-886
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.9.6-887

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

Please sign in to comment.