draply-dev 1.5.6 → 1.5.7
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/bin/cli.js +2 -2
- package/package.json +25 -25
- package/src/overlay.js +1 -1
package/bin/cli.js
CHANGED
|
@@ -134,7 +134,7 @@ const MARKER = 'data-ps-done="1"';
|
|
|
134
134
|
function injectOverlay(html) {
|
|
135
135
|
if (html.includes(MARKER)) return html;
|
|
136
136
|
|
|
137
|
-
let isPro =
|
|
137
|
+
let isPro = true; // Forced to true temporarily for dev
|
|
138
138
|
const cfg = loadConfig();
|
|
139
139
|
if (cfg.draplyToken) {
|
|
140
140
|
try {
|
|
@@ -143,7 +143,7 @@ function injectOverlay(html) {
|
|
|
143
143
|
const payloadBase64 = payloadBase64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
144
144
|
const payloadJson = Buffer.from(payloadBase64, 'base64').toString('utf8');
|
|
145
145
|
const payload = JSON.parse(payloadJson);
|
|
146
|
-
isPro = payload.isPro === true;
|
|
146
|
+
// isPro = payload.isPro === true;
|
|
147
147
|
}
|
|
148
148
|
} catch(e) {}
|
|
149
149
|
}
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name":
|
|
3
|
-
"version":
|
|
4
|
-
"description":
|
|
5
|
-
"author":
|
|
6
|
-
"type":
|
|
7
|
-
"bin":
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"files":
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"keywords":
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"license":
|
|
24
|
-
"engines":
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
"name": "draply-dev",
|
|
3
|
+
"version": "1.5.7",
|
|
4
|
+
"description": "Visual overlay for any frontend project — move, resize, restyle live in the browser, save to CSS",
|
|
5
|
+
"author": "Arman",
|
|
6
|
+
"type": "commonjs",
|
|
7
|
+
"bin": {
|
|
8
|
+
"draply": "./bin/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin/",
|
|
12
|
+
"src/"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"css",
|
|
16
|
+
"visual-editor",
|
|
17
|
+
"frontend",
|
|
18
|
+
"overlay",
|
|
19
|
+
"design-tool",
|
|
20
|
+
"no-code",
|
|
21
|
+
"drag-and-drop"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=16.0.0"
|
|
26
|
+
}
|
|
27
27
|
}
|
package/src/overlay.js
CHANGED
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
<div id="__pw_tool_name__" style="color:#5cdb4f;font-size:24px;font-weight:800;margin-bottom:16px;letter-spacing:.5px;position:relative"></div>
|
|
799
799
|
<div style="color:#a0a0b8;font-size:13px;line-height:1.6;margin-bottom:32px;position:relative">Inspect, Resize, Colors, Typography and Assets are available in <span style="color:#5cdb4f;font-weight:600">Draply Pro</span>.<br><br>Select and Move are always free.</div>
|
|
800
800
|
<div style="position:relative;display:flex;flex-direction:column;gap:12px">
|
|
801
|
-
<a id="__pw_upgrade__" href="
|
|
801
|
+
<a id="__pw_upgrade__" href="https://draply.dev" target="_blank" style="background:#5cdb4f;color:#131313;border:none;border-radius:10px;padding:14px;font-size:13px;font-weight:800;cursor:pointer;letter-spacing:.6px;text-decoration:none;display:block;">GET DRAPLY PRO →</a>
|
|
802
802
|
<button id="__pw_close__" style="background:none;border:1px solid #2a2a3a;color:#a0a0b8;border-radius:10px;padding:12px;font-size:12px;cursor:pointer;letter-spacing:.3px;">Maybe later</button>
|
|
803
803
|
</div>
|
|
804
804
|
</div>
|