Refactor [su_ajax|admin_cmd|api_webhook] methods into single /api/ interface
This commit is contained in:
@@ -677,7 +677,7 @@ html, body {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.about_egh_container {
|
||||
.about_egg_container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -812,7 +812,7 @@ html, body {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.egh_ajaxOutput {
|
||||
.egg_ajaxOutput {
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
|
||||
4
www/data/css/styles.min.css
vendored
4
www/data/css/styles.min.css
vendored
@@ -134,7 +134,7 @@ html,body{margin:0;padding:0;height:100%}
|
||||
@media(max-width:850px){.index_pnl_base{width:330px}}
|
||||
.aboutcontent{display:block;width:100%}
|
||||
.aboutcontent .boxedcontent{margin-bottom:20px}
|
||||
.about_egh_container{display:flex;flex-direction:column;align-items:center}
|
||||
.about_egg_container{display:flex;flex-direction:column;align-items:center}
|
||||
.git_list{display:inline-block;width:715px;height:115px;overflow:visible}
|
||||
@media(max-width:991px){
|
||||
.git_list{width:100%;height:auto}
|
||||
@@ -159,7 +159,7 @@ html,body{margin:0;padding:0;height:100%}
|
||||
.egg_col_x5_4{fill:#003958}
|
||||
.admincontent{display:block;width:100%}
|
||||
.admincontent .boxedcontent{margin-bottom:20px}
|
||||
.egh_ajaxOutput{display:flex;box-sizing:border-box;width:100%;align-self:center;margin-left:auto;margin-right:auto;resize:none;height:300px}
|
||||
.egg_ajaxOutput{display:flex;box-sizing:border-box;width:100%;align-self:center;margin-left:auto;margin-right:auto;resize:none;height:300px}
|
||||
.keyvaluelist{display:flex;flex-direction:column}
|
||||
.keyvaluelist div{display:flex;flex-direction:row}
|
||||
.keyvaluelist div span{align-self:center}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.about_egh_container {
|
||||
.about_egg_container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.egh_ajaxOutput {
|
||||
.egg_ajaxOutput {
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
function queryStatus(appendix, secret)
|
||||
{
|
||||
jQuery.ajax({
|
||||
url: '/admin/egh/status?secret='+secret,
|
||||
url: '/api/extendedgitgraph::status?secret='+secret,
|
||||
success: function(result)
|
||||
{
|
||||
let ajaxOutput = $('#egh_ajaxOutput');
|
||||
@@ -14,11 +14,11 @@ function queryStatus(appendix, secret)
|
||||
|
||||
function startAjaxRefresh(secret)
|
||||
{
|
||||
$('#egh_ajaxOutput').val("Started.");
|
||||
$('#egg_ajaxOutput').val("Started.");
|
||||
val = setInterval(function(){ queryStatus('', secret); }, 500);
|
||||
|
||||
jQuery.ajax({
|
||||
url: '/admin/egh/refresh?secret='+secret,
|
||||
url: '/api/extendedgitgraph::refresh?secret='+secret,
|
||||
success: function(result)
|
||||
{
|
||||
clearInterval(val);
|
||||
@@ -35,11 +35,11 @@ function startAjaxRefresh(secret)
|
||||
|
||||
function startAjaxRedraw(secret)
|
||||
{
|
||||
$('#egh_ajaxOutput').val("Started.");
|
||||
$('#egg_ajaxOutput').val("Started.");
|
||||
val = setInterval(function(){ queryStatus('', secret); }, 500);
|
||||
|
||||
jQuery.ajax({
|
||||
url: '/admin/egh/redraw?secret='+secret,
|
||||
url: '/api/extendedgitgraph::redraw?secret='+secret,
|
||||
success: function(result)
|
||||
{
|
||||
clearInterval(val);
|
||||
|
||||
Reference in New Issue
Block a user