-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into development
- Loading branch information
Showing
66 changed files
with
1,377 additions
and
523 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,89 @@ | ||
component { | ||
this.name = "cbwire"; | ||
this.version = "1.0.0"; | ||
this.author = ""; | ||
this.webUrl = "https://github.com/coldbox-modules/cbwire"; | ||
this.dependencies = []; | ||
this.entryPoint = "cbwire"; | ||
this.layoutParentLookup = false; | ||
this.viewParentLookup = false; | ||
this.cfmapping = "cbwire"; | ||
this.modelNamespace = "cbwire"; | ||
this.applicationHelper = [ "helpers/helpers.cfm" ]; | ||
|
||
this.name = "cbwire"; | ||
this.version = "1.0.0"; | ||
this.author = ""; | ||
this.webUrl = "https://github.com/coldbox-modules/cbwire"; | ||
this.dependencies = []; | ||
this.entryPoint = "cbwire"; | ||
this.layoutParentLookup = false; | ||
this.viewParentLookup = false; | ||
this.cfmapping = "cbwire"; | ||
this.modelNamespace = "cbwire"; | ||
this.applicationHelper = [ "helpers/helpers.cfm" ]; | ||
|
||
function configure(){ | ||
settings = { | ||
/** | ||
* Set to true to automatically include CSS and JS | ||
* assets for CBWIRE. This makes it where you do not | ||
* need to add wireStyles() and wireScripts() to your layout. | ||
*/ | ||
"autoInjectAssets": true, | ||
/** | ||
* Capture our module root for use throughout CBWIRE. | ||
*/ | ||
"moduleRootPath": getCanonicalPath( getCurrentTemplatePath().replaceNoCase( "/ModuleConfig.cfc", "", "one" ) ), | ||
/** | ||
* Set to true to throw a 'WireSetterNotFound' exception if | ||
* the incoming cbwire request tries to update a property | ||
* without a setter on our component. Otherwise, missing setters are ignored. | ||
*/ | ||
"throwOnMissingSetterMethod" : false, | ||
/** | ||
* The default folder name where your cbwire components are stored. | ||
* Defaults to 'wires' folder. | ||
*/ | ||
"componentLocation" : "wires", | ||
/** | ||
* Determines if Turbo should be enabled | ||
*/ | ||
"enableTurbo" : false, | ||
/** | ||
* Caching for single-file components to speed up response time. | ||
* Should be false for local development. | ||
*/ | ||
"cacheSingleFileComponents": false, | ||
/** | ||
* Trims string properties if set to true | ||
*/ | ||
"trimStringValues" : false | ||
}; | ||
function configure(){ | ||
settings = { | ||
/** | ||
* Set to true to automatically include CSS and JS | ||
* assets for CBWIRE. This makes it where you do not | ||
* need to add wireStyles() and wireScripts() to your layout. | ||
*/ | ||
"autoInjectAssets": true, | ||
/** | ||
* Capture our module root for use throughout CBWIRE. | ||
*/ | ||
"moduleRootPath": getCanonicalPath( getCurrentTemplatePath().replaceNoCase( "/ModuleConfig.cfc", "", "one" ) ), | ||
/** | ||
* Set to true to throw a 'WireSetterNotFound' exception if | ||
* the incoming cbwire request tries to update a property | ||
* without a setter on our component. Otherwise, missing setters are ignored. | ||
*/ | ||
"throwOnMissingSetterMethod" : false, | ||
/** | ||
* The default folder name where your cbwire components are stored. | ||
* Defaults to 'wires' folder. | ||
*/ | ||
"componentLocation" : "wires", | ||
/** | ||
* Determines if Turbo should be enabled | ||
*/ | ||
"enableTurbo" : false, | ||
/** | ||
* Caching for single-file components to speed up response time. | ||
* Should be false for local development. | ||
*/ | ||
"cacheSingleFileComponents": false, | ||
/** | ||
* Trims string properties if set to true | ||
*/ | ||
"trimStringValues" : false | ||
}; | ||
|
||
routes = [ | ||
{ | ||
"pattern" : "preview-file/:uploadUUID", | ||
"handler" : "Main", | ||
"action" : "previewFile" | ||
}, | ||
{ | ||
"pattern" : "upload", | ||
"handler" : "Main", | ||
"action" : "uploadFile" | ||
}, | ||
{ | ||
"pattern" : "update", | ||
"handler" : "Main", | ||
"action": "index" | ||
} | ||
]; | ||
routes = [ | ||
{ | ||
"pattern" : "preview-file/:uploadUUID", | ||
"handler" : "Main", | ||
"action" : "previewFile" | ||
}, | ||
{ | ||
"pattern" : "upload", | ||
"handler" : "Main", | ||
"action" : "uploadFile" | ||
}, | ||
{ | ||
"pattern" : "update", | ||
"handler" : "Main", | ||
"action": "index" | ||
} | ||
]; | ||
|
||
interceptorSettings = { | ||
customInterceptionPoints : [ | ||
"onCBWireMount", | ||
"onCBWireSubsequentRenderIt" | ||
] | ||
}; | ||
interceptors = [ | ||
// Init | ||
{ class : "#moduleMapping#.interceptors.CBWIRE" } | ||
]; | ||
|
||
interceptors = [ | ||
// Init | ||
{ class : "#moduleMapping#.interceptors.Reinit" }, | ||
// Security | ||
{ class : "#moduleMapping#.interceptors.hydrate.CheckIncomingRequestHeaders" }, | ||
// Mounting | ||
{ class : "#moduleMapping#.interceptors.ComponentMounting" }, | ||
// Rendering | ||
{ class : "#moduleMapping#.interceptors.SubsequentComponentRendering" }, | ||
{ class : "#moduleMapping#.interceptors.AutoInjectAssets" }, | ||
{ class : "#moduleMapping#.interceptors.Preprocessor" } | ||
]; | ||
} | ||
interceptorSettings = { | ||
customInterceptionPoints : [] | ||
}; | ||
} | ||
|
||
/** | ||
* Returns Livewire's manifest as a struct. | ||
*/ | ||
function getLivewireManifest(){ | ||
var path = getCanonicalPath( variables.modulePath & "/includes/js/manifest.json" ); | ||
return deserializeJSON( fileRead( path ) ); | ||
} | ||
/** | ||
* Returns Livewire's manifest as a struct. | ||
*/ | ||
function getLivewireManifest(){ | ||
var path = getCanonicalPath( variables.modulePath & "/includes/js/manifest.json" ); | ||
return deserializeJSON( fileRead( path ) ); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.