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:
parent
2524ad29ac
commit
e71b41427b
8 changed files with 0 additions and 13 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -127,7 +127,6 @@ const Dashboard = ({ isFullscreen, toggleFullscreen }) => {
|
|||
setHeight(dashboard.height);
|
||||
setGrid(dashboard.grid);
|
||||
|
||||
console.log('widgets', widgets);
|
||||
}
|
||||
}, [dashboard]);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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}))
|
||||
|
|
|
@ -79,7 +79,6 @@ const ExportSignalMappingDialog = ({isShown, direction, onClose, configID}) => {
|
|||
}
|
||||
|
||||
refetchSignals();
|
||||
console.log(signals)
|
||||
}
|
||||
|
||||
const handleDelete = async (signalID) => {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 ]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue