Skip to content

Commit b76aef2

Browse files
author
Rafael Grigorian
committed
Fixed #23
1 parent c51c6dd commit b76aef2

File tree

12 files changed

+29
-30
lines changed

12 files changed

+29
-30
lines changed

src/app/code/JetRails/Cloudflare/view/adminhtml/templates/caching/caching_level.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<section
2-
class="cloudflare caching development_mode initialize loading"
2+
class="cloudflare caching caching_level initialize loading"
33
data-endpoint="<?php echo $block->getApiEndpoint () ?>"
44
data-form-key="<?php echo $block->getFormKey () ?>"
55
data-tab-name="caching"

src/app/code/JetRails/Cloudflare/view/adminhtml/templates/page_rules/page_rules.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<div class="row" >
88
<div class="wrapper_left" >
99
<span class="section_title" >Page Rules</span>
10-
<p><strong>You have <span id="rules_left" >0</span> Page Rules left</strong>. <a target="_blank" href="https://support.cloudflare.com/hc/en-us/articles/225894428-How-To-Buy-Additional-Page-Rules" >Buy More Page Rules</a></p>
1110
<p>Page Rules let you control which Cloudflare settings trigger on a given URL. Only one Page Rule will trigger per URL, so it is helpful if you sort Page Rules in priority order, and make your URL patterns as specific as possible.</p>
11+
<p><strong>You have <span id="rules_left" >0</span> Page Rules left</strong>. <a target="_blank" href="https://support.cloudflare.com/hc/en-us/articles/225894428-How-To-Buy-Additional-Page-Rules" >Buy More Page Rules</a></p>
1212
</div>
1313
<div class="wrapper_right" >
1414
<div>

