From dd78f7c12bda172692a634e684ac923c705a732a Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 4 Jan 2021 17:49:45 -0800 Subject: [PATCH 1/6] First pass at access token creation page --- web/pages/access-tokens.tsx | 193 ++++++++++++++++++++++++++++++++++++ web/utils/apis.ts | 8 ++ 2 files changed, 201 insertions(+) create mode 100644 web/pages/access-tokens.tsx diff --git a/web/pages/access-tokens.tsx b/web/pages/access-tokens.tsx new file mode 100644 index 000000000..f38881740 --- /dev/null +++ b/web/pages/access-tokens.tsx @@ -0,0 +1,193 @@ +import React, { useState, useEffect } from "react"; +import { Table, Tag, Space, Button, Modal, Checkbox, Input, Typography } from 'antd'; +import { DeleteOutlined, EyeTwoTone, EyeInvisibleOutlined } from '@ant-design/icons'; +const { Title, Paragraph, Text } = Typography; + +import format from 'date-fns/format' + +import { + fetchData, + ACCESS_TOKENS, + DELETE_ACCESS_TOKEN, + CREATE_ACCESS_TOKEN, +} from "../utils/apis"; + +export default function Logs() { + const columns = [ + { + title: '', + key: 'delete', + render: (text, record) => ( + +