Skip to content

Commit

Permalink
feat(): add more columns to widget container
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatloch committed Jun 4, 2024
1 parent 967a203 commit fad1f83
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const ResponsiveGridLayoutCols = {
md: 6,
sm: 6,
xs: 6,
xxs: 3,
xxs: 6,
};

export const ResponsiveGridLayoutBreakpoints = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const WidgetEditorPreview = () => {
{
i: '1',
h: 7,
w: 1,
w: 3,
x: 0,
y: 0,
},
Expand Down
4 changes: 0 additions & 4 deletions packages/server/src/services/widgetsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ export const createWidgetsService = (): WidgetsService => {
},
});

console.log(sensorData, sensorDataDeviceIds);

const getTextLineContext = (
textLine: WidgetDto['textLines'][0],
): Device | Event | SensorData | Record<string, unknown> => {
Expand All @@ -138,8 +136,6 @@ export const createWidgetsService = (): WidgetsService => {
widget.textLines.forEach((textLine) => {
const context = getTextLineContext(textLine);

console.log(textLine.id, context);

textLine.value = parseWidgetText(textLine.value, context);
});
});
Expand Down

0 comments on commit fad1f83

Please sign in to comment.