-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-3.6.0' into stable
- Loading branch information
Showing
10 changed files
with
176 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
component { | ||
property name="loginService" inject="LoginService"; | ||
|
||
private string function getAdditionalQueryStringForBuildAjaxListingLink( event, rc, prc, args={} ) { | ||
var qs = []; | ||
if ( Len( Trim( prc.activeRestUser ?: "" ) ) ) { | ||
ArrayAppend( qs, "subscriber=#prc.activeRestUser#" ); | ||
} | ||
if ( StructKeyExists( prc, "filterNamespace" ) ) { | ||
ArrayAppend( qs, "namespace=#prc.filterNamespace#" ); | ||
} | ||
return ArrayToList( qs, "&" ); | ||
} | ||
private void function preFetchRecordsForGridListing( event, rc, prc, args={} ) { | ||
args.extraFilters = args.extraFilters ?: []; | ||
|
||
if ( Len( Trim( rc.subscriber ?: "" ) ) ) { | ||
ArrayAppend( args.extraFilters, { filter={ subscriber=rc.subscriber } } ); | ||
} | ||
if ( StructKeyExists( rc, "namespace" ) ) { | ||
ArrayAppend( args.extraFilters, { filter={ namespace=rc.namespace } } ); | ||
} | ||
} | ||
|
||
private void function extraRecordActionsForGridListing( event, rc, prc, args={} ) { | ||
args.actions = args.actions ?: []; | ||
|
||
if ( Len( Trim( args.record.record_id ?: "" ) ) && Len( Trim( args.record.object_name ?: "" ) ) ) { | ||
for ( var action in args.actions ) { | ||
if ( ( action.contextKey ?: "" ) == "v" ) { | ||
action.link = event.buildAdminLink( objectName=args.record.object_name, recordId=args.record.record_id ); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
component { | ||
|
||
private string function default( event, rc, prc, args={} ){ | ||
var objName = args.data ?: ""; | ||
|
||
return Len( Trim( objName ) ) ? "#translateResource( uri="preside-objects.#objName#:title", defaultValue=objName )# (#objName#)" : ""; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiQueueListing=Data API queue listing | ||
apiQueueListing.breadcrumbTitle=API queue listing | ||
apiQueueListing.iconclass=fa-stream | ||
apiQueueListing.btn=Queue listing | ||
apiQueueListing.page.title=Data API queue listing | ||
apiQueueListing.page.subtitle=Manage API queue records | ||
apiQueueListing.alert.no.queue.user.msg=There are no rest user subscribe to API queue in your application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!---@feature admin and apiManager---> | ||
<cfoutput> | ||
<cfif isFeatureEnabled( "dataApiQueue" )> | ||
<div class="top-right-button-group"> | ||
<a class="pull-right btn btn-sm btn-info inline" href="#event.buildAdminLink( linkTo="dataApiManager.queueListing", querystring="apiRoute=#rc.id ?: ""#" )#"> | ||
<i class="fa fa-fw #translateResource( uri="cms:apiQueueListing.iconclass" )#"></i> | ||
#translateResource( uri="cms:apiQueueListing.btn" )# | ||
</a> | ||
</div> | ||
</cfif> | ||
|
||
#( prc.body ?: "" )# | ||
</cfoutput> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!---@feature admin and apiManager---> | ||
<cfscript> | ||
apis = prc.apis ?: []; | ||
configLinkBase = prc.configLinkBase ?: ""; | ||
</cfscript> | ||
|
||
<cfoutput> | ||
<cfif isFeatureEnabled( "dataApiQueue" )> | ||
<div class="top-right-button-group"> | ||
<a class="pull-right btn btn-sm btn-info inline" href="#event.buildAdminLink( linkTo="dataApiManager.queueListing" )#"> | ||
<i class="fa fa-fw #translateResource( uri="cms:apiQueueListing.iconclass" )#"></i> | ||
#translateResource( uri="cms:apiQueueListing.btn" )# | ||
</a> | ||
</div> | ||
</cfif> | ||
|
||
<cfinclude template="/preside/system/views/admin/apiManager/index.cfm" /> | ||
</cfoutput> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<cfscript> | ||
queueRestUsers = prc.queueRestUsers ?: QueryNew( "" ); | ||
activeRestUser = Len( Trim( prc.activeRestUser ?: "" ) ) ? prc.activeRestUser : ( queueRestUsers.id ?: "" ); | ||
apiRoute = rc.apiRoute ?: ""; | ||
gridFields = prc.gridFields ?: [ "queue_name", "object_name", "record_id", "operation", "order_number" ]; | ||
if ( isEmptyString( apiRoute ) && !ArrayFindNoCase( gridFields, "namespace" ) ) { | ||
ArrayPrepend( gridFields, "namespace" ) | ||
} | ||
</cfscript> | ||
|
||
<cfoutput> | ||
<cfif !queueRestUsers.recordcount> | ||
<p class="alert alert-warning"> | ||
<i class="fa fa-fw fa-exclamation-circle"></i> | ||
#translateResource( "cms:apiQueueListing.alert.no.queue.user.msg" )# | ||
</p> | ||
<cfelse> | ||
<div class="tabbable tabs-left"> | ||
<ul class="nav nav-tabs"> | ||
<cfloop query="#queueRestUsers#"> | ||
<li<cfif activeRestUser eq queueRestUsers.id> class="active"</cfif>> | ||
<a href="#event.buildAdminLink( | ||
linkto = "dataApiManager.queueListing" | ||
, queryString = "restUser=#queueRestUsers.id##Len( Trim( apiRoute ) ) ? "&apiRoute=#apiRoute#" : ""#" | ||
)#" >#queueRestUsers.name#</a> | ||
</li> | ||
</cfloop> | ||
</ul> | ||
|
||
<div class="tab-content"> | ||
<div id="tab-#activeRestUser#" class="tab-pane active"> | ||
#objectDataTable( objectName="data_api_queue", args={ | ||
gridFields = gridFields | ||
, allowDataExport = false | ||
, useMultiActions = false | ||
, compact = true | ||
} )# | ||
</div> | ||
</div> | ||
</div> | ||
</cfif> | ||
</cfoutput> |