|
@@ -12,7 +12,7 @@ const mqttService = new MqttService();
|
|
|
const weekdayLabel = (value) => ['一', '二', '三', '四', '五', '六', '日'][Number(value) - 1] || '';
|
|
const weekdayLabel = (value) => ['一', '二', '三', '四', '五', '六', '日'][Number(value) - 1] || '';
|
|
|
const actionLabel = (action) => ({ open: '开灯', close: '关灯', query: '查询', state_change: '状态变化' }[action] || action);
|
|
const actionLabel = (action) => ({ open: '开灯', close: '关灯', query: '查询', state_change: '状态变化' }[action] || action);
|
|
|
const targetLabel = (channel) => Number(channel) === 0 ? '全部灯' : `灯${channel}`;
|
|
const targetLabel = (channel) => Number(channel) === 0 ? '全部灯' : `灯${channel}`;
|
|
|
-const repeatLabel = (type) => ({ daily: '每天', workday: '工作日', holiday: '法定节假日', custom: '自定义' }[type] || type);
|
|
|
|
|
|
|
+const repeatLabel = (type) => ({ daily: '每天', workday: '工作日', holiday: '法定工作日', custom: '自定义' }[type] || type);
|
|
|
const holidayTypeLabel = (type) => ({ holiday: '节假日', adjusted_workday: '调休' }[type] || type);
|
|
const holidayTypeLabel = (type) => ({ holiday: '节假日', adjusted_workday: '调休' }[type] || type);
|
|
|
|
|
|
|
|
app.set('view engine', 'ejs');
|
|
app.set('view engine', 'ejs');
|