feat: enhance login handling and message creation
- Updated main.ts to export createMessage and queryLogin. - Modified checkPluginLogin in login-handle.ts to return structured results. - Refactored query.ts to adjust imports and export queryLogin. - Cleaned up kv-login.ts by removing unused imports and improving method handling. - Adjusted Vite configuration for deployment path changes. - Simplified web.html by removing unnecessary import maps and scripts. - Created web.ts to handle login success events and user redirection logic.
This commit is contained in:
13
package.json
13
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/kv-login",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.8",
|
||||
"description": "",
|
||||
"main": "src/main.ts",
|
||||
"scripts": {
|
||||
@@ -9,7 +9,7 @@
|
||||
"postbuild": "dts -i src/main.ts -o app.d.ts",
|
||||
"build:test": "vite build",
|
||||
"prepub": "rm -rf ./dist && pnpm run build:test",
|
||||
"pub": "ev deploy ./dist -k login -v 0.1.4 -u -y yes"
|
||||
"pub": "ev deploy ./dist -k login -v 0.1.12 -u -y yes"
|
||||
},
|
||||
"keywords": [],
|
||||
"files": [
|
||||
@@ -19,14 +19,14 @@
|
||||
],
|
||||
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
||||
"license": "MIT",
|
||||
"packageManager": "pnpm@10.26.2",
|
||||
"packageManager": "pnpm@10.28.2",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@kevisual/context": "^0.0.4",
|
||||
"@kevisual/query-login": "^0.0.7",
|
||||
"@kevisual/query": "^0.0.39",
|
||||
"crypto-js": "^4.2.0",
|
||||
"lit-html": "^3.3.2",
|
||||
"qrcode": "^1.5.4"
|
||||
@@ -37,7 +37,8 @@
|
||||
},
|
||||
"types": "./types/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@kevisual/api": "^0.0.8",
|
||||
"@types/bun": "^1.3.5"
|
||||
"@kevisual/api": "^0.0.44",
|
||||
"@types/bun": "^1.3.8",
|
||||
"vite": "^7.3.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user