Skip to content

Commit

Permalink
r0b08x [chore] 10/24/2020, 12:12:49 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Oct 24, 2020
1 parent c5f7db3 commit 99e9860
Show file tree
Hide file tree
Showing 22 changed files with 234 additions and 211 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://corifeus.com/gitlist) Build v2020.10.172
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2020.10.182

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



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

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2020.10.172
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2020.10.182

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

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

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

[![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
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
[//]: #@corifeus-header:end

## v2020.10.179
* BUILD: Splitted vendor modules packages with Webpack using `import` using pre-fetch.

## v2020.10.170
* BUILD: Kept older versions in the release.

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

---

[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2020.10.172
[**P3X-GITLIST**](https://corifeus.com/gitlist) Build v2020.10.182

[![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,6 +1,6 @@
{
"name": "p3x-gitlist",
"version": "2020.10.173",
"version": "2020.10.183",
"corifeus": {
"prod-dir": "prod",
"css-postfix": "8940b9c0b13e7fb3feb0a90e8db862ec8ab4763b0b7e8f438de43d7ae7b4145a",
Expand Down Expand Up @@ -42,15 +42,15 @@
"html-loader": "^1.3.2",
"html-webpack-plugin": "^4.5.0",
"less-loader": "^7.0.2",
"mini-css-extract-plugin": "^1.1.1",
"mini-css-extract-plugin": "^1.2.0",
"on-build-webpack": "^0.1.0",
"optimize-css-assets-webpack-plugin": "^5.0.4",
"postcss-safe-parser": "^5.0.2",
"source-map-loader": "^1.1.1",
"style-loader": "^2.0.0",
"terser-webpack-plugin": "^5.0.0",
"terser-webpack-plugin": "^5.0.1",
"url-loader": "^4.1.1",
"webpack": "^5.1.3",
"webpack": "^5.2.0",
"webpack-cli": "^4.1.0",
"worker-loader": "^3.0.5"
},
Expand All @@ -61,7 +61,7 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.1",
"bootstrap": "^3.4.1",
"codemirror": "^5.58.1",
"codemirror": "^5.58.2",
"highlight.js": "^10.3.1",
"is-string-int": "^1.0.1",
"jquery": "=3.4.1",
Expand Down
67 changes: 0 additions & 67 deletions src/browser/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,16 @@ window.gitlist.codemirrorTheme = {
light: 'idea',
dark: 'dracula',
}
require('codemirror/lib/codemirror.css')
require(`codemirror/theme/idea.css`)
require(`codemirror/theme/dracula.css`)


//require('../less/style.less')

require('@fortawesome/fontawesome-free/css/all.css')

/*
//console.log(fontawesome);
//console.log(fontawesome.default);
const faSolid = require('@fortawesome/fontawesome-free-solid')['default']
const faRegular = require('@fortawesome/fontawesome-free-regular')['default']
const faBrands = require('@fortawesome/fontawesome-free-brands')['default']
fontawesome.library.add(faSolid)
fontawesome.library.add(faRegular)
fontawesome.library.add(faBrands)
*/

window.gitlist.snapckbarLongTimeout = 20000;
global.jQuery = require('jquery')
global.$ = global.jQuery;
require('snackbarjs');
require('jquery.redirect');
require('bootstrap');

global.marked = require('marked')
global.htmlEncode = require('js-htmlencode')
global.CodeMirror = require('codemirror');
require('codemirror/addon/selection/active-line.js')
require('codemirror/addon/mode/simple');
require('codemirror/addon/mode/multiplex');
require('codemirror/mode/cmake/cmake');
require('codemirror/mode/clike/clike');
require('codemirror/mode/css/css');
require('codemirror/mode/dockerfile/dockerfile');
require('codemirror/mode/go/go');
require('codemirror/mode/handlebars/handlebars');
require('codemirror/mode/htmlmixed/htmlmixed');
require('codemirror/mode/javascript/javascript');
require('codemirror/mode/jsx/jsx');
require('codemirror/mode/perl/perl');
require('codemirror/mode/php/php');
require('codemirror/mode/powershell/powershell');
require('codemirror/mode/python/python');
require('codemirror/mode/properties/properties');
require('codemirror/mode/ruby/ruby');
require('codemirror/mode/sass/sass');
require('codemirror/mode/shell/shell');
require('codemirror/mode/vbscript/vbscript');
require('codemirror/mode/groovy/groovy');
require('codemirror/mode/erlang/erlang');
require('codemirror/mode/ecl/ecl');
require('codemirror/mode/coffeescript/coffeescript');
require('codemirror/mode/clojure/clojure');
require('codemirror/mode/diff/diff');
require('codemirror/mode/smalltalk/smalltalk');
require('codemirror/mode/rust/rust');
require('codemirror/mode/lua/lua');
require('codemirror/mode/haskell/haskell');
require('codemirror/mode/markdown/markdown');
require('codemirror/mode/scheme/scheme');
require('codemirror/mode/r/r');
require('codemirror/mode/rst/rst');
require('codemirror/mode/ntriples/ntriples');
require('codemirror/mode/pascal/pascal');
require('codemirror/mode/sql/sql');
require('codemirror/mode/swift/swift');
require('codemirror/mode/twig/twig');
require('codemirror/mode/vue/vue');
require('codemirror/mode/xml/xml');
require('codemirror/mode/xquery/xquery');
require('codemirror/mode/yaml/yaml');

require('eve-raphael/eve.js');
global.Raphael = require('raphael')
global.twemoji = require('twemoji').default
const prodDir = require('../../package').corifeus["prod-dir"];
global.twemoji.base = `${prodDir}/twemoji/`;
Expand Down
49 changes: 49 additions & 0 deletions src/browser/codemirror.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
require('codemirror/lib/codemirror.css')
require(`codemirror/theme/idea.css`)
require(`codemirror/theme/dracula.css`)

global.CodeMirror = require('codemirror');
require('codemirror/addon/selection/active-line.js')
require('codemirror/addon/mode/simple');
require('codemirror/addon/mode/multiplex');
require('codemirror/mode/cmake/cmake');
require('codemirror/mode/clike/clike');
require('codemirror/mode/css/css');
require('codemirror/mode/dockerfile/dockerfile');
require('codemirror/mode/go/go');
require('codemirror/mode/handlebars/handlebars');
require('codemirror/mode/htmlmixed/htmlmixed');
require('codemirror/mode/javascript/javascript');
require('codemirror/mode/jsx/jsx');
require('codemirror/mode/perl/perl');
require('codemirror/mode/php/php');
require('codemirror/mode/powershell/powershell');
require('codemirror/mode/python/python');
require('codemirror/mode/properties/properties');
require('codemirror/mode/ruby/ruby');
require('codemirror/mode/sass/sass');
require('codemirror/mode/shell/shell');
require('codemirror/mode/vbscript/vbscript');
require('codemirror/mode/groovy/groovy');
require('codemirror/mode/erlang/erlang');
require('codemirror/mode/ecl/ecl');
require('codemirror/mode/coffeescript/coffeescript');
require('codemirror/mode/clojure/clojure');
require('codemirror/mode/diff/diff');
require('codemirror/mode/smalltalk/smalltalk');
require('codemirror/mode/rust/rust');
require('codemirror/mode/lua/lua');
require('codemirror/mode/haskell/haskell');
require('codemirror/mode/markdown/markdown');
require('codemirror/mode/scheme/scheme');
require('codemirror/mode/r/r');
require('codemirror/mode/rst/rst');
require('codemirror/mode/ntriples/ntriples');
require('codemirror/mode/pascal/pascal');
require('codemirror/mode/sql/sql');
require('codemirror/mode/swift/swift');
require('codemirror/mode/twig/twig');
require('codemirror/mode/vue/vue');
require('codemirror/mode/xml/xml');
require('codemirror/mode/xquery/xquery');
require('codemirror/mode/yaml/yaml');
2 changes: 1 addition & 1 deletion src/browser/grunt/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const filesLessCache = `${cwd}/build/less/file-less.json`;
const lessSettings = (grunt) => {
return {
options: {
sourceMap: true,
sourceMap: false,
compress: true,
},
get files() {
Expand Down
2 changes: 1 addition & 1 deletion src/browser/js/change-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ window.gitlist.changeLog = async () => {
try {
const response = await $.ajax('https://raw.githubusercontent.com/patrikx3/gitlist/master/changelog.md')
const $changelogModalBody = $('#p3x-gitlist-modal-changelog-body')
changelogHtml = window.gitlist.renderMarkdown({
changelogHtml = await window.gitlist.renderMarkdown({
markdown: response
})
$changelogModalBody.html(changelogHtml);
Expand Down
8 changes: 4 additions & 4 deletions src/browser/js/commits-list.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(() => {
$(async() => {

const constructMarkdown = () => {
const constructMarkdown = async() => {
const $commitListTables = $('.p3x-gitlist-commits-list:not(.p3x-gitlist-commits-list-rendered)');

if ($commitListTables.length > 0) {
Expand All @@ -14,7 +14,7 @@ $(() => {
for (let markedItem of $markedItems) {
//console.log(markedItem)
const $markedItem = $(markedItem)
const html = window.gitlist.renderMarkdown({
const html = await window.gitlist.renderMarkdown({
markdown: $markedItem.html()
})
//console.log(html)
Expand All @@ -24,6 +24,6 @@ $(() => {
}
}

constructMarkdown();
await constructMarkdown();
window.gitlist.constructCommitsListConstructMarkdown = constructMarkdown;
})
9 changes: 8 additions & 1 deletion src/browser/js/file.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$(function () {
$(async function () {

const Cookies = require('js-cookie')

Expand All @@ -13,6 +13,12 @@ $(function () {
return;
}

await import(
/* webpackChunkName: "codemirror" */
/* webpackPrefetch: true */
'../codemirror'
);

const $buttonDelete = $('#p3x-gitlist-file-delete')
const $buttonDeleteSure = $('#p3x-gitlist-modal-delete-confirm')
const $formDeleteForm = $('#p3x-gitlist-modal-delete-form')
Expand All @@ -28,6 +34,7 @@ $(function () {
}



$buttonDelete.click(() => {
if (!window.gitlist.changeableCommit()) {
return
Expand Down
Loading

0 comments on commit 99e9860

Please sign in to comment.