@wavemaker/rn-codegen 11.4.0-next.24581 → 11.4.0-next.24582
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.
rn-codegen/package.json
CHANGED
|
@@ -1,37 +1,64 @@
|
|
|
1
1
|
<html>
|
|
2
2
|
|
|
3
3
|
<head>
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
5
|
+
<title>WaveMaker Preview</title>
|
|
6
|
+
<style>
|
|
7
|
+
.show {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.hide {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
}
|
|
14
|
+
</style>
|
|
6
15
|
</head>
|
|
7
16
|
|
|
8
17
|
<body style="height: 100vh; display: flex; padding: 16px;
|
|
9
18
|
justify-content: center; flex-direction: column;
|
|
10
19
|
font-family:Arial, Helvetica, sans-serif;
|
|
11
20
|
background-color: #111; color: #f4f4f4;line-height: 24px;overflow: hidden;">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
style="background-color: #ccc;color: #333; padding: 16px;
|
|
21
|
+
<div>
|
|
22
|
+
<b style="color: #82d3e0;">1.</b> Studio web preview is disabled. To enable, visit Project Settings.<br>
|
|
23
|
+
<b style="color: #82d3e0;">2.</b> Otherwise, execute the following command in your local terminal.
|
|
24
|
+
<br>
|
|
25
|
+
</div>
|
|
26
|
+
<div>
|
|
27
|
+
<div style="position: relative;background-color: #ccc;color: #333; padding: 24px 16px 16px 16px;
|
|
20
28
|
border-radius: 8px; font-family:monospace, 'Courier New', Courier;overflow: auto;margin: 8px 0;">
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
<div style="position: absolute;top: 0; right: 0; background: #666; padding: 2px 8px; color: #82d3e0;" onclick="copy()">Copy</div>
|
|
30
|
+
<div id="command-info" style="word-break: break-word;"></div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div>
|
|
34
|
+
<b style="color: #82d3e0;">3.</b> Then, open <a style="color: #82d3e0;" href="http://localhost:19009" target="_blank">http://localhost:19009</a> in a web browser.
|
|
35
|
+
<br><span><br><br><br><i style="color: #eee;">To know more, <a
|
|
36
|
+
href="https://docs.wavemaker.com/learn/react-native/generate-web-preview-locally" target="_blank"
|
|
37
|
+
style="color: #82d3e0;">please visit this link</a>.</i></span>
|
|
38
|
+
<span style="display:none">Modified at : {{modified_date}}</span>
|
|
25
39
|
</div>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
<div id="message" style="position: fixed; top: 0; right: 0;
|
|
41
|
+
background: #eee; color: #666; padding: 16px; left: 0;
|
|
42
|
+
margin: 4pt; border-radius: 4pt;transition: opacity linear 1s;" class="hide">
|
|
43
|
+
Copied !!!
|
|
44
|
+
</div>
|
|
45
|
+
<script>
|
|
46
|
+
var div = document.getElementById('command-info');
|
|
47
|
+
|
|
48
|
+
function copy() {
|
|
49
|
+
// Copy the text inside the text field
|
|
50
|
+
navigator.clipboard.writeText(div.innerText);
|
|
51
|
+
document.getElementById('message').classList.remove('hide');
|
|
52
|
+
}
|
|
53
|
+
var xhr = new XMLHttpRequest();
|
|
54
|
+
xhr.onreadystatechange = function() {
|
|
55
|
+
if (xhr.readyState == XMLHttpRequest.DONE) {
|
|
56
|
+
div.innerText = `wm-reactnative run web-preview "${location.href.split('/rn-bundle')[0]}#${xhr.responseText.split(';')[0]}"`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
xhr.open('GET', '/studio/services/auth/token', true);
|
|
60
|
+
xhr.send(null);
|
|
61
|
+
</script>
|
|
35
62
|
</body>
|
|
36
63
|
|
|
37
64
|
</html>
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@unimodules/react-native-adapter": "6.3.9",
|
|
13
|
-
"@wavemaker/app-rn-runtime": "11.4.0-next.
|
|
14
|
-
"@wavemaker/variables": "11.4.0-next.
|
|
13
|
+
"@wavemaker/app-rn-runtime": "11.4.0-next.24582",
|
|
14
|
+
"@wavemaker/variables": "11.4.0-next.24582",
|
|
15
15
|
"axios": "^1.4.0",
|
|
16
16
|
"css-mediaquery": "^0.1.2",
|
|
17
17
|
"deprecated-react-native-prop-types": "~4.1.0",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@unimodules/react-native-adapter": "6.3.9",
|
|
13
|
-
"@wavemaker/app-rn-runtime": "11.4.0-next.
|
|
14
|
-
"@wavemaker/variables": "11.4.0-next.
|
|
13
|
+
"@wavemaker/app-rn-runtime": "11.4.0-next.24582",
|
|
14
|
+
"@wavemaker/variables": "11.4.0-next.24582",
|
|
15
15
|
"axios": "^1.4.0",
|
|
16
16
|
"css-mediaquery": "^0.1.2",
|
|
17
17
|
"deprecated-react-native-prop-types": "~4.1.0",
|