-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathModuleConfig.cfc
88 lines (81 loc) · 2.76 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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" ];
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.
*/
"wiresLocation" : "wires",
/**
* Trims string properties if set to true
*/
"trimStringValues" : false,
/**
* Enables or disables the progress bar when using wire:navigate
*/
"showProgressBar": true,
/**
* The color of the progress bar when using wire:navigate
*/
"progressBarColor": "##2299dd"
};
routes = [
{
"pattern" : "preview-file/:uploadUUID",
"handler" : "Main",
"action" : "previewFile"
},
{
"pattern" : "upload",
"handler" : "Main",
"action" : "uploadFile"
},
{
"pattern" : "update",
"handler" : "Main",
"action": "index"
}
];
interceptors = [
// Init
{ class : "#moduleMapping#.interceptors.CBWIRE" }
];
interceptorSettings = {
customInterceptionPoints : []
};
}
/**
* Returns Livewire's manifest as a struct.
*/
function getLivewireManifest(){
var path = getCanonicalPath( variables.modulePath & "/includes/js/manifest.json" );
return deserializeJSON( fileRead( path ) );
}
}