feat: use createdAt
This commit is contained in:
@@ -16,7 +16,7 @@ import { useGlobalInfoStore } from "../../context/globalInfo";
|
|||||||
import { deleteRecordingFromStorage, getStoredRecordings } from "../../api/storage";
|
import { deleteRecordingFromStorage, getStoredRecordings } from "../../api/storage";
|
||||||
|
|
||||||
interface Column {
|
interface Column {
|
||||||
id: 'interpret' | 'name' | 'create_date' | 'edit' | 'update_date' | 'delete' | 'schedule' | 'integrate';
|
id: 'interpret' | 'name' | 'createdAt' | 'edit' | 'update_date' | 'delete' | 'schedule' | 'integrate';
|
||||||
label: string;
|
label: string;
|
||||||
minWidth?: number;
|
minWidth?: number;
|
||||||
align?: 'right';
|
align?: 'right';
|
||||||
@@ -27,7 +27,7 @@ const columns: readonly Column[] = [
|
|||||||
{ id: 'interpret', label: 'Run', minWidth: 80 },
|
{ id: 'interpret', label: 'Run', minWidth: 80 },
|
||||||
{ id: 'name', label: 'Name', minWidth: 80 },
|
{ id: 'name', label: 'Name', minWidth: 80 },
|
||||||
{
|
{
|
||||||
id: 'create_date',
|
id: 'createdAt',
|
||||||
label: 'Created at',
|
label: 'Created at',
|
||||||
minWidth: 80,
|
minWidth: 80,
|
||||||
//format: (value: string) => value.toLocaleString('en-US'),
|
//format: (value: string) => value.toLocaleString('en-US'),
|
||||||
@@ -63,7 +63,7 @@ const columns: readonly Column[] = [
|
|||||||
interface Data {
|
interface Data {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
create_date: string;
|
createdAt: string;
|
||||||
update_date: string;
|
update_date: string;
|
||||||
content: WorkflowFile;
|
content: WorkflowFile;
|
||||||
params: string[];
|
params: string[];
|
||||||
|
|||||||
Reference in New Issue
Block a user