Skip to content

Commit e8eea0b

Browse files
authored
Merge pull request #52 from coldbox-modules/development
- Renamed `renderView()` to `view` to be ColdBox 7 compliant now.
2 parents 20c226d + c9ce626 commit e8eea0b

File tree

7 files changed

+27
-17
lines changed

7 files changed

+27
-17
lines changed

box.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"ColdBox Security",
3-
"version":"3.4.2",
3+
"version":"3.4.3",
44
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbsecurity/@build.version@/[email protected]@.zip",
55
"author":"Ortus Solutions.com <[email protected]>",
66
"slug":"cbsecurity",
@@ -52,15 +52,15 @@
5252
"start:lucee":"server start [email protected]",
5353
"start:2018":"server start [email protected]",
5454
"start:2021":"server start [email protected]",
55-
"start:2023":"server start [email protected]",
55+
"start:2023":"server start [email protected]",
5656
"stop:lucee":"server stop [email protected]",
5757
"stop:2018":"server stop [email protected]",
5858
"stop:2021":"server stop [email protected]",
59-
"stop:2023":"server stop [email protected]",
59+
"stop:2023":"server stop [email protected]",
6060
"logs:lucee":"server log [email protected] --follow",
6161
"logs:2018":"server log [email protected] --follow",
6262
"logs:2021":"server log [email protected] --follow",
63-
"logs:2023":"server log [email protected] --follow"
63+
"logs:2023":"server log [email protected] --follow"
6464
},
6565
"installPaths":{
6666
"jwt-cfml":"modules/jwtcfml/",

build/Build.cfc

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ component {
1212
variables.cwd = getCWD().reReplace( "\.$", "" );
1313
variables.artifactsDir = cwd & "/.artifacts";
1414
variables.buildDir = cwd & "/.tmp";
15+
variables.apidDocsDir = variables.buildDir & "/apidocs";
1516
variables.apiDocsURL = "http://localhost:60299/apidocs/";
1617
variables.testRunner = "http://localhost:60299/tests/runner.cfm";
1718

@@ -31,7 +32,8 @@ component {
3132
// Cleanup + Init Build Directories
3233
[
3334
variables.buildDir,
34-
variables.artifactsDir
35+
variables.artifactsDir,
36+
variables.apidDocsDir
3537
].each( function( item ){
3638
if ( directoryExists( item ) ) {
3739
directoryDelete( item, true );

changelog.md

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
### Fixed
1717

18+
- Renamed `renderView()` to `view` to be ColdBox 7 compliant now.
19+
20+
## [3.4.2] - 2024-01-10
21+
22+
## [3.4.1] - 2023-08-09
23+
24+
### Fixed
25+
1826
- Markdown rules updated to fix duplicate headers
1927
- Updated security logs columns to work in Oracle as `clob`
2028
- `cbsecurity_logs` is hard coded instead of using module setting

layouts/Main.cfm

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
</nav>
7777

7878
<div class="container-fluid m-2 mt-4 mb-5">
79-
#renderView()#
79+
#view()#
8080
</div>
8181

8282
<!--- Scripts --->

[email protected]

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name":"cbsecurity-adobe@2023",
33
"app":{
44
"serverHomeDirectory":".engine/adobe2023",
5-
"cfengine":"adobe@2023.0.0-beta.1"
5+
"cfengine":"adobe@2023"
66
},
77
"web":{
88
"http":{

test-harness/layouts/Main.cfm

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<cfoutput>
22
<h1>Module Tester</h1>
33
<div>
4-
#renderView()#
4+
#view()#
55
</div>
6-
</cfoutput>
6+
</cfoutput>

views/home/index.cfm

+8-8
Original file line numberDiff line numberDiff line change
@@ -137,49 +137,49 @@
137137

138138
<div class="tab-content w-100 ms-5 me-2">
139139
<div class="tab-pane fade show active" id="activity-pane" role="tabpanel" aria-labelledby="activity-tab" tabindex="0">
140-
#renderView(
140+
#view(
141141
view = "home/tabs/activity",
142142
module = "cbsecurity"
143143
)#
144144
</div>
145145
<div class="tab-pane fade show" id="authentication-pane" role="tabpanel" aria-labelledby="authentication-tab" tabindex="0">
146-
#renderView(
146+
#view(
147147
view = "home/tabs/authentication",
148148
module = "cbsecurity"
149149
)#
150150
</div>
151151
<div class="tab-pane fade show" id="basicAuth-pane" role="tabpanel" aria-labelledby="basicAuth-tab" tabindex="0">
152-
#renderView(
152+
#view(
153153
view = "home/tabs/basicAuth",
154154
module = "cbsecurity"
155155
)#
156156
</div>
157157
<div class="tab-pane fade show" id="csrf-pane" role="tabpanel" aria-labelledby="csrf-tab" tabindex="0">
158-
#renderView(
158+
#view(
159159
view = "home/tabs/csrf",
160160
module = "cbsecurity"
161161
)#
162162
</div>
163163
<div class="tab-pane fade show" id="firewall-pane" role="tabpanel" aria-labelledby="firewall-tab" tabindex="0">
164-
#renderView(
164+
#view(
165165
view = "home/tabs/firewall",
166166
module = "cbsecurity"
167167
)#
168168
</div>
169169
<div class="tab-pane fade show" id="rules-pane" role="tabpanel" aria-labelledby="rules-tab" tabindex="0">
170-
#renderView(
170+
#view(
171171
view = "home/tabs/rules",
172172
module = "cbsecurity"
173173
)#
174174
</div>
175175
<div class="tab-pane fade show" id="jwt-pane" role="tabpanel" aria-labelledby="jwt-tab" tabindex="0">
176-
#renderView(
176+
#view(
177177
view = "home/tabs/jwt",
178178
module = "cbsecurity"
179179
)#
180180
</div>
181181
<div class="tab-pane fade show" id="security-headers-pane" role="tabpanel" aria-labelledby="security-headers-tab" tabindex="0">
182-
#renderView(
182+
#view(
183183
view = "home/tabs/security-headers",
184184
module = "cbsecurity"
185185
)#

0 commit comments

Comments
 (0)