diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index cd7b64df..37f7de73 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,5 +1,9 @@
-
\ No newline at end of file
+
+
+
+-->
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 566955a0..918888b3 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -7,8 +7,12 @@ assignees: ''
---
-
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index 2b490179..da6bae66 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -7,8 +7,12 @@ assignees: ''
---
-
diff --git a/.github/main.workflow b/.github/main.workflow
deleted file mode 100644
index 3dbe72d1..00000000
--- a/.github/main.workflow
+++ /dev/null
@@ -1,9 +0,0 @@
-workflow "Run issue bot" {
- on = "issues"
- resolves = ["nativescript-vue/issue-bot-action"]
-}
-
-action "nativescript-vue/issue-bot-action" {
- uses = "nativescript-vue/issue-bot-action@master"
- secrets = ["BOT_TOKEN", "GH_TOKEN"]
-}
diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml
new file mode 100644
index 00000000..424da9f6
--- /dev/null
+++ b/.github/workflows/issues.yml
@@ -0,0 +1,13 @@
+on: issues
+name: Run issue bot
+jobs:
+ build:
+ name: nativescript-vue/issue-bot-action
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ - name: nativescript-vue/issue-bot-action
+ uses: nativescript-vue/issue-bot-action@master
+ env:
+ BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
+ GH_TOKEN: ${{ secrets.GH_TOKEN }}
diff --git a/.travis.yml b/.travis.yml
index 7a796c96..4484df0d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,7 +25,7 @@ matrix:
env:
- WebpackiOS="12.0"
- Type="VueJS"
- osx_image: xcode10.0
+ osx_image: xcode11
language: node_js
node_js: "11"
jdk: oraclejdk8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 41ff5e2b..0b05c621 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,20 @@
+
+# [2.5.0-alpha.1](https://github.com/nativescript-vue/nativescript-vue/compare/v2.5.0-alpha.0...v2.5.0-alpha.1) (2019-09-07)
+
+
+### Bug Fixes
+
+* **frame:** $refs inside default page ([#544](https://github.com/nativescript-vue/nativescript-vue/issues/544)) ([4872304](https://github.com/nativescript-vue/nativescript-vue/commit/4872304)), closes [#543](https://github.com/nativescript-vue/nativescript-vue/issues/543)
+* honour the ID of the components in the App ([#541](https://github.com/nativescript-vue/nativescript-vue/issues/541)) ([a2b0cd6](https://github.com/nativescript-vue/nativescript-vue/commit/a2b0cd6))
+* look for parent Frame instead of a NavigationEntry ([7147a9f](https://github.com/nativescript-vue/nativescript-vue/commit/7147a9f))
+
+
+### Features
+
+* improve modals in DevTools ([8677a52](https://github.com/nativescript-vue/nativescript-vue/commit/8677a52))
+
+
+
# [2.5.0-alpha.0](https://github.com/nativescript-vue/nativescript-vue/compare/v2.4.0...v2.5.0-alpha.0) (2019-08-24)
diff --git a/README.md b/README.md
index 800a3f37..24870017 100644
--- a/README.md
+++ b/README.md
@@ -72,6 +72,7 @@ and these awesome backers:
- Teon Ooi
- Thomas Kuhlmann
- Abdullah Al Mashmoum
+- Stian Γ
rsnes
If you'd like to join them, please consider [becoming a backer / sponsor on Patreon](https://www.patreon.com/rigor789).
diff --git a/package-lock.json b/package-lock.json
index 33cd780d..4b26e3ea 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "nativescript-vue",
- "version": "2.5.0-alpha.1",
+ "version": "2.5.0-alpha.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 0212c831..5ffa15fd 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "nativescript-vue",
- "version": "2.5.0-alpha.1",
+ "version": "2.5.0-alpha.2",
"description": "NativeScript and Vue integration",
"main": "dist/index.js",
"files": [
diff --git a/packages/nativescript-vue-template-compiler/package.json b/packages/nativescript-vue-template-compiler/package.json
index 70d90f0a..2f08072f 100644
--- a/packages/nativescript-vue-template-compiler/package.json
+++ b/packages/nativescript-vue-template-compiler/package.json
@@ -1,6 +1,6 @@
{
"name": "nativescript-vue-template-compiler",
- "version": "2.5.0-alpha.1",
+ "version": "2.5.0-alpha.2",
"description": "template compiler for nativescript-vue",
"main": "index.js",
"repository": {
diff --git a/platform/nativescript/compiler/modules/router.js b/platform/nativescript/compiler/modules/router.js
index fcf9f414..d6d801d1 100644
--- a/platform/nativescript/compiler/modules/router.js
+++ b/platform/nativescript/compiler/modules/router.js
@@ -3,7 +3,11 @@ import { addAttr } from 'compiler/helpers'
function preTransformNode(el) {
if (el.tag !== 'router-view') return
- if (normalizeElementName(el.parent.tag) === 'nativeframe') {
+ if (
+ el.parent &&
+ el.parent.tag &&
+ normalizeElementName(el.parent.tag) === 'nativeframe'
+ ) {
addAttr(el.parent, 'hasRouterView', 'true')
}
}
diff --git a/platform/nativescript/runtime/components/list-view.js b/platform/nativescript/runtime/components/list-view.js
index 1460198d..c11a1abb 100644
--- a/platform/nativescript/runtime/components/list-view.js
+++ b/platform/nativescript/runtime/components/list-view.js
@@ -60,10 +60,10 @@ export default {
}
this.$refs.listView.setAttribute(
- '_itemTemplatesInternal',
+ 'itemTemplates',
this.$templates.getKeyedTemplates()
)
- this.$refs.listView.setAttribute('_itemTemplateSelector', (item, index) => {
+ this.$refs.listView.setAttribute('itemTemplateSelector', (item, index) => {
return this.$templates.selectorFn(this.getItemContext(item, index))
})
},
diff --git a/platform/nativescript/util/index.js b/platform/nativescript/util/index.js
index 332fbaf5..b9eb1289 100644
--- a/platform/nativescript/util/index.js
+++ b/platform/nativescript/util/index.js
@@ -93,25 +93,6 @@ export function after(original, thisArg, wrap) {
}
}
-export function deepProxy(object, depth = 0) {
- return new Proxy(object, {
- get(target, key) {
- if (key === 'toString' || key === 'valueOf') {
- return () => ''
- }
-
- if (key === Symbol.toPrimitive) {
- return hint => hint
- }
-
- if (depth > 10) {
- throw new Error('deepProxy over 10 deep.')
- }
- return deepProxy({}, depth + 1)
- }
- })
-}
-
export function updateDevtools() {
if (global.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
try {
diff --git a/samples/app/220.js b/samples/app/220.js
index 1d7bb09b..8f41be34 100644
--- a/samples/app/220.js
+++ b/samples/app/220.js
@@ -21,7 +21,7 @@ new Vue({
template: `
-
+
diff --git a/samples/app/339.js b/samples/app/339.js
index 5efddc74..76500ae5 100644
--- a/samples/app/339.js
+++ b/samples/app/339.js
@@ -7,7 +7,7 @@ let step1_id = 0
const Step1 = {
template: `
-
+
diff --git a/samples/app/344.js b/samples/app/344.js
index a798120a..8bb0b455 100644
--- a/samples/app/344.js
+++ b/samples/app/344.js
@@ -13,13 +13,13 @@ let step1_id = 0
const Step1 = {
template: `
-
+
-
+
-
+
@@ -49,7 +49,7 @@ const Step1 = {
const Step2 = {
template: `
-
+
@@ -75,7 +75,7 @@ const Step2 = {
const Step3 = {
template: `
-
+
@@ -101,7 +101,7 @@ const Step3 = {
const FirstTab = {
template: `
-
+
@@ -121,7 +121,7 @@ const TabBar = {
-
+
diff --git a/samples/app/464.js b/samples/app/464.js
index 8a6eb8ed..24b4fd14 100644
--- a/samples/app/464.js
+++ b/samples/app/464.js
@@ -1,4 +1,4 @@
-const Vue = require('./nativescript-vue')
+const Vue = require('nativescript-vue')
const {
ObservableArray
} = require('tns-core-modules/data/observable-array/observable-array')
diff --git a/samples/app/536.js b/samples/app/536.js
new file mode 100644
index 00000000..784ae5f0
--- /dev/null
+++ b/samples/app/536.js
@@ -0,0 +1,134 @@
+import Vue from 'nativescript-vue'
+
+Vue.config.debug = true
+Vue.config.silent = false
+
+const Step2 = {
+ template: `
+
+
+
+
+
+
+
+
+
+ `,
+ methods: {
+ prevStep() {
+ this.$navigateBack({
+ frame: 'wizard'
+ })
+ }
+ }
+}
+
+const WizardModal = {
+ template: `
+
+
+
+
+
+
+
+
+
+ `,
+ methods: {
+ nextStep() {
+ this.$navigateTo(Step2, {
+ frame: 'wizard'
+ })
+ }
+ }
+}
+
+const TabContent = {
+ template: `
+
+
+
+
+ `,
+ methods: {
+ openWizard() {
+ // show the wizard in a modal, and make sure it is fullscreen.
+ this.$showModal(WizardModal, {
+ fullscreen: true
+ }).then(res => {
+ console.log('wizard completed with res', res)
+ })
+ }
+ }
+}
+
+new Vue({
+ components: {
+ TabContent
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+ `
+}).$start()
+
+// Working code. Please comment the previous Vue instance and
+// uncomment the following commented code in order to workaround the issue
+// The workaround is opening the modal in the root component
+/*
+const TabContentWorking = {
+ template: `
+
+
+
+
+ `,
+ methods: {
+ emitOpenEvent() {
+ this.$emit('show')
+ }
+ }
+}
+
+new Vue({
+ components: {
+ TabContentWorking
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+ methods: {
+ openModal () {
+ // show the wizard in a modal, and make sure it is fullscreen.
+ this.$showModal(WizardModal, {
+ fullscreen: true
+ }).then(res => {
+ console.log('wizard completed with res', res)
+ })
+ }
+ }
+}).$start()
+*/
diff --git a/samples/app/app-with-gauge.js b/samples/app/app-with-gauge.js
deleted file mode 100644
index d325929b..00000000
--- a/samples/app/app-with-gauge.js
+++ /dev/null
@@ -1,141 +0,0 @@
-const Vue = require('nativescript-vue')
-const VueRouter = require('vue-router')
-const application = require('tns-core-modules/application')
-const observable_array = require('tns-core-modules/data/observable-array')
-
-Vue.registerElement(
- 'RadSideDrawer',
- () => require('nativescript-ui-sidedrawer').RadSideDrawer
-)
-
-Vue.registerElement(
- 'RadRadialGauge',
- () => require('nativescript-ui-gauge').RadRadialGauge
-)
-Vue.registerElement(
- 'RadialScale',
- () => require('nativescript-ui-gauge').RadialScale
-)
-Vue.registerElement(
- 'ScaleStyle',
- () => require('nativescript-ui-gauge').ScaleStyle
-)
-Vue.registerElement(
- 'RadialBarIndicator',
- () => require('nativescript-ui-gauge').RadialBarIndicator
-)
-Vue.registerElement(
- 'BarIndicatorStyle',
- () => require('nativescript-ui-gauge').BarIndicatorStyle
-)
-Vue.registerElement(
- 'RadialNeedle',
- () => require('nativescript-ui-gauge').RadialNeedle
-)
-Vue.registerElement(
- 'TitleStyle',
- () => require('nativescript-ui-gauge').TitleStyle
-)
-Vue.registerElement(
- 'SubtitleStyle',
- () => require('nativescript-ui-gauge').SubtitleStyle
-)
-Vue.registerElement(
- 'NeedleStyle',
- () => require('nativescript-ui-gauge').NeedleStyle
-)
-
-Vue.directive('tkRadialGaugeScales', {
- inserted: function(el) {
- var scale = el._nativeView
- var gauge = el.parentNode._nativeView
- if (gauge.scales) {
- gauge.scales.push(scale)
- } else {
- gauge.scales = new observable_array.ObservableArray([scale])
- }
- }
-})
-Vue.directive('tkRadialScaleIndicators', {
- inserted: function(el) {
- var barIndicator = el._nativeView
- var scale = el.parentNode._nativeView
- if (scale.indicators) {
- scale.indicators.push(barIndicator)
- } else {
- scale.indicators = new observable_array.ObservableArray([barIndicator])
- }
- }
-})
-Vue.directive('tkRadialBarIndicatorStyle', {
- inserted: function(el) {
- el.parentNode._nativeView.indicatorStyle = el._nativeView
- }
-})
-Vue.directive('tkRadialGaugeTitleStyle', {
- inserted: function(el) {
- el.parentNode._nativeView.titleStyle = el._nativeView
- }
-})
-Vue.directive('tkRadialGaugeSubtitleStyle', {
- inserted: function(el) {
- el.parentNode._nativeView.subtitleStyle = el._nativeView
- }
-})
-Vue.directive('tkRadialNeedleStyle', {
- inserted: function(el) {
- el.parentNode._nativeView.needleStyle = el._nativeView
- }
-})
-Vue.directive('tkRadialScaleStyle', {
- inserted: function(el) {
- el.parentNode._nativeView.scaleStyle = el._nativeView
- }
-})
-
-Vue.config.silent = false
-Vue.config.debug = true
-
-new Vue({
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- data() {
- return {
- gaugeValue: 0.2
- }
- },
- created() {}
-}).$start()
diff --git a/samples/app/app-with-list-view.js b/samples/app/app-with-list-view.js
index 984c4128..0228406e 100644
--- a/samples/app/app-with-list-view.js
+++ b/samples/app/app-with-list-view.js
@@ -3,7 +3,6 @@ const http = require('http')
Vue.config.debug = true
Vue.prototype.$http = http
-Vue.registerElement('gradient', () => require('nativescript-gradient').Gradient)
new Vue({
data: {
@@ -14,19 +13,21 @@ new Vue({
},
template: `
+
-
+
-
+
-
+
-
-
+
-
+
+
`,
created() {
@@ -69,13 +71,11 @@ new Vue({
template: `
-
+
-
+
@@ -122,20 +122,23 @@ new Vue({
fetchItems() {
this.$http
.getJSON(
- `https://www.reddit.com/${
- this.subreddit
- }.json?limit=10&count=10&after=${this.last_page}`
+ `https://www.reddit.com/${this.subreddit}.json?limit=10&count=10&after=${this.last_page}`
)
.then(res => {
this.items.push({
title: 'Page ' + this.page_num,
type: 'page'
})
+
res.data.children.forEach(item => {
+ const fullImage = item.data.preview
+ ? item.data.preview.images[0].source.url
+ : null
+ const image = item.data.preview ? item.data.preview.thumbnail : null
this.items.push({
title: item.data.title,
- image: item.data.thumbnail,
- fullImage: item.data.preview.images[0].source.url,
+ image: image,
+ fullImage: fullImage,
type: 'entry'
})
})
diff --git a/samples/app/app-with-ns-router.js b/samples/app/app-with-ns-router.js
deleted file mode 100644
index 3c96b5a8..00000000
--- a/samples/app/app-with-ns-router.js
+++ /dev/null
@@ -1,68 +0,0 @@
-const Vue = require('nativescript-vue')
-const VueRouter = require('vue-router')
-
-Vue.config.silent = false
-Vue.config.debug = true
-
-const applicationSettings = require('tns-core-modules/application-settings')
-const LoginSCN__LoadingPage = {
- data() {
- return {
- isLoggedIn: applicationSettings.getBoolean('isLoggedIn', false)
- }
- },
- template: `
-
-`
-}
-const LoginSCN__HomePage = {
- template: `
-
-
-
-
-
-
-`,
- methods: {
- logout() {
- applicationSettings.setBoolean('isLoggedIn', false)
- this.$router.replace('/login')
- }
- }
-}
-const LoginSCN__LoginPage = {
- template: `
-
-
-
-
-
-`,
- methods: {
- login() {
- applicationSettings.setBoolean('isLoggedIn', true)
- this.$router.replace('/home')
- }
- }
-}
-
-Vue.use(VueRouter)
-
-const router = new VueRouter({
- mode: Vue.mode,
- routes: [
- { path: '/', component: LoginSCN__LoadingPage },
- { path: '/home', component: LoginSCN__HomePage },
- { path: '/login', component: LoginSCN__LoginPage }
- ]
-})
-
-router.push('/')
-
-new Vue({
- router,
- template: `
-
- `
-}).$start()
diff --git a/samples/app/app-with-page-routing.js b/samples/app/app-with-page-routing.js
deleted file mode 100644
index bcaf7f96..00000000
--- a/samples/app/app-with-page-routing.js
+++ /dev/null
@@ -1,99 +0,0 @@
-const Vue = require('nativescript-vue')
-const VueRouter = require('vue-router')
-
-Vue.config.silent = false
-Vue.config.debug = true
-
-Vue.use(VueRouter)
-
-const data = {
- items: [
- {
- id: 1,
- title: 'First Item',
- text: 'This is the first item, which is very shiny and fabulous.'
- },
- {
- id: 2,
- title: 'Second Item',
- text: 'This is the second item, which is also very shiny and fabulous.'
- },
- {
- id: 3,
- title: 'Third Item',
- text:
- 'This is the third item, which has been added to this list just because.'
- }
- ]
-}
-
-const DetailPage = {
- data() {
- return {
- items: data.items
- }
- },
- computed: {
- current() {
- return this.items.find(item => item.id === +this.$route.params.id)
- }
- },
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `
-}
-const MasterPage = {
- data() {
- return {
- items: data.items
- }
- },
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
- `,
-
- methods: {
- onItemTap({ item }) {
- this.$router.push(`/detail/${item.id}`)
- }
- }
-}
-
-const router = new VueRouter({
- pageRouting: true,
- routes: [
- { path: '/', component: MasterPage },
- { path: '/detail/:id', component: DetailPage },
- { path: '*', redirect: '/' }
- ]
-})
-
-router.replace('/')
-
-new Vue({
- router
-}).$start()
diff --git a/samples/app/app-with-pager.js b/samples/app/app-with-pager.js
deleted file mode 100644
index 25509148..00000000
--- a/samples/app/app-with-pager.js
+++ /dev/null
@@ -1,43 +0,0 @@
-const Vue = require('nativescript-vue')
-const Pager = require('nativescript-pager/vue')
-
-Vue.use(Pager)
-
-Vue.config.debug = true
-Vue.config.silent = false
-
-new Vue({
- data() {
- return {
- selected: 2
- }
- },
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `
-}).$start()
diff --git a/samples/app/app-with-radsidedrawer-tabs-and-router.js b/samples/app/app-with-radsidedrawer-tabs-and-router.js
deleted file mode 100644
index d0bf98ac..00000000
--- a/samples/app/app-with-radsidedrawer-tabs-and-router.js
+++ /dev/null
@@ -1,113 +0,0 @@
-const Vue = require('nativescript-vue')
-const VueRouter = require('vue-router')
-
-Vue.registerElement(
- 'RadSideDrawer',
- () => require('nativescript-ui-sidedrawer').RadSideDrawer
-)
-
-Vue.config.silent = false
-Vue.config.debug = true
-Vue.use(VueRouter)
-
-const Home = {
- template: `
-
-
-
- `
-}
-
-const Tabs = {
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- data() {
- return {
- selectedTabIndex: 0,
- gaugeValue: 0.2
- }
- }
-}
-
-const HelloWorld1 = {
- template: `
-
-
-
- `
-}
-
-const HelloWorld2 = {
- template: `
-
-
-
- `
-}
-
-const router = new VueRouter({
- routes: [
- {
- path: '/home',
- component: Home
- },
- {
- path: '/hello1',
- component: HelloWorld1
- },
- {
- path: '/hello2',
- component: HelloWorld2
- },
- {
- path: '/tabs',
- component: Tabs
- },
- { path: '*', redirect: '/home' }
- ]
-})
-
-new Vue({
- router,
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`,
- data() {
- return {}
- },
- created() {
- this.$router.push('/home')
- }
-}).$start()
diff --git a/samples/app/app-with-router-component.js b/samples/app/app-with-router-component.js
deleted file mode 100644
index ae2e2647..00000000
--- a/samples/app/app-with-router-component.js
+++ /dev/null
@@ -1,75 +0,0 @@
-const Vue = require('nativescript-vue')
-const VueRouter = require('./vue-router')
-
-Vue.config.silent = false
-Vue.config.debug = true
-
-const HomePage = {
- template: `
-
-
-
-
-
-`
-}
-const UserPage = {
- template: `
-
-
-
-
-
-
-
-
-`
-}
-
-const UserProfile = {
- template: ``
-}
-
-const UserPosts = {
- template: `
-
-
-
-
-
- `
-}
-
-Vue.use(VueRouter)
-
-const router = new VueRouter({
- mode: Vue.mode,
- routes: [
- { path: '/', component: HomePage },
- {
- path: '/user/:id',
- component: UserPage,
- children: [
- {
- // UserProfile will be rendered inside User's
- // when /user/:id/profile is matched
- path: 'profile',
- component: UserProfile
- },
- {
- // UserPosts will be rendered inside User's
- // when /user/:id/posts is matched
- path: 'posts',
- component: UserPosts
- }
- ]
- }
- ]
-})
-
-router.push('/')
-
-new Vue({
- router,
- template: ``
-}).$start()
diff --git a/samples/app/app-with-router-pages.js b/samples/app/app-with-router-pages.js
deleted file mode 100644
index b3cbfb28..00000000
--- a/samples/app/app-with-router-pages.js
+++ /dev/null
@@ -1,62 +0,0 @@
-const Vue = require('nativescript-vue')
-const VueRouter = require('vue-router')
-
-Vue.use(VueRouter)
-
-const Foo = {
- template: `
-
-
-
-
-
-
-
-
-
-
-
- `
-}
-const Bar = {
- template: `
-
-
-
-
-
-
-
-
-
- `
-}
-const Baz = {
- template: `
-
-
-
-
-
-
-
-
-
- `
-}
-
-const router = new VueRouter({
- pageRouting: true,
- routes: [
- { path: '/foo', component: Foo },
- { path: '/bar', component: Bar },
- { path: '/baz', component: Baz },
- { path: '*', redirect: '/foo' }
- ]
-})
-
-router.replace('/foo')
-
-new Vue({
- router
-}).$start()
diff --git a/samples/app/app-with-router-v2.js b/samples/app/app-with-router-v2.js
deleted file mode 100644
index 598bb46c..00000000
--- a/samples/app/app-with-router-v2.js
+++ /dev/null
@@ -1,76 +0,0 @@
-const Vue = require('nativescript-vue')
-const VueRouter = require('vue-router')
-
-Vue.config.silent = false
-Vue.config.debug = true
-Vue.use(VueRouter)
-
-const Home = {
- template: `
-
-
-
-
-
-
- `
-}
-
-const Detail = {
- template: `
-
-
-
-
-
-
-
-
- `
-}
-
-const DetailTab1 = {
- template: `
-
- `
-}
-
-const DetailTab2 = {
- template: `
-
- `
-}
-
-const router = new VueRouter({
- routes: [
- { path: '/', component: Home },
- {
- path: '/detail/:id',
- component: Detail,
- children: [
- { path: '/', component: DetailTab1 },
- { path: 'tab2', component: DetailTab2 }
- ]
- },
- { path: '*', redirect: '/' }
- ]
-})
-
-router.push('/')
-
-new Vue({
- router,
- template: `
-
-
-
-
-
-
-
- `
-}).$start()
diff --git a/samples/app/app-with-router.js b/samples/app/app-with-router.js
deleted file mode 100644
index 9eb48c28..00000000
--- a/samples/app/app-with-router.js
+++ /dev/null
@@ -1,100 +0,0 @@
-const Vue = require('nativescript-vue')
-const VueRouter = require('vue-router')
-
-Vue.config.silent = false
-Vue.config.debug = true
-Vue.config.errorHandler = (e, vm, info) => {
- console.log('+'.repeat(80))
- console.log(e, vm, info)
- console.dir(e)
- console.log('+'.repeat(80))
-}
-Vue.use(VueRouter)
-
-const Foo = {
- template: `
-
-
-
-
-`
-}
-const Bar = {
- template: `
-
-
-
-
-
-
-
-
- `
-}
-const Fizz = {
- template: `
-
-
-
- `
-}
-const Buzz = {
- template: `
-
-
-
- `
-}
-
-const router = new VueRouter({
- routes: [
- { path: '/foo', component: Foo },
- {
- path: '/bar',
- component: Bar,
- children: [
- { path: 'fizz', component: Fizz },
- { path: 'buzz', component: Buzz }
- ]
- },
- { path: '*', redirect: '/foo' }
- ]
-})
-
-router.replace('/foo')
-
-new Vue({
- router,
-
- data: {
- pageTitle: 'Current route: /foo'
- },
-
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
-
- methods: {
- changeRoute(to) {
- this.pageTitle = 'Current route: ' + to
- router.replace(to)
- }
- }
-}).$start({
- getRootView(vm) {
- return vm.$el.nativeView
- }
-})
diff --git a/samples/app/app-with-v-template-components.js b/samples/app/app-with-v-template-components.js
index d971de5b..7b42ee52 100644
--- a/samples/app/app-with-v-template-components.js
+++ b/samples/app/app-with-v-template-components.js
@@ -7,7 +7,7 @@ Vue.config.debug = true
// the framework should warn about this in the future!
Vue.component('CommentComp', {
props: ['comment'],
- template: ``
+ template: ``
})
new Vue({
diff --git a/samples/app/app-with-view-directive.js b/samples/app/app-with-view-directive.js
deleted file mode 100644
index d6558acc..00000000
--- a/samples/app/app-with-view-directive.js
+++ /dev/null
@@ -1,27 +0,0 @@
-const Vue = require('nativescript-vue')
-
-Vue.registerElement(
- 'RadSideDrawer',
- () => require('nativescript-ui-sidedrawer').RadSideDrawer
-)
-
-new Vue({
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `
-}).$start()
diff --git a/samples/package.json b/samples/package.json
index 7222584c..87689eac 100644
--- a/samples/package.json
+++ b/samples/package.json
@@ -20,15 +20,10 @@
},
"dependencies": {
"@vue/devtools": "5.1.0",
- "nativescript-pager": "9.5.4",
"nativescript-socketio": "^3.3.1",
"nativescript-theme-core": "1.0.6",
- "nativescript-toasty": "^2.0.1",
- "nativescript-ui-gauge": "5.0.0",
- "nativescript-ui-sidedrawer": "7.0.0",
"nativescript-vue-devtools": "1.2.0",
"tns-core-modules": "6.0.1",
- "vue-router": "3.0.6",
"vuex": "3.1.1"
},
"devDependencies": {