-
-
- {{node.long_name}}
- {{node.short_name}} ({{node.num}})
-
-
- график
-
-
-
-
-
-
-
+
+
+
+
+ {{node.long_name}}
+ {{node.short_name}} ({{node.num}})
+
+
+ график
+
+
+
+
+
+
+
+
`
})
diff --git a/ui/src/app/components/nodes/nodes.styles.scss b/ui/src/app/components/nodes/nodes.styles.scss
index 8b71b74..4b5a21a 100644
--- a/ui/src/app/components/nodes/nodes.styles.scss
+++ b/ui/src/app/components/nodes/nodes.styles.scss
@@ -1,11 +1,5 @@
.card-wrapper {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
- gap: 8px;
-}
-
-.grid-card {
- width: 100%;
- height: 100%;
- /* Additional styling as needed */
+ gap: 24px;
}
diff --git a/webExtensions/publicEndpoints.py b/webExtensions/publicEndpoints.py
index ac22e86..388d302 100644
--- a/webExtensions/publicEndpoints.py
+++ b/webExtensions/publicEndpoints.py
@@ -2,6 +2,7 @@ from fastapi import FastAPI
from fastapi.requests import Request
from fastapi.responses import Response, JSONResponse
from fastapi.exceptions import HTTPException
+from extra.NodeDTO import NodeDTO
class WebExtension:
app: FastAPI
@@ -48,4 +49,14 @@ class WebExtension:
@self.app.get(f"{self.core.context}/auth/logout")
async def clearSession(request:Request):
- return self.core.authManager.setAuth(JSONResponse({"status":True}), 0, True)
\ No newline at end of file
+ return self.core.authManager.setAuth(JSONResponse({"status":True}), 0, True)
+
+ @self.app.get(f"{self.core.context}/auth/me")
+ @self.core.authManager.authRequest()
+ async def userNode(request:Request):
+ userNum = request.cookies.get(self.core.authManager.NUM, None)
+ userNode = await self.dbService.oneNode(userNum)
+ if userNum:
+ return NodeDTO(userNode)
+ else:
+ return {}
\ No newline at end of file