1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 12:20:05 +02:00

2 Commits

Author SHA1 Message Date
s2
9836f5c918 2.0.13 2021-01-13 15:57:32 +01:00
s2
6c9787fea1 add homepage link 2021-01-13 15:57:21 +01:00
4 changed files with 11 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
const remote = require('electron').remote;
const electronFind = require('electron-find');
const dialog = remote.require('electron').dialog;
const shell = require('electron').shell;
let findInPage = new electronFind.FindInPage(remote.getCurrentWebContents());
@@ -144,6 +145,11 @@
});
});
$(document).on('click', 'a[href^="http"]', function(event) {
event.preventDefault();
shell.openExternal(this.href);
});
$(document).on('keypress', (ev) => {
//ctrl + f
if (ev.ctrlKey && ev.charCode == 6) {

View File

@@ -6,4 +6,7 @@
<a class="btn btn-primary btn-lg js-open-folder" href="javascript:///">Open git repository folder</a>
<input type="file" style="display: none" class="js-open-folder-input" webkitdirectory />
</div>
<p>
<a href="https://github.com/S2-/gitlit">Homepage</a>
</p>
</div>

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "gitlit",
"version": "2.0.12",
"version": "2.0.13",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "gitlit",
"version": "2.0.12",
"version": "2.0.13",
"description": "",
"main": "app/main.js",
"build": {