Skip to content

Commit

Permalink
robo8x [chore] 5/20/2019, 7:47:20 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed May 20, 2019
1 parent 183e10b commit 52a29d3
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 46 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 v2019.4.19
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.21

[![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 v2019.4.19
# 🤖 P3X Gitlist - A decorated enhanced elegant, feature rich and modern private git ui repository viewer v2019.4.21


🙏 This is an open-source project. Star this repository, if you like it, or even donate to maintain the servers and the development. Thank you so much!
Expand Down Expand Up @@ -160,7 +160,7 @@ April 20, 2019

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.19
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.21

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

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.19
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.21

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

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.19
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.21

[![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 @@ -50,7 +50,7 @@ The following versions are not using `Babel`!!!! Yikes!

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.19
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.21

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

## v2019.4.21
* FEATURE: if the blob view is a commit, the delete and edit buttons are hidden
* FEATURE: default code editor default is increased from 300px to 600px

## v2019.4.19
* BUGFIX: on the commit file list with a view/edit button, it was not showing the commit view, but instead, using the main branch

Expand Down Expand Up @@ -256,7 +260,7 @@ require('codemirror/mode/yaml/yaml');

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.19
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.21

[![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 package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "p3x-gitlist",
"version": "2019.4.20",
"version": "2019.4.22",
"corifeus": {
"prod-dir": "prod",
"css-postfix": "7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba",
"css-postfix": "2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c",
"prefix": "p3x-",
"publish": false,
"type": "p3x",
Expand Down
12 changes: 10 additions & 2 deletions src/browser/js/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,16 @@ $(function() {
const $buttonDelete = $('#p3x-gitlist-file-delete')
const codeMirrorHeight = window.gitlist.editorMaxHeight;

$buttonEditCancel.hide();
$buttonEditSave.hide();
//$buttonEditCancel.hide();
//$buttonEditSave.hide();

if (!window.gitlist.changeableCommit({ snack: false})) {
$buttonEdit.hide();
$buttonDelete.hide();
} else {
$buttonEdit.show();
$buttonDelete.show();
}

$buttonEdit.click(() => {

Expand Down
16 changes: 9 additions & 7 deletions src/browser/js/global/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ window.gitlist.gitNewPush = (json) => {
return false;
}

window.gitlist.changeableCommit = () => {
window.gitlist.changeableCommit = (opts = { snack: true }) => {
if (!window.gitlist.branches.includes(window.gitlist.branch)) {
let branchInfo;
if (window.gitlist.branches.length === 1) {
branchInfo = `Only the <strong>${window.gitlist.branches.join(', ')}</strong> branch is changeable.`
} else {
branchInfo = `Only the <strong>${window.gitlist.branches.join(', ')}</strong> branches are changeable.`
}
$.snackbar({
htmlAllowed: true,
content: `This commit <strong>${window.gitlist.branch}</strong> is not changeable.<br/>
if (opts.snack) {
$.snackbar({
htmlAllowed: true,
content: `This commit <strong>${window.gitlist.branch}</strong> is not changeable.<br/>
${branchInfo}
`,
timeout: window.gitlist.snapckbarLongTimeout,
})
timeout: window.gitlist.snapckbarLongTimeout,
})
}
return false;
} {
return true
Expand Down Expand Up @@ -130,4 +132,4 @@ window.gitlist.gitHelperAjax = async (options) => {
}

return json;
}
}
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.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-solar": "prod/css/bootstrap-solar.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-cerulean": "prod/css/bootstrap-cerulean.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-cosmo": "prod/css/bootstrap-cosmo.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-cyborg": "prod/css/bootstrap-cyborg.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-darkly": "prod/css/bootstrap-darkly.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-flatly": "prod/css/bootstrap-flatly.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-journal": "prod/css/bootstrap-journal.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-lumen": "prod/css/bootstrap-lumen.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-paper": "prod/css/bootstrap-paper.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-readable": "prod/css/bootstrap-readable.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-sandstone": "prod/css/bootstrap-sandstone.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-simplex": "prod/css/bootstrap-simplex.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-slate": "prod/css/bootstrap-slate.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-spacelab": "prod/css/bootstrap-spacelab.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-superhero": "prod/css/bootstrap-superhero.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-united": "prod/css/bootstrap-united.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css",
"bootstrap-yeti": "prod/css/bootstrap-yeti.7d2372fc90a513b31debabb8efa243f7b8ce082c13f4421a76f6274c2256e6ba.css"
"bootstrap-default": "prod/css/bootstrap-default.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-solar": "prod/css/bootstrap-solar.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-cerulean": "prod/css/bootstrap-cerulean.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-cosmo": "prod/css/bootstrap-cosmo.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-cyborg": "prod/css/bootstrap-cyborg.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-darkly": "prod/css/bootstrap-darkly.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-flatly": "prod/css/bootstrap-flatly.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-journal": "prod/css/bootstrap-journal.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-lumen": "prod/css/bootstrap-lumen.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-paper": "prod/css/bootstrap-paper.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-readable": "prod/css/bootstrap-readable.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-sandstone": "prod/css/bootstrap-sandstone.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-simplex": "prod/css/bootstrap-simplex.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-slate": "prod/css/bootstrap-slate.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-spacelab": "prod/css/bootstrap-spacelab.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-superhero": "prod/css/bootstrap-superhero.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-united": "prod/css/bootstrap-united.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css",
"bootstrap-yeti": "prod/css/bootstrap-yeti.2e1c8bb44f00d2afc4499c0f0e18f332c4c8cd82ddd019d6d80943ed6963aa9c.css"
};
module.exports = themes;
5 changes: 2 additions & 3 deletions src/browser/less/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ code, pre {
border: 1px solid @table-bg-accent;
}

code.p3x-gitlist-code, pre.p3x-gitlist-code {
background-color: lighten(@navbar-inverse-bg, 5%);
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 @@ -159,4 +158,4 @@ img.emoji {
@import "commits-lists";
@import "list-group-striped";
@import "pager";
@import "network";
@import "network";
12 changes: 6 additions & 6 deletions src/twig/file.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</button>
{% endif %}

<button class="btn btn-sm btn-danger" id="p3x-gitlist-file-delete">
<button class="btn btn-sm btn-danger" id="p3x-gitlist-file-delete" style="display: none;">
<span class="fa fa-trash"></span>
Delete
</button>
Expand All @@ -35,13 +35,13 @@

<span class="p3x-gitlist-file-svg-toggle">
{% if (((fileType != 'image' and fileType != 'markdown' ) or (enforceCodemirror)) and not binary )%}
<button id="p3x-gitlist-file-button-edit" class="btn btn-sm btn-info">
<button id="p3x-gitlist-file-button-edit" class="btn btn-sm btn-info" style="display: none;">
<span class="fa fa-edit"></span> Edit
</button>
<button id="p3x-gitlist-file-button-edit-save" class="btn btn-sm btn-info">
<button id="p3x-gitlist-file-button-edit-save" class="btn btn-sm btn-info" style="display: none;">
<span class="fa fa-save"></span> Save
</button>
<button id="p3x-gitlist-file-button-edit-cancel" class="btn btn-sm btn-warning">
<button id="p3x-gitlist-file-button-edit-cancel" class="btn btn-sm btn-warning" style="display: none;">
<i class="fas fa-eraser"></i> Cancel
</button>

Expand All @@ -57,9 +57,9 @@
{% endembed %}

{% elseif fileType == 'markdown' %}
<a href="{{ path('blob', {repo: repo, commitishPath: branch ~ '/' ~ file}) }}?codemirror=1&edit=1"
<a href="{{ path('blob', {repo: repo, commitishPath: branch ~ '/' ~ file}) }}?codemirror=1"
class="btn btn-sm btn-info">
<span class="fa fa-edit"></span> Edit
<span class="far fa-file-code"></span> View editor
</a>
{% endif %}

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 v2019.4.19
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2019.4.21

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

Please sign in to comment.