bump openapi generator version.

This commit is contained in:
Miroslav Šedivý 2021-02-26 22:54:43 +01:00
parent c8cf5ed621
commit 6f97a376f5
6 changed files with 733 additions and 713 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto

View File

@ -23,4 +23,3 @@
"source.fixAll.eslint": true
},
}

1334
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,34 +17,33 @@
"build": "vue-cli-service build --target lib --name neko ./src/index.ts"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.2",
"axios": "^0.21.1",
"eventemitter3": "^4.0.7",
"resize-observer-polyfill": "^1.5.1",
"vue": "^2.6.12",
"vue-class-component": "^7.2.6",
"vue-context": "^6.0.0",
"vue-property-decorator": "^9.1.2"
},
"devDependencies": {
"@types/node": "^14.14.22",
"@fortawesome/fontawesome-free": "^5.15.2",
"@types/node": "^14.14.31",
"@types/vue": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"@vue/cli-plugin-babel": "^4.5.10",
"@vue/cli-plugin-eslint": "^4.5.10",
"@vue/cli-plugin-typescript": "^4.5.10",
"@vue/cli-service": "^4.5.10",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"@vue/cli-plugin-babel": "^4.5.11",
"@vue/cli-plugin-eslint": "^4.5.11",
"@vue/cli-plugin-typescript": "^4.5.11",
"@vue/cli-service": "^4.5.11",
"@vue/eslint-config-prettier": "^6.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-vue": "^7.4.1",
"eslint-plugin-vue": "^7.6.0",
"node-sass": "^5.0.0",
"prettier": "^2.2.1",
"sass-loader": "^10.1.1",
"ts-node": "^9.1.1",
"typescript": "^4.1.3",
"typescript": "^4.1.5",
"vue-template-compiler": "^2.6.12"
},
"files": [

View File

@ -6,6 +6,8 @@ export const OPCODE = {
SCROLL: 0x02,
KEY_DOWN: 0x03,
KEY_UP: 0x04,
BTN_DOWN: 0x05,
BTN_UP: 0x06,
} as const
export interface WebRTCStats {
@ -183,20 +185,32 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
payload.setInt16(5, data.y)
break
case 'keydown':
case 'mousedown':
buffer = new ArrayBuffer(11)
buffer = new ArrayBuffer(7)
payload = new DataView(buffer)
payload.setUint8(0, OPCODE.KEY_DOWN)
payload.setUint16(1, 8)
payload.setBigUint64(3, BigInt(data.key))
payload.setUint16(1, 4)
payload.setUint32(3, data.key)
break
case 'keyup':
case 'mouseup':
buffer = new ArrayBuffer(11)
buffer = new ArrayBuffer(7)
payload = new DataView(buffer)
payload.setUint8(0, OPCODE.KEY_UP)
payload.setUint16(1, 8)
payload.setBigUint64(3, BigInt(data.key))
payload.setUint16(1, 4)
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
default:
this._log.warn(`unknown data event: ${event}`)

View File

@ -280,14 +280,7 @@
@Watch('cursorTag')
onCursorTagChange() {
this.canvasRedraw()
}
@Watch('screenSize')
onScreenSizeChange() {
if (this.isControling) {
this.canvasClear()
} else {
if (!this.isControling) {
this.canvasRedraw()
}
}