-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Conversation
There was a problem hiding this 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 :)
shells/electron/index.js
Outdated
@@ -1,9 +1,20 @@ | |||
require('./build/hook.js') | |||
|
|||
const target = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {} |
There was a problem hiding this comment.
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?
shells/electron/src/backend.js
Outdated
@@ -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 : {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question ☝️
src/backend/highlighter.js
Outdated
let overlayContent | ||
|
||
function init () { | ||
if (init.isInitialized) return |
There was a problem hiding this comment.
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?
src/backend/highlighter.js
Outdated
range.selectNode(node) | ||
return range.getBoundingClientRect() | ||
if (!isBrowser) return | ||
if (getTextRect.range) getTextRect.range = document.createRange() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Is this something that has the potential to make it in to 5.0? |
Yes, as noted in the Release notes, the first beta doesn't contain all the things. 😸 |
How could I test this? Would love to give it a whirl :) |
It includes RouterView component tree not loading fix as well.