@nativescript/template-blank-solid 8.8.0 → 8.8.2
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/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json +114 -6
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json +23 -0
- package/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json +23 -0
- package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png +0 -0
- package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png +0 -0
- package/App_Resources/iOS/LaunchScreen.storyboard +28 -5
- package/app/index.js +11 -0
- package/package.json +11 -7
- package/webpack.config.js +5 -0
- package/src/app.css +0 -8
- package/src/app.js +0 -11
- package/src/app.jsx +0 -34
- package/src/component.jsx +0 -13
- package/tailwind.config.js +0 -14
|
@@ -1,14 +1,122 @@
|
|
|
1
1
|
{
|
|
2
2
|
"images" : [
|
|
3
3
|
{
|
|
4
|
+
"size" : "20x20",
|
|
5
|
+
"idiom" : "iphone",
|
|
6
|
+
"filename" : "icon-20@2x.png",
|
|
7
|
+
"scale" : "2x"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"size" : "20x20",
|
|
11
|
+
"idiom" : "iphone",
|
|
12
|
+
"filename" : "icon-20@3x.png",
|
|
13
|
+
"scale" : "3x"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"size" : "29x29",
|
|
17
|
+
"idiom" : "iphone",
|
|
18
|
+
"filename" : "icon-29.png",
|
|
19
|
+
"scale" : "1x"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"size" : "29x29",
|
|
23
|
+
"idiom" : "iphone",
|
|
24
|
+
"filename" : "icon-29@2x.png",
|
|
25
|
+
"scale" : "2x"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"size" : "29x29",
|
|
29
|
+
"idiom" : "iphone",
|
|
30
|
+
"filename" : "icon-29@3x.png",
|
|
31
|
+
"scale" : "3x"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"size" : "40x40",
|
|
35
|
+
"idiom" : "iphone",
|
|
36
|
+
"filename" : "icon-40@2x.png",
|
|
37
|
+
"scale" : "2x"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"size" : "40x40",
|
|
41
|
+
"idiom" : "iphone",
|
|
42
|
+
"filename" : "icon-40@3x.png",
|
|
43
|
+
"scale" : "3x"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"size" : "60x60",
|
|
47
|
+
"idiom" : "iphone",
|
|
48
|
+
"filename" : "icon-60@2x.png",
|
|
49
|
+
"scale" : "2x"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"size" : "60x60",
|
|
53
|
+
"idiom" : "iphone",
|
|
54
|
+
"filename" : "icon-60@3x.png",
|
|
55
|
+
"scale" : "3x"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"size" : "20x20",
|
|
59
|
+
"idiom" : "ipad",
|
|
60
|
+
"filename" : "icon-20.png",
|
|
61
|
+
"scale" : "1x"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"size" : "20x20",
|
|
65
|
+
"idiom" : "ipad",
|
|
66
|
+
"filename" : "icon-20@2x.png",
|
|
67
|
+
"scale" : "2x"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"size" : "29x29",
|
|
71
|
+
"idiom" : "ipad",
|
|
72
|
+
"filename" : "icon-29.png",
|
|
73
|
+
"scale" : "1x"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"size" : "29x29",
|
|
77
|
+
"idiom" : "ipad",
|
|
78
|
+
"filename" : "icon-29@2x.png",
|
|
79
|
+
"scale" : "2x"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"size" : "40x40",
|
|
83
|
+
"idiom" : "ipad",
|
|
84
|
+
"filename" : "icon-40.png",
|
|
85
|
+
"scale" : "1x"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"size" : "40x40",
|
|
89
|
+
"idiom" : "ipad",
|
|
90
|
+
"filename" : "icon-40@2x.png",
|
|
91
|
+
"scale" : "2x"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"size" : "76x76",
|
|
95
|
+
"idiom" : "ipad",
|
|
96
|
+
"filename" : "icon-76.png",
|
|
97
|
+
"scale" : "1x"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"size" : "76x76",
|
|
101
|
+
"idiom" : "ipad",
|
|
102
|
+
"filename" : "icon-76@2x.png",
|
|
103
|
+
"scale" : "2x"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"size" : "83.5x83.5",
|
|
107
|
+
"idiom" : "ipad",
|
|
108
|
+
"filename" : "icon-83.5@2x.png",
|
|
109
|
+
"scale" : "2x"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"size" : "1024x1024",
|
|
113
|
+
"idiom" : "ios-marketing",
|
|
4
114
|
"filename" : "icon-1024.png",
|
|
5
|
-
"
|
|
6
|
-
"platform" : "ios",
|
|
7
|
-
"size" : "1024x1024"
|
|
115
|
+
"scale" : "1x"
|
|
8
116
|
}
|
|
9
117
|
],
|
|
10
118
|
"info" : {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
119
|
+
"version" : 1,
|
|
120
|
+
"author" : "xcode"
|
|
13
121
|
}
|
|
14
|
-
}
|
|
122
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"idiom" : "universal",
|
|
5
|
+
"filename" : "LaunchScreen-AspectFill.png",
|
|
6
|
+
"scale" : "1x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"idiom" : "universal",
|
|
10
|
+
"filename" : "LaunchScreen-AspectFill@2x.png",
|
|
11
|
+
"scale" : "2x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"idiom" : "universal",
|
|
15
|
+
"filename" : "LaunchScreen-AspectFill@3x.png",
|
|
16
|
+
"scale" : "3x"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"info" : {
|
|
20
|
+
"version" : 1,
|
|
21
|
+
"author" : "xcode"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"idiom" : "universal",
|
|
5
|
+
"filename" : "LaunchScreen-Center.png",
|
|
6
|
+
"scale" : "1x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"idiom" : "universal",
|
|
10
|
+
"filename" : "LaunchScreen-Center@2x.png",
|
|
11
|
+
"scale" : "2x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"idiom" : "universal",
|
|
15
|
+
"filename" : "LaunchScreen-Center@3x.png",
|
|
16
|
+
"scale" : "3x"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"info" : {
|
|
20
|
+
"version" : 1,
|
|
21
|
+
"author" : "xcode"
|
|
22
|
+
}
|
|
23
|
+
}
|
package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
ADDED
|
Binary file
|
package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
ADDED
|
Binary file
|
package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png
ADDED
|
Binary file
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="
|
|
3
|
-
<device id="retina5_9" orientation="portrait"
|
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
|
3
|
+
<device id="retina5_9" orientation="portrait">
|
|
4
|
+
<adaptation id="fullscreen"/>
|
|
5
|
+
</device>
|
|
4
6
|
<dependencies>
|
|
5
7
|
<deployment identifier="iOS"/>
|
|
6
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="
|
|
8
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
|
|
7
9
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
8
10
|
</dependencies>
|
|
9
11
|
<scenes>
|
|
@@ -18,8 +20,25 @@
|
|
|
18
20
|
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
|
19
21
|
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
|
20
22
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
<subviews>
|
|
24
|
+
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="LaunchScreen.AspectFill" translatesAutoresizingMaskIntoConstraints="NO" id="wtH-rr-YfP">
|
|
25
|
+
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
|
26
|
+
</imageView>
|
|
27
|
+
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="LaunchScreen.Center" translatesAutoresizingMaskIntoConstraints="NO" id="s1z-aa-wYv">
|
|
28
|
+
<rect key="frame" x="0.0" y="150" width="375" height="512"/>
|
|
29
|
+
</imageView>
|
|
30
|
+
</subviews>
|
|
31
|
+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
|
32
|
+
<constraints>
|
|
33
|
+
<constraint firstAttribute="trailing" secondItem="s1z-aa-wYv" secondAttribute="trailing" id="4Rf-kf-vql"/>
|
|
34
|
+
<constraint firstAttribute="bottom" secondItem="wtH-rr-YfP" secondAttribute="bottom" id="5CS-At-4ka"/>
|
|
35
|
+
<constraint firstItem="wtH-rr-YfP" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="Awn-b8-xf1"/>
|
|
36
|
+
<constraint firstItem="s1z-aa-wYv" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="BpJ-vb-eKA"/>
|
|
37
|
+
<constraint firstItem="s1z-aa-wYv" firstAttribute="trailing" secondItem="wtH-rr-YfP" secondAttribute="trailing" id="QIM-7J-OZz"/>
|
|
38
|
+
<constraint firstAttribute="trailing" secondItem="wtH-rr-YfP" secondAttribute="trailing" id="RXg-rW-UK8"/>
|
|
39
|
+
<constraint firstItem="s1z-aa-wYv" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="Rcp-LG-48z"/>
|
|
40
|
+
<constraint firstItem="wtH-rr-YfP" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="cch-8E-tYu"/>
|
|
41
|
+
</constraints>
|
|
23
42
|
</view>
|
|
24
43
|
</viewController>
|
|
25
44
|
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
@@ -27,4 +46,8 @@
|
|
|
27
46
|
<point key="canvasLocation" x="509.60000000000002" y="237.93103448275863"/>
|
|
28
47
|
</scene>
|
|
29
48
|
</scenes>
|
|
49
|
+
<resources>
|
|
50
|
+
<image name="LaunchScreen.AspectFill" width="768" height="1024"/>
|
|
51
|
+
<image name="LaunchScreen.Center" width="384" height="512"/>
|
|
52
|
+
</resources>
|
|
30
53
|
</document>
|
package/app/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Application } from '@nativescript/core'
|
|
2
|
+
import { render } from '@nativescript-community/solid-js'
|
|
3
|
+
import { App } from './app'
|
|
4
|
+
|
|
5
|
+
Application.run({
|
|
6
|
+
create: () => {
|
|
7
|
+
document.body.actionBarHidden = true
|
|
8
|
+
render(() => <App />, document.body)
|
|
9
|
+
return document
|
|
10
|
+
},
|
|
11
|
+
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript/template-blank-solid",
|
|
3
|
-
"main": "
|
|
4
|
-
"version": "8.8.
|
|
3
|
+
"main": "app/index.js",
|
|
4
|
+
"version": "8.8.2",
|
|
5
5
|
"description": "Nativescript Starter with Solid",
|
|
6
6
|
"author": "NativeScript Team <oss@nativescript.org>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -42,19 +42,23 @@
|
|
|
42
42
|
"@nativescript-community/solid-js": "^0.0.6",
|
|
43
43
|
"@nativescript/core": "~8.8.0",
|
|
44
44
|
"dominative": "^0.1.3",
|
|
45
|
-
"solid-js": "^1.8.
|
|
45
|
+
"solid-js": "^1.8.21",
|
|
46
|
+
"solid-navigation": "1.0.0-alpha.16",
|
|
46
47
|
"undom-ng": "^1.1.2"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@babel/core": "^7.24.4",
|
|
50
51
|
"@babel/preset-env": "^7.24.4",
|
|
51
52
|
"@babel/preset-typescript": "^7.24.1",
|
|
52
|
-
"@nativescript/
|
|
53
|
+
"@nativescript-dom/core-types": "1.0.29",
|
|
54
|
+
"@nativescript-dom/solidjs-types": "1.0.23",
|
|
55
|
+
"@nativescript/android": "8.8.2",
|
|
56
|
+
"@nativescript/ios": "8.8.1",
|
|
57
|
+
"@nativescript/types": "~8.8.0",
|
|
53
58
|
"@nativescript/webpack": "~5.0.0",
|
|
54
59
|
"babel": "^6.23.0",
|
|
55
60
|
"babel-loader": "^9.1.3",
|
|
56
|
-
"babel-preset-solid": "^1.8.
|
|
57
|
-
"solid-refresh": "^0.7.5"
|
|
58
|
-
"tailwindcss": "~3.4.3"
|
|
61
|
+
"babel-preset-solid": "^1.8.19",
|
|
62
|
+
"solid-refresh": "^0.7.5"
|
|
59
63
|
}
|
|
60
64
|
}
|
package/webpack.config.js
CHANGED
package/src/app.css
DELETED
package/src/app.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Application } from '@nativescript/core';
|
|
2
|
-
import { render } from '@nativescript-community/solid-js';
|
|
3
|
-
|
|
4
|
-
import { App } from './app.jsx';
|
|
5
|
-
|
|
6
|
-
document.body.actionBarHidden = false;
|
|
7
|
-
render(App, document.body);
|
|
8
|
-
|
|
9
|
-
const create = () => document;
|
|
10
|
-
|
|
11
|
-
Application.run({ create });
|
package/src/app.jsx
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createSignal } from 'solid-js';
|
|
2
|
-
import { Component } from './component.jsx';
|
|
3
|
-
|
|
4
|
-
document.body.actionBarHidden = false;
|
|
5
|
-
|
|
6
|
-
const App = () => {
|
|
7
|
-
const [count, setCount] = createSignal(0);
|
|
8
|
-
const increment = () => {
|
|
9
|
-
setCount((c) => c + 1);
|
|
10
|
-
};
|
|
11
|
-
return (
|
|
12
|
-
<>
|
|
13
|
-
<actionbar title="Hello, SolidJS!"></actionbar>
|
|
14
|
-
<stacklayout>
|
|
15
|
-
<label class="text-center text-2xl my-4">
|
|
16
|
-
You have tapped {count()} time{count() === 1 ? '' : 's'}
|
|
17
|
-
</label>
|
|
18
|
-
{
|
|
19
|
-
// use 'on:___' instead of 'on___' for event handlers
|
|
20
|
-
// See https://github.com/SudoMaker/dominative-solid#event-handling for detail
|
|
21
|
-
}
|
|
22
|
-
<button
|
|
23
|
-
class="rounded-full bg-blue-500 text-white text-xl p-2 w-[300]"
|
|
24
|
-
on:tap={increment}
|
|
25
|
-
>
|
|
26
|
-
Tap me!
|
|
27
|
-
</button>
|
|
28
|
-
<Component count={count} />
|
|
29
|
-
</stacklayout>
|
|
30
|
-
</>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export { App };
|
package/src/component.jsx
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const Component = (props) => {
|
|
2
|
-
const { count } = props;
|
|
3
|
-
return (
|
|
4
|
-
<label
|
|
5
|
-
text={`${count()} tap${count() === 1 ? '' : 's'}`}
|
|
6
|
-
on:tap={() => {
|
|
7
|
-
alert(`You have tapped ${count()} time${count() === 1 ? '' : 's'}`);
|
|
8
|
-
}}
|
|
9
|
-
class="text-center text-2xl my-6 text-green-500"
|
|
10
|
-
/>
|
|
11
|
-
);
|
|
12
|
-
};
|
|
13
|
-
|
package/tailwind.config.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: ['./src/**/*.{css,xml,html,vue,svelte,ts,tsx,jsx}'],
|
|
4
|
-
// use the .ns-dark class to control dark mode (applied by NativeScript) - since 'media' (default) is not supported.
|
|
5
|
-
darkMode: ['class', '.ns-dark'],
|
|
6
|
-
theme: {
|
|
7
|
-
extend: {},
|
|
8
|
-
},
|
|
9
|
-
plugins: [],
|
|
10
|
-
corePlugins: {
|
|
11
|
-
preflight: false, // disables browser-specific resets
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|