Skip to content

Commit 4599d65

Browse files
committed
test: demo update to N7
1 parent d1913db commit 4599d65

File tree

11 files changed

+1980
-4384
lines changed

11 files changed

+1980
-4384
lines changed

demo-vue/app/examples/index.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import BaseDemo, { title as BaseDemoTitle } from './Base.vue';
22
import VerticalAlignment, { title as VerticalAlignmentTitle } from './VerticalAlignment.vue';
33

4-
export const getExamples = () => {
5-
return [
6-
{
7-
title: BaseDemoTitle,
8-
component: BaseDemo
9-
},{
10-
title: VerticalAlignmentTitle,
11-
component: VerticalAlignment
12-
}
13-
];
14-
};
4+
export const getExamples = () => [
5+
{
6+
title: BaseDemoTitle,
7+
component: BaseDemo
8+
},{
9+
title: VerticalAlignmentTitle,
10+
component: VerticalAlignment
11+
}
12+
];

demo-vue/app/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Vue from 'nativescript-vue';
22

3-
Vue.registerElement('HTMLLabel', () => require('nativescript-htmllabel').Label);
3+
Vue.registerElement('HTMLLabel', () => require('@nativescript-community/ui-label').Label);
44
import * as views from './views/index';
55

66
Vue.component('Home', views.Home);

demo-vue/app/package.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

demo-vue/nativescript.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { NativeScriptConfig } from '@nativescript/core';
2+
3+
export default {
4+
id: 'org.nativescript.demovuehtmllabel',
5+
appResourcesPath: 'app/App_Resources',
6+
android: {
7+
v8Flags: '--expose_gc',
8+
markingMode: 'none',
9+
},
10+
appPath: 'app',
11+
} as NativeScriptConfig;

demo-vue/package.json

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,28 @@
22
"description": "NativeScript HTML Label Demo for Vue",
33
"license": "SEE LICENSE IN LICENSE.md",
44
"readme": "README.md",
5-
"nativescript": {
6-
"id": "org.nativescript.demovuehtmllabel",
7-
"tns-ios": {
8-
"version": "6.5.0-beta.2-v8-2020-02-13-162415-03"
9-
},
10-
"tns-android": {
11-
"version": "6.4.1"
12-
}
13-
},
145
"dependencies": {
15-
"@nativescript/core": "6.4.0",
16-
"nativescript-akylas-vue": "~2.3.5",
17-
"nativescript-htmllabel": "../plugin",
18-
"nativescript-theme-core": "~2.0.24",
19-
"tslib": "^1.10.0"
6+
"@nativescript-community/text": "1.3.9",
7+
"@nativescript-community/ui-label": "../plugin",
8+
"@nativescript/core": "7.0.13",
9+
"@nativescript/webpack": "3.0.8",
10+
"nativescript-vue": "~2.8.2"
2011
},
2112
"devDependencies": {
22-
"nativescript-akylas-webpack-template": "^1.0.15",
23-
"nativescript-dev-webpack": "~1.5.0",
24-
"semver": "^7.1.3",
25-
"tns-platform-declarations": "^6.4.0",
26-
"tslint": "^6.0.0",
27-
"tslint-config-prettier": "^1.18.0",
28-
"tslint-config-standard": "^9.0.0",
29-
"typescript": "^3.7.5",
30-
"vue": "^2.6.11",
31-
"vue-i18n": "^8.15.3",
32-
"vue-property-decorator": "^8.4.0",
33-
"webpack": "^4.41.6",
34-
"webpack-cli": "^3.3.11"
13+
"@babel/core": "^7.12.7",
14+
"@nativescript/android": "7.0.1",
15+
"@nativescript/ios": "7.0.6",
16+
"@nativescript/types": "7.0.4",
17+
"babel-loader": "^8.2.1",
18+
"nativescript-vue-template-compiler": "~2.8.2",
19+
"typescript": "^3.9.7",
20+
"vue": "^2.6.12",
21+
"vue-i18n": "^8.22.2",
22+
"vue-loader": "~15.9.5",
23+
"vue-property-decorator": "^8.5.1"
3524
},
3625
"scripts": {
3726
"tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'"
38-
}
27+
},
28+
"main": "main.js"
3929
}

0 commit comments

Comments
 (0)