@nativescript/template-blank-vue 9.0.3 → 9.0.4
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/app.css +8 -0
- package/app/components/Home.vue +1 -21
- package/package.json +4 -2
- 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
package/app/app.css
ADDED
package/app/components/Home.vue
CHANGED
|
@@ -5,12 +5,7 @@
|
|
|
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" />
|
|
14
9
|
</GridLayout>
|
|
15
10
|
</Page>
|
|
16
11
|
</template>
|
|
@@ -24,18 +19,3 @@
|
|
|
24
19
|
}
|
|
25
20
|
};
|
|
26
21
|
</script>
|
|
27
|
-
|
|
28
|
-
<style scoped lang="scss">
|
|
29
|
-
@import '@nativescript/theme/scss/variables/blue';
|
|
30
|
-
|
|
31
|
-
// Custom styles
|
|
32
|
-
.fas {
|
|
33
|
-
@include colorize($color: accent);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.info {
|
|
37
|
-
font-size: 20;
|
|
38
|
-
horizontal-align: center;
|
|
39
|
-
vertical-align: center;
|
|
40
|
-
}
|
|
41
|
-
</style>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nativescript/template-blank-vue",
|
|
3
3
|
"main": "app/app.js",
|
|
4
4
|
"displayName": "Blank",
|
|
5
|
-
"version": "9.0.
|
|
5
|
+
"version": "9.0.4",
|
|
6
6
|
"description": "Blank 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
|
".editorconfig",
|
|
27
27
|
"jsconfig.json",
|
|
28
|
+
"tailwind.config.js",
|
|
28
29
|
"webpack.config.js"
|
|
29
30
|
],
|
|
30
31
|
"keywords": [
|
|
@@ -42,12 +43,13 @@
|
|
|
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
|
+
"@nativescript/tailwind": "^2.1.0",
|
|
49
50
|
"@nativescript/webpack": "~5.0.31",
|
|
50
51
|
"nativescript-vue-template-compiler": "~2.9.3",
|
|
52
|
+
"tailwindcss": "~3.4.0",
|
|
51
53
|
"vue": "~2.6.12",
|
|
52
54
|
"vue-loader": "^15.11.1",
|
|
53
55
|
"vue-template-compiler": "~2.6.12"
|
|
@@ -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
|