You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/08/06 02:12:25 UTC
(incubator-answer) branch feat/1.4.0/personal created (now bc335702)
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a change to branch feat/1.4.0/personal
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
at bc335702 feat: Add badges to admin
This branch includes the following new commits:
new 74ee4b48 feat: bages ui
new bc335702 feat: Add badges to admin
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-answer) 02/02: feat: Add badges to admin
Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch feat/1.4.0/personal
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit bc335702617c45ec200c5a75f42b62f9fc73ac45
Author: robin <ro...@rnode.me>
AuthorDate: Mon Aug 5 14:29:22 2024 +0800
feat: Add badges to admin
---
i18n/en_US.yaml | 16 ++-
ui/src/common/constants.ts | 3 +
ui/src/common/interface.ts | 2 +
.../pages/Admin/Badges/components/Action/index.tsx | 51 +++++++++
ui/src/pages/Admin/Badges/index.tsx | 122 +++++++++++++++++++++
ui/src/pages/Admin/index.tsx | 1 +
ui/src/router/routes.ts | 4 +
7 files changed, 198 insertions(+), 1 deletion(-)
diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index 1b403974..53b47fce 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1448,6 +1448,7 @@ ui:
questions: Questions
answers: Answers
users: Users
+ badges: Badges
flags: Flags
settings: Settings
general: General
@@ -1880,7 +1881,20 @@ ui:
msg:
should_be_number: the input should be number
number_larger_1: number should be equal or larger than 1
-
+ badges:
+ action: Action
+ active: Active
+ all: All
+ awards: Awards
+ deactivate: Deactivate
+ filter:
+ placeholder: Filter by name, badge:id
+ group: Group
+ inactive: Inactive
+ name: Name
+ show_logs: Show logs
+ status: Status
+ title: Badges
form:
optional: (optional)
empty: cannot be empty
diff --git a/ui/src/common/constants.ts b/ui/src/common/constants.ts
index c846d4dd..d52f2b87 100644
--- a/ui/src/common/constants.ts
+++ b/ui/src/common/constants.ts
@@ -93,6 +93,9 @@ export const ADMIN_NAV_MENUS = [
{
name: 'users',
},
+ {
+ name: 'badges',
+ },
{
name: 'customize',
children: [
diff --git a/ui/src/common/interface.ts b/ui/src/common/interface.ts
index ff7c0902..41dc0fef 100644
--- a/ui/src/common/interface.ts
+++ b/ui/src/common/interface.ts
@@ -328,6 +328,8 @@ export type UserFilterBy =
| 'suspended'
| 'deleted';
+export type BadgeFilterBy = 'all' | 'active' | 'inactive';
+
export type InstalledPluginsFilterBy =
| 'all'
| 'active'
diff --git a/ui/src/pages/Admin/Badges/components/Action/index.tsx b/ui/src/pages/Admin/Badges/components/Action/index.tsx
new file mode 100644
index 00000000..77601cbb
--- /dev/null
+++ b/ui/src/pages/Admin/Badges/components/Action/index.tsx
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import { Dropdown } from 'react-bootstrap';
+import { useTranslation } from 'react-i18next';
+
+import { Icon } from '@/components';
+
+interface Props {
+ badgeData;
+}
+
+const UserOperation = ({ badgeData }: Props) => {
+ const { t } = useTranslation('translation', { keyPrefix: 'admin.badges' });
+
+ console.log(badgeData);
+
+ return (
+ <td className="text-end">
+ <Dropdown>
+ <Dropdown.Toggle variant="link" className="no-toggle p-0">
+ <Icon name="three-dots-vertical" title={t('action')} />
+ </Dropdown.Toggle>
+ <Dropdown.Menu align="end">
+ <Dropdown.Item>{t('active')}</Dropdown.Item>
+ <Dropdown.Item>{t('deactivate')}</Dropdown.Item>
+ <Dropdown.Divider />
+ <Dropdown.Item>{t('show_logs')}</Dropdown.Item>
+ </Dropdown.Menu>
+ </Dropdown>
+ </td>
+ );
+};
+
+export default UserOperation;
diff --git a/ui/src/pages/Admin/Badges/index.tsx b/ui/src/pages/Admin/Badges/index.tsx
new file mode 100644
index 00000000..28854012
--- /dev/null
+++ b/ui/src/pages/Admin/Badges/index.tsx
@@ -0,0 +1,122 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import { FC } from 'react';
+import { Form, Table, Stack } from 'react-bootstrap';
+import { useSearchParams } from 'react-router-dom';
+import { useTranslation } from 'react-i18next';
+
+import { QueryGroup } from '@/components';
+import * as Type from '@/common/interface';
+
+import Action from './components/Action';
+
+const BadgeFilterKeys: Type.BadgeFilterBy[] = ['all', 'active', 'inactive'];
+
+// const bgMap = {
+// normal: 'text-bg-success',
+// suspended: 'text-bg-danger',
+// deleted: 'text-bg-danger',
+// inactive: 'text-bg-secondary',
+// };
+
+const Users: FC = () => {
+ const { t } = useTranslation('translation', { keyPrefix: 'admin.badges' });
+
+ const [urlSearchParams, setUrlSearchParams] = useSearchParams();
+ const curFilter = urlSearchParams.get('filter') || BadgeFilterKeys[0];
+ const curQuery = urlSearchParams.get('query') || '';
+
+ const handleFilter = (e) => {
+ urlSearchParams.set('query', e.target.value);
+ urlSearchParams.delete('page');
+ setUrlSearchParams(urlSearchParams);
+ };
+
+ return (
+ <>
+ <h3 className="mb-4">{t('title')}</h3>
+ <div className="d-flex flex-wrap justify-content-between align-items-center mb-3">
+ <Stack direction="horizontal" gap={3}>
+ <QueryGroup
+ data={BadgeFilterKeys}
+ currentSort={curFilter}
+ sortKey="filter"
+ i18nKeyPrefix="admin.badges"
+ />
+ </Stack>
+
+ <Form.Control
+ size="sm"
+ type="search"
+ value={curQuery}
+ onChange={handleFilter}
+ placeholder={t('filter.placeholder')}
+ style={{ width: '12.25rem' }}
+ className="mt-3 mt-sm-0"
+ />
+ </div>
+ <Table responsive="md">
+ <thead>
+ <tr>
+ <th>{t('name')}</th>
+ <th>{t('group')}</th>
+ <th>{t('awards')}</th>
+
+ <th>{t('status')}</th>
+
+ <th className="text-end">{t('action')}</th>
+ </tr>
+ </thead>
+ <tbody className="align-middle">
+ <tr>
+ <td className="d-flex align-items-center">
+ <img
+ src="https://s3-alpha-sig.figma.com/img/b6d9/2c6b/dfa4017fd4654f72c13bfc406377416a?Expires=1723420800&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=lp0b2MuP5yiv7IB4yEuhFk--W9D5CWsud77ftgjtdFrSIPPsIxcnZxz-RyLl40euIysaQLVVWwvYqJP75wLnccCQ1XbzwKfU1sOj3Z52jMTLMZ5PGwYL~dnx0sUJVv3khew7Xe8FiebLTwK4yV62jlW2RYq~HvK3s3RL5z9ZrkSnZUIWOC1nD~RTlsS9K3-hJ9GHwSCA9i0VupM5qHBMgxZDstTy6MO5VnACCCD1865NsKpkLM770wlVXP7XARVl5AhcRFYr0J8VTjccwg3dRHvOUUy4sM0wOqRctX7dgQfp1V-bc49RNcO0CkHifof2hn4oLyaC4fU [...]
+ className="rounded-circle bg-white me-2"
+ width="32px"
+ height="32px"
+ alt="badge"
+ />
+ <div>
+ <div className="text-primary">Nice Question</div>
+ <div className="text-small">Question score of 10 or more.</div>
+ </div>
+ </td>
+
+ <td>Community Badges</td>
+ <td className="text-primary">200</td>
+ <td>Active</td>
+ <Action badgeData={{}} />
+ </tr>
+ </tbody>
+ </Table>
+ {/* {Number(data?.count) <= 0 && !isLoading && <Empty />} */}
+ {/* <div className="mt-4 mb-2 d-flex justify-content-center">
+ <Pagination
+ currentPage={curPage}
+ totalSize={data?.count || 0}
+ pageSize={PAGE_SIZE}
+ />
+ </div> */}
+ </>
+ );
+};
+
+export default Users;
diff --git a/ui/src/pages/Admin/index.tsx b/ui/src/pages/Admin/index.tsx
index b527088f..5da0780d 100644
--- a/ui/src/pages/Admin/index.tsx
+++ b/ui/src/pages/Admin/index.tsx
@@ -37,6 +37,7 @@ const g10Paths = [
'questions',
'answers',
'users',
+ 'badges',
'flags',
'installed-plugins',
];
diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts
index 73a08f68..aa31266e 100644
--- a/ui/src/router/routes.ts
+++ b/ui/src/router/routes.ts
@@ -408,6 +408,10 @@ const routes: RouteNode[] = [
path: ':slug_name',
page: 'pages/Admin/Plugins/Config',
},
+ {
+ path: 'badges',
+ page: 'pages/Admin/Badges',
+ },
],
},
{
(incubator-answer) 01/02: feat: bages ui
Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch feat/1.4.0/personal
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 74ee4b4884ae24b70fac7c9bfdf6aa73e4742d34
Author: shuai <li...@sifou.com>
AuthorDate: Mon Aug 5 15:00:54 2024 +0800
feat: bages ui
---
i18n/en_US.yaml | 10 +
ui/package.json | 5 +-
ui/pnpm-lock.yaml | 1024 +++++++++++++++++++-
.../index.tsx => components/CardBadge/index.scss} | 34 +-
.../Alert => components/CardBadge}/index.tsx | 43 +-
ui/src/components/SideNav/index.tsx | 5 +
ui/src/components/index.ts | 2 +
ui/src/pages/Badges/Detail/index.tsx | 97 ++
.../Personal/components/Alert => Badges}/index.tsx | 39 +-
.../Users/Personal/components/Alert/index.tsx | 23 +-
.../components/{Alert => Badges}/index.tsx | 35 +-
.../Users/Personal/components/NavBar/index.tsx | 5 +
.../Users/Personal/components/Overview/index.tsx | 36 +-
.../Users/Personal/components/TopList/index.tsx | 56 +-
ui/src/pages/Users/Personal/components/index.ts | 2 +
ui/src/pages/Users/Personal/index.tsx | 70 +-
ui/src/router/routes.ts | 8 +
17 files changed, 1297 insertions(+), 197 deletions(-)
diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index a123d70d..1b403974 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -891,6 +891,7 @@ ui:
question: Questions
tag: Tags
user: Users
+ badges: Badges
profile: Profile
setting: Settings
logout: Log out
@@ -1308,12 +1309,14 @@ ui:
reputation: Reputation
comments: Comments
votes: Votes
+ badges: Badges
newest: Newest
score: Score
edit_profile: Edit profile
visited_x_days: "Visited {{ count }} days"
viewed: Viewed
joined: Joined
+ comma: ','
last_login: Seen
about_me: About Me
about_me_empty: "// Hello, World !"
@@ -1468,6 +1471,13 @@ ui:
login: Login
qrcode_login_tip: Please use {{ agentName }} to scan the QR code and log in.
login_failed_email_tip: Login failed, please allow this app to access your email information before try again.
+ badges:
+ title: Badges
+ awarded: Awarded
+ earned_x: Earned x{{ number }}
+ x_awarded: "{{ number }} awarded"
+ can_earn_multiple: You can earn this multiple times.
+
admin:
admin_header:
diff --git a/ui/package.json b/ui/package.json
index 19e66981..352e28de 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -45,7 +45,8 @@
"react-router-dom": "^6.22.3",
"semver": "^7.3.8",
"swr": "^1.3.0",
- "zustand": "^4.1.1"
+ "zustand": "^4.1.1",
+ "demo": "workspace:*"
},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
@@ -98,4 +99,4 @@
"pnpm": ">=8"
},
"license": "MIT"
-}
+}
\ No newline at end of file
diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml
index b855bfa0..98148017 100644
--- a/ui/pnpm-lock.yaml
+++ b/ui/pnpm-lock.yaml
@@ -44,6 +44,9 @@ importers:
dayjs:
specifier: ^1.11.5
version: 1.11.5
+ demo:
+ specifier: workspace:*
+ version: link:src/plugins/demo
diff:
specifier: ^5.1.0
version: 5.1.0
@@ -229,6 +232,52 @@ importers:
specifier: ^0.8.0
version: 0.8.0
+ src/plugins/demo:
+ dependencies:
+ react:
+ specifier: ^18.2.0
+ version: 18.2.0
+ react-bootstrap:
+ specifier: ^2.10.0
+ version: 2.10.0(@types/react@18.0.20)(react-dom@18.2.0)(react@18.2.0)
+ react-dom:
+ specifier: ^18.2.0
+ version: 18.2.0(react@18.2.0)
+ react-i18next:
+ specifier: ^11.18.3
+ version: 11.18.6(i18next@21.9.2)(react-dom@18.2.0)(react@18.2.0)
+ devDependencies:
+ '@modyfi/vite-plugin-yaml':
+ specifier: ^1.1.0
+ version: 1.1.0(rollup@2.79.0)(vite@4.5.3)
+ '@typescript-eslint/eslint-plugin':
+ specifier: ^6.0.0
+ version: 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@5.5.4)
+ '@typescript-eslint/parser':
+ specifier: ^6.0.0
+ version: 6.11.0(eslint@8.53.0)(typescript@5.5.4)
+ '@vitejs/plugin-react-swc':
+ specifier: ^3.3.2
+ version: 3.7.0(vite@4.5.3)
+ eslint:
+ specifier: ^8.45.0
+ version: 8.53.0
+ eslint-plugin-react-hooks:
+ specifier: ^4.6.0
+ version: 4.6.0(eslint@8.53.0)
+ eslint-plugin-react-refresh:
+ specifier: ^0.4.3
+ version: 0.4.9(eslint@8.53.0)
+ typescript:
+ specifier: ^5.0.2
+ version: 5.5.4
+ vite:
+ specifier: ^4.4.5
+ version: 4.5.3(@types/node@16.11.59)(sass@1.54.9)
+ vite-plugin-dts:
+ specifier: ^3.9.1
+ version: 3.9.1(@types/node@16.11.59)(rollup@2.79.0)(typescript@5.5.4)(vite@4.5.3)
+
packages:
/@aashutoshrathi/word-wrap@1.2.6:
@@ -549,6 +598,14 @@ packages:
dependencies:
'@babel/types': 7.19.0
+ /@babel/parser@7.25.0:
+ resolution: {integrity: sha512-CzdIU9jdP0dg7HdyB+bHvDJGagUv+qtzZt5rYCWwW6tITNqV9odjp6Qu41gkG0ca5UfdDUWrKkiAnHHdGRnOrA==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+ dependencies:
+ '@babel/types': 7.23.6
+ dev: true
+
/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6(@babel/core@7.19.1):
resolution: {integrity: sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==}
engines: {node: '>=6.9.0'}
@@ -2191,6 +2248,204 @@ packages:
postcss: 8.4.16
postcss-selector-parser: 6.0.10
+ /@esbuild/android-arm64@0.18.20:
+ resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/android-arm@0.18.20:
+ resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==}
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/android-x64@0.18.20:
+ resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/darwin-arm64@0.18.20:
+ resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/darwin-x64@0.18.20:
+ resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/freebsd-arm64@0.18.20:
+ resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/freebsd-x64@0.18.20:
+ resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-arm64@0.18.20:
+ resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-arm@0.18.20:
+ resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==}
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-ia32@0.18.20:
+ resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==}
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-loong64@0.18.20:
+ resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==}
+ engines: {node: '>=12'}
+ cpu: [loong64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-mips64el@0.18.20:
+ resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==}
+ engines: {node: '>=12'}
+ cpu: [mips64el]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-ppc64@0.18.20:
+ resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==}
+ engines: {node: '>=12'}
+ cpu: [ppc64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-riscv64@0.18.20:
+ resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==}
+ engines: {node: '>=12'}
+ cpu: [riscv64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-s390x@0.18.20:
+ resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==}
+ engines: {node: '>=12'}
+ cpu: [s390x]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/linux-x64@0.18.20:
+ resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/netbsd-x64@0.18.20:
+ resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [netbsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/openbsd-x64@0.18.20:
+ resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [openbsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/sunos-x64@0.18.20:
+ resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [sunos]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/win32-arm64@0.18.20:
+ resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/win32-ia32@0.18.20:
+ resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==}
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@esbuild/win32-x64@0.18.20:
+ resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
/@eslint-community/eslint-utils@4.4.0(eslint@8.53.0):
resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -2495,14 +2750,14 @@ packages:
engines: {node: '>=6.0.0'}
dependencies:
'@jridgewell/set-array': 1.1.2
- '@jridgewell/sourcemap-codec': 1.4.14
+ '@jridgewell/sourcemap-codec': 1.4.15
/@jridgewell/gen-mapping@0.3.2:
resolution: {integrity: sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==}
engines: {node: '>=6.0.0'}
dependencies:
'@jridgewell/set-array': 1.1.2
- '@jridgewell/sourcemap-codec': 1.4.14
+ '@jridgewell/sourcemap-codec': 1.4.15
'@jridgewell/trace-mapping': 0.3.17
/@jridgewell/gen-mapping@0.3.3:
@@ -2510,7 +2765,7 @@ packages:
engines: {node: '>=6.0.0'}
dependencies:
'@jridgewell/set-array': 1.1.2
- '@jridgewell/sourcemap-codec': 1.4.15
+ '@jridgewell/sourcemap-codec': 1.5.0
'@jridgewell/trace-mapping': 0.3.22
dev: true
@@ -2545,6 +2800,9 @@ packages:
/@jridgewell/sourcemap-codec@1.4.15:
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
+
+ /@jridgewell/sourcemap-codec@1.5.0:
+ resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}
dev: true
/@jridgewell/trace-mapping@0.3.15:
@@ -2563,14 +2821,14 @@ packages:
resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==}
dependencies:
'@jridgewell/resolve-uri': 3.1.1
- '@jridgewell/sourcemap-codec': 1.4.15
+ '@jridgewell/sourcemap-codec': 1.5.0
dev: true
/@jridgewell/trace-mapping@0.3.9:
resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}
dependencies:
'@jridgewell/resolve-uri': 3.1.0
- '@jridgewell/sourcemap-codec': 1.4.14
+ '@jridgewell/sourcemap-codec': 1.4.15
/@leichtgewicht/ip-codec@2.0.4:
resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==}
@@ -2702,6 +2960,63 @@ packages:
'@lezer/lr': 1.4.0
dev: false
+ /@microsoft/api-extractor-model@7.28.13(@types/node@16.11.59):
+ resolution: {integrity: sha512-39v/JyldX4MS9uzHcdfmjjfS6cYGAoXV+io8B5a338pkHiSt+gy2eXQ0Q7cGFJ7quSa1VqqlMdlPrB6sLR/cAw==}
+ dependencies:
+ '@microsoft/tsdoc': 0.14.2
+ '@microsoft/tsdoc-config': 0.16.2
+ '@rushstack/node-core-library': 4.0.2(@types/node@16.11.59)
+ transitivePeerDependencies:
+ - '@types/node'
+ dev: true
+
+ /@microsoft/api-extractor@7.43.0(@types/node@16.11.59):
+ resolution: {integrity: sha512-GFhTcJpB+MI6FhvXEI9b2K0snulNLWHqC/BbcJtyNYcKUiw7l3Lgis5ApsYncJ0leALX7/of4XfmXk+maT111w==}
+ hasBin: true
+ dependencies:
+ '@microsoft/api-extractor-model': 7.28.13(@types/node@16.11.59)
+ '@microsoft/tsdoc': 0.14.2
+ '@microsoft/tsdoc-config': 0.16.2
+ '@rushstack/node-core-library': 4.0.2(@types/node@16.11.59)
+ '@rushstack/rig-package': 0.5.2
+ '@rushstack/terminal': 0.10.0(@types/node@16.11.59)
+ '@rushstack/ts-command-line': 4.19.1(@types/node@16.11.59)
+ lodash: 4.17.21
+ minimatch: 3.0.4
+ resolve: 1.22.1
+ semver: 7.5.4
+ source-map: 0.6.1
+ typescript: 5.4.2
+ transitivePeerDependencies:
+ - '@types/node'
+ dev: true
+
+ /@microsoft/tsdoc-config@0.16.2:
+ resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==}
+ dependencies:
+ '@microsoft/tsdoc': 0.14.2
+ ajv: 6.12.6
+ jju: 1.4.0
+ resolve: 1.19.0
+ dev: true
+
+ /@microsoft/tsdoc@0.14.2:
+ resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==}
+ dev: true
+
+ /@modyfi/vite-plugin-yaml@1.1.0(rollup@2.79.0)(vite@4.5.3):
+ resolution: {integrity: sha512-L26xfzkSo1yamODCAtk/ipVlL6OEw2bcJ92zunyHu8zxi7+meV0zefA9xscRMDCsMY8xL3C3wi3DhMiPxcbxbw==}
+ peerDependencies:
+ vite: ^3.2.7 || ^4.0.5 || ^5.0.5
+ dependencies:
+ '@rollup/pluginutils': 5.1.0(rollup@2.79.0)
+ js-yaml: 4.1.0
+ tosource: 2.0.0-alpha.3
+ vite: 4.5.3(@types/node@16.11.59)(sass@1.54.9)
+ transitivePeerDependencies:
+ - rollup
+ dev: true
+
/@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1:
resolution: {integrity: sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==}
dependencies:
@@ -2873,9 +3188,72 @@ packages:
picomatch: 2.3.1
rollup: 2.79.0
+ /@rollup/pluginutils@5.1.0(rollup@2.79.0):
+ resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ dependencies:
+ '@types/estree': 1.0.5
+ estree-walker: 2.0.2
+ picomatch: 2.3.1
+ rollup: 2.79.0
+ dev: true
+
/@rushstack/eslint-patch@1.2.0:
resolution: {integrity: sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==}
+ /@rushstack/node-core-library@4.0.2(@types/node@16.11.59):
+ resolution: {integrity: sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==}
+ peerDependencies:
+ '@types/node': '*'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ dependencies:
+ '@types/node': 16.11.59
+ fs-extra: 7.0.1
+ import-lazy: 4.0.0
+ jju: 1.4.0
+ resolve: 1.22.1
+ semver: 7.5.4
+ z-schema: 5.0.5
+ dev: true
+
+ /@rushstack/rig-package@0.5.2:
+ resolution: {integrity: sha512-mUDecIJeH3yYGZs2a48k+pbhM6JYwWlgjs2Ca5f2n1G2/kgdgP9D/07oglEGf6mRyXEnazhEENeYTSNDRCwdqA==}
+ dependencies:
+ resolve: 1.22.1
+ strip-json-comments: 3.1.1
+ dev: true
+
+ /@rushstack/terminal@0.10.0(@types/node@16.11.59):
+ resolution: {integrity: sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==}
+ peerDependencies:
+ '@types/node': '*'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ dependencies:
+ '@rushstack/node-core-library': 4.0.2(@types/node@16.11.59)
+ '@types/node': 16.11.59
+ supports-color: 8.1.1
+ dev: true
+
+ /@rushstack/ts-command-line@4.19.1(@types/node@16.11.59):
+ resolution: {integrity: sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==}
+ dependencies:
+ '@rushstack/terminal': 0.10.0(@types/node@16.11.59)
+ '@types/argparse': 1.0.38
+ argparse: 1.0.10
+ string-argv: 0.3.2
+ transitivePeerDependencies:
+ - '@types/node'
+ dev: true
+
/@sinclair/typebox@0.24.42:
resolution: {integrity: sha512-d+2AtrHGyWek2u2ITF0lHRIv6Tt7X0dEHW+0rP+5aDCEjC3fiN2RBjrLD0yU0at52BcZbRGxLbAtXiR0hFCjYw==}
@@ -2992,12 +3370,141 @@ packages:
transitivePeerDependencies:
- supports-color
+ /@swc/core-darwin-arm64@1.7.3:
+ resolution: {integrity: sha512-CTkHa6MJdov9t41vuV2kmQIMu+Q19LrEHGIR/UiJYH06SC/sOu35ZZH8DyfLp9ZoaCn21gwgWd61ixOGQlwzTw==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-darwin-x64@1.7.3:
+ resolution: {integrity: sha512-mun623y6rCoZ2EFIYfIRqXYRFufJOopoYSJcxYhZUrfTpAvQ1zLngjQpWCUU1krggXR2U0PQj+ls0DfXUTraNg==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-linux-arm-gnueabihf@1.7.3:
+ resolution: {integrity: sha512-4Jz4UcIcvZNMp9qoHbBx35bo3rjt8hpYLPqnR4FFq6gkAsJIMFC56UhRZwdEQoDuYiOFMBnnrsg31Fyo6YQypA==}
+ engines: {node: '>=10'}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-linux-arm64-gnu@1.7.3:
+ resolution: {integrity: sha512-p+U/M/oqV7HC4erQ5TVWHhJU1984QD+wQBPxslAYq751bOQGm0R/mXK42GjugqjnR6yYrAiwKKbpq4iWVXNePA==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-linux-arm64-musl@1.7.3:
+ resolution: {integrity: sha512-s6VzyaJwaRGTi2mz2h6Ywxfmgpkc69IxhuMzl+sl34plH0V0RgnZDm14HoCGIKIzRk4+a2EcBV1ZLAfWmPACQg==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-linux-x64-gnu@1.7.3:
+ resolution: {integrity: sha512-IrFY48C356Z2dU2pjYg080yvMXzmSV3Lmm/Wna4cfcB1nkVLjWsuYwwRAk9CY7E19c+q8N1sMNggubAUDYoX2g==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-linux-x64-musl@1.7.3:
+ resolution: {integrity: sha512-qoLgxBlBnnyUEDu5vmRQqX90h9jldU1JXI96e6eh2d1gJyKRA0oSK7xXmTzorv1fGHiHulv9qiJOUG+g6uzJWg==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-win32-arm64-msvc@1.7.3:
+ resolution: {integrity: sha512-OAd7jVVJ7nb0Ev80VAa1aeK+FldPeC4eZ35H4Qn6EICzIz0iqJo2T33qLKkSZiZEBKSoF4KcwrqYfkjLOp5qWg==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-win32-ia32-msvc@1.7.3:
+ resolution: {integrity: sha512-31+Le1NyfSnILFV9+AhxfFOG0DK0272MNhbIlbcv4w/iqpjkhaOnNQnLsYJD1Ow7lTX1MtIZzTjOhRlzSviRWg==}
+ engines: {node: '>=10'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core-win32-x64-msvc@1.7.3:
+ resolution: {integrity: sha512-jVQPbYrwcuueI4QB0fHC29SVrkFOBcfIspYDlgSoHnEz6tmLMqUy+txZUypY/ZH/KaK0HEY74JkzgbRC1S6LFQ==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@swc/core@1.7.3:
+ resolution: {integrity: sha512-HHAlbXjWI6Kl9JmmUW1LSygT1YbblXgj2UvvDzMkTBPRzYMhW6xchxdO8HbtMPtFYRt/EQq9u1z7j4ttRSrFsA==}
+ engines: {node: '>=10'}
+ requiresBuild: true
+ peerDependencies:
+ '@swc/helpers': '*'
+ peerDependenciesMeta:
+ '@swc/helpers':
+ optional: true
+ dependencies:
+ '@swc/counter': 0.1.3
+ '@swc/types': 0.1.12
+ optionalDependencies:
+ '@swc/core-darwin-arm64': 1.7.3
+ '@swc/core-darwin-x64': 1.7.3
+ '@swc/core-linux-arm-gnueabihf': 1.7.3
+ '@swc/core-linux-arm64-gnu': 1.7.3
+ '@swc/core-linux-arm64-musl': 1.7.3
+ '@swc/core-linux-x64-gnu': 1.7.3
+ '@swc/core-linux-x64-musl': 1.7.3
+ '@swc/core-win32-arm64-msvc': 1.7.3
+ '@swc/core-win32-ia32-msvc': 1.7.3
+ '@swc/core-win32-x64-msvc': 1.7.3
+ dev: true
+
+ /@swc/counter@0.1.3:
+ resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
+ dev: true
+
/@swc/helpers@0.5.3:
resolution: {integrity: sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==}
dependencies:
tslib: 2.6.2
dev: false
+ /@swc/types@0.1.12:
+ resolution: {integrity: sha512-wBJA+SdtkbFhHjTMYH+dEH1y4VpfGdAc2Kw/LK09i9bXd/K6j6PkDcFCEzb6iVfZMkPRrl/q0e3toqTAJdkIVA==}
+ dependencies:
+ '@swc/counter': 0.1.3
+ dev: true
+
/@testing-library/dom@8.18.1:
resolution: {integrity: sha512-oEvsm2B/WtcHKE+IcEeeCqNU/ltFGaVyGbpcm4g/2ytuT49jrlH9x5qRKL/H3A6yfM4YAbSbC0ceT5+9CEXnLg==}
engines: {node: '>=12'}
@@ -3071,6 +3578,10 @@ packages:
/@tsconfig/node16@1.0.3:
resolution: {integrity: sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==}
+ /@types/argparse@1.0.38:
+ resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==}
+ dev: true
+
/@types/aria-query@4.2.2:
resolution: {integrity: sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==}
dev: true
@@ -3148,7 +3659,7 @@ packages:
resolution: {integrity: sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==}
dependencies:
'@types/eslint': 8.4.6
- '@types/estree': 0.0.51
+ '@types/estree': 1.0.5
/@types/eslint-scope@3.7.7:
resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==}
@@ -3160,7 +3671,7 @@ packages:
/@types/eslint@8.4.6:
resolution: {integrity: sha512-/fqTbjxyFUaYNO7VcW5g+4npmqVACz1bB7RTHYuLj+PRjw9hrCwrUXVQFpChUS0JsyEFvMZ7U/PfmvWgxJhI9g==}
dependencies:
- '@types/estree': 1.0.0
+ '@types/estree': 1.0.5
'@types/json-schema': 7.0.15
/@types/eslint@8.56.2:
@@ -3176,12 +3687,8 @@ packages:
/@types/estree@0.0.51:
resolution: {integrity: sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==}
- /@types/estree@1.0.0:
- resolution: {integrity: sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==}
-
/@types/estree@1.0.5:
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
- dev: true
/@types/express-serve-static-core@4.17.31:
resolution: {integrity: sha512-DxMhY+NAsTwMMFHBTtJFNp5qiHKJ7TeqOo23zVEM9alT1Ml27Q3xcTH0xwxn7Q0BbMcVEJOs/7aQtUWupUQN3Q==}
@@ -3397,7 +3904,36 @@ packages:
transitivePeerDependencies:
- supports-color
- /@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@4.9.5):
+ /@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@4.9.5):
+ resolution: {integrity: sha512-uXnpZDc4VRjY4iuypDBKzW1rz9T5YBBK0snMn8MaTSNd2kMlj50LnLBABELjJiOL5YHk7ZD8hbSpI9ubzqYI0w==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@eslint-community/regexpp': 4.10.0
+ '@typescript-eslint/parser': 6.11.0(eslint@8.53.0)(typescript@4.9.5)
+ '@typescript-eslint/scope-manager': 6.11.0
+ '@typescript-eslint/type-utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5)
+ '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5)
+ '@typescript-eslint/visitor-keys': 6.11.0
+ debug: 4.3.4
+ eslint: 8.53.0
+ graphemer: 1.4.0
+ ignore: 5.2.4
+ natural-compare: 1.4.0
+ semver: 7.5.4
+ ts-api-utils: 1.0.3(typescript@4.9.5)
+ typescript: 4.9.5
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
+ /@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@5.5.4):
resolution: {integrity: sha512-uXnpZDc4VRjY4iuypDBKzW1rz9T5YBBK0snMn8MaTSNd2kMlj50LnLBABELjJiOL5YHk7ZD8hbSpI9ubzqYI0w==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@@ -3409,10 +3945,10 @@ packages:
optional: true
dependencies:
'@eslint-community/regexpp': 4.10.0
- '@typescript-eslint/parser': 6.11.0(eslint@8.53.0)(typescript@4.9.5)
+ '@typescript-eslint/parser': 6.11.0(eslint@8.53.0)(typescript@5.5.4)
'@typescript-eslint/scope-manager': 6.11.0
- '@typescript-eslint/type-utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5)
- '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5)
+ '@typescript-eslint/type-utils': 6.11.0(eslint@8.53.0)(typescript@5.5.4)
+ '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@5.5.4)
'@typescript-eslint/visitor-keys': 6.11.0
debug: 4.3.4
eslint: 8.53.0
@@ -3420,8 +3956,8 @@ packages:
ignore: 5.2.4
natural-compare: 1.4.0
semver: 7.5.4
- ts-api-utils: 1.0.3(typescript@4.9.5)
- typescript: 4.9.5
+ ts-api-utils: 1.0.3(typescript@5.5.4)
+ typescript: 5.5.4
transitivePeerDependencies:
- supports-color
dev: true
@@ -3478,6 +4014,27 @@ packages:
- supports-color
dev: true
+ /@typescript-eslint/parser@6.11.0(eslint@8.53.0)(typescript@5.5.4):
+ resolution: {integrity: sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/scope-manager': 6.11.0
+ '@typescript-eslint/types': 6.11.0
+ '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.5.4)
+ '@typescript-eslint/visitor-keys': 6.11.0
+ debug: 4.3.4
+ eslint: 8.53.0
+ typescript: 5.5.4
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/scope-manager@5.38.0:
resolution: {integrity: sha512-ByhHIuNyKD9giwkkLqzezZ9y5bALW8VNY6xXcP+VxoH4JBDKjU5WNnsiD4HJdglHECdV+lyaxhvQjTUbRboiTA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -3532,6 +4089,26 @@ packages:
- supports-color
dev: true
+ /@typescript-eslint/type-utils@6.11.0(eslint@8.53.0)(typescript@5.5.4):
+ resolution: {integrity: sha512-nA4IOXwZtqBjIoYrJcYxLRO+F9ri+leVGoJcMW1uqr4r1Hq7vW5cyWrA43lFbpRvQ9XgNrnfLpIkO3i1emDBIA==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.5.4)
+ '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@5.5.4)
+ debug: 4.3.4
+ eslint: 8.53.0
+ ts-api-utils: 1.0.3(typescript@5.5.4)
+ typescript: 5.5.4
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/types@5.38.0:
resolution: {integrity: sha512-HHu4yMjJ7i3Cb+8NUuRCdOGu2VMkfmKyIJsOr9PfkBVYLYrtMCK/Ap50Rpov+iKpxDTfnqvDbuPLgBE5FwUNfA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -3582,6 +4159,27 @@ packages:
- supports-color
dev: true
+ /@typescript-eslint/typescript-estree@6.11.0(typescript@5.5.4):
+ resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/types': 6.11.0
+ '@typescript-eslint/visitor-keys': 6.11.0
+ debug: 4.3.4
+ globby: 11.1.0
+ is-glob: 4.0.3
+ semver: 7.5.4
+ ts-api-utils: 1.0.3(typescript@5.5.4)
+ typescript: 5.5.4
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/utils@5.38.0(eslint@8.53.0)(typescript@4.9.5):
resolution: {integrity: sha512-6sdeYaBgk9Fh7N2unEXGz+D+som2QCQGPAf1SxrkEr+Z32gMreQ0rparXTNGRRfYUWk/JzbGdcM8NSSd6oqnTA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -3618,6 +4216,25 @@ packages:
- typescript
dev: true
+ /@typescript-eslint/utils@6.11.0(eslint@8.53.0)(typescript@5.5.4):
+ resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ dependencies:
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0)
+ '@types/json-schema': 7.0.15
+ '@types/semver': 7.5.5
+ '@typescript-eslint/scope-manager': 6.11.0
+ '@typescript-eslint/types': 6.11.0
+ '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.5.4)
+ eslint: 8.53.0
+ semver: 7.5.4
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: true
+
/@typescript-eslint/visitor-keys@5.38.0:
resolution: {integrity: sha512-MxnrdIyArnTi+XyFLR+kt/uNAcdOnmT+879os7qDRI+EYySR4crXJq9BXPfRzzLGq0wgxkwidrCJ9WCAoacm1w==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -3636,6 +4253,77 @@ packages:
/@ungap/structured-clone@1.2.0:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
+ /@vitejs/plugin-react-swc@3.7.0(vite@4.5.3):
+ resolution: {integrity: sha512-yrknSb3Dci6svCd/qhHqhFPDSw0QtjumcqdKMoNNzmOl5lMXTTiqzjWtG4Qask2HdvvzaNgSunbQGet8/GrKdA==}
+ peerDependencies:
+ vite: ^4 || ^5
+ dependencies:
+ '@swc/core': 1.7.3
+ vite: 4.5.3(@types/node@16.11.59)(sass@1.54.9)
+ transitivePeerDependencies:
+ - '@swc/helpers'
+ dev: true
+
+ /@volar/language-core@1.11.1:
+ resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==}
+ dependencies:
+ '@volar/source-map': 1.11.1
+ dev: true
+
+ /@volar/source-map@1.11.1:
+ resolution: {integrity: sha512-hJnOnwZ4+WT5iupLRnuzbULZ42L7BWWPMmruzwtLhJfpDVoZLjNBxHDi2sY2bgZXCKlpU5XcsMFoYrsQmPhfZg==}
+ dependencies:
+ muggle-string: 0.3.1
+ dev: true
+
+ /@volar/typescript@1.11.1:
+ resolution: {integrity: sha512-iU+t2mas/4lYierSnoFOeRFQUhAEMgsFuQxoxvwn5EdQopw43j+J27a4lt9LMInx1gLJBC6qL14WYGlgymaSMQ==}
+ dependencies:
+ '@volar/language-core': 1.11.1
+ path-browserify: 1.0.1
+ dev: true
+
+ /@vue/compiler-core@3.4.34:
+ resolution: {integrity: sha512-Z0izUf32+wAnQewjHu+pQf1yw00EGOmevl1kE+ljjjMe7oEfpQ+BI3/JNK7yMB4IrUsqLDmPecUrpj3mCP+yJQ==}
+ dependencies:
+ '@babel/parser': 7.25.0
+ '@vue/shared': 3.4.34
+ entities: 4.5.0
+ estree-walker: 2.0.2
+ source-map-js: 1.2.0
+ dev: true
+
+ /@vue/compiler-dom@3.4.34:
+ resolution: {integrity: sha512-3PUOTS1h5cskdOJMExCu2TInXuM0j60DRPpSCJDqOCupCfUZCJoyQmKtRmA8EgDNZ5kcEE7vketamRZfrEuVDw==}
+ dependencies:
+ '@vue/compiler-core': 3.4.34
+ '@vue/shared': 3.4.34
+ dev: true
+
+ /@vue/language-core@1.8.27(typescript@5.5.4):
+ resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@volar/language-core': 1.11.1
+ '@volar/source-map': 1.11.1
+ '@vue/compiler-dom': 3.4.34
+ '@vue/shared': 3.4.34
+ computeds: 0.0.1
+ minimatch: 9.0.5
+ muggle-string: 0.3.1
+ path-browserify: 1.0.1
+ typescript: 5.5.4
+ vue-template-compiler: 2.7.16
+ dev: true
+
+ /@vue/shared@3.4.34:
+ resolution: {integrity: sha512-x5LmiRLpRsd9KTjAB8MPKf0CDPMcuItjP0gbNqFCIgL1I8iYp4zglhj9w9FPCdIbHG2M91RVeIbArFfFTz9I3A==}
+ dev: true
+
/@webassemblyjs/ast@1.11.1:
resolution: {integrity: sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==}
dependencies:
@@ -3878,12 +4566,12 @@ packages:
acorn: 8.11.3
dev: true
- /acorn-jsx@5.3.2(acorn@8.10.0):
+ /acorn-jsx@5.3.2(acorn@8.11.3):
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies:
acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
- acorn: 8.10.0
+ acorn: 8.11.3
/acorn-node@1.8.2:
resolution: {integrity: sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==}
@@ -3905,11 +4593,6 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
- /acorn@8.10.0:
- resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==}
- engines: {node: '>=0.4.0'}
- hasBin: true
-
/acorn@8.11.3:
resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}
engines: {node: '>=0.4.0'}
@@ -4806,6 +5489,13 @@ packages:
resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
engines: {node: '>= 12'}
+ /commander@9.5.0:
+ resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}
+ engines: {node: ^12.20.0 || >=14}
+ requiresBuild: true
+ dev: true
+ optional: true
+
/common-path-prefix@3.0.0:
resolution: {integrity: sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==}
@@ -4843,6 +5533,10 @@ packages:
transitivePeerDependencies:
- supports-color
+ /computeds@0.0.1:
+ resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==}
+ dev: true
+
/concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
@@ -5235,6 +5929,10 @@ packages:
resolution: {integrity: sha512-CAdX5Q3YW3Gclyo5Vpqkgpj8fSdLQcRuzfX6mC6Phy0nfJ0eGYOeS7m4mt2plDWLAtA4TqTakvbboHvUxfe4iA==}
dev: false
+ /de-indent@1.0.2:
+ resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}
+ dev: true
+
/debug@2.6.9:
resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}
peerDependencies:
@@ -5604,6 +6302,11 @@ packages:
/entities@2.2.0:
resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==, tarball: https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz}
+ /entities@4.5.0:
+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
+ engines: {node: '>=0.12'}
+ dev: true
+
/error-ex@1.3.2:
resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}
dependencies:
@@ -5735,6 +6438,36 @@ packages:
is-date-object: 1.0.5
is-symbol: 1.0.4
+ /esbuild@0.18.20:
+ resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==}
+ engines: {node: '>=12'}
+ hasBin: true
+ requiresBuild: true
+ optionalDependencies:
+ '@esbuild/android-arm': 0.18.20
+ '@esbuild/android-arm64': 0.18.20
+ '@esbuild/android-x64': 0.18.20
+ '@esbuild/darwin-arm64': 0.18.20
+ '@esbuild/darwin-x64': 0.18.20
+ '@esbuild/freebsd-arm64': 0.18.20
+ '@esbuild/freebsd-x64': 0.18.20
+ '@esbuild/linux-arm': 0.18.20
+ '@esbuild/linux-arm64': 0.18.20
+ '@esbuild/linux-ia32': 0.18.20
+ '@esbuild/linux-loong64': 0.18.20
+ '@esbuild/linux-mips64el': 0.18.20
+ '@esbuild/linux-ppc64': 0.18.20
+ '@esbuild/linux-riscv64': 0.18.20
+ '@esbuild/linux-s390x': 0.18.20
+ '@esbuild/linux-x64': 0.18.20
+ '@esbuild/netbsd-x64': 0.18.20
+ '@esbuild/openbsd-x64': 0.18.20
+ '@esbuild/sunos-x64': 0.18.20
+ '@esbuild/win32-arm64': 0.18.20
+ '@esbuild/win32-ia32': 0.18.20
+ '@esbuild/win32-x64': 0.18.20
+ dev: true
+
/escalade@3.1.1:
resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
engines: {node: '>=6'}
@@ -6147,6 +6880,14 @@ packages:
dependencies:
eslint: 8.53.0
+ /eslint-plugin-react-refresh@0.4.9(eslint@8.53.0):
+ resolution: {integrity: sha512-QK49YrBAo5CLNLseZ7sZgvgTy21E6NEw22eZqc4teZfH8pxV3yXc9XXOYfUI6JNpw7mfHNkAeWtBxrTyykB6HA==}
+ peerDependencies:
+ eslint: '>=7'
+ dependencies:
+ eslint: 8.53.0
+ dev: true
+
/eslint-plugin-react@7.33.2(eslint@8.53.0):
resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==}
engines: {node: '>=4'}
@@ -6291,8 +7032,8 @@ packages:
resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
- acorn: 8.10.0
- acorn-jsx: 5.3.2(acorn@8.10.0)
+ acorn: 8.11.3
+ acorn-jsx: 5.3.2(acorn@8.11.3)
eslint-visitor-keys: 3.4.3
/esprima@4.0.1:
@@ -6323,6 +7064,10 @@ packages:
/estree-walker@1.0.1:
resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==}
+ /estree-walker@2.0.2:
+ resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
+ dev: true
+
/esutils@2.0.3:
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
engines: {node: '>=0.10.0'}
@@ -6641,6 +7386,15 @@ packages:
jsonfile: 6.1.0
universalify: 2.0.0
+ /fs-extra@7.0.1:
+ resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==}
+ engines: {node: '>=6 <7 || >=8'}
+ dependencies:
+ graceful-fs: 4.2.11
+ jsonfile: 4.0.0
+ universalify: 0.1.2
+ dev: true
+
/fs-extra@9.1.0:
resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==}
engines: {node: '>=10'}
@@ -7107,6 +7861,11 @@ packages:
parent-module: 1.0.1
resolve-from: 4.0.0
+ /import-lazy@4.0.0:
+ resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==}
+ engines: {node: '>=8'}
+ dev: true
+
/import-local@3.1.0:
resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==}
engines: {node: '>=8'}
@@ -8017,6 +8776,10 @@ packages:
- ts-node
- utf-8-validate
+ /jju@1.4.0:
+ resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==}
+ dev: true
+
/js-tokens@4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -8109,6 +8872,12 @@ packages:
engines: {node: '>=6'}
hasBin: true
+ /jsonfile@4.0.0:
+ resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}
+ optionalDependencies:
+ graceful-fs: 4.2.11
+ dev: true
+
/jsonfile@6.1.0:
resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
dependencies:
@@ -8161,6 +8930,10 @@ packages:
resolution: {integrity: sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ==}
engines: {node: '>= 8'}
+ /kolorist@1.8.0:
+ resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}
+ dev: true
+
/language-subtag-registry@0.3.22:
resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==}
@@ -8279,6 +9052,14 @@ packages:
resolution: {integrity: sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==}
dev: true
+ /lodash.get@4.4.2:
+ resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==}
+ dev: true
+
+ /lodash.isequal@4.5.0:
+ resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
+ dev: true
+
/lodash.memoize@4.1.2:
resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==}
@@ -8332,6 +9113,12 @@ packages:
dependencies:
sourcemap-codec: 1.4.8
+ /magic-string@0.30.11:
+ resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==}
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.0
+ dev: true
+
/make-dir@3.1.0:
resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
engines: {node: '>=8'}
@@ -8481,6 +9268,13 @@ packages:
dependencies:
brace-expansion: 2.0.1
+ /minimatch@9.0.5:
+ resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
+ engines: {node: '>=16 || 14 >=14.17'}
+ dependencies:
+ brace-expansion: 2.0.1
+ dev: true
+
/minimist-options@4.1.0:
resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==}
engines: {node: '>= 6'}
@@ -8508,6 +9302,10 @@ packages:
/ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+ /muggle-string@0.3.1:
+ resolution: {integrity: sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==}
+ dev: true
+
/multicast-dns@7.2.5:
resolution: {integrity: sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==}
hasBin: true
@@ -8520,6 +9318,12 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
+ /nanoid@3.3.7:
+ resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+ dev: true
+
/natural-compare@1.4.0:
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
@@ -8860,6 +9664,10 @@ packages:
no-case: 3.0.4
tslib: 2.6.2
+ /path-browserify@1.0.1:
+ resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
+ dev: true
+
/path-exists@3.0.0:
resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==}
engines: {node: '>=4'}
@@ -8900,6 +9708,10 @@ packages:
/picocolors@1.0.0:
resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
+ /picocolors@1.0.1:
+ resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==}
+ dev: true
+
/picomatch@2.3.1:
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
engines: {node: '>=8.6'}
@@ -9637,6 +10449,15 @@ packages:
picocolors: 1.0.0
source-map-js: 1.0.2
+ /postcss@8.4.40:
+ resolution: {integrity: sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==}
+ engines: {node: ^10 || ^12 || >=14}
+ dependencies:
+ nanoid: 3.3.7
+ picocolors: 1.0.1
+ source-map-js: 1.2.0
+ dev: true
+
/prelude-ls@1.1.2:
resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==}
engines: {node: '>= 0.8.0'}
@@ -10343,6 +11164,13 @@ packages:
resolution: {integrity: sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==}
engines: {node: '>=10'}
+ /resolve@1.19.0:
+ resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==}
+ dependencies:
+ is-core-module: 2.10.0
+ path-parse: 1.0.7
+ dev: true
+
/resolve@1.22.1:
resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==}
hasBin: true
@@ -10410,6 +11238,14 @@ packages:
optionalDependencies:
fsevents: 2.3.3
+ /rollup@3.29.4:
+ resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==}
+ engines: {node: '>=14.18.0', npm: '>=8.0.0'}
+ hasBin: true
+ optionalDependencies:
+ fsevents: 2.3.3
+ dev: true
+
/run-applescript@5.0.0:
resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==}
engines: {node: '>=12'}
@@ -10752,6 +11588,11 @@ packages:
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
engines: {node: '>=0.10.0'}
+ /source-map-js@1.2.0:
+ resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
/source-map-loader@3.0.1(webpack@5.74.0):
resolution: {integrity: sha512-Vp1UsfyPvgujKQzi4pyDiTOnE3E4H+yHvkVRN3c/9PJmQS4CQJExvcDvaX/D+RV+xQben9HJ56jMJS3CgUeWyA==}
engines: {node: '>= 12.13.0'}
@@ -11340,6 +12181,11 @@ packages:
resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
engines: {node: '>=0.6'}
+ /tosource@2.0.0-alpha.3:
+ resolution: {integrity: sha512-KAB2lrSS48y91MzFPFuDg4hLbvDiyTjOVgaK7Erw+5AmZXNq4sFRVn8r6yxSLuNs15PaokrDRpS61ERY9uZOug==}
+ engines: {node: '>=10'}
+ dev: true
+
/tough-cookie@4.1.2:
resolution: {integrity: sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==}
engines: {node: '>=6'}
@@ -11377,6 +12223,15 @@ packages:
typescript: 4.9.5
dev: true
+ /ts-api-utils@1.0.3(typescript@5.5.4):
+ resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==}
+ engines: {node: '>=16.13.0'}
+ peerDependencies:
+ typescript: '>=4.2.0'
+ dependencies:
+ typescript: 5.5.4
+ dev: true
+
/ts-node@10.9.1(@types/node@16.11.59)(typescript@4.9.5):
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true
@@ -11529,6 +12384,18 @@ packages:
engines: {node: '>=4.2.0'}
hasBin: true
+ /typescript@5.4.2:
+ resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+ dev: true
+
+ /typescript@5.5.4:
+ resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+ dev: true
+
/unbox-primitive@1.0.2:
resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}
dependencies:
@@ -11582,6 +12449,11 @@ packages:
dependencies:
crypto-random-string: 2.0.0
+ /universalify@0.1.2:
+ resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
+ engines: {node: '>= 4.0.0'}
+ dev: true
+
/universalify@0.2.0:
resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==}
engines: {node: '>= 4.0.0'}
@@ -11614,7 +12486,7 @@ packages:
dependencies:
browserslist: 4.22.2
escalade: 3.1.1
- picocolors: 1.0.0
+ picocolors: 1.0.1
dev: true
/update-browserslist-db@1.0.9(browserslist@4.21.4):
@@ -11691,15 +12563,101 @@ packages:
spdx-expression-parse: 3.0.1
dev: true
+ /validator@13.12.0:
+ resolution: {integrity: sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==}
+ engines: {node: '>= 0.10'}
+ dev: true
+
/vary@1.1.2:
resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
engines: {node: '>= 0.8'}
+ /vite-plugin-dts@3.9.1(@types/node@16.11.59)(rollup@2.79.0)(typescript@5.5.4)(vite@4.5.3):
+ resolution: {integrity: sha512-rVp2KM9Ue22NGWB8dNtWEr+KekN3rIgz1tWD050QnRGlriUCmaDwa7qA5zDEjbXg5lAXhYMSBJtx3q3hQIJZSg==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ typescript: '*'
+ vite: '*'
+ peerDependenciesMeta:
+ vite:
+ optional: true
+ dependencies:
+ '@microsoft/api-extractor': 7.43.0(@types/node@16.11.59)
+ '@rollup/pluginutils': 5.1.0(rollup@2.79.0)
+ '@vue/language-core': 1.8.27(typescript@5.5.4)
+ debug: 4.3.4
+ kolorist: 1.8.0
+ magic-string: 0.30.11
+ typescript: 5.5.4
+ vite: 4.5.3(@types/node@16.11.59)(sass@1.54.9)
+ vue-tsc: 1.8.27(typescript@5.5.4)
+ transitivePeerDependencies:
+ - '@types/node'
+ - rollup
+ - supports-color
+ dev: true
+
+ /vite@4.5.3(@types/node@16.11.59)(sass@1.54.9):
+ resolution: {integrity: sha512-kQL23kMeX92v3ph7IauVkXkikdDRsYMGTVl5KY2E9OY4ONLvkHf04MDTbnfo6NKxZiDLWzVpP5oTa8hQD8U3dg==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': '>= 14'
+ less: '*'
+ lightningcss: ^1.21.0
+ sass: '*'
+ stylus: '*'
+ sugarss: '*'
+ terser: ^5.4.0
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ less:
+ optional: true
+ lightningcss:
+ optional: true
+ sass:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+ dependencies:
+ '@types/node': 16.11.59
+ esbuild: 0.18.20
+ postcss: 8.4.40
+ rollup: 3.29.4
+ sass: 1.54.9
+ optionalDependencies:
+ fsevents: 2.3.3
+ dev: true
+
/void-elements@3.1.0:
resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==}
engines: {node: '>=0.10.0'}
dev: false
+ /vue-template-compiler@2.7.16:
+ resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==}
+ dependencies:
+ de-indent: 1.0.2
+ he: 1.2.0
+ dev: true
+
+ /vue-tsc@1.8.27(typescript@5.5.4):
+ resolution: {integrity: sha512-WesKCAZCRAbmmhuGl3+VrdWItEvfoFIPXOvUJkjULi+x+6G/Dy69yO3TBRJDr9eUlmsNAwVmxsNZxvHKzbkKdg==}
+ hasBin: true
+ peerDependencies:
+ typescript: '*'
+ dependencies:
+ '@volar/typescript': 1.11.1
+ '@vue/language-core': 1.8.27(typescript@5.5.4)
+ semver: 7.5.4
+ typescript: 5.5.4
+ dev: true
+
/w3c-hr-time@1.0.2:
resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==}
dependencies:
@@ -12336,6 +13294,18 @@ packages:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
+ /z-schema@5.0.5:
+ resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==}
+ engines: {node: '>=8.0.0'}
+ hasBin: true
+ dependencies:
+ lodash.get: 4.4.2
+ lodash.isequal: 4.5.0
+ validator: 13.12.0
+ optionalDependencies:
+ commander: 9.5.0
+ dev: true
+
/zustand@4.1.1(react@18.2.0):
resolution: {integrity: sha512-h4F3WMqsZgvvaE0n3lThx4MM81Ls9xebjvrABNzf5+jb3/03YjNTSgZXeyrvXDArMeV9untvWXRw1tY+ntPYbA==}
engines: {node: '>=12.7.0'}
diff --git a/ui/src/pages/Users/Personal/components/Alert/index.tsx b/ui/src/components/CardBadge/index.scss
similarity index 61%
copy from ui/src/pages/Users/Personal/components/Alert/index.tsx
copy to ui/src/components/CardBadge/index.scss
index 65fd157b..30c30cb1 100644
--- a/ui/src/pages/Users/Personal/components/Alert/index.tsx
+++ b/ui/src/components/CardBadge/index.scss
@@ -17,28 +17,20 @@
* under the License.
*/
-import { memo, FC, useState } from 'react';
-import { Alert, Col } from 'react-bootstrap';
+.badge-card {
+ width: 194px;
+ margin: 12px;
-interface Props {
- data;
+ .label {
+ position: absolute;
+ top: 1rem;
+ right: 1rem;
+ }
}
-const Index: FC<Props> = ({ data }) => {
- const [show, setShow] = useState(Boolean(data));
- return (
- <Col lg={10} className="mb-3">
- <Alert
- variant="info"
- show={show}
- dismissible
- onClose={() => {
- setShow(false);
- }}>
- <div dangerouslySetInnerHTML={{ __html: data }} />
- </Alert>
- </Col>
- );
-};
-export default memo(Index);
+@media screen and (max-width: 768px) {
+ .badge-card {
+ width: 163.5px;
+ }
+}
diff --git a/ui/src/pages/Users/Personal/components/Alert/index.tsx b/ui/src/components/CardBadge/index.tsx
similarity index 50%
copy from ui/src/pages/Users/Personal/components/Alert/index.tsx
copy to ui/src/components/CardBadge/index.tsx
index 65fd157b..b8dde502 100644
--- a/ui/src/pages/Users/Personal/components/Alert/index.tsx
+++ b/ui/src/components/CardBadge/index.tsx
@@ -16,29 +16,36 @@
* specific language governing permissions and limitations
* under the License.
*/
+import { useTranslation } from 'react-i18next';
+import { FC } from 'react';
+import { Card, Badge } from 'react-bootstrap';
-import { memo, FC, useState } from 'react';
-import { Alert, Col } from 'react-bootstrap';
+import { formatCount } from '@/utils';
-interface Props {
- data;
+import './index.scss';
+
+interface IProps {
+ data: any;
+ badgePill: boolean;
}
-const Index: FC<Props> = ({ data }) => {
- const [show, setShow] = useState(Boolean(data));
+const Index: FC<IProps> = ({ data, badgePill }) => {
+ const { t } = useTranslation('translation', { keyPrefix: 'badges' });
+ console.log(data);
return (
- <Col lg={10} className="mb-3">
- <Alert
- variant="info"
- show={show}
- dismissible
- onClose={() => {
- setShow(false);
- }}>
- <div dangerouslySetInnerHTML={{ __html: data }} />
- </Alert>
- </Col>
+ <Card className="text-center badge-card">
+ <Card.Body>
+ <Badge pill={badgePill} bg="success" className="label">
+ 0
+ </Badge>
+ <img src="" width={96} height={96} alt="" />
+ <h6 className="mb-0 mt-3 text-center">Nice Question</h6>
+ <div className="small text-secondary">
+ {t('x_awarded', { number: formatCount(16) })}
+ </div>
+ </Card.Body>
+ </Card>
);
};
-export default memo(Index);
+export default Index;
diff --git a/ui/src/components/SideNav/index.tsx b/ui/src/components/SideNav/index.tsx
index 6c53fe59..327d7b38 100644
--- a/ui/src/components/SideNav/index.tsx
+++ b/ui/src/components/SideNav/index.tsx
@@ -73,6 +73,11 @@ const Index: FC = () => {
<span>{t('header.nav.user')}</span>
</NavLink>
+ <NavLink to="/badges" className="nav-link">
+ <Icon name="award-fill" className="me-2" />
+ <span>{t('header.nav.badges')}</span>
+ </NavLink>
+
{can_revision || userInfo?.role_id === 2 ? (
<>
<div className="py-2 px-3 mt-3 small fw-bold">
diff --git a/ui/src/components/index.ts b/ui/src/components/index.ts
index fdf052d3..44dc1516 100644
--- a/ui/src/components/index.ts
+++ b/ui/src/components/index.ts
@@ -60,6 +60,7 @@ import ImgViewer from './ImgViewer';
import SideNav from './SideNav';
import PluginRender from './PluginRender';
import HighlightText from './HighlightText';
+import CardBadge from './CardBadge';
export {
Avatar,
@@ -107,5 +108,6 @@ export {
SideNav,
PluginRender,
HighlightText,
+ CardBadge,
};
export type { EditorRef, JSONSchema, UISchema };
diff --git a/ui/src/pages/Badges/Detail/index.tsx b/ui/src/pages/Badges/Detail/index.tsx
new file mode 100644
index 00000000..7a192a13
--- /dev/null
+++ b/ui/src/pages/Badges/Detail/index.tsx
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import { Card, Badge, Row, Col } from 'react-bootstrap';
+import { useTranslation } from 'react-i18next';
+import { Link } from 'react-router-dom';
+
+import { Avatar, FormatTime } from '@/components';
+import { usePageTags } from '@/hooks';
+import { formatCount } from '@/utils';
+
+const Index = () => {
+ const { t } = useTranslation('translation', { keyPrefix: 'badges' });
+
+ usePageTags({
+ title: t('title'),
+ });
+
+ return (
+ <div className="pt-4 mb-5">
+ <h3 className="mb-4">{t('title')}</h3>
+ <Card className="mb-4">
+ <Card.Body className="d-flex">
+ <img src="" alt="" width={96} height={96} />
+ <div>
+ <h5>Support Expert</h5>
+ <div className="mb-2">
+ This badge is granted for achieving the expert level of our
+ community support programme. This certifies that the recipient has
+ demonstrated a high level of skills and abilities to manage and
+ support multiple communities/instances.
+ </div>
+ <div className="mb-2">{t('can_earn_multiple')}</div>
+ <div className="small">
+ <span className="text-secondary">
+ {t('x_awarded', { number: formatCount(16) })}
+ </span>
+ <Badge bg="success" className="ms-2">
+ {t('earned_x', { number: 2 })}
+ </Badge>
+ </div>
+ </div>
+ </Card.Body>
+ </Card>
+ <Row>
+ {[0, 1, 2, 3, 4, 5, 6].map((item) => {
+ return (
+ <Col sm={12} md={6} lg={3} key={item} className="mb-4">
+ <FormatTime
+ time={1722397094672}
+ preFix={t('awarded')}
+ className="small mb-1 d-block"
+ />
+ <div className="d-flex align-items-center">
+ <Link to="/user">
+ <Avatar size="40px" avatar="" alt="" />
+ </Link>
+ <div className="small ms-2">
+ <Link
+ to="/user"
+ className="lh-1 name-ellipsis"
+ style={{ maxWidth: '200px' }}>
+ username
+ </Link>
+ <div className="text-secondary">
+ 980 {t('x_reputation', { keyPrefix: 'personal' })}
+ </div>
+ </div>
+ </div>
+ <Link to="/question" className="mt-1 d-block">
+ How to `go test` all tests in my project?
+ </Link>
+ </Col>
+ );
+ })}
+ </Row>
+ </div>
+ );
+};
+
+export default Index;
diff --git a/ui/src/pages/Users/Personal/components/Alert/index.tsx b/ui/src/pages/Badges/index.tsx
similarity index 56%
copy from ui/src/pages/Users/Personal/components/Alert/index.tsx
copy to ui/src/pages/Badges/index.tsx
index 65fd157b..84784c53 100644
--- a/ui/src/pages/Users/Personal/components/Alert/index.tsx
+++ b/ui/src/pages/Badges/index.tsx
@@ -17,28 +17,29 @@
* under the License.
*/
-import { memo, FC, useState } from 'react';
-import { Alert, Col } from 'react-bootstrap';
+import { useTranslation } from 'react-i18next';
-interface Props {
- data;
-}
-const Index: FC<Props> = ({ data }) => {
- const [show, setShow] = useState(Boolean(data));
+import { CardBadge } from '@/components';
+import { usePageTags } from '@/hooks';
+
+const Index = () => {
+ const { t } = useTranslation('translation', { keyPrefix: 'badges' });
+
+ usePageTags({
+ title: t('title'),
+ });
return (
- <Col lg={10} className="mb-3">
- <Alert
- variant="info"
- show={show}
- dismissible
- onClose={() => {
- setShow(false);
- }}>
- <div dangerouslySetInnerHTML={{ __html: data }} />
- </Alert>
- </Col>
+ <div className="pt-4 mb-5">
+ <h3 className="mb-4">{t('title')}</h3>
+ <h5 className="mb-4">Community Badges</h5>
+ <div className="d-flex flex-wrap" style={{ margin: '-12px' }}>
+ {[0, 1, 2, 3, 4, 5, 6].map((item) => {
+ return <CardBadge data={item} badgePill={false} />;
+ })}
+ </div>
+ </div>
);
};
-export default memo(Index);
+export default Index;
diff --git a/ui/src/pages/Users/Personal/components/Alert/index.tsx b/ui/src/pages/Users/Personal/components/Alert/index.tsx
index 65fd157b..8bde01f2 100644
--- a/ui/src/pages/Users/Personal/components/Alert/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Alert/index.tsx
@@ -18,7 +18,7 @@
*/
import { memo, FC, useState } from 'react';
-import { Alert, Col } from 'react-bootstrap';
+import { Alert } from 'react-bootstrap';
interface Props {
data;
@@ -27,17 +27,16 @@ const Index: FC<Props> = ({ data }) => {
const [show, setShow] = useState(Boolean(data));
return (
- <Col lg={10} className="mb-3">
- <Alert
- variant="info"
- show={show}
- dismissible
- onClose={() => {
- setShow(false);
- }}>
- <div dangerouslySetInnerHTML={{ __html: data }} />
- </Alert>
- </Col>
+ <Alert
+ variant="info"
+ show={show}
+ className="mb-3"
+ dismissible
+ onClose={() => {
+ setShow(false);
+ }}>
+ <div dangerouslySetInnerHTML={{ __html: data }} />
+ </Alert>
);
};
diff --git a/ui/src/pages/Users/Personal/components/Alert/index.tsx b/ui/src/pages/Users/Personal/components/Badges/index.tsx
similarity index 62%
copy from ui/src/pages/Users/Personal/components/Alert/index.tsx
copy to ui/src/pages/Users/Personal/components/Badges/index.tsx
index 65fd157b..a7bd3e58 100644
--- a/ui/src/pages/Users/Personal/components/Alert/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Badges/index.tsx
@@ -17,28 +17,27 @@
* under the License.
*/
-import { memo, FC, useState } from 'react';
-import { Alert, Col } from 'react-bootstrap';
+import { FC } from 'react';
-interface Props {
- data;
+import { CardBadge } from '@/components';
+
+interface IProps {
+ data: any[];
+ visible: boolean;
}
-const Index: FC<Props> = ({ data }) => {
- const [show, setShow] = useState(Boolean(data));
+const Index: FC<IProps> = ({ data, visible }) => {
+ console.log(data);
+ if (!visible) {
+ return null;
+ }
return (
- <Col lg={10} className="mb-3">
- <Alert
- variant="info"
- show={show}
- dismissible
- onClose={() => {
- setShow(false);
- }}>
- <div dangerouslySetInnerHTML={{ __html: data }} />
- </Alert>
- </Col>
+ <div className="d-flex flex-wrap" style={{ margin: '-12px' }}>
+ {[0, 1, 2, 3, 4, 5, 6].map((item) => {
+ return <CardBadge data={item} badgePill />;
+ })}
+ </div>
);
};
-export default memo(Index);
+export default Index;
diff --git a/ui/src/pages/Users/Personal/components/NavBar/index.tsx b/ui/src/pages/Users/Personal/components/NavBar/index.tsx
index d201a579..5f4360ed 100644
--- a/ui/src/pages/Users/Personal/components/NavBar/index.tsx
+++ b/ui/src/pages/Users/Personal/components/NavBar/index.tsx
@@ -59,6 +59,11 @@ const list = [
path: '/votes',
name: 'votes',
},
+ {
+ role: 'self', // Only visible to author
+ path: '/badges',
+ name: 'badges',
+ },
];
const Index: FC<Props> = ({ slug, tabName = 'overview', isSelf }) => {
const { t } = useTranslation('translation', { keyPrefix: 'personal' });
diff --git a/ui/src/pages/Users/Personal/components/Overview/index.tsx b/ui/src/pages/Users/Personal/components/Overview/index.tsx
index 3d5c7360..4f228061 100644
--- a/ui/src/pages/Users/Personal/components/Overview/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Overview/index.tsx
@@ -19,6 +19,7 @@
import { FC, memo } from 'react';
import { useTranslation } from 'react-i18next';
+import { Row, Col } from 'react-bootstrap';
import TopList from '../TopList';
@@ -37,26 +38,31 @@ const Index: FC<Props> = ({ visible, introduction, data }) => {
<h5 className="mb-3">{t('about_me')}</h5>
{introduction ? (
<div
- className="mb-4 text-break fmt"
+ className="mb-5 text-break fmt"
dangerouslySetInnerHTML={{ __html: introduction }}
/>
) : (
- <div className="text-center py-5 mb-4">{t('about_me_empty')}</div>
+ <div className="text-center py-5 mb-5">{t('about_me_empty')}</div>
)}
- {data?.answer?.length > 0 && (
- <>
- <h5 className="mb-3">{t('top_answers')}</h5>
- <TopList data={data?.answer} type="answer" />
- </>
- )}
-
- {data?.question?.length > 0 && (
- <>
- <h5 className="mb-3">{t('top_questions')}</h5>
- <TopList data={data?.question} type="question" />
- </>
- )}
+ <Row className="mb-4">
+ <Col sm={12} md={6} className="mb-4">
+ {data?.answer?.length > 0 && (
+ <>
+ <h5 className="mb-3">{t('top_answers')}</h5>
+ <TopList data={data?.answer} type="answer" />
+ </>
+ )}
+ </Col>
+ <Col sm={12} md={6} className="mb-4">
+ {data?.question?.length > 0 && (
+ <>
+ <h5 className="mb-3">{t('top_questions')}</h5>
+ <TopList data={data?.question} type="question" />
+ </>
+ )}
+ </Col>
+ </Row>
</div>
);
};
diff --git a/ui/src/pages/Users/Personal/components/TopList/index.tsx b/ui/src/pages/Users/Personal/components/TopList/index.tsx
index ad9044fa..04553428 100644
--- a/ui/src/pages/Users/Personal/components/TopList/index.tsx
+++ b/ui/src/pages/Users/Personal/components/TopList/index.tsx
@@ -31,14 +31,13 @@ interface Props {
const Index: FC<Props> = ({ data, type }) => {
const { t } = useTranslation('translation', { keyPrefix: 'personal' });
return (
- <ol className="mb-4 list-unstyled">
- {data?.map((item) => {
+ <ol className="list-unstyled">
+ {data?.map((item, index) => {
return (
<li
- className="mb-2"
+ className={`${index === data.length - 1 ? '' : 'mb-2'}`}
key={type === 'answer' ? item.answer_id : item.question_id}>
<Link
- className="me-3"
to={
type === 'answer'
? pathFactory.answerLanding({
@@ -54,36 +53,37 @@ const Index: FC<Props> = ({ data, type }) => {
{type === 'answer' ? item.question_info.title : item.title}
</Link>
- <div className="d-inline-block text-secondary me-3 small">
+ <div className="text-secondary small">
<Icon name="hand-thumbs-up-fill me-1" />
<span>
{item.vote_count} {t('votes', { keyPrefix: 'counts' })}
</span>
- </div>
- {type === 'question' && (
- <div
- className={`d-inline-block text-secondary me-3 small ${
- Number(item.accepted_answer_id) > 0 ? 'text-success' : ''
- }`}>
- {Number(item.accepted_answer_id) > 0 ? (
- <Icon name="check-circle-fill" />
- ) : (
- <Icon name="chat-square-text-fill" />
- )}
- <span>
- {' '}
- {item.answer_count} {t('answers', { keyPrefix: 'counts' })}
- </span>
- </div>
- )}
+ {type === 'question' && (
+ <div
+ className={`d-inline-block text-secondary ms-3 small ${
+ Number(item.accepted_answer_id) > 0 ? 'text-success' : ''
+ }`}>
+ {Number(item.accepted_answer_id) > 0 ? (
+ <Icon name="check-circle-fill" />
+ ) : (
+ <Icon name="chat-square-text-fill" />
+ )}
+
+ <span>
+ {' '}
+ {item.answer_count} {t('answers', { keyPrefix: 'counts' })}
+ </span>
+ </div>
+ )}
- {type === 'answer' && item.accepted === 2 && (
- <div className="d-inline-block text-success me-3 small">
- <Icon name="check-circle-fill" />
- <span> {t('accepted')}</span>
- </div>
- )}
+ {type === 'answer' && item.accepted === 2 && (
+ <div className="d-inline-block text-success ms-3 small">
+ <Icon name="check-circle-fill" />
+ <span> {t('accepted')}</span>
+ </div>
+ )}
+ </div>
</li>
);
})}
diff --git a/ui/src/pages/Users/Personal/components/index.ts b/ui/src/pages/Users/Personal/components/index.ts
index c2c3ec79..0a9baab1 100644
--- a/ui/src/pages/Users/Personal/components/index.ts
+++ b/ui/src/pages/Users/Personal/components/index.ts
@@ -28,6 +28,7 @@ import Reputation from './Reputation';
import Comments from './Comments';
import Votes from './Votes';
import Answers from './Answers';
+import Badges from './Badges';
export {
Alert,
@@ -41,4 +42,5 @@ export {
Comments,
Votes,
Answers,
+ Badges,
};
diff --git a/ui/src/pages/Users/Personal/index.tsx b/ui/src/pages/Users/Personal/index.tsx
index 2d205a42..96704b85 100644
--- a/ui/src/pages/Users/Personal/index.tsx
+++ b/ui/src/pages/Users/Personal/index.tsx
@@ -43,6 +43,7 @@ import {
Comments,
Answers,
Votes,
+ Badges,
} from './components';
const Personal: FC = () => {
@@ -79,36 +80,30 @@ const Personal: FC = () => {
return (
<div className="pt-4 mb-5">
<Row>
- {userInfo?.status !== 'normal' && userInfo?.status_msg && (
- <Alert data={userInfo?.status_msg} />
- )}
- <Col className="page-main flex-auto">
- <UserInfo data={userInfo as UserInfoRes} />
- </Col>
- <Col
- xxl={3}
- lg={4}
- sm={12}
- className="page-right-side mt-4 mt-xl-0 d-flex justify-content-start justify-content-md-end">
- {isSelf && (
- <div className="mb-3">
- <Link
- className="btn btn-outline-secondary"
- to="/users/settings/profile">
- {t('edit_profile')}
- </Link>
- </div>
+ <Col>
+ {userInfo?.status !== 'normal' && userInfo?.status_msg && (
+ <Alert data={userInfo?.status_msg} />
)}
- </Col>
- </Row>
- <NavBar tabName={tabName} slug={username} isSelf={isSelf} />
- <Row>
- <Col className="page-main flex-auto">
+ <div className="d-md-flex d-block flex-wrap justify-content-between">
+ <UserInfo data={userInfo as UserInfoRes} />
+ {isSelf && (
+ <div className="mb-3">
+ <Link
+ className="btn btn-outline-secondary"
+ to="/users/settings/profile">
+ {t('edit_profile')}
+ </Link>
+ </div>
+ )}
+ </div>
+ <NavBar tabName={tabName} slug={username} isSelf={isSelf} />
+
<Overview
visible={tabName === 'overview'}
introduction={userInfo?.bio_html || ''}
data={topData}
/>
+
<ListHead
count={tabName === 'reputation' ? Number(userInfo?.rank) : count}
sort={order}
@@ -124,6 +119,7 @@ const Personal: FC = () => {
<Reputation data={list} visible={tabName === 'reputation'} />
<Comments data={list} visible={tabName === 'comments'} />
<Votes data={list} visible={tabName === 'votes'} />
+ <Badges data={list} visible={tabName === 'badges'} />
{!list?.length && !isLoading && <Empty />}
{count > 0 && (
@@ -135,20 +131,20 @@ const Personal: FC = () => {
/>
</div>
)}
- </Col>
- <Col className="page-right-side mt-4 mt-xl-0">
- <h5 className="mb-3">{t('stats')}</h5>
- {userInfo?.created_at && (
+
+ {tabName === 'overview' && (
<>
- <div className="text-secondary">
- <FormatTime time={userInfo.created_at} preFix={t('joined')} />
- </div>
- <div className="text-secondary">
- <FormatTime
- time={userInfo.last_login_date}
- preFix={t('last_login')}
- />
- </div>
+ <h5 className="mb-3">{t('stats')}</h5>
+ {userInfo?.created_at && (
+ <div className="text-secondary">
+ <FormatTime time={userInfo.created_at} preFix={t('joined')} />
+ {t('comma')}{' '}
+ <FormatTime
+ time={userInfo.last_login_date}
+ preFix={t('last_login')}
+ />
+ </div>
+ )}
</>
)}
</Col>
diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts
index 5c420e36..73a08f68 100644
--- a/ui/src/router/routes.ts
+++ b/ui/src/router/routes.ts
@@ -217,6 +217,14 @@ const routes: RouteNode[] = [
path: 'review',
page: 'pages/Review',
},
+ {
+ path: '/badges',
+ page: 'pages/Badges/index',
+ },
+ {
+ path: '/badges/:badge_id',
+ page: 'pages/Badges/Detail/index',
+ },
],
},
{