1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Cleaning up logs

Signed-off-by: SystemsPurge <naktiyoussef@proton.me>
This commit is contained in:
SystemsPurge 2024-10-31 09:44:00 +01:00
parent 2524ad29ac
commit e71b41427b
No known key found for this signature in database
8 changed files with 0 additions and 13 deletions

View file

@ -58,7 +58,6 @@ class WebSocketManager {
if (socket == null) {
return false;
}
console.log("Sending to IC", id, "message: ", message);
const data = this.messageToBuffer(message);
socket.socket.send(data);

View file

@ -127,7 +127,6 @@ const Dashboard = ({ isFullscreen, toggleFullscreen }) => {
setHeight(dashboard.height);
setGrid(dashboard.grid);
console.log('widgets', widgets);
}
}, [dashboard]);

View file

@ -75,12 +75,10 @@ const WidgetPlayer = (
},[playerIC])
useEffect(() => {
console.log(widget.customProperties.configID)
if (typeof widget.customProperties.configID !== "undefined"
&& configID !== widget.customProperties.configID) {
let configID = widget.customProperties.configID;
let config = configs.find(cfg => cfg.id === parseInt(configID, 10));
console.log(configID)
if (config) {
let t_playeric = ics.find(ic => ic.id === parseInt(config.icID, 10));
if (t_playeric) {
@ -200,7 +198,6 @@ const WidgetPlayer = (
const handleDownloadFile = async (fileID) => {
triggerDownloadFile(fileID)
.then(v=>{
console.log(filesToDownload)
const file = filesToDownload.find(f => f.id === fileID);
const blob = new Blob([v.data], { type: 'application/octet-stream' });
zip.file(file.name, blob);

View file

@ -65,8 +65,6 @@ const Infrastructure = () => {
const onNewModalClose = (data) => {
setIsNewModalOpened(false);
console.log("Adding ic. External: ", !data.managedexternally)
if(data){
if(!data.managedexternally){
dispatch(addIC({token: sessionToken, ic: data}))

View file

@ -79,7 +79,6 @@ const ExportSignalMappingDialog = ({isShown, direction, onClose, configID}) => {
}
refetchSignals();
console.log(signals)
}
const handleDelete = async (signalID) => {

View file

@ -85,7 +85,6 @@ const Scenarios = (props) => {
}
const onEditScenario = async (data) => {
console.log("data: ", {scenario: data});
if(data){
try{
await updateScenario({id: modalScenario.id, ...{scenario: data}}).unwrap();

View file

@ -32,7 +32,6 @@ const configSlice = createSlice({
.addCase(loadConfig.fulfilled, (state, action) => {
state.isLoading = false
state.config = action.payload;
console.log("fetched config", action.payload)
})
}
});
@ -43,7 +42,6 @@ export const loadConfig = createAsyncThunk(
async (data) => {
try {
const res = await RestAPI.get("/api/v2/config", null);
console.log("response:", res)
return res;
} catch (error) {
console.log("Error loading config", error);

View file

@ -151,8 +151,6 @@ export const sendActionToIC = createAsyncThunk(
const id = data.id;
let actions = data.actions;
console.log("actions: ", actions)
if (!Array.isArray(actions))
actions = [ actions ]