fix ts config
parent
bc9466737b
commit
c1ab5b34df
|
|
@ -8,10 +8,7 @@
|
|||
"name": "example-dashboard",
|
||||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"@velaboratory/velconnect-svelte": "^1.0.2",
|
||||
"humanize-duration": "^3.28.0",
|
||||
"luxon": "^3.3.0",
|
||||
"pocketbase": "^0.15.2"
|
||||
"@velaboratory/velconnect-svelte": "^1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-cloudflare": "^2.3.1",
|
||||
|
|
@ -1817,11 +1814,6 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/humanize-duration": {
|
||||
"version": "3.28.0",
|
||||
"resolved": "https://registry.npmjs.org/humanize-duration/-/humanize-duration-3.28.0.tgz",
|
||||
"integrity": "sha512-jMAxraOOmHuPbffLVDKkEKi/NeG8dMqP8lGRd6Tbf7JgAeG33jjgPWDbXXU7ypCI0o+oNKJFgbSB9FKVdWNI2A=="
|
||||
},
|
||||
"node_modules/ignore": {
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
|
||||
|
|
@ -2042,14 +2034,6 @@
|
|||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/luxon": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/luxon/-/luxon-3.3.0.tgz",
|
||||
"integrity": "sha512-An0UCfG/rSiqtAIiBPO0Y9/zAnHUZxAMiCpTd5h2smgsj7GGmcenvrvww2cqNA8/4A5ZrD1gJpHN2mIHZQF+Mg==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/magic-string": {
|
||||
"version": "0.30.1",
|
||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.1.tgz",
|
||||
|
|
@ -4418,11 +4402,6 @@
|
|||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||
"dev": true
|
||||
},
|
||||
"humanize-duration": {
|
||||
"version": "3.28.0",
|
||||
"resolved": "https://registry.npmjs.org/humanize-duration/-/humanize-duration-3.28.0.tgz",
|
||||
"integrity": "sha512-jMAxraOOmHuPbffLVDKkEKi/NeG8dMqP8lGRd6Tbf7JgAeG33jjgPWDbXXU7ypCI0o+oNKJFgbSB9FKVdWNI2A=="
|
||||
},
|
||||
"ignore": {
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
|
||||
|
|
@ -4595,11 +4574,6 @@
|
|||
"yallist": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"luxon": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/luxon/-/luxon-3.3.0.tgz",
|
||||
"integrity": "sha512-An0UCfG/rSiqtAIiBPO0Y9/zAnHUZxAMiCpTd5h2smgsj7GGmcenvrvww2cqNA8/4A5ZrD1gJpHN2mIHZQF+Mg=="
|
||||
},
|
||||
"magic-string": {
|
||||
"version": "0.30.1",
|
||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.1.tgz",
|
||||
|
|
|
|||
|
|
@ -31,9 +31,6 @@
|
|||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@velaboratory/velconnect-svelte": "^1.0.2",
|
||||
"humanize-duration": "^3.28.0",
|
||||
"luxon": "^3.3.0",
|
||||
"pocketbase": "^0.15.2"
|
||||
"@velaboratory/velconnect-svelte": "^1.0.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "edu.uga.engr.vel.vel-connect",
|
||||
"displayName": "VEL-Connect",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"unity": "2019.1",
|
||||
"description": "Web-based configuration for VR applications",
|
||||
"keywords": [],
|
||||
|
|
|
|||
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Build",
|
||||
"type": "shell",
|
||||
"command": "npm run build",
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Deploy to NPM",
|
||||
"type": "shell",
|
||||
"command": "npm publish --access publicf",
|
||||
"dependsOn": ["Build"],
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@velaboratory/velconnect-svelte",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@velaboratory/velconnect-svelte",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"pocketbase": "^0.15.3",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@velaboratory/velconnect-svelte",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"description": "Use VEL-Connect with a Svelte dashboard",
|
||||
"main": "src/index.js",
|
||||
"files": [
|
||||
|
|
@ -14,7 +14,8 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"pocketbase": "^0.15.3",
|
||||
"svelte": "^4.0.5"
|
||||
"svelte": "^4.0.5",
|
||||
"@velaboratory/velconnect": "../velconnect-npm"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.1.6"
|
||||
|
|
|
|||
|
|
@ -242,9 +242,9 @@ export async function pair(pairingCode: string) {
|
|||
|
||||
// add the account data to the device
|
||||
if (
|
||||
u.user_data == null ||
|
||||
u.user_data == undefined ||
|
||||
u.user_data == ""
|
||||
u["user_data"] == null ||
|
||||
u["user_data"] == undefined ||
|
||||
u["user_data"] == ""
|
||||
) {
|
||||
// create a new user data block if it doesn't exist on the user already
|
||||
const userDataBlock = await pb.collection("DataBlock").create({
|
||||
|
|
@ -252,9 +252,9 @@ export async function pair(pairingCode: string) {
|
|||
data: {},
|
||||
owner: u.id,
|
||||
});
|
||||
u.user_data = userDataBlock.id;
|
||||
u["user_data"] = userDataBlock.id;
|
||||
}
|
||||
device["data"] = u.user_data;
|
||||
device["data"] = u["user_data"];
|
||||
device["owner"] = u.id;
|
||||
device["past_owners"] = [...device["past_owners"], u.id];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue