mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix private properties.
This commit is contained in:
parent
09acada1af
commit
37f93eae6b
@ -30,33 +30,33 @@
|
|||||||
})
|
})
|
||||||
export default class extends Vue {
|
export default class extends Vue {
|
||||||
@Ref('overlay') readonly _overlay!: HTMLCanvasElement
|
@Ref('overlay') readonly _overlay!: HTMLCanvasElement
|
||||||
private _ctx!: CanvasRenderingContext2D
|
_ctx!: CanvasRenderingContext2D
|
||||||
|
|
||||||
private canvasScale = window.devicePixelRatio
|
canvasScale = window.devicePixelRatio
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly sessions!: Record<string, Session>
|
readonly sessions!: Record<string, Session>
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly sessionId!: string
|
readonly sessionId!: string
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly hostId!: string | null
|
readonly hostId!: string | null
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly screenSize!: Dimension
|
readonly screenSize!: Dimension
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly canvasSize!: Dimension
|
readonly canvasSize!: Dimension
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly cursors!: SessionCursors[]
|
readonly cursors!: SessionCursors[]
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly cursorDraw!: InactiveCursorDrawFunction | null
|
readonly cursorDraw!: InactiveCursorDrawFunction | null
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly fps!: number
|
readonly fps!: number
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
// get canvas overlay context
|
// get canvas overlay context
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
@imageReady="screencastReady = $event"
|
@imageReady="screencastReady = $event"
|
||||||
/>
|
/>
|
||||||
<neko-cursors
|
<neko-cursors
|
||||||
v-if="state.settings.inactive_cursors && session.profile.can_see_inactive_cursors"
|
v-if="state.settings.inactive_cursors && session && session.profile.can_see_inactive_cursors"
|
||||||
:sessions="state.sessions"
|
:sessions="state.sessions"
|
||||||
:sessionId="state.session_id"
|
:sessionId="state.session_id"
|
||||||
:hostId="state.control.host_id"
|
:hostId="state.control.host_id"
|
||||||
@ -33,8 +33,8 @@
|
|||||||
:canvasSize="canvasSize"
|
:canvasSize="canvasSize"
|
||||||
:isControling="controlling"
|
:isControling="controlling"
|
||||||
:cursorDraw="cursorDrawFunction"
|
:cursorDraw="cursorDrawFunction"
|
||||||
:implicitControl="state.settings.implicit_hosting && session.profile.can_host"
|
:implicitControl="state.settings.implicit_hosting && session && session.profile.can_host"
|
||||||
:inactiveCursors="state.settings.inactive_cursors && session.profile.sends_inactive_cursor"
|
:inactiveCursors="state.settings.inactive_cursors && session && session.profile.sends_inactive_cursor"
|
||||||
:fps="fps"
|
:fps="fps"
|
||||||
:hasMobileKeyboard="is_touch_device"
|
:hasMobileKeyboard="is_touch_device"
|
||||||
@updateKeyboardModifiers="updateKeyboardModifiers($event)"
|
@updateKeyboardModifiers="updateKeyboardModifiers($event)"
|
||||||
@ -126,24 +126,24 @@
|
|||||||
inactiveCursorDrawFunction: InactiveCursorDrawFunction | null = null
|
inactiveCursorDrawFunction: InactiveCursorDrawFunction | null = null
|
||||||
|
|
||||||
@Prop({ type: String })
|
@Prop({ type: String })
|
||||||
private readonly server!: string
|
readonly server!: string
|
||||||
|
|
||||||
@Prop({ type: Boolean })
|
@Prop({ type: Boolean })
|
||||||
private readonly autologin!: boolean
|
readonly autologin!: boolean
|
||||||
|
|
||||||
@Prop({ type: Boolean })
|
@Prop({ type: Boolean })
|
||||||
private readonly autoconnect!: boolean
|
readonly autoconnect!: boolean
|
||||||
|
|
||||||
@Prop({ type: Boolean })
|
@Prop({ type: Boolean })
|
||||||
private readonly autoplay!: boolean
|
readonly autoplay!: boolean
|
||||||
|
|
||||||
// fps for cursor rendering, 0 for no cap
|
// fps for cursor rendering, 0 for no cap
|
||||||
@Prop({ type: Number, default: 0 })
|
@Prop({ type: Number, default: 0 })
|
||||||
private readonly fps!: number
|
readonly fps!: number
|
||||||
|
|
||||||
// auto / touch / mouse
|
// auto / touch / mouse
|
||||||
@Prop({ type: String, default: 'auto' })
|
@Prop({ type: String, default: 'auto' })
|
||||||
private readonly inputMode!: String
|
readonly inputMode!: String
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// Public state
|
// Public state
|
||||||
@ -235,9 +235,9 @@
|
|||||||
} as NekoState
|
} as NekoState
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// Public connection manager
|
// Connection manager
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
public connection = new NekoConnection(this.state.connection)
|
connection = new NekoConnection(this.state.connection)
|
||||||
|
|
||||||
public get connected() {
|
public get connected() {
|
||||||
return this.state.connection.status == 'connected'
|
return this.state.connection.status == 'connected'
|
||||||
|
@ -75,54 +75,54 @@
|
|||||||
export default class extends Vue {
|
export default class extends Vue {
|
||||||
@Ref('overlay') readonly _overlay!: HTMLCanvasElement
|
@Ref('overlay') readonly _overlay!: HTMLCanvasElement
|
||||||
@Ref('textarea') readonly _textarea!: HTMLTextAreaElement
|
@Ref('textarea') readonly _textarea!: HTMLTextAreaElement
|
||||||
private _ctx!: CanvasRenderingContext2D
|
_ctx!: CanvasRenderingContext2D
|
||||||
|
|
||||||
private canvasScale = window.devicePixelRatio
|
canvasScale = window.devicePixelRatio
|
||||||
|
|
||||||
private keyboard!: KeyboardInterface
|
keyboard!: KeyboardInterface
|
||||||
private gestureHandler!: GestureHandler
|
gestureHandler!: GestureHandler
|
||||||
private textInput = ''
|
textInput = ''
|
||||||
|
|
||||||
private focused = false
|
focused = false
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly control!: NekoControl
|
readonly control!: NekoControl
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly sessions!: Record<string, Session>
|
readonly sessions!: Record<string, Session>
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly hostId!: string
|
readonly hostId!: string
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly webrtc!: NekoWebRTC
|
readonly webrtc!: NekoWebRTC
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly scroll!: Scroll
|
readonly scroll!: Scroll
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly screenSize!: Dimension
|
readonly screenSize!: Dimension
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly canvasSize!: Dimension
|
readonly canvasSize!: Dimension
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly cursorDraw!: CursorDrawFunction | null
|
readonly cursorDraw!: CursorDrawFunction | null
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly isControling!: boolean
|
readonly isControling!: boolean
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly implicitControl!: boolean
|
readonly implicitControl!: boolean
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly inactiveCursors!: boolean
|
readonly inactiveCursors!: boolean
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly fps!: number
|
readonly fps!: number
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly hasMobileKeyboard!: boolean
|
readonly hasMobileKeyboard!: boolean
|
||||||
|
|
||||||
get cursor(): string {
|
get cursor(): string {
|
||||||
if (!this.isControling || !this.cursorImage) {
|
if (!this.isControling || !this.cursorImage) {
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
name: 'neko-screencast',
|
name: 'neko-screencast',
|
||||||
})
|
})
|
||||||
export default class extends Vue {
|
export default class extends Vue {
|
||||||
private imageSrc = ''
|
imageSrc = ''
|
||||||
private running = false
|
running = false
|
||||||
private continue = false
|
continue = false
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly image!: string
|
readonly image!: string
|
||||||
|
|
||||||
@Watch('image')
|
@Watch('image')
|
||||||
setImage(image: string) {
|
setImage(image: string) {
|
||||||
@ -26,10 +26,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly enabled!: boolean
|
readonly enabled!: boolean
|
||||||
|
|
||||||
@Prop()
|
@Prop()
|
||||||
private readonly api!: RoomApi
|
readonly api!: RoomApi
|
||||||
|
|
||||||
async loop() {
|
async loop() {
|
||||||
if (this.running) return
|
if (this.running) return
|
||||||
|
Loading…
Reference in New Issue
Block a user