Rework logo and polish compose cfg

node.py, logo-ext.svg, AppLayoutSidebar.tsx, and alpha-compose.override.yml
This commit is contained in:
jerlendds
2024-01-19 17:13:15 -07:00
parent 6904c242af
commit 92132ad08b
4 changed files with 28 additions and 28 deletions

View File

@@ -160,6 +160,8 @@ async def read_graph(viewport_event, send_json, project_uuid, is_initial_read: b
nodes = []
edges_data = []
data_nodes, edges = await load_nodes_from_db(project_uuid, viewport_event)
if is_initial_read:
EntityRegistry.discover_plugins()
tmp_invalid_fix = []
tmp_invalid_id_fix = []
for node in data_nodes:
@@ -371,29 +373,28 @@ async def active_graph_inquiry(
websocket.send({"action": "error"})
for user_cid, ws in graph_users.items():
while True:
try:
async for event in ws.iter_json():
await run_user_graph_event(
event=event,
send_json=ws.send_json,
uuid=active_inquiry.uuid
)
except OBPluginError as e:
await ws.send_json({"action": "error", "detail": f"{e}"})
await ws.send_json({"action": "isLoading", "detail": False })
log.error(e)
except (WebSocketException, ConnectionClosedError) as e:
log.error("Exception inside node.active_project")
log.error(e)
await ws.send_json({"action": "isLoading", "detail": False })
await ws.close()
del graph_users[user_cid]
except (WebSocketDisconnect, RuntimeError) as e:
if isinstance(e, RuntimeError):
log.error(e)
log.info(f"disconnect! {user_cid}")
del graph_users[user_cid]
try:
async for event in ws.iter_json():
await run_user_graph_event(
event=event,
send_json=ws.send_json,
uuid=active_inquiry.uuid
)
except OBPluginError as e:
await ws.send_json({"action": "error", "detail": f"{e}"})
await ws.send_json({"action": "isLoading", "detail": False })
log.error(e)
except (WebSocketException, ConnectionClosedError) as e:
log.error("Exception inside node.active_project")
log.error(e)
await ws.send_json({"action": "isLoading", "detail": False })
await ws.close()
# del graph_users[user_cid]
except (WebSocketDisconnect, RuntimeError) as e:
if isinstance(e, RuntimeError):
log.error(e)
log.info(f"disconnect! {user_cid}")
del graph_users[user_cid]
@router.get("/refresh")

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -1,5 +1,5 @@
import classNames from "classnames";
import { ReactComponent as IcGraphLogomark } from "@images/icg-text.svg";
import { ReactComponent as IcGraphLogomark } from "@images/logo-ext.svg"; // icg-text.svg
import { Link, NavLink } from "react-router-dom";
import HamburgerMenu from "./HamburgerMenu";
import { toast } from "react-toastify";
@@ -35,7 +35,7 @@ export default function AppLayoutSidebar({ showSidebar, toggleSidebar, setShowIn
)}
>
<Link to="/" replace>
<IcGraphLogomark className="h-5 ml-1 w-auto fill-slate-400" />
<IcGraphLogomark className="h-7 ml-1 w-auto fill-slate-400" />
</Link>
<HamburgerMenu

View File

@@ -30,8 +30,7 @@ services:
- "ob-db-data:${PGDATA-/var/lib/postgresql/data/pgdata}"
env_file:
- .env.alpha
ports:
- "${POSTGRES_PORT-55432}:5432"
janus:
container_name: "ob_dev_janus"