mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
bump openapi generator version.
This commit is contained in:
parent
c8cf5ed621
commit
6f97a376f5
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
* text=auto
|
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -23,4 +23,3 @@
|
|||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": true
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
1334
package-lock.json
generated
1334
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
23
package.json
23
package.json
@ -17,34 +17,33 @@
|
|||||||
"build": "vue-cli-service build --target lib --name neko ./src/index.ts"
|
"build": "vue-cli-service build --target lib --name neko ./src/index.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.15.2",
|
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"resize-observer-polyfill": "^1.5.1",
|
"resize-observer-polyfill": "^1.5.1",
|
||||||
"vue": "^2.6.12",
|
"vue": "^2.6.12",
|
||||||
"vue-class-component": "^7.2.6",
|
"vue-class-component": "^7.2.6",
|
||||||
"vue-context": "^6.0.0",
|
|
||||||
"vue-property-decorator": "^9.1.2"
|
"vue-property-decorator": "^9.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.14.22",
|
"@fortawesome/fontawesome-free": "^5.15.2",
|
||||||
|
"@types/node": "^14.14.31",
|
||||||
"@types/vue": "^2.0.0",
|
"@types/vue": "^2.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.14.0",
|
"@typescript-eslint/eslint-plugin": "^4.15.1",
|
||||||
"@typescript-eslint/parser": "^4.14.0",
|
"@typescript-eslint/parser": "^4.15.1",
|
||||||
"@vue/cli-plugin-babel": "^4.5.10",
|
"@vue/cli-plugin-babel": "^4.5.11",
|
||||||
"@vue/cli-plugin-eslint": "^4.5.10",
|
"@vue/cli-plugin-eslint": "^4.5.11",
|
||||||
"@vue/cli-plugin-typescript": "^4.5.10",
|
"@vue/cli-plugin-typescript": "^4.5.11",
|
||||||
"@vue/cli-service": "^4.5.10",
|
"@vue/cli-service": "^4.5.11",
|
||||||
"@vue/eslint-config-prettier": "^6.0.0",
|
"@vue/eslint-config-prettier": "^6.0.0",
|
||||||
"@vue/eslint-config-typescript": "^7.0.0",
|
"@vue/eslint-config-typescript": "^7.0.0",
|
||||||
"eslint": "^7.18.0",
|
"eslint": "^7.20.0",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-plugin-prettier": "^3.3.1",
|
||||||
"eslint-plugin-vue": "^7.4.1",
|
"eslint-plugin-vue": "^7.6.0",
|
||||||
"node-sass": "^5.0.0",
|
"node-sass": "^5.0.0",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"sass-loader": "^10.1.1",
|
"sass-loader": "^10.1.1",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
"typescript": "^4.1.3",
|
"typescript": "^4.1.5",
|
||||||
"vue-template-compiler": "^2.6.12"
|
"vue-template-compiler": "^2.6.12"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -6,6 +6,8 @@ export const OPCODE = {
|
|||||||
SCROLL: 0x02,
|
SCROLL: 0x02,
|
||||||
KEY_DOWN: 0x03,
|
KEY_DOWN: 0x03,
|
||||||
KEY_UP: 0x04,
|
KEY_UP: 0x04,
|
||||||
|
BTN_DOWN: 0x05,
|
||||||
|
BTN_UP: 0x06,
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export interface WebRTCStats {
|
export interface WebRTCStats {
|
||||||
@ -183,20 +185,32 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
|
|||||||
payload.setInt16(5, data.y)
|
payload.setInt16(5, data.y)
|
||||||
break
|
break
|
||||||
case 'keydown':
|
case 'keydown':
|
||||||
case 'mousedown':
|
buffer = new ArrayBuffer(7)
|
||||||
buffer = new ArrayBuffer(11)
|
|
||||||
payload = new DataView(buffer)
|
payload = new DataView(buffer)
|
||||||
payload.setUint8(0, OPCODE.KEY_DOWN)
|
payload.setUint8(0, OPCODE.KEY_DOWN)
|
||||||
payload.setUint16(1, 8)
|
payload.setUint16(1, 4)
|
||||||
payload.setBigUint64(3, BigInt(data.key))
|
payload.setUint32(3, data.key)
|
||||||
break
|
break
|
||||||
case 'keyup':
|
case 'keyup':
|
||||||
case 'mouseup':
|
buffer = new ArrayBuffer(7)
|
||||||
buffer = new ArrayBuffer(11)
|
|
||||||
payload = new DataView(buffer)
|
payload = new DataView(buffer)
|
||||||
payload.setUint8(0, OPCODE.KEY_UP)
|
payload.setUint8(0, OPCODE.KEY_UP)
|
||||||
payload.setUint16(1, 8)
|
payload.setUint16(1, 4)
|
||||||
payload.setBigUint64(3, BigInt(data.key))
|
payload.setUint32(3, data.key)
|
||||||
|
break
|
||||||
|
case 'mousedown':
|
||||||
|
buffer = new ArrayBuffer(7)
|
||||||
|
payload = new DataView(buffer)
|
||||||
|
payload.setUint8(0, OPCODE.BTN_DOWN)
|
||||||
|
payload.setUint16(1, 4)
|
||||||
|
payload.setUint32(3, data.key)
|
||||||
|
break
|
||||||
|
case 'mouseup':
|
||||||
|
buffer = new ArrayBuffer(7)
|
||||||
|
payload = new DataView(buffer)
|
||||||
|
payload.setUint8(0, OPCODE.BTN_UP)
|
||||||
|
payload.setUint16(1, 4)
|
||||||
|
payload.setUint32(3, data.key)
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
this._log.warn(`unknown data event: ${event}`)
|
this._log.warn(`unknown data event: ${event}`)
|
||||||
|
@ -280,14 +280,7 @@
|
|||||||
|
|
||||||
@Watch('cursorTag')
|
@Watch('cursorTag')
|
||||||
onCursorTagChange() {
|
onCursorTagChange() {
|
||||||
this.canvasRedraw()
|
if (!this.isControling) {
|
||||||
}
|
|
||||||
|
|
||||||
@Watch('screenSize')
|
|
||||||
onScreenSizeChange() {
|
|
||||||
if (this.isControling) {
|
|
||||||
this.canvasClear()
|
|
||||||
} else {
|
|
||||||
this.canvasRedraw()
|
this.canvasRedraw()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user