Skip to content

feat: NativeScript support #732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Sep 16, 2018
Merged

feat: NativeScript support #732

merged 14 commits into from
Sep 16, 2018

Conversation

znck
Copy link
Member

@znck znck commented Aug 3, 2018

It includes RouterView component tree not loading fix as well.

Copy link
Member

@michalsnik michalsnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! Just few tiny suggestions :)

@@ -1,9 +1,20 @@
require('./build/hook.js')

const target = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it a little bit more readable?

@@ -3,26 +3,29 @@ import { initBackend } from 'src/backend'
import Bridge from 'src/bridge'
import { installToast } from 'src/backend/toast'

const host = window.__VUE_DEVTOOLS_HOST__ || 'http://localhost'
const port = window.__VUE_DEVTOOLS_PORT__ !== undefined ? window.__VUE_DEVTOOLS_PORT__ : 8098
const target = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question ☝️

let overlayContent

function init () {
if (init.isInitialized) return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can merge these two conditions?

range.selectNode(node)
return range.getBoundingClientRect()
if (!isBrowser) return
if (getTextRect.range) getTextRect.range = document.createRange()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can create a variable outside of this function instead of assigning range to the function itself? It's a bit confusing atm

Copy link
Contributor

@rigor789 rigor789 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dustinblackman
Copy link

Is this something that has the potential to make it in to 5.0?

@Akryum
Copy link
Member

Akryum commented Sep 1, 2018

Yes, as noted in the Release notes, the first beta doesn't contain all the things. 😸

@jlooper
Copy link

jlooper commented Sep 5, 2018

How could I test this? Would love to give it a whirl :)

@Akryum Akryum merged commit 79de048 into vuejs:dev Sep 16, 2018
@znck znck deleted the feat/nativescript branch September 18, 2018 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants