added puck events
This commit is contained in:
@ -80,7 +80,16 @@ if __name__ == "__main__":
|
|||||||
if environment == 'test':
|
if environment == 'test':
|
||||||
cert_path = "ssl/mx-aare-test.psi.ch.pem"
|
cert_path = "ssl/mx-aare-test.psi.ch.pem"
|
||||||
key_path = "ssl/mx-aare-test.psi.ch.key"
|
key_path = "ssl/mx-aare-test.psi.ch.key"
|
||||||
|
host = "0.0.0.0" # Bind to all interfaces
|
||||||
|
else:
|
||||||
|
host = "127.0.0.1" # Default for other environments
|
||||||
|
|
||||||
# Run the application with appropriate SSL setup
|
# Run the application with appropriate SSL setup
|
||||||
uvicorn.run(app, port=8000, log_level="debug",
|
uvicorn.run(
|
||||||
ssl_keyfile=key_path, ssl_certfile=cert_path)
|
app,
|
||||||
|
host=host,
|
||||||
|
port=8000,
|
||||||
|
log_level="debug",
|
||||||
|
ssl_keyfile=key_path,
|
||||||
|
ssl_certfile=cert_path,
|
||||||
|
)
|
@ -229,7 +229,7 @@ const DewarDetails: React.FC<DewarDetailsProps> = ({
|
|||||||
|
|
||||||
const validateEmail = (email: string) => /\S+@\S+\.\S+/.test(email);
|
const validateEmail = (email: string) => /\S+@\S+\.\S+/.test(email);
|
||||||
const validatePhoneNumber = (phone: string) => /^\+?[1-9]\d{1,14}$/.test(phone);
|
const validatePhoneNumber = (phone: string) => /^\+?[1-9]\d{1,14}$/.test(phone);
|
||||||
const validateZipCode = (zipcode: string) => /^\d{5}(?:[-\s]\d{4})?$/.test(zipcode);
|
const validateZipCode = (zipcode: string) => /^\d{4,5}(?:[-\s]\d{4})?$/.test(zipcode);
|
||||||
|
|
||||||
if (!dewar) return <Typography>No dewar selected.</Typography>;
|
if (!dewar) return <Typography>No dewar selected.</Typography>;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user