mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
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:
@ -20,8 +20,8 @@
|
||||
neko.state.connection.status == 'disconnected'
|
||||
? 'background: red;'
|
||||
: neko.state.connection.status == 'connecting'
|
||||
? 'background: #17448a;'
|
||||
: ''
|
||||
? 'background: #17448a;'
|
||||
: ''
|
||||
"
|
||||
>
|
||||
{{ neko.state.connection.status }}
|
||||
|
@ -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({
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user