Skip to content

Commit dd54ff7

Browse files
author
Rafael Grigorian
committed
Fixed GH-73
1 parent 7ca853a commit dd54ff7

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

package.xml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package>
33
<date>2018-06-27</date>
4-
<time>12:46:01</time>
4+
<time>12:55:53</time>
55
<version>1.0.0</version>
66
<contents>
77
<target name="magecommunity">
@@ -38,16 +38,16 @@
3838
<dir name="SslController.php" hash="65ed76a240167c40d809f29ed86ac338"/>
3939
<dir name="Tls13Controller.php" hash="704c46bf4db3037e4a81686ef776f94e"/>
4040
</dir>
41-
<dir name="Dns">
42-
<dir name="CloudflareNameserversController.php" hash="de0dbecb4baf89d7c5ce37f0dae8f7ad"/>
43-
<dir name="DnsRecordsController.php" hash="966b3a5e42f6b79898edbd183fa32461"/>
44-
</dir>
4541
<dir name="Firewall">
4642
<dir name="AccessRulesController.php" hash="f2454cfe250cacf1a171055a4ad5ad0d"/>
4743
<dir name="ChallengePassageController.php" hash="8ed38de3c3b0fad63d7849df32e2249f"/>
4844
<dir name="SecurityLevelController.php" hash="a98061a3e73f53ce4f80acf6048c27ac"/>
4945
<dir name="UserAgentBlockingController.php" hash="56e88562fddc5e49f68758ea9b7bf4c4"/>
5046
</dir>
47+
<dir name="Dns">
48+
<dir name="CloudflareNameserversController.php" hash="de0dbecb4baf89d7c5ce37f0dae8f7ad"/>
49+
<dir name="DnsRecordsController.php" hash="966b3a5e42f6b79898edbd183fa32461"/>
50+
</dir>
5151
<dir name="Network">
5252
<dir name="Http2Controller.php" hash="825798572e555bab0c787e50fecc1e23"/>
5353
<dir name="IpGeolocationController.php" hash="a9a4e8f065afa5f3e814bf04f03e86a7"/>
@@ -95,13 +95,6 @@
9595
<dir name="PageGetter.php" hash="6d251bb3712ceff4d1ef1ddeffd178ae"/>
9696
<dir name="Request.php" hash="dd4db11fb957d79be6568949c3e67c0e"/>
9797
<dir name="Setter.php" hash="2dc6f66fb656b7cb8a7d65b4adc26d33"/>
98-
<dir name="Caching">
99-
<dir name="AlwaysOnline.php" hash="0204885c4ade41cca61410d9ce82f715"/>
100-
<dir name="BrowserCacheExpiration.php" hash="bd41074f07281e9c1562b5583380d981"/>
101-
<dir name="CachingLevel.php" hash="d9e0cbe306812a0c82063237b52202d9"/>
102-
<dir name="DevelopmentMode.php" hash="c4127f2bff6018154d8d625d28a446ee"/>
103-
<dir name="PurgeCache.php" hash="c413c455ed036d6cd1efb335d2c9ffb6"/>
104-
</dir>
10598
<dir name="Crypto">
10699
<dir name="AlwaysUseHttps.php" hash="f5b62f6f627edf83485501b89207f543"/>
107100
<dir name="AuthenticatedOriginPulls.php" hash="669b9bbb8e919b07b21bbb727320de94"/>
@@ -114,6 +107,13 @@
114107
<dir name="Ssl.php" hash="3fe60a7b6046edce68a35fcdee460557"/>
115108
<dir name="Tls13.php" hash="cfb2536708367ca4abfa4eed2e6a336c"/>
116109
</dir>
110+
<dir name="Caching">
111+
<dir name="AlwaysOnline.php" hash="0204885c4ade41cca61410d9ce82f715"/>
112+
<dir name="BrowserCacheExpiration.php" hash="bd41074f07281e9c1562b5583380d981"/>
113+
<dir name="CachingLevel.php" hash="d9e0cbe306812a0c82063237b52202d9"/>
114+
<dir name="DevelopmentMode.php" hash="c4127f2bff6018154d8d625d28a446ee"/>
115+
<dir name="PurgeCache.php" hash="c413c455ed036d6cd1efb335d2c9ffb6"/>
116+
</dir>
117117
<dir name="Dns">
118118
<dir name="CloudflareNameservers.php" hash="c00d418680fae6c13ab9d9716598dbb1"/>
119119
<dir name="DnsRecords.php" hash="bede95054d21264ac29df86e0ce7001c"/>
@@ -201,7 +201,7 @@
201201
</dir>
202202
<dir name="dns">
203203
<dir name="cloudflare_nameservers.phtml" hash="535d4680fb467dff4f9e1aa99c664324"/>
204-
<dir name="dns_records.phtml" hash="fc6802e50e399baa59a1d115991d3ed3"/>
204+
<dir name="dns_records.phtml" hash="9ae098b2fb3c336f0db799dd0b003e7e"/>
205205
</dir>
206206
<dir name="firewall">
207207
<dir name="access_rules.phtml" hash="9cddb7da06c8e13426c8b2c8a09e37e3"/>
@@ -251,14 +251,6 @@
251251
<dir name="adminhtml">
252252
<dir name="base">
253253
<dir name="default">
254-
<dir name="css">
255-
<dir name="cloudflare">
256-
<dir name="bundle.min.css" hash="4059a49682fcc51f9609fbb8af8b017b"/>
257-
<dir name="fonts">
258-
<dir name="cloudflare-font.woff" hash="23613915553427be651a4781521f0ec9"/>
259-
</dir>
260-
</dir>
261-
</dir>
262254
<dir name="images">
263255
<dir name="cloudflare">
264256
<dir name="cloudflare.svg" hash="e7bcf4c627debf23d51cf96418cdf130"/>
@@ -269,6 +261,14 @@
269261
<dir name="search.svg" hash="b83bec273c1f0f3e5b009d8bdf733fac"/>
270262
</dir>
271263
</dir>
264+
<dir name="css">
265+
<dir name="cloudflare">
266+
<dir name="bundle.min.css" hash="8a9b5c81c0f4a641bfbc60d26e57f8f9"/>
267+
<dir name="fonts">
268+
<dir name="cloudflare-font.woff" hash="23613915553427be651a4781521f0ec9"/>
269+
</dir>
270+
</dir>
271+
</dir>
272272
<dir name="js">
273273
<dir name="cloudflare">
274274
<dir name="bundle.min.js" hash="2b593a7e02d39d405200050751db76fe"/>

src/app/design/adminhtml/base/default/template/cloudflare/dns/dns_records.phtml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<option value="txt" >TXT</option>
2929
<option value="ns" >NS</option>
3030
<option value="caa" >CAA</option>
31+
<option value="ptr" >PTR</option>
3132
</select>
3233
<div class="active" data-dynamic-wrapper="a" >
3334
<input type="text" placeholder="Name" name="name" />
@@ -69,6 +70,10 @@
6970
<input type="text" placeholder="Name" name="name" />
7071
<input type="text" placeholder="Click to configure" name="content" class="show-form-caa" />
7172
</div>
73+
<div data-dynamic-wrapper="ptr" >
74+
<input type="text" placeholder="Name" name="name" />
75+
<input type="text" placeholder="Domain Name" name="content" />
76+
</div>
7277
<select class="ttl" >
7378
<option value="1" selected >Automatic TTL</option>
7479
<option value="120" >2 minutes</option>

src/skin/adminhtml/base/default/js/cloudflare/dns/dns_records.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,13 @@ $(document).on ( "cloudflare.dns.dns_records.export", function ( event, data ) {
539539
success: function ( response ) {
540540
let blob = new Blob ( [ response ], { type: "octet/stream" } )
541541
let url = window.URL.createObjectURL ( blob )
542-
let a = document.createElement ("a")
543-
document.body.appendChild ( a )
544-
a.style = "display: none"
545-
a.href = url
546-
a.download = global.getDomainName () + ".txt"
547-
a.click ()
548-
window.URL.revokeObjectURL ( url )
542+
let a = document.createElement ("a")
543+
document.body.appendChild ( a )
544+
a.style = "display: none"
545+
a.href = url
546+
a.download = global.getDomainName () + ".txt"
547+
a.click ()
548+
window.URL.revokeObjectURL ( url )
549549
$(data.section).removeClass ("loading")
550550
}
551551
})

src/skin/adminhtml/base/default/scss/cloudflare/elements/table.scss

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ section.cloudflare {
4646
text-overflow: ellipsis;
4747
&.type_cfns { border-left: solid 2px $color-blue; color: $color-text_gray_dark; }
4848
&.type_a { border-left: solid 2px $color-text_gray_dark; color: $color-text_gray_dark; }
49+
&.type_ptr { border-left: solid 2px $color-text_gray_dark; color: $color-text_gray_dark; }
4950
&.type_aaaa { border-left: solid 2px $color-text_gray_light; color: $color-text_gray_light; }
5051
&.type_cname { border-left: solid 2px #FF7900; color: #FF7900; }
5152
&.type_mx { border-left: solid 2px #D91698; color: #D91698; }
@@ -155,6 +156,7 @@ section.cloudflare {
155156
&.type_cname:before { content: "is an alias of " }
156157
&.type_mx:before { content: "mail handled by " }
157158
&.type_ns:before { content: "managed by " }
159+
&.type_ptr:before { content: "points to " }
158160
&:hover {
159161
border-color: #BCBCBC;
160162
border-style: dashed;
@@ -172,13 +174,6 @@ section.cloudflare {
172174
&.status {
173175
cursor: pointer;
174176
}
175-
176-
// &.type { width: 75px }
177-
// &.name { max-width: 230px }
178-
// &.value { max-width: 200px }
179-
// &.ttl { max-width: 200px }
180-
// &.status { max-width: 200px }
181-
// &.delete { max-width: 37px }
182177
}
183178
}
184179
}

0 commit comments

Comments
 (0)