Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit 33ea24f

Browse files
committed
chor: formatting
1 parent aa9a4a1 commit 33ea24f

29 files changed

+6947
-2985
lines changed

demo/.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/*.d.ts
2+
**/node_modules
3+
**/platforms

demo/app/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '~nativescript-theme-core/css/core.light.css';
1+
@import "~nativescript-theme-core/css/core.light.css";
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
.red {
2-
margin: 0;
3-
padding: 0;
4-
font-weight: bolder;
5-
background-color: blue;
6-
color: green;
7-
font-size: 20pt;
2+
margin: 0;
3+
padding: 0;
4+
font-weight: bolder;
5+
background-color: blue;
6+
color: green;
7+
font-size: 20pt;
88
}
99

10-
body, html {
11-
margin: 0;
12-
padding: 0;
13-
background-color: purple;
10+
body,
11+
html {
12+
margin: 0;
13+
padding: 0;
14+
background-color: purple;
1415
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<title>Inject stylesheet via x-local</title>
5-
</head>
6-
<body>
7-
<p class="red">RED</p>
8-
</body>
3+
<head>
4+
<title>Inject stylesheet via x-local</title>
5+
</head>
6+
<body>
7+
<p class="red">RED</p>
8+
</body>
99
</html>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<title>Load predefined x-local stylesheet</title>
5-
<link rel="stylesheet" type="text/css" href="x-local://local-stylesheet.css" />
6-
</head>
7-
<body>
8-
<p class="red">RED</p>
9-
</body>
3+
<head>
4+
<title>Load predefined x-local stylesheet</title>
5+
<link rel="stylesheet" type="text/css" href="x-local://local-stylesheet.css" />
6+
</head>
7+
<body>
8+
<p class="red">RED</p>
9+
</body>
1010
</html>
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<title>Blank</title>
5-
</head>
6-
<body>
7-
</body>
3+
<head>
4+
<title>Blank</title>
5+
</head>
6+
<body></body>
87
</html>
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
</head>
5-
<body>
6-
</body>
3+
<head> </head>
4+
<body></body>
75
</html>
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<script>
5-
function callFromNativeScript() {
6-
console.log('got a message from nativescript');
3+
<head>
4+
<script>
5+
function callFromNativeScript() {
6+
console.log("got a message from nativescript");
77

8-
window.nsWebViewBridge.emit('gotMessage', { huba: "hop" });
9-
}
8+
window.nsWebViewBridge.emit("gotMessage", { huba: "hop" });
9+
}
1010

11-
function getNumber() {
12-
return 42;
13-
}
11+
function getNumber() {
12+
return 42;
13+
}
1414

15-
function getNumberFloat() {
16-
return 3.14;
17-
}
15+
function getNumberFloat() {
16+
return 3.14;
17+
}
1818

19-
function getBoolean() {
20-
return false;
21-
}
19+
function getBoolean() {
20+
return false;
21+
}
2222

23-
function getString() {
24-
return 'string result from webview JS function';
25-
}
23+
function getString() {
24+
return "string result from webview JS function";
25+
}
2626

27-
function getArray() {
28-
return [1.5, true, "hello"];
29-
}
27+
function getArray() {
28+
return [1.5, true, "hello"];
29+
}
3030

31-
function getObject() {
32-
return { prop: "test", name: "object-test", values: [ 42, 3.14 ] };
33-
}
34-
</script>
35-
</head>
36-
<body>
37-
<p class="red">RED</p>
38-
<div>
39-
<h1>Should overide url?</h1>
40-
<a href="http://google.com">Go to google - should not load</a>
41-
</div>
42-
</body>
31+
function getObject() {
32+
return { prop: "test", name: "object-test", values: [42, 3.14] };
33+
}
34+
</script>
35+
</head>
36+
<body>
37+
<p class="red">RED</p>
38+
<div>
39+
<h1>Should overide url?</h1>
40+
<a href="http://google.com">Go to google - should not load</a>
41+
</div>
42+
</body>
4343
</html>

demo/app/main-page.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import { LoadEventData, LoadFinishedEventData, ShouldOverrideUrlLoadEventData, WebViewExt } from "@nota/nativescript-webview-ext";
1+
import { isAndroid, LoadEventData, LoadFinishedEventData, ShouldOverrideUrlLoadEventData, WebAlertEventData, WebViewExt } from "@nota/nativescript-webview-ext";
22
import * as _ from "lodash";
33
import * as observable from "tns-core-modules/data/observable";
4-
import { isAndroid } from "tns-core-modules/platform";
54
import * as trace from "tns-core-modules/trace";
6-
import * as pages from "tns-core-modules/ui/page";
75

86
let webview: WebViewExt;
97

0 commit comments

Comments
 (0)