@nativescript/template-blank-vue-ts 9.0.0 → 9.0.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/Info.plist +2 -2
- package/app/app.css +8 -0
- package/app/components/Home.vue +11 -19
- package/package.json +5 -4
- package/tailwind.config.js +13 -0
- package/app/app.scss +0 -21
- package/app/fonts/fa-brands-400.ttf +0 -0
- package/app/fonts/fa-regular-400.ttf +0 -0
- package/app/fonts/fa-solid-900.ttf +0 -0
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<key>CFBundlePackageType</key>
|
|
16
16
|
<string>APPL</string>
|
|
17
17
|
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>1.0</string>
|
|
18
|
+
<string>1.0.0</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>1.0</string>
|
|
22
|
+
<string>1.0.0</string>
|
|
23
23
|
<key>LSRequiresIPhoneOS</key>
|
|
24
24
|
<true/>
|
|
25
25
|
<key>UILaunchStoryboardName</key>
|
package/app/app.css
ADDED
package/app/components/Home.vue
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Page>
|
|
3
3
|
<ActionBar>
|
|
4
|
-
<Label text="Home"/>
|
|
4
|
+
<Label text="Home" class="font-bold text-lg"/>
|
|
5
5
|
</ActionBar>
|
|
6
6
|
|
|
7
7
|
<GridLayout>
|
|
8
|
-
<Label class="
|
|
9
|
-
<FormattedString>
|
|
10
|
-
<Span class="fas" text.decode=" "/>
|
|
11
|
-
<Span :text="message"/>
|
|
12
|
-
</FormattedString>
|
|
13
|
-
</Label>
|
|
8
|
+
<Label class="text-xl align-middle text-center text-gray-500" :text="message" @tap="logMessage" />
|
|
14
9
|
</GridLayout>
|
|
15
10
|
</Page>
|
|
16
11
|
</template>
|
|
@@ -23,21 +18,18 @@
|
|
|
23
18
|
message() {
|
|
24
19
|
return "Blank {N}-Vue app";
|
|
25
20
|
}
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
methods: {
|
|
24
|
+
logMessage() {
|
|
25
|
+
console.log('You have tapped the message!')
|
|
26
|
+
}
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
</script>
|
|
29
30
|
|
|
30
|
-
<style
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// Custom styles
|
|
34
|
-
.fas {
|
|
35
|
-
@include colorize($color: accent);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.info {
|
|
31
|
+
<style>
|
|
32
|
+
/* .info {
|
|
39
33
|
font-size: 20;
|
|
40
|
-
|
|
41
|
-
vertical-align: center;
|
|
42
|
-
}
|
|
34
|
+
} */
|
|
43
35
|
</style>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nativescript/template-blank-vue-ts",
|
|
3
3
|
"main": "app/app.ts",
|
|
4
4
|
"displayName": "Blank Vue Typescript",
|
|
5
|
-
"version": "9.0.
|
|
5
|
+
"version": "9.0.2",
|
|
6
6
|
"description": "Blank Typescript template for NativeScript apps using Vue.",
|
|
7
7
|
"author": "NativeScript Team <oss@nativescript.org>",
|
|
8
8
|
"license": "Apache-2.0",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"!tools/assets",
|
|
26
26
|
"types",
|
|
27
27
|
".editorconfig",
|
|
28
|
+
"tailwind.config.js",
|
|
28
29
|
"tsconfig.json"
|
|
29
30
|
],
|
|
30
31
|
"keywords": [
|
|
@@ -42,14 +43,14 @@
|
|
|
42
43
|
],
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"@nativescript/core": "~9.0.0",
|
|
45
|
-
"@nativescript/theme": "^3.1.0",
|
|
46
46
|
"nativescript-vue": "~2.9.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@nativescript/types": "~9.0.0",
|
|
50
|
-
"@nativescript/webpack": "
|
|
51
|
-
"@types/node": "
|
|
50
|
+
"@nativescript/webpack": "5.0.24",
|
|
51
|
+
"@types/node": "^20.0.0",
|
|
52
52
|
"nativescript-vue-template-compiler": "~2.9.3",
|
|
53
|
+
"tailwindcss": "~3.4.0",
|
|
53
54
|
"typescript": "~5.4.0",
|
|
54
55
|
"vue": "~2.6.12"
|
|
55
56
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
content: ['./app/**/*.{css,html,vue,ts,tsx}'],
|
|
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
|
+
}
|
package/app/app.scss
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@import '@nativescript/theme/core';
|
|
2
|
-
@import '@nativescript/theme/default';
|
|
3
|
-
|
|
4
|
-
// Place any CSS rules you want to apply on both iOS and Android here.
|
|
5
|
-
// This is where the vast majority of your CSS code goes.
|
|
6
|
-
|
|
7
|
-
// Font icon class
|
|
8
|
-
.fab {
|
|
9
|
-
font-family: 'Font Awesome 5 Brands', 'fa-brands-400';
|
|
10
|
-
font-weight: 400;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.fas {
|
|
14
|
-
font-family: 'Font Awesome 5 Free', 'fa-solid-900';
|
|
15
|
-
font-weight: 900;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.far {
|
|
19
|
-
font-family: 'Font Awesome 5 Free', 'fa-regular-400';
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|