diff options
| author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2022-12-22 16:01:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-22 16:01:59 +0900 |
| commit | f1fd1d2585bd5230caea4c7b8814c2cf007e57cc (patch) | |
| tree | 212dd8f70312b9237484057deba6bc9611ec44d0 /packages/client/src/widgets | |
| parent | Improve Dockerfile (#9105) (diff) | |
| download | sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.tar.gz sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.tar.bz2 sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.zip | |
style: add missing trailing commas (#9387)
Diffstat (limited to 'packages/client/src/widgets')
| -rw-r--r-- | packages/client/src/widgets/activity.calendar.vue | 2 | ||||
| -rw-r--r-- | packages/client/src/widgets/server-metric/cpu-mem.vue | 2 | ||||
| -rw-r--r-- | packages/client/src/widgets/server-metric/net.vue | 2 | ||||
| -rw-r--r-- | packages/client/src/widgets/timeline.vue | 14 |
4 files changed, 10 insertions, 10 deletions
diff --git a/packages/client/src/widgets/activity.calendar.vue b/packages/client/src/widgets/activity.calendar.vue index 33b95b00db..84f6af1c13 100644 --- a/packages/client/src/widgets/activity.calendar.vue +++ b/packages/client/src/widgets/activity.calendar.vue @@ -47,7 +47,7 @@ props.activity.slice().forEach((d, i) => { year: date.getFullYear(), month: date.getMonth(), day: date.getDate(), - weekday: date.getDay() + weekday: date.getDay(), }; d.v = peak === 0 ? 0 : d.total / (peak / 2); diff --git a/packages/client/src/widgets/server-metric/cpu-mem.vue b/packages/client/src/widgets/server-metric/cpu-mem.vue index 429ccdf3ae..80a8e427e1 100644 --- a/packages/client/src/widgets/server-metric/cpu-mem.vue +++ b/packages/client/src/widgets/server-metric/cpu-mem.vue @@ -100,7 +100,7 @@ onMounted(() => { props.connection.on('stats', onStats); props.connection.on('statsLog', onStatsLog); props.connection.send('requestLog', { - id: Math.random().toString().substr(2, 8) + id: Math.random().toString().substr(2, 8), }); }); diff --git a/packages/client/src/widgets/server-metric/net.vue b/packages/client/src/widgets/server-metric/net.vue index 82801964f3..ab8b0fe471 100644 --- a/packages/client/src/widgets/server-metric/net.vue +++ b/packages/client/src/widgets/server-metric/net.vue @@ -70,7 +70,7 @@ onMounted(() => { props.connection.on('stats', onStats); props.connection.on('statsLog', onStatsLog); props.connection.send('requestLog', { - id: Math.random().toString().substr(2, 8) + id: Math.random().toString().substr(2, 8), }); }); diff --git a/packages/client/src/widgets/timeline.vue b/packages/client/src/widgets/timeline.vue index b22d3e445b..e48444d33f 100644 --- a/packages/client/src/widgets/timeline.vue +++ b/packages/client/src/widgets/timeline.vue @@ -82,7 +82,7 @@ const choose = async (ev) => { menuOpened.value = true; const [antennas, lists] = await Promise.all([ os.api('antennas/list'), - os.api('users/lists/list') + os.api('users/lists/list'), ]); const antennaItems = antennas.map(antenna => ({ text: antenna.name, @@ -90,7 +90,7 @@ const choose = async (ev) => { action: () => { widgetProps.antenna = antenna; setSrc('antenna'); - } + }, })); const listItems = lists.map(list => ({ text: list.name, @@ -98,24 +98,24 @@ const choose = async (ev) => { action: () => { widgetProps.list = list; setSrc('list'); - } + }, })); os.popupMenu([{ text: i18n.ts._timelines.home, icon: 'ti ti-home', - action: () => { setSrc('home'); } + action: () => { setSrc('home'); }, }, { text: i18n.ts._timelines.local, icon: 'ti ti-messages', - action: () => { setSrc('local'); } + action: () => { setSrc('local'); }, }, { text: i18n.ts._timelines.social, icon: 'ti ti-share', - action: () => { setSrc('social'); } + action: () => { setSrc('social'); }, }, { text: i18n.ts._timelines.global, icon: 'ti ti-world', - action: () => { setSrc('global'); } + action: () => { setSrc('global'); }, }, antennaItems.length > 0 ? null : undefined, ...antennaItems, listItems.length > 0 ? null : undefined, ...listItems], ev.currentTarget ?? ev.target).then(() => { menuOpened.value = false; }); |