Upgrade to node 18 and dependencies (#46)

* upgrade to nodejs 18.

* npm update.

* upgrade linter.

* upgrade axios.

* upgrade saas loader.

* upgrade typescript.
This commit is contained in:
Miroslav Šedivý
2024-01-26 19:25:22 +01:00
committed by GitHub
parent 4ed16f3960
commit 4e693ae4a3
17 changed files with 1593 additions and 1280 deletions

View File

@ -20,8 +20,8 @@
neko.state.connection.status == 'disconnected'
? 'background: red;'
: neko.state.connection.status == 'connecting'
? 'background: #17448a;'
: ''
? 'background: #17448a;'
: ''
"
>
{{ neko.state.connection.status }}

View File

@ -85,7 +85,7 @@
</style>
<script lang="ts">
import { Component, Prop, Ref, Watch, Vue } from 'vue-property-decorator'
import { Component, Prop, Watch, Vue } from 'vue-property-decorator'
import Neko from '~/component/main.vue'
@Component({

View File

@ -498,7 +498,7 @@
async updateProfile(memberId: string, memberProfile: ApiModels.MemberProfile) {
try {
const res = await this.neko.members.membersUpdateProfile(memberId, memberProfile)
await this.neko.members.membersUpdateProfile(memberId, memberProfile)
const members = this.members.map((member) => {
if (member.id == memberId) {
return {

View File

@ -335,7 +335,8 @@
})
})(require.context('./plugins/', true, /(main-tabs|main-components)\.vue$/))
import { Vue, Component, Ref, Watch } from 'vue-property-decorator'
import { Vue, Component, Ref } from 'vue-property-decorator'
import { AxiosProgressEvent } from 'axios'
import NekoCanvas from '~/component/main.vue'
import NekoHeader from './components/header.vue'
import NekoConnect from './components/connect.vue'
@ -398,7 +399,11 @@
this.uploadProgress = 0
try {
await this.neko.room.uploadDialog([...files], {
onUploadProgress: (progressEvent: ProgressEvent) => {
onUploadProgress: (progressEvent: AxiosProgressEvent) => {
if (!progressEvent.total) {
this.uploadProgress = 0
return
}
this.uploadProgress = (progressEvent.loaded / progressEvent.total) * 100
},
})
@ -455,7 +460,11 @@
this.uploadActive = true
this.uploadProgress = 0
})
this.neko.events.on('upload.drop.progress', (progressEvent: ProgressEvent) => {
this.neko.events.on('upload.drop.progress', (progressEvent: AxiosProgressEvent) => {
if (!progressEvent.total) {
this.uploadProgress = 0
return
}
this.uploadProgress = (progressEvent.loaded / progressEvent.total) * 100
})
this.neko.events.on('upload.drop.finished', (e?: any) => {
@ -473,6 +482,7 @@
})
this.neko.events.on('upload.dialog.overlay', (id: string) => {
this.dialogOverlayActive = true
console.log('upload.dialog.overlay', id)
})
this.neko.events.on('upload.dialog.closed', () => {
this.dialogOverlayActive = false