remove Desktop
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#application
|
||||
application.title=MaxKey
|
||||
application.name=MaxKey-Mgt
|
||||
application.formatted-version=v2.6.0 GA
|
||||
application.formatted-version=v2.7.0 GA
|
||||
#server config
|
||||
#server port
|
||||
server.port=9527
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
protocolArray["Extend_API"]="extendapi";
|
||||
protocolArray["CAS"]="cas";
|
||||
protocolArray["Basic"]="basic";
|
||||
protocolArray["Desktop"]="desktop";
|
||||
protocolArray["JWT"]="jwt";
|
||||
|
||||
$(function () {
|
||||
@@ -140,7 +139,6 @@
|
||||
<a class="dropdown-item" target="_blank" href="<@base/>/apps/jwt/forwardAdd"> <@locale code="apps.protocol.jwt" /></a>
|
||||
<a class="dropdown-item" target="_blank" href="<@base/>/apps/tokenbased/forwardAdd"> <@locale code="apps.protocol.tokenbased" /></a>
|
||||
<a class="dropdown-item" target="_blank" href="<@base/>/apps/extendapi/forwardAdd"> <@locale code="apps.protocol.extendapi" /></a>
|
||||
<a class="dropdown-item" target="_blank" href="<@base/>/apps/desktop/forwardAdd"> <@locale code="apps.protocol.desktop" /></a>
|
||||
<a class="dropdown-item" target="_blank" href="<@base/>/apps/basic/forwardAdd"> <@locale code="apps.protocol.basic" /></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,215 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<#include "../../layout/header.ftl"/>
|
||||
<#include "../../layout/common.cssjs.ftl"/>
|
||||
<#include "../appCommonHead.ftl"/>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
$(function(){
|
||||
$("#usernameType").change(function(){
|
||||
if($(this).val()=="SIMULATION"){
|
||||
$(".usernameParameter").hide();
|
||||
$(".preUsername").show();
|
||||
}else{
|
||||
$(".usernameParameter").show();
|
||||
$(".preUsername").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$("#passwordType").change(function(){
|
||||
if($(this).val()=="SIMULATION"){
|
||||
$(".passwordParameter").hide();
|
||||
$(".prePassword").show();
|
||||
}else{
|
||||
$(".passwordParameter").show();
|
||||
$(".prePassword").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$("#submitType").change(function(){
|
||||
if($(this).val()=="Enter"){
|
||||
$("#submitKey").hide();
|
||||
$(".preSubmit").show();
|
||||
$(".preSubmit").show();
|
||||
}else if($(this).val()=="Key"){
|
||||
$("#submitKey").show();
|
||||
$(".preSubmit").show();
|
||||
$(".preSubmit").show();
|
||||
}else{
|
||||
$("#submitKey").hide();
|
||||
$(".preSubmit").hide();
|
||||
$(".preSubmit").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$(".credential").on("click",function(){
|
||||
if($(this).val()=="3"){
|
||||
$("#sharedconfigure").hide();
|
||||
$("#systemconfigure").hide();
|
||||
}else if($(this).val()=="1"){
|
||||
$("#sharedconfigure").hide();
|
||||
$("#systemconfigure").show();
|
||||
}else if($(this).val()=="2"){
|
||||
$("#sharedconfigure").show();
|
||||
$("#systemconfigure").hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="actionForm_app" method="post" type="label" autoclose="true" closeWindow="true"
|
||||
action="<@base/>/apps/desktop/add"
|
||||
forward="<@base/>/apps/list"
|
||||
enctype="multipart/form-data"
|
||||
class="needs-validation" novalidate>
|
||||
<!-- content -->
|
||||
<!--table-->
|
||||
<table width="960" class="table table-bordered" >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td ><#include "../appAddCommon.ftl"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="960" class="table table-bordered" >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan=4><@locale code="apps.desktop.info" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th ><@locale code="apps.desktop.programPath" />:</th>
|
||||
<td colspan="3">
|
||||
<textarea id="programPath" name="programPath" rows="4" cols="60" class="form-control" required="" ></textarea>
|
||||
<b class="orange">*</b><label for="programPath"></label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th><@locale code="apps.desktop.parameter" />:</th>
|
||||
<td colspan="3">
|
||||
<textarea id="parameter" name="parameter" rows="4" cols="60" class="form-control" ></textarea>
|
||||
|
||||
<b class="orange">*</b><label for="parameter"></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><@locale code="apps.desktop.usernameType" />:</th>
|
||||
<td >
|
||||
<select id="usernameType" name="usernameType" class="form-control" >
|
||||
<option value="SIMULATION" selected>SIMULATION</option>
|
||||
<option value="PARAMETER">PARAMETER</option>
|
||||
</select>
|
||||
<b class="orange">*</b><label for="usernameType"></label>
|
||||
</td>
|
||||
<th class="usernameParameter" style="display:none"><@locale code="apps.desktop.usernameParameter" />:</th>
|
||||
<td class="usernameParameter" style="display:none">
|
||||
<input type="text" id="usernameParameter" name="usernameParameter" title="" value="username" class="form-control" />
|
||||
<b class="orange">*</b><label for="usernameParameter"></label>
|
||||
</td>
|
||||
|
||||
<th class="preUsername"><@locale code="apps.desktop.preUsername" />:</th>
|
||||
<td class="preUsername">
|
||||
<input type="text" id="preUsername" name="preUsername" title="" value="" class="form-control" />
|
||||
<b class="orange">*</b><label for="preUsername"></label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th><@locale code="apps.desktop.passwordType" />:</th>
|
||||
<td >
|
||||
<select id="passwordType" name="passwordType" class="form-control" >
|
||||
<option value="SIMULATION" selected>SIMULATION</option>
|
||||
<option value="PARAMETER">PARAMETER</option>
|
||||
</select>
|
||||
<b class="orange">*</b><label for="passwordType"></label>
|
||||
</td>
|
||||
<th class="passwordParameter" style="display:none"><@locale code="apps.desktop.passwordParameter" />:</th>
|
||||
<td class="passwordParameter" style="display:none">
|
||||
<input type="text" id="passwordParameter" name="passwordParameter" title="" value="password" class="form-control" />
|
||||
<b class="orange">*</b><label for="passwordParameter"></label>
|
||||
</td>
|
||||
|
||||
<th class="prePassword" ><@locale code="apps.desktop.prePassword" />:</th>
|
||||
<td class="prePassword" >
|
||||
<input type="text" id="prePassword" name="prePassword" title="" value="" class="form-control" />
|
||||
<b class="orange">*</b><label for="prePassword"></label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th><@locale code="apps.desktop.submitType" />:</th>
|
||||
<td >
|
||||
<select id="submitType" name="submitType" class="form-control" >
|
||||
<option value="Enter" selected>Enter</option>
|
||||
<option value="Key">Key</option>
|
||||
<option value="None">None</option>
|
||||
</select>
|
||||
<input style="display:none" type="text" id="submitKey" class="form-control" name="submitKey" size="3" title="" value=""/>
|
||||
<b class="orange">*</b><label for="submitType"></label>
|
||||
</td>
|
||||
<th class="preSubmit"><@locale code="apps.desktop.preSubmit" />:</th>
|
||||
<td class="preSubmit">
|
||||
<input type="text" id="preSubmit" name="preSubmit" class="form-control" title="" value=""/>
|
||||
<b class="orange">*</b><label for="preSubmit"></label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:15%;"><@locale code="apps.credential" />:</th>
|
||||
<td style="width:35%;">
|
||||
<input type="radio" id="credential-user-defined" name="credential" class="credential form-control" value="3" checked style="float:left;width: 30px;"/>
|
||||
<@locale code="apps.credential.user-defined" />
|
||||
<input type="radio" id="credential-shared" name="credential" class="credential form-control" value="2" style="float:left;width: 30px;"/>
|
||||
<@locale code="apps.credential.shared" />
|
||||
<input type="radio" id="credential-system" name="credential" class="credential form-control" value="1" style="float:left;width: 30px;" />
|
||||
<@locale code="apps.credential.system" />
|
||||
<b class="orange">*</b><label for="credential"></label>
|
||||
</td>
|
||||
<th style="width:15%;"></th>
|
||||
<td style="width:35%;" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
>
|
||||
</tr>
|
||||
<tr id="systemconfigure" style="display:none">
|
||||
<th><@locale code="apps.credential" />:</th>
|
||||
<td colspan="3">
|
||||
<select id="systemUserAttr" name="systemUserAttr" class="form-control" >
|
||||
<option value="uid"><@locale code="userinfo.id" /></option>
|
||||
<option value="employeeNumber"><@locale code="userinfo.employeeNumber" /></option>
|
||||
<option value="username" selected><@locale code="userinfo.username" /></option>
|
||||
<option value="email"><@locale code="userinfo.email" /></option>
|
||||
<option value="windowsaccount"><@locale code="userinfo.windowsAccount" /></option>
|
||||
</select>
|
||||
<b class="orange">*</b><label for="systemUserAttr"></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="sharedconfigure" style="display:none">
|
||||
<th><@locale code="apps.credential.sharedUsername" />:</th>
|
||||
<td >
|
||||
<input type="text" id="sharedUsername" name="sharedUsername" value="" class="form-control" />
|
||||
<b class="orange">*</b><label for="sharedUsername"></label>
|
||||
</td>
|
||||
<th ><@locale code="apps.credential.sharedPassword" />:</th>
|
||||
<td >
|
||||
<input type="text" id="sharedPassword" name="sharedPassword" value="" class="form-control" />
|
||||
<b class="orange">*</b><label for="sharedPassword"></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input id="status" type="hidden" name="status" value="1"/>
|
||||
<input class="button btn btn-primary mr-3" id="submitBtn" type="submit" value="<@locale code="button.text.save" />"/>
|
||||
<input class="button btn btn-secondary mr-3" id="backBtn" type="button" value="<@locale code="button.text.cancel" />"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,219 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<#include "../../layout/header.ftl"/>
|
||||
<#include "../../layout/common.cssjs.ftl"/>
|
||||
<#include "../appCommonHead.ftl"/>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
$(function(){
|
||||
$("#usernameType").change(function(){
|
||||
if($(this).val()=="SIMULATION"){
|
||||
$(".usernameParameter").hide();
|
||||
$(".preUsername").show();
|
||||
}else{
|
||||
$(".usernameParameter").show();
|
||||
$(".preUsername").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$("#passwordType").change(function(){
|
||||
if($(this).val()=="SIMULATION"){
|
||||
$(".passwordParameter").hide();
|
||||
$(".prePassword").show();
|
||||
}else{
|
||||
$(".passwordParameter").show();
|
||||
$(".prePassword").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$("#submitType").change(function(){
|
||||
if($(this).val()=="Enter"){
|
||||
$("#submitKey").hide();
|
||||
$(".preSubmit").show();
|
||||
$(".preSubmit").show();
|
||||
}else if($(this).val()=="Key"){
|
||||
$("#submitKey").show();
|
||||
$(".preSubmit").show();
|
||||
$(".preSubmit").show();
|
||||
}else{
|
||||
$("#submitKey").hide();
|
||||
$(".preSubmit").hide();
|
||||
$(".preSubmit").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$(".credential").on("click",function(){
|
||||
if($(this).val()=="3"){
|
||||
$("#sharedconfigure").hide();
|
||||
$("#systemconfigure").hide();
|
||||
}else if($(this).val()=="1"){
|
||||
$("#sharedconfigure").hide();
|
||||
$("#systemconfigure").show();
|
||||
}else if($(this).val()=="2"){
|
||||
$("#sharedconfigure").show();
|
||||
$("#systemconfigure").hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="actionForm_app" method="post" type="label" autoclose="true" closeWindow="true"
|
||||
action="<@base/>/apps/desktop/update"
|
||||
forward="<@base/>/apps/list"
|
||||
enctype="multipart/form-data"
|
||||
class="needs-validation" novalidate>
|
||||
<!-- content -->
|
||||
<!--table-->
|
||||
<table class="table table-bordered" >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td ><#include "../appUpdateCommon.ftl"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-bordered" >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan=4><@locale code="apps.desktop.info" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><@locale code="apps.desktop.programPath" />:</th>
|
||||
<td colspan="3">
|
||||
<textarea class="form-control" id="programPath" name="programPath" rows="4" cols="60" required="" >${model.programPath}</textarea>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th><@locale code="apps.desktop.parameter" />:</th>
|
||||
<td colspan="3">
|
||||
<textarea class="form-control" id="parameter" name="parameter" rows="4" cols="60">${model.parameter}</textarea>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th ><@locale code="apps.desktop.usernameType" />:</th>
|
||||
<td >
|
||||
<select id="usernameType" name="usernameType" class="form-control">
|
||||
<option value="SIMULATION" <#if 'SIMULATION'==model.usernameType>selected</#if> >SIMULATION</option>
|
||||
<option value="PARAMETER" <#if 'PARAMETER'==model.usernameType>selected</#if> >PARAMETER</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
<th class="usernameParameter" <#if 'SIMULATION'==model.usernameType>style="display:none"</#if> >
|
||||
<@locale code="apps.desktop.usernameParameter" />:</th>
|
||||
<td class="usernameParameter" <#if 'SIMULATION'==model.usernameType>style="display:none"</#if> >
|
||||
<input type="text" class="form-control" id="usernameParameter" name="usernameParameter" title="" value="${model.usernameParameter}" />
|
||||
|
||||
</td>
|
||||
|
||||
<th class="preUsername" <#if 'PARAMETER'==model.usernameType>style="display:none"</#if> >
|
||||
<@locale code="apps.desktop.preUsername" />:</th>
|
||||
<td class="preUsername" <#if 'PARAMETER'==model.usernameType>style="display:none"</#if> >
|
||||
<input type="text" class="form-control" id="preUsername" name="preUsername" title="" value="${model.preUsername}"/>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th><@locale code="apps.desktop.passwordType" />:</th>
|
||||
<td >
|
||||
<select id="passwordType" name="passwordType" class="form-control">
|
||||
<option value="SIMULATION" <#if 'SIMULATION'==model.passwordType>selected</#if> >SIMULATION</option>
|
||||
<option value="PARAMETER" <#if 'PARAMETER'==model.passwordType>selected</#if> >PARAMETER</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
<th class="passwordParameter" <#if 'SIMULATION'==model.passwordType>style="display:none"</#if> >
|
||||
<@locale code="apps.desktop.passwordParameter" />:</th>
|
||||
<td class="passwordParameter" <#if 'SIMULATION'==model.passwordType>style="display:none"</#if> >
|
||||
<input type="text" class="form-control" id="passwordParameter" name="passwordParameter" title="" value="${model.passwordParameter}" />
|
||||
|
||||
</td>
|
||||
|
||||
<th class="prePassword" <#if 'PARAMETER'==model.passwordType>style="display:none"</#if> >
|
||||
<@locale code="apps.desktop.prePassword" />:</th>
|
||||
<td class="prePassword" <#if 'PARAMETER'==model.passwordType>style="display:none"</#if> >
|
||||
<input type="text" class="form-control" id="prePassword" name="prePassword" title="" value="${model.prePassword}"/>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><@locale code="apps.desktop.submitType" />:</th>
|
||||
<td >
|
||||
<select id="submitType" name="submitType" class="form-control">
|
||||
<option value="Enter" <#if 'Enter'==model.submitType>selected</#if> >Enter</option>
|
||||
<option value="Key" <#if 'Key'==model.submitType>selected</#if> >Key</option>
|
||||
<option value="None" <#if 'None'==model.submitType>selected</#if> >None</option>
|
||||
</select>
|
||||
<input <#if 'Key'!=model.submitType>style="display:none"</#if> type="text" id="submitKey" name="submitKey" size="3" title="" value="${model.submitKey}"/>
|
||||
|
||||
</td>
|
||||
<th class="preSubmit" <#if 'None'==model.submitType>style="display:none"</#if> >
|
||||
<@locale code="apps.desktop.preSubmit" />:</th>
|
||||
<td class="preSubmit" <#if 'None'==model.submitType>style="display:none"</#if> >
|
||||
<input type="text" class="form-control" id="preSubmit" name="preSubmit" title="" value="${model.preSubmit}"/>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:15%;"><@locale code="apps.credential" />:</th>
|
||||
<td style="width:35%;">
|
||||
<input type="radio" id="credential-user-defined" name="credential" class="credential" value="3" <#if 3==model.credential>checked</#if> />
|
||||
<@locale code="apps.credential.user-defined" />
|
||||
<input type="radio" id="credential-shared" name="credential" class="credential" value="2" <#if 2==model.credential>checked</#if> />
|
||||
<@locale code="apps.credential.shared" />
|
||||
<input type="radio" id="credential-system" name="credential" class="credential" value="1" <#if 1==model.credential>checked</#if> />
|
||||
<@locale code="apps.credential.system" />
|
||||
|
||||
</td>
|
||||
<th style="width:15%;"></th>
|
||||
<td style="width:35%;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="systemconfigure" <#if 1!=model.credential> style="display:none"</#if> >
|
||||
<th><@locale code="apps.credential.system" />:</th>
|
||||
<td colspan="3">
|
||||
<select id="systemUserAttr" name="systemUserAttr" class="form-control">
|
||||
<option value="uid" <#if 'uid'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.id" /></option>
|
||||
<option value="employeeNumber" <#if 'employeeNumber'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.employeeNumber" /></option>
|
||||
<option value="username" <#if 'username'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.username" /></option>
|
||||
<option value="email" <#if 'email'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.email" /></option>
|
||||
<option value="windowsaccount" <#if 'windowsaccount'==model.systemUserAttr>selected</#if> ><@locale code="userinfo.windowsAccount" /></option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="sharedconfigure" <#if 2!=model.credential> style="display:none"</#if>>
|
||||
<th><@locale code="apps.credential.sharedUsername" />:</th>
|
||||
<td>
|
||||
<input type="text" class="form-control" id="sharedUsername" name="sharedUsername" value="${model.sharedUsername}" />
|
||||
|
||||
</td>
|
||||
<th ><@locale code="apps.credential.sharedPassword" />:</th>
|
||||
<td>
|
||||
<input type="text" class="form-control" id="sharedPassword" name="sharedPassword" value="${model.sharedPassword}" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody >
|
||||
<tr>
|
||||
<td colspan =4>
|
||||
<input class="button btn btn-primary mr-3" id="submitBtn" type="submit" value="<@locale code="button.text.save" />"/>
|
||||
<input class="button btn btn-secondary mr-3" id="backBtn" type="button" value="<@locale code="button.text.cancel" />"/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user