mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
new quick start page
This commit is contained in:
@@ -204,6 +204,17 @@
|
||||
"outputStyle": 1,
|
||||
"syntaxCheckerStyle": 1
|
||||
},
|
||||
"\/js\/libs\/clipboard-1.3.1.min.js": {
|
||||
"fileType": 64,
|
||||
"ignore": 0,
|
||||
"ignoreWasSetByUser": 0,
|
||||
"inputAbbreviatedPath": "\/js\/libs\/clipboard-1.3.1.min.js",
|
||||
"outputAbbreviatedPath": "\/js\/libs\/min\/clipboard-1.3.1.min-min.js",
|
||||
"outputPathIsOutsideProject": 0,
|
||||
"outputPathIsSetByUser": 0,
|
||||
"outputStyle": 1,
|
||||
"syntaxCheckerStyle": 1
|
||||
},
|
||||
"\/js\/libs\/dropzone-4.0.1.js": {
|
||||
"fileType": 64,
|
||||
"ignore": 0,
|
||||
@@ -548,12 +559,12 @@
|
||||
"fileType": 1,
|
||||
"ieCompatibility": 1,
|
||||
"ignore": 0,
|
||||
"ignoreWasSetByUser": 0,
|
||||
"ignoreWasSetByUser": 1,
|
||||
"inputAbbreviatedPath": "\/less\/gogs.less",
|
||||
"outputAbbreviatedPath": "\/css\/gogs.min.css",
|
||||
"outputAbbreviatedPath": "\/css\/gogs.css",
|
||||
"outputPathIsOutsideProject": 0,
|
||||
"outputPathIsSetByUser": 1,
|
||||
"outputStyle": 1,
|
||||
"outputStyle": 0,
|
||||
"relativeURLS": 0,
|
||||
"shouldRunAutoprefixer": 0,
|
||||
"shouldRunBless": 0,
|
||||
|
4276
public/css/gogs.css
4276
public/css/gogs.css
File diff suppressed because it is too large
Load Diff
@@ -396,6 +396,22 @@ function initRepository() {
|
||||
});
|
||||
}
|
||||
|
||||
// Quick start
|
||||
if ($('.repository.quickstart').length > 0) {
|
||||
$('#repo-clone-ssh').click(function () {
|
||||
$('.clone-url').text($(this).data('link'));
|
||||
$('#repo-clone-url').val($(this).data('link'));
|
||||
$(this).addClass('blue');
|
||||
$('#repo-clone-https').removeClass('blue');
|
||||
});
|
||||
$('#repo-clone-https').click(function () {
|
||||
$('.clone-url').text($(this).data('link'));
|
||||
$('#repo-clone-url').val($(this).data('link'));
|
||||
$(this).addClass('blue');
|
||||
$('#repo-clone-ssh').removeClass('blue');
|
||||
});
|
||||
}
|
||||
|
||||
// Pull request
|
||||
if ($('.repository.compare.pull').length > 0) {
|
||||
var $branch_dropdown = $('.choose.branch .dropdown');
|
||||
@@ -478,7 +494,7 @@ function initAdmin() {
|
||||
$('.local').show();
|
||||
$('#user_name').focus();
|
||||
|
||||
if($(this).data('password')=="required"){
|
||||
if ($(this).data('password') == "required") {
|
||||
$('#password').attr('required', 'required');
|
||||
}
|
||||
|
||||
@@ -608,6 +624,24 @@ $(document).ready(function () {
|
||||
emojify.run($(this)[0]);
|
||||
});
|
||||
|
||||
// Clipboard JS
|
||||
var clipboard = new Clipboard('.clipboard');
|
||||
clipboard.on('success', function (e) {
|
||||
e.clearSelection();
|
||||
|
||||
$('#' + e.trigger.getAttribute('id')).popup('destroy');
|
||||
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-success'))
|
||||
$('#' + e.trigger.getAttribute('id')).popup('show');
|
||||
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-original'))
|
||||
});
|
||||
|
||||
clipboard.on('error', function (e) {
|
||||
$('#' + e.trigger.getAttribute('id')).popup('destroy');
|
||||
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-error'))
|
||||
$('#' + e.trigger.getAttribute('id')).popup('show');
|
||||
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-original'))
|
||||
});
|
||||
|
||||
// Helpers.
|
||||
$('.delete-button').click(function () {
|
||||
var $this = $(this);
|
||||
|
1
public/js/libs/clipboard-1.3.1.min.js
vendored
Executable file
1
public/js/libs/clipboard-1.3.1.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
@@ -591,7 +591,28 @@
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
&.quickstart {
|
||||
.guide {
|
||||
.item {
|
||||
padding: 1em;
|
||||
small {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
.clone.button:first-child {
|
||||
border-radius: .28571429rem 0 0 .28571429rem;
|
||||
}
|
||||
#repo-clone-url {
|
||||
border-radius: 0;
|
||||
width: 100%;
|
||||
padding: 5px 10px;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// End of .repository
|
||||
|
||||
.issue.list {
|
||||
list-style: none;
|
||||
|
Reference in New Issue
Block a user