Refactor code structure for improved readability and maintainability
This commit is contained in:
10
package.json
10
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/kv-login",
|
||||
"version": "0.1.15",
|
||||
"version": "0.1.17",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -8,7 +8,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.15 -u -y yes"
|
||||
"pub": "ev deploy ./dist -k login -v 0.1.17 -u -y yes"
|
||||
},
|
||||
"keywords": [],
|
||||
"files": [
|
||||
@@ -29,12 +29,12 @@
|
||||
"devDependencies": {
|
||||
"@kevisual/cache": "^0.0.5",
|
||||
"@kevisual/context": "^0.0.8",
|
||||
"@kevisual/query": "^0.0.49",
|
||||
"@kevisual/query": "^0.0.52",
|
||||
"crypto-js": "^4.2.0",
|
||||
"lit-html": "^3.3.2",
|
||||
"qrcode": "^1.5.4",
|
||||
"@kevisual/api": "^0.0.59",
|
||||
"@types/bun": "^1.3.9",
|
||||
"@kevisual/api": "^0.0.62",
|
||||
"@types/bun": "^1.3.10",
|
||||
"vite": "^7.3.1"
|
||||
}
|
||||
}
|
||||
1114
pnpm-lock.yaml
generated
Normal file
1114
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -60,10 +60,10 @@ const getLoginMethodByDomain = (): LoginMethod[] => {
|
||||
methods = ['password', 'wechat-mp-ticket', 'wechat',]
|
||||
break;
|
||||
case 'localhost':
|
||||
methods = ['password', 'web']
|
||||
methods = ['web', 'password']
|
||||
break
|
||||
case 'cnb.run':
|
||||
methods = ['password', 'web']
|
||||
methods = ['web', 'password']
|
||||
break;
|
||||
default:
|
||||
methods = ['password', 'web', 'phone', 'wechat', 'wechat-mp', 'wechat-mp-ticket']
|
||||
|
||||
Reference in New Issue
Block a user