src/app/code/JetRails/Cloudflare/view/adminhtml/web/css/bundle.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/bundle.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11145,7 +11145,7 @@ module.exports = {
1114511145
/***/ (function(module, exports, __webpack_require__) {
1114611146

1114711147
const $ = __webpack_require__ (0)
11148-
const cloudflare = __webpack_require__ (3)
11148+
const common = __webpack_require__ (3)
1114911149
const notification = __webpack_require__ (2)
1115011150

1115111151
function initialize ( event, data ) {
@@ -11167,7 +11167,7 @@ function update ( event, data ) {
1116711167
}
1116811168
else {
1116911169
let targetSection = `${data.target.tab}.${data.target.section}`
11170-
cloudflare.loadSections (`.cloudflare.${targetSection}`)
11170+
common.loadSections (`.cloudflare.${targetSection}`)
1117111171
}
1117211172
}
1117311173
})
@@ -12142,7 +12142,7 @@ return $.widget;
1214212142

1214312143
const $ = __webpack_require__ (0)
1214412144
const notification = __webpack_require__ (2)
12145-
const cloudflare = __webpack_require__ (3)
12145+
const common = __webpack_require__ (3)
1214612146
const global = __webpack_require__ (7)
1214712147
const requireAll = ( r ) => { r.keys ().forEach ( r ) }
1214812148

@@ -12181,7 +12181,7 @@ $(window).on ( "load", function () {
1218112181
oldAjax.apply ( null, arguments )
1218212182
}
1218312183

12184-
cloudflare.loadSections (".overview")
12184+
common.loadSections (".overview")
1218512185

1218612186
$(".proxied").each ( ( index ) => {
1218712187
$(this).data ( "value", /proxied_on/.test ( $(this).attr ("src") ) )
@@ -12280,7 +12280,7 @@ $(document).on ( "click", ".cloudflare-dashboard ul.tabs li", function () {
1228012280
$(`.cloudflare-dashboard .content[data-target='${target}']`).addClass ("selected")
1228112281
$(this).addClass ("selected")
1228212282
$(`.initialize.${target}`).addClass ("loading")
12283-
cloudflare.loadSections (`.${target}`)
12283+
common.loadSections (`.${target}`)
1228412284
})
1228512285

1228612286

@@ -12427,6 +12427,7 @@ $(document).on ( "cloudflare.caching.browser_cache_expiration.update", selectEle
1242712427

1242812428
const $ = __webpack_require__ (0)
1242912429
const notification = __webpack_require__ (2)
12430+
const common = __webpack_require__ (3)
1243012431

1243112432
$(document).on ( "cloudflare.caching.caching_level.initialize", ( event, data ) => {
1243212433
var label = data.response.result.value
@@ -12442,7 +12443,7 @@ $(document).on ( "cloudflare.caching.caching_level.update", ( event, data ) => {
1244212443
data: { "form_key": data.form.key, "value": newValue },
1244312444
success: ( response ) => {
1244412445
notification.showMessages ( response )
12445-
$(data.section).removeClass ("loading")
12446+
common.loadSections (".caching_level")
1244612447
}
1244712448
})
1244812449
})
@@ -12914,7 +12915,6 @@ webpackContext.id = 31;
1291412915
/***/ (function(module, exports, __webpack_require__) {
1291512916

1291612917
const $ = __webpack_require__ (0)
12917-
const cloudflare = __webpack_require__ (3)
1291812918
const notification = __webpack_require__ (2)
1291912919
const common = __webpack_require__ (3)
1292012920

@@ -13084,7 +13084,6 @@ $(document).on ( "cloudflare.dns.cloudflare_nameservers.initialize", function (
1308413084
/***/ (function(module, exports, __webpack_require__) {
1308513085

1308613086
const $ = __webpack_require__ (0)
13087-
const cloudflare = __webpack_require__ (3)
1308813087
const common = __webpack_require__ (3)
1308913088
const notification = __webpack_require__ (2)
1309013089
const modal = __webpack_require__ (5)
@@ -13330,7 +13329,7 @@ $(document).on ( "cloudflare.dns.dns_records.create", function ( event, data ) {
1333013329
if ( response.success ) {
1333113330
$(data.section).find ("[name='name'],[name='content']").val ("")
1333213331
$(data.section).addClass ("loading")
13333-
cloudflare.loadSections (".dns.dns_records")
13332+
common.loadSections (".dns.dns_records")
1333413333
}
1333513334
}
1333613335
})
@@ -13679,7 +13678,7 @@ $(document).on ( "cloudflare.dns.dns_records.upload", function ( event, data ) {
1367913678
if ( response.success && response.result.recs_added == response.result.total_records_parsed ) {
1368013679
prompt.close ()
1368113680
$(data.section).addClass ("loading")
13682-
cloudflare.loadSections (".dns.dns_records")
13681+
common.loadSections (".dns.dns_records")
1368313682
}
1368413683
else if ( response.success ) {
1368513684
$(prompt.components.modal).removeClass ("loading")
@@ -13691,7 +13690,7 @@ $(document).on ( "cloudflare.dns.dns_records.upload", function ( event, data ) {
1369113690
$(messagesContainer).append ( $("<div>").text ( message.message ) )
1369213691
})
1369313692
if ( response.result.recs_added > 0 ) {
13694-
cloudflare.loadSections (".dns.dns_records")
13693+
common.loadSections (".dns.dns_records")
1369513694
}
1369613695
}
1369713696
else {
@@ -13824,7 +13823,6 @@ webpackContext.id = 42;
1382413823
/***/ (function(module, exports, __webpack_require__) {
1382513824

1382613825
const $ = __webpack_require__ (0)
13827-
const cloudflare = __webpack_require__ (3)
1382813826
const common = __webpack_require__ (3)
1382913827
const notification = __webpack_require__ (2)
1383013828
const modal = __webpack_require__ (5)

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/caching/caching_level.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const $ = require ("jquery")
22
const notification = require ("cloudflare/core/notification")
3+
const common = require ("cloudflare/common")
34

45
$(document).on ( "cloudflare.caching.caching_level.initialize", ( event, data ) => {
56
var label = data.response.result.value
@@ -15,7 +16,7 @@ $(document).on ( "cloudflare.caching.caching_level.update", ( event, data ) => {
1516
data: { "form_key": data.form.key, "value": newValue },
1617
success: ( response ) => {
1718
notification.showMessages ( response )
18-
$(data.section).removeClass ("loading")
19+
common.loadSections (".caching_level")
1920
}
2021
})
2122
})

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/dns/dns_records.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const $ = require ("jquery")
2-
const cloudflare = require ("cloudflare/common")
32
const common = require ("cloudflare/common")
43
const notification = require ("cloudflare/core/notification")
54
const modal = require ("cloudflare/core/modal")
@@ -245,7 +244,7 @@ $(document).on ( "cloudflare.dns.dns_records.create", function ( event, data ) {
245244
if ( response.success ) {
246245
$(data.section).find ("[name='name'],[name='content']").val ("")
247246
$(data.section).addClass ("loading")
248-
cloudflare.loadSections (".dns.dns_records")
247+
common.loadSections (".dns.dns_records")
249248
}
250249
}
251250
})
@@ -594,7 +593,7 @@ $(document).on ( "cloudflare.dns.dns_records.upload", function ( event, data ) {
594593
if ( response.success && response.result.recs_added == response.result.total_records_parsed ) {
595594
prompt.close ()
596595
$(data.section).addClass ("loading")
597-
cloudflare.loadSections (".dns.dns_records")
596+
common.loadSections (".dns.dns_records")
598597
}
599598
else if ( response.success ) {
600599
$(prompt.components.modal).removeClass ("loading")
@@ -606,7 +605,7 @@ $(document).on ( "cloudflare.dns.dns_records.upload", function ( event, data ) {
606605
$(messagesContainer).append ( $("<div>").text ( message.message ) )
607606
})
608607
if ( response.result.recs_added > 0 ) {
609-
cloudflare.loadSections (".dns.dns_records")
608+
common.loadSections (".dns.dns_records")
610609
}
611610
}
612611
else {

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/firewall/access_rules.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const $ = require ("jquery")
2-
const cloudflare = require ("cloudflare/common")
32
const common = require ("cloudflare/common")
43
const notification = require ("cloudflare/core/notification")
54
const modal = require ("cloudflare/core/modal")

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/generic/select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const $ = require ("jquery")
2-
const cloudflare = require ("cloudflare/common")
2+
const common = require ("cloudflare/common")
33
const notification = require ("cloudflare/core/notification")
44

55
function initialize ( event, data ) {
@@ -21,7 +21,7 @@ function update ( event, data ) {
2121
}
2222
else {
2323
let targetSection = `${data.target.tab}.${data.target.section}`
24-
cloudflare.loadSections (`.cloudflare.${targetSection}`)
24+
common.loadSections (`.cloudflare.${targetSection}`)
2525
}
2626
}
2727
})

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const $ = require ("jquery")
22
const notification = require ("cloudflare/core/notification")
3-
const cloudflare = require ("cloudflare/common")
3+
const common = require ("cloudflare/common")
44
const global = require ("cloudflare/global")
55
const requireAll = ( r ) => { r.keys ().forEach ( r ) }
66

@@ -39,7 +39,7 @@ $(window).on ( "load", function () {
3939
oldAjax.apply ( null, arguments )
4040
}
4141

42-
cloudflare.loadSections (".overview")
42+
common.loadSections (".overview")
4343

4444
$(".proxied").each ( ( index ) => {
4545
$(this).data ( "value", /proxied_on/.test ( $(this).attr ("src") ) )
@@ -138,5 +138,5 @@ $(document).on ( "click", ".cloudflare-dashboard ul.tabs li", function () {
138138
$(`.cloudflare-dashboard .content[data-target='${target}']`).addClass ("selected")
139139
$(this).addClass ("selected")
140140
$(`.initialize.${target}`).addClass ("loading")
141-
cloudflare.loadSections (`.${target}`)
141+
common.loadSections (`.${target}`)
142142
})

0 commit comments

Comments
 (0)