Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
76f2f24ef3fdc1723584d5e7964b12294c77c8be
Branches
master
Tags
v2024.4.105
v2023.10.119
v2023.10.102
v2022.4.106
v2021.10.211
v2021.10.198
v2021.10.197
v2021.10.195
v2021.10.194
v2021.10.191
v2021.10.189
v2021.10.183
v2021.10.161
v2021.10.152
v2021.10.146
v2021.10.143
v2021.4.102
v2020.10.189
v2020.10.187
v2020.10.185
v2020.10.182
v2020.10.170
v2020.10.138
v2020.10.136
v2020.10.104
v2020.10.102
v2020.4.218
v2020.4.210
v2020.4.188
v2020.4.185
v2020.4.146
v2020.4.144
v2020.4.126
v2020.4.125
v2020.4.123
v2020.4.117
v2020.4.116
v2020.4.114
v2020.4.111
v2020.4.107
v2020.4.105
v2020.4.103
v2019.10.154
v2019.10.146
v2019.10.114
v2019.10.111
v2019.10.109
v2019.4.128
v2019.4.124
v2019.4.121
v2019.4.119
v2019.4.116
v2019.4.113
v2019.4.108
v2019.4.107
v2019.4.106
v2019.4.104
v2019.4.102
v2019.4.22
v2019.4.21
v2019.4.19
v2019.4.16
v2019.2.9-0
v2019.1.23-7
v2019.1.23-0
v2019.1.19-3
v2019.1.1-16
v2019.1.1-15
v2019.1.1-13
v2019.1.1-11
v2019.1.1-6
v2014.4.16
v2014.4.14
v1.1.18-573
p3x-gitlist-2.8.25-822
2019.4.8
2019.1.15-0
2019.1.12-3
2019.1.12-1
2019.1.10-5
2019.1.1-2
2018.12.31-3
2018.12.30-1
2018.12.22-6
2018.12.21-8
2018.12.21-7
2018.12.21-2
2018.12.14-3
2018.12.14-1
2018.12.14-0
2018.12.13-4
2018.12.13-3
2018.12.13-1
2018.12.13-0
2018.11.24-2
2018.11.19-0
2018.11.15-3
2018.11.15-1
2018.10.8-1
2018.9.20-0
2.12.10-1046
2.12.6-1040
2.12.4-1038
2.11.14-1031
2.10.83-1014
2.9.13-892
2.9.8-888
2.9.6-887
2.9.4-886
2.9.2-883
2.9.1-882
2.8.56-862
2.8.52-855
2.8.48-849
2.8.27-829
2.8.23-822
2.8.7-806
2.8.2-803
2.8.0
2.7.78-794
2.7.19-757
2.7.17-754
2.7.12-750
2.7.8-749
2.7.5-743
2.7.4-742
2.6.2-721
2.5.22-696
2.5.19-684
2.5.7-668
2.1.7-643
2.0.38-619
2.0.37-616
2.0.35-613
2.0.33-609
2.0.31-604
2.0.27-600
2.0.26-598
2.0.25-598
2.0.17-593
2.0.15-589
2.0.12-585
2.0.4-579
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4-rc.3
1.0.4-rc.2
1.0.4-rc.1
1.0.3
1.0.2
1.0.1
1.0.0
0.5.6
0.5.5
0.5.4
0.5.0
0.4.0
0.3
0.2
0.1
Files
Commits
Log
Graph
Stats
gitlist.git
themes
bootstrap
js
main.js
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 46
Mode: javascript
Binary: false
Hang on, we reloading big blames...
df43c987
$(function () {
eab1bbcf
df43c987
$('.dropdown-toggle').dropdown();
f1e4d5b9
6722fb20
function setCodeMirrorTheme(theme) { if (gitlist.viewer === undefined) { return; } var actualTheme = theme.split('-')[1] if (window.gitlist.isDark(actualTheme)) { gitlist.viewer.setOption("theme", 'blackboard'); } else { gitlist.viewer.setOption("theme", 'default'); } } window.gitlist.setCodeMirrorTheme = setCodeMirrorTheme;
f1e4d5b9
if ($('#sourcecode').length) { var value = $('#sourcecode').text(); var mode = $('#sourcecode').attr('language'); var pre = $('#sourcecode').get(0);
6722fb20
gitlist.viewer = CodeMirror(function(elt) {
c3f21df0
pre.parentNode.replaceChild(elt, pre); }, { value: value, lineNumbers: true, matchBrackets: true, lineWrapping: true, readOnly: true,
d1b62804
mode: mode,
c3f21df0
});
6722fb20
var setCodeMirror = function() { if (gitlist.getThemeCookie !== undefined) { setCodeMirrorTheme(gitlist.getThemeCookie()) } else { setTimeout(function() { setCodeMirror() }, 250) } } setCodeMirror()
0ae4534e
}
f1e4d5b9
// blob/master var markdownRenderer = new marked.Renderer();
f77129c5
6722fb20
var kebabCase = require('lodash/kebabCase')
f77129c5
markdownRenderer.heading = function (text, level, raw) {
6722fb20
var ref = kebabCase(text).replace(/[^\x00-\xFF]/g, "");
f77129c5
var id = ref + '-parent'; var hover = ' onmouseenter="document.getElementById(\'' + ref + '\').style.display = \'inline\'" onmouseleave="document.getElementById(\'' + ref + '\').style.display = \'none\'" '
6722fb20
var element = '<div ' + hover + ' class="p3x-gitlist-markdown-heading-container"><h' + level + ' id="' + id + '" class="p3x-gitlist-markdown-heading">' + text + ' <a class="p3x-gitlist-markdown-heading-link" id="' + ref + '" href="' + location.origin + location.pathname + '#' + ref + '" onclick="return window.gitlist.scrollHash(this, event)">#</a></h' + level + '></div>';
f77129c5
return element }
f1e4d5b9
markdownRenderer.link = function(href, title, text) { var a; if (href.startsWith('https:/') || href.startsWith('http:/')) { a = '<a target="_blank" href="' + href + '">' + text + '</a>'; } else { var start = gitlist.basepath + '/' + gitlist.repo + '/blob/' + gitlist.branch + '/'; if (!location.pathname.startsWith(start)) { href = start + href; } a = '<a href="' + href + '">' + text + '</a>'; } return a; } markdownRenderer.image = function(href, title, text) { title = title || ''; text = text || '';
781b8554
var resultText = title; if (text !== '') { if (title !== '') { resultText += ' - '; } resultText += text; }
6722fb20
var result = '<a target="_blank" href="' + href + '"><img class="p3x-gitlist-markdown-image" alt="' + htmlEncode(resultText) + '" title="' + htmlEncode(resultText) + '" src="' + href + '"/></a>';
f1e4d5b9
return result; };
c6de3bb8
f6c24470
f1e4d5b9
if ($('#md-content').length) { var html = marked($('#md-content').text(), { renderer: markdownRenderer });
eab1bbcf
$('#md-content').html(twemoji.parse(html, { folder: 'svg', ext: '.svg', }));
6722fb20
global.gitlist.scrollHash(location)
c3f21df0
}
0ae4534e
ecc8e971
var clonePopup = $('#clone-popup') var cloneButtonShow = $('#clone-button-show'); var cloneButtonHide = $('#clone-button-hide'); var cloneButtonSSH = $('#clone-button-ssh'); var cloneButtonHTTP = $('#clone-button-http'); var cloneInputSSH = $('#clone-input-ssh'); var cloneInputHTTP = $('#clone-input-http'); cloneButtonShow.click(function() { clonePopup.fadeIn(); }); cloneButtonHide.click(function() { clonePopup.fadeOut(); }); cloneButtonSSH.click(function() { if(cloneButtonSSH.hasClass('active')) return; cloneButtonSSH.addClass('active'); cloneInputSSH.show(); cloneButtonHTTP.removeClass('active'); cloneInputHTTP.hide(); }); cloneButtonHTTP.click(function() { if(cloneButtonHTTP.hasClass('active')) return; cloneButtonHTTP.addClass('active'); cloneInputHTTP.show(); cloneButtonSSH.removeClass('active'); cloneInputSSH.hide(); });
0ae4534e
function paginate() { var $pager = $('.pager');
cb71550e
0ae4534e
$pager.find('.next a').one('click', function (e) { e.preventDefault(); $.get(this.href, function (html) { $pager.after(html); $pager.remove(); paginate(); }); });
cb71550e
0ae4534e
$pager.find('.previous').remove(); } paginate();
11f99a72
76f2f24e
var es = document.getElementsByTagName('a') for(var i=0; i<es.length; i++){ es[i].addEventListener('click', function(e) { var href = e.target.getAttribute('href'); if (href === null) { return; } if (href.startsWith('#')) { e.preventDefault() var el = document.getElementById(href.substring(1)); if (el === null) { return; } el.scrollIntoView({ behavior: 'smooth', block: "center",
e7d2ee80
76f2f24e
}) } }) } if ($('#repositories').length) { var listOptions = { valueNames: ['name'] }; var repoList = new global.List('repositories', listOptions); } if ($('#branchList').length) { var listBranchOptions = { valueNames: ['item'] }; var repoList = new global.List('branchList', listBranchOptions); } $('.search').click(function (e) { e.stopPropagation(); });
feaddc8b
f1e4d5b9
});
eab1bbcf
76f2f24e
6722fb20
global.gitlist.scrollHash = function(element, event) { var url = new URL(element.href) var id = url.hash.substring(1) var elfind = document.getElementById(id + '-parent') if (elfind === null) { return true; } elfind.scrollIntoView({ behavior: 'smooth', block: "center", }) if (event !== undefined) { event.preventDefault() if(history.pushState) { var pushState = location.pathname + url.hash; history.pushState(null, null, pushState); } else { location.hash = url.hash; } } return false; }