allow localhost across vpn
This commit is contained in:
parent
47bde257e4
commit
417a16cc74
7718
mast-react/package-lock.json
generated
Normal file
7718
mast-react/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -19,6 +19,7 @@
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
"uuid4": "^2.0.3",
|
||||||
"vite-express": "^0.9.2"
|
"vite-express": "^0.9.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -34,4 +35,4 @@
|
||||||
"vite": "^4.3.9",
|
"vite": "^4.3.9",
|
||||||
"vite-plugin-pwa": "^0.16.4"
|
"vite-plugin-pwa": "^0.16.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,9 @@ import App from "./App.tsx";
|
||||||
import schemaContent from "./schemas/main2.sql?raw";
|
import schemaContent from "./schemas/main2.sql?raw";
|
||||||
import { DBProvider } from "@vlcn.io/react";
|
import { DBProvider } from "@vlcn.io/react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a random room name to sync with or pulls one from local storage.
|
* Generates a random room name to sync with or pulls one from local storage.
|
||||||
|
@ -74,5 +77,6 @@ function writeHash(hash: HashBag) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function newRoom() {
|
function newRoom() {
|
||||||
return crypto.randomUUID().replaceAll("-", "");
|
let uuid = uuidv4();
|
||||||
|
return uuid.replaceAll("-", "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue