pixflow-upgrade-planning 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -59,7 +59,7 @@ class PixflowUpgradePlanning extends HTMLElement {
59
59
  }
60
60
 
61
61
  const device = await purchase_code.check_device_select();
62
- if(cep_manifest.get_link_market() || !device){
62
+ if(cep_manifest.get_link_market() || !device || JSON.parse(localStorage.getItem("init-data")).userData.subscription_data.free_subscription == true){
63
63
  this.querySelector("div.activate-code").classList.add("active");
64
64
  }
65
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixflow-upgrade-planning",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,17 @@
1
+ class PixflowUIGeneral extends HTMLElement {
2
+ constructor(){
3
+ super();
4
+ }
5
+
6
+ toggleActive(el){
7
+ this.parentNode.querySelectorAll(".active").forEach(function(element){
8
+ element.classList.remove("active");
9
+ });
10
+ try {
11
+ el.classList.add("active");
12
+ } catch(e) {}
13
+ }
14
+
15
+ }
16
+
17
+ module.exports = PixflowUIGeneral;
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "pixflow-ui-general",
3
+ "version": "1.0.1",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
@@ -74,7 +74,7 @@ pixflow-upgrade-planning > div.pixflow > p {
74
74
  }
75
75
 
76
76
  pixflow-upgrade-planning > div.pixflow > div.plan {
77
- display: flex;
77
+ display: none;
78
78
  justify-content: space-evenly;
79
79
  }
80
80
 
@@ -111,12 +111,11 @@ pixflow-upgrade-planning > div.pixflow > div.plan > div > div.active {
111
111
  div.activate-code-block {
112
112
  display: flex;
113
113
  flex-direction: column;
114
- position: absolute;
115
- top: calc(100vh - 100px);
116
114
  height: 100px;
117
115
  width: 100%;
118
116
  align-items: center;
119
117
  background: linear-gradient(180deg, rgba(12,12,12,0) 0%, rgba(12,12,12,1) 34%, rgba(12,12,12,1) 100%);
118
+ margin: 5em;
120
119
  }
121
120
 
122
121
  pixflow-upgrade-planning > div.pixflow button, pixflow-upgrade-planning > div.purchase-code > form > button {