Skip to content

Commit 7895163

Browse files
author
Rafael Grigorian
authored
Released Version 1.1.0
Fixed #2, Fixed #3, Fixed #4 (#7)
1 parent 2e5cf26 commit 7895163

File tree

204 files changed

+1755
-470
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+1755
-470
lines changed

.gitignore

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
# Files
12
.DS_Store
2-
/.docker-sync/
3-
/node_modules/
4-
/build/
5-
/dist/
6-
/public_html/
7-
/Gemfile.lock
8-
/_*/
9-
/.sass-cache/
10-
/assets/
3+
*.tar.gz
4+
5+
# Directories
6+
.docker-sync
7+
node_modules
8+
build
9+
dist
10+
public_html

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
> Interact with popular Cloudflare features though Magento's backend portal.
33
44
![](https://img.shields.io/badge/License-MIT-orange.svg?style=for-the-badge)
5-
![](https://img.shields.io/badge/Version-1.0.0-orange.svg?style=for-the-badge)
5+
![](https://img.shields.io/badge/Version-1.1.0-orange.svg?style=for-the-badge)
66
![](https://img.shields.io/badge/Stability-Stable-orange.svg?style=for-the-badge)
77
![](https://img.shields.io/badge/Magento-2-orange.svg?style=for-the-badge)
88

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jetrails/magento2-cloudflare",
33
"description": "Interact with popular Cloudflare features though Magento's backend portal",
44
"type": "magento2-module",
5-
"version": "1.0.0",
5+
"version": "1.1.0",
66
"license": "MIT",
77
"authors": [
88
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0",
2+
"version": "1.1.0",
33
"name": "magento2-cloudflare",
44
"description": "Interact with popular Cloudflare features though Magento's backend portal",
55
"author": "Rafael Grigorian",

src/app/code/JetRails/Cloudflare/Block/Adminhtml/Dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* methods that load and render tab contents. It also contains methods that
1515
* help determine if the current store is configured with the supplied
1616
* Cloudflare account.
17-
* @version 1.0.0
17+
* @version 1.1.0
1818
* @package JetRails® Cloudflare
1919
* @author Rafael Grigorian <[email protected]>
2020
* @copyright © 2018 JETRAILS, All rights reserved

src/app/code/JetRails/Cloudflare/Block/Adminhtml/Dashboard/Section.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* folder. This block class has methods that give the template access to a
1414
* valid form key for AJAX communications. This block class also returns a
1515
* custom endpoint for every section based on the binded template's path.
16-
* @version 1.0.0
16+
* @version 1.1.0
1717
* @package JetRails® Cloudflare
1818
* @author Rafael Grigorian <[email protected]>
1919
* @copyright © 2018 JETRAILS, All rights reserved
@@ -50,25 +50,23 @@ public function getFormKey () {
5050

5151
/**
5252
* This method uses the data helper to get the currently saved
53-
* authentication email address. If non exists, then empty string is
53+
* authentication zone id. If non exists, then empty string is
5454
* used.
55-
* @return string Returns saved auth email
55+
* @return string Returns saved auth zone
5656
*/
57-
public function getAuthEmail () {
58-
$email = $this->_dataHelper->getAuthEmail ();
59-
return empty ( $email ) ? "" : $email;
57+
public function getAuthZone () {
58+
$zone = $this->_dataHelper->getAuthZone ();
59+
return empty ( $zone ) ? "" : $zone;
6060
}
6161

6262
/**
63-
* This method looks at the currently saved email address and token, it
64-
* then attempts to authenticate these values and return the state of
63+
* This method looks at the currently saved zone id and token, it then
64+
* attempts to authenticate these values and return the state of
6565
* authentication in the form of a state string.
6666
* @return string Returns if auth is valid
6767
*/
6868
public function getValidationState () {
69-
$email = $this->_dataHelper->getAuthEmail ();
70-
$token = $this->_dataHelper->getAuthToken ();
71-
$state = $this->_configurationModel->validateAuth ( $email, $token );
69+
$state = $this->_configurationModel->validateAuth ();
7270
return $state ? "Valid" : "Invalid";
7371
}
7472

src/app/code/JetRails/Cloudflare/Block/Adminhtml/Dashboard/Tab.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This block class is used for tab template files. These template files
1313
* use this block's helper methods in order to render all the sections that
1414
* belong to said tab.
15-
* @version 1.0.0
15+
* @version 1.1.0
1616
* @package JetRails® Cloudflare
1717
* @author Rafael Grigorian <[email protected]>
1818
* @copyright © 2018 JETRAILS, All rights reserved

src/app/code/JetRails/Cloudflare/Controller/Adminhtml/Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This is a generic controller that is used within other controller classes
1313
* in this module. It supplies many helper methods that the child classes
1414
* can use which simplify the code.
15-
* @version 1.0.0
15+
* @version 1.1.0
1616
* @package JetRails® Cloudflare
1717
* @author Rafael Grigorian <[email protected]>
1818
* @copyright © 2018 JETRAILS, All rights reserved

src/app/code/JetRails/Cloudflare/Controller/Adminhtml/Api/Caching/AlwaysOnline/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* base functionality for interfacing with a getter model. This action
1010
* simply loads the initial value through the Cloudflare API. The rest of
1111
* this class extends on that functionality and adds more endpoints.
12-
* @version 1.0.0
12+
* @version 1.1.0
1313
* @package JetRails® Cloudflare
1414
* @author Rafael Grigorian <[email protected]>
1515
* @copyright © 2018 JETRAILS, All rights reserved

src/app/code/JetRails/Cloudflare/Controller/Adminhtml/Api/Caching/AlwaysOnline/Toggle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* simply loads the initial value through the Cloudflare API as well as
1111
* gives the ability to change the value of said section to be on or off
1212
* though the 'toggle' action.
13-
* @version 1.0.0
13+
* @version 1.1.0
1414
* @package JetRails® Cloudflare
1515
* @author Rafael Grigorian <[email protected]>
1616
* @copyright © 2018 JETRAILS, All rights reserved

0 commit comments

Comments
 (0)