-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-73955] CSP support for DockerManagementServer
#1107
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,4 @@ public final class Consts { | |
* The base URL of the plugin images. | ||
*/ | ||
public static final String PLUGIN_IMAGES_URL = PLUGIN_URL + "images/"; | ||
|
||
/** | ||
* The base URL of the plugin javascripts. | ||
*/ | ||
public static final String PLUGIN_JS_URL = PLUGIN_URL + "js/"; | ||
Comment on lines
-13
to
-17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dead code, as this is now served through a Stapler adjunct. |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function stop(theId) { | ||
var input = document.getElementById('stopId'); | ||
if (input != null) { | ||
input.value = theId; | ||
} | ||
|
||
var form = document.getElementById('control'); | ||
form.submit(); | ||
} | ||
Comment on lines
+1
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This code previously lived in |
||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const stopContainerButtons = document.querySelectorAll('#control .stop-container'); | ||
stopContainerButtons.forEach((button) => | ||
button.addEventListener('click', () => { | ||
stop(button.dataset.id); | ||
}), | ||
); | ||
}); | ||
Comment on lines
+11
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:f="/lib/form" | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:f="/lib/form" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So that the |
||
> | ||
<l:layout title="${%Docker hosts}" norefresh="true" permission="${it.requiredPermission}"> | ||
<l:header> | ||
<script src="${rootURL}${it.getJsUrl('docker-manage.js')}" type="text/javascript"></script> | ||
<st:adjunct includes="com.nirima.jenkins.plugins.docker.DockerManagementServer.docker-manage"/> | ||
<style type="text/css"> | ||
tr.disablehover:hover { | ||
background-color: white; | ||
|
@@ -52,7 +52,7 @@ | |
</j:forEach> | ||
</td> | ||
<td> | ||
<input type="button" value="stop" onclick="stop('${res.id}')"></input> | ||
<input type="button" class="stop-container" value="stop" data-id="${res.id}"></input> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
</td> | ||
</tr> | ||
</j:forEach> | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code, as this is now served through a Stapler adjunct.