diff --git a/package.json b/package.json
index 53b12ce..b964ff2 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,6 @@
},
"dependencies": {
"@temir/core": "^0.0.18",
- "@vue/runtime-core": "^3.2.38",
"vue": "^3.2.38"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ba4abe7..97fe249 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -4,14 +4,12 @@ specifiers:
'@temir/cli': ^0.0.18
'@temir/core': ^0.0.18
'@temir/tab': ^0.0.18
- '@vue/runtime-core': ^3.2.38
tsup: ^6.2.3
typescript: ^4.8.2
vue: ^3.2.38
dependencies:
'@temir/core': 0.0.18
- '@vue/runtime-core': 3.2.38
vue: 3.2.38
devDependencies:
diff --git a/src/App.vue b/src/App.vue
index 363d2ce..20c7b75 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,8 +1,9 @@
diff --git a/src/index.ts b/src/index.ts
index 2aeea91..1dfe4d1 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -6,17 +6,17 @@ const handler: MsgHandler = {
console.log(`online: ${online}`);
},
onIncomeDanmu: (msg) => {
- console.log(msg)
+ console.log(msg.user.uname, msg.content);
},
onIncomeDanmuRaw(data) {
- console.log(data)
- },
- onWatchedChange: (newWatched) => {
- console.log('newWatched', newWatched)
+ console.log(data.info)
},
+ // onWatchedChange: (newWatched) => {
+ // console.log('newWatched', newWatched)
+ // },
}
-openRoom(652581, handler);
+openRoom(41682, handler);
// const num = 6067854
// const intToColorHex = (int: number) => {
diff --git a/src/shims.d.ts b/src/shims.d.ts
new file mode 100644
index 0000000..d72a676
--- /dev/null
+++ b/src/shims.d.ts
@@ -0,0 +1,5 @@
+declare module '*.vue' {
+ import { type DefineComponent } from 'vue'
+ const component: DefineComponent<{}, {}, any>
+ export default component
+}
\ No newline at end of file
diff --git a/src/tsconfig.json b/src/tsconfig.json
index d9b2755..5991227 100644
--- a/src/tsconfig.json
+++ b/src/tsconfig.json
@@ -12,6 +12,5 @@
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"skipLibCheck": true
- },
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
+ }
}
\ No newline at end of file