Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#9758] feat(UI): New UI reconstruct base main (#9759)

Qian Xia91e937a378bd
diff --git a/.github/workflows/backend-integration-test-action.yml b/.github/workflows/backend-integration-test-action.yml
index 7af351caba..f83456ea2b 100644
--- a/.github/workflows/backend-integration-test-action.yml
+++ b/.github/workflows/backend-integration-test-action.yml
@@ -62,7 +62,7 @@ jobs:
id: integrationTest
run: >
./gradlew test -PskipTests -PtestMode=${{ inputs.test-mode }} -PjdbcBackend=${{ inputs.backend }} -PskipDockerTests=false
- -x :web:web:test -x :web:integration-test:test -x :clients:client-python:test -x :flink-connector:flink:test -x :spark-connector:spark-common:test
+ -x :web:web:test -x :web:integration-test:test -x :web-v2:web:test -x :web-v2:integration-test:test -x :clients:client-python:test -x :flink-connector:flink:test -x :spark-connector:spark-common:test
-x :spark-connector:spark-3.3:test -x :spark-connector:spark-3.4:test -x :spark-connector:spark-3.5:test
-x :spark-connector:spark-runtime-3.3:test -x :spark-connector:spark-runtime-3.4:test -x :spark-connector:spark-runtime-3.5:test
-x :trino-connector:integration-test:test -x :trino-connector:trino-connector:test
diff --git a/.github/workflows/frontend-integration-test.yml b/.github/workflows/frontend-integration-test.yml
index 841b4f390f..a1e7ce5125 100644
--- a/.github/workflows/frontend-integration-test.yml
+++ b/.github/workflows/frontend-integration-test.yml
@@ -49,7 +49,7 @@ jobs:
needs: changes
if: needs.changes.outputs.source_changes == 'true'
runs-on: ubuntu-latest
- timeout-minutes: 60
+ timeout-minutes: 90
strategy:
matrix:
# Integration test for AMD64 architecture
@@ -75,7 +75,7 @@ jobs:
- name: Package Gravitino
run: |
- ./gradlew compileDistribution -x test
+ GRAVITINO_USE_WEB_V2=true ./gradlew compileDistribution -x test
- name: Free up disk space
run: |
@@ -84,8 +84,8 @@ jobs:
- name: Frontend Integration Test
id: integrationTest
run: |
- ./gradlew -PskipTests -PtestMode=embedded -PskipDockerTests=false :web:integration-test:test
- ./gradlew -PskipTests -PtestMode=deploy -PskipDockerTests=false :web:integration-test:test
+ GRAVITINO_USE_WEB_V2=true ./gradlew -PskipTests -PtestMode=embedded -PskipDockerTests=false :web-v2:integration-test:test
+ GRAVITINO_USE_WEB_V2=true ./gradlew -PskipTests -PtestMode=deploy -PskipDockerTests=false :web-v2:integration-test:test
- name: Upload integrate tests reports
uses: actions/upload-artifact@v4
@@ -99,4 +99,4 @@ jobs:
distribution/package/logs/gravitino-server.log
catalogs/**/*.log
catalogs/**/*.tar
- web/integration-test/build/*.log
\ No newline at end of file
+ web-v2/integration-test/build/*.log
\ No newline at end of file
diff --git a/README.md b/README.md
index 26f9372a44..09600ddc5e 100644
--- a/README.md
+++ b/README.md
@@ -82,6 +82,18 @@ Clone or download the [Gravitino Playground repository](https://github.com/apach
Press `CTRL+C` to stop.
+5. (Optional) Use the new UI
+
+ - To switch to the new UI at runtime: edit `conf/gravitino-env.sh` (or set the environment variable before starting) and set `GRAVITINO_USE_WEB_V2` to `true`:
+
+```bash
+export GRAVITINO_USE_WEB_V2=true
+./bin/gravitino.sh start
+```
+
+ - Alternatively, you can remove the `GRAVITINO_USE_WEB_V2=...` line from `conf/gravitino-env.sh` (the template defaults to `false`); removing that line will revert the service to the legacy UI behavior.
+
+
## 🧊 Iceberg REST Catalog
Gravitino provides a native Iceberg REST catalog service.
diff --git a/bin/gravitino.sh.template b/bin/gravitino.sh.template
index 48331fe3af..259694b570 100755
--- a/bin/gravitino.sh.template
+++ b/bin/gravitino.sh.template
@@ -181,6 +181,31 @@ fi
addJarInDir "${GRAVITINO_HOME}/libs"
+# By default, prefer starting the legacy (old) UI war if present.
+# Users may override by setting GRAVITINO_WAR to an explicit path, or
+# set GRAVITINO_USE_WEB_V2=true to prefer the new war when both exist.
+if [[ -z "${GRAVITINO_WAR+x}" || -z "${GRAVITINO_WAR}" ]]; then
+ # Compose expected war paths based on packaged layout and version
+ WAR_V1_PATH="${GRAVITINO_HOME}/web/gravitino-web-${GRAVITINO_VERSION}.war"
+ WAR_V2_PATH="${GRAVITINO_HOME}/web-v2/gravitino-web-${GRAVITINO_VERSION}.war"
+
+ if [[ -n "${GRAVITINO_USE_WEB_V2}" && "${GRAVITINO_USE_WEB_V2}" == "true" ]]; then
+ # User explicitly requests new UI if available
+ if [[ -f "${WAR_V2_PATH}" ]]; then
+ export GRAVITINO_WAR="${WAR_V2_PATH}"
+ elif [[ -f "${WAR_V1_PATH}" ]]; then
+ export GRAVITINO_WAR="${WAR_V1_PATH}"
+ fi
+ else
+ # Default behavior: prefer old UI war
+ if [[ -f "${WAR_V1_PATH}" ]]; then
+ export GRAVITINO_WAR="${WAR_V1_PATH}"
+ elif [[ -f "${WAR_V2_PATH}" ]]; then
+ export GRAVITINO_WAR="${WAR_V2_PATH}"
+ fi
+ fi
+fi
+
case "${1}" in
start)
start
diff --git a/build.gradle.kts b/build.gradle.kts
index f06c46acc5..4fb1cec99a 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -220,11 +220,24 @@ allprojects {
project.delete("build/${project.name}-integration-test.log")
if (testMode == "deploy") {
param.environment("GRAVITINO_HOME", project.rootDir.path + "/distribution/package")
+ val useWebV2 = System.getenv("GRAVITINO_USE_WEB_V2")?.toBoolean() == true
+ val webWarPath = if (useWebV2) {
+ project.rootDir.path + "/distribution/package/web-v2/gravitino-web-${project.version}.war"
+ } else {
+ project.rootDir.path + "/distribution/package/web/gravitino-web-${project.version}.war"
+ }
+ param.environment("GRAVITINO_WAR", webWarPath)
param.systemProperty("testMode", "deploy")
} else if (testMode == "embedded") {
param.environment("GRAVITINO_HOME", project.rootDir.path)
param.environment("GRAVITINO_TEST", "true")
- param.environment("GRAVITINO_WAR", project.rootDir.path + "/web/web/dist/")
+ val useWebV2 = System.getenv("GRAVITINO_USE_WEB_V2")?.toBoolean() == true
+ val webWarPath = if (useWebV2) {
+ project.rootDir.path + "/web-v2/web/dist/"
+ } else {
+ project.rootDir.path + "/web/web/dist/"
+ }
+ param.environment("GRAVITINO_WAR", webWarPath)
param.systemProperty("testMode", "embedded")
} else {
throw GradleException(
@@ -512,7 +525,7 @@ subprojects {
}
}
- if (project.name in listOf("web", "docs")) {
+ if (project.name in listOf("web", "web-v2", "docs")) {
plugins.apply(NodePlugin::class)
configure<NodeExtension> {
version.set("20.19.0")
@@ -682,7 +695,18 @@ tasks.rat {
"web/web/src/lib/icons/svg/**/*.svg",
"web/web/src/lib/utils/axios/**/*",
"web/web/src/types/axios.d.ts",
- "web/web/yarn.lock"
+ "web/web/yarn.lock",
+ "web-v2/web/.**",
+ "web-v2/web/dist/**/*",
+ "web-v2/web/next-env.d.ts",
+ "web-v2/web/node_modules/**/*",
+ "web-v2/web/package-lock.json",
+ "web-v2/web/pnpm-lock.yaml",
+ "web-v2/web/src/lib/enums/httpEnum.js",
+ "web-v2/web/src/lib/icons/svg/**/*.svg",
+ "web-v2/web/src/lib/utils/axios/**/*",
+ "web-v2/web/src/types/axios.d.ts",
+ "web-v2/web/yarn.lock"
)
// Add .gitignore excludes to the Apache Rat exclusion list.
@@ -725,7 +749,8 @@ tasks {
":iceberg:iceberg-rest-server:copyLibAndConfigs",
":lance:lance-rest-server:copyLibAndConfigs",
":maintenance:optimizer:copyLibAndConfigs",
- ":web:web:build"
+ ":web:web:build",
+ ":web-v2:web:build"
)
group = "gravitino distribution"
@@ -735,6 +760,7 @@ tasks {
from(projectDir.dir("conf")) { into("package/conf") }
from(projectDir.dir("bin")) { into("package/bin") }
from(projectDir.dir("web/web/build/libs/${rootProject.name}-web-$version.war")) { into("package/web") }
+ from(projectDir.dir("web-v2/web/build/libs/${rootProject.name}-web-$version.war")) { into("package/web-v2") }
from(projectDir.dir("scripts")) { into("package/scripts") }
into(outputDir)
rename { fileName ->
@@ -757,6 +783,9 @@ tasks {
from(projectDir.dir("web/web/licenses")) { into("package/web/licenses") }
from(projectDir.dir("web/web/LICENSE.bin")) { into("package/web") }
from(projectDir.dir("web/web/NOTICE.bin")) { into("package/web") }
+ from(projectDir.dir("web-v2/web/licenses")) { into("package/web-v2/licenses") }
+ from(projectDir.dir("web-v2/web/LICENSE.bin")) { into("package/web-v2") }
+ from(projectDir.dir("web-v2/web/NOTICE.bin")) { into("package/web-v2") }
into(outputDir)
rename { fileName ->
fileName.replace(".bin", "")
@@ -1093,6 +1122,8 @@ tasks {
it.name != "hive-metastore-common" &&
it.name != "docs" &&
it.name != "hadoop-common" &&
+ it.name != "web" &&
+ it.name != "web-v2" &&
it.parent?.name != "bundles" &&
it.parent?.name != "maintenance" &&
it.name != "mcp-server"
diff --git a/conf/gravitino-env.sh.template b/conf/gravitino-env.sh.template
index 16f4ae84ae..5b8929b3b2 100644
--- a/conf/gravitino-env.sh.template
+++ b/conf/gravitino-env.sh.template
@@ -31,3 +31,8 @@ GRAVITINO_VERSION=GRAVITINO_VERSION_PLACEHOLDER
# export GRAVITINO_MEM # JVM memory options for the Gravitino server, Iceberg REST server, and Lance REST server.
# # Default: -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=512m
# # Appended to JAVA_OPTS by launch scripts; set GRAVITINO_MEM to change heap/metaspace sizes.
+
+# UI selection behaviour:
+# - By default the template sets `GRAVITINO_USE_WEB_V2=false` which forces the V1 UI.
+# - To enable the v2 UI you can set it to `true` (for example: `export GRAVITINO_USE_WEB_V2=true`).
+GRAVITINO_USE_WEB_V2=false
\ No newline at end of file
diff --git a/conf/gravitino.conf.template b/conf/gravitino.conf.template
index 029e1d2121..9e340f5a6e 100644
--- a/conf/gravitino.conf.template
+++ b/conf/gravitino.conf.template
@@ -78,6 +78,7 @@ gravitino.cache.implementation = caffeine
# Whether Gravitino enable authorization or not
gravitino.authorization.enable = false
# The admins of Gravitino service, multiple admins are spitted by comma.
+gravitino.server.visibleConfigs=gravitino.authorization.serviceAdmins
gravitino.authorization.serviceAdmins = anonymous
# THE CONFIGURATION FOR AUXILIARY SERVICE
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 3e636015ca..d50ffcfddf 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -84,7 +84,7 @@ lz4 = "1.8.0"
mysql = "8.0.33"
postgresql = "42.6.0"
immutables-value = "2.11.7"
-selenium = "3.141.59"
+selenium = "4.33.0"
rauschig = "1.2.0"
mybatis = "3.5.6"
h2db = "1.4.200"
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 0d9b185801..6e4a70a48b 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -83,6 +83,7 @@ project(":spark-connector:spark-runtime-3.4").projectDir = file("spark-connector
project(":spark-connector:spark-3.5").projectDir = file("spark-connector/v3.5/spark")
project(":spark-connector:spark-runtime-3.5").projectDir = file("spark-connector/v3.5/spark-runtime")
include("web:web", "web:integration-test")
+include("web-v2:web", "web-v2:integration-test")
include("docs")
include("integration-test-common")
include(":bundles:aws", ":bundles:aws-bundle", ":bundles:iceberg-aws-bundle")
diff --git a/web-v2/build.gradle.kts b/web-v2/build.gradle.kts
new file mode 100644
index 0000000000..043fbfec67
--- /dev/null
+++ b/web-v2/build.gradle.kts
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ */
+
+tasks.all {
+ enabled = false
+}
\ No newline at end of file
diff --git a/web-v2/integration-test/build.gradle.kts b/web-v2/integration-test/build.gradle.kts
new file mode 100644
index 0000000000..6618c54abd
--- /dev/null
+++ b/web-v2/integration-test/build.gradle.kts
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+plugins {
+ `maven-publish`
+ id("java")
+ id("idea")
+ alias(libs.plugins.shadow)
+}
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ testImplementation(project(":api"))
+ testImplementation(project(":clients:client-java"))
+ testImplementation(project(":common"))
+ testImplementation(project(":core"))
+ testImplementation(project(":integration-test-common", "testArtifacts"))
+ testImplementation(project(":server"))
+ testImplementation(project(":server-common"))
+
+ testImplementation(libs.awaitility)
+ testImplementation(libs.bundles.log4j)
+ testImplementation(libs.commons.io)
+ testImplementation(libs.commons.lang3)
+ testImplementation(libs.guava)
+ testImplementation(libs.hadoop3.client)
+ testImplementation(libs.junit.jupiter.api)
+ testImplementation(libs.mysql.driver)
+ testImplementation(libs.postgresql.driver)
+ testImplementation(libs.rauschig)
+ testImplementation(libs.selenium)
+ testImplementation(libs.testcontainers)
+
+ testRuntimeOnly(libs.junit.jupiter.engine)
+}
+
+tasks.test {
+ val skipITs = project.hasProperty("skipITs")
+ if (skipITs) {
+ exclude("*")
+ } else {
+ dependsOn(":trino-connector:trino-connector:jar")
+ dependsOn(":catalogs:catalog-lakehouse-iceberg:jar", ":catalogs:catalog-lakehouse-iceberg:runtimeJars")
+ dependsOn(":catalogs:catalog-jdbc-doris:jar", ":catalogs:catalog-jdbc-doris:runtimeJars")
+ dependsOn(":catalogs:catalog-jdbc-mysql:jar", ":catalogs:catalog-jdbc-mysql:runtimeJars")
+ dependsOn(":catalogs:catalog-jdbc-postgresql:jar", ":catalogs:catalog-jdbc-postgresql:runtimeJars")
+ dependsOn(":catalogs:catalog-fileset:jar", ":catalogs:catalog-fileset:runtimeJars")
+ dependsOn(":catalogs:catalog-hive:jar", ":catalogs:catalog-hive:runtimeJars")
+ dependsOn(":catalogs:catalog-kafka:jar", ":catalogs:catalog-kafka:runtimeJars")
+
+ // Frontend tests depend on the web page, so we need to build the web module first.
+ dependsOn(":web-v2:web:build")
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageDorisTest.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageDorisTest.java
new file mode 100644
index 0000000000..1bea908d2c
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageDorisTest.java
@@ -0,0 +1,268 @@
+/*
+ * 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.
+ */
+
+package org.apache.gravitino.integration.test.web.ui;
+
+import com.google.common.collect.Maps;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import org.apache.gravitino.Catalog;
+import org.apache.gravitino.NameIdentifier;
+import org.apache.gravitino.client.GravitinoAdminClient;
+import org.apache.gravitino.client.GravitinoMetalake;
+import org.apache.gravitino.integration.test.container.ContainerSuite;
+import org.apache.gravitino.integration.test.container.DorisContainer;
+import org.apache.gravitino.integration.test.web.ui.pages.CatalogsPage;
+import org.apache.gravitino.integration.test.web.ui.pages.MetalakePage;
+import org.apache.gravitino.integration.test.web.ui.utils.BaseWebIT;
+import org.apache.gravitino.rel.Column;
+import org.apache.gravitino.rel.expressions.NamedReference;
+import org.apache.gravitino.rel.expressions.distributions.Distributions;
+import org.apache.gravitino.rel.expressions.sorts.SortOrder;
+import org.apache.gravitino.rel.types.Types;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.MethodOrderer;
+import org.junit.jupiter.api.Order;
+import org.junit.jupiter.api.Tag;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestMethodOrder;
+
+@Tag("gravitino-docker-test")
+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
+public class CatalogsPageDorisTest extends BaseWebIT {
+ private MetalakePage metalakePage;
+ private CatalogsPage catalogsPage;
+
+ private static final ContainerSuite containerSuite = ContainerSuite.getInstance();
+ protected static GravitinoAdminClient gravitinoClient;
+ private static GravitinoMetalake metalake;
+
+ protected static String gravitinoUri = "http://127.0.0.1:8090";
+ protected static String dorisJdbcConnectionUri;
+
+ private static final String CATALOG_TABLE_TITLE = "Schemas";
+ private static final String SCHEMA_TABLE_TITLE = "Tables";
+ private static final String TABLE_TABLE_TITLE = "Columns";
+ private static final String METALAKE_NAME = "test";
+ private static final String CATALOG_TYPE_RELATIONAL = "relational";
+
+ private static final String DORIS_CATALOG_NAME = "catalog_doris";
+ private static final String DORIS_JDBC_DRIVER = "com.mysql.cj.jdbc.Driver";
+ private static final String USER_NAME = "root";
+ private static final String PASSWORD = "root";
+
+ private static final String SCHEMA_NAME_DORIS = "schema_doris";
+ private static final String TABLE_NAME = "table1";
+ private static final String COLUMN_NAME = "col1";
+ private static final String PROPERTIES_KEY1 = "key1";
+ private static final String PROPERTIES_VALUE1 = "val1";
+
+ @BeforeAll
+ public void before() throws Exception {
+ gravitinoClient = getGravitinoClient();
+ gravitinoUri = String.format("http://127.0.0.1:%d", getGravitinoServerPort());
+
+ containerSuite.startDorisContainer();
+
+ dorisJdbcConnectionUri =
+ String.format(
+ "jdbc:mysql://%s:%d/",
+ containerSuite.getDorisContainer().getContainerIpAddress(),
+ DorisContainer.FE_MYSQL_PORT);
+ LOG.info("Doris jdbc url: {}", dorisJdbcConnectionUri);
+
+ metalakePage = new MetalakePage(driver);
+ catalogsPage = new CatalogsPage(driver);
+ }
+
+ /**
+ * Create the specified schema
+ *
+ * @param metalakeName The name of the Metalake where the schema will be created.
+ * @param catalogName The name of the Catalog where the schema will be created.
+ * @param schemaName The name of the Schema where the schema will be created.
+ */
+ void createSchema(String metalakeName, String catalogName, String schemaName) {
+ Map<String, String> properties = Maps.newHashMap();
+ properties.put(PROPERTIES_KEY1, PROPERTIES_VALUE1);
+ Catalog catalog_doris = metalake.loadCatalog(catalogName);
+ catalog_doris.asSchemas().createSchema(schemaName, "comment", properties);
+ }
+
+ /**
+ * Creates a table with a single column in the specified Metalake, Catalog, Schema, and Table.
+ *
+ * @param metalakeName The name of the Metalake where the table will be created.
+ * @param catalogName The name of the Catalog where the table will be created.
+ * @param schemaName The name of the Schema where the table will be created.
+ * @param tableName The name of the Table to be created.
+ * @param colName The name of the Column to be created in the Table.
+ */
+ void createTableAndColumn(
+ String metalakeName,
+ String catalogName,
+ String schemaName,
+ String tableName,
+ String colName) {
+ Map<String, String> properties = Maps.newHashMap();
+ Column column = Column.of(colName, Types.IntegerType.get(), "column comment");
+ Catalog catalog_doris = metalake.loadCatalog(catalogName);
+ catalog_doris
+ .asTableCatalog()
+ .createTable(
+ NameIdentifier.of(schemaName, tableName),
+ new Column[] {column},
+ "comment",
+ properties,
+ Distributions.hash(2, NamedReference.field(colName)),
+ new SortOrder[0]);
+ }
+
+ @Test
+ @Order(0)
+ public void testCreateDorisCatalog() throws InterruptedException {
+ // create metalake
+ clickAndWait(metalakePage.createMetalakeBtn);
+ metalakePage.setMetalakeNameField(METALAKE_NAME);
+ clickAndWait(metalakePage.submitHandleMetalakeBtn);
+ // load metalake
+ metalake = gravitinoClient.loadMetalake(METALAKE_NAME);
+ metalakePage.clickMetalakeLink(METALAKE_NAME);
+ // create doris catalog - new UI flow: select provider first, then click Next
+ clickAndWait(catalogsPage.createCatalogBtn);
+ catalogsPage.clickSelectProvider("jdbc-doris");
+ clickAndWait(catalogsPage.handleNextCatalogBtn);
+ catalogsPage.setCatalogNameField(DORIS_CATALOG_NAME);
+ catalogsPage.setCatalogCommentField("doris catalog comment");
+ // set doris catalog props
+ catalogsPage.setCatalogFixedProp("jdbc-driver", DORIS_JDBC_DRIVER);
+ catalogsPage.setCatalogFixedProp("jdbc-url", dorisJdbcConnectionUri);
+ catalogsPage.setCatalogFixedProp("jdbc-user", USER_NAME);
+ catalogsPage.setCatalogFixedProp("jdbc-password", PASSWORD);
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(DORIS_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(1)
+ public void testClickCatalogLink() {
+ // 1. create schema of doris catalog
+ createSchema(METALAKE_NAME, DORIS_CATALOG_NAME, SCHEMA_NAME_DORIS);
+ // 2. click link of doris catalog
+ catalogsPage.clickCatalogLink(METALAKE_NAME, DORIS_CATALOG_NAME, CATALOG_TYPE_RELATIONAL);
+ // 3. verify show table title、 schema name and tree node
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(CATALOG_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(SCHEMA_NAME_DORIS, false));
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(DORIS_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(2)
+ public void testClickSchemaLink() {
+ // create table
+ createTableAndColumn(
+ METALAKE_NAME, DORIS_CATALOG_NAME, SCHEMA_NAME_DORIS, TABLE_NAME, COLUMN_NAME);
+ // 2. click link of doris schema
+ catalogsPage.clickSchemaLink(
+ METALAKE_NAME, DORIS_CATALOG_NAME, CATALOG_TYPE_RELATIONAL, SCHEMA_NAME_DORIS);
+ // verify show table title、 schema name and tree node
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(SCHEMA_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(TABLE_NAME, false));
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(SCHEMA_NAME_DORIS));
+ }
+
+ @Test
+ @Order(3)
+ public void testClickTableLink() {
+ catalogsPage.clickTableLink(
+ METALAKE_NAME, DORIS_CATALOG_NAME, CATALOG_TYPE_RELATIONAL, SCHEMA_NAME_DORIS, TABLE_NAME);
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(TABLE_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyTableColumns());
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(COLUMN_NAME, true));
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(TABLE_NAME));
+ }
+
+ @Test
+ @Order(4)
+ public void testDorisSchemaTreeNode() throws InterruptedException {
+ catalogsPage.clickBreadCrumbsToCatalogs();
+ // click doris catalog tree node
+ String dorisCatalogNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}", METALAKE_NAME, DORIS_CATALOG_NAME, CATALOG_TYPE_RELATIONAL);
+ catalogsPage.clickTreeNode(dorisCatalogNode);
+ // verify show table title、 schema name and tree node
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(CATALOG_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(SCHEMA_NAME_DORIS, false));
+ List<String> treeNodes = Arrays.asList(DORIS_CATALOG_NAME, SCHEMA_NAME_DORIS);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ }
+
+ @Test
+ @Order(5)
+ public void testDorisTableTreeNode() throws InterruptedException {
+ // 1. click schema tree node
+ String dorisSchemaNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, DORIS_CATALOG_NAME, CATALOG_TYPE_RELATIONAL, SCHEMA_NAME_DORIS);
+ catalogsPage.clickTreeNode(dorisSchemaNode);
+ // 2. verify show table title、 default schema name and tree node
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(SCHEMA_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(TABLE_NAME, false));
+ List<String> treeNodes = Arrays.asList(DORIS_CATALOG_NAME, SCHEMA_NAME_DORIS, TABLE_NAME);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ }
+
+ @Test
+ @Order(6)
+ public void testDorisTableDetail() throws InterruptedException {
+ // 1. click doris table tree node
+ String tableNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME,
+ DORIS_CATALOG_NAME,
+ CATALOG_TYPE_RELATIONAL,
+ SCHEMA_NAME_DORIS,
+ TABLE_NAME);
+ catalogsPage.clickTreeNode(tableNode);
+ // 2. verify table is selected in tree
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(TABLE_NAME));
+ // 3. verify show table columns in the Columns tab (default tab in new UI)
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(TABLE_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(COLUMN_NAME, true));
+ // 4. verify table overview links in header section
+ // Doris table has distribution (hash distribution with 2 buckets on col1)
+ Assertions.assertTrue(catalogsPage.verifyTableOverviewLink("distribution", "1"));
+ // Verify partitions, sort orders, and indexes show 0 for this simple table
+ Assertions.assertTrue(catalogsPage.verifyTableOverviewLink("partitions", "0"));
+ Assertions.assertTrue(catalogsPage.verifyTableOverviewLink("sortorders", "0"));
+ Assertions.assertTrue(catalogsPage.verifyTableOverviewLink("indexes", "0"));
+ }
+
+ @Test
+ @Order(7)
+ public void testBackHomePage() throws InterruptedException {
+ clickAndWait(catalogsPage.backHomeBtn);
+ Assertions.assertTrue(catalogsPage.verifyBackHomePage());
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageKafkaTest.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageKafkaTest.java
new file mode 100644
index 0000000000..04c120967a
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageKafkaTest.java
@@ -0,0 +1,173 @@
+/*
+ * 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.
+ */
+
+package org.apache.gravitino.integration.test.web.ui;
+
+import java.util.Arrays;
+import java.util.List;
+import org.apache.gravitino.client.GravitinoAdminClient;
+import org.apache.gravitino.integration.test.container.ContainerSuite;
+import org.apache.gravitino.integration.test.web.ui.pages.CatalogsPage;
+import org.apache.gravitino.integration.test.web.ui.pages.MetalakePage;
+import org.apache.gravitino.integration.test.web.ui.utils.BaseWebIT;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.MethodOrderer;
+import org.junit.jupiter.api.Order;
+import org.junit.jupiter.api.Tag;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestMethodOrder;
+
+@Tag("gravitino-docker-test")
+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
+public class CatalogsPageKafkaTest extends BaseWebIT {
+ private MetalakePage metalakePage;
+ private CatalogsPage catalogsPage;
+
+ private static final ContainerSuite containerSuite = ContainerSuite.getInstance();
+ protected static GravitinoAdminClient gravitinoClient;
+
+ protected static String gravitinoUri = "http://127.0.0.1:8090";
+ protected static String kafkaUri = "http://127.0.0.1:9092";
+
+ private static final String CATALOG_TABLE_TITLE = "Schemas";
+ private static final String SCHEMA_TOPIC_TITLE = "Topics";
+ private static final String METALAKE_NAME = "test";
+ private static final String CATALOG_TYPE_MESSAGING = "messaging";
+
+ private static final String KAFKA_CATALOG_NAME = "catalog_kafka";
+ private static final String SCHEMA_NAME = "default";
+ private static final String TOPIC_NAME = "topic1";
+ public static final int DEFAULT_BROKER_PORT = 9092;
+
+ @BeforeAll
+ public void before() throws Exception {
+ gravitinoClient = getGravitinoClient();
+
+ gravitinoUri = String.format("http://127.0.0.1:%d", getGravitinoServerPort());
+
+ containerSuite.startKafkaContainer();
+
+ String address = containerSuite.getKafkaContainer().getContainerIpAddress();
+ kafkaUri = String.format("%s:%d", address, DEFAULT_BROKER_PORT);
+
+ metalakePage = new MetalakePage(driver);
+ catalogsPage = new CatalogsPage(driver);
+ }
+
+ @Test
+ @Order(0)
+ public void testCreateKafkaCatalog() throws InterruptedException {
+ // create metalake
+ clickAndWait(metalakePage.createMetalakeBtn);
+ metalakePage.setMetalakeNameField(METALAKE_NAME);
+ clickAndWait(metalakePage.submitHandleMetalakeBtn);
+ // load metalake
+ gravitinoClient.loadMetalake(METALAKE_NAME);
+ metalakePage.clickMetalakeLink(METALAKE_NAME);
+ // create kafka catalog - new UI flow: select type first, then provider, then click Next
+ catalogsPage.clickSelectType(CATALOG_TYPE_MESSAGING);
+ clickAndWait(catalogsPage.createCatalogBtn);
+ catalogsPage.clickSelectProvider("kafka");
+ clickAndWait(catalogsPage.handleNextCatalogBtn);
+ catalogsPage.setCatalogNameField(KAFKA_CATALOG_NAME);
+ catalogsPage.setCatalogCommentField("kafka catalog comment");
+ // set kafka catalog props
+ catalogsPage.setCatalogFixedProp("bootstrap.servers", kafkaUri);
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(KAFKA_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(1)
+ public void testKafkaSchemaTreeNode() throws InterruptedException {
+ // click kafka catalog tree node
+ String kafkaCatalogNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}", METALAKE_NAME, KAFKA_CATALOG_NAME, CATALOG_TYPE_MESSAGING);
+ catalogsPage.clickTreeNode(kafkaCatalogNode);
+ // verify show table title、 schema name and tree node
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(CATALOG_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(SCHEMA_NAME, false));
+ List<String> treeNodes = Arrays.asList(KAFKA_CATALOG_NAME, SCHEMA_NAME);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ }
+
+ @Test
+ @Order(2)
+ public void testKafkaTopicTreeNode() throws InterruptedException {
+ // 1. click schema tree node
+ String kafkaSchemaNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, KAFKA_CATALOG_NAME, CATALOG_TYPE_MESSAGING, SCHEMA_NAME);
+ catalogsPage.clickTreeNode(kafkaSchemaNode);
+ // 2. create topic of kafka catalog
+ clickAndWait(catalogsPage.createTopicBtn);
+ catalogsPage.setTopicNameField(TOPIC_NAME);
+ catalogsPage.setTopicCommentField("topic comment");
+ clickAndWait(catalogsPage.handleSubmitTopicBtn);
+ // 3. verify show table title、 default schema name and tree node
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(SCHEMA_TOPIC_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(TOPIC_NAME, false));
+ List<String> treeNodes = Arrays.asList(KAFKA_CATALOG_NAME, SCHEMA_NAME, TOPIC_NAME);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ }
+
+ @Test
+ @Order(3)
+ public void testKafkaTopicDetail() throws InterruptedException {
+ // 1. click topic tree node
+ String topicNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, KAFKA_CATALOG_NAME, CATALOG_TYPE_MESSAGING, SCHEMA_NAME, TOPIC_NAME);
+ catalogsPage.clickTreeNode(topicNode);
+ // 2. verify topic is selected in tree
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(TOPIC_NAME));
+ // 3. click properties link to open popover and verify properties
+ catalogsPage.clickPropertiesLink();
+ Assertions.assertTrue(catalogsPage.verifyPropertyInPopover("partition-count", "1"));
+ Assertions.assertTrue(catalogsPage.verifyPropertyInPopover("replication-factor", "1"));
+ }
+
+ @Test
+ @Order(4)
+ public void testDropKafkaTopic() throws InterruptedException {
+ // click schema tree node
+ String kafkaSchemaNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, KAFKA_CATALOG_NAME, CATALOG_TYPE_MESSAGING, SCHEMA_NAME);
+ catalogsPage.clickTreeNode(kafkaSchemaNode);
+ // delete topic of kafka catalog - new UI requires inputting topic name to confirm
+ catalogsPage.clickDeleteBtn(TOPIC_NAME);
+ catalogsPage.setConfirmDeleteInput(TOPIC_NAME);
+ clickAndWait(catalogsPage.confirmDeleteBtn);
+ // verify empty topic list
+ Assertions.assertTrue(catalogsPage.verifyEmptyTableData());
+ }
+
+ @Test
+ @Order(5)
+ public void testBackHomePage() throws InterruptedException {
+ clickAndWait(catalogsPage.backHomeBtn);
+ Assertions.assertTrue(catalogsPage.verifyBackHomePage());
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageTest.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageTest.java
new file mode 100644
index 0000000000..f45ff59569
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/CatalogsPageTest.java
@@ -0,0 +1,676 @@
+/*
+ * 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.
+ */
+
+package org.apache.gravitino.integration.test.web.ui;
+
+import static org.apache.gravitino.rel.expressions.transforms.Transforms.identity;
+
+import com.google.common.collect.Maps;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import org.apache.gravitino.Catalog;
+import org.apache.gravitino.NameIdentifier;
+import org.apache.gravitino.client.GravitinoAdminClient;
+import org.apache.gravitino.client.GravitinoMetalake;
+import org.apache.gravitino.integration.test.container.ContainerSuite;
+import org.apache.gravitino.integration.test.container.TrinoITContainers;
+import org.apache.gravitino.integration.test.web.ui.pages.CatalogsPage;
+import org.apache.gravitino.integration.test.web.ui.pages.MetalakePage;
+import org.apache.gravitino.integration.test.web.ui.utils.BaseWebIT;
+import org.apache.gravitino.rel.Column;
+import org.apache.gravitino.rel.expressions.NamedReference;
+import org.apache.gravitino.rel.expressions.distributions.Distribution;
+import org.apache.gravitino.rel.expressions.distributions.Distributions;
+import org.apache.gravitino.rel.expressions.sorts.NullOrdering;
+import org.apache.gravitino.rel.expressions.sorts.SortDirection;
+import org.apache.gravitino.rel.expressions.sorts.SortOrder;
+import org.apache.gravitino.rel.expressions.sorts.SortOrders;
+import org.apache.gravitino.rel.expressions.transforms.Transform;
+import org.apache.gravitino.rel.types.Types;
+import org.awaitility.Awaitility;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.MethodOrderer;
+import org.junit.jupiter.api.Order;
+import org.junit.jupiter.api.Tag;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestMethodOrder;
+import org.openqa.selenium.By;
+
+@Tag("gravitino-docker-test")
+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
+public class CatalogsPageTest extends BaseWebIT {
+ private MetalakePage metalakePage;
+ private CatalogsPage catalogsPage;
+
+ protected static TrinoITContainers trinoITContainers;
+ protected static GravitinoAdminClient gravitinoClient;
+ protected static String gravitinoUri = "http://127.0.0.1:8090";
+ protected static String hiveMetastoreUri = "thrift://127.0.0.1:9083";
+ protected static String hdfsUri = "hdfs://127.0.0.1:9000";
+ protected static String mysqlUri = "jdbc:mysql://127.0.0.1";
+ protected static String postgresqlUri = "jdbc:postgresql://127.0.0.1";
+
+ private static final long MAX_WAIT_IN_SECONDS = 5;
+ private static final long WAIT_INTERVAL_IN_SECONDS = 1;
+
+ private static final String WEB_TITLE = "Gravitino";
+ private static final String CATALOG_TABLE_TITLE = "Schemas";
+ private static final String SCHEMA_TABLE_TITLE = "Tables";
+ private static final String SCHEMA_FILESET_TITLE = "Filesets";
+ private static final String TABLE_TABLE_TITLE = "Columns";
+ private static final String METALAKE_NAME = "test";
+ private static final String METALAKE_SELECT_NAME = "metalake_select_name";
+ private static final String CATALOG_TYPE_RELATIONAL = "relational";
+ private static final String CATALOG_TYPE_FILESET = "fileset";
+ private static final String DEFAULT_CATALOG_NAME = "default_catalog";
+ private static final String HIVE_CATALOG_NAME = "catalog_hive";
+ private static final String MODIFIED_HIVE_CATALOG_NAME = HIVE_CATALOG_NAME + "_edited";
+ private static final String ICEBERG_CATALOG_NAME = "catalog_iceberg";
+ private static final String FILESET_CATALOG_NAME = "catalog_fileset";
+ private static final String SCHEMA_NAME = "default";
+ private static final String SCHEMA_NAME_FILESET = "schema_fileset";
+ private static final String FILESET_DEFAULT_LOCATION = "fileset_location";
+ private static final String FILESET_NAME = "fileset1";
+ private static final String TABLE_NAME = "table1";
+ private static final String TABLE_NAME_2 = "table2";
+ private static final String TABLE_NAME_3 = "table3";
+ private static final String COLUMN_NAME = "column";
+ private static final String COLUMN_NAME_2 = "column_2";
+ private static final String PROPERTIES_KEY1 = "key1";
+ private static final String PROPERTIES_VALUE1 = "val1";
+
+ private static final String MYSQL_CATALOG_NAME = "catalog_mysql";
+ private static final String MYSQL_JDBC_DRIVER = "com.mysql.cj.jdbc.Driver";
+
+ private static final String PG_CATALOG_NAME = "catalog_pg";
+ private static final String PG_JDBC_DRIVER = "org.postgresql.Driver";
+ private static final String PG_JDBC_DB = "gt_db";
+
+ private static final String COMMON_JDBC_USER = "trino";
+ private static final String COMMON_JDBC_PWD = "ds123";
+
+ public static final String DISTRIBUTION = "distribution";
+ public static final String SORT_ORDERS = "sortOrders";
+
+ private static String defaultBaseLocation;
+
+ @BeforeAll
+ public void before() throws Exception {
+ gravitinoClient = getGravitinoClient();
+
+ gravitinoUri = String.format("http://127.0.0.1:%d", getGravitinoServerPort());
+
+ trinoITContainers = ContainerSuite.getTrinoITContainers();
+ trinoITContainers.launch(getGravitinoServerPort());
+
+ hiveMetastoreUri = trinoITContainers.getHiveMetastoreUri();
+ hdfsUri = trinoITContainers.getHdfsUri();
+ mysqlUri = trinoITContainers.getMysqlUri();
+ postgresqlUri = trinoITContainers.getPostgresqlUri();
+
+ metalakePage = new MetalakePage(driver);
+ catalogsPage = new CatalogsPage(driver);
+ }
+
+ /**
+ * Creates a table with a single column in the specified Metalake, Catalog, Schema, and Table.
+ *
+ * @param metalakeName The name of the Metalake where the table will be created.
+ * @param catalogName The name of the Catalog where the table will be created.
+ * @param schemaName The name of the Schema where the table will be created.
+ * @param tableName The name of the Table to be created.
+ */
+ void createHiveTableAndColumn(
+ String metalakeName, String catalogName, String schemaName, String tableName) {
+ Map<String, String> properties = Maps.newHashMap();
+ Column col1 = Column.of(COLUMN_NAME, Types.ByteType.get(), "col1 comment");
+ Column col2 = Column.of(COLUMN_NAME_2, Types.ByteType.get(), "col2 comment");
+ Column[] columns = new Column[] {col1, col2};
+ Distribution distribution = createDistribution();
+ SortOrder[] sortOrders = createSortOrder();
+ Transform[] partitions = new Transform[] {identity(col2.name())};
+ GravitinoMetalake metalake = gravitinoClient.loadMetalake(metalakeName);
+ Catalog catalog = metalake.loadCatalog(catalogName);
+ catalog
+ .asTableCatalog()
+ .createTable(
+ NameIdentifier.of(schemaName, tableName),
+ columns,
+ "comment",
+ properties,
+ partitions,
+ distribution,
+ sortOrders);
+ }
+
+ private Distribution createDistribution() {
+ return Distributions.hash(10, NamedReference.field(COLUMN_NAME));
+ }
+
+ private SortOrder[] createSortOrder() {
+ return new SortOrders.SortImpl[] {
+ SortOrders.of(
+ NamedReference.field(COLUMN_NAME), SortDirection.DESCENDING, NullOrdering.NULLS_FIRST),
+ SortOrders.of(
+ NamedReference.field(COLUMN_NAME_2), SortDirection.DESCENDING, NullOrdering.NULLS_FIRST)
+ };
+ }
+
+ /**
+ * Retrieves the default base location for the given schema name.
+ *
+ * @param schemaName The name of the schema.
+ * @return The default HDFS storage location for the schema.
+ */
+ private static String defaultBaseLocation(String schemaName) {
+ if (defaultBaseLocation == null) {
+ defaultBaseLocation =
+ String.format("%s/user/hadoop/%s.db", hdfsUri, schemaName.toLowerCase());
+ }
+ return defaultBaseLocation;
+ }
+
+ /**
+ * Retrieves the storage location for the given schema name and fileset name.
+ *
+ * @param schemaName The name of the schema.
+ * @param filesetName The name of the fileset.
+ * @return The storage path for the combination of schema and fileset.
+ */
+ private static String storageLocation(String schemaName, String filesetName) {
+ return defaultBaseLocation(schemaName) + "/" + filesetName;
+ }
+
+ @AfterAll
+ public static void after() {
+ try {
+ if (trinoITContainers != null) trinoITContainers.shutdown();
+ } catch (Exception e) {
+ LOG.error("shutdown trino containers error", e);
+ }
+ }
+
+ @Test
+ @Order(0)
+ public void testDeleteCatalog() throws InterruptedException {
+ // create metalake
+ clickAndWait(metalakePage.createMetalakeBtn);
+ metalakePage.setMetalakeNameField(METALAKE_NAME);
+ clickAndWait(metalakePage.submitHandleMetalakeBtn);
+ // Create another metalake for select option
+ clickAndWait(metalakePage.createMetalakeBtn);
+ metalakePage.setMetalakeNameField(METALAKE_SELECT_NAME);
+ clickAndWait(metalakePage.submitHandleMetalakeBtn);
+ // load metalake
+ gravitinoClient.loadMetalake(METALAKE_NAME);
+ metalakePage.clickMetalakeLink(METALAKE_NAME);
+ // create catalog - new UI flow: select provider first, then click Next
+ clickAndWait(catalogsPage.createCatalogBtn);
+ catalogsPage.clickSelectProvider("hive");
+ clickAndWait(catalogsPage.handleNextCatalogBtn);
+ catalogsPage.setCatalogNameField(DEFAULT_CATALOG_NAME);
+ catalogsPage.setCatalogFixedProp("metastore.uris", hiveMetastoreUri);
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ // Wait for catalog to appear in the table
+ Thread.sleep(2000);
+ // delete catalog - new UI requires inputting catalog name to confirm
+ catalogsPage.clickInUseSwitch(DEFAULT_CATALOG_NAME);
+ catalogsPage.clickDeleteBtn(DEFAULT_CATALOG_NAME);
+ catalogsPage.setConfirmDeleteInput(DEFAULT_CATALOG_NAME);
+ clickAndWait(catalogsPage.confirmDeleteBtn);
+ Assertions.assertTrue(catalogsPage.verifyEmptyTableData());
+ }
+
+ @Test
+ @Order(1)
+ public void testCreateHiveCatalog() throws InterruptedException {
+ // Create catalog - new UI flow: select provider first, then click Next
+ clickAndWait(catalogsPage.createCatalogBtn);
+ catalogsPage.clickSelectProvider("hive");
+ clickAndWait(catalogsPage.handleNextCatalogBtn);
+ catalogsPage.setCatalogNameField(HIVE_CATALOG_NAME);
+ catalogsPage.setCatalogCommentField("catalog comment");
+ catalogsPage.setCatalogFixedProp("metastore.uris", hiveMetastoreUri);
+ catalogsPage.addCatalogPropsBtn.click();
+ catalogsPage.setPropsAt(0, "key1", "value1");
+ catalogsPage.addCatalogPropsBtn.click();
+ catalogsPage.setPropsAt(1, "key2", "value2");
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ // load catalog
+ GravitinoMetalake metalake = gravitinoClient.loadMetalake(METALAKE_NAME);
+ metalake.loadCatalog(HIVE_CATALOG_NAME);
+
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(HIVE_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(2)
+ public void testCreateIcebergCatalog() throws InterruptedException {
+ clickAndWait(catalogsPage.createCatalogBtn);
+ // select provider as iceberg - new UI uses provider cards
+ catalogsPage.clickSelectProvider("lakehouse-iceberg");
+ clickAndWait(catalogsPage.handleNextCatalogBtn);
+ catalogsPage.setCatalogNameField(ICEBERG_CATALOG_NAME);
+ catalogsPage.setCatalogCommentField("iceberg catalog comment");
+ // set iceberg uri
+ catalogsPage.setCatalogFixedProp("uri", hiveMetastoreUri);
+ // set iceberg warehouse
+ catalogsPage.setCatalogFixedProp("warehouse", hdfsUri);
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(ICEBERG_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(3)
+ public void testCreateMysqlCatalog() throws InterruptedException {
+ // create mysql catalog actions
+ clickAndWait(catalogsPage.createCatalogBtn);
+ // select provider as mysql - new UI uses provider cards
+ catalogsPage.clickSelectProvider("jdbc-mysql");
+ clickAndWait(catalogsPage.handleNextCatalogBtn);
+ catalogsPage.setCatalogNameField(MYSQL_CATALOG_NAME);
+ catalogsPage.setCatalogCommentField("mysql catalog comment");
+ // set mysql catalog props
+ catalogsPage.setCatalogFixedProp("jdbc-driver", MYSQL_JDBC_DRIVER);
+ catalogsPage.setCatalogFixedProp("jdbc-url", mysqlUri);
+ catalogsPage.setCatalogFixedProp("jdbc-user", COMMON_JDBC_USER);
+ catalogsPage.setCatalogFixedProp("jdbc-password", COMMON_JDBC_PWD);
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(MYSQL_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(4)
+ public void testCreatePgCatalog() throws InterruptedException {
+ // create postgresql catalog actions
+ clickAndWait(catalogsPage.createCatalogBtn);
+ // select provider as postgresql - new UI uses provider cards
+ catalogsPage.clickSelectProvider("jdbc-postgresql");
+ clickAndWait(catalogsPage.handleNextCatalogBtn);
+ catalogsPage.setCatalogNameField(PG_CATALOG_NAME);
+ catalogsPage.setCatalogCommentField("postgresql catalog comment");
+ // set postgresql catalog props
+ catalogsPage.setCatalogFixedProp("jdbc-driver", PG_JDBC_DRIVER);
+ catalogsPage.setCatalogFixedProp("jdbc-url", postgresqlUri + ":5432/" + PG_JDBC_DB);
+ catalogsPage.setCatalogFixedProp("jdbc-user", COMMON_JDBC_USER);
+ catalogsPage.setCatalogFixedProp("jdbc-password", COMMON_JDBC_PWD);
+ catalogsPage.setCatalogFixedProp("jdbc-database", PG_JDBC_DB);
+
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(PG_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(5)
+ public void testCreateFilesetCatalog() throws InterruptedException {
+ // Switch to fileset tab first (new UI flow)
+ catalogsPage.clickSelectType("fileset");
+ Thread.sleep(1000); // Wait for tab switch
+ clickAndWait(catalogsPage.createCatalogBtn);
+ catalogsPage.setCatalogNameField(FILESET_CATALOG_NAME);
+ catalogsPage.setCatalogCommentField("fileset catalog comment");
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(FILESET_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(6)
+ public void testRefreshPage() throws InterruptedException {
+ // After creating fileset catalog, we're on fileset tab
+ // Switch back to relational tab to verify relational catalogs
+ catalogsPage.clickSelectType("relational");
+ Thread.sleep(1000); // Wait for tab switch
+ reloadPageAndWait();
+ Assertions.assertEquals(WEB_TITLE, driver.getTitle());
+ Assertions.assertTrue(catalogsPage.verifyRefreshPage());
+ List<String> relationalCatalogsNames =
+ Arrays.asList(HIVE_CATALOG_NAME, ICEBERG_CATALOG_NAME, MYSQL_CATALOG_NAME, PG_CATALOG_NAME);
+ Assertions.assertTrue(catalogsPage.verifyCreatedCatalogs(relationalCatalogsNames));
+ }
+
+ @Test
+ @Order(7)
+ public void testEditHiveCatalog() throws InterruptedException {
+ catalogsPage.clickEditCatalogBtn(HIVE_CATALOG_NAME);
+ catalogsPage.setCatalogNameField(MODIFIED_HIVE_CATALOG_NAME);
+ clickAndWait(catalogsPage.handleSubmitCatalogBtn);
+ Assertions.assertTrue(catalogsPage.verifyEditedCatalog(MODIFIED_HIVE_CATALOG_NAME));
+ }
+
+ // test catalog show schema list
+ @Test
+ @Order(8)
+ public void testClickCatalogLink() {
+ catalogsPage.clickCatalogLink(
+ METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, CATALOG_TYPE_RELATIONAL);
+ // Verify catalog details page displays correct information
+ // - Table title shows "Schemas"
+ // - Catalog name displayed in h3 title
+ // - Type shows "relational"
+ // - Provider shows "hive"
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(CATALOG_TABLE_TITLE));
+ Assertions.assertTrue(
+ catalogsPage.verifyCatalogDetailsPage(
+ MODIFIED_HIVE_CATALOG_NAME, "hive", CATALOG_TYPE_RELATIONAL));
+ Awaitility.await()
+ .atMost(MAX_WAIT_IN_SECONDS, TimeUnit.SECONDS)
+ .pollInterval(WAIT_INTERVAL_IN_SECONDS, TimeUnit.SECONDS)
+ .untilAsserted(() -> catalogsPage.verifyShowDataItemInList(SCHEMA_NAME, false));
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(MODIFIED_HIVE_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(9)
+ public void testRefreshCatalogPage() {
+ reloadPageAndWait();
+ Assertions.assertEquals(WEB_TITLE, driver.getTitle());
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(CATALOG_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(SCHEMA_NAME, false));
+ // Tree view only shows catalogs of current type (relational)
+ List<String> treeNodes =
+ Arrays.asList(
+ MODIFIED_HIVE_CATALOG_NAME,
+ SCHEMA_NAME,
+ ICEBERG_CATALOG_NAME,
+ MYSQL_CATALOG_NAME,
+ PG_CATALOG_NAME);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(MODIFIED_HIVE_CATALOG_NAME));
+ }
+
+ // test schema show table list
+ @Test
+ @Order(10)
+ public void testClickSchemaLink() {
+ // create table
+ createHiveTableAndColumn(METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, SCHEMA_NAME, TABLE_NAME);
+ catalogsPage.clickSchemaLink(
+ METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, CATALOG_TYPE_RELATIONAL, SCHEMA_NAME);
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(SCHEMA_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(TABLE_NAME, false));
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(SCHEMA_NAME));
+ }
+
+ @Test
+ @Order(11)
+ public void testRefreshSchemaPage() {
+ reloadPageAndWait();
+ Assertions.assertEquals(WEB_TITLE, driver.getTitle());
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(SCHEMA_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(TABLE_NAME, false));
+ // Tree view only shows catalogs of current type (relational)
+ List<String> treeNodes =
+ Arrays.asList(
+ MODIFIED_HIVE_CATALOG_NAME,
+ SCHEMA_NAME,
+ TABLE_NAME,
+ ICEBERG_CATALOG_NAME,
+ MYSQL_CATALOG_NAME,
+ PG_CATALOG_NAME);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(SCHEMA_NAME));
+ }
+
+ // test table show column list
+ @Test
+ @Order(12)
+ public void testClickTableLink() {
+ catalogsPage.clickTableLink(
+ METALAKE_NAME,
+ MODIFIED_HIVE_CATALOG_NAME,
+ CATALOG_TYPE_RELATIONAL,
+ SCHEMA_NAME,
+ TABLE_NAME);
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(TABLE_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyTableColumns());
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(COLUMN_NAME, true));
+ Assertions.assertTrue(catalogsPage.verifySelectedNode(TABLE_NAME));
+ }
+
+ @Test
+ @Order(13)
+ public void testShowTablePropertiesTooltip() throws InterruptedException {
+ // Move to distribution icon and verify
+ mouseMoveTo(By.xpath("//*[@data-refer='col-icon-" + DISTRIBUTION + "-" + COLUMN_NAME + "']"));
+ Assertions.assertTrue(catalogsPage.verifyTableProperties(DISTRIBUTION, COLUMN_NAME));
+
+ // Move away first to close the popover, then move to sort orders icon
+ mouseMoveTo(By.xpath("//*[@data-refer='table-grid']"));
+ mouseMoveTo(By.xpath("//*[@data-refer='col-icon-" + SORT_ORDERS + "-" + COLUMN_NAME_2 + "']"));
+ Assertions.assertTrue(catalogsPage.verifyTableProperties(SORT_ORDERS, COLUMN_NAME_2));
+
+ // Move away first to close the popover, then hover the overview area and verify
+ mouseMoveTo(By.xpath("//*[@data-refer='table-grid']"));
+ catalogsPage.hoverOverviewTip(SORT_ORDERS);
+ Assertions.assertTrue(
+ catalogsPage.verifyTablePropertiesOverview(Arrays.asList(COLUMN_NAME, COLUMN_NAME_2)));
+ }
+
+ @Test
+ @Order(14)
+ public void testRefreshTablePage() {
+ reloadPageAndWait();
+ Assertions.assertEquals(WEB_TITLE, driver.getTitle());
+ Assertions.assertTrue(catalogsPage.verifyRefreshPage());
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(TABLE_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyTableColumns());
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(COLUMN_NAME, true));
+ // Tree view only shows catalogs of current type (relational)
+ List<String> treeNodes =
+ Arrays.asList(
+ MODIFIED_HIVE_CATALOG_NAME,
+ SCHEMA_NAME,
+ TABLE_NAME,
+ ICEBERG_CATALOG_NAME,
+ MYSQL_CATALOG_NAME,
+ PG_CATALOG_NAME);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ }
+
+ @Test
+ @Order(15)
+ public void testRelationalHiveCatalogTreeNode() throws InterruptedException {
+ String hiveNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, CATALOG_TYPE_RELATIONAL);
+ catalogsPage.clickTreeNode(hiveNode);
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(CATALOG_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(MODIFIED_HIVE_CATALOG_NAME));
+ String schemaNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, CATALOG_TYPE_RELATIONAL, SCHEMA_NAME);
+ catalogsPage.clickTreeNode(schemaNode);
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(SCHEMA_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(TABLE_NAME, false));
+ String tableNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME,
+ MODIFIED_HIVE_CATALOG_NAME,
+ CATALOG_TYPE_RELATIONAL,
+ SCHEMA_NAME,
+ TABLE_NAME);
+ catalogsPage.clickTreeNode(tableNode);
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(TABLE_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(COLUMN_NAME, true));
+ Assertions.assertTrue(catalogsPage.verifyTableColumns());
+ }
+
+ @Test
+ @Order(16)
+ public void testTreeNodeRefresh() throws InterruptedException {
+ createHiveTableAndColumn(METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, SCHEMA_NAME, TABLE_NAME_2);
+ String hiveNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, CATALOG_TYPE_RELATIONAL);
+ catalogsPage.clickTreeNode(hiveNode);
+ String schemaNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, CATALOG_TYPE_RELATIONAL, SCHEMA_NAME);
+ catalogsPage.clickTreeNodeRefresh(schemaNode);
+ String tableNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME,
+ MODIFIED_HIVE_CATALOG_NAME,
+ CATALOG_TYPE_RELATIONAL,
+ SCHEMA_NAME,
+ TABLE_NAME_2);
+ catalogsPage.clickTreeNode(tableNode);
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(TABLE_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(COLUMN_NAME_2, true));
+ Assertions.assertTrue(catalogsPage.verifyTableColumns());
+ }
+
+ @Test
+ @Order(17)
+ public void testCreateTableByUI() throws InterruptedException {
+ String schemaNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, MODIFIED_HIVE_CATALOG_NAME, CATALOG_TYPE_RELATIONAL, SCHEMA_NAME);
+ catalogsPage.clickTreeNode(schemaNode);
+ // 1. create table in hive catalog without partition/sort order/distribution
+ clickAndWait(catalogsPage.createTableBtn);
+ catalogsPage.setTableNameField(TABLE_NAME_3);
+ catalogsPage.setTableCommentField("table comment for ui");
+ catalogsPage.setTableColumnsAt(0, COLUMN_NAME, "byte");
+ clickAndWait(catalogsPage.handleSubmitTableBtn);
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(TABLE_NAME_3, false));
+ }
+
+ @Test
+ @Order(18)
+ public void testDropTableByUI() throws InterruptedException {
+ // delete table of hive catalog
+ catalogsPage.clickDeleteBtn(TABLE_NAME_3);
+ catalogsPage.setConfirmDeleteInput(TABLE_NAME_3);
+ clickAndWait(catalogsPage.confirmDeleteBtn);
+ // verify table list without table name 3
+ Assertions.assertTrue(catalogsPage.verifyNoDataItemInList(TABLE_NAME_3, false));
+ }
+
+ @Test
+ @Order(19)
+ public void testOtherRelationalCatalogTreeNode() throws InterruptedException {
+ String icebergNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}", METALAKE_NAME, ICEBERG_CATALOG_NAME, CATALOG_TYPE_RELATIONAL);
+ catalogsPage.clickTreeNode(icebergNode);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(ICEBERG_CATALOG_NAME));
+ String mysqlNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}", METALAKE_NAME, MYSQL_CATALOG_NAME, CATALOG_TYPE_RELATIONAL);
+ catalogsPage.clickTreeNode(mysqlNode);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(MYSQL_CATALOG_NAME));
+ String pgNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}", METALAKE_NAME, PG_CATALOG_NAME, CATALOG_TYPE_RELATIONAL);
+ catalogsPage.clickTreeNode(pgNode);
+ Assertions.assertTrue(catalogsPage.verifyGetCatalog(PG_CATALOG_NAME));
+ }
+
+ @Test
+ @Order(20)
+ public void testSelectMetalake() throws InterruptedException {
+ catalogsPage.metalakeSelectChange(METALAKE_SELECT_NAME);
+ Assertions.assertTrue(catalogsPage.verifyEmptyTableData());
+
+ catalogsPage.metalakeSelectChange(METALAKE_NAME);
+ reloadPageAndWait();
+ }
+
+ @Test
+ @Order(21)
+ public void testCreateFilesetSchema() throws InterruptedException {
+ // Switch to fileset tab first
+ catalogsPage.clickSelectType("fileset");
+ Thread.sleep(1000); // Wait for tab switch
+ // 1. click fileset catalog tree node
+ String filesetCatalogNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}", METALAKE_NAME, FILESET_CATALOG_NAME, CATALOG_TYPE_FILESET);
+ catalogsPage.clickTreeNode(filesetCatalogNode);
+ // 2. click create schema button
+ clickAndWait(catalogsPage.createSchemaBtn);
+ catalogsPage.setSchemaNameField(SCHEMA_NAME_FILESET);
+ catalogsPage.setCatalogCommentField("fileset schema comment");
+ clickAndWait(catalogsPage.handleSubmitSchemaBtn);
+ // 3. verify show table title、 schema name and tree node
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(CATALOG_TABLE_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(SCHEMA_NAME_FILESET, false));
+ // Tree view only shows catalogs of current type (fileset)
+ List<String> treeNodes = Arrays.asList(FILESET_CATALOG_NAME, SCHEMA_NAME_FILESET);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ }
+
+ @Test
+ @Order(22)
+ public void testCreateFileset() throws InterruptedException {
+ // 1. click schema tree node
+ String filesetSchemaNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME, FILESET_CATALOG_NAME, CATALOG_TYPE_FILESET, SCHEMA_NAME_FILESET);
+ catalogsPage.clickTreeNode(filesetSchemaNode);
+ // 2. create fileset
+ clickAndWait(catalogsPage.createFilesetBtn);
+ catalogsPage.setFilesetNameField(FILESET_NAME);
+ String storageLocation = storageLocation(SCHEMA_NAME_FILESET, FILESET_NAME);
+ catalogsPage.setFilesetStorageLocationField(0, FILESET_DEFAULT_LOCATION, storageLocation);
+ catalogsPage.setFilesetCommentField("fileset comment");
+ catalogsPage.addFilesetPropsBtn.click();
+ catalogsPage.setPropsAt(0, PROPERTIES_KEY1, PROPERTIES_VALUE1);
+ clickAndWait(catalogsPage.handleSubmitFilesetBtn);
+ // 3. verify show table title、 fileset name and tree node
+ Assertions.assertTrue(catalogsPage.verifyShowTableTitle(SCHEMA_FILESET_TITLE));
+ Assertions.assertTrue(catalogsPage.verifyShowDataItemInList(FILESET_NAME, false));
+ // Tree view only shows catalogs of current type (fileset)
+ List<String> treeNodes = Arrays.asList(FILESET_CATALOG_NAME, SCHEMA_NAME_FILESET, FILESET_NAME);
+ Assertions.assertTrue(catalogsPage.verifyTreeNodes(treeNodes));
+ // 4. click fileset tree node
+ String filesetNode =
+ String.format(
+ "{{%s}}{{%s}}{{%s}}{{%s}}{{%s}}",
+ METALAKE_NAME,
+ FILESET_CATALOG_NAME,
+ CATALOG_TYPE_FILESET,
+ SCHEMA_NAME_FILESET,
+ FILESET_NAME);
+ catalogsPage.clickTreeNode(filesetNode);
+ // 5. verify Files tab panel is shown by default
+ // Note: Fileset details page shows properties in a Popover, not a Details tab
+ Assertions.assertTrue(catalogsPage.verifyShowFilesContent());
+ }
+
+ @Test
+ @Order(23)
+ public void testBackHomePage() throws InterruptedException {
+ clickAndWait(catalogsPage.backHomeBtn);
+ Assertions.assertTrue(catalogsPage.verifyBackHomePage());
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/MetalakePageTest.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/MetalakePageTest.java
new file mode 100644
index 0000000000..d71e7f5ba8
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/MetalakePageTest.java
@@ -0,0 +1,183 @@
+/*
+ * 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.
+ */
+package org.apache.gravitino.integration.test.web.ui;
+
+import org.apache.gravitino.integration.test.web.ui.pages.MetalakePage;
+import org.apache.gravitino.integration.test.web.ui.utils.BaseWebIT;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.MethodOrderer;
+import org.junit.jupiter.api.Order;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestMethodOrder;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
+
+@DisabledIfSystemProperty(named = "testMode", matches = "embedded")
+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
+public class MetalakePageTest extends BaseWebIT {
+ private static final String WEB_TITLE = "Gravitino";
+ private static final String METALAKE_NAME = "metalake_name";
+ private static final String EDITED_METALAKE_NAME = METALAKE_NAME + "_edited";
+ private static final String FOOTER_LINK_GRAVITINO = "https://gravitino.apache.org/";
+ private static final String FOOTER_LINK_DOCS = "https://gravitino.apache.org/docs/latest/";
+ private static final String FOOTER_LINK_LICENSE =
+ "https://github.com/apache/gravitino/blob/main/LICENSE";
+ private static final String FOOTER_LINK_SUPPORT = "https://github.com/apache/gravitino/issues";
+ private MetalakePage metalakePage;
+
+ @BeforeAll
+ void init() {
+ metalakePage = new MetalakePage(driver);
+ }
+
+ // Create a metalake by name, set the default comment and properties.
+ public void createMetalakeAction(String name) throws InterruptedException {
+ clickAndWait(metalakePage.createMetalakeBtn);
+ metalakePage.setMetalakeNameField(name);
+ metalakePage.setMetalakeCommentField("metalake comment");
+ metalakePage.addMetalakePropsBtn.click();
+ metalakePage.setMetalakeProps(0, "key1", "value1");
+ metalakePage.addMetalakePropsBtn.click();
+ metalakePage.setMetalakeProps(1, "key2", "value2");
+ clickAndWait(metalakePage.submitHandleMetalakeBtn);
+ }
+
+ @Test
+ @Order(0)
+ public void homePage() {
+ String title = driver.getTitle();
+ Assertions.assertEquals(WEB_TITLE, title);
+ }
+
+ @Test
+ @Order(1)
+ public void testCreateMetalake() throws InterruptedException {
+ createMetalakeAction(METALAKE_NAME);
+ Assertions.assertTrue(metalakePage.verifyCreateMetalake(METALAKE_NAME));
+ }
+
+ @Test
+ @Order(2)
+ public void testEditMetalake() {
+ metalakePage.clickEditMetalakeBtn(METALAKE_NAME);
+ metalakePage.setMetalakeNameField(EDITED_METALAKE_NAME);
+ metalakePage.submitHandleMetalakeBtn.click();
+ Assertions.assertTrue(metalakePage.verifyEditedMetalake(EDITED_METALAKE_NAME));
+ }
+
+ @Test
+ @Order(3)
+ public void testDeleteMetalake() throws InterruptedException {
+ metalakePage.clickInUseSwitch(EDITED_METALAKE_NAME);
+ Thread.sleep(1000);
+ metalakePage.clickDeleteMetalakeBtn(EDITED_METALAKE_NAME);
+ metalakePage.confirmDeleteMetalake(EDITED_METALAKE_NAME);
+ Assertions.assertTrue(metalakePage.verifyEmptyMetalake());
+ }
+
+ @Test
+ @Order(4)
+ public void testCreateMultipleMetalakes() throws InterruptedException {
+ int twoPagesCount = 11;
+
+ for (int i = 0; i < twoPagesCount; i++) {
+ try {
+ Thread.sleep(ACTION_SLEEP * 1000);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ String name = "metalake_" + (i + 1);
+ createMetalakeAction(name);
+ }
+
+ Assertions.assertTrue(metalakePage.verifyChangePagination());
+ }
+
+ @Test
+ @Order(5)
+ public void testQueryMetalake() throws InterruptedException {
+ String name = "query";
+ createMetalakeAction(name);
+ Assertions.assertTrue(metalakePage.verifyQueryMetalake(name));
+ }
+
+ @Test
+ @Order(6)
+ public void testCreateInvalidMetalake() throws InterruptedException {
+ String name = "1!@#$";
+ metalakePage.createMetalakeBtn.click();
+ metalakePage.setMetalakeNameField(name);
+ metalakePage.submitHandleMetalakeBtn.click();
+ Assertions.assertTrue(metalakePage.checkIsErrorName());
+ }
+
+ @Test
+ @Order(7)
+ public void testLinkToCatalogsPage() throws InterruptedException {
+ String name = "a_test_link";
+ createMetalakeAction(name);
+ metalakePage.clickMetalakeLink(name);
+ Assertions.assertTrue(metalakePage.verifyLinkToCatalogsPage(name));
+ }
+
+ @Test
+ @Order(8)
+ public void testRefreshPage() {
+ reloadPageAndWait();
+
+ Assertions.assertEquals(WEB_TITLE, driver.getTitle());
+ Assertions.assertTrue(metalakePage.verifyRefreshPage());
+ }
+
+ @Test
+ @Order(9)
+ public void testCheckLinkGravitino() {
+ String originalWindowHandle = driver.getWindowHandle();
+ metalakePage.footerLinkGravitino.click();
+ Assertions.assertTrue(
+ metalakePage.verifyLinkInNewWindow(originalWindowHandle, FOOTER_LINK_GRAVITINO, false));
+ }
+
+ @Test
+ @Order(10)
+ public void testCheckLinkLicense() {
+ String originalWindowHandle = driver.getWindowHandle();
+ metalakePage.footerLinkLicense.click();
+ Assertions.assertTrue(
+ metalakePage.verifyLinkInNewWindow(originalWindowHandle, FOOTER_LINK_LICENSE, false));
+ }
+
+ @Test
+ @Order(11)
+ public void testCheckLinkDocs() {
+ String originalWindowHandle = driver.getWindowHandle();
+ metalakePage.footerLinkDocs.click();
+ Assertions.assertTrue(
+ metalakePage.verifyLinkInNewWindow(originalWindowHandle, FOOTER_LINK_DOCS, true));
+ }
+
+ @Test
+ @Order(12)
+ public void testCheckLinkSupport() {
+ String originalWindowHandle = driver.getWindowHandle();
+ metalakePage.footerLinkSupport.click();
+ Assertions.assertTrue(
+ metalakePage.verifyLinkInNewWindow(originalWindowHandle, FOOTER_LINK_SUPPORT, false));
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/CatalogsPage.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/CatalogsPage.java
new file mode 100644
index 0000000000..e1ac9c5c3a
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/CatalogsPage.java
@@ -0,0 +1,1623 @@
+/*
+ * 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.
+ */
+
+package org.apache.gravitino.integration.test.web.ui.pages;
+
+import static org.apache.gravitino.integration.test.web.ui.CatalogsPageTest.DISTRIBUTION;
+import static org.apache.gravitino.integration.test.web.ui.CatalogsPageTest.SORT_ORDERS;
+
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Objects;
+import org.apache.gravitino.integration.test.web.ui.utils.BaseWebIT;
+import org.openqa.selenium.By;
+import org.openqa.selenium.JavascriptExecutor;
+import org.openqa.selenium.Keys;
+import org.openqa.selenium.StaleElementReferenceException;
+import org.openqa.selenium.TimeoutException;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.openqa.selenium.interactions.Actions;
+import org.openqa.selenium.support.FindBy;
+import org.openqa.selenium.support.PageFactory;
+import org.openqa.selenium.support.ui.ExpectedConditions;
+import org.openqa.selenium.support.ui.WebDriverWait;
+
+public class CatalogsPage extends BaseWebIT {
+ @FindBy(xpath = "//*[@data-refer='back-home-btn']")
+ public WebElement backHomeBtn;
+
+ @FindBy(xpath = "//*[@data-refer='select-metalake']")
+ public WebElement metalakeSelect;
+
+ @FindBy(xpath = "//div[@data-refer='table-grid']")
+ public WebElement tableGrid;
+
+ @FindBy(xpath = "//*[@data-refer='create-catalog-btn']")
+ public WebElement createCatalogBtn;
+
+ @FindBy(xpath = "//*[@data-refer='catalog-name-field']")
+ public WebElement catalogNameField;
+
+ @FindBy(xpath = "//*[@data-refer='catalog-comment-field']")
+ public WebElement catalogCommentField;
+
+ @FindBy(xpath = "//button[@data-refer='add-props']")
+ public WebElement addCatalogPropsBtn;
+
+ @FindBy(xpath = "//*[@data-refer='handle-submit-catalog']")
+ public WebElement handleSubmitCatalogBtn;
+
+ @FindBy(xpath = "//*[@data-refer='handle-next-catalog']")
+ public WebElement handleNextCatalogBtn;
+
+ @FindBy(xpath = "//*[@data-refer='create-schema-btn']")
+ public WebElement createSchemaBtn;
+
+ @FindBy(xpath = "//*[@data-refer='schema-name-field']")
+ public WebElement schemaNameField;
+
+ @FindBy(xpath = "//*[@data-refer='schema-comment-field']")
+ public WebElement schemaCommentField;
+
+ @FindBy(xpath = "//*[@data-refer='handle-submit-schema']")
+ public WebElement handleSubmitSchemaBtn;
+
+ @FindBy(xpath = "//*[@data-refer='create-fileset-btn']")
+ public WebElement createFilesetBtn;
+
+ @FindBy(xpath = "//*[@data-refer='fileset-name-field']")
+ public WebElement filesetNameField;
+
+ @FindBy(xpath = "//*[@data-refer='fileset-storageLocation-field']")
+ public WebElement filesetStorageLocationField;
+
+ @FindBy(xpath = "//*[@data-refer='fileset-comment-field']")
+ public WebElement filesetCommentField;
+
+ @FindBy(xpath = "//button[@data-refer='add-props']")
+ public WebElement addFilesetPropsBtn;
+
+ @FindBy(xpath = "//*[@data-refer='handle-submit-fileset']")
+ public WebElement handleSubmitFilesetBtn;
+
+ @FindBy(xpath = "//*[@data-refer='create-topic-btn']")
+ public WebElement createTopicBtn;
+
+ @FindBy(xpath = "//*[@data-refer='topic-name-field']")
+ public WebElement topicNameField;
+
+ @FindBy(xpath = "//*[@data-refer='topic-comment-field']")
+ public WebElement topicCommentField;
+
+ @FindBy(xpath = "//*[@data-refer='handle-submit-topic']")
+ public WebElement handleSubmitTopicBtn;
+
+ @FindBy(xpath = "//*[@data-refer='create-table-btn']")
+ public WebElement createTableBtn;
+
+ @FindBy(xpath = "//*[@data-refer='table-name-field']")
+ public WebElement tableNameField;
+
+ @FindBy(xpath = "//*[@data-refer='table-comment-field']")
+ public WebElement tableCommentField;
+
+ @FindBy(xpath = "//*[@data-refer='handle-submit-table']")
+ public WebElement handleSubmitTableBtn;
+
+ @FindBy(xpath = "//div[@data-refer='tree-view']")
+ public WebElement treeView;
+
+ @FindBy(xpath = "//div[@data-refer='table-grid']")
+ public WebElement tableWrapper;
+
+ @FindBy(xpath = "//div[@role='tab' and contains(text(), 'Table')]")
+ public WebElement tabTableBtn;
+
+ @FindBy(xpath = "//div[@data-refer='tab-table-panel']")
+ public WebElement tabTableContent;
+
+ @FindBy(xpath = "//div[@role='tab' and contains(text(), 'Details')]")
+ public WebElement tabDetailsBtn;
+
+ @FindBy(xpath = "//div[@data-refer='tab-details-panel']")
+ public WebElement tabDetailsContent;
+
+ @FindBy(xpath = "//div[@role='tab' and contains(text(), 'Files')]")
+ public WebElement tabFilesBtn;
+
+ @FindBy(xpath = "//div[@data-refer='tab-files-panel']")
+ public WebElement tabFilesContent;
+
+ @FindBy(xpath = "//div[contains(@class, 'ant-drawer')]")
+ public WebElement detailsDrawer;
+
+ @FindBy(xpath = "//div[contains(@class, 'ant-drawer-title')]")
+ public WebElement detailsTitle;
+
+ @FindBy(xpath = "//button[contains(@class, 'ant-drawer-close')]")
+ public WebElement closeDetailsBtn;
+
+ @FindBy(xpath = "//button[contains(@class, 'ant-btn-dangerous')]")
+ public WebElement confirmDeleteBtn;
+
+ @FindBy(xpath = "//*[@data-refer='confirm-delete-input']")
+ public WebElement confirmDeleteInput;
+
+ @FindBy(xpath = "//*[@data-refer='metalake-name-link']")
+ public WebElement metalakeNameLink;
+
+ @FindBy(xpath = "//thead[contains(@class, 'ant-table-thead')]//tr")
+ public WebElement columnHeaders;
+
+ @FindBy(xpath = "//*[@data-refer='metalake-page-title']")
+ public WebElement metalakePageTitle;
+
+ @FindBy(xpath = "//*[@data-refer='details-props-table']")
+ public WebElement detailsPropsTable;
+
+ @FindBy(xpath = "//*[@data-refer='catalog-provider-selector']")
+ public WebElement catalogProviderSelector;
+
+ @FindBy(xpath = "//*[@data-refer='catalog-type-selector']")
+ public WebElement catalogTypeSelector;
+
+ @FindBy(xpath = "//div[contains(@class, 'ant-select-dropdown')]")
+ public WebElement catalogProviderList;
+
+ @FindBy(xpath = "//div[contains(@class, 'ant-select-dropdown')]")
+ public WebElement catalogTypeList;
+
+ public CatalogsPage(WebDriver driver) {
+ this.driver = driver;
+ PageFactory.initElements(driver, this);
+ }
+
+ public void metalakeSelectChange(String metalakeName) {
+ try {
+ clickAndWait(metalakeSelect);
+ Thread.sleep(500); // Wait for dropdown to appear
+ // Ant Design Dropdown menu item with data-refer attribute
+ String keyPath = "//div[@data-refer='select-option-" + metalakeName + "']";
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement selectOption =
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(keyPath)));
+ clickAndWait(selectOption);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setCatalogNameField(String nameField) {
+ try {
+ WebElement catalogNameFieldInput = catalogNameField.findElement(By.tagName("input"));
+ catalogNameFieldInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ catalogNameFieldInput.clear();
+ catalogNameFieldInput.sendKeys(nameField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setCatalogCommentField(String commentField) {
+ try {
+ WebElement catalogCommentFieldInput = catalogCommentField.findElement(By.tagName("textarea"));
+ catalogCommentFieldInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ catalogCommentFieldInput.clear();
+ catalogCommentFieldInput.sendKeys(commentField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ // set the required fixed catalog properties
+ public void setCatalogFixedProp(String key, String value) {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ // Try to find by data-refer attribute on input element first
+ String xpath = "//input[@data-refer='catalog-props-" + key + "']";
+ WebElement propItem =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));
+ propItem.sendKeys(value);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ // set the indexed catalog properties
+ public void setPropsAt(int index, String key, String value) {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ // Set the indexed props key - Ant Design Form.Item with data-refer/data-testid on wrapper
+ String keyPath = "//*[@data-testid='props-key-" + index + "']//input";
+ WebElement keyInput =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(keyPath)));
+ keyInput.sendKeys(key);
+ // Set the indexed props value - Ant Design Form.Item with data-refer/data-testid on wrapper
+ String valuePath = "//*[@data-testid='props-value-" + index + "']//input";
+ WebElement valueInput =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(valuePath)));
+ valueInput.sendKeys(value);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void clickEditCatalogBtn(String name) {
+ try {
+ // UI uses <a> tag with data-refer attribute for edit button
+ String xpath = "//a[@data-refer='edit-entity-" + name + "']";
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement btn = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
+ clickAndWait(btn);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void clickInUseSwitch(String name) {
+ int maxRetries = 3;
+ for (int retry = 0; retry < maxRetries; retry++) {
+ try {
+ // Wait for page to be ready
+ Thread.sleep(1000);
+
+ // Find and hover over the Settings icon to open the dropdown menu
+ String settingsXpath = "//a[@data-refer='settings-catalog-" + name + "']";
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+
+ // First ensure the element is present in DOM
+ WebElement settingsIcon =
+ wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(settingsXpath)));
+
+ // Scroll element into view
+ ((JavascriptExecutor) driver)
+ .executeScript("arguments[0].scrollIntoView({block: 'center'});", settingsIcon);
+ Thread.sleep(500);
+
+ // Wait for element to be clickable
+ wait.until(ExpectedConditions.elementToBeClickable(settingsIcon));
+
+ // Use Actions to hover over the settings icon to trigger the dropdown
+ Actions actions = new Actions(driver);
+ actions.moveToElement(settingsIcon).perform();
+ Thread.sleep(500);
+
+ // Click on the settings icon to ensure dropdown opens
+ settingsIcon.click();
+ Thread.sleep(500);
+
+ // Wait for dropdown menu to appear and click on the "Not In Use" menu item
+ // Ant Design menu item structure: li.ant-dropdown-menu-item >
+ // span.ant-dropdown-menu-title-content
+ String menuItemXpath =
+ "//li[contains(@class, 'ant-dropdown-menu-item')]//span[contains(@class, 'ant-dropdown-menu-title-content') and (contains(text(), 'Not In-Use') or contains(text(), 'In-Use'))]";
+
+ // Use shorter timeout for menu item since we'll retry (10 seconds)
+ WebDriverWait menuWait = new WebDriverWait(driver, Duration.ofSeconds(10));
+ WebElement menuItem =
+ menuWait.until(ExpectedConditions.elementToBeClickable(By.xpath(menuItemXpath)));
+ menuItem.click();
+ Thread.sleep(500);
+ return; // Success, exit the method
+ } catch (Exception e) {
+ LOG.warn("Attempt {} failed to click in-use switch: {}", retry + 1, e.getMessage());
+ // Close any open dropdown by clicking elsewhere
+ try {
+ driver.findElement(By.tagName("body")).click();
+ Thread.sleep(500);
+ } catch (Exception closeEx) {
+ LOG.debug("Failed to close dropdown: {}", closeEx.getMessage());
+ }
+ if (retry == maxRetries - 1) {
+ LOG.error("Failed to click in-use switch after {} attempts", maxRetries, e);
+ }
+ }
+ }
+ }
+
+ public void clickDeleteBtn(String name) {
+ try {
+ // New UI uses <a> tag instead of <button> for delete action
+ String xpath = "//a[@data-refer='delete-entity-" + name + "']";
+ WebElement btn = driver.findElement(By.xpath(xpath));
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
+ clickAndWait(btn);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ // Input the name to confirm deletion in the modal dialog
+ public void setConfirmDeleteInput(String name) {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ wait.until(ExpectedConditions.visibilityOf(confirmDeleteInput));
+ confirmDeleteInput.sendKeys(name);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setSchemaNameField(String nameField) {
+ try {
+ WebElement schemaNameFieldInput = schemaNameField.findElement(By.tagName("input"));
+ schemaNameFieldInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ schemaNameFieldInput.clear();
+ schemaNameFieldInput.sendKeys(nameField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setSchemaCommentField(String nameField) {
+ try {
+ WebElement schemaCommentFieldInput = schemaCommentField.findElement(By.tagName("textarea"));
+ schemaCommentFieldInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ schemaCommentFieldInput.clear();
+ schemaCommentFieldInput.sendKeys(nameField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setFilesetNameField(String nameField) {
+ try {
+ filesetNameField.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ filesetNameField.clear();
+ filesetNameField.sendKeys(nameField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setFilesetStorageLocationField(
+ int index, String locationName, String storageLocation) {
+ try {
+ // Set the indexed storageLocations name
+ String namePath = "//*[@data-refer='storageLocations-name-" + index + "']";
+ WebElement nameInput = driver.findElement(By.xpath(namePath));
+ nameInput.sendKeys(locationName);
+
+ // Parse the storage location to extract prefix and path
+ String prefix = "file:/";
+ String path = storageLocation;
+ if (storageLocation.startsWith("hdfs://")) {
+ prefix = "hdfs://";
+ path = storageLocation.substring("hdfs://".length());
+ } else if (storageLocation.startsWith("s3://")) {
+ prefix = "s3://";
+ path = storageLocation.substring("s3://".length());
+ } else if (storageLocation.startsWith("file:/")) {
+ prefix = "file:/";
+ path = storageLocation.substring("file:/".length());
+ }
+
+ // Click the prefix selector - Ant Design addonBefore puts Select in ant-input-group-addon
+ // Find the Input first by data-refer, then navigate to its sibling addon
+ String locationInputPath = "//*[@data-refer='storageLocations-location-" + index + "']";
+ WebElement locationInputEl = driver.findElement(By.xpath(locationInputPath));
+ // The addon is a sibling span with class ant-input-group-addon before the input
+ WebElement addonWrapper =
+ locationInputEl.findElement(
+ By.xpath(
+ "./ancestor::span[contains(@class, 'ant-input-wrapper') or contains(@class, 'ant-input-group')]//span[contains(@class, 'ant-select')]"));
+
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ wait.until(ExpectedConditions.elementToBeClickable(addonWrapper));
+ addonWrapper.click();
+ Thread.sleep(500);
+
+ // Select the prefix option from dropdown
+ String prefixOptionPath =
+ "//div[contains(@class, 'ant-select-item-option') and (@title='"
+ + prefix
+ + "' or contains(., '"
+ + prefix
+ + "'))]";
+ WebElement prefixOption =
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(prefixOptionPath)));
+ prefixOption.click();
+ Thread.sleep(300);
+
+ // Set the indexed storageLocations location (path only, without prefix)
+ WebElement locationInput = driver.findElement(By.xpath(locationInputPath));
+ locationInput.sendKeys(path);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setFilesetCommentField(String commentField) {
+ try {
+ filesetCommentField.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ filesetCommentField.clear();
+ filesetCommentField.sendKeys(commentField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setTopicNameField(String nameField) {
+ try {
+ topicNameField.sendKeys(Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ topicNameField.clear();
+ topicNameField.sendKeys(nameField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setTopicCommentField(String commentField) {
+ try {
+ topicCommentField.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ topicCommentField.clear();
+ topicCommentField.sendKeys(commentField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setTableNameField(String nameField) {
+ try {
+ WebElement tableNameFieldInput = tableNameField;
+ tableNameFieldInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ tableNameFieldInput.clear();
+ tableNameFieldInput.sendKeys(nameField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setTableCommentField(String commentField) {
+ try {
+ WebElement tableCommentFieldInput = tableCommentField;
+ tableCommentFieldInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ tableCommentFieldInput.clear();
+ tableCommentFieldInput.sendKeys(commentField);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ // set the indexed table columns
+ public void setTableColumnsAt(int index, String name, String type) {
+ try {
+ // Set the indexed column name
+ String columnName = "//div[@data-refer='column-name-" + index + "']//input";
+ WebElement keyInput = driver.findElement(By.xpath(columnName));
+ keyInput.sendKeys(name);
+ // Set the indexed column type - Ant Design Select structure
+ String columnType = "//div[@data-refer='column-type-" + index + "']";
+ WebElement typeSelect = driver.findElement(By.xpath(columnType));
+ clickAndWait(typeSelect);
+ // Wait for dropdown to appear and click the option
+ // Ant Design Select dropdown - try multiple selectors for compatibility
+ Thread.sleep(500);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ String optionXpath =
+ "//div[contains(@class, 'ant-select-dropdown')]"
+ + "//div[contains(@class, 'ant-select-item-option') and (@title='"
+ + type
+ + "' or .//div[text()='"
+ + capitalizeFirstLetter(type)
+ + "'])]";
+ WebElement typeItem =
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(optionXpath)));
+ clickAndWait(typeItem);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ private String capitalizeFirstLetter(String str) {
+ if (str == null || str.isEmpty()) {
+ return str;
+ }
+ return str.substring(0, 1).toUpperCase() + str.substring(1);
+ }
+
+ public void clickMetalakeLink(String metalakeName) {
+ try {
+ String xpath = "//a[@href='?metalake=" + metalakeName + "']";
+ WebElement link = tableGrid.findElement(By.xpath(xpath));
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
+ clickAndWait(link);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void clickCatalogLink(String metalakeName, String catalogName, String catalogType) {
+ try {
+ String linkXpath = "//a[@data-refer='catalog-link-" + catalogName + "']";
+ String detailsTabsXpath = "//*[@data-refer='details-tabs']";
+ WebDriverWait shortWait = new WebDriverWait(driver, Duration.ofSeconds(10));
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement link = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(linkXpath)));
+
+ // Strategy 1: Normal click
+ clickAndWait(link);
+ if (isElementPresent(detailsTabsXpath, shortWait)) {
+ LOG.info("Catalog details navigation succeeded via normal click");
+ return;
+ }
+ LOG.warn("Normal click did not navigate, trying JavaScript click...");
+
+ // Strategy 2: JavaScript click (bypasses overlay interception)
+ link = driver.findElement(By.xpath(linkXpath));
+ ((JavascriptExecutor) driver).executeScript("arguments[0].click();", link);
+ Thread.sleep(ACTION_SLEEP * 1000);
+ if (isElementPresent(detailsTabsXpath, shortWait)) {
+ LOG.info("Catalog details navigation succeeded via JavaScript click");
+ return;
+ }
+ LOG.warn("JavaScript click did not navigate, trying direct URL navigation...");
+
+ // Strategy 3: Extract href and navigate directly (bypasses SPA routing entirely)
+ link = driver.findElement(By.xpath(linkXpath));
+ String href = link.getAttribute("href");
+ if (href != null && !href.isEmpty()) {
+ driver.get(href);
+ wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(detailsTabsXpath)));
+ LOG.info("Catalog details navigation succeeded via direct URL: {}", href);
+ return;
+ }
+ LOG.error("Failed to navigate to catalog details page: href was empty");
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ private boolean isElementPresent(String xpath, WebDriverWait wait) {
+ try {
+ wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(xpath)));
+ return true;
+ } catch (TimeoutException e) {
+ return false;
+ }
+ }
+
+ public void clickSchemaLink(
+ String metalakeName, String catalogName, String catalogType, String schemaName) {
+ try {
+ String linkXpath = "//a[@data-refer='schema-link-" + schemaName + "']";
+ WebDriverWait shortWait = new WebDriverWait(driver, Duration.ofSeconds(10));
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement link = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(linkXpath)));
+
+ // Strategy 1: Normal click
+ clickAndWait(link);
+ if (isUrlContains("schema=", shortWait)) {
+ LOG.info("Schema details navigation succeeded via normal click");
+ return;
+ }
+ LOG.warn("Normal click did not navigate to schema, trying JavaScript click...");
+
+ // Strategy 2: JavaScript click
+ link = driver.findElement(By.xpath(linkXpath));
+ ((JavascriptExecutor) driver).executeScript("arguments[0].click();", link);
+ Thread.sleep(ACTION_SLEEP * 1000);
+ if (isUrlContains("schema=", shortWait)) {
+ LOG.info("Schema details navigation succeeded via JavaScript click");
+ return;
+ }
+ LOG.warn("JavaScript click did not navigate to schema, trying direct URL navigation...");
+
+ // Strategy 3: Extract href and navigate directly
+ link = driver.findElement(By.xpath(linkXpath));
+ String href = link.getAttribute("href");
+ if (href != null && !href.isEmpty()) {
+ driver.get(href);
+ wait.until(d -> d.getCurrentUrl().contains("schema="));
+ LOG.info("Schema details navigation succeeded via direct URL: {}", href);
+ return;
+ }
+ LOG.error("Failed to navigate to schema details page: href was empty");
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ private boolean isUrlContains(String expected, WebDriverWait wait) {
+ try {
+ wait.until(d -> d.getCurrentUrl().contains(expected));
+ return true;
+ } catch (TimeoutException e) {
+ return false;
+ }
+ }
+
+ public void clickTableLink(
+ String metalakeName,
+ String catalogName,
+ String catalogType,
+ String schemaName,
+ String tableName) {
+ try {
+ String linkXpath = "//a[@data-refer='table-link-" + tableName + "']";
+ WebDriverWait shortWait = new WebDriverWait(driver, Duration.ofSeconds(10));
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement link = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(linkXpath)));
+
+ // Strategy 1: Normal click
+ clickAndWait(link);
+ if (isUrlContains("table=", shortWait)) {
+ LOG.info("Table details navigation succeeded via normal click");
+ return;
+ }
+ LOG.warn("Normal click did not navigate to table, trying JavaScript click...");
+
+ // Strategy 2: JavaScript click
+ link = driver.findElement(By.xpath(linkXpath));
+ ((JavascriptExecutor) driver).executeScript("arguments[0].click();", link);
+ Thread.sleep(ACTION_SLEEP * 1000);
+ if (isUrlContains("table=", shortWait)) {
+ LOG.info("Table details navigation succeeded via JavaScript click");
+ return;
+ }
+ LOG.warn("JavaScript click did not navigate to table, trying direct URL navigation...");
+
+ // Strategy 3: Extract href and navigate directly
+ link = driver.findElement(By.xpath(linkXpath));
+ String href = link.getAttribute("href");
+ if (href != null && !href.isEmpty()) {
+ driver.get(href);
+ wait.until(d -> d.getCurrentUrl().contains("table="));
+ LOG.info("Table details navigation succeeded via direct URL: {}", href);
+ return;
+ }
+ LOG.error("Failed to navigate to table details page: href was empty");
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void clickBreadCrumbsToCatalogs() {
+ try {
+ String urlBefore = driver.getCurrentUrl();
+ WebDriverWait shortWait = new WebDriverWait(driver, Duration.ofSeconds(10));
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+
+ // Strategy 1: Normal click
+ wait.until(ExpectedConditions.elementToBeClickable(metalakeNameLink));
+ clickAndWait(metalakeNameLink);
+ if (isUrlChanged(urlBefore, shortWait)) {
+ LOG.info("Breadcrumb navigation succeeded via normal click");
+ return;
+ }
+ LOG.warn("Normal breadcrumb click did not navigate, trying JavaScript click...");
+
+ // Strategy 2: JavaScript click
+ ((JavascriptExecutor) driver).executeScript("arguments[0].click();", metalakeNameLink);
+ Thread.sleep(ACTION_SLEEP * 1000);
+ if (isUrlChanged(urlBefore, shortWait)) {
+ LOG.info("Breadcrumb navigation succeeded via JavaScript click");
+ return;
+ }
+ LOG.warn("JavaScript breadcrumb click did not navigate, trying direct URL navigation...");
+
+ // Strategy 3: Extract href and navigate directly
+ String href = metalakeNameLink.getAttribute("href");
+ if (href != null && !href.isEmpty()) {
+ driver.get(href);
+ LOG.info("Breadcrumb navigation succeeded via direct URL: {}", href);
+ return;
+ }
+ LOG.error("Failed to navigate via breadcrumb: href was empty");
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ private boolean isUrlChanged(String urlBefore, WebDriverWait wait) {
+ try {
+ wait.until(d -> !d.getCurrentUrl().equals(urlBefore));
+ return true;
+ } catch (TimeoutException e) {
+ return false;
+ }
+ }
+
+ public void clickSelectProvider(String provider) throws InterruptedException {
+ // New UI uses provider cards instead of dropdown
+ // Wait for the provider card to be visible before clicking
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ String providerCardPath = "//div[@data-refer='catalog-provider-" + provider + "']";
+ WebElement providerCard =
+ wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(providerCardPath)));
+ // Scroll the element into view if needed
+ ((JavascriptExecutor) driver)
+ .executeScript("arguments[0].scrollIntoView({block: 'center'});", providerCard);
+ Thread.sleep(500); // Wait for scroll to complete
+ wait.until(ExpectedConditions.elementToBeClickable(providerCard));
+ // Use JavaScript click to ensure the click event is properly triggered
+ ((JavascriptExecutor) driver).executeScript("arguments[0].click();", providerCard);
+ Thread.sleep(500); // Wait for selection to register
+
+ // Verify that provider was selected by checking if Next button becomes enabled
+ String nextBtnPath = "//*[@data-refer='handle-next-catalog']";
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(nextBtnPath)));
+ }
+
+ public void clickSelectType(String type) throws InterruptedException {
+ // New UI uses Tabs for catalog type selection
+ String tabPath = "//div[contains(@class, 'ant-tabs-tab') and @data-node-key='" + type + "']";
+ WebElement tabItem = driver.findElement(By.xpath(tabPath));
+ clickAndWait(tabItem);
+ }
+
+ public void clickTreeNode(String nodeKey) throws InterruptedException {
+ // Parse nodeKey format: {{metalake}}{{catalog}}{{type}} or
+ // {{metalake}}{{catalog}}{{type}}{{schema}} etc.
+ String[] parts = nodeKey.replace("{{", "").split("}}");
+ String nodeName = "";
+
+ if (parts.length >= 2) {
+ if (parts.length == 3) {
+ nodeName = parts[1];
+ } else if (parts.length == 4) {
+ nodeName = parts[3];
+ } else if (parts.length >= 5) {
+ nodeName = parts[4];
+ }
+ }
+
+ String[] candidateXpaths =
+ new String[] {
+ "//div[contains(@class, 'ant-tree-treenode')]//span[contains(@class, 'ant-tree-title')]//div[@title='"
+ + nodeName
+ + "']",
+ "//div[contains(@class, 'ant-tree-treenode')]//span[contains(@class, 'ant-tree-title')]//div[text()='"
+ + nodeName
+ + "']",
+ "//div[contains(@class, 'ant-tree-treenode')]//span[contains(@class, 'ant-tree-title')][.//text()[normalize-space()='"
+ + nodeName
+ + "']]",
+ "//div[contains(@class,'ant-tree-treenode')]//span[contains(@class,'ant-tree-title') and normalize-space(.)='"
+ + nodeName
+ + "']",
+ };
+
+ String urlBefore = driver.getCurrentUrl();
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebDriverWait shortWait = new WebDriverWait(driver, Duration.ofSeconds(10));
+
+ // Strategy 1 & 2: Find tree node and try normal click then JS click
+ WebElement treeNode = null;
+ for (String xp : candidateXpaths) {
+ try {
+ treeNode = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(xp)));
+ if (treeNode != null) {
+ ((JavascriptExecutor) driver)
+ .executeScript("arguments[0].scrollIntoView({block: 'center'});", treeNode);
+
+ // Strategy 1: Normal click
+ try {
+ wait.until(ExpectedConditions.elementToBeClickable(treeNode));
+ clickAndWait(treeNode);
+ if (isUrlChanged(urlBefore, shortWait)) {
+ LOG.info("Tree node '{}' navigation succeeded via normal click", nodeName);
+ return;
+ }
+ LOG.warn("Normal click on tree node '{}' did not navigate", nodeName);
+ } catch (Exception clickEx) {
+ LOG.debug("clickTreeNode: normal click failed for {}: {}", xp, clickEx.getMessage());
+ }
+
+ // Strategy 2: JavaScript click
+ try {
+ ((JavascriptExecutor) driver).executeScript("arguments[0].click();", treeNode);
+ Thread.sleep(ACTION_SLEEP * 1000);
+ if (isUrlChanged(urlBefore, shortWait)) {
+ LOG.info("Tree node '{}' navigation succeeded via JavaScript click", nodeName);
+ return;
+ }
+ LOG.warn("JavaScript click on tree node '{}' did not navigate", nodeName);
+ } catch (Exception jsEx) {
+ LOG.debug("clickTreeNode: JS click failed for {}: {}", xp, jsEx.getMessage());
+ }
+
+ // Found and tried to click the node; break out of xpath loop to try Strategy 3
+ break;
+ }
+ } catch (Exception e) {
+ LOG.debug("clickTreeNode: xpath {} not found: {}", xp, e.getMessage());
+ }
+ }
+
+ // Strategy 3: Construct URL from nodeKey parts and navigate directly
+ LOG.warn("Click strategies failed for tree node '{}', trying direct URL navigation", nodeName);
+ String directUrl = buildTreeNodeUrl(parts);
+ if (directUrl != null) {
+ driver.get(directUrl);
+ LOG.info("Tree node '{}' navigation succeeded via direct URL: {}", nodeName, directUrl);
+ return;
+ }
+
+ throw new InterruptedException(
+ "clickTreeNode: could not navigate to tree node '" + nodeName + "'");
+ }
+
+ /**
+ * Constructs the direct URL for a tree node based on the parsed nodeKey parts. The URL pattern
+ * matches the Next.js routing used by the front-end: catalog node →
+ * /catalogs?metalake=X&catalog=Y&catalogType=Z schema node → adds &schema=W table node → adds
+ * &table=V
+ */
+ private String buildTreeNodeUrl(String[] parts) {
+ if (parts.length < 3) {
+ return null;
+ }
+ String metalake = parts[0];
+ String catalog = parts[1];
+ String catalogType = parts[2];
+
+ // Get base URL from current page
+ String currentUrl = driver.getCurrentUrl();
+ String baseUrl = currentUrl.split("/catalogs")[0] + "/catalogs";
+
+ StringBuilder url = new StringBuilder(baseUrl);
+ url.append("?metalake=").append(metalake);
+ url.append("&catalog=").append(catalog);
+ url.append("&catalogType=").append(catalogType);
+
+ if (parts.length >= 4) {
+ url.append("&schema=").append(parts[3]);
+ }
+ if (parts.length >= 5) {
+ url.append("&table=").append(parts[4]);
+ }
+ return url.toString();
+ }
+
+ public void clickTreeNodeRefresh(String nodeKey) throws InterruptedException {
+ // Parse nodeKey to get the node name
+ String[] parts = nodeKey.replace("{{", "").split("}}");
+ String nodeName = "";
+
+ if (parts.length == 3) {
+ nodeName = parts[1]; // Catalog name
+ } else if (parts.length == 4) {
+ nodeName = parts[3]; // Schema name
+ } else if (parts.length >= 5) {
+ nodeName = parts[4]; // Entity name
+ }
+
+ // Find the tree node by title and hover over its icon to trigger refresh
+ String nodeXpath =
+ "//div[contains(@class, 'ant-tree-treenode')]//span[contains(@class, 'ant-tree-title')]//div[@title='"
+ + nodeName
+ + "']/ancestor::span[contains(@class, 'ant-tree-title')]/preceding-sibling::span[contains(@class, 'ant-tree-iconEle')]";
+
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement iconElement =
+ wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(nodeXpath)));
+
+ // Hover over the icon to show refresh button
+ Actions actions = new Actions(driver);
+ actions.moveToElement(iconElement).perform();
+ Thread.sleep(500);
+
+ // Click the icon (which should now be the refresh icon)
+ iconElement.click();
+ Thread.sleep(1000);
+ } catch (Exception e) {
+ LOG.error("Failed to click tree node refresh: {}", e.getMessage(), e);
+ }
+ }
+
+ public boolean verifyGetCatalog(String name) {
+ try {
+ // Ant Design Tree structure: ant-tree-treenode > ant-tree-title > div[@title='name']
+ String xpath =
+ "//div[contains(@class, 'ant-tree-treenode')]//span[contains(@class, 'ant-tree-title')]//div[@title='"
+ + name
+ + "']";
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement treeNode =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));
+ boolean match = Objects.equals(treeNode.getText(), name);
+ if (!match) {
+ LOG.error("tree node: {} does not match with name: {}", treeNode.getText(), name);
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyCatalogDetailsPage(String catalogName, String provider, String type) {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+
+ // Verify catalog name is displayed in the page title (h3.ant-typography > span[@title])
+ String titleXpath =
+ "//h3[contains(@class, 'ant-typography')]//span[@title='" + catalogName + "']";
+ WebElement titleElement =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(titleXpath)));
+ boolean hasTitle = titleElement.isDisplayed();
+
+ // Verify type is displayed in the Space section (after Type icon)
+ // The structure is: <Space><Icons.Type /><span>{type}</span></Space>
+ String typeXpath = "//div[contains(@class, 'ant-space')]//span[text()='" + type + "']";
+ WebElement typeElement =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(typeXpath)));
+ boolean hasType = typeElement.isDisplayed();
+
+ // Verify provider is displayed in the Space section (after Provider icon)
+ String providerXpath =
+ "//div[contains(@class, 'ant-space')]//span[text()='" + provider + "']";
+ WebElement providerElement =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(providerXpath)));
+ boolean hasProvider = providerElement.isDisplayed();
+
+ if (!hasTitle || !hasType || !hasProvider) {
+ LOG.error(
+ "Catalog details page verification failed - hasTitle: {}, hasType: {}, hasProvider: {}",
+ hasTitle,
+ hasType,
+ hasProvider);
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyShowFilesContent() {
+ try {
+ String files = tabFilesContent.getAttribute("hidden");
+ return Objects.equals(files, null);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyEditedCatalog(String name) {
+ try {
+ // Ant Design Tree structure: ant-tree-treenode > ant-tree-title > div[@title='name']
+ String xpath =
+ "//div[contains(@class, 'ant-tree-treenode')]//span[contains(@class, 'ant-tree-title')]//div[@title='"
+ + name
+ + "']";
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement treeNode =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));
+
+ // Check if the link text is match with name
+ boolean match = Objects.equals(treeNode.getText(), name);
+ if (!match) {
+ LOG.error("tree node {} does not match with name: {}", treeNode.getText(), name);
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyEmptyTableData() {
+ try {
+ // Check is empty table - Ant Design shows ant-empty component for empty tables
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ String emptyXpath = "//div[@data-refer='table-grid']//div[contains(@class, 'ant-empty')]";
+ WebElement emptyElement =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(emptyXpath)));
+ boolean isNoRows = emptyElement.isDisplayed();
+ if (!isNoRows) {
+ LOG.error("is not empty catalog list, empty element not found");
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyShowTableTitle(String title) {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+
+ // Only use the data-refer scoped xpath to avoid matching tabs from other pages
+ // (e.g. the metalake-level "Relational" tab which does NOT have data-refer='details-tabs').
+ // All detail pages (CatalogDetailsPage, SchemaDetailsPage, TableDetailsPage) render:
+ // <Tabs data-refer='details-tabs' ...>
+ String xpath =
+ "//*[@data-refer='details-tabs']//div[contains(@class, 'ant-tabs-tab-active')]";
+ WebElement activeTab =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));
+ String tabText = activeTab.getText().trim();
+ if (tabText.equals(title) || tabText.contains(title)) {
+ LOG.info("Found active tab with title: {}", tabText);
+ return true;
+ }
+ LOG.error("Active tab text '{}' does not match expected title '{}'", tabText, title);
+ return false;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ /**
+ * Verifies if a given property item is present in a specified list.
+ *
+ * @param item The key or value item of the property.
+ * @param key The key of the property.
+ * @param value The value of key item of the property.
+ * @param isHighlight Whether to highlight the property item or not.
+ * @return True if the property item is found in the list, false otherwise.
+ */
+ public boolean verifyShowPropertiesItemInList(
+ String item, String key, String value, Boolean isHighlight) {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+ String xpath;
+ if (isHighlight) {
+ xpath = "//div[@data-refer='props-" + item + "-" + key + "-highlight']";
+ } else {
+ xpath = "//div[@data-refer='props-" + item + "-" + key + "']";
+ }
+ WebElement propertyElement =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));
+
+ boolean match = Objects.equals(propertyElement.getText(), value);
+
+ if (!match) {
+ LOG.error("Prop: does not include itemName: {}", value);
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * Click the properties link to open the properties popover.
+ *
+ * @throws InterruptedException if the thread is interrupted.
+ */
+ public void clickPropertiesLink() throws InterruptedException {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ String xpath = "//a[@data-refer='properties-link']";
+ WebElement propertiesLink =
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
+ propertiesLink.click();
+ Thread.sleep(500); // Wait for popover to appear
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ /**
+ * Verify that a property key-value pair exists in the properties popover.
+ *
+ * @param key The property key to verify.
+ * @param expectedValue The expected value for the property.
+ * @return True if the property exists with the expected value, false otherwise.
+ */
+ public boolean verifyPropertyInPopover(String key, String expectedValue) {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+ // Verify the popover content is visible
+ String popoverXpath = "//*[@data-refer='properties-popover-content']";
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(popoverXpath)));
+
+ // Verify the key exists
+ String keyXpath = "//span[@data-refer='props-key-" + key + "']";
+ WebElement keyElement =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(keyXpath)));
+ if (!Objects.equals(keyElement.getText(), key)) {
+ LOG.error("Property key mismatch: expected {}, got {}", key, keyElement.getText());
+ return false;
+ }
+
+ // Verify the value
+ String valueXpath = "//span[@data-refer='props-value-" + key + "']";
+ WebElement valueElement =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(valueXpath)));
+ if (!Objects.equals(valueElement.getText(), expectedValue)) {
+ LOG.error(
+ "Property value mismatch for key {}: expected {}, got {}",
+ key,
+ expectedValue,
+ valueElement.getText());
+ return false;
+ }
+
+ return true;
+ } catch (Exception e) {
+ LOG.error("Failed to verify property in popover: {}", e.getMessage(), e);
+ return false;
+ }
+ }
+
+ /**
+ * Verify the table overview link value for properties, partitions, sort orders, distribution, or
+ * indexes.
+ *
+ * @param linkType The type of link to verify (properties, partitions, sortorders, distribution,
+ * indexes).
+ * @param expectedValue The expected value/count displayed in the link.
+ * @return True if the link displays the expected value, false otherwise.
+ */
+ public boolean verifyTableOverviewLink(String linkType, String expectedValue) {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ String xpath = "//a[@data-refer='overview-" + linkType + "-link']";
+ WebElement linkElement =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));
+ String actualValue = linkElement.getText().trim();
+ if (!Objects.equals(actualValue, expectedValue)) {
+ LOG.error(
+ "Table overview {} link mismatch: expected '{}', got '{}'",
+ linkType,
+ expectedValue,
+ actualValue);
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error("Failed to verify table overview {} link: {}", linkType, e.getMessage(), e);
+ return false;
+ }
+ }
+
+ /**
+ * Click the table overview link to open the popover.
+ *
+ * @param linkType The type of link to click (properties, partitions, sortorders, distribution,
+ * indexes).
+ * @throws InterruptedException if the thread is interrupted.
+ */
+ public void clickTableOverviewLink(String linkType) throws InterruptedException {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ String xpath = "//a[@data-refer='overview-" + linkType + "-link']";
+ WebElement linkElement = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
+ linkElement.click();
+ Thread.sleep(500); // Wait for popover to appear
+ } catch (Exception e) {
+ LOG.error("Failed to click table overview {} link: {}", linkType, e.getMessage(), e);
+ }
+ }
+
+ /**
+ * Hover the overview tip area for a given overview `type` (e.g. "sortOrders"), trying multiple
+ * possible locators to support different UI variants.
+ */
+ public void hoverOverviewTip(String type) throws InterruptedException {
+ String[] candidateXpaths =
+ new String[] {
+ "//*[@data-refer='overview-tip-" + type + "']",
+ "//*[@data-refer='overview-tip-" + type + "-items']",
+ "//*[@data-refer='overview-" + type.toLowerCase() + "-link']",
+ "//*[@data-refer='overview-" + type + "-items']",
+ };
+
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5));
+ WebElement found = null;
+ for (String xp : candidateXpaths) {
+ try {
+ found = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(xp)));
+ if (found != null) break;
+ } catch (Exception e) {
+ LOG.debug("hoverOverviewTip: xpath {} not present: {}", xp, e.getMessage());
+ // try next candidate
+ }
+ }
+
+ if (found == null) {
+ LOG.warn("hoverOverviewTip: no overview element found for type {}", type);
+ return;
+ }
+
+ ((JavascriptExecutor) driver)
+ .executeScript("arguments[0].scrollIntoView({block: 'center'});", found);
+ Thread.sleep(300);
+ try {
+ Actions actions = new Actions(driver);
+ actions.moveToElement(found).perform();
+ Thread.sleep(300);
+ } catch (Exception e) {
+ // fallback to JS click to open popover if hover fails
+ try {
+ ((JavascriptExecutor) driver).executeScript("arguments[0].click();", found);
+ Thread.sleep(300);
+ } catch (Exception ex) {
+ LOG.error("hoverOverviewTip: cannot hover or click overview element", ex);
+ }
+ }
+ }
+
+ public boolean verifyShowDataItemInList(String itemName, Boolean isColumnLevel) {
+ try {
+ Thread.sleep(ACTION_SLEEP * 1000);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+
+ // Ant Design Table structure: table > tbody > tr > td
+ // For catalog/schema pages, the first column contains a Link (<a> tag)
+ // For column level (table details), the first column contains a <p> tag
+ String baseXpath =
+ "//div[@data-refer='table-grid']"
+ + "//table/tbody/tr[contains(@class, 'ant-table-row')]"
+ + "/td[contains(@class, 'ant-table-cell')][1]";
+
+ // Try multiple xpaths to handle different table structures
+ String[] xpaths;
+ if (isColumnLevel) {
+ xpaths = new String[] {baseXpath + "//p", baseXpath};
+ } else {
+ // For schema/catalog list, content is rendered in <a> (Link) or direct text
+ xpaths = new String[] {baseXpath + "//a", baseXpath};
+ }
+
+ for (String xpath : xpaths) {
+ try {
+ List<WebElement> list =
+ wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(xpath)));
+ List<String> texts = new ArrayList<>();
+
+ for (int i = 0; i < list.size(); i++) {
+ try {
+ texts.add(list.get(i).getText());
+ } catch (StaleElementReferenceException e) {
+ // Element failed, re-find and obtain text
+ List<WebElement> refreshedList = driver.findElements(By.xpath(xpath));
+ if (i < refreshedList.size()) {
+ texts.add(refreshedList.get(i).getText());
+ }
+ }
+ }
+
+ if (texts.contains(itemName)) {
+ LOG.info("Found item '{}' in table list: {}", itemName, texts);
+ return true;
+ }
+ LOG.info("Item '{}' not found with xpath '{}', texts: {}", itemName, xpath, texts);
+ } catch (Exception e) {
+ LOG.info("Xpath '{}' failed, trying next...", xpath);
+ }
+ }
+
+ LOG.error("table list does not include itemName: {}", itemName);
+ return false;
+ }
+
+ public boolean verifyNoDataItemInList(String itemName, Boolean isColumnLevel) {
+ try {
+ Thread.sleep(ACTION_SLEEP * 1000);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ // Ant Design Table structure: table > tbody > tr > td
+ String xpath =
+ "//div[@data-refer='table-grid']"
+ + "//table/tbody/tr[contains(@class, 'ant-table-row')]"
+ + "/td[contains(@class, 'ant-table-cell')][1]";
+ if (isColumnLevel) {
+ xpath = xpath + "//p";
+ }
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+ List<WebElement> list =
+ wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(xpath)));
+ List<String> texts = new ArrayList<>();
+ for (WebElement element : list) {
+ texts.add(element.getText());
+ }
+
+ if (texts.contains(itemName)) {
+ LOG.error("table list: {} does not include itemName: {}", texts, itemName);
+ return false;
+ }
+
+ return true;
+ }
+
+ public boolean verifyTableColumns() {
+ try {
+ List<String> columns = Arrays.asList("Column Name", "Data Type", "Tags", "Policies");
+
+ // Ant Design Table structure: thead > tr > th
+ List<WebElement> columnHeadersRows =
+ columnHeaders.findElements(By.xpath("./th[contains(@class, 'ant-table-cell')]"));
+ // Filter out header cells that have no visible text (selection/expand columns)
+ List<String> headerTexts = new ArrayList<>();
+ for (WebElement th : columnHeadersRows) {
+ String txt = th.getText() == null ? "" : th.getText().trim();
+ boolean hasInteractiveChild = false;
+ try {
+ // if header contains inputs/icons/buttons and no text, treat as non-data header
+ List<WebElement> interactive =
+ th.findElements(By.xpath(".//input|.//button|.//svg|.//i"));
+ if (interactive != null && !interactive.isEmpty()) {
+ hasInteractiveChild = true;
+ }
+ } catch (Exception e) {
+ LOG.debug("Error checking interactive children of header: {}", e.getMessage());
+ }
+
+ if (!txt.isEmpty()) {
+ headerTexts.add(txt);
+ } else if (!hasInteractiveChild) {
+ // If there is no interactive child but text is empty, still skip it
+ // (some UIs render invisible helper headers)
+ continue;
+ }
+ }
+
+ if (headerTexts.size() != columns.size()) {
+ LOG.error(
+ "Column headers count does not match after filtering, expected: {}, actual: {} -> {}",
+ columns.size(),
+ headerTexts.size(),
+ headerTexts);
+ return false;
+ }
+
+ for (int i = 0; i < columns.size(); i++) {
+ String headerText = headerTexts.get(i);
+ if (!headerText.equals(columns.get(i))) {
+ LOG.error("Column header '{}' does not match, expected '{}'", headerText, columns.get(i));
+ return false;
+ }
+ }
+
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyTableProperties(String type, String colName) {
+ try {
+ String xpath = "";
+ String formattedColName = "";
+ if (type.equals(DISTRIBUTION)) {
+ xpath = "//*[@data-refer='tip-" + DISTRIBUTION + "-item-" + colName + "']";
+ formattedColName = "hash[10](" + colName + ")";
+ } else if (type.equals(SORT_ORDERS)) {
+ xpath = "//*[@data-refer='tip-" + SORT_ORDERS + "-item-" + colName + "']";
+ formattedColName = colName + " desc nulls_last";
+ }
+
+ // Wait a bit for the popover animation to complete
+ Thread.sleep(500);
+
+ // Wait for the popover content to be visible
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
+ wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(xpath)));
+
+ // Then find all matching elements
+ List<WebElement> tooltipItems = driver.findElements(By.xpath(xpath));
+ List<String> texts = new ArrayList<>();
+ for (WebElement text : tooltipItems) {
+ String textContent = text.getText();
+ LOG.info("Found tooltip text: '{}'", textContent);
+ texts.add(textContent);
+ }
+
+ if (!texts.contains(formattedColName)) {
+ LOG.error(
+ "Tooltip item {} does not match, actual texts: '{}', expected: '{}'",
+ colName,
+ texts,
+ formattedColName);
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyTablePropertiesOverview(List<String> cols) {
+ try {
+ // Wait a bit for the popover animation to complete
+ Thread.sleep(500);
+
+ WebElement columnsText = null;
+ boolean isMatchText = false;
+ // try multiple possible overview element locators for compatibility across UI versions
+ String[] candidateColumnsXpaths =
+ new String[] {
+ "//*[@data-refer='overview-sortOrders-items']",
+ "//*[@data-refer='overview-sortOrders-items']",
+ "//*[@data-refer='overview-sortorders-link']",
+ "//*[@data-refer='overview-sortOrders-items']"
+ };
+ for (String xp : candidateColumnsXpaths) {
+ try {
+ columnsText = driver.findElement(By.xpath(xp));
+ if (columnsText != null) {
+ isMatchText = columnsText.getText().contains(",");
+ break;
+ }
+ } catch (Exception e) {
+ LOG.debug("candidateColumnsXpaths: xpath {} not found or error: {}", xp, e.getMessage());
+ }
+ }
+
+ List<WebElement> tooltipCols = new ArrayList<>();
+ String[] candidateTooltipXpaths =
+ new String[] {
+ "//*[@data-refer='overview-tip-sortOrders-items']",
+ "//*[@data-refer='overview-tip-sortOrders']",
+ "//*[@data-refer='overview-tip-sortOrders-items']"
+ };
+ for (String xp : candidateTooltipXpaths) {
+ try {
+ List<WebElement> found = driver.findElements(By.xpath(xp));
+ if (found != null && !found.isEmpty()) {
+ tooltipCols.addAll(found);
+ }
+ } catch (Exception e) {
+ LOG.debug("candidateTooltipXpaths: xpath {} search error: {}", xp, e.getMessage());
+ }
+ }
+ List<String> texts = new ArrayList<>();
+ for (WebElement text : tooltipCols) {
+ String t = text.getText() == null ? "" : text.getText().trim();
+ if (t.isEmpty()) {
+ // try to extract non-empty text from descendants (some UI versions render text in child
+ // spans)
+ try {
+ List<WebElement> descendants = text.findElements(By.xpath(".//*"));
+ for (WebElement d : descendants) {
+ String dt = d.getText() == null ? "" : d.getText().trim();
+ if (!dt.isEmpty()) {
+ texts.add(dt);
+ }
+ }
+ } catch (Exception e) {
+ LOG.debug("extract descendants text failed: {}", e.getMessage());
+ }
+ } else {
+ texts.add(t);
+ }
+ }
+ List<String> colsTexts = new ArrayList<>();
+ for (String col : cols) {
+ colsTexts.add(col + " desc nulls_last");
+ }
+ if (!isMatchText || !texts.containsAll(colsTexts)) {
+ LOG.error(
+ "Overview tooltip does not match, actual: '{}', expected: '{}'", texts, colsTexts);
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyBackHomePage() {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ wait.until(ExpectedConditions.visibilityOf(metalakePageTitle));
+ boolean matchTitle = Objects.equals(metalakePageTitle.getText(), "Metalakes");
+ if (!matchTitle) {
+ LOG.error("metalakePageTitle: {} does not match with Metalakes", metalakePageTitle.getText());
+ return false;
+ }
+ return true;
+ }
+
+ public boolean verifyRefreshPage() {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ wait.until(
+ webDriver ->
+ ((JavascriptExecutor) webDriver)
+ .executeScript("return document.readyState")
+ .equals("complete"));
+ wait.until(ExpectedConditions.visibilityOf(metalakeNameLink));
+ boolean isDisplayed = metalakeNameLink.isDisplayed();
+ if (!isDisplayed) {
+ LOG.error("No match with link, get {}", metalakeNameLink.getText());
+ return false;
+ }
+ return true;
+ }
+
+ public boolean verifyCreatedCatalogs(List<String> catalogNames) {
+ // Ant Design Table structure: table > tbody > tr > td
+ List<WebElement> list =
+ tableGrid.findElements(
+ By.xpath(
+ ".//table/tbody/tr[contains(@class, 'ant-table-row')]"
+ + "/td[contains(@class, 'ant-table-cell')][1]"));
+ List<String> texts = new ArrayList<>();
+ for (WebElement webElement : list) {
+ String rowItemColName = webElement.getText();
+ texts.add(rowItemColName);
+ }
+ if (!texts.containsAll(catalogNames)) {
+ LOG.error("table list: {} does not containsAll catalogNames: {}", texts, catalogNames);
+ return false;
+ }
+ return true;
+ }
+
+ public boolean verifyTreeNodes(List<String> treeNodes) {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+ List<WebElement> list =
+ wait.until(
+ ExpectedConditions.visibilityOfAllElementsLocatedBy(
+ By.xpath(
+ "//div[@data-refer='tree-view']"
+ + "//div[@class='ant-tree-list-holder']"
+ + "/div/div[@class='ant-tree-list-holder-inner']"
+ + "/div[contains(@class, 'ant-tree-treenode')]")));
+ List<String> texts = new ArrayList<>();
+ for (WebElement webElement : list) {
+ String nodeName =
+ webElement.findElement(By.xpath(".//span[@class='ant-tree-title']")).getText();
+ texts.add(nodeName);
+ }
+ if (!treeNodes.containsAll(texts)) {
+ LOG.error("tree nodes list: {} does not containsAll treeNodes: {}", texts, treeNodes);
+ return false;
+ }
+ return true;
+ }
+
+ public boolean verifySelectedNode(String nodeName) {
+
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+
+ WebElement selectedNode =
+ wait.until(
+ ExpectedConditions.visibilityOfElementLocated(
+ By.xpath(
+ "//div[@data-refer='tree-view']"
+ + "//div[contains(@class, 'ant-tree-treenode-selected')]"
+ + "//span[@class='ant-tree-title']")));
+ if (!selectedNode.getText().equals(nodeName)) {
+ LOG.error(
+ "selectedNode: {} does not match with nodeName: {}", selectedNode.getText(), nodeName);
+ return false;
+ }
+ return true;
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
new file mode 100644
index 0000000000..7c402aa149
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
@@ -0,0 +1,526 @@
+/*
+ * 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.
+ */
+
+package org.apache.gravitino.integration.test.web.ui.pages;
+
+import java.time.Duration;
+import java.util.List;
+import java.util.Objects;
+import java.util.Set;
+import org.apache.gravitino.integration.test.web.ui.utils.BaseWebIT;
+import org.openqa.selenium.By;
+import org.openqa.selenium.JavascriptExecutor;
+import org.openqa.selenium.Keys;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.openqa.selenium.interactions.Actions;
+import org.openqa.selenium.support.FindBy;
+import org.openqa.selenium.support.PageFactory;
+import org.openqa.selenium.support.ui.ExpectedConditions;
+import org.openqa.selenium.support.ui.WebDriverWait;
+
+public class MetalakePage extends BaseWebIT {
+ private static final String PAGE_TITLE = "Metalakes";
+
+ @FindBy(
+ xpath =
+ "//div[@data-refer='metalake-table-grid']//div[contains(@class, 'ant-table-body')]//table/tbody")
+ public WebElement dataViewer;
+
+ @FindBy(xpath = "//div[@data-refer='metalake-table-grid']")
+ public WebElement metalakeTableGrid;
+
+ @FindBy(xpath = "//*[@data-refer='create-metalake-btn']")
+ public WebElement createMetalakeBtn;
+
+ @FindBy(xpath = "//*[@data-refer='metalake-name-field']")
+ public WebElement metalakeNameField;
+
+ @FindBy(xpath = "//*[@data-refer='metalake-comment-field']")
+ public WebElement metalakeCommentField;
+
+ @FindBy(
+ xpath = "//span[@data-refer='query-metalake']//input | //input[@data-refer='query-metalake']")
+ public WebElement queryMetalakeInput;
+
+ @FindBy(xpath = "//button[@data-refer='submit-handle-metalake']")
+ public WebElement submitHandleMetalakeBtn;
+
+ @FindBy(xpath = "//button[@data-refer='cancel-handle-metalake']")
+ public WebElement cancelHandleMetalakeBtn;
+
+ @FindBy(xpath = "//input[@data-refer='confirm-delete-input']")
+ public WebElement confirmDeleteInput;
+
+ @FindBy(
+ xpath =
+ "//div[contains(@class, 'ant-modal-confirm')]//button[contains(@class, 'ant-btn-dangerous')]")
+ public WebElement confirmDeleteBtn;
+
+ @FindBy(xpath = "//*[@data-refer='add-props']")
+ public WebElement addMetalakePropsBtn;
+
+ @FindBy(
+ xpath =
+ "//div[@data-refer='metalake-table-grid']//ul[contains(@class, 'ant-pagination')]//button[@title='Next Page']")
+ public WebElement nextPageBtn;
+
+ @FindBy(
+ xpath =
+ "//div[@data-refer='metalake-table-grid']//ul[contains(@class, 'ant-pagination')]//button[@title='Previous Page']")
+ public WebElement prevPageBtn;
+
+ @FindBy(xpath = "//a[@data-refer='metalake-name-link']")
+ public WebElement metalakeNameLink;
+
+ @FindBy(xpath = "//div[@data-refer='metalake-table-grid']//div[contains(@class, 'ant-empty')]")
+ public WebElement metalakeTableWrapper;
+
+ @FindBy(xpath = "//*[@data-refer='back-home-btn']")
+ public WebElement backHomeBtn;
+
+ @FindBy(xpath = "//*[@data-refer='metalake-page-title']")
+ public WebElement metalakePageTitle;
+
+ @FindBy(xpath = "//a[@data-refer='footer-link-gravitino']")
+ public WebElement footerLinkGravitino;
+
+ @FindBy(xpath = "//a[@data-refer='footer-link-license']")
+ public WebElement footerLinkLicense;
+
+ @FindBy(xpath = "//a[@data-refer='footer-link-docs']")
+ public WebElement footerLinkDocs;
+
+ @FindBy(xpath = "//a[@data-refer='footer-link-support']")
+ public WebElement footerLinkSupport;
+
+ public MetalakePage(WebDriver driver) {
+ this.driver = driver;
+ PageFactory.initElements(driver, this);
+ }
+
+ public void setMetalakeNameField(String nameField) {
+ WebElement metalakeNameFieldInput = metalakeNameField.findElement(By.tagName("input"));
+ metalakeNameFieldInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ metalakeNameFieldInput.clear();
+ metalakeNameFieldInput.sendKeys(nameField);
+ }
+
+ public void setMetalakeCommentField(String commentField) {
+ WebElement metalakeCommentFieldInput = metalakeCommentField.findElement(By.tagName("textarea"));
+ metalakeCommentFieldInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ metalakeCommentFieldInput.clear();
+ metalakeCommentFieldInput.sendKeys(commentField);
+ }
+
+ public void setQueryParams(String queryParams) {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+ WebElement queryInputElement =
+ wait.until(ExpectedConditions.elementToBeClickable(queryMetalakeInput));
+ clearQueryInput();
+ queryInputElement.sendKeys(queryParams);
+ }
+
+ public void clearQueryInput() {
+ queryMetalakeInput.sendKeys(
+ Keys.chord(Keys.HOME, Keys.chord(Keys.SHIFT, Keys.END), Keys.DELETE));
+ queryMetalakeInput.clear();
+ }
+
+ public void clickInUseSwitch(String name) {
+ try {
+ // Find and hover over the Settings icon to open the dropdown menu
+ String settingsXpath = "//a[@data-refer='settings-metalake-" + name + "']";
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement settingsIcon =
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(settingsXpath)));
+
+ // Use Actions to hover over the settings icon to trigger the dropdown
+ new Actions(driver).moveToElement(settingsIcon).perform();
+ Thread.sleep(1000);
+
+ // Wait for dropdown menu to appear and click on the "Not In-Use" or "In-Use" menu item
+ String menuItemXpath =
+ "//ul[contains(@class, 'ant-dropdown-menu')]//li[contains(@class, 'ant-dropdown-menu-item')]//span[contains(text(), 'Not In-Use') or contains(text(), 'In-Use')]";
+ WebElement menuItem =
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(menuItemXpath)));
+ menuItem.click();
+ Thread.sleep(500);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void clickDeleteMetalakeBtn(String name) {
+ try {
+ String xpath = "//a[@data-refer='delete-metalake-" + name + "']";
+ clickAndWait(By.xpath(xpath));
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void clickViewMetalakeBtn(String name) {
+ try {
+ String xpath = "//a[@data-refer='view-metalake-" + name + "']";
+ clickAndWait(By.xpath(xpath));
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void clickEditMetalakeBtn(String name) {
+ try {
+ String xpath = "//a[@data-refer='edit-metalake-" + name + "']";
+ clickAndWait(By.xpath(xpath));
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void clickMetalakeLink(String name) {
+ try {
+ setQueryParams(name);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+ String xpath = "//a[@data-refer='metalake-link-" + name + "']";
+ WebElement metalakeLink =
+ wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
+ clickAndWait(metalakeLink);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public void setMetalakeProps(int index, String key, String value) {
+ // Set the indexed props key
+ String keyPath = "//*[@data-refer='props-key-" + index + "']//input";
+ WebElement keyInput = driver.findElement(By.xpath(keyPath));
+ keyInput.sendKeys(key);
+
+ // Set the indexed props value
+ String valuePath = "//*[@data-refer='props-value-" + index + "']//input";
+ WebElement valueInput = driver.findElement(By.xpath(valuePath));
+ valueInput.sendKeys(value);
+ }
+
+ public boolean checkIsErrorName() throws InterruptedException {
+ try {
+ List<WebElement> errorText =
+ metalakeNameField.findElements(
+ By.xpath("//div[contains(@class, 'ant-form-item-explain-error')]"));
+
+ return !errorText.isEmpty();
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ } finally {
+ clickAndWait(cancelHandleMetalakeBtn);
+ }
+ }
+
+ public boolean verifyCreateMetalake(String name) {
+ try {
+ // Get the created metalake row element from Ant Design Table by name.
+ String rowPath = "//tr[@data-row-key='" + name + "']";
+ WebElement createdMetalakeRow = driver.findElement(By.xpath(rowPath));
+ boolean isRow = createdMetalakeRow.isDisplayed();
+
+ // Get and verify the created metalake link from Table row item by name.
+ String linkPath = "//a[@data-refer='metalake-link-" + name + "']";
+ WebElement createdMetalakeLink = driver.findElement(By.xpath(linkPath));
+ boolean isLink = createdMetalakeLink.isDisplayed();
+ boolean isText = Objects.equals(createdMetalakeLink.getText(), name);
+
+ return isRow && isLink && isText;
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
+ public boolean verifyEditedMetalake(String name) {
+ try {
+ String xpath = "//a[@data-refer='metalake-link-" + name + "']";
+ WebElement editedMetalakeLink = driver.findElement(By.xpath(xpath));
+
+ // Check if the link text is match with name
+ return Objects.equals(editedMetalakeLink.getText(), name);
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
+ public void confirmDeleteMetalake(String name) {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
+ WebElement inputElement =
+ wait.until(ExpectedConditions.elementToBeClickable(confirmDeleteInput));
+ inputElement.sendKeys(name);
+ clickAndWait(confirmDeleteBtn);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ public boolean verifyEmptyMetalake() {
+ try {
+ // Wait for the table to refresh after deletion
+ Thread.sleep(2000);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ // Wait for the empty state element to be visible
+ WebElement emptyElement =
+ wait.until(
+ ExpectedConditions.visibilityOfElementLocated(
+ By.xpath(
+ "//div[@data-refer='metalake-table-grid']//div[contains(@class, 'ant-empty')]")));
+ boolean isNoRows = emptyElement.isDisplayed();
+
+ if (!isNoRows) {
+ LOG.error("Empty state not displayed");
+ return false;
+ }
+
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyChangePagination() {
+ try {
+ // Wait for the table to fully load
+ Thread.sleep(1000);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+
+ // First check if the table has data
+ WebElement tableBody =
+ wait.until(
+ ExpectedConditions.visibilityOfElementLocated(
+ By.xpath(
+ "//div[@data-refer='metalake-table-grid']//div[contains(@class, 'ant-table-body')]//table/tbody")));
+
+ // Count the rows in the table
+ List<WebElement> rows = tableBody.findElements(By.xpath(".//tr[@data-row-key]"));
+ LOG.info("Found {} rows in the current page", rows.size());
+
+ // Debug: Print out any elements with pagination-related classes
+ List<WebElement> anyPagination = driver.findElements(By.cssSelector("[class*='pagination']"));
+ LOG.info("Found {} elements with 'pagination' in class name", anyPagination.size());
+ for (WebElement el : anyPagination) {
+ LOG.info(" - Element: {}, class: {}", el.getTagName(), el.getAttribute("class"));
+ }
+
+ // Try to find pagination using CSS selector (more reliable for Antd)
+ List<WebElement> paginationElements =
+ driver.findElements(By.cssSelector("ul.ant-pagination"));
+
+ if (paginationElements.isEmpty()) {
+ // Fallback: try xpath
+ paginationElements =
+ driver.findElements(By.xpath("//ul[contains(@class, 'ant-pagination')]"));
+ }
+
+ if (paginationElements.isEmpty()) {
+ LOG.error("No pagination found even though we have {} rows", rows.size());
+ // If no pagination and 10 or fewer rows, that's expected
+ if (rows.size() <= 10) {
+ LOG.info("Less than or equal to 10 rows, pagination not needed - returning true");
+ return true;
+ }
+ return false;
+ }
+
+ LOG.info("Found {} pagination elements", paginationElements.size());
+ WebElement paginationContainer = paginationElements.get(0);
+
+ // Find and click the next page button
+ WebElement nextBtn =
+ paginationContainer.findElement(
+ By.xpath(".//li[contains(@class, 'ant-pagination-next')]/button"));
+
+ // Check if next button is enabled (not disabled)
+ String disabledAttr = nextBtn.getAttribute("disabled");
+ if (disabledAttr != null) {
+ LOG.info("Next page button is disabled - only one page of data");
+ return rows.size() > 0;
+ }
+
+ nextBtn.click();
+ Thread.sleep(1000);
+
+ // Check if the previous page button is now enabled
+ WebElement prevBtn =
+ paginationContainer.findElement(
+ By.xpath(".//li[contains(@class, 'ant-pagination-prev')]/button"));
+
+ boolean isPrevEnabled = prevBtn.getAttribute("disabled") == null;
+
+ if (isPrevEnabled) {
+ prevBtn.click();
+ Thread.sleep(500);
+ return true;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ private boolean performPrevPageAction() {
+ try {
+ clickAndWait(prevPageBtn);
+ return true;
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
+ public boolean verifyQueryMetalake(String name) {
+ try {
+ setQueryParams(name);
+ // Wait for the table to filter
+ Thread.sleep(1000);
+
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+
+ // Wait for the table body to be present and find the metalake link with the searched name
+ String metalakeLinkXpath = "//a[@data-refer='metalake-link-" + name + "']";
+ WebElement metalakeLink =
+ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(metalakeLinkXpath)));
+
+ // Check if the metalake link is displayed and contains the correct name
+ boolean isQueried = metalakeLink.isDisplayed() && metalakeLink.getText().equals(name);
+
+ if (isQueried) {
+ clearQueryInput();
+ Thread.sleep(500);
+ return true;
+ } else {
+ LOG.error(
+ "Query result does not match: expected {} but got {}", name, metalakeLink.getText());
+ return false;
+ }
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyLinkToCatalogsPage(String name) throws InterruptedException {
+ try {
+ // Wait for the catalogs page to load
+ Thread.sleep(1000);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+
+ // Wait for the URL to contain metalake name
+ wait.until(ExpectedConditions.urlContains("metalake=" + name));
+
+ // Verify the URL contains the metalake name
+ String currentUrl = driver.getCurrentUrl();
+ if (!currentUrl.contains(name)) {
+ LOG.error("Current URL does not contain metalake name: {}", currentUrl);
+ return false;
+ }
+
+ // Wait for the metalake name link in breadcrumb to be visible
+ WebElement metalakeLink =
+ wait.until(
+ ExpectedConditions.visibilityOfElementLocated(
+ By.xpath("//*[@data-refer='metalake-name-link']")));
+
+ if (!metalakeLink.getText().contains(name)) {
+ LOG.error(
+ "Metalake name link text does not match: expected {} but got {}",
+ name,
+ metalakeLink.getText());
+ return false;
+ }
+
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ } finally {
+ // Navigate back to metalakes page
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ WebElement backBtn =
+ wait.until(
+ ExpectedConditions.elementToBeClickable(
+ By.xpath("//*[@data-refer='back-home-btn']")));
+ backBtn.click();
+ Thread.sleep(1000);
+ }
+ }
+
+ public boolean verifyRefreshPage() {
+ try {
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ wait.until(
+ webDriver ->
+ ((JavascriptExecutor) webDriver)
+ .executeScript("return document.readyState")
+ .equals("complete"));
+ String pageTitle = metalakePageTitle.getText();
+ boolean isPageTitle = pageTitle.equals(PAGE_TITLE);
+ if (!isPageTitle) {
+ LOG.error("No match with title, get {}", pageTitle);
+ return false;
+ }
+ List<WebElement> dataList = dataViewer.findElements(By.xpath(".//tr//td[1]"));
+ if (dataList.isEmpty()) {
+ LOG.error("Table List should not be empty");
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ public boolean verifyLinkInNewWindow(
+ String originalWindowHandle, String expectedUrl, boolean contains) {
+ try {
+ Set<String> allWindowHandles = driver.getWindowHandles();
+ for (String windowHandle : allWindowHandles) {
+ if (!windowHandle.equals(originalWindowHandle)) {
+ driver.switchTo().window(windowHandle);
+ break;
+ }
+ }
+
+ String actualUrl = driver.getCurrentUrl();
+
+ if (contains) {
+ return expectedUrl.contains(actualUrl.replaceAll("/[^/]+/$", "/"));
+ }
+ return actualUrl.equals(expectedUrl);
+
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ return false;
+ } finally {
+ driver.close();
+ driver.switchTo().window(originalWindowHandle);
+ }
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/BaseWebIT.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/BaseWebIT.java
new file mode 100644
index 0000000000..c9b2697304
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/BaseWebIT.java
@@ -0,0 +1,134 @@
+/*
+ * 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.
+ */
+package org.apache.gravitino.integration.test.web.ui.utils;
+
+import com.google.common.base.Function;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import org.apache.gravitino.integration.test.util.BaseIT;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.BeforeEach;
+import org.openqa.selenium.By;
+import org.openqa.selenium.ElementClickInterceptedException;
+import org.openqa.selenium.InvalidArgumentException;
+import org.openqa.selenium.JavascriptExecutor;
+import org.openqa.selenium.NoSuchElementException;
+import org.openqa.selenium.TimeoutException;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+import org.openqa.selenium.interactions.Actions;
+import org.openqa.selenium.support.ui.ExpectedConditions;
+import org.openqa.selenium.support.ui.FluentWait;
+import org.openqa.selenium.support.ui.Wait;
+import org.openqa.selenium.support.ui.WebDriverWait;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+// AbstractWebIT provides a WebDriver instance for WEB UI tests.
+public class BaseWebIT extends BaseIT {
+ protected static final Logger LOG = LoggerFactory.getLogger(BaseWebIT.class);
+ protected WebDriver driver;
+
+ // https://www.selenium.dev/documentation/webdriver/waits/#implicit-waits
+ protected static final long MAX_IMPLICIT_WAIT = 30;
+ protected static final long MAX_TIMEOUT = 60;
+ protected static final long EACH_TEST_SLEEP = 1;
+ protected static final long ACTION_SLEEP = 1;
+
+ protected boolean waitShowText(final String text, final Object locator) {
+ try {
+ return text.equals(locatorElement(locator).getText());
+ } catch (TimeoutException e) {
+ return false;
+ }
+ }
+
+ protected void mouseMoveTo(final Object locator) {
+ Actions action = new Actions(driver);
+ action.moveToElement(locatorElement(locator)).perform();
+ }
+
+ protected WebElement pollingWait(final By locator, final long maxTimeout) {
+ Wait<WebDriver> wait =
+ new FluentWait<>(driver)
+ .withTimeout(Duration.of(maxTimeout, ChronoUnit.SECONDS))
+ .pollingEvery(Duration.of(1, ChronoUnit.SECONDS))
+ .ignoring(NoSuchElementException.class);
+
+ return wait.until((Function<WebDriver, WebElement>) driver -> driver.findElement(locator));
+ }
+
+ protected void clickAndWait(final Object locator) throws InterruptedException {
+ try {
+ // wait the element is available
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
+ wait.until(ExpectedConditions.visibilityOf(locatorElement(locator)));
+ wait.until(ExpectedConditions.elementToBeClickable(locatorElement(locator)));
+
+ locatorElement(locator).click();
+ Thread.sleep(ACTION_SLEEP * 1000);
+ } catch (ElementClickInterceptedException e) {
+ // if the previous click did not effected then try clicking in another way
+ Actions action = new Actions(driver);
+ action.moveToElement(locatorElement(locator)).click().build().perform();
+ Thread.sleep(ACTION_SLEEP * 1000);
+ }
+ }
+
+ protected void reloadPageAndWait() {
+ driver.navigate().refresh();
+ new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT))
+ .until(
+ d ->
+ "complete"
+ .equals(((JavascriptExecutor) d).executeScript("return document.readyState")));
+ }
+
+ WebElement locatorElement(final Object locatorOrElement) {
+ WebElement element;
+ if (locatorOrElement instanceof By) {
+ element = pollingWait((By) locatorOrElement, MAX_IMPLICIT_WAIT);
+ } else if (locatorOrElement instanceof WebElement) {
+ element = (WebElement) locatorOrElement;
+ } else {
+ throw new InvalidArgumentException("The provided argument is neither a By nor a WebElement");
+ }
+ return element;
+ }
+
+ @BeforeEach
+ public void beforeEachTest() {
+ try {
+ Thread.sleep(EACH_TEST_SLEEP * 1000);
+ } catch (Exception e) {
+ LOG.error(e.getMessage(), e);
+ }
+ }
+
+ @BeforeAll
+ public void startUp() {
+ driver = WebDriverManager.getWebDriver(getGravitinoServerPort());
+ }
+
+ @AfterAll
+ public void tearDown() {
+ driver.quit();
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/ChromeWebDriverProvider.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/ChromeWebDriverProvider.java
new file mode 100644
index 0000000000..3a2d5c3825
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/ChromeWebDriverProvider.java
@@ -0,0 +1,178 @@
+/*
+ * 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.
+ */
+package org.apache.gravitino.integration.test.web.ui.utils;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URL;
+import java.time.Instant;
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.lang3.SystemUtils;
+import org.apache.gravitino.integration.test.util.ITUtils;
+import org.apache.logging.log4j.util.Strings;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.chrome.ChromeDriver;
+import org.openqa.selenium.chrome.ChromeOptions;
+import org.rauschig.jarchivelib.ArchiveFormat;
+import org.rauschig.jarchivelib.Archiver;
+import org.rauschig.jarchivelib.ArchiverFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+// ChromeWebDriverProvider provides a ChromeDriver instance for WEB UI tests.
+public class ChromeWebDriverProvider implements WebDriverProvider {
+ protected static final Logger LOG = LoggerFactory.getLogger(ChromeWebDriverProvider.class);
+ private final String chromeDriverBinName;
+ private final String chromeBinName;
+ private static final String downLoadDir =
+ ITUtils.joinPath(System.getenv("IT_PROJECT_DIR"), "chrome");
+
+ public ChromeWebDriverProvider() {
+ if (SystemUtils.IS_OS_MAC_OSX) {
+ this.chromeDriverBinName = ITUtils.joinPath("chromedriver-mac-x64", "chromedriver");
+ this.chromeBinName = ITUtils.joinPath("chrome-mac-x64", "Google Chrome for Testing.app");
+ } else if (SystemUtils.IS_OS_LINUX) {
+ this.chromeDriverBinName = ITUtils.joinPath("chromedriver-linux64", "chromedriver");
+ this.chromeBinName = ITUtils.joinPath("chrome-linux64", "chrome");
+ } else if (SystemUtils.IS_OS_WINDOWS) {
+ this.chromeDriverBinName = ITUtils.joinPath("chromedriver-win64", "chromedriver.exe");
+ this.chromeBinName = ITUtils.joinPath("chrome-win64", "chrome.exe");
+ } else {
+ throw new RuntimeException("Unsupported OS : " + SystemUtils.OS_NAME);
+ }
+ }
+
+ @Override
+ public void downloadWebDriver() {
+ // Chrome for Testing release list:
+ // https://googlechromelabs.github.io/chrome-for-testing/
+ String chromeDownloadURL = "", chromeDriverDownloadURL = "";
+ String chromeZipFile = "", chromeDriverZipFile = "";
+ if (SystemUtils.IS_OS_LINUX) {
+ chromeZipFile = "chrome-linux64.zip";
+ chromeDownloadURL =
+ "https://storage.googleapis.com/chrome-for-testing-public/145.0.7632.46/linux64/chrome-linux64.zip";
+
+ chromeDriverZipFile = "chromedriver-linux64.zip";
+ chromeDriverDownloadURL =
+ "https://storage.googleapis.com/chrome-for-testing-public/145.0.7632.46/linux64/chromedriver-linux64.zip";
+ } else if (SystemUtils.IS_OS_MAC_OSX) {
+ chromeZipFile = "chrome-mac-x64.zip";
+ chromeDownloadURL =
+ "https://storage.googleapis.com/chrome-for-testing-public/145.0.7632.46/mac-x64/chrome-mac-x64.zip";
+
+ chromeDriverZipFile = "chromedriver-mac-x64.zip";
+ chromeDriverDownloadURL =
+ "https://storage.googleapis.com/chrome-for-testing-public/145.0.7632.46/mac-x64/chromedriver-mac-x64.zip";
+ } else if (SystemUtils.IS_OS_WINDOWS) {
+ chromeZipFile = "chrome-win64.zip";
+ chromeDownloadURL =
+ "https://storage.googleapis.com/chrome-for-testing-public/145.0.7632.46/win64/chrome-win64.zip";
+
+ chromeDriverZipFile = "chromedriver-win64.zip";
+ chromeDriverDownloadURL =
+ "https://storage.googleapis.com/chrome-for-testing-public/145.0.7632.46/win64/chromedriver-win64.zip";
+ }
+
+ downloadZipFile(chromeDriverDownloadURL, chromeDriverZipFile, chromeDriverBinName);
+ downloadZipFile(chromeDownloadURL, chromeZipFile, chromeBinName);
+
+ LOG.info("Download the chromeDriver to {} successfully.", downLoadDir);
+ }
+
+ @Override
+ public WebDriver createWebDriver() {
+ System.setProperty(
+ "webdriver.chrome.driver", ITUtils.joinPath(downLoadDir, chromeDriverBinName));
+ ChromeOptions chromeOptions = new ChromeOptions();
+
+ // Display the web interface during testing
+ if (Strings.isEmpty(System.getenv("DISPLAY_WEBPAGE_IN_TESTING"))) {
+ // Use --headless=new for the modern headless mode (Chrome 112+)
+ // which has a much more stable renderer than the legacy --headless mode.
+ chromeOptions.addArguments("--headless=new");
+ chromeOptions.addArguments("--no-sandbox");
+ chromeOptions.addArguments("--disable-dev-shm-usage");
+ chromeOptions.addArguments("--disable-gpu");
+ }
+
+ if (SystemUtils.IS_OS_MAC_OSX) {
+ chromeOptions.setBinary(
+ ITUtils.joinPath(
+ downLoadDir, chromeBinName, "Contents", "MacOS", "Google Chrome for Testing"));
+ } else {
+ chromeOptions.setBinary(ITUtils.joinPath(downLoadDir, chromeBinName));
+ }
+
+ return new ChromeDriver(chromeOptions);
+ }
+
+ // Be careful, fileName contains directory path.
+ private void downloadZipFile(String url, String zipFileName, String fileName) {
+ File targetFile = new File(downLoadDir, fileName);
+ if (targetFile.exists() && LOG.isInfoEnabled()) {
+ LOG.info("The file {} already exists, skip download.", targetFile.getAbsolutePath());
+ return;
+ }
+
+ Instant limit = Instant.now().plusSeconds(120);
+ int retryNum = 0;
+ IOException last = null;
+
+ while (retryNum < 3 && Instant.now().isBefore(limit)) {
+ String downLoadTmpDir =
+ ITUtils.joinPath(
+ System.getenv("IT_PROJECT_DIR"),
+ String.format("chrome-%d", Instant.now().toEpochMilli()));
+ try {
+ LOG.info("Download the zip file from {} to {}", url, downLoadTmpDir);
+ File chromeDriverZip = new File(downLoadTmpDir, zipFileName);
+ FileUtils.copyURLToFile(new URL(url), chromeDriverZip, 30000, 30000);
+
+ LOG.info(
+ "Extract the zip file from "
+ + chromeDriverZip.getAbsolutePath()
+ + " to "
+ + downLoadTmpDir);
+ Archiver archiver = ArchiverFactory.createArchiver(ArchiveFormat.ZIP);
+ archiver.extract(chromeDriverZip, new File(downLoadTmpDir));
+
+ // fileName contains directory path like "chrome-linux64/chrome", there's an assumption
+ // that the zip file is extracted to the firstPath "chrome-linux64"
+ String firstPath = ITUtils.splitPath(fileName)[0];
+ LOG.info("filename:{}, firstPath:{}, {}", fileName, firstPath, ITUtils.splitPath(fileName));
+ File unzipFile = new File(downLoadTmpDir, firstPath);
+ File dstFile = new File(downLoadDir);
+ LOG.info(
+ "Move file from " + unzipFile.getAbsolutePath() + " to " + dstFile.getAbsolutePath());
+ FileUtils.moveToDirectory(unzipFile, dstFile, true);
+ LOG.info("Download the zip file from {} to {} successfully.", url, downLoadDir);
+ return;
+ } catch (IOException e) {
+ LOG.error("Download of: {}, failed in path {}", url, downLoadDir, e);
+ retryNum += 1;
+ last = e;
+ } finally {
+ LOG.info("Remove temp directory: {}", downLoadTmpDir);
+ FileUtils.deleteQuietly(new File(downLoadTmpDir));
+ }
+ }
+ throw new RuntimeException(last);
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverManager.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverManager.java
new file mode 100644
index 0000000000..e121d9c622
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverManager.java
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+package org.apache.gravitino.integration.test.web.ui.utils;
+
+import java.time.Duration;
+import org.openqa.selenium.By;
+import org.openqa.selenium.Dimension;
+import org.openqa.selenium.TimeoutException;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.support.ui.WebDriverWait;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+// WebDriverManager manage the multiple web drivers to run the WEB UI tests.
+public class WebDriverManager {
+ public static final Logger LOG = LoggerFactory.getLogger(WebDriverManager.class);
+
+ public static WebDriver getWebDriver(int port) {
+ String url = String.format("http://127.0.0.1:%d", port);
+
+ WebDriverProvider provide = new ChromeWebDriverProvider();
+ WebDriver driver = generateWebDriver(provide);
+ driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(BaseWebIT.MAX_IMPLICIT_WAIT));
+ driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(BaseWebIT.MAX_TIMEOUT));
+ driver.get(url);
+
+ // wait for webpage load compiled.
+ try {
+ (new WebDriverWait(driver, Duration.ofSeconds(BaseWebIT.MAX_TIMEOUT)))
+ .until(
+ d -> {
+ String gravitinoVersion = d.findElement(By.id("gravitino_version")).getText();
+ String projectVersion = System.getenv("PROJECT_VERSION");
+ return projectVersion.equalsIgnoreCase(gravitinoVersion);
+ });
+ } catch (TimeoutException e) {
+ LOG.info("Exception in WebDriverManager while WebDriverWait ", e);
+ throw new RuntimeException(e);
+ }
+
+ Dimension d = new Dimension(1440, 1080);
+ driver.manage().window().setSize(d);
+
+ return driver;
+ }
+
+ private static WebDriver generateWebDriver(WebDriverProvider provide) {
+ provide.downloadWebDriver();
+ WebDriver driver = provide.createWebDriver();
+ return driver;
+ }
+}
diff --git a/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverProvider.java b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverProvider.java
new file mode 100644
index 0000000000..74e51b46db
--- /dev/null
+++ b/web-v2/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverProvider.java
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+package org.apache.gravitino.integration.test.web.ui.utils;
+
+import org.openqa.selenium.WebDriver;
+
+// WebDriverProvider is an interface for WEB Driver provider.
+public interface WebDriverProvider {
+
+ /** Download the browser web driver. */
+ public void downloadWebDriver();
+
+ /** create a new browser web driver */
+ public WebDriver createWebDriver();
+}
diff --git a/web-v2/integration-test/src/test/resources/log4j2.properties b/web-v2/integration-test/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..b7e3cb8ef2
--- /dev/null
+++ b/web-v2/integration-test/src/test/resources/log4j2.properties
@@ -0,0 +1,73 @@
+#
+# 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.
+#
+
+# Set to debug or trace if log4j initialization is failing
+status = info
+
+# Name of the configuration
+name = ConsoleLogConfig
+
+# Console appender configuration
+appender.console.type = Console
+appender.console.name = consoleLogger
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p [%t] %c{1}:%L - %m%n
+
+# Log files location
+property.logPath = ${sys:gravitino.log.path:-build/integration-test.log}
+
+# File appender configuration
+appender.file.type = File
+appender.file.name = fileLogger
+appender.file.fileName = ${logPath}
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n
+
+# Root logger level
+rootLogger.level = info
+
+# Root logger referring to console and file appenders
+rootLogger.appenderRef.stdout.ref = consoleLogger
+rootLogger.appenderRef.file.ref = fileLogger
+
+# File appender configuration for testcontainers
+appender.testcontainersFile.type = File
+appender.testcontainersFile.name = testcontainersLogger
+appender.testcontainersFile.fileName = build/testcontainers.log
+appender.testcontainersFile.layout.type = PatternLayout
+appender.testcontainersFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n
+
+# Logger for testcontainers
+logger.testcontainers.name = org.testcontainers
+logger.testcontainers.level = debug
+logger.testcontainers.additivity = false
+logger.testcontainers.appenderRef.file.ref = testcontainersLogger
+
+logger.tc.name = tc
+logger.tc.level = debug
+logger.tc.additivity = false
+logger.tc.appenderRef.file.ref = testcontainersLogger
+
+logger.docker.name = com.github.dockerjava
+logger.docker.level = warn
+logger.docker.additivity = false
+logger.docker.appenderRef.file.ref = testcontainersLogger
+
+logger.http.name = com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire
+logger.http.level = off
\ No newline at end of file
diff --git a/web-v2/web/.editorconfig b/web-v2/web/.editorconfig
new file mode 100644
index 0000000000..52b13f8af0
--- /dev/null
+++ b/web-v2/web/.editorconfig
@@ -0,0 +1,34 @@
+#
+# 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.
+#
+
+# Editor configuration, see http://editorconfig.org
+root = true
+[*]
+charset = utf-8
+end_of_line = lf
+indent_style = space
+indent_size = 2
+insert_final_newline = true
+trim_trailing_whitespace = true
+[*.md]
+max_line_length = off
+trim_trailing_whitespace = false
+[*.yml]
+[*.{yml,yaml}]
+indent_size = 2
diff --git a/web-v2/web/.env b/web-v2/web/.env
new file mode 100644
index 0000000000..e3900338da
--- /dev/null
+++ b/web-v2/web/.env
@@ -0,0 +1,26 @@
+#
+# 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.
+#
+
+OUTPUT_MODE=standalone
+NEXT_TELEMETRY_DISABLED=1
+# Development ENV
+NEXT_PUBLIC_BASE_PATH=''
+NEXT_PUBLIC_API_URL=http://localhost:8090
+NEXT_PUBLIC_OAUTH_URI=http://localhost:9000
+NEXT_PUBLIC_OAUTH_PATH=/oauth2/token
diff --git a/web-v2/web/.env.analyze b/web-v2/web/.env.analyze
new file mode 100644
index 0000000000..6f1d95be81
--- /dev/null
+++ b/web-v2/web/.env.analyze
@@ -0,0 +1,26 @@
+#
+# 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.
+#
+
+ANALYZE=true
+OUTPUT_MODE=export
+NEXT_TELEMETRY_DISABLED=1
+# Development ENV
+NEXT_PUBLIC_API_URL=http://localhost:8090
+NEXT_PUBLIC_OAUTH_URI=http://localhost:9000
+NEXT_PUBLIC_OAUTH_PATH=/oauth2/token
diff --git a/web-v2/web/.env.static b/web-v2/web/.env.static
new file mode 100644
index 0000000000..3e4e094bb3
--- /dev/null
+++ b/web-v2/web/.env.static
@@ -0,0 +1,28 @@
+#
+# 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.
+#
+
+OUTPUT_MODE=export
+DIST_DIR=dist/ui
+BASE_PATH=/ui
+NEXT_TELEMETRY_DISABLED=1
+# Development ENV
+NEXT_PUBLIC_BASE_PATH=/ui
+NEXT_PUBLIC_API_URL=http://localhost:8090
+NEXT_PUBLIC_OAUTH_URI=http://localhost:9000
+NEXT_PUBLIC_OAUTH_PATH=/oauth2/token
diff --git a/web-v2/web/.gitignore b/web-v2/web/.gitignore
new file mode 100644
index 0000000000..6c63ce67aa
--- /dev/null
+++ b/web-v2/web/.gitignore
@@ -0,0 +1,61 @@
+#
+# 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.
+#
+
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+.yarn-integrity
+.yarn/
+.pnp.*
+/.gradle
+/.node
+
+# testing
+/coverage
+
+# next.js
+/.next/
+/out/
+/dist/
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.pnpm-debug.log*
+
+# local env files
+.env*.local
+
+# vercel
+.vercel
+
+# typescript
+*.tsbuildinfo
+next-env.d.ts
diff --git a/web-v2/web/.npmrc b/web-v2/web/.npmrc
new file mode 100644
index 0000000000..fc50aaa15c
--- /dev/null
+++ b/web-v2/web/.npmrc
@@ -0,0 +1,20 @@
+#
+# 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.
+#
+
+engine-strict=true
diff --git a/web-v2/web/.nvmrc b/web-v2/web/.nvmrc
new file mode 100644
index 0000000000..9a21e52aac
--- /dev/null
+++ b/web-v2/web/.nvmrc
@@ -0,0 +1,21 @@
+#
+# 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.
+#
+
+# v18
+lts/hydrogen
diff --git a/web-v2/web/.prettierignore b/web-v2/web/.prettierignore
new file mode 100644
index 0000000000..e7404f38ab
--- /dev/null
+++ b/web-v2/web/.prettierignore
@@ -0,0 +1,27 @@
+#
+# 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.
+#
+
+.next
+.vscode
+dist*
+node_modules
+tsconfig.json
+package-lock.json
+pnpm-lock.yaml
+yarn.lock
diff --git a/web-v2/web/.prettierrc.js b/web-v2/web/.prettierrc.js
new file mode 100644
index 0000000000..0405f45f43
--- /dev/null
+++ b/web-v2/web/.prettierrc.js
@@ -0,0 +1,37 @@
+/*
+ * 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.
+ */
+
+module.exports = {
+ printWidth: 120,
+ tabWidth: 2,
+ useTabs: false,
+ semi: false,
+ singleQuote: true,
+ quoteProps: 'as-needed',
+ jsxSingleQuote: true,
+ bracketSpacing: true,
+ arrowParens: 'avoid',
+ endOfLine: 'lf',
+ requirePragma: false,
+ htmlWhitespaceSensitivity: 'css',
+ insertPragma: false,
+ bracketSameLine: false,
+ proseWrap: 'preserve',
+ trailingComma: 'none'
+}
diff --git a/web-v2/web/LICENSE b/web-v2/web/LICENSE
new file mode 100644
index 0000000000..b9c7d2775c
--- /dev/null
+++ b/web-v2/web/LICENSE
@@ -0,0 +1,216 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed 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.
+
+
+ This product bundles various third-party components also under the
+ Apache Software License 2.0.
+
+ Apache Zeppelin
+ ./web/web/WEB-INF/web.xml
+
+ This product bundles various third-party components also under the
+ MIT license.
+
+ Vben
+ ./src/lib/utils/axios
+ ./src/lib/enums/httpEnum.js
+ ./src/lib/utils/index.js (parts of)
diff --git a/web-v2/web/LICENSE.bin b/web-v2/web/LICENSE.bin
new file mode 100644
index 0000000000..23660785c3
--- /dev/null
+++ b/web-v2/web/LICENSE.bin
@@ -0,0 +1,869 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed 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.
+
+
+ This product bundles various third-party components also under the
+ Apache Software License 2.0.
+
+ Apache Zeppelin
+ ./web/web/WEB-INF/web.xml
+
+ @humanwhocodes/config-array
+ @humanwhocodes/module-importer
+ @juggle/resize-observer
+ @pkgjs/parseargs
+ @swc/counter
+ @swc/helpers
+ aira-query
+ axobject-query
+ didyoumean
+ doctrine
+ eslint-visitor-keys
+ human-signals
+ oidc-client-ts
+ ts-interface-checker
+ typescript
+
+ This product bundles various third-party components also under the
+ MIT license.
+
+ Vben
+ ./web/lib/utils/axios
+ ./web/lib/enums/httpEnum.js
+ ./web/lib/utils/index.js (parts of)
+
+ @aashutoshrathi/word-wrap
+ @alloc/quick-lru
+ @ant-design/colors
+ @ant-design/cssinjs
+ @ant-design/cssinjs-utils
+ @ant-design/fast-color
+ @ant-design/icons
+ @ant-design/icons-svg
+ @ant-design/react-slick
+ @antfu/install-pkg
+ @antfu/utils
+ @babel/code-frame
+ @babel/generator
+ @babel/helper-globals
+ @babel/helper-module-imports
+ @babel/helper-string-parser
+ @babel/helper-validator-identifier
+ @babel/highlight
+ @babel/parser
+ @babel/runtime
+ @babel/template
+ @babel/traverse
+ @babel/types
+ @ctrl/tinycolor
+ @discoveryjs/json-ext
+ @emotion/babel-plugin
+ @emotion/cache
+ @emotion/hash
+ @emotion/is-prop-valid
+ @emotion/memoize
+ @emotion/react
+ @emotion/serialize
+ @emotion/sheet
+ @emotion/styled
+ @emotion/unitless
+ @emotion/use-insertion-effect-with-fallbacks
+ @emotion/utils
+ @emotion/weak-memoize
+ @eslint-community/eslint-utils
+ @eslint-community/regexpp
+ @eslint/eslintrc
+ @eslint/js
+ @floating-ui/core
+ @floating-ui/dom
+ @floating-ui/react-dom
+ @floating-ui/utils
+ @hookform/resolvers
+ @iconify/react
+ @iconify/tools
+ @iconify/types
+ @iconify/utils
+ @jridgewell/gen-mapping
+ @jridgewell/resolve-uri
+ @jridgewell/set-array
+ @jridgewell/sourcemap-codec
+ @jridgewell/trace-mapping
+ @next/bundle-analyzer
+ @next/env
+ @next/eslint-plugin-next
+ @next/swc-darwin-arm64
+ @next/swc-linux-arm64-gnu
+ @next/swc-linux-arm64-musl
+ @next/swc-linux-x64-gnu
+ @next/swc-linux-x64-musl
+ @next/swc-win32-arm64-msvc
+ @next/swc-win32-ia32-msvc
+ @next/swc-win32-x64-msvc
+ @nodelib/fs.scandir
+ @nodelib/fs.stat
+ @nodelib/fs.walk
+ @popperjs/core
+ @rc-component/async-validator
+ @rc-component/color-picker
+ @rc-component/context
+ @rc-component/mini-decimal
+ @rc-component/mutate-observer
+ @rc-component/portal
+ @rc-component/qrcode
+ @rc-component/tour
+ @rc-component/trigger
+ @rc-component/util
+ @reduxjs/toolkit
+ @rushstack/eslint-patch
+ @types/hoist-non-react-statics
+ @types/js-cookie
+ @types/lodash
+ @types/lodash-es
+ @types/node
+ @types/parse-json
+ @types/prop-types
+ @types/qs
+ @types/react
+ @types/react-transition-group
+ @types/scheduler
+ @types/use-sync-external-store
+ @types/yauzl
+ @typescript-eslint/parser
+ @typescript-eslint/scope-manager
+ @typescript-eslint/types
+ @typescript-eslint/typescript-estree
+ @typescript-eslint/visitor-keys
+ @xobotyi/scrollbar-width
+ acorn
+ acorn-jsx
+ acorn-walk
+ ajv
+ ansi-regex
+ ansi-styles
+ any-promise
+ antd
+ arg
+ array-buffer-byte-length
+ array-includes
+ array-tree-filter
+ array-union
+ array.prototype.findlast
+ array.prototype.findlastindex
+ array.prototype.flat
+ array.prototype.flatmap
+ array.prototype.toreversed
+ array.prototype.tosorted
+ arraybuffer.prototype.slice
+ ast-types-flow
+ async-validator
+ asynckit
+ autoprefixer
+ available-typed-arrays
+ axios
+ babel-plugin-macros
+ balanced-match
+ binary-extensions
+ brace-expansion
+ braces
+ browserslist
+ buffer-crc32
+ busboy
+ call-bind
+ call-bind-apply-helpers
+ call-bound
+ callsites
+ camelcase-css
+ chalk
+ cheerio
+ chokidar
+ classnames
+ client-only
+ clsx
+ color-convert
+ color-name
+ combined-stream
+ commander
+ compute-scroll-into-view
+ concat-map
+ confbox
+ convert-source-map
+ copy-to-clipboard
+ cosmiconfig
+ cross-spawn
+ css-in-js-utils
+ css-tree
+ csso
+ csstype
+ data-view-buffer
+ data-view-byte-length
+ data-view-byte-offset
+ dayjs
+ debounce
+ debug
+ deep-is
+ define-data-property
+ delayed-stream
+ dequal
+ dir-glob
+ dlv
+ dom-helpers
+ dom-serializer
+ dunder-proto
+ duplexer
+ eastasianwidth
+ end-of-stream
+ enhanced-resolve
+ entities
+ env-cmd
+ error-ex
+ error-stack-parser
+ es-abstract
+ es-define-property
+ es-errors
+ es-iterator-helpers
+ es-object-atoms
+ es-set-tostringtag
+ es-shim-unscopables
+ es-to-primitive
+ esbuild
+ escalade
+ escape-string-regexp
+ eslint
+ eslint-config-next
+ eslint-config-prettier
+ eslint-import-resolver-node
+ eslint-module-utils
+ eslint-plugin-import
+ eslint-plugin-jsx-a11y
+ eslint-plugin-react
+ eslint-plugin-react-hooks
+ eslint-scope
+ execa
+ fast-color
+ fast-deep-equal
+ fast-glob
+ fast-json-stable-stringify
+ fast-levenshtein
+ fast-loops
+ fastest-stable-stringify
+ fd-slicer
+ file-entry-cache
+ fill-range
+ find-root
+ follow-redirects
+ for-each
+ form-data
+ fraction.js
+ fsevents
+ function-bind
+ function.prototype.name
+ functions-have-names
+ get-intrinsic
+ get-proto
+ get-stream
+ get-symbol-description
+ get-tsconfig
+ globals
+ globalthis
+ globby
+ goober
+ gopd
+ graphemer
+ gzip-size
+ has-bigints
+ has-flag
+ has-property-descriptors
+ has-proto
+ has-symbols
+ has-tostringtag
+ hasown
+ html-escaper
+ htmlparser2
+ ignore
+ immer
+ import-fresh
+ imurmurhash
+ inline-style-prefixer
+ internal-slot
+ is-array-buffer
+ is-arrayish
+ is-async-function
+ is-bigint
+ is-binary-path
+ is-boolean-object
+ is-callable
+ is-core-module
+ is-data-view
+ is-date-object
+ is-extglob
+ is-finalizationregistry
+ is-fullwidth-code-point
+ is-generator-function
+ is-glob
+ is-map
+ is-mobile
+ is-negative-zero
+ is-number
+ is-number-object
+ is-path-inside
+ is-plain-object
+ is-regex
+ is-set
+ is-shared-array-buffer
+ is-stream
+ is-string
+ is-symbol
+ is-typed-array
+ is-weakmap
+ is-weakref
+ is-weakset
+ isarray
+ iterator.prototype
+ jiti
+ js-cookie
+ js-tokens
+ js-yaml
+ jsdom
+ jsesc
+ json-buffer
+ json-parse-even-better-errors
+ json-schema-traverse
+ json-stable-stringify-without-jsonify
+ json2mq
+ jsx-ast-utils
+ jwt-decode
+ keyv
+ kolorist
+ language-tags
+ levn
+ lilconfig
+ lines-and-columns
+ local-minizlib
+ locate-path
+ lodash-es
+ lodash.merge
+ loose-envify
+ math-intrinsics
+ merge-stream
+ micromatch
+ mime-db
+ mime-types
+ mimic-fn
+ minimist
+ minizlib
+ mkdirp
+ mlly
+ mrmime
+ ms
+ mz
+ nanoid
+ next
+ next-themes
+ node-releases
+ normalize-path
+ normalize-range
+ npm-run-path
+ nprogress
+ object-assign
+ object-hash
+ object-inspect
+ object-keys
+ object.entries
+ object.fromentries
+ object.groupby
+ object.hasown
+ object.values
+ onetime
+ opener
+ optionator
+ p-limit
+ p-locate
+ parent-module
+ parse-json
+ parse5
+ parse5-htmlparser2-tree-adapter
+ path-exists
+ path-is-absolute
+ path-key
+ path-parse
+ path-type
+ pathe
+ pend
+ picomatch
+ pify
+ pirates
+ pkg-types
+ possible-typed-array-names
+ postcss
+ postcss-import
+ postcss-js
+ postcss-load-config
+ postcss-nested
+ postcss-value-parser
+ prelude-ls
+ prettier
+ prop-types
+ property-expr
+ proxy-from-env
+ pump
+ qrcode.react
+ queue-microtask
+ rc-cascader
+ rc-checkbox
+ rc-collapse
+ rc-dialog
+ rc-drawer
+ rc-dropdown
+ rc-field-form
+ rc-image
+ rc-input
+ rc-input-number
+ rc-mentions
+ rc-menu
+ rc-motion
+ rc-notification
+ rc-overflow
+ rc-pagination
+ rc-picker
+ rc-progress
+ rc-rate
+ rc-resize-observer
+ rc-segmented
+ rc-select
+ rc-slider
+ rc-steps
+ rc-switch
+ rc-table
+ rc-tabs
+ rc-textarea
+ rc-tooltip
+ rc-tree
+ rc-tree-select
+ rc-upload
+ rc-util
+ rc-virtual-list
+ react
+ react-antd-column-resize
+ react-dom
+ react-draggable
+ react-hook-form
+ react-hot-toast
+ react-is
+ react-redux
+ react-resizable
+ read-cache
+ readdirp
+ redux
+ redux-thunk
+ reflect.getprototypeof
+ regenerator-runtime
+ regexp.prototype.flags
+ reselect
+ resize-observer-polyfill
+ resolve
+ resolve-from
+ resolve-pkg-maps
+ reusify
+ rtl-css-js
+ run-parallel
+ safe-array-concat
+ safe-regex-test
+ scheduler
+ screenfull
+ scroll-into-view-if-needed
+ set-function-length
+ set-function-name
+ shebang-command
+ shebang-regex
+ side-channel
+ side-channel-list
+ side-channel-map
+ side-channel-weakmap
+ sirv
+ slash
+ stack-generator
+ stackframe
+ stacktrace-gps
+ stacktrace-js
+ streamsearch
+ string-convert
+ string-width
+ string-width-cjs
+ string.prototype.matchall
+ string.prototype.trim
+ string.prototype.trimend
+ string.prototype.trimstart
+ strip-ansi
+ strip-ansi-cjs
+ strip-bom
+ strip-final-newline
+ strip-json-comments
+ styled-jsx
+ stylis
+ sucrase
+ supports-color
+ supports-preserve-symlinks-flag
+ svgo
+ tailwind-merge
+ tailwindcss
+ tapable
+ thenify
+ thenify-all
+ thejoshwolfe-yauzl
+ throttle-debounce
+ tiny-case
+ to-fast-properties
+ to-regex-range
+ toggle-selection
+ toposort
+ totalist
+ ts-api-utils
+ tsconfig-paths
+ tsx
+ type-check
+ typed-array-buffer
+ typed-array-byte-length
+ typed-array-byte-offset
+ typed-array-length
+ ufo
+ unbox-primitive
+ undici-types
+ update-browserslist-db
+ use-resize-observer
+ use-sync-external-store
+ util-deprecate
+ vitest
+ webpack-bundle-analyzer
+ which-boxed-primitive
+ which-builtin-type
+ which-collection
+ which-typed-array
+ wrap-ansi
+ wrap-ansi-cjs
+ wrappy
+ ws
+ yallist
+ yocto-queue
+
+ This product bundles various third-party components also under the
+ CC BY 4.0 license.
+
+ caniuse-lite
+
+ This product bundles various third-party components also under the
+ CC0 1.0 Universal license.
+
+ language-subtag-registry
+
+ This product bundles various third-party components placed in the
+ public domain.
+
+ fast-shallow-equal
+ react-universal-interface
+
+ This product bundles various third-party components also under the
+ BSD 2-Clause license.
+
+ cheerio-select
+ css-select
+ css-what
+ damerau-levenshtein
+ domelementtype
+ domhandler
+ domutils
+ espree
+ esrecurse
+ estraverse
+ esutils
+ extract-zip
+ nth-check
+ uri-js
+
+ This product bundles various third-party components also under the
+ BSD 3-Clause license.
+
+ @humanwhocodes/object-schema
+ espree
+ hoist-non-react-statics
+ hyphenate-style-name
+ qs
+ react-transition-group
+ source-map
+ source-map-js
+
+ This product bundles various third-party components also under the
+ BSD-3-Clause and Apache-2.0 license.
+
+ chroma-js
+
+ This product bundles various third-party components also under the
+ ISC license.
+
+ @isaacs/cliui
+ @trysound/sax
+ @types/tar
+ @ungap/structured-clone
+ anymatch
+ boolbase
+ electron-to-chromium
+ eslint-import-resolver-typescript
+ fastq
+ flatted
+ foreground-child
+ fs-minipass
+ fs.realpath
+ glob
+ glob-parent
+ graceful-fs
+ inflight
+ inherits
+ isexe
+ lru-cache
+ lucide-react
+ minimatch
+ minipass
+ once
+ picocolors
+ qrcode.react
+ rimraf
+ semver
+ signal-exit
+ which
+ wrappy
+ yallist
+ yaml
+
+ This product bundles various third-party components also under the
+ CC0 1.0 license.
+
+ mdn-data
+ type-fest
+
+ This product bundles various third-party components also under the
+ Unlicense license.
+
+ nano-css
+ react-use
+ set-harmonic-interval
+ ts-easing
+
+ This product bundles various third-party components also under the
+ Python Software Foundation License version 2.
+
+ argparse
+
+ This product bundles various third-party components also under the
+ Mozilla Public License, version 2.0.
+
+ argparse
+
+ This product bundles various third-party components also under the
+ Blue Oak Model License version 1.0.0.
+
+ chownr
+ jackspeak
+ path-scurry
+
+ This product bundles various third-party components also under the
+ 0BSD license.
+
+ tslib
diff --git a/web-v2/web/NOTICE b/web-v2/web/NOTICE
new file mode 100644
index 0000000000..1dbdf0a120
--- /dev/null
+++ b/web-v2/web/NOTICE
@@ -0,0 +1,11 @@
+Apache Gravitino
+Copyright 2024 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+The initial code for the Gravitino project was donated
+to the ASF by Datastrato (https://datastrato.ai/) copyright 2023-2024.
+
+Apache Zeppelin
+Copyright 2016-2023 The Apache Software Foundation
diff --git a/web-v2/web/NOTICE.bin b/web-v2/web/NOTICE.bin
new file mode 100644
index 0000000000..b78d4871c0
--- /dev/null
+++ b/web-v2/web/NOTICE.bin
@@ -0,0 +1,11 @@
+Apache Gravitino
+Copyright 2025 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+The initial code for the Gravitino project was donated
+to the ASF by Datastrato (https://datastrato.ai/) copyright 2023-2024.
+
+Apache Zeppelin
+Copyright 2016-2023 The Apache Software Foundation
diff --git a/web-v2/web/README.md b/web-v2/web/README.md
new file mode 100644
index 0000000000..0ec24508d0
--- /dev/null
+++ b/web-v2/web/README.md
@@ -0,0 +1,149 @@
+<!--
+ 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.
+-->
+
+# Apache Gravitino Web UI
+
+> **ℹ️ Tips**
+>
+> Under normal circumstances, you only need to visit [http://localhost:8090](http://localhost:8090) if you're just using the web UI to manage the Apache Gravitino.
+>
+> You don't need to start the web development mode. If you need to modify the web part of the code, you can refer to the following document content for development and testing.
+
+---
+
+> **⚠️ Important**
+>
+> Before running commands, you must ensure that you are in the front-end directory `gravitino/web`. If not, run `cd web` first.
+
+---
+
+## Getting started
+
+### Preparation | framework & dependencies
+
+- [Node.js](https://nodejs.org)(v20.x+) & [npm](https://www.npmjs.com/) / [pnpm](https://pnpm.io/)
+- [React](https://react.dev/)
+- [Next.js](https://nextjs.org)
+- [MUI](https://mui.com/)
+- [tailwindcss](https://tailwindcss.com/)
+- [`react-redux`](https://react-redux.js.org/)
+
+> **TIP**
+>
+> You should use the `pnpm` package manager.
+>
+> **Requirements**
+>
+> Please make sure you use the node's LTS version
+> Before installing the **node_modules**, make sure you have files starting with a **dot(.eslintrc, .env etc.)**
+
+## Installation
+
+### Development environment
+
+- Run the below command in the console to install the required dependencies.
+
+```bash
+pnpm install
+```
+
+- After installing the modules start the development server with following command:
+
+```bash
+pnpm dev
+```
+
+- Visit <http://localhost:3000> to view the Gravitino Web UI in your browser. You can start editing the page such as `pages/index.js`. The page auto-updates as you edit the file.
+
+:::caution important
+The Gravitino Web UI only works in the latest version of the Chrome browser. You may encounter issues in other browsers.
+:::
+
+### Development scripts
+
+#### Lint and format styles
+
+This command runs ESLint to help you inspect the code. If errors occur, please make modifications based on the provided prompts.
+
+```bash
+pnpm lint
+```
+
+This command runs Prettier to help you check your code styles. You can manually fix the code when errors are shown, or use `pnpm format` to fix the code with Prettier CLI.
+
+```bash
+pnpm prettier:check
+```
+
+This command automatically formats the code.
+
+```bash
+pnpm format
+```
+
+#### Custom SVG icons
+
+If you need to add a custom icon, please add your SVG icon in the `./src/lib/icons/svg` directory and run the following command:
+
+```bash
+pnpm gen:icons
+```
+
+## Self-hosting deployment
+
+### Static HTML export
+
+```bash
+pnpm dist
+```
+
+The command `pnpm dist` allows you to export your app to static HTML, which runs standalone without the need for a Node.js server.
+
+`pnpm dist` will generate a `dist` directory, producing content for any static hosting service.
+
+## Docker
+
+Make sure you have installed the most recent version of [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/install/#scenario-two-install-the-compose-plugin). [Docker Desktop](https://www.docker.com/products/docker-desktop/) includes Docker Engine, Docker CLI, and Docker Compose.
+
+> **⚠️ Important**
+>
+> All commands in this document run in a `macOS` environment. If you are using a different operating system, you may encounter errors.
+
+Only use Docker to build the static `HTML\CSS\JS` files directory.
+
+Run the following commands in the console:
+
+```bash
+# ensure you are in the `web` directory
+docker run -it --rm --name gravitino-web-docker -v ${PWD}:/web -w /web node:20-slim /bin/bash -c "pnpm install && pnpm dist"
+docker run -it -p 3000:3000 -v ${PWD}:/web -w /web --name gravitino-web node:20-slim /bin/bash
+docker run -p 3000:3000 -v ${PWD}:/web --name gravitino-web node:20-slim /bin/bash -c "pnpm install && pnpm dist"
+```
+
+This command runs `pnpm install` to install the dependencies specified in the `package.json` file and then runs `pnpm dist` to export a static version of the application.
+The exported files are saved to the `dist` directory inside the container, and mounted in the `dist` directory in the current directory of the host machine.
+This means that the exported files are accessible on the host machine after running the command.
+
+If you also want to start a server to view the demo, please use the following code:
+
+```bash
+docker run -it --rm --name gravitino-web-docker -v ${PWD}:/web -p 3000:3000 -w /web node:20-slim /bin/bash -c "pnpm install && pnpm dev"
+```
+
+You can access the Gravitino Web UI by typing <http://localhost:3000> in your browser.
diff --git a/web-v2/web/WEB-INF/web.xml b/web-v2/web/WEB-INF/web.xml
new file mode 100644
index 0000000000..33837db9eb
--- /dev/null
+++ b/web-v2/web/WEB-INF/web.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ 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.
+ ~
+ ~ Referred from Apache Zeppelin's web.xml implementation
+ ~ zeppelin-web/src/WEB-INF/web.xml
+ -->
+
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ version="3.0">
+
+ <display-name>gravitino-web</display-name>
+
+ <error-page>
+ <error-code>404</error-code>
+ <location>/404.html</location>
+ </error-page>
+
+ <context-param>
+ <param-name>configuration</param-name>
+ <param-value>deployment</param-value>
+ </context-param>
+
+ <session-config>
+ <cookie-config>
+ <http-only>true</http-only>
+ <secure>true</secure>
+ </cookie-config>
+ </session-config>
+</web-app>
diff --git a/web-v2/web/build.gradle.kts b/web-v2/web/build.gradle.kts
new file mode 100644
index 0000000000..b6e79a8c98
--- /dev/null
+++ b/web-v2/web/build.gradle.kts
@@ -0,0 +1,74 @@
+/*
+ * 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 com.github.gradle.node.pnpm.task.PnpmTask
+
+plugins {
+ id("war")
+}
+
+tasks.withType(PnpmTask::class) {
+ workingDir.set(file("${project.projectDir}"))
+}
+
+tasks {
+ // Install dependencies
+ val installDeps by registering(PnpmTask::class) {
+ args = listOf("install")
+ }
+
+ // Check for lint errors
+ val lintCheck by registering(PnpmTask::class) {
+ dependsOn(installDeps)
+ args = listOf("lint")
+ }
+
+ // Check for prettier errors
+ val prettierCheck by registering(PnpmTask::class) {
+ dependsOn(installDeps)
+ args = listOf("prettier:check")
+ }
+
+ val webpack by registering(PnpmTask::class) {
+ dependsOn(lintCheck, prettierCheck)
+ args = listOf("dist")
+ environment.put("NODE_ENV", "production")
+ }
+
+ val buildWar by registering(War::class) {
+ dependsOn(webpack)
+ from("./WEB-INF") {
+ into("WEB-INF")
+ }
+ from("dist") {
+ into("")
+ }
+ }
+
+ build {
+ dependsOn(buildWar)
+ }
+
+ clean {
+ delete("build")
+ delete("dist")
+ delete("node_modules")
+ delete("yarn-error.log")
+ }
+}
diff --git a/web-v2/web/eslint.config.mjs b/web-v2/web/eslint.config.mjs
new file mode 100644
index 0000000000..e3b575623d
--- /dev/null
+++ b/web-v2/web/eslint.config.mjs
@@ -0,0 +1,69 @@
+/*
+ * 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 nextConfig from 'eslint-config-next'
+import eslintConfigPrettier from 'eslint-config-prettier'
+
+const eslintConfig = [
+ ...nextConfig,
+ eslintConfigPrettier,
+ {
+ rules: {
+ 'react/react-in-jsx-scope': 'off',
+ 'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
+ 'react/display-name': 'off',
+ '@next/next/no-img-element': 'off',
+ 'react/no-unescaped-entities': 'off',
+ 'import/no-anonymous-default-export': 'off',
+
+ // Disable new react-hooks rules from eslint-config-next 16.x for backward compatibility
+ 'react-hooks/exhaustive-deps': 'off',
+ 'react-hooks/set-state-in-effect': 'off',
+ 'react-hooks/incompatible-library': 'off',
+ 'react-hooks/immutability': 'off',
+ 'react-hooks/refs': 'off',
+ 'react-hooks/preserve-manual-memoization': 'off',
+ 'lines-around-comment': [
+ 'error',
+ {
+ beforeLineComment: true,
+ beforeBlockComment: true,
+ allowBlockStart: true,
+ allowClassStart: true,
+ allowObjectStart: true,
+ allowArrayStart: true
+ }
+ ],
+ 'newline-before-return': 'error',
+ 'import/newline-after-import': [
+ 'error',
+ {
+ count: 1
+ }
+ ],
+ 'padding-line-between-statements': [
+ 'error',
+ { blankLine: 'always', prev: ['export'], next: ['*'] },
+ { blankLine: 'always', prev: ['*'], next: ['multiline-const', 'multiline-let', 'multiline-var', 'export'] }
+ ]
+ }
+ }
+]
+
+export default eslintConfig
diff --git a/web-v2/web/jsconfig.json b/web-v2/web/jsconfig.json
new file mode 100644
index 0000000000..7b36ad9798
--- /dev/null
+++ b/web-v2/web/jsconfig.json
@@ -0,0 +1,33 @@
+{
+ "compilerOptions": {
+ "paths": {
+ "@/*": ["./src/*"]
+ },
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": false,
+ "noEmit": true,
+ "incremental": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve",
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ]
+ },
+ "include": [
+ "next-env.d.ts",
+ "dist/ui/types/**/*.js",
+ "**/*.js",
+ "**/*.jsx",
+ ".next/types/**/*.js",
+ "eslint.config.mjs"
+ ],
+ "exclude": ["node_modules"]
+}
diff --git a/web-v2/web/licenses/CC0.txt b/web-v2/web/licenses/CC0.txt
new file mode 100644
index 0000000000..1625c17936
--- /dev/null
+++ b/web-v2/web/licenses/CC0.txt
@@ -0,0 +1,121 @@
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
+ HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer
+exclusive Copyright and Related Rights (defined below) upon the creator
+and subsequent owner(s) (each and all, an "owner") of an original work of
+authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for
+the purpose of contributing to a commons of creative, cultural and
+scientific works ("Commons") that the public can reliably and without fear
+of later claims of infringement build upon, modify, incorporate in other
+works, reuse and redistribute as freely as possible in any form whatsoever
+and for any purposes, including without limitation commercial purposes.
+These owners may contribute to the Commons to promote the ideal of a free
+culture and the further production of creative, cultural and scientific
+works, or to gain reputation or greater distribution for their Work in
+part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any
+expectation of additional consideration or compensation, the person
+associating CC0 with a Work (the "Affirmer"), to the extent that he or she
+is an owner of Copyright and Related Rights in the Work, voluntarily
+elects to apply CC0 to the Work and publicly distribute the Work under its
+terms, with knowledge of his or her Copyright and Related Rights in the
+Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be
+protected by copyright and related or neighboring rights ("Copyright and
+Related Rights"). Copyright and Related Rights include, but are not
+limited to, the following:
+
+ i. the right to reproduce, adapt, distribute, perform, display,
+ communicate, and translate a Work;
+ ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or
+ likeness depicted in a Work;
+ iv. rights protecting against unfair competition in regards to a Work,
+ subject to the limitations in paragraph 4(a), below;
+ v. rights protecting the extraction, dissemination, use and reuse of data
+ in a Work;
+ vi. database rights (such as those arising under Directive 96/9/EC of the
+ European Parliament and of the Council of 11 March 1996 on the legal
+ protection of databases, and under any national implementation
+ thereof, including any amended or successor version of such
+ directive); and
+vii. other similar, equivalent or corresponding rights throughout the
+ world based on applicable law or treaty, and any national
+ implementations thereof.
+
+2. Waiver. To the greatest extent permitted by, but not in contravention
+of, applicable law, Affirmer hereby overtly, fully, permanently,
+irrevocably and unconditionally waives, abandons, and surrenders all of
+Affirmer's Copyright and Related Rights and associated claims and causes
+of action, whether now known or unknown (including existing as well as
+future claims and causes of action), in the Work (i) in all territories
+worldwide, (ii) for the maximum duration provided by applicable law or
+treaty (including future time extensions), (iii) in any current or future
+medium and for any number of copies, and (iv) for any purpose whatsoever,
+including without limitation commercial, advertising or promotional
+purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
+member of the public at large and to the detriment of Affirmer's heirs and
+successors, fully intending that such Waiver shall not be subject to
+revocation, rescission, cancellation, termination, or any other legal or
+equitable action to disrupt the quiet enjoyment of the Work by the public
+as contemplated by Affirmer's express Statement of Purpose.
+
+3. Public License Fallback. Should any part of the Waiver for any reason
+be judged legally invalid or ineffective under applicable law, then the
+Waiver shall be preserved to the maximum extent permitted taking into
+account Affirmer's express Statement of Purpose. In addition, to the
+extent the Waiver is so judged Affirmer hereby grants to each affected
+person a royalty-free, non transferable, non sublicensable, non exclusive,
+irrevocable and unconditional license to exercise Affirmer's Copyright and
+Related Rights in the Work (i) in all territories worldwide, (ii) for the
+maximum duration provided by applicable law or treaty (including future
+time extensions), (iii) in any current or future medium and for any number
+of copies, and (iv) for any purpose whatsoever, including without
+limitation commercial, advertising or promotional purposes (the
+"License"). The License shall be deemed effective as of the date CC0 was
+applied by Affirmer to the Work. Should any part of the License for any
+reason be judged legally invalid or ineffective under applicable law, such
+partial invalidity or ineffectiveness shall not invalidate the remainder
+of the License, and in such case Affirmer hereby affirms that he or she
+will not (i) exercise any of his or her remaining Copyright and Related
+Rights in the Work or (ii) assert any associated claims and causes of
+action with respect to the Work, in either case contrary to Affirmer's
+express Statement of Purpose.
+
+4. Limitations and Disclaimers.
+
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
+ surrendered, licensed or otherwise affected by this document.
+ b. Affirmer offers the Work as-is and makes no representations or
+ warranties of any kind concerning the Work, express, implied,
+ statutory or otherwise, including without limitation warranties of
+ title, merchantability, fitness for a particular purpose, non
+ infringement, or the absence of latent or other defects, accuracy, or
+ the present or absence of errors, whether or not discoverable, all to
+ the greatest extent permissible under applicable law.
+ c. Affirmer disclaims responsibility for clearing rights of other persons
+ that may apply to the Work or any use thereof, including without
+ limitation any person's Copyright and Related Rights in the Work.
+ Further, Affirmer disclaims responsibility for obtaining any necessary
+ consents, permissions or other rights required for any use of the
+ Work.
+ d. Affirmer understands and acknowledges that Creative Commons is not a
+ party to this document and has no duty or obligation with respect to
+ this CC0 or use of the Work.
\ No newline at end of file
diff --git a/web-v2/web/licenses/aashutoshrathi-word-wrap.txt b/web-v2/web/licenses/aashutoshrathi-word-wrap.txt
new file mode 100644
index 0000000000..538c8b21db
--- /dev/null
+++ b/web-v2/web/licenses/aashutoshrathi-word-wrap.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2023, Jon Schlinkert
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/acorn-jsx.txt b/web-v2/web/licenses/acorn-jsx.txt
new file mode 100644
index 0000000000..695d4b9308
--- /dev/null
+++ b/web-v2/web/licenses/acorn-jsx.txt
@@ -0,0 +1,19 @@
+Copyright (C) 2012-2017 by Ingvar Stepanyan
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/acorn.txt b/web-v2/web/licenses/acorn.txt
new file mode 100644
index 0000000000..74af7bfbd5
--- /dev/null
+++ b/web-v2/web/licenses/acorn.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (C) 2012-2022 by various contributors (see AUTHORS)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/ajv.txt b/web-v2/web/licenses/ajv.txt
new file mode 100644
index 0000000000..139162ad2c
--- /dev/null
+++ b/web-v2/web/licenses/ajv.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-2021 Evgeny Poberezkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/alloc-quick-lru.txt b/web-v2/web/licenses/alloc-quick-lru.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/alloc-quick-lru.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/ansi-regex.txt b/web-v2/web/licenses/ansi-regex.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/ansi-regex.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/ansi-styles.txt b/web-v2/web/licenses/ansi-styles.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/ansi-styles.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/ant-design-colors.txt b/web-v2/web/licenses/ant-design-colors.txt
new file mode 100644
index 0000000000..dfe5c2183e
--- /dev/null
+++ b/web-v2/web/licenses/ant-design-colors.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/ant-design-cssinjs.txt b/web-v2/web/licenses/ant-design-cssinjs.txt
new file mode 100644
index 0000000000..77cc01bda5
--- /dev/null
+++ b/web-v2/web/licenses/ant-design-cssinjs.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/ant-design-icons-svg.txt b/web-v2/web/licenses/ant-design-icons-svg.txt
new file mode 100644
index 0000000000..dfe5c2183e
--- /dev/null
+++ b/web-v2/web/licenses/ant-design-icons-svg.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/ant-design-react-slick.txt b/web-v2/web/licenses/ant-design-react-slick.txt
new file mode 100644
index 0000000000..8ebbdc8c5c
--- /dev/null
+++ b/web-v2/web/licenses/ant-design-react-slick.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Kiran Abburi
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/antd-colors.txt b/web-v2/web/licenses/antd-colors.txt
new file mode 100644
index 0000000000..4194a1c659
--- /dev/null
+++ b/web-v2/web/licenses/antd-colors.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/antd-icons-svg.txt b/web-v2/web/licenses/antd-icons-svg.txt
new file mode 100644
index 0000000000..4194a1c659
--- /dev/null
+++ b/web-v2/web/licenses/antd-icons-svg.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/antd-icons.txt b/web-v2/web/licenses/antd-icons.txt
new file mode 100644
index 0000000000..4194a1c659
--- /dev/null
+++ b/web-v2/web/licenses/antd-icons.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/antd.txt b/web-v2/web/licenses/antd.txt
new file mode 100644
index 0000000000..9b563deb00
--- /dev/null
+++ b/web-v2/web/licenses/antd.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2015-present Ant UED, https://xtech.antfin.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/antfu-install-pkg.txt b/web-v2/web/licenses/antfu-install-pkg.txt
new file mode 100644
index 0000000000..d47cea55b8
--- /dev/null
+++ b/web-v2/web/licenses/antfu-install-pkg.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/antfu-utils.txt b/web-v2/web/licenses/antfu-utils.txt
new file mode 100644
index 0000000000..d47cea55b8
--- /dev/null
+++ b/web-v2/web/licenses/antfu-utils.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/antfu_install-pkg.txt b/web-v2/web/licenses/antfu_install-pkg.txt
new file mode 100644
index 0000000000..d47cea55b8
--- /dev/null
+++ b/web-v2/web/licenses/antfu_install-pkg.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/antfu_utils.txt b/web-v2/web/licenses/antfu_utils.txt
new file mode 100644
index 0000000000..d47cea55b8
--- /dev/null
+++ b/web-v2/web/licenses/antfu_utils.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/any-promise.txt b/web-v2/web/licenses/any-promise.txt
new file mode 100644
index 0000000000..9187fe5d72
--- /dev/null
+++ b/web-v2/web/licenses/any-promise.txt
@@ -0,0 +1,19 @@
+Copyright (C) 2014-2016 Kevin Beaty
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/anymatch.txt b/web-v2/web/licenses/anymatch.txt
new file mode 100644
index 0000000000..491766ca79
--- /dev/null
+++ b/web-v2/web/licenses/anymatch.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com)
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/arg.txt b/web-v2/web/licenses/arg.txt
new file mode 100644
index 0000000000..b708f872cb
--- /dev/null
+++ b/web-v2/web/licenses/arg.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2021 Vercel, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/argparse.txt b/web-v2/web/licenses/argparse.txt
new file mode 100644
index 0000000000..66a3ac80d7
--- /dev/null
+++ b/web-v2/web/licenses/argparse.txt
@@ -0,0 +1,254 @@
+A. HISTORY OF THE SOFTWARE
+==========================
+
+Python was created in the early 1990s by Guido van Rossum at Stichting
+Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
+as a successor of a language called ABC. Guido remains Python's
+principal author, although it includes many contributions from others.
+
+In 1995, Guido continued his work on Python at the Corporation for
+National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
+in Reston, Virginia where he released several versions of the
+software.
+
+In May 2000, Guido and the Python core development team moved to
+BeOpen.com to form the BeOpen PythonLabs team. In October of the same
+year, the PythonLabs team moved to Digital Creations, which became
+Zope Corporation. In 2001, the Python Software Foundation (PSF, see
+https://www.python.org/psf/) was formed, a non-profit organization
+created specifically to own Python-related Intellectual Property.
+Zope Corporation was a sponsoring member of the PSF.
+
+All Python releases are Open Source (see http://www.opensource.org for
+the Open Source Definition). Historically, most, but not all, Python
+releases have also been GPL-compatible; the table below summarizes
+the various releases.
+
+ Release Derived Year Owner GPL-
+ from compatible? (1)
+
+ 0.9.0 thru 1.2 1991-1995 CWI yes
+ 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
+ 1.6 1.5.2 2000 CNRI no
+ 2.0 1.6 2000 BeOpen.com no
+ 1.6.1 1.6 2001 CNRI yes (2)
+ 2.1 2.0+1.6.1 2001 PSF no
+ 2.0.1 2.0+1.6.1 2001 PSF yes
+ 2.1.1 2.1+2.0.1 2001 PSF yes
+ 2.1.2 2.1.1 2002 PSF yes
+ 2.1.3 2.1.2 2002 PSF yes
+ 2.2 and above 2.1.1 2001-now PSF yes
+
+Footnotes:
+
+(1) GPL-compatible doesn't mean that we're distributing Python under
+ the GPL. All Python licenses, unlike the GPL, let you distribute
+ a modified version without making your changes open source. The
+ GPL-compatible licenses make it possible to combine Python with
+ other software that is released under the GPL; the others don't.
+
+(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
+ because its license has a choice of law clause. According to
+ CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
+ is "not incompatible" with the GPL.
+
+Thanks to the many outside volunteers who have worked under Guido's
+direction to make these releases possible.
+
+
+B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
+===============================================================
+
+PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+--------------------------------------------
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation
+("PSF"), and the Individual or Organization ("Licensee") accessing and
+otherwise using this software ("Python") in source or binary form and
+its associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF hereby
+grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
+analyze, test, perform and/or display publicly, prepare derivative works,
+distribute, and otherwise use Python alone or in any derivative version,
+provided, however, that PSF's License Agreement and PSF's notice of copyright,
+i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Python Software Foundation;
+All Rights Reserved" are retained in Python alone or in any derivative version
+prepared by Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on
+or incorporates Python or any part thereof, and wants to make
+the derivative work available to others as provided herein, then
+Licensee hereby agrees to include in any such work a brief summary of
+the changes made to Python.
+
+4. PSF is making Python available to Licensee on an "AS IS"
+basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
+OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material
+breach of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee. This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote
+products or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python, Licensee
+agrees to be bound by the terms and conditions of this License
+Agreement.
+
+
+BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
+-------------------------------------------
+
+BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
+
+1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
+office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
+Individual or Organization ("Licensee") accessing and otherwise using
+this software in source or binary form and its associated
+documentation ("the Software").
+
+2. Subject to the terms and conditions of this BeOpen Python License
+Agreement, BeOpen hereby grants Licensee a non-exclusive,
+royalty-free, world-wide license to reproduce, analyze, test, perform
+and/or display publicly, prepare derivative works, distribute, and
+otherwise use the Software alone or in any derivative version,
+provided, however, that the BeOpen Python License is retained in the
+Software, alone or in any derivative version prepared by Licensee.
+
+3. BeOpen is making the Software available to Licensee on an "AS IS"
+basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
+DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
+SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
+AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
+DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+5. This License Agreement will automatically terminate upon a material
+breach of its terms and conditions.
+
+6. This License Agreement shall be governed by and interpreted in all
+respects by the law of the State of California, excluding conflict of
+law provisions. Nothing in this License Agreement shall be deemed to
+create any relationship of agency, partnership, or joint venture
+between BeOpen and Licensee. This License Agreement does not grant
+permission to use BeOpen trademarks or trade names in a trademark
+sense to endorse or promote products or services of Licensee, or any
+third party. As an exception, the "BeOpen Python" logos available at
+http://www.pythonlabs.com/logos.html may be used according to the
+permissions granted on that web page.
+
+7. By copying, installing or otherwise using the software, Licensee
+agrees to be bound by the terms and conditions of this License
+Agreement.
+
+
+CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
+---------------------------------------
+
+1. This LICENSE AGREEMENT is between the Corporation for National
+Research Initiatives, having an office at 1895 Preston White Drive,
+Reston, VA 20191 ("CNRI"), and the Individual or Organization
+("Licensee") accessing and otherwise using Python 1.6.1 software in
+source or binary form and its associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, CNRI
+hereby grants Licensee a nonexclusive, royalty-free, world-wide
+license to reproduce, analyze, test, perform and/or display publicly,
+prepare derivative works, distribute, and otherwise use Python 1.6.1
+alone or in any derivative version, provided, however, that CNRI's
+License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
+1995-2001 Corporation for National Research Initiatives; All Rights
+Reserved" are retained in Python 1.6.1 alone or in any derivative
+version prepared by Licensee. Alternately, in lieu of CNRI's License
+Agreement, Licensee may substitute the following text (omitting the
+quotes): "Python 1.6.1 is made available subject to the terms and
+conditions in CNRI's License Agreement. This Agreement together with
+Python 1.6.1 may be located on the Internet using the following
+unique, persistent identifier (known as a handle): 1895.22/1013. This
+Agreement may also be obtained from a proxy server on the Internet
+using the following URL: http://hdl.handle.net/1895.22/1013".
+
+3. In the event Licensee prepares a derivative work that is based on
+or incorporates Python 1.6.1 or any part thereof, and wants to make
+the derivative work available to others as provided herein, then
+Licensee hereby agrees to include in any such work a brief summary of
+the changes made to Python 1.6.1.
+
+4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
+basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
+DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
+OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material
+breach of its terms and conditions.
+
+7. This License Agreement shall be governed by the federal
+intellectual property law of the United States, including without
+limitation the federal copyright law, and, to the extent such
+U.S. federal law does not apply, by the law of the Commonwealth of
+Virginia, excluding Virginia's conflict of law provisions.
+Notwithstanding the foregoing, with regard to derivative works based
+on Python 1.6.1 that incorporate non-separable material that was
+previously distributed under the GNU General Public License (GPL), the
+law of the Commonwealth of Virginia shall govern this License
+Agreement only as to issues arising under or with respect to
+Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
+License Agreement shall be deemed to create any relationship of
+agency, partnership, or joint venture between CNRI and Licensee. This
+License Agreement does not grant permission to use CNRI trademarks or
+trade name in a trademark sense to endorse or promote products or
+services of Licensee, or any third party.
+
+8. By clicking on the "ACCEPT" button where indicated, or by copying,
+installing or otherwise using Python 1.6.1, Licensee agrees to be
+bound by the terms and conditions of this License Agreement.
+
+ ACCEPT
+
+
+CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
+--------------------------------------------------
+
+Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
+The Netherlands. All rights reserved.
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the name of Stichting Mathematisch
+Centrum or CWI not be used in advertising or publicity pertaining to
+distribution of the software without specific, written prior
+permission.
+
+STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
+THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
+FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/array-buffer-byte-length.txt b/web-v2/web/licenses/array-buffer-byte-length.txt
new file mode 100644
index 0000000000..5ea30366fa
--- /dev/null
+++ b/web-v2/web/licenses/array-buffer-byte-length.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/array-includes.txt b/web-v2/web/licenses/array-includes.txt
new file mode 100644
index 0000000000..8c271c14b6
--- /dev/null
+++ b/web-v2/web/licenses/array-includes.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/array-prototype-findlast.txt b/web-v2/web/licenses/array-prototype-findlast.txt
new file mode 100644
index 0000000000..40680dc464
--- /dev/null
+++ b/web-v2/web/licenses/array-prototype-findlast.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/array-prototype-findlastindex.txt b/web-v2/web/licenses/array-prototype-findlastindex.txt
new file mode 100644
index 0000000000..40680dc464
--- /dev/null
+++ b/web-v2/web/licenses/array-prototype-findlastindex.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/array-prototype-flat.txt b/web-v2/web/licenses/array-prototype-flat.txt
new file mode 100644
index 0000000000..999c081c69
--- /dev/null
+++ b/web-v2/web/licenses/array-prototype-flat.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/array-prototype-flatmap.txt b/web-v2/web/licenses/array-prototype-flatmap.txt
new file mode 100644
index 0000000000..999c081c69
--- /dev/null
+++ b/web-v2/web/licenses/array-prototype-flatmap.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/array-prototype-toreversed.txt b/web-v2/web/licenses/array-prototype-toreversed.txt
new file mode 100644
index 0000000000..40680dc464
--- /dev/null
+++ b/web-v2/web/licenses/array-prototype-toreversed.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/array-prototype-tosorted.txt b/web-v2/web/licenses/array-prototype-tosorted.txt
new file mode 100644
index 0000000000..40680dc464
--- /dev/null
+++ b/web-v2/web/licenses/array-prototype-tosorted.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/array-tree-filter.txt b/web-v2/web/licenses/array-tree-filter.txt
new file mode 100644
index 0000000000..639216d067
--- /dev/null
+++ b/web-v2/web/licenses/array-tree-filter.txt
@@ -0,0 +1,7 @@
+Copyright (c) 2015 [email protected]
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/array-union.txt b/web-v2/web/licenses/array-union.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/array-union.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/arraybuffer-prototype-slice.txt b/web-v2/web/licenses/arraybuffer-prototype-slice.txt
new file mode 100644
index 0000000000..eb970aa5c9
--- /dev/null
+++ b/web-v2/web/licenses/arraybuffer-prototype-slice.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/ast-types-flow.txt b/web-v2/web/licenses/ast-types-flow.txt
new file mode 100644
index 0000000000..ee26480011
--- /dev/null
+++ b/web-v2/web/licenses/ast-types-flow.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Kyle Davis
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/async-validator.txt b/web-v2/web/licenses/async-validator.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/async-validator.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/asynckit.txt b/web-v2/web/licenses/asynckit.txt
new file mode 100644
index 0000000000..c9eca5dd99
--- /dev/null
+++ b/web-v2/web/licenses/asynckit.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Alex Indigo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/autoprefixer.txt b/web-v2/web/licenses/autoprefixer.txt
new file mode 100644
index 0000000000..da057b4562
--- /dev/null
+++ b/web-v2/web/licenses/autoprefixer.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2013 Andrey Sitnik <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/available-typed-arrays.txt b/web-v2/web/licenses/available-typed-arrays.txt
new file mode 100644
index 0000000000..707437b575
--- /dev/null
+++ b/web-v2/web/licenses/available-typed-arrays.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/axe-core.txt b/web-v2/web/licenses/axe-core.txt
new file mode 100644
index 0000000000..be2cc4dfb6
--- /dev/null
+++ b/web-v2/web/licenses/axe-core.txt
@@ -0,0 +1,362 @@
+Mozilla Public License, version 2.0
+
+1. Definitions
+
+1.1. "Contributor"
+
+ means each individual or legal entity that creates, contributes to the
+ creation of, or owns Covered Software.
+
+1.2. "Contributor Version"
+
+ means the combination of the Contributions of others (if any) used by a
+ Contributor and that particular Contributor's Contribution.
+
+1.3. "Contribution"
+
+ means Covered Software of a particular Contributor.
+
+1.4. "Covered Software"
+
+ means Source Code Form to which the initial Contributor has attached the
+ notice in Exhibit A, the Executable Form of such Source Code Form, and
+ Modifications of such Source Code Form, in each case including portions
+ thereof.
+
+1.5. "Incompatible With Secondary Licenses"
+ means
+
+ a. that the initial Contributor has attached the notice described in
+ Exhibit B to the Covered Software; or
+
+ b. that the Covered Software was made available under the terms of
+ version 1.1 or earlier of the License, but not also under the terms of
+ a Secondary License.
+
+1.6. "Executable Form"
+
+ means any form of the work other than Source Code Form.
+
+1.7. "Larger Work"
+
+ means a work that combines Covered Software with other material, in a
+ separate file or files, that is not Covered Software.
+
+1.8. "License"
+
+ means this document.
+
+1.9. "Licensable"
+
+ means having the right to grant, to the maximum extent possible, whether
+ at the time of the initial grant or subsequently, any and all of the
+ rights conveyed by this License.
+
+1.10. "Modifications"
+
+ means any of the following:
+
+ a. any file in Source Code Form that results from an addition to,
+ deletion from, or modification of the contents of Covered Software; or
+
+ b. any new file in Source Code Form that contains any Covered Software.
+
+1.11. "Patent Claims" of a Contributor
+
+ means any patent claim(s), including without limitation, method,
+ process, and apparatus claims, in any patent Licensable by such
+ Contributor that would be infringed, but for the grant of the License,
+ by the making, using, selling, offering for sale, having made, import,
+ or transfer of either its Contributions or its Contributor Version.
+
+1.12. "Secondary License"
+
+ means either the GNU General Public License, Version 2.0, the GNU Lesser
+ General Public License, Version 2.1, the GNU Affero General Public
+ License, Version 3.0, or any later versions of those licenses.
+
+1.13. "Source Code Form"
+
+ means the form of the work preferred for making modifications.
+
+1.14. "You" (or "Your")
+
+ means an individual or a legal entity exercising rights under this
+ License. For legal entities, "You" includes any entity that controls, is
+ controlled by, or is under common control with You. For purposes of this
+ definition, "control" means (a) the power, direct or indirect, to cause
+ the direction or management of such entity, whether by contract or
+ otherwise, or (b) ownership of more than fifty percent (50%) of the
+ outstanding shares or beneficial ownership of such entity.
+
+
+2. License Grants and Conditions
+
+2.1. Grants
+
+ Each Contributor hereby grants You a world-wide, royalty-free,
+ non-exclusive license:
+
+ a. under intellectual property rights (other than patent or trademark)
+ Licensable by such Contributor to use, reproduce, make available,
+ modify, display, perform, distribute, and otherwise exploit its
+ Contributions, either on an unmodified basis, with Modifications, or
+ as part of a Larger Work; and
+
+ b. under Patent Claims of such Contributor to make, use, sell, offer for
+ sale, have made, import, and otherwise transfer either its
+ Contributions or its Contributor Version.
+
+2.2. Effective Date
+
+ The licenses granted in Section 2.1 with respect to any Contribution
+ become effective for each Contribution on the date the Contributor first
+ distributes such Contribution.
+
+2.3. Limitations on Grant Scope
+
+ The licenses granted in this Section 2 are the only rights granted under
+ this License. No additional rights or licenses will be implied from the
+ distribution or licensing of Covered Software under this License.
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
+ Contributor:
+
+ a. for any code that a Contributor has removed from Covered Software; or
+
+ b. for infringements caused by: (i) Your and any other third party's
+ modifications of Covered Software, or (ii) the combination of its
+ Contributions with other software (except as part of its Contributor
+ Version); or
+
+ c. under Patent Claims infringed by Covered Software in the absence of
+ its Contributions.
+
+ This License does not grant any rights in the trademarks, service marks,
+ or logos of any Contributor (except as may be necessary to comply with
+ the notice requirements in Section 3.4).
+
+2.4. Subsequent Licenses
+
+ No Contributor makes additional grants as a result of Your choice to
+ distribute the Covered Software under a subsequent version of this
+ License (see Section 10.2) or under the terms of a Secondary License (if
+ permitted under the terms of Section 3.3).
+
+2.5. Representation
+
+ Each Contributor represents that the Contributor believes its
+ Contributions are its original creation(s) or it has sufficient rights to
+ grant the rights to its Contributions conveyed by this License.
+
+2.6. Fair Use
+
+ This License is not intended to limit any rights You have under
+ applicable copyright doctrines of fair use, fair dealing, or other
+ equivalents.
+
+2.7. Conditions
+
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
+ Section 2.1.
+
+
+3. Responsibilities
+
+3.1. Distribution of Source Form
+
+ All distribution of Covered Software in Source Code Form, including any
+ Modifications that You create or to which You contribute, must be under
+ the terms of this License. You must inform recipients that the Source
+ Code Form of the Covered Software is governed by the terms of this
+ License, and how they can obtain a copy of this License. You may not
+ attempt to alter or restrict the recipients' rights in the Source Code
+ Form.
+
+3.2. Distribution of Executable Form
+
+ If You distribute Covered Software in Executable Form then:
+
+ a. such Covered Software must also be made available in Source Code Form,
+ as described in Section 3.1, and You must inform recipients of the
+ Executable Form how they can obtain a copy of such Source Code Form by
+ reasonable means in a timely manner, at a charge no more than the cost
+ of distribution to the recipient; and
+
+ b. You may distribute such Executable Form under the terms of this
+ License, or sublicense it under different terms, provided that the
+ license for the Executable Form does not attempt to limit or alter the
+ recipients' rights in the Source Code Form under this License.
+
+3.3. Distribution of a Larger Work
+
+ You may create and distribute a Larger Work under terms of Your choice,
+ provided that You also comply with the requirements of this License for
+ the Covered Software. If the Larger Work is a combination of Covered
+ Software with a work governed by one or more Secondary Licenses, and the
+ Covered Software is not Incompatible With Secondary Licenses, this
+ License permits You to additionally distribute such Covered Software
+ under the terms of such Secondary License(s), so that the recipient of
+ the Larger Work may, at their option, further distribute the Covered
+ Software under the terms of either this License or such Secondary
+ License(s).
+
+3.4. Notices
+
+ You may not remove or alter the substance of any license notices
+ (including copyright notices, patent notices, disclaimers of warranty, or
+ limitations of liability) contained within the Source Code Form of the
+ Covered Software, except that You may alter any license notices to the
+ extent required to remedy known factual inaccuracies.
+
+3.5. Application of Additional Terms
+
+ You may choose to offer, and to charge a fee for, warranty, support,
+ indemnity or liability obligations to one or more recipients of Covered
+ Software. However, You may do so only on Your own behalf, and not on
+ behalf of any Contributor. You must make it absolutely clear that any
+ such warranty, support, indemnity, or liability obligation is offered by
+ You alone, and You hereby agree to indemnify every Contributor for any
+ liability incurred by such Contributor as a result of warranty, support,
+ indemnity or liability terms You offer. You may include additional
+ disclaimers of warranty and limitations of liability specific to any
+ jurisdiction.
+
+4. Inability to Comply Due to Statute or Regulation
+
+ If it is impossible for You to comply with any of the terms of this License
+ with respect to some or all of the Covered Software due to statute,
+ judicial order, or regulation then You must: (a) comply with the terms of
+ this License to the maximum extent possible; and (b) describe the
+ limitations and the code they affect. Such description must be placed in a
+ text file included with all distributions of the Covered Software under
+ this License. Except to the extent prohibited by statute or regulation,
+ such description must be sufficiently detailed for a recipient of ordinary
+ skill to be able to understand it.
+
+5. Termination
+
+5.1. The rights granted under this License will terminate automatically if You
+ fail to comply with any of its terms. However, if You become compliant,
+ then the rights granted under this License from a particular Contributor
+ are reinstated (a) provisionally, unless and until such Contributor
+ explicitly and finally terminates Your grants, and (b) on an ongoing
+ basis, if such Contributor fails to notify You of the non-compliance by
+ some reasonable means prior to 60 days after You have come back into
+ compliance. Moreover, Your grants from a particular Contributor are
+ reinstated on an ongoing basis if such Contributor notifies You of the
+ non-compliance by some reasonable means, this is the first time You have
+ received notice of non-compliance with this License from such
+ Contributor, and You become compliant prior to 30 days after Your receipt
+ of the notice.
+
+5.2. If You initiate litigation against any entity by asserting a patent
+ infringement claim (excluding declaratory judgment actions,
+ counter-claims, and cross-claims) alleging that a Contributor Version
+ directly or indirectly infringes any patent, then the rights granted to
+ You by any and all Contributors for the Covered Software under Section
+ 2.1 of this License shall terminate.
+
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
+ license agreements (excluding distributors and resellers) which have been
+ validly granted by You or Your distributors under this License prior to
+ termination shall survive termination.
+
+6. Disclaimer of Warranty
+
+ Covered Software is provided under this License on an "as is" basis,
+ without warranty of any kind, either expressed, implied, or statutory,
+ including, without limitation, warranties that the Covered Software is free
+ of defects, merchantable, fit for a particular purpose or non-infringing.
+ The entire risk as to the quality and performance of the Covered Software
+ is with You. Should any Covered Software prove defective in any respect,
+ You (not any Contributor) assume the cost of any necessary servicing,
+ repair, or correction. This disclaimer of warranty constitutes an essential
+ part of this License. No use of any Covered Software is authorized under
+ this License except under this disclaimer.
+
+7. Limitation of Liability
+
+ Under no circumstances and under no legal theory, whether tort (including
+ negligence), contract, or otherwise, shall any Contributor, or anyone who
+ distributes Covered Software as permitted above, be liable to You for any
+ direct, indirect, special, incidental, or consequential damages of any
+ character including, without limitation, damages for lost profits, loss of
+ goodwill, work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses, even if such party shall have been
+ informed of the possibility of such damages. This limitation of liability
+ shall not apply to liability for death or personal injury resulting from
+ such party's negligence to the extent applicable law prohibits such
+ limitation. Some jurisdictions do not allow the exclusion or limitation of
+ incidental or consequential damages, so this exclusion and limitation may
+ not apply to You.
+
+8. Litigation
+
+ Any litigation relating to this License may be brought only in the courts
+ of a jurisdiction where the defendant maintains its principal place of
+ business and such litigation shall be governed by laws of that
+ jurisdiction, without reference to its conflict-of-law provisions. Nothing
+ in this Section shall prevent a party's ability to bring cross-claims or
+ counter-claims.
+
+9. Miscellaneous
+
+ This License represents the complete agreement concerning the subject
+ matter hereof. If any provision of this License is held to be
+ unenforceable, such provision shall be reformed only to the extent
+ necessary to make it enforceable. Any law or regulation which provides that
+ the language of a contract shall be construed against the drafter shall not
+ be used to construe this License against a Contributor.
+
+
+10. Versions of the License
+
+10.1. New Versions
+
+ Mozilla Foundation is the license steward. Except as provided in Section
+ 10.3, no one other than the license steward has the right to modify or
+ publish new versions of this License. Each version will be given a
+ distinguishing version number.
+
+10.2. Effect of New Versions
+
+ You may distribute the Covered Software under the terms of the version
+ of the License under which You originally received the Covered Software,
+ or under the terms of any subsequent version published by the license
+ steward.
+
+10.3. Modified Versions
+
+ If you create software not governed by this License, and you want to
+ create a new license for such software, you may create and use a
+ modified version of this License if you rename the license and remove
+ any references to the name of the license steward (except to note that
+ such modified license differs from this License).
+
+10.4. Distributing Source Code Form that is Incompatible With Secondary
+ Licenses If You choose to distribute Source Code Form that is
+ Incompatible With Secondary Licenses under the terms of this version of
+ the License, the notice described in Exhibit B of this License must be
+ attached.
+
+Exhibit A - Source Code Form License Notice
+
+ This Source Code Form is subject to the
+ terms of the Mozilla Public License, v.
+ 2.0. If a copy of the MPL was not
+ distributed with this file, You can
+ obtain one at
+ http://mozilla.org/MPL/2.0/.
+
+If it is not possible or desirable to put the notice in a particular file,
+then You may include the notice in a location (such as a LICENSE file in a
+relevant directory) where a recipient would be likely to look for such a
+notice.
+
+You may add additional accurate notices of copyright ownership.
+
+Exhibit B - "Incompatible With Secondary Licenses" Notice
+
+ This Source Code Form is "Incompatible
+ With Secondary Licenses", as defined by
+ the Mozilla Public License, v. 2.0.
diff --git a/web-v2/web/licenses/axios.txt b/web-v2/web/licenses/axios.txt
new file mode 100644
index 0000000000..d36c80ef27
--- /dev/null
+++ b/web-v2/web/licenses/axios.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2014-present Matt Zabriskie
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/babel-code-frame.txt b/web-v2/web/licenses/babel-code-frame.txt
new file mode 100644
index 0000000000..f31575ec77
--- /dev/null
+++ b/web-v2/web/licenses/babel-code-frame.txt
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/babel-helper-module-imports.txt b/web-v2/web/licenses/babel-helper-module-imports.txt
new file mode 100644
index 0000000000..f31575ec77
--- /dev/null
+++ b/web-v2/web/licenses/babel-helper-module-imports.txt
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/babel-helper-string-parser.txt b/web-v2/web/licenses/babel-helper-string-parser.txt
new file mode 100644
index 0000000000..f31575ec77
--- /dev/null
+++ b/web-v2/web/licenses/babel-helper-string-parser.txt
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/babel-helper-validator-identifier.txt b/web-v2/web/licenses/babel-helper-validator-identifier.txt
new file mode 100644
index 0000000000..f31575ec77
--- /dev/null
+++ b/web-v2/web/licenses/babel-helper-validator-identifier.txt
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/babel-highlight.txt b/web-v2/web/licenses/babel-highlight.txt
new file mode 100644
index 0000000000..f31575ec77
--- /dev/null
+++ b/web-v2/web/licenses/babel-highlight.txt
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/babel-plugin-macros.txt b/web-v2/web/licenses/babel-plugin-macros.txt
new file mode 100644
index 0000000000..a077a4490b
--- /dev/null
+++ b/web-v2/web/licenses/babel-plugin-macros.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+Copyright (c) 2020 Kent C. Dodds
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/babel-runtime.txt b/web-v2/web/licenses/babel-runtime.txt
new file mode 100644
index 0000000000..f31575ec77
--- /dev/null
+++ b/web-v2/web/licenses/babel-runtime.txt
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/babel-types.txt b/web-v2/web/licenses/babel-types.txt
new file mode 100644
index 0000000000..f31575ec77
--- /dev/null
+++ b/web-v2/web/licenses/babel-types.txt
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/balanced-match.txt b/web-v2/web/licenses/balanced-match.txt
new file mode 100644
index 0000000000..2cdc8e4148
--- /dev/null
+++ b/web-v2/web/licenses/balanced-match.txt
@@ -0,0 +1,21 @@
+(MIT)
+
+Copyright (c) 2013 Julian Gruber &lt;[email protected]&gt;
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/binary-extensions.txt b/web-v2/web/licenses/binary-extensions.txt
new file mode 100644
index 0000000000..5493a1a6e3
--- /dev/null
+++ b/web-v2/web/licenses/binary-extensions.txt
@@ -0,0 +1,10 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+Copyright (c) Paul Miller (https://paulmillr.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/boolbase.txt b/web-v2/web/licenses/boolbase.txt
new file mode 100644
index 0000000000..a689aae96e
--- /dev/null
+++ b/web-v2/web/licenses/boolbase.txt
@@ -0,0 +1,13 @@
+Copyright (c) 2014-2015, Felix Boehm <[email protected]>
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/brace-expansion.txt b/web-v2/web/licenses/brace-expansion.txt
new file mode 100644
index 0000000000..de3226673c
--- /dev/null
+++ b/web-v2/web/licenses/brace-expansion.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2013 Julian Gruber <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/braces.txt b/web-v2/web/licenses/braces.txt
new file mode 100644
index 0000000000..d32ab4426a
--- /dev/null
+++ b/web-v2/web/licenses/braces.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2018, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/browserslist.txt b/web-v2/web/licenses/browserslist.txt
new file mode 100644
index 0000000000..90b6b91673
--- /dev/null
+++ b/web-v2/web/licenses/browserslist.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2014 Andrey Sitnik <[email protected]> and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/buffer-crc32.txt b/web-v2/web/licenses/buffer-crc32.txt
new file mode 100644
index 0000000000..9d2e5162a2
--- /dev/null
+++ b/web-v2/web/licenses/buffer-crc32.txt
@@ -0,0 +1,19 @@
+The MIT License
+
+Copyright (c) 2013-2024 Brian J. Brennan
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
+Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/busboy.txt b/web-v2/web/licenses/busboy.txt
new file mode 100644
index 0000000000..290762e94f
--- /dev/null
+++ b/web-v2/web/licenses/busboy.txt
@@ -0,0 +1,19 @@
+Copyright Brian White. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/call-bind-apply-helpers.txt b/web-v2/web/licenses/call-bind-apply-helpers.txt
new file mode 100644
index 0000000000..f82f38963b
--- /dev/null
+++ b/web-v2/web/licenses/call-bind-apply-helpers.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/call-bind.txt b/web-v2/web/licenses/call-bind.txt
new file mode 100644
index 0000000000..48f05d01d0
--- /dev/null
+++ b/web-v2/web/licenses/call-bind.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/call-bound.txt b/web-v2/web/licenses/call-bound.txt
new file mode 100644
index 0000000000..f82f38963b
--- /dev/null
+++ b/web-v2/web/licenses/call-bound.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/callsites.txt b/web-v2/web/licenses/callsites.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/callsites.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/camelcase-css.txt b/web-v2/web/licenses/camelcase-css.txt
new file mode 100644
index 0000000000..b760007aed
--- /dev/null
+++ b/web-v2/web/licenses/camelcase-css.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Steven Vachon <[email protected]> (svachon.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/caniuse-lite.txt b/web-v2/web/licenses/caniuse-lite.txt
new file mode 100644
index 0000000000..06c608dcf4
--- /dev/null
+++ b/web-v2/web/licenses/caniuse-lite.txt
@@ -0,0 +1,395 @@
+Attribution 4.0 International
+
+=======================================================================
+
+Creative Commons Corporation ("Creative Commons") is not a law firm and
+does not provide legal services or legal advice. Distribution of
+Creative Commons public licenses does not create a lawyer-client or
+other relationship. Creative Commons makes its licenses and related
+information available on an "as-is" basis. Creative Commons gives no
+warranties regarding its licenses, any material licensed under their
+terms and conditions, or any related information. Creative Commons
+disclaims all liability for damages resulting from their use to the
+fullest extent possible.
+
+Using Creative Commons Public Licenses
+
+Creative Commons public licenses provide a standard set of terms and
+conditions that creators and other rights holders may use to share
+original works of authorship and other material subject to copyright
+and certain other rights specified in the public license below. The
+following considerations are for informational purposes only, are not
+exhaustive, and do not form part of our licenses.
+
+ Considerations for licensors: Our public licenses are
+ intended for use by those authorized to give the public
+ permission to use material in ways otherwise restricted by
+ copyright and certain other rights. Our licenses are
+ irrevocable. Licensors should read and understand the terms
+ and conditions of the license they choose before applying it.
+ Licensors should also secure all rights necessary before
+ applying our licenses so that the public can reuse the
+ material as expected. Licensors should clearly mark any
+ material not subject to the license. This includes other CC-
+ licensed material, or material used under an exception or
+ limitation to copyright. More considerations for licensors:
+ wiki.creativecommons.org/Considerations_for_licensors
+
+ Considerations for the public: By using one of our public
+ licenses, a licensor grants the public permission to use the
+ licensed material under specified terms and conditions. If
+ the licensor's permission is not necessary for any reason--for
+ example, because of any applicable exception or limitation to
+ copyright--then that use is not regulated by the license. Our
+ licenses grant only permissions under copyright and certain
+ other rights that a licensor has authority to grant. Use of
+ the licensed material may still be restricted for other
+ reasons, including because others have copyright or other
+ rights in the material. A licensor may make special requests,
+ such as asking that all changes be marked or described.
+ Although not required by our licenses, you are encouraged to
+ respect those requests where reasonable. More_considerations
+ for the public:
+ wiki.creativecommons.org/Considerations_for_licensees
+
+=======================================================================
+
+Creative Commons Attribution 4.0 International Public License
+
+By exercising the Licensed Rights (defined below), You accept and agree
+to be bound by the terms and conditions of this Creative Commons
+Attribution 4.0 International Public License ("Public License"). To the
+extent this Public License may be interpreted as a contract, You are
+granted the Licensed Rights in consideration of Your acceptance of
+these terms and conditions, and the Licensor grants You such rights in
+consideration of benefits the Licensor receives from making the
+Licensed Material available under these terms and conditions.
+
+
+Section 1 -- Definitions.
+
+ a. Adapted Material means material subject to Copyright and Similar
+ Rights that is derived from or based upon the Licensed Material
+ and in which the Licensed Material is translated, altered,
+ arranged, transformed, or otherwise modified in a manner requiring
+ permission under the Copyright and Similar Rights held by the
+ Licensor. For purposes of this Public License, where the Licensed
+ Material is a musical work, performance, or sound recording,
+ Adapted Material is always produced where the Licensed Material is
+ synched in timed relation with a moving image.
+
+ b. Adapter's License means the license You apply to Your Copyright
+ and Similar Rights in Your contributions to Adapted Material in
+ accordance with the terms and conditions of this Public License.
+
+ c. Copyright and Similar Rights means copyright and/or similar rights
+ closely related to copyright including, without limitation,
+ performance, broadcast, sound recording, and Sui Generis Database
+ Rights, without regard to how the rights are labeled or
+ categorized. For purposes of this Public License, the rights
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
+ Rights.
+
+ d. Effective Technological Measures means those measures that, in the
+ absence of proper authority, may not be circumvented under laws
+ fulfilling obligations under Article 11 of the WIPO Copyright
+ Treaty adopted on December 20, 1996, and/or similar international
+ agreements.
+
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
+ any other exception or limitation to Copyright and Similar Rights
+ that applies to Your use of the Licensed Material.
+
+ f. Licensed Material means the artistic or literary work, database,
+ or other material to which the Licensor applied this Public
+ License.
+
+ g. Licensed Rights means the rights granted to You subject to the
+ terms and conditions of this Public License, which are limited to
+ all Copyright and Similar Rights that apply to Your use of the
+ Licensed Material and that the Licensor has authority to license.
+
+ h. Licensor means the individual(s) or entity(ies) granting rights
+ under this Public License.
+
+ i. Share means to provide material to the public by any means or
+ process that requires permission under the Licensed Rights, such
+ as reproduction, public display, public performance, distribution,
+ dissemination, communication, or importation, and to make material
+ available to the public including in ways that members of the
+ public may access the material from a place and at a time
+ individually chosen by them.
+
+ j. Sui Generis Database Rights means rights other than copyright
+ resulting from Directive 96/9/EC of the European Parliament and of
+ the Council of 11 March 1996 on the legal protection of databases,
+ as amended and/or succeeded, as well as other essentially
+ equivalent rights anywhere in the world.
+
+ k. You means the individual or entity exercising the Licensed Rights
+ under this Public License. Your has a corresponding meaning.
+
+
+Section 2 -- Scope.
+
+ a. License grant.
+
+ 1. Subject to the terms and conditions of this Public License,
+ the Licensor hereby grants You a worldwide, royalty-free,
+ non-sublicensable, non-exclusive, irrevocable license to
+ exercise the Licensed Rights in the Licensed Material to:
+
+ a. reproduce and Share the Licensed Material, in whole or
+ in part; and
+
+ b. produce, reproduce, and Share Adapted Material.
+
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
+ Exceptions and Limitations apply to Your use, this Public
+ License does not apply, and You do not need to comply with
+ its terms and conditions.
+
+ 3. Term. The term of this Public License is specified in Section
+ 6(a).
+
+ 4. Media and formats; technical modifications allowed. The
+ Licensor authorizes You to exercise the Licensed Rights in
+ all media and formats whether now known or hereafter created,
+ and to make technical modifications necessary to do so. The
+ Licensor waives and/or agrees not to assert any right or
+ authority to forbid You from making technical modifications
+ necessary to exercise the Licensed Rights, including
+ technical modifications necessary to circumvent Effective
+ Technological Measures. For purposes of this Public License,
+ simply making modifications authorized by this Section 2(a)
+ (4) never produces Adapted Material.
+
+ 5. Downstream recipients.
+
+ a. Offer from the Licensor -- Licensed Material. Every
+ recipient of the Licensed Material automatically
+ receives an offer from the Licensor to exercise the
+ Licensed Rights under the terms and conditions of this
+ Public License.
+
+ b. No downstream restrictions. You may not offer or impose
+ any additional or different terms or conditions on, or
+ apply any Effective Technological Measures to, the
+ Licensed Material if doing so restricts exercise of the
+ Licensed Rights by any recipient of the Licensed
+ Material.
+
+ 6. No endorsement. Nothing in this Public License constitutes or
+ may be construed as permission to assert or imply that You
+ are, or that Your use of the Licensed Material is, connected
+ with, or sponsored, endorsed, or granted official status by,
+ the Licensor or others designated to receive attribution as
+ provided in Section 3(a)(1)(A)(i).
+
+ b. Other rights.
+
+ 1. Moral rights, such as the right of integrity, are not
+ licensed under this Public License, nor are publicity,
+ privacy, and/or other similar personality rights; however, to
+ the extent possible, the Licensor waives and/or agrees not to
+ assert any such rights held by the Licensor to the limited
+ extent necessary to allow You to exercise the Licensed
+ Rights, but not otherwise.
+
+ 2. Patent and trademark rights are not licensed under this
+ Public License.
+
+ 3. To the extent possible, the Licensor waives any right to
+ collect royalties from You for the exercise of the Licensed
+ Rights, whether directly or through a collecting society
+ under any voluntary or waivable statutory or compulsory
+ licensing scheme. In all other cases the Licensor expressly
+ reserves any right to collect such royalties.
+
+
+Section 3 -- License Conditions.
+
+Your exercise of the Licensed Rights is expressly made subject to the
+following conditions.
+
+ a. Attribution.
+
+ 1. If You Share the Licensed Material (including in modified
+ form), You must:
+
+ a. retain the following if it is supplied by the Licensor
+ with the Licensed Material:
+
+ i. identification of the creator(s) of the Licensed
+ Material and any others designated to receive
+ attribution, in any reasonable manner requested by
+ the Licensor (including by pseudonym if
+ designated);
+
+ ii. a copyright notice;
+
+ iii. a notice that refers to this Public License;
+
+ iv. a notice that refers to the disclaimer of
+ warranties;
+
+ v. a URI or hyperlink to the Licensed Material to the
+ extent reasonably practicable;
+
+ b. indicate if You modified the Licensed Material and
+ retain an indication of any previous modifications; and
+
+ c. indicate the Licensed Material is licensed under this
+ Public License, and include the text of, or the URI or
+ hyperlink to, this Public License.
+
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
+ reasonable manner based on the medium, means, and context in
+ which You Share the Licensed Material. For example, it may be
+ reasonable to satisfy the conditions by providing a URI or
+ hyperlink to a resource that includes the required
+ information.
+
+ 3. If requested by the Licensor, You must remove any of the
+ information required by Section 3(a)(1)(A) to the extent
+ reasonably practicable.
+
+ 4. If You Share Adapted Material You produce, the Adapter's
+ License You apply must not prevent recipients of the Adapted
+ Material from complying with this Public License.
+
+
+Section 4 -- Sui Generis Database Rights.
+
+Where the Licensed Rights include Sui Generis Database Rights that
+apply to Your use of the Licensed Material:
+
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
+ to extract, reuse, reproduce, and Share all or a substantial
+ portion of the contents of the database;
+
+ b. if You include all or a substantial portion of the database
+ contents in a database in which You have Sui Generis Database
+ Rights, then the database in which You have Sui Generis Database
+ Rights (but not its individual contents) is Adapted Material; and
+
+ c. You must comply with the conditions in Section 3(a) if You Share
+ all or a substantial portion of the contents of the database.
+
+For the avoidance of doubt, this Section 4 supplements and does not
+replace Your obligations under this Public License where the Licensed
+Rights include other Copyright and Similar Rights.
+
+
+Section 5 -- Disclaimer of Warranties and Limitation of Liability.
+
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
+
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
+
+ c. The disclaimer of warranties and limitation of liability provided
+ above shall be interpreted in a manner that, to the extent
+ possible, most closely approximates an absolute disclaimer and
+ waiver of all liability.
+
+
+Section 6 -- Term and Termination.
+
+ a. This Public License applies for the term of the Copyright and
+ Similar Rights licensed here. However, if You fail to comply with
+ this Public License, then Your rights under this Public License
+ terminate automatically.
+
+ b. Where Your right to use the Licensed Material has terminated under
+ Section 6(a), it reinstates:
+
+ 1. automatically as of the date the violation is cured, provided
+ it is cured within 30 days of Your discovery of the
+ violation; or
+
+ 2. upon express reinstatement by the Licensor.
+
+ For the avoidance of doubt, this Section 6(b) does not affect any
+ right the Licensor may have to seek remedies for Your violations
+ of this Public License.
+
+ c. For the avoidance of doubt, the Licensor may also offer the
+ Licensed Material under separate terms or conditions or stop
+ distributing the Licensed Material at any time; however, doing so
+ will not terminate this Public License.
+
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
+ License.
+
+
+Section 7 -- Other Terms and Conditions.
+
+ a. The Licensor shall not be bound by any additional or different
+ terms or conditions communicated by You unless expressly agreed.
+
+ b. Any arrangements, understandings, or agreements regarding the
+ Licensed Material not stated herein are separate from and
+ independent of the terms and conditions of this Public License.
+
+
+Section 8 -- Interpretation.
+
+ a. For the avoidance of doubt, this Public License does not, and
+ shall not be interpreted to, reduce, limit, restrict, or impose
+ conditions on any use of the Licensed Material that could lawfully
+ be made without permission under this Public License.
+
+ b. To the extent possible, if any provision of this Public License is
+ deemed unenforceable, it shall be automatically reformed to the
+ minimum extent necessary to make it enforceable. If the provision
+ cannot be reformed, it shall be severed from this Public License
+ without affecting the enforceability of the remaining terms and
+ conditions.
+
+ c. No term or condition of this Public License will be waived and no
+ failure to comply consented to unless expressly agreed to by the
+ Licensor.
+
+ d. Nothing in this Public License constitutes or may be interpreted
+ as a limitation upon, or waiver of, any privileges and immunities
+ that apply to the Licensor or You, including from the legal
+ processes of any jurisdiction or authority.
+
+
+=======================================================================
+
+Creative Commons is not a party to its public
+licenses. Notwithstanding, Creative Commons may elect to apply one of
+its public licenses to material it publishes and in those instances
+will be considered the “Licensor.” The text of the Creative Commons
+public licenses is dedicated to the public domain under the CC0 Public
+Domain Dedication. Except for the limited purpose of indicating that
+material is shared under a Creative Commons public license or as
+otherwise permitted by the Creative Commons policies published at
+creativecommons.org/policies, Creative Commons does not authorize the
+use of the trademark "Creative Commons" or any other trademark or logo
+of Creative Commons without its prior written consent including,
+without limitation, in connection with any unauthorized modifications
+to any of its public licenses or any other arrangements,
+understandings, or agreements concerning use of licensed material. For
+the avoidance of doubt, this paragraph does not form part of the
+public licenses.
+
+Creative Commons may be contacted at creativecommons.org.
diff --git a/web-v2/web/licenses/chalk.txt b/web-v2/web/licenses/chalk.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/chalk.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/cheerio-select.txt b/web-v2/web/licenses/cheerio-select.txt
new file mode 100644
index 0000000000..c464f863ea
--- /dev/null
+++ b/web-v2/web/licenses/cheerio-select.txt
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/cheerio.txt b/web-v2/web/licenses/cheerio.txt
new file mode 100644
index 0000000000..b0c8b19358
--- /dev/null
+++ b/web-v2/web/licenses/cheerio.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 The Cheerio contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/chokidar.txt b/web-v2/web/licenses/chokidar.txt
new file mode 100644
index 0000000000..fa9162b51a
--- /dev/null
+++ b/web-v2/web/licenses/chokidar.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the “Software”), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/chownr.txt b/web-v2/web/licenses/chownr.txt
new file mode 100644
index 0000000000..881248b6d7
--- /dev/null
+++ b/web-v2/web/licenses/chownr.txt
@@ -0,0 +1,63 @@
+All packages under `src/` are licensed according to the terms in
+their respective `LICENSE` or `LICENSE.md` files.
+
+The remainder of this project is licensed under the Blue Oak
+Model License, as follows:
+
+-----
+
+# Blue Oak Model License
+
+Version 1.0.0
+
+## Purpose
+
+This license gives everyone as much permission to work with
+this software as possible, while protecting contributors
+from liability.
+
+## Acceptance
+
+In order to receive this license, you must agree to its
+rules. The rules of this license are both obligations
+under that agreement and conditions to your license.
+You must not do anything with this software that triggers
+a rule that you cannot or will not follow.
+
+## Copyright
+
+Each contributor licenses you to do everything with this
+software that would otherwise infringe that contributor's
+copyright in it.
+
+## Notices
+
+You must ensure that everyone who gets a copy of
+any part of this software from you, with or without
+changes, also gets the text of this license or a link to
+<https://blueoakcouncil.org/license/1.0.0>.
+
+## Excuse
+
+If anyone notifies you in writing that you have not
+complied with [Notices](#notices), you can keep your
+license by taking all practical steps to comply within 30
+days after the notice. If you do not do so, your license
+ends immediately.
+
+## Patent
+
+Each contributor licenses you to do everything with this
+software that would otherwise infringe any patent claims
+they can license or become able to license.
+
+## Reliability
+
+No contributor can revoke this license.
+
+## No Liability
+
+***As far as the law allows, this software comes as is,
+without any warranty or condition, and no contributor
+will be liable to anyone for any damages related to this
+software or this license, under any kind of legal claim.***
diff --git a/web-v2/web/licenses/chroma-js.txt b/web-v2/web/licenses/chroma-js.txt
new file mode 100644
index 0000000000..cb2499d49c
--- /dev/null
+++ b/web-v2/web/licenses/chroma-js.txt
@@ -0,0 +1,54 @@
+chroma.js - JavaScript library for color conversions
+
+Copyright (c) 2011-2019, Gregor Aisch
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. The name Gregor Aisch may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+-------------------------------------------------------
+
+chroma.js includes colors from colorbrewer2.org, which are released under
+the following license:
+
+Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
+and The Pennsylvania State University.
+
+Licensed 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.
+
+------------------------------------------------------
+
+Named colors are taken from X11 Color Names.
+http://www.w3.org/TR/css3-color/#svg-color
+
+@preserve
diff --git a/web-v2/web/licenses/classnames.txt b/web-v2/web/licenses/classnames.txt
new file mode 100644
index 0000000000..4117bfae03
--- /dev/null
+++ b/web-v2/web/licenses/classnames.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 Jed Watson
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/cliui.txt b/web-v2/web/licenses/cliui.txt
new file mode 100644
index 0000000000..588e91872f
--- /dev/null
+++ b/web-v2/web/licenses/cliui.txt
@@ -0,0 +1,14 @@
+Copyright (c) 2015, Contributors
+
+Permission to use, copy, modify, and/or distribute this software
+for any purpose with or without fee is hereby granted, provided
+that the above copyright notice and this permission notice
+appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
+LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/clsx.txt b/web-v2/web/licenses/clsx.txt
new file mode 100644
index 0000000000..fa6089faba
--- /dev/null
+++ b/web-v2/web/licenses/clsx.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/color-convert.txt b/web-v2/web/licenses/color-convert.txt
new file mode 100644
index 0000000000..0f2106fcd5
--- /dev/null
+++ b/web-v2/web/licenses/color-convert.txt
@@ -0,0 +1,22 @@
+Copyright (c) 2011-2016 Heather Arthur <[email protected]>.
+Copyright (c) 2016-2021 Josh Junon <[email protected]>.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/web-v2/web/licenses/color-name.txt b/web-v2/web/licenses/color-name.txt
new file mode 100644
index 0000000000..4d9802a89e
--- /dev/null
+++ b/web-v2/web/licenses/color-name.txt
@@ -0,0 +1,8 @@
+The MIT License (MIT)
+Copyright (c) 2015 Dmitry Ivanov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/combined-stream.txt b/web-v2/web/licenses/combined-stream.txt
new file mode 100644
index 0000000000..4804b7ab41
--- /dev/null
+++ b/web-v2/web/licenses/combined-stream.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Debuggable Limited <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/commander.txt b/web-v2/web/licenses/commander.txt
new file mode 100644
index 0000000000..10f997ab10
--- /dev/null
+++ b/web-v2/web/licenses/commander.txt
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2011 TJ Holowaychuk <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/compute-scroll-into-view.txt b/web-v2/web/licenses/compute-scroll-into-view.txt
new file mode 100644
index 0000000000..842ecc17a3
--- /dev/null
+++ b/web-v2/web/licenses/compute-scroll-into-view.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Cody Olsen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/concat-map.txt b/web-v2/web/licenses/concat-map.txt
new file mode 100644
index 0000000000..64092f7f39
--- /dev/null
+++ b/web-v2/web/licenses/concat-map.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2012 James Halliday and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/confbox.txt b/web-v2/web/licenses/confbox.txt
new file mode 100644
index 0000000000..71e6facaf6
--- /dev/null
+++ b/web-v2/web/licenses/confbox.txt
@@ -0,0 +1,118 @@
+MIT License
+
+Copyright (c) Pooya Parsa <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+---
+
+js-yaml: https://github.com/nodeca/js-yaml/tree/master
+
+(The MIT License)
+
+Copyright (C) 2011-2015 by Vitaly Puzrin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+---
+
+smol-toml: https://github.com/squirrelchat/smol-toml/blob/mistress/LICENSE
+
+Copyright (c) Squirrel Chat et al., All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. Neither the name of the copyright holder nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+---
+
+jsonc-parser: https://github.com/microsoft/node-jsonc-parser/blob/main/LICENSE.md
+
+The MIT License (MIT)
+
+Copyright (c) Microsoft
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+---
+
+json5: https://github.com/json5/json5/blob/main/LICENSE.md
+
+MIT License
+
+Copyright (c) 2012-2018 Aseem Kishore, and others (https://github.com/json5/json5/graphs/contributors)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+---
+
+detect-indent: https://github.com/sindresorhus/detect-indent/blob/main/license
+
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/convert-source-map.txt b/web-v2/web/licenses/convert-source-map.txt
new file mode 100644
index 0000000000..41702c5043
--- /dev/null
+++ b/web-v2/web/licenses/convert-source-map.txt
@@ -0,0 +1,23 @@
+Copyright 2013 Thorsten Lorenz.
+All rights reserved.
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/copy-to-clipboard.txt b/web-v2/web/licenses/copy-to-clipboard.txt
new file mode 100644
index 0000000000..4a7395ee83
--- /dev/null
+++ b/web-v2/web/licenses/copy-to-clipboard.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 sudodoki <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/cosmiconfig.txt b/web-v2/web/licenses/cosmiconfig.txt
new file mode 100644
index 0000000000..6d347c0662
--- /dev/null
+++ b/web-v2/web/licenses/cosmiconfig.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 David Clark
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/cross-spawn.txt b/web-v2/web/licenses/cross-spawn.txt
new file mode 100644
index 0000000000..8407b9a30f
--- /dev/null
+++ b/web-v2/web/licenses/cross-spawn.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 Made With MOXY Lda <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/css-in-js-utils.txt b/web-v2/web/licenses/css-in-js-utils.txt
new file mode 100644
index 0000000000..76f632ab31
--- /dev/null
+++ b/web-v2/web/licenses/css-in-js-utils.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Robin Frischmann
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/css-select.txt b/web-v2/web/licenses/css-select.txt
new file mode 100644
index 0000000000..c464f863ea
--- /dev/null
+++ b/web-v2/web/licenses/css-select.txt
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/css-tree.txt b/web-v2/web/licenses/css-tree.txt
new file mode 100644
index 0000000000..b46f3c4a61
--- /dev/null
+++ b/web-v2/web/licenses/css-tree.txt
@@ -0,0 +1,19 @@
+Copyright (C) 2016-2022 by Roman Dvornov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/css-what.txt b/web-v2/web/licenses/css-what.txt
new file mode 100644
index 0000000000..c464f863ea
--- /dev/null
+++ b/web-v2/web/licenses/css-what.txt
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/cssesc.txt b/web-v2/web/licenses/cssesc.txt
new file mode 100644
index 0000000000..a81b73c8fd
--- /dev/null
+++ b/web-v2/web/licenses/cssesc.txt
@@ -0,0 +1,20 @@
+Copyright Mathias Bynens <https://mathiasbynens.be/>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/cssinjs.txt b/web-v2/web/licenses/cssinjs.txt
new file mode 100644
index 0000000000..2f0b1b02a1
--- /dev/null
+++ b/web-v2/web/licenses/cssinjs.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/csso.txt b/web-v2/web/licenses/csso.txt
new file mode 100644
index 0000000000..a200643d9a
--- /dev/null
+++ b/web-v2/web/licenses/csso.txt
@@ -0,0 +1,20 @@
+Copyright (C) 2015-2021 by Roman Dvornov
+Copyright (C) 2011-2015 by Sergey Kryzhanovsky
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/csstype.txt b/web-v2/web/licenses/csstype.txt
new file mode 100644
index 0000000000..ac06f6224a
--- /dev/null
+++ b/web-v2/web/licenses/csstype.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2017-2018 Fredrik Nicol
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/ctrl-tinycolor.txt b/web-v2/web/licenses/ctrl-tinycolor.txt
new file mode 100644
index 0000000000..6d15a9e3b5
--- /dev/null
+++ b/web-v2/web/licenses/ctrl-tinycolor.txt
@@ -0,0 +1,7 @@
+Copyright (c) Scott Cooper <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/damerau-levenshtein.txt b/web-v2/web/licenses/damerau-levenshtein.txt
new file mode 100644
index 0000000000..3332001b6d
--- /dev/null
+++ b/web-v2/web/licenses/damerau-levenshtein.txt
@@ -0,0 +1,25 @@
+BSD 2-Clause License
+
+Copyright (c) 2018, Tadeusz Łazurski
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/data-view-buffer.txt b/web-v2/web/licenses/data-view-buffer.txt
new file mode 100644
index 0000000000..b4213ac640
--- /dev/null
+++ b/web-v2/web/licenses/data-view-buffer.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/data-view-byte-length.txt b/web-v2/web/licenses/data-view-byte-length.txt
new file mode 100644
index 0000000000..f82f38963b
--- /dev/null
+++ b/web-v2/web/licenses/data-view-byte-length.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/data-view-byte-offset.txt b/web-v2/web/licenses/data-view-byte-offset.txt
new file mode 100644
index 0000000000..f82f38963b
--- /dev/null
+++ b/web-v2/web/licenses/data-view-byte-offset.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/dayjs.txt b/web-v2/web/licenses/dayjs.txt
new file mode 100644
index 0000000000..caf9315493
--- /dev/null
+++ b/web-v2/web/licenses/dayjs.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018-present, iamkun
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/debounce.txt b/web-v2/web/licenses/debounce.txt
new file mode 100644
index 0000000000..f1cf0eb7a2
--- /dev/null
+++ b/web-v2/web/licenses/debounce.txt
@@ -0,0 +1,11 @@
+MIT License
+
+Coprighht (c) Jeremy Ashkenas, Julian Gonggrijp, DocumentCloud, Investigative Reporters & Editors
+Copyright (c) Ben Carpenter, Billy Moon, Josh Goldberg, Julian Gruber, Kristofer Selbekk, Matthew Mueller, Nathan Rajlich, Oleg Pudeyev, Stephen Mathieson, TJ Holowaychuk, suhaotian, ven
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/debug.txt b/web-v2/web/licenses/debug.txt
new file mode 100644
index 0000000000..1a9820e262
--- /dev/null
+++ b/web-v2/web/licenses/debug.txt
@@ -0,0 +1,20 @@
+(The MIT License)
+
+Copyright (c) 2014-2017 TJ Holowaychuk <[email protected]>
+Copyright (c) 2018-2021 Josh Junon
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software
+and associated documentation files (the 'Software'), to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial
+portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/web-v2/web/licenses/deep-is.txt b/web-v2/web/licenses/deep-is.txt
new file mode 100644
index 0000000000..c38f84073f
--- /dev/null
+++ b/web-v2/web/licenses/deep-is.txt
@@ -0,0 +1,22 @@
+Copyright (c) 2012, 2013 Thorsten Lorenz <[email protected]>
+Copyright (c) 2012 James Halliday <[email protected]>
+Copyright (c) 2009 Thomas Robinson <280north.com>
+
+This software is released under the MIT license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/define-data-property.txt b/web-v2/web/licenses/define-data-property.txt
new file mode 100644
index 0000000000..b4213ac640
--- /dev/null
+++ b/web-v2/web/licenses/define-data-property.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/define-properties.txt b/web-v2/web/licenses/define-properties.txt
new file mode 100644
index 0000000000..8c271c14b6
--- /dev/null
+++ b/web-v2/web/licenses/define-properties.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/delayed-stream.txt b/web-v2/web/licenses/delayed-stream.txt
new file mode 100644
index 0000000000..4804b7ab41
--- /dev/null
+++ b/web-v2/web/licenses/delayed-stream.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Debuggable Limited <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/dequal.txt b/web-v2/web/licenses/dequal.txt
new file mode 100644
index 0000000000..a3f96f8284
--- /dev/null
+++ b/web-v2/web/licenses/dequal.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/dir-glob.txt b/web-v2/web/licenses/dir-glob.txt
new file mode 100644
index 0000000000..db6bc32cc7
--- /dev/null
+++ b/web-v2/web/licenses/dir-glob.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Kevin Mårtensson <[email protected]> (github.com/kevva)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/discoveryjs-json-ext.txt b/web-v2/web/licenses/discoveryjs-json-ext.txt
new file mode 100644
index 0000000000..44f551a642
--- /dev/null
+++ b/web-v2/web/licenses/discoveryjs-json-ext.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Roman Dvornov <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/dom-helpers.txt b/web-v2/web/licenses/dom-helpers.txt
new file mode 100644
index 0000000000..284f555dbe
--- /dev/null
+++ b/web-v2/web/licenses/dom-helpers.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jason Quense
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/dom-serializer.txt b/web-v2/web/licenses/dom-serializer.txt
new file mode 100644
index 0000000000..8a3a2faf4d
--- /dev/null
+++ b/web-v2/web/licenses/dom-serializer.txt
@@ -0,0 +1,7 @@
+Copyright © 2022 The Cheerio contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/domelementtype.txt b/web-v2/web/licenses/domelementtype.txt
new file mode 100644
index 0000000000..c464f863ea
--- /dev/null
+++ b/web-v2/web/licenses/domelementtype.txt
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/domhandler.txt b/web-v2/web/licenses/domhandler.txt
new file mode 100644
index 0000000000..c464f863ea
--- /dev/null
+++ b/web-v2/web/licenses/domhandler.txt
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/domutils.txt b/web-v2/web/licenses/domutils.txt
new file mode 100644
index 0000000000..c464f863ea
--- /dev/null
+++ b/web-v2/web/licenses/domutils.txt
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/dunder-proto.txt b/web-v2/web/licenses/dunder-proto.txt
new file mode 100644
index 0000000000..34995e79d1
--- /dev/null
+++ b/web-v2/web/licenses/dunder-proto.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/duplexer.txt b/web-v2/web/licenses/duplexer.txt
new file mode 100644
index 0000000000..a23e08a85a
--- /dev/null
+++ b/web-v2/web/licenses/duplexer.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2012 Raynos.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/electron-to-chromium.txt b/web-v2/web/licenses/electron-to-chromium.txt
new file mode 100644
index 0000000000..6c7b614d4e
--- /dev/null
+++ b/web-v2/web/licenses/electron-to-chromium.txt
@@ -0,0 +1,5 @@
+Copyright 2018 Kilian Valkhof
+
+Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/emoji-regex.txt b/web-v2/web/licenses/emoji-regex.txt
new file mode 100644
index 0000000000..a81b73c8fd
--- /dev/null
+++ b/web-v2/web/licenses/emoji-regex.txt
@@ -0,0 +1,20 @@
+Copyright Mathias Bynens <https://mathiasbynens.be/>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/end-of-stream.txt b/web-v2/web/licenses/end-of-stream.txt
new file mode 100644
index 0000000000..757562ec59
--- /dev/null
+++ b/web-v2/web/licenses/end-of-stream.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Mathias Buus
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/enhanced-resolve.txt b/web-v2/web/licenses/enhanced-resolve.txt
new file mode 100644
index 0000000000..8c11fc7289
--- /dev/null
+++ b/web-v2/web/licenses/enhanced-resolve.txt
@@ -0,0 +1,20 @@
+Copyright JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/entities.txt b/web-v2/web/licenses/entities.txt
new file mode 100644
index 0000000000..c464f863ea
--- /dev/null
+++ b/web-v2/web/licenses/entities.txt
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/env-cmd.txt b/web-v2/web/licenses/env-cmd.txt
new file mode 100644
index 0000000000..a3842821c3
--- /dev/null
+++ b/web-v2/web/licenses/env-cmd.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Todd Bluhm
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/error-ex.txt b/web-v2/web/licenses/error-ex.txt
new file mode 100644
index 0000000000..0a5f461a69
--- /dev/null
+++ b/web-v2/web/licenses/error-ex.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 JD Ballard
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/error-stack-parser.txt b/web-v2/web/licenses/error-stack-parser.txt
new file mode 100644
index 0000000000..5c09f1a025
--- /dev/null
+++ b/web-v2/web/licenses/error-stack-parser.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2017 Eric Wendelin and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/es-abstract.txt b/web-v2/web/licenses/es-abstract.txt
new file mode 100644
index 0000000000..3f137ce0c3
--- /dev/null
+++ b/web-v2/web/licenses/es-abstract.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/es-define-property.txt b/web-v2/web/licenses/es-define-property.txt
new file mode 100644
index 0000000000..f82f38963b
--- /dev/null
+++ b/web-v2/web/licenses/es-define-property.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/es-errors.txt b/web-v2/web/licenses/es-errors.txt
new file mode 100644
index 0000000000..f82f38963b
--- /dev/null
+++ b/web-v2/web/licenses/es-errors.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/es-iterator-helpers.txt b/web-v2/web/licenses/es-iterator-helpers.txt
new file mode 100644
index 0000000000..c2a8460a3c
--- /dev/null
+++ b/web-v2/web/licenses/es-iterator-helpers.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/es-object-atoms.txt b/web-v2/web/licenses/es-object-atoms.txt
new file mode 100644
index 0000000000..f82f38963b
--- /dev/null
+++ b/web-v2/web/licenses/es-object-atoms.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/es-set-tostringtag.txt b/web-v2/web/licenses/es-set-tostringtag.txt
new file mode 100644
index 0000000000..c2a8460a3c
--- /dev/null
+++ b/web-v2/web/licenses/es-set-tostringtag.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/es-shim-unscopables.txt b/web-v2/web/licenses/es-shim-unscopables.txt
new file mode 100644
index 0000000000..6abfe1434e
--- /dev/null
+++ b/web-v2/web/licenses/es-shim-unscopables.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/es-to-primitive.txt b/web-v2/web/licenses/es-to-primitive.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/es-to-primitive.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/esbuild.txt b/web-v2/web/licenses/esbuild.txt
new file mode 100644
index 0000000000..2027e8dcf3
--- /dev/null
+++ b/web-v2/web/licenses/esbuild.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Evan Wallace
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/escalade.txt b/web-v2/web/licenses/escalade.txt
new file mode 100644
index 0000000000..fa6089faba
--- /dev/null
+++ b/web-v2/web/licenses/escalade.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/escape-string-regexp.txt b/web-v2/web/licenses/escape-string-regexp.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/escape-string-regexp.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-community-eslint-utils.txt b/web-v2/web/licenses/eslint-community-eslint-utils.txt
new file mode 100644
index 0000000000..883ee1f612
--- /dev/null
+++ b/web-v2/web/licenses/eslint-community-eslint-utils.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Toru Nagashima
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-community-regexpp.txt b/web-v2/web/licenses/eslint-community-regexpp.txt
new file mode 100644
index 0000000000..883ee1f612
--- /dev/null
+++ b/web-v2/web/licenses/eslint-community-regexpp.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Toru Nagashima
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-config-prettier.txt b/web-v2/web/licenses/eslint-config-prettier.txt
new file mode 100644
index 0000000000..4b17469e80
--- /dev/null
+++ b/web-v2/web/licenses/eslint-config-prettier.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-eslintrc.txt b/web-v2/web/licenses/eslint-eslintrc.txt
new file mode 100644
index 0000000000..b607bb36e9
--- /dev/null
+++ b/web-v2/web/licenses/eslint-eslintrc.txt
@@ -0,0 +1,19 @@
+Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-import-resolver-node.txt b/web-v2/web/licenses/eslint-import-resolver-node.txt
new file mode 100644
index 0000000000..c6ade2a433
--- /dev/null
+++ b/web-v2/web/licenses/eslint-import-resolver-node.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Ben Mosher
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/eslint-import-resolver-typescript.txt b/web-v2/web/licenses/eslint-import-resolver-typescript.txt
new file mode 100644
index 0000000000..652813cd7b
--- /dev/null
+++ b/web-v2/web/licenses/eslint-import-resolver-typescript.txt
@@ -0,0 +1,5 @@
+Copyright 2021 Alex Gorbatchev <[email protected]>
+
+Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-js.txt b/web-v2/web/licenses/eslint-js.txt
new file mode 100644
index 0000000000..b607bb36e9
--- /dev/null
+++ b/web-v2/web/licenses/eslint-js.txt
@@ -0,0 +1,19 @@
+Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-module-utils.txt b/web-v2/web/licenses/eslint-module-utils.txt
new file mode 100644
index 0000000000..c6ade2a433
--- /dev/null
+++ b/web-v2/web/licenses/eslint-module-utils.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Ben Mosher
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/eslint-plugin-import.txt b/web-v2/web/licenses/eslint-plugin-import.txt
new file mode 100644
index 0000000000..c6ade2a433
--- /dev/null
+++ b/web-v2/web/licenses/eslint-plugin-import.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Ben Mosher
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/eslint-plugin-jsx-a11y.txt b/web-v2/web/licenses/eslint-plugin-jsx-a11y.txt
new file mode 100644
index 0000000000..a66c74b723
--- /dev/null
+++ b/web-v2/web/licenses/eslint-plugin-jsx-a11y.txt
@@ -0,0 +1,8 @@
+The MIT License (MIT)
+Copyright (c) 2016 Ethan Cohen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-plugin-react-hooks.txt b/web-v2/web/licenses/eslint-plugin-react-hooks.txt
new file mode 100644
index 0000000000..b93be90515
--- /dev/null
+++ b/web-v2/web/licenses/eslint-plugin-react-hooks.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Meta Platforms, Inc. and affiliates.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/eslint-plugin-react.txt b/web-v2/web/licenses/eslint-plugin-react.txt
new file mode 100644
index 0000000000..6b5a43eae7
--- /dev/null
+++ b/web-v2/web/licenses/eslint-plugin-react.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Yannick Croissant
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/eslint-regexpp.txt b/web-v2/web/licenses/eslint-regexpp.txt
new file mode 100644
index 0000000000..8dd5713003
--- /dev/null
+++ b/web-v2/web/licenses/eslint-regexpp.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Toru Nagashima
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/eslint-scope.txt b/web-v2/web/licenses/eslint-scope.txt
new file mode 100644
index 0000000000..d36a526f7e
--- /dev/null
+++ b/web-v2/web/licenses/eslint-scope.txt
@@ -0,0 +1,22 @@
+Copyright JS Foundation and other contributors, https://js.foundation
+Copyright (C) 2012-2013 Yusuke Suzuki (twitter: @Constellation) and other contributors.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/eslint-utils.txt b/web-v2/web/licenses/eslint-utils.txt
new file mode 100644
index 0000000000..8dd5713003
--- /dev/null
+++ b/web-v2/web/licenses/eslint-utils.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Toru Nagashima
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/eslint-visitor-keys.txt b/web-v2/web/licenses/eslint-visitor-keys.txt
new file mode 100644
index 0000000000..17a25538d9
--- /dev/null
+++ b/web-v2/web/licenses/eslint-visitor-keys.txt
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright contributors
+
+ Licensed 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.
diff --git a/web-v2/web/licenses/eslint.txt b/web-v2/web/licenses/eslint.txt
new file mode 100644
index 0000000000..b607bb36e9
--- /dev/null
+++ b/web-v2/web/licenses/eslint.txt
@@ -0,0 +1,19 @@
+Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/eslintrc.txt b/web-v2/web/licenses/eslintrc.txt
new file mode 100644
index 0000000000..8c1425a8ed
--- /dev/null
+++ b/web-v2/web/licenses/eslintrc.txt
@@ -0,0 +1,19 @@
+Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/espree.txt b/web-v2/web/licenses/espree.txt
new file mode 100644
index 0000000000..b18469ff2f
--- /dev/null
+++ b/web-v2/web/licenses/espree.txt
@@ -0,0 +1,25 @@
+BSD 2-Clause License
+
+Copyright (c) Open JS Foundation
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/esquery.txt b/web-v2/web/licenses/esquery.txt
new file mode 100644
index 0000000000..52f915e268
--- /dev/null
+++ b/web-v2/web/licenses/esquery.txt
@@ -0,0 +1,24 @@
+Copyright (c) 2013, Joel Feenstra
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of the ESQuery nor the names of its contributors may
+ be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL JOEL FEENSTRA BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/esrecurse.txt b/web-v2/web/licenses/esrecurse.txt
new file mode 100644
index 0000000000..9bc272d28b
--- /dev/null
+++ b/web-v2/web/licenses/esrecurse.txt
@@ -0,0 +1,25 @@
+### License
+
+Copyright (C) 2014 [Yusuke Suzuki](https://github.com/Constellation)
+ (twitter: [@Constellation](https://twitter.com/Constellation)) and other contributors.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/estraverse.txt b/web-v2/web/licenses/estraverse.txt
new file mode 100644
index 0000000000..3e580c355a
--- /dev/null
+++ b/web-v2/web/licenses/estraverse.txt
@@ -0,0 +1,19 @@
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/esutils.txt b/web-v2/web/licenses/esutils.txt
new file mode 100644
index 0000000000..3e580c355a
--- /dev/null
+++ b/web-v2/web/licenses/esutils.txt
@@ -0,0 +1,19 @@
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/execa.txt b/web-v2/web/licenses/execa.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/execa.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/extract-zip.txt b/web-v2/web/licenses/extract-zip.txt
new file mode 100644
index 0000000000..2921069135
--- /dev/null
+++ b/web-v2/web/licenses/extract-zip.txt
@@ -0,0 +1,23 @@
+Copyright (c) 2014 Max Ogden and other contributors
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/fast-color.txt b/web-v2/web/licenses/fast-color.txt
new file mode 100644
index 0000000000..fbf368a7fb
--- /dev/null
+++ b/web-v2/web/licenses/fast-color.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/fast-deep-equal.txt b/web-v2/web/licenses/fast-deep-equal.txt
new file mode 100644
index 0000000000..7f1543566f
--- /dev/null
+++ b/web-v2/web/licenses/fast-deep-equal.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Evgeny Poberezkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/fast-glob.txt b/web-v2/web/licenses/fast-glob.txt
new file mode 100644
index 0000000000..c02c824fb1
--- /dev/null
+++ b/web-v2/web/licenses/fast-glob.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Denis Malinochkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/fast-json-stable-stringify.txt b/web-v2/web/licenses/fast-json-stable-stringify.txt
new file mode 100644
index 0000000000..c932223b1e
--- /dev/null
+++ b/web-v2/web/licenses/fast-json-stable-stringify.txt
@@ -0,0 +1,21 @@
+This software is released under the MIT license:
+
+Copyright (c) 2017 Evgeny Poberezkin
+Copyright (c) 2013 James Halliday
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/fast-levenshtein.txt b/web-v2/web/licenses/fast-levenshtein.txt
new file mode 100644
index 0000000000..6212406b41
--- /dev/null
+++ b/web-v2/web/licenses/fast-levenshtein.txt
@@ -0,0 +1,25 @@
+(MIT License)
+
+Copyright (c) 2013 [Ramesh Nair](http://www.hiddentao.com/)
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/web-v2/web/licenses/fast-loops.txt b/web-v2/web/licenses/fast-loops.txt
new file mode 100644
index 0000000000..76f632ab31
--- /dev/null
+++ b/web-v2/web/licenses/fast-loops.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Robin Frischmann
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/fast-shallow-equal.txt b/web-v2/web/licenses/fast-shallow-equal.txt
new file mode 100644
index 0000000000..fdddb29aa4
--- /dev/null
+++ b/web-v2/web/licenses/fast-shallow-equal.txt
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <https://unlicense.org>
diff --git a/web-v2/web/licenses/fastest-stable-stringify.txt b/web-v2/web/licenses/fastest-stable-stringify.txt
new file mode 100644
index 0000000000..ee27ba4b44
--- /dev/null
+++ b/web-v2/web/licenses/fastest-stable-stringify.txt
@@ -0,0 +1,18 @@
+This software is released under the MIT license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/fastq.txt b/web-v2/web/licenses/fastq.txt
new file mode 100644
index 0000000000..27c7bb4623
--- /dev/null
+++ b/web-v2/web/licenses/fastq.txt
@@ -0,0 +1,13 @@
+Copyright (c) 2015-2020, Matteo Collina <[email protected]>
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/fd-slicer.txt b/web-v2/web/licenses/fd-slicer.txt
new file mode 100644
index 0000000000..e57596d245
--- /dev/null
+++ b/web-v2/web/licenses/fd-slicer.txt
@@ -0,0 +1,21 @@
+Copyright (c) 2014 Andrew Kelley
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation files
+(the "Software"), to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of the Software,
+and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/file-entry-cache.txt b/web-v2/web/licenses/file-entry-cache.txt
new file mode 100644
index 0000000000..39a8bc4598
--- /dev/null
+++ b/web-v2/web/licenses/file-entry-cache.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) Roy Riojas & Jared Wray
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/fill-range.txt b/web-v2/web/licenses/fill-range.txt
new file mode 100644
index 0000000000..9af4a67d20
--- /dev/null
+++ b/web-v2/web/licenses/fill-range.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/find-root.md b/web-v2/web/licenses/find-root.md
new file mode 100644
index 0000000000..07777b38c9
--- /dev/null
+++ b/web-v2/web/licenses/find-root.md
@@ -0,0 +1,7 @@
+Copyright © 2017 jsdnxx
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/find-root.txt b/web-v2/web/licenses/find-root.txt
new file mode 100644
index 0000000000..c94b80ac82
--- /dev/null
+++ b/web-v2/web/licenses/find-root.txt
@@ -0,0 +1,7 @@
+Copyright © 2017 jsdnxx
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/find-up.txt b/web-v2/web/licenses/find-up.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/find-up.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/flat-cache.txt b/web-v2/web/licenses/flat-cache.txt
new file mode 100644
index 0000000000..7383a47e9c
--- /dev/null
+++ b/web-v2/web/licenses/flat-cache.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) Roy Riojas and Jared Wray
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/flatted.txt b/web-v2/web/licenses/flatted.txt
new file mode 100644
index 0000000000..506dc479c6
--- /dev/null
+++ b/web-v2/web/licenses/flatted.txt
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2018-2020, Andrea Giammarchi, @WebReflection
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/floating-ui-core.txt b/web-v2/web/licenses/floating-ui-core.txt
new file mode 100644
index 0000000000..5665118418
--- /dev/null
+++ b/web-v2/web/licenses/floating-ui-core.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Floating UI contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/floating-ui-dom.txt b/web-v2/web/licenses/floating-ui-dom.txt
new file mode 100644
index 0000000000..5665118418
--- /dev/null
+++ b/web-v2/web/licenses/floating-ui-dom.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Floating UI contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/floating-ui-react-dom.txt b/web-v2/web/licenses/floating-ui-react-dom.txt
new file mode 100644
index 0000000000..5665118418
--- /dev/null
+++ b/web-v2/web/licenses/floating-ui-react-dom.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Floating UI contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/floating-ui-utils.txt b/web-v2/web/licenses/floating-ui-utils.txt
new file mode 100644
index 0000000000..5665118418
--- /dev/null
+++ b/web-v2/web/licenses/floating-ui-utils.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Floating UI contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/follow-redirects.txt b/web-v2/web/licenses/follow-redirects.txt
new file mode 100644
index 0000000000..742cbada54
--- /dev/null
+++ b/web-v2/web/licenses/follow-redirects.txt
@@ -0,0 +1,18 @@
+Copyright 2014–present Olivier Lalonde <[email protected]>, James Talmage <[email protected]>, Ruben Verborgh
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/for-each.txt b/web-v2/web/licenses/for-each.txt
new file mode 100644
index 0000000000..53f19aa771
--- /dev/null
+++ b/web-v2/web/licenses/for-each.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2012 Raynos.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/foreground-child.txt b/web-v2/web/licenses/foreground-child.txt
new file mode 100644
index 0000000000..2d80720fe6
--- /dev/null
+++ b/web-v2/web/licenses/foreground-child.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/form-data.txt b/web-v2/web/licenses/form-data.txt
new file mode 100644
index 0000000000..c7ff12a2f8
--- /dev/null
+++ b/web-v2/web/licenses/form-data.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2012 Felix Geisendörfer ([email protected]) and contributors
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
diff --git a/web-v2/web/licenses/fraction-js.txt b/web-v2/web/licenses/fraction-js.txt
new file mode 100644
index 0000000000..6dd5328fed
--- /dev/null
+++ b/web-v2/web/licenses/fraction-js.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Robert Eisele
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/fs-minipass.txt b/web-v2/web/licenses/fs-minipass.txt
new file mode 100644
index 0000000000..19129e315f
--- /dev/null
+++ b/web-v2/web/licenses/fs-minipass.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/fs-realpath.txt b/web-v2/web/licenses/fs-realpath.txt
new file mode 100644
index 0000000000..cfb2aa95d9
--- /dev/null
+++ b/web-v2/web/licenses/fs-realpath.txt
@@ -0,0 +1,43 @@
+The ISC License
+
+Copyright (c) 2016-2023 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+----
+
+This library bundles a version of the `fs.realpath` and `fs.realpathSync`
+methods from Node.js v0.10 under the terms of the Node.js MIT license.
+
+Node's license follows, also included at the header of `old.js` which contains
+the licensed code:
+
+Copyright (c) 2016-2023 Joyent, Inc. and other Node contributors.
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/fsevents.txt b/web-v2/web/licenses/fsevents.txt
new file mode 100644
index 0000000000..5d70441c37
--- /dev/null
+++ b/web-v2/web/licenses/fsevents.txt
@@ -0,0 +1,22 @@
+MIT License
+-----------
+
+Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/function-bind.txt b/web-v2/web/licenses/function-bind.txt
new file mode 100644
index 0000000000..62d6d237ff
--- /dev/null
+++ b/web-v2/web/licenses/function-bind.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2013 Raynos.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/web-v2/web/licenses/function-prototype-name.txt b/web-v2/web/licenses/function-prototype-name.txt
new file mode 100644
index 0000000000..44f679ad41
--- /dev/null
+++ b/web-v2/web/licenses/function-prototype-name.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/functions-have-names.txt b/web-v2/web/licenses/functions-have-names.txt
new file mode 100644
index 0000000000..3900dd7e2f
--- /dev/null
+++ b/web-v2/web/licenses/functions-have-names.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/gen-mapping.txt b/web-v2/web/licenses/gen-mapping.txt
new file mode 100644
index 0000000000..9fb470195e
--- /dev/null
+++ b/web-v2/web/licenses/gen-mapping.txt
@@ -0,0 +1,19 @@
+Copyright 2022 Justin Ridgewell <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/get-intrinsic.txt b/web-v2/web/licenses/get-intrinsic.txt
new file mode 100644
index 0000000000..48f05d01d0
--- /dev/null
+++ b/web-v2/web/licenses/get-intrinsic.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/get-proto.txt b/web-v2/web/licenses/get-proto.txt
new file mode 100644
index 0000000000..eeabd1c37c
--- /dev/null
+++ b/web-v2/web/licenses/get-proto.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/get-stream.txt b/web-v2/web/licenses/get-stream.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/get-stream.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/get-symbol-description.txt b/web-v2/web/licenses/get-symbol-description.txt
new file mode 100644
index 0000000000..7948bc02a7
--- /dev/null
+++ b/web-v2/web/licenses/get-symbol-description.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/get-tsconfig.txt b/web-v2/web/licenses/get-tsconfig.txt
new file mode 100644
index 0000000000..51e4fd8646
--- /dev/null
+++ b/web-v2/web/licenses/get-tsconfig.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Hiroki Osame <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/glob-parent.txt b/web-v2/web/licenses/glob-parent.txt
new file mode 100644
index 0000000000..d701b08324
--- /dev/null
+++ b/web-v2/web/licenses/glob-parent.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz <[email protected]>, Eric Schoffstall <[email protected]> and other contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/glob.txt b/web-v2/web/licenses/glob.txt
new file mode 100644
index 0000000000..ec7df93329
--- /dev/null
+++ b/web-v2/web/licenses/glob.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/globals.txt b/web-v2/web/licenses/globals.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/globals.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/globalthis.txt b/web-v2/web/licenses/globalthis.txt
new file mode 100644
index 0000000000..44f679ad41
--- /dev/null
+++ b/web-v2/web/licenses/globalthis.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/globby.txt b/web-v2/web/licenses/globby.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/globby.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/goober.txt b/web-v2/web/licenses/goober.txt
new file mode 100644
index 0000000000..2f4a507d12
--- /dev/null
+++ b/web-v2/web/licenses/goober.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Cristian Bote
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/gopd.txt b/web-v2/web/licenses/gopd.txt
new file mode 100644
index 0000000000..6abfe1434e
--- /dev/null
+++ b/web-v2/web/licenses/gopd.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/graceful-fs.txt b/web-v2/web/licenses/graceful-fs.txt
new file mode 100644
index 0000000000..b0445d0119
--- /dev/null
+++ b/web-v2/web/licenses/graceful-fs.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/graphemer.txt b/web-v2/web/licenses/graphemer.txt
new file mode 100644
index 0000000000..51f383108a
--- /dev/null
+++ b/web-v2/web/licenses/graphemer.txt
@@ -0,0 +1,18 @@
+Copyright 2020 Filament (Anomalous Technologies Limited)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/gzip-size.txt b/web-v2/web/licenses/gzip-size.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/gzip-size.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/has-bigints.txt b/web-v2/web/licenses/has-bigints.txt
new file mode 100644
index 0000000000..3900dd7e2f
--- /dev/null
+++ b/web-v2/web/licenses/has-bigints.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/has-flag.txt b/web-v2/web/licenses/has-flag.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/has-flag.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/has-property-descriptors.txt b/web-v2/web/licenses/has-property-descriptors.txt
new file mode 100644
index 0000000000..2e7b9a3eac
--- /dev/null
+++ b/web-v2/web/licenses/has-property-descriptors.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/has-proto.txt b/web-v2/web/licenses/has-proto.txt
new file mode 100644
index 0000000000..2e7b9a3eac
--- /dev/null
+++ b/web-v2/web/licenses/has-proto.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/has-symbols.txt b/web-v2/web/licenses/has-symbols.txt
new file mode 100644
index 0000000000..df31cbf3c0
--- /dev/null
+++ b/web-v2/web/licenses/has-symbols.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/has-tostringtag.txt b/web-v2/web/licenses/has-tostringtag.txt
new file mode 100644
index 0000000000..7948bc02a7
--- /dev/null
+++ b/web-v2/web/licenses/has-tostringtag.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/hasown.txt b/web-v2/web/licenses/hasown.txt
new file mode 100644
index 0000000000..0314929078
--- /dev/null
+++ b/web-v2/web/licenses/hasown.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Jordan Harband and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/hoist-non-react-statics.txt b/web-v2/web/licenses/hoist-non-react-statics.txt
new file mode 100644
index 0000000000..2464f59ec1
--- /dev/null
+++ b/web-v2/web/licenses/hoist-non-react-statics.txt
@@ -0,0 +1,29 @@
+Software License Agreement (BSD License)
+========================================
+
+Copyright (c) 2015, Yahoo! Inc. All rights reserved.
+----------------------------------------------------
+
+Redistribution and use of this software in source and binary forms, with or
+without modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Yahoo! Inc. nor the names of YUI's contributors may be
+ used to endorse or promote products derived from this software without
+ specific prior written permission of Yahoo! Inc.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/hookform-resolvers.txt b/web-v2/web/licenses/hookform-resolvers.txt
new file mode 100644
index 0000000000..139faf48e1
--- /dev/null
+++ b/web-v2/web/licenses/hookform-resolvers.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019-present Beier(Bill) Luo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/html-escaper.txt b/web-v2/web/licenses/html-escaper.txt
new file mode 100644
index 0000000000..dcfa0aebdc
--- /dev/null
+++ b/web-v2/web/licenses/html-escaper.txt
@@ -0,0 +1,19 @@
+Copyright (C) 2017-present by Andrea Giammarchi - @WebReflection
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/htmlparser2.txt b/web-v2/web/licenses/htmlparser2.txt
new file mode 100644
index 0000000000..0a35e029af
--- /dev/null
+++ b/web-v2/web/licenses/htmlparser2.txt
@@ -0,0 +1,18 @@
+Copyright 2010, 2011, Chris Winberry <[email protected]>. All rights reserved.
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/human-signals.txt b/web-v2/web/licenses/human-signals.txt
new file mode 100644
index 0000000000..6e73507200
--- /dev/null
+++ b/web-v2/web/licenses/human-signals.txt
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2024 ehmicky <[email protected]>
+
+ Licensed 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.
diff --git a/web-v2/web/licenses/humanwhocodes-object-schema.txt b/web-v2/web/licenses/humanwhocodes-object-schema.txt
new file mode 100644
index 0000000000..a5e3ae46fd
--- /dev/null
+++ b/web-v2/web/licenses/humanwhocodes-object-schema.txt
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2019, Human Who Codes
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/hyphenate-style-name.txt b/web-v2/web/licenses/hyphenate-style-name.txt
new file mode 100644
index 0000000000..058514e6f0
--- /dev/null
+++ b/web-v2/web/licenses/hyphenate-style-name.txt
@@ -0,0 +1,28 @@
+Copyright (c) 2015, Espen Hovlandsdal
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of hyphenate-style-name nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/web-v2/web/licenses/iconify-react.txt b/web-v2/web/licenses/iconify-react.txt
new file mode 100644
index 0000000000..9f9951d917
--- /dev/null
+++ b/web-v2/web/licenses/iconify-react.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021-PRESENT Vjacheslav Trushkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/iconify-tools.txt b/web-v2/web/licenses/iconify-tools.txt
new file mode 100644
index 0000000000..9f9951d917
--- /dev/null
+++ b/web-v2/web/licenses/iconify-tools.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021-PRESENT Vjacheslav Trushkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/iconify-types.txt b/web-v2/web/licenses/iconify-types.txt
new file mode 100644
index 0000000000..9f9951d917
--- /dev/null
+++ b/web-v2/web/licenses/iconify-types.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021-PRESENT Vjacheslav Trushkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/iconify-utils.txt b/web-v2/web/licenses/iconify-utils.txt
new file mode 100644
index 0000000000..9f9951d917
--- /dev/null
+++ b/web-v2/web/licenses/iconify-utils.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021-PRESENT Vjacheslav Trushkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/iconify.txt b/web-v2/web/licenses/iconify.txt
new file mode 100644
index 0000000000..9f9951d917
--- /dev/null
+++ b/web-v2/web/licenses/iconify.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021-PRESENT Vjacheslav Trushkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/iconify_tools.txt b/web-v2/web/licenses/iconify_tools.txt
new file mode 100644
index 0000000000..9f9951d917
--- /dev/null
+++ b/web-v2/web/licenses/iconify_tools.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021-PRESENT Vjacheslav Trushkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/icons-material.txt b/web-v2/web/licenses/icons-material.txt
new file mode 100644
index 0000000000..acfaf44a9e
--- /dev/null
+++ b/web-v2/web/licenses/icons-material.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/ignore.txt b/web-v2/web/licenses/ignore.txt
new file mode 100644
index 0000000000..825533e337
--- /dev/null
+++ b/web-v2/web/licenses/ignore.txt
@@ -0,0 +1,21 @@
+Copyright (c) 2013 Kael Zhang <[email protected]>, contributors
+http://kael.me/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/immer.txt b/web-v2/web/licenses/immer.txt
new file mode 100644
index 0000000000..c01411588a
--- /dev/null
+++ b/web-v2/web/licenses/immer.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Michel Weststrate
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/import-fresh.txt b/web-v2/web/licenses/import-fresh.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/import-fresh.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/imurmurhash.txt b/web-v2/web/licenses/imurmurhash.txt
new file mode 100644
index 0000000000..3976989301
--- /dev/null
+++ b/web-v2/web/licenses/imurmurhash.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2013 Gary Court, Jens Taylor
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/inflight.txt b/web-v2/web/licenses/inflight.txt
new file mode 100644
index 0000000000..05eeeb88c2
--- /dev/null
+++ b/web-v2/web/licenses/inflight.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/inherits.txt b/web-v2/web/licenses/inherits.txt
new file mode 100644
index 0000000000..0d29b96e7e
--- /dev/null
+++ b/web-v2/web/licenses/inherits.txt
@@ -0,0 +1,16 @@
+The ISC License
+
+Copyright (c) 2011-2023 Isaac Z. Schlueter
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
diff --git a/web-v2/web/licenses/inline-style-prefixer.txt b/web-v2/web/licenses/inline-style-prefixer.txt
new file mode 100644
index 0000000000..35f76d0d0a
--- /dev/null
+++ b/web-v2/web/licenses/inline-style-prefixer.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Robin Frischmann
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/internal-slot.txt b/web-v2/web/licenses/internal-slot.txt
new file mode 100644
index 0000000000..3900dd7e2f
--- /dev/null
+++ b/web-v2/web/licenses/internal-slot.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-array-buffer.txt b/web-v2/web/licenses/is-array-buffer.txt
new file mode 100644
index 0000000000..a9b309c224
--- /dev/null
+++ b/web-v2/web/licenses/is-array-buffer.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2015 Chen Gengyuan, Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-arrayish.txt b/web-v2/web/licenses/is-arrayish.txt
new file mode 100644
index 0000000000..0a5f461a69
--- /dev/null
+++ b/web-v2/web/licenses/is-arrayish.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 JD Ballard
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-async-function.txt b/web-v2/web/licenses/is-async-function.txt
new file mode 100644
index 0000000000..1da6a81dd5
--- /dev/null
+++ b/web-v2/web/licenses/is-async-function.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Charlike Mike Reagent <@tunnckoCore> (https://i.am.charlike.online)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-bigint.txt b/web-v2/web/licenses/is-bigint.txt
new file mode 100644
index 0000000000..9dd868f0f9
--- /dev/null
+++ b/web-v2/web/licenses/is-bigint.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-binary-path.txt b/web-v2/web/licenses/is-binary-path.txt
new file mode 100644
index 0000000000..401b1c731b
--- /dev/null
+++ b/web-v2/web/licenses/is-binary-path.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) 2019 Sindre Sorhus <[email protected]> (https://sindresorhus.com), Paul Miller (https://paulmillr.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-boolean-object.txt b/web-v2/web/licenses/is-boolean-object.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/is-boolean-object.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/is-callable.txt b/web-v2/web/licenses/is-callable.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/is-callable.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/is-core-module.txt b/web-v2/web/licenses/is-core-module.txt
new file mode 100644
index 0000000000..2e502872a7
--- /dev/null
+++ b/web-v2/web/licenses/is-core-module.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Dave Justice
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/is-data-view.txt b/web-v2/web/licenses/is-data-view.txt
new file mode 100644
index 0000000000..870f86180a
--- /dev/null
+++ b/web-v2/web/licenses/is-data-view.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-date-object.txt b/web-v2/web/licenses/is-date-object.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/is-date-object.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/is-extglob.txt b/web-v2/web/licenses/is-extglob.txt
new file mode 100644
index 0000000000..842218cf09
--- /dev/null
+++ b/web-v2/web/licenses/is-extglob.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2016, Jon Schlinkert
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-finalizationregistry.txt b/web-v2/web/licenses/is-finalizationregistry.txt
new file mode 100644
index 0000000000..707437b575
--- /dev/null
+++ b/web-v2/web/licenses/is-finalizationregistry.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-fullwidth-code-point.txt b/web-v2/web/licenses/is-fullwidth-code-point.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/is-fullwidth-code-point.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-generator-function.txt b/web-v2/web/licenses/is-generator-function.txt
new file mode 100644
index 0000000000..47b7b5078f
--- /dev/null
+++ b/web-v2/web/licenses/is-generator-function.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-glob.txt b/web-v2/web/licenses/is-glob.txt
new file mode 100644
index 0000000000..3f2eca18f1
--- /dev/null
+++ b/web-v2/web/licenses/is-glob.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2017, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-map.txt b/web-v2/web/licenses/is-map.txt
new file mode 100644
index 0000000000..c05eb206bd
--- /dev/null
+++ b/web-v2/web/licenses/is-map.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-negative-zero.txt b/web-v2/web/licenses/is-negative-zero.txt
new file mode 100644
index 0000000000..47b7b5078f
--- /dev/null
+++ b/web-v2/web/licenses/is-negative-zero.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-number-object.txt b/web-v2/web/licenses/is-number-object.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/is-number-object.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/is-number.txt b/web-v2/web/licenses/is-number.txt
new file mode 100644
index 0000000000..9af4a67d20
--- /dev/null
+++ b/web-v2/web/licenses/is-number.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-path-inside.txt b/web-v2/web/licenses/is-path-inside.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/is-path-inside.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-plain-object.txt b/web-v2/web/licenses/is-plain-object.txt
new file mode 100644
index 0000000000..3f2eca18f1
--- /dev/null
+++ b/web-v2/web/licenses/is-plain-object.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2017, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-regex.txt b/web-v2/web/licenses/is-regex.txt
new file mode 100644
index 0000000000..47b7b5078f
--- /dev/null
+++ b/web-v2/web/licenses/is-regex.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-set.txt b/web-v2/web/licenses/is-set.txt
new file mode 100644
index 0000000000..c05eb206bd
--- /dev/null
+++ b/web-v2/web/licenses/is-set.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-shared-array-buffer.txt b/web-v2/web/licenses/is-shared-array-buffer.txt
new file mode 100644
index 0000000000..7948bc02a7
--- /dev/null
+++ b/web-v2/web/licenses/is-shared-array-buffer.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-stream.txt b/web-v2/web/licenses/is-stream.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/is-stream.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/is-string.txt b/web-v2/web/licenses/is-string.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/is-string.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/is-symbol.txt b/web-v2/web/licenses/is-symbol.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/is-symbol.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/is-typed-array.txt b/web-v2/web/licenses/is-typed-array.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/is-typed-array.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/is-weakmap.txt b/web-v2/web/licenses/is-weakmap.txt
new file mode 100644
index 0000000000..c05eb206bd
--- /dev/null
+++ b/web-v2/web/licenses/is-weakmap.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-weakref.txt b/web-v2/web/licenses/is-weakref.txt
new file mode 100644
index 0000000000..707437b575
--- /dev/null
+++ b/web-v2/web/licenses/is-weakref.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/is-weakset.txt b/web-v2/web/licenses/is-weakset.txt
new file mode 100644
index 0000000000..c05eb206bd
--- /dev/null
+++ b/web-v2/web/licenses/is-weakset.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/isaacs-cliui.txt b/web-v2/web/licenses/isaacs-cliui.txt
new file mode 100644
index 0000000000..c7e27478a3
--- /dev/null
+++ b/web-v2/web/licenses/isaacs-cliui.txt
@@ -0,0 +1,14 @@
+Copyright (c) 2015, Contributors
+
+Permission to use, copy, modify, and/or distribute this software
+for any purpose with or without fee is hereby granted, provided
+that the above copyright notice and this permission notice
+appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
+LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/isarray.txt b/web-v2/web/licenses/isarray.txt
new file mode 100644
index 0000000000..de3226673c
--- /dev/null
+++ b/web-v2/web/licenses/isarray.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2013 Julian Gruber <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/isexe.txt b/web-v2/web/licenses/isexe.txt
new file mode 100644
index 0000000000..c925dbe826
--- /dev/null
+++ b/web-v2/web/licenses/isexe.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2016-2022 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/iterator-prototype.txt b/web-v2/web/licenses/iterator-prototype.txt
new file mode 100644
index 0000000000..6abfe1434e
--- /dev/null
+++ b/web-v2/web/licenses/iterator-prototype.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/jackspeak.txt b/web-v2/web/licenses/jackspeak.txt
new file mode 100644
index 0000000000..c5402b9577
--- /dev/null
+++ b/web-v2/web/licenses/jackspeak.txt
@@ -0,0 +1,55 @@
+# Blue Oak Model License
+
+Version 1.0.0
+
+## Purpose
+
+This license gives everyone as much permission to work with
+this software as possible, while protecting contributors
+from liability.
+
+## Acceptance
+
+In order to receive this license, you must agree to its
+rules. The rules of this license are both obligations
+under that agreement and conditions to your license.
+You must not do anything with this software that triggers
+a rule that you cannot or will not follow.
+
+## Copyright
+
+Each contributor licenses you to do everything with this
+software that would otherwise infringe that contributor's
+copyright in it.
+
+## Notices
+
+You must ensure that everyone who gets a copy of
+any part of this software from you, with or without
+changes, also gets the text of this license or a link to
+<https://blueoakcouncil.org/license/1.0.0>.
+
+## Excuse
+
+If anyone notifies you in writing that you have not
+complied with [Notices](#notices), you can keep your
+license by taking all practical steps to comply within 30
+days after the notice. If you do not do so, your license
+ends immediately.
+
+## Patent
+
+Each contributor licenses you to do everything with this
+software that would otherwise infringe any patent claims
+they can license or become able to license.
+
+## Reliability
+
+No contributor can revoke this license.
+
+## No Liability
+
+***As far as the law allows, this software comes as is,
+without any warranty or condition, and no contributor
+will be liable to anyone for any damages related to this
+software or this license, under any kind of legal claim.***
diff --git a/web-v2/web/licenses/jiti.txt b/web-v2/web/licenses/jiti.txt
new file mode 100644
index 0000000000..e739abce46
--- /dev/null
+++ b/web-v2/web/licenses/jiti.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Pooya Parsa <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/jridgewell-gen-mapping.txt b/web-v2/web/licenses/jridgewell-gen-mapping.txt
new file mode 100644
index 0000000000..352f0715f3
--- /dev/null
+++ b/web-v2/web/licenses/jridgewell-gen-mapping.txt
@@ -0,0 +1,19 @@
+Copyright 2022 Justin Ridgewell <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/jridgewell-resolve-uri.txt b/web-v2/web/licenses/jridgewell-resolve-uri.txt
new file mode 100644
index 0000000000..0a81b2ade1
--- /dev/null
+++ b/web-v2/web/licenses/jridgewell-resolve-uri.txt
@@ -0,0 +1,19 @@
+Copyright 2019 Justin Ridgewell <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/jridgewell-set-array.txt b/web-v2/web/licenses/jridgewell-set-array.txt
new file mode 100644
index 0000000000..352f0715f3
--- /dev/null
+++ b/web-v2/web/licenses/jridgewell-set-array.txt
@@ -0,0 +1,19 @@
+Copyright 2022 Justin Ridgewell <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/jridgewell-sourcemap-codec.txt b/web-v2/web/licenses/jridgewell-sourcemap-codec.txt
new file mode 100644
index 0000000000..a331065a46
--- /dev/null
+++ b/web-v2/web/licenses/jridgewell-sourcemap-codec.txt
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2015 Rich Harris
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/jridgewell-trace-mapping.txt b/web-v2/web/licenses/jridgewell-trace-mapping.txt
new file mode 100644
index 0000000000..37bb488f08
--- /dev/null
+++ b/web-v2/web/licenses/jridgewell-trace-mapping.txt
@@ -0,0 +1,19 @@
+Copyright 2022 Justin Ridgewell <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/js-cookie.txt b/web-v2/web/licenses/js-cookie.txt
new file mode 100644
index 0000000000..3c581cad4e
--- /dev/null
+++ b/web-v2/web/licenses/js-cookie.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/js-tokens.txt b/web-v2/web/licenses/js-tokens.txt
new file mode 100644
index 0000000000..f07e1ac1eb
--- /dev/null
+++ b/web-v2/web/licenses/js-tokens.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Simon Lydell
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/js-yaml.txt b/web-v2/web/licenses/js-yaml.txt
new file mode 100644
index 0000000000..09d3a29e93
--- /dev/null
+++ b/web-v2/web/licenses/js-yaml.txt
@@ -0,0 +1,21 @@
+(The MIT License)
+
+Copyright (C) 2011-2015 by Vitaly Puzrin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/jsdom.txt b/web-v2/web/licenses/jsdom.txt
new file mode 100644
index 0000000000..0dbd429041
--- /dev/null
+++ b/web-v2/web/licenses/jsdom.txt
@@ -0,0 +1,22 @@
+Copyright (c) 2010 Elijah Insua
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/json-buffer.txt b/web-v2/web/licenses/json-buffer.txt
new file mode 100644
index 0000000000..b799ec00c4
--- /dev/null
+++ b/web-v2/web/licenses/json-buffer.txt
@@ -0,0 +1,22 @@
+Copyright (c) 2013 Dominic Tarr
+
+Permission is hereby granted, free of charge,
+to any person obtaining a copy of this software and
+associated documentation files (the "Software"), to
+deal in the Software without restriction, including
+without limitation the rights to use, copy, modify,
+merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom
+the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/json-ext.txt b/web-v2/web/licenses/json-ext.txt
new file mode 100644
index 0000000000..3956e6bf63
--- /dev/null
+++ b/web-v2/web/licenses/json-ext.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Roman Dvornov <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/json-parse-even-better-errors.txt b/web-v2/web/licenses/json-parse-even-better-errors.txt
new file mode 100644
index 0000000000..6991b7cbb8
--- /dev/null
+++ b/web-v2/web/licenses/json-parse-even-better-errors.txt
@@ -0,0 +1,25 @@
+Copyright 2017 Kat Marchán
+Copyright npm, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+---
+
+This library is a fork of 'better-json-errors' by Kat Marchán, extended and
+distributed under the terms of the MIT license above.
diff --git a/web-v2/web/licenses/json-schema-traverse.txt b/web-v2/web/licenses/json-schema-traverse.txt
new file mode 100644
index 0000000000..7f1543566f
--- /dev/null
+++ b/web-v2/web/licenses/json-schema-traverse.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Evgeny Poberezkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/json-stable-stringify-without-jsonify.txt b/web-v2/web/licenses/json-stable-stringify-without-jsonify.txt
new file mode 100644
index 0000000000..ee27ba4b44
--- /dev/null
+++ b/web-v2/web/licenses/json-stable-stringify-without-jsonify.txt
@@ -0,0 +1,18 @@
+This software is released under the MIT license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/json2mq.txt b/web-v2/web/licenses/json2mq.txt
new file mode 100644
index 0000000000..8ebbdc8c5c
--- /dev/null
+++ b/web-v2/web/licenses/json2mq.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Kiran Abburi
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/json5.txt b/web-v2/web/licenses/json5.txt
new file mode 100644
index 0000000000..2171aca5a8
--- /dev/null
+++ b/web-v2/web/licenses/json5.txt
@@ -0,0 +1,23 @@
+MIT License
+
+Copyright (c) 2012-2018 Aseem Kishore, and [others].
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+[others]: https://github.com/json5/json5/contributors
diff --git a/web-v2/web/licenses/jsx-ast-utils.txt b/web-v2/web/licenses/jsx-ast-utils.txt
new file mode 100644
index 0000000000..a66c74b723
--- /dev/null
+++ b/web-v2/web/licenses/jsx-ast-utils.txt
@@ -0,0 +1,8 @@
+The MIT License (MIT)
+Copyright (c) 2016 Ethan Cohen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/keyv.txt b/web-v2/web/licenses/keyv.txt
new file mode 100644
index 0000000000..a6bad1d22e
--- /dev/null
+++ b/web-v2/web/licenses/keyv.txt
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2017-2021 Luke Childs
+Copyright (c) 2021-2022 Jared Wray
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/kolorist.txt b/web-v2/web/licenses/kolorist.txt
new file mode 100644
index 0000000000..52c0230c86
--- /dev/null
+++ b/web-v2/web/licenses/kolorist.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2020-present Marvin Hagemeister
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/language-tags.txt b/web-v2/web/licenses/language-tags.txt
new file mode 100644
index 0000000000..f8cdb37232
--- /dev/null
+++ b/web-v2/web/licenses/language-tags.txt
@@ -0,0 +1,8 @@
+The MIT License (MIT)
+Copyright © 2024 Matthew Caruana Galizia, http://m.cg <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/levn.txt b/web-v2/web/licenses/levn.txt
new file mode 100644
index 0000000000..525b11850e
--- /dev/null
+++ b/web-v2/web/licenses/levn.txt
@@ -0,0 +1,22 @@
+Copyright (c) George Zahariev
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/lilconfig.txt b/web-v2/web/licenses/lilconfig.txt
new file mode 100644
index 0000000000..fd866f4bb4
--- /dev/null
+++ b/web-v2/web/licenses/lilconfig.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Anton Kastritskiy
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/lines-and-columns.txt b/web-v2/web/licenses/lines-and-columns.txt
new file mode 100644
index 0000000000..12978ece65
--- /dev/null
+++ b/web-v2/web/licenses/lines-and-columns.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Brian Donovan
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/local-pkg.txt b/web-v2/web/licenses/local-pkg.txt
new file mode 100644
index 0000000000..d47cea55b8
--- /dev/null
+++ b/web-v2/web/licenses/local-pkg.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/locate-path.txt b/web-v2/web/licenses/locate-path.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/locate-path.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/lodash-es.txt b/web-v2/web/licenses/lodash-es.txt
new file mode 100644
index 0000000000..4773fd8e84
--- /dev/null
+++ b/web-v2/web/licenses/lodash-es.txt
@@ -0,0 +1,49 @@
+The MIT License
+
+Copyright JS Foundation and other contributors <https://js.foundation/>
+
+Based on Underscore.js, copyright Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
+
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/lodash/lodash
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+Copyright and related rights for sample code are waived via CC0. Sample
+code is defined as all source code displayed within the prose of the
+documentation.
+
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
+
+====
+
+Files located in the node_modules and vendor directories are externally
+maintained libraries used by this software which have their own
+licenses; we recommend you read them, as their terms may differ from the
+terms above.
diff --git a/web-v2/web/licenses/lodash-merge.txt b/web-v2/web/licenses/lodash-merge.txt
new file mode 100644
index 0000000000..4773fd8e84
--- /dev/null
+++ b/web-v2/web/licenses/lodash-merge.txt
@@ -0,0 +1,49 @@
+The MIT License
+
+Copyright JS Foundation and other contributors <https://js.foundation/>
+
+Based on Underscore.js, copyright Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
+
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/lodash/lodash
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+Copyright and related rights for sample code are waived via CC0. Sample
+code is defined as all source code displayed within the prose of the
+documentation.
+
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
+
+====
+
+Files located in the node_modules and vendor directories are externally
+maintained libraries used by this software which have their own
+licenses; we recommend you read them, as their terms may differ from the
+terms above.
diff --git a/web-v2/web/licenses/lodash.txt b/web-v2/web/licenses/lodash.txt
new file mode 100644
index 0000000000..4773fd8e84
--- /dev/null
+++ b/web-v2/web/licenses/lodash.txt
@@ -0,0 +1,49 @@
+The MIT License
+
+Copyright JS Foundation and other contributors <https://js.foundation/>
+
+Based on Underscore.js, copyright Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
+
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/lodash/lodash
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+Copyright and related rights for sample code are waived via CC0. Sample
+code is defined as all source code displayed within the prose of the
+documentation.
+
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
+
+====
+
+Files located in the node_modules and vendor directories are externally
+maintained libraries used by this software which have their own
+licenses; we recommend you read them, as their terms may differ from the
+terms above.
diff --git a/web-v2/web/licenses/loose-envify.txt b/web-v2/web/licenses/loose-envify.txt
new file mode 100644
index 0000000000..fbafb48758
--- /dev/null
+++ b/web-v2/web/licenses/loose-envify.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Andres Suarez <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/lru-cache.txt b/web-v2/web/licenses/lru-cache.txt
new file mode 100644
index 0000000000..f785757cd6
--- /dev/null
+++ b/web-v2/web/licenses/lru-cache.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/math-intrinstics.txt b/web-v2/web/licenses/math-intrinstics.txt
new file mode 100644
index 0000000000..34995e79d1
--- /dev/null
+++ b/web-v2/web/licenses/math-intrinstics.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mdn-data.txt b/web-v2/web/licenses/mdn-data.txt
new file mode 100644
index 0000000000..670154e353
--- /dev/null
+++ b/web-v2/web/licenses/mdn-data.txt
@@ -0,0 +1,116 @@
+CC0 1.0 Universal
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer
+exclusive Copyright and Related Rights (defined below) upon the creator and
+subsequent owner(s) (each and all, an "owner") of an original work of
+authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for the
+purpose of contributing to a commons of creative, cultural and scientific
+works ("Commons") that the public can reliably and without fear of later
+claims of infringement build upon, modify, incorporate in other works, reuse
+and redistribute as freely as possible in any form whatsoever and for any
+purposes, including without limitation commercial purposes. These owners may
+contribute to the Commons to promote the ideal of a free culture and the
+further production of creative, cultural and scientific works, or to gain
+reputation or greater distribution for their Work in part through the use and
+efforts of others.
+
+For these and/or other purposes and motivations, and without any expectation
+of additional consideration or compensation, the person associating CC0 with a
+Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
+and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
+and publicly distribute the Work under its terms, with knowledge of his or her
+Copyright and Related Rights in the Work and the meaning and intended legal
+effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be
+protected by copyright and related or neighboring rights ("Copyright and
+Related Rights"). Copyright and Related Rights include, but are not limited
+to, the following:
+
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
+ and translate a Work;
+
+ ii. moral rights retained by the original author(s) and/or performer(s);
+
+ iii. publicity and privacy rights pertaining to a person's image or likeness
+ depicted in a Work;
+
+ iv. rights protecting against unfair competition in regards to a Work,
+ subject to the limitations in paragraph 4(a), below;
+
+ v. rights protecting the extraction, dissemination, use and reuse of data in
+ a Work;
+
+ vi. database rights (such as those arising under Directive 96/9/EC of the
+ European Parliament and of the Council of 11 March 1996 on the legal
+ protection of databases, and under any national implementation thereof,
+ including any amended or successor version of such directive); and
+
+ vii. other similar, equivalent or corresponding rights throughout the world
+ based on applicable law or treaty, and any national implementations thereof.
+
+2. Waiver. To the greatest extent permitted by, but not in contravention of,
+applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
+unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
+and Related Rights and associated claims and causes of action, whether now
+known or unknown (including existing as well as future claims and causes of
+action), in the Work (i) in all territories worldwide, (ii) for the maximum
+duration provided by applicable law or treaty (including future time
+extensions), (iii) in any current or future medium and for any number of
+copies, and (iv) for any purpose whatsoever, including without limitation
+commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
+the Waiver for the benefit of each member of the public at large and to the
+detriment of Affirmer's heirs and successors, fully intending that such Waiver
+shall not be subject to revocation, rescission, cancellation, termination, or
+any other legal or equitable action to disrupt the quiet enjoyment of the Work
+by the public as contemplated by Affirmer's express Statement of Purpose.
+
+3. Public License Fallback. Should any part of the Waiver for any reason be
+judged legally invalid or ineffective under applicable law, then the Waiver
+shall be preserved to the maximum extent permitted taking into account
+Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
+is so judged Affirmer hereby grants to each affected person a royalty-free,
+non transferable, non sublicensable, non exclusive, irrevocable and
+unconditional license to exercise Affirmer's Copyright and Related Rights in
+the Work (i) in all territories worldwide, (ii) for the maximum duration
+provided by applicable law or treaty (including future time extensions), (iii)
+in any current or future medium and for any number of copies, and (iv) for any
+purpose whatsoever, including without limitation commercial, advertising or
+promotional purposes (the "License"). The License shall be deemed effective as
+of the date CC0 was applied by Affirmer to the Work. Should any part of the
+License for any reason be judged legally invalid or ineffective under
+applicable law, such partial invalidity or ineffectiveness shall not
+invalidate the remainder of the License, and in such case Affirmer hereby
+affirms that he or she will not (i) exercise any of his or her remaining
+Copyright and Related Rights in the Work or (ii) assert any associated claims
+and causes of action with respect to the Work, in either case contrary to
+Affirmer's express Statement of Purpose.
+
+4. Limitations and Disclaimers.
+
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
+ surrendered, licensed or otherwise affected by this document.
+
+ b. Affirmer offers the Work as-is and makes no representations or warranties
+ of any kind concerning the Work, express, implied, statutory or otherwise,
+ including without limitation warranties of title, merchantability, fitness
+ for a particular purpose, non infringement, or the absence of latent or
+ other defects, accuracy, or the present or absence of errors, whether or not
+ discoverable, all to the greatest extent permissible under applicable law.
+
+ c. Affirmer disclaims responsibility for clearing rights of other persons
+ that may apply to the Work or any use thereof, including without limitation
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
+ disclaims responsibility for obtaining any necessary consents, permissions
+ or other rights required for any use of the Work.
+
+ d. Affirmer understands and acknowledges that Creative Commons is not a
+ party to this document and has no duty or obligation with respect to this
+ CC0 or use of the Work.
+
+For more information, please see
+<http://creativecommons.org/publicdomain/zero/1.0/>
diff --git a/web-v2/web/licenses/merge-stream.txt b/web-v2/web/licenses/merge-stream.txt
new file mode 100644
index 0000000000..0e0cf1e399
--- /dev/null
+++ b/web-v2/web/licenses/merge-stream.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2013 Stephen Sugden <[email protected]> (stephensugden.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/merge2.txt b/web-v2/web/licenses/merge2.txt
new file mode 100644
index 0000000000..0043cff530
--- /dev/null
+++ b/web-v2/web/licenses/merge2.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2022 Teambition
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/micromatch.txt b/web-v2/web/licenses/micromatch.txt
new file mode 100644
index 0000000000..9af4a67d20
--- /dev/null
+++ b/web-v2/web/licenses/micromatch.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/mime-db.txt b/web-v2/web/licenses/mime-db.txt
new file mode 100644
index 0000000000..0751cb10e9
--- /dev/null
+++ b/web-v2/web/licenses/mime-db.txt
@@ -0,0 +1,23 @@
+(The MIT License)
+
+Copyright (c) 2014 Jonathan Ong <[email protected]>
+Copyright (c) 2015-2022 Douglas Christopher Wilson <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/mime-types.txt b/web-v2/web/licenses/mime-types.txt
new file mode 100644
index 0000000000..06166077be
--- /dev/null
+++ b/web-v2/web/licenses/mime-types.txt
@@ -0,0 +1,23 @@
+(The MIT License)
+
+Copyright (c) 2014 Jonathan Ong <[email protected]>
+Copyright (c) 2015 Douglas Christopher Wilson <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/mimic-fn.txt b/web-v2/web/licenses/mimic-fn.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/mimic-fn.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/minimatch.txt b/web-v2/web/licenses/minimatch.txt
new file mode 100644
index 0000000000..1493534e60
--- /dev/null
+++ b/web-v2/web/licenses/minimatch.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/minimist.txt b/web-v2/web/licenses/minimist.txt
new file mode 100644
index 0000000000..670421c787
--- /dev/null
+++ b/web-v2/web/licenses/minimist.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2013 James Halliday and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/minipass.txt b/web-v2/web/licenses/minipass.txt
new file mode 100644
index 0000000000..97f8e32ed8
--- /dev/null
+++ b/web-v2/web/licenses/minipass.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/minizlib.txt b/web-v2/web/licenses/minizlib.txt
new file mode 100644
index 0000000000..49f7efe431
--- /dev/null
+++ b/web-v2/web/licenses/minizlib.txt
@@ -0,0 +1,26 @@
+Minizlib was created by Isaac Z. Schlueter.
+It is a derivative work of the Node.js project.
+
+"""
+Copyright (c) 2017-2023 Isaac Z. Schlueter and Contributors
+Copyright (c) 2017-2023 Node.js contributors. All rights reserved.
+Copyright (c) 2017-2023 Joyent, Inc. and other Node contributors. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
diff --git a/web-v2/web/licenses/mkdirp.txt b/web-v2/web/licenses/mkdirp.txt
new file mode 100644
index 0000000000..0a034db7a7
--- /dev/null
+++ b/web-v2/web/licenses/mkdirp.txt
@@ -0,0 +1,21 @@
+Copyright (c) 2011-2023 James Halliday ([email protected]) and Isaac Z. Schlueter ([email protected])
+
+This project is free software released under the MIT license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/mlly.txt b/web-v2/web/licenses/mlly.txt
new file mode 100644
index 0000000000..e739abce46
--- /dev/null
+++ b/web-v2/web/licenses/mlly.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Pooya Parsa <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mrmime.txt b/web-v2/web/licenses/mrmime.txt
new file mode 100644
index 0000000000..d46889ae35
--- /dev/null
+++ b/web-v2/web/licenses/mrmime.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Luke Edwards <[email protected]> (https://lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/ms.txt b/web-v2/web/licenses/ms.txt
new file mode 100644
index 0000000000..4bdf5bf3f8
--- /dev/null
+++ b/web-v2/web/licenses/ms.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2022 Vercel, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/mui-base.txt b/web-v2/web/licenses/mui-base.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-base.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-core-downloads-tracker.txt b/web-v2/web/licenses/mui-core-downloads-tracker.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-core-downloads-tracker.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-icons-material.txt b/web-v2/web/licenses/mui-icons-material.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-icons-material.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-lab.txt b/web-v2/web/licenses/mui-lab.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-lab.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-material.txt b/web-v2/web/licenses/mui-material.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-material.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-private-theming.txt b/web-v2/web/licenses/mui-private-theming.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-private-theming.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-styled-engine.txt b/web-v2/web/licenses/mui-styled-engine.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-styled-engine.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-system.txt b/web-v2/web/licenses/mui-system.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-system.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-types.txt b/web-v2/web/licenses/mui-types.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-types.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mui-utils.txt b/web-v2/web/licenses/mui-utils.txt
new file mode 100644
index 0000000000..af1beaff7f
--- /dev/null
+++ b/web-v2/web/licenses/mui-utils.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Call-Em-All
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/mz.txt b/web-v2/web/licenses/mz.txt
new file mode 100644
index 0000000000..1835f3d9f5
--- /dev/null
+++ b/web-v2/web/licenses/mz.txt
@@ -0,0 +1,22 @@
+
+The MIT License (MIT)
+
+Copyright (c) 2014-2016 Jonathan Ong [email protected] and Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/nano-css.txt b/web-v2/web/licenses/nano-css.txt
new file mode 100644
index 0000000000..fdddb29aa4
--- /dev/null
+++ b/web-v2/web/licenses/nano-css.txt
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <https://unlicense.org>
diff --git a/web-v2/web/licenses/nanoid.txt b/web-v2/web/licenses/nanoid.txt
new file mode 100644
index 0000000000..37f56aa49f
--- /dev/null
+++ b/web-v2/web/licenses/nanoid.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2017 Andrey Sitnik <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/natural-compare.txt b/web-v2/web/licenses/natural-compare.txt
new file mode 100644
index 0000000000..b4a2eba949
--- /dev/null
+++ b/web-v2/web/licenses/natural-compare.txt
@@ -0,0 +1,21 @@
+THE MIT LICENSE
+
+Copyright (c) Lauri Rooden <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/next.md b/web-v2/web/licenses/next.md
new file mode 100644
index 0000000000..ec9dcd99d1
--- /dev/null
+++ b/web-v2/web/licenses/next.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2024 Vercel, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/node-releases.txt b/web-v2/web/licenses/node-releases.txt
new file mode 100644
index 0000000000..ea39e4f9b7
--- /dev/null
+++ b/web-v2/web/licenses/node-releases.txt
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2017 Sergey Rubanov (https://github.com/chicoxyzzy)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/nodelib.txt b/web-v2/web/licenses/nodelib.txt
new file mode 100644
index 0000000000..d6c059307c
--- /dev/null
+++ b/web-v2/web/licenses/nodelib.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Denis Malinochkin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/normalize-path.txt b/web-v2/web/licenses/normalize-path.txt
new file mode 100644
index 0000000000..d32ab4426a
--- /dev/null
+++ b/web-v2/web/licenses/normalize-path.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2018, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/normalize-range.txt b/web-v2/web/licenses/normalize-range.txt
new file mode 100644
index 0000000000..b30a662015
--- /dev/null
+++ b/web-v2/web/licenses/normalize-range.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 James Talmage <[email protected]> (github.com/jamestalmage)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/npm-run-path.txt b/web-v2/web/licenses/npm-run-path.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/npm-run-path.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/nprogress.md b/web-v2/web/licenses/nprogress.md
new file mode 100644
index 0000000000..560c4fec3e
--- /dev/null
+++ b/web-v2/web/licenses/nprogress.md
@@ -0,0 +1,19 @@
+Copyright (c) 2013-2014 Rico Sta. Cruz
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/nth-check.txt b/web-v2/web/licenses/nth-check.txt
new file mode 100644
index 0000000000..c464f863ea
--- /dev/null
+++ b/web-v2/web/licenses/nth-check.txt
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/object-assign.txt b/web-v2/web/licenses/object-assign.txt
new file mode 100644
index 0000000000..ab29cbd63b
--- /dev/null
+++ b/web-v2/web/licenses/object-assign.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/object-entries.txt b/web-v2/web/licenses/object-entries.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/object-entries.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/object-fromentries.txt b/web-v2/web/licenses/object-fromentries.txt
new file mode 100644
index 0000000000..9dd868f0f9
--- /dev/null
+++ b/web-v2/web/licenses/object-fromentries.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/object-groupby.txt b/web-v2/web/licenses/object-groupby.txt
new file mode 100644
index 0000000000..eb970aa5c9
--- /dev/null
+++ b/web-v2/web/licenses/object-groupby.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/object-hash.txt b/web-v2/web/licenses/object-hash.txt
new file mode 100644
index 0000000000..6ea185fae6
--- /dev/null
+++ b/web-v2/web/licenses/object-hash.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 object-hash contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/object-hasown.txt b/web-v2/web/licenses/object-hasown.txt
new file mode 100644
index 0000000000..a92abbb0ff
--- /dev/null
+++ b/web-v2/web/licenses/object-hasown.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Glen Mailer, Jordan Harband, and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/object-inspect.txt b/web-v2/web/licenses/object-inspect.txt
new file mode 100644
index 0000000000..5aa436a70e
--- /dev/null
+++ b/web-v2/web/licenses/object-inspect.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2013 James Halliday
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/object-keys.txt b/web-v2/web/licenses/object-keys.txt
new file mode 100644
index 0000000000..28553fdd06
--- /dev/null
+++ b/web-v2/web/licenses/object-keys.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) 2013 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/object-schema.txt b/web-v2/web/licenses/object-schema.txt
new file mode 100644
index 0000000000..790d8e4b70
--- /dev/null
+++ b/web-v2/web/licenses/object-schema.txt
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2019, Human Who Codes
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/object-values.txt b/web-v2/web/licenses/object-values.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/object-values.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/once.txt b/web-v2/web/licenses/once.txt
new file mode 100644
index 0000000000..26924c943d
--- /dev/null
+++ b/web-v2/web/licenses/once.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2012-2023 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/onetime.txt b/web-v2/web/licenses/onetime.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/onetime.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/opener.txt b/web-v2/web/licenses/opener.txt
new file mode 100644
index 0000000000..f74bd1310f
--- /dev/null
+++ b/web-v2/web/licenses/opener.txt
@@ -0,0 +1,47 @@
+Dual licensed under WTFPL and MIT:
+
+---
+
+Copyright © 2012–2020 Domenic Denicola <[email protected]>
+
+This work is free. You can redistribute it and/or modify it under the
+terms of the Do What The Fuck You Want To Public License, Version 2,
+as published by Sam Hocevar. See below for more details.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <[email protected]>
+
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
+
+---
+
+The MIT License (MIT)
+
+Copyright © 2012–2020 Domenic Denicola <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/optionator.txt b/web-v2/web/licenses/optionator.txt
new file mode 100644
index 0000000000..525b11850e
--- /dev/null
+++ b/web-v2/web/licenses/optionator.txt
@@ -0,0 +1,22 @@
+Copyright (c) George Zahariev
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/p-limit.txt b/web-v2/web/licenses/p-limit.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/p-limit.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/p-locate.txt b/web-v2/web/licenses/p-locate.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/p-locate.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/parent-module.txt b/web-v2/web/licenses/parent-module.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/parent-module.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/parse-json.txt b/web-v2/web/licenses/parse-json.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/parse-json.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/parse5-htmlparser2-tree-adapter.txt b/web-v2/web/licenses/parse5-htmlparser2-tree-adapter.txt
new file mode 100644
index 0000000000..f3265d4b88
--- /dev/null
+++ b/web-v2/web/licenses/parse5-htmlparser2-tree-adapter.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2013-2019 Ivan Nikulin ([email protected], https://github.com/inikulin)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/parse5.txt b/web-v2/web/licenses/parse5.txt
new file mode 100644
index 0000000000..f3265d4b88
--- /dev/null
+++ b/web-v2/web/licenses/parse5.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2013-2019 Ivan Nikulin ([email protected], https://github.com/inikulin)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/path-exists.txt b/web-v2/web/licenses/path-exists.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/path-exists.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/path-is-absolute.txt b/web-v2/web/licenses/path-is-absolute.txt
new file mode 100644
index 0000000000..654d0bfe94
--- /dev/null
+++ b/web-v2/web/licenses/path-is-absolute.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/path-key.txt b/web-v2/web/licenses/path-key.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/path-key.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/path-parse.txt b/web-v2/web/licenses/path-parse.txt
new file mode 100644
index 0000000000..810f3dbea8
--- /dev/null
+++ b/web-v2/web/licenses/path-parse.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Javier Blanco
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/path-scurry.txt b/web-v2/web/licenses/path-scurry.txt
new file mode 100644
index 0000000000..c5402b9577
--- /dev/null
+++ b/web-v2/web/licenses/path-scurry.txt
@@ -0,0 +1,55 @@
+# Blue Oak Model License
+
+Version 1.0.0
+
+## Purpose
+
+This license gives everyone as much permission to work with
+this software as possible, while protecting contributors
+from liability.
+
+## Acceptance
+
+In order to receive this license, you must agree to its
+rules. The rules of this license are both obligations
+under that agreement and conditions to your license.
+You must not do anything with this software that triggers
+a rule that you cannot or will not follow.
+
+## Copyright
+
+Each contributor licenses you to do everything with this
+software that would otherwise infringe that contributor's
+copyright in it.
+
+## Notices
+
+You must ensure that everyone who gets a copy of
+any part of this software from you, with or without
+changes, also gets the text of this license or a link to
+<https://blueoakcouncil.org/license/1.0.0>.
+
+## Excuse
+
+If anyone notifies you in writing that you have not
+complied with [Notices](#notices), you can keep your
+license by taking all practical steps to comply within 30
+days after the notice. If you do not do so, your license
+ends immediately.
+
+## Patent
+
+Each contributor licenses you to do everything with this
+software that would otherwise infringe any patent claims
+they can license or become able to license.
+
+## Reliability
+
+No contributor can revoke this license.
+
+## No Liability
+
+***As far as the law allows, this software comes as is,
+without any warranty or condition, and no contributor
+will be liable to anyone for any damages related to this
+software or this license, under any kind of legal claim.***
diff --git a/web-v2/web/licenses/path-type.txt b/web-v2/web/licenses/path-type.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/path-type.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/pathe.txt b/web-v2/web/licenses/pathe.txt
new file mode 100644
index 0000000000..743af99259
--- /dev/null
+++ b/web-v2/web/licenses/pathe.txt
@@ -0,0 +1,44 @@
+MIT License
+
+Copyright (c) Pooya Parsa <[email protected]> - Daniel Roe <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+--------------------------------------------------------------------------------
+
+Copyright Joyent, Inc. and other Node contributors.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to permit
+persons to whom the Software is furnished to do so, subject to the
+following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/pend.txt b/web-v2/web/licenses/pend.txt
new file mode 100644
index 0000000000..0bbb53ed41
--- /dev/null
+++ b/web-v2/web/licenses/pend.txt
@@ -0,0 +1,23 @@
+The MIT License (Expat)
+
+Copyright (c) 2014 Andrew Kelley
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation files
+(the "Software"), to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of the Software,
+and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/picocolors.txt b/web-v2/web/licenses/picocolors.txt
new file mode 100644
index 0000000000..496098c6e8
--- /dev/null
+++ b/web-v2/web/licenses/picocolors.txt
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/picomatch.txt b/web-v2/web/licenses/picomatch.txt
new file mode 100644
index 0000000000..3608dca25e
--- /dev/null
+++ b/web-v2/web/licenses/picomatch.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2017-present, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/pify.txt b/web-v2/web/licenses/pify.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/pify.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/pirates.txt b/web-v2/web/licenses/pirates.txt
new file mode 100644
index 0000000000..acc7a0e085
--- /dev/null
+++ b/web-v2/web/licenses/pirates.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016-2018 Ari Porad
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/pkg-types.txt b/web-v2/web/licenses/pkg-types.txt
new file mode 100644
index 0000000000..743af99259
--- /dev/null
+++ b/web-v2/web/licenses/pkg-types.txt
@@ -0,0 +1,44 @@
+MIT License
+
+Copyright (c) Pooya Parsa <[email protected]> - Daniel Roe <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+--------------------------------------------------------------------------------
+
+Copyright Joyent, Inc. and other Node contributors.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to permit
+persons to whom the Software is furnished to do so, subject to the
+following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/polka-url.txt b/web-v2/web/licenses/polka-url.txt
new file mode 100644
index 0000000000..d46889ae35
--- /dev/null
+++ b/web-v2/web/licenses/polka-url.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Luke Edwards <[email protected]> (https://lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/popperjs-core.txt b/web-v2/web/licenses/popperjs-core.txt
new file mode 100644
index 0000000000..5665118418
--- /dev/null
+++ b/web-v2/web/licenses/popperjs-core.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 Floating UI contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/possible-typed-array-names.txt b/web-v2/web/licenses/possible-typed-array-names.txt
new file mode 100644
index 0000000000..f82f38963b
--- /dev/null
+++ b/web-v2/web/licenses/possible-typed-array-names.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/postcss-import.txt b/web-v2/web/licenses/postcss-import.txt
new file mode 100644
index 0000000000..13983fbfc9
--- /dev/null
+++ b/web-v2/web/licenses/postcss-import.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Maxime Thirouin, Jason Campbell & Kevin Mårtensson
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/postcss-js.txt b/web-v2/web/licenses/postcss-js.txt
new file mode 100644
index 0000000000..d3bd672141
--- /dev/null
+++ b/web-v2/web/licenses/postcss-js.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2015 Andrey Sitnik <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/postcss-load-config.txt b/web-v2/web/licenses/postcss-load-config.txt
new file mode 100644
index 0000000000..458e8a34a3
--- /dev/null
+++ b/web-v2/web/licenses/postcss-load-config.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright Michael Ciniawsky <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/postcss-nested.txt b/web-v2/web/licenses/postcss-nested.txt
new file mode 100644
index 0000000000..1ae47a2006
--- /dev/null
+++ b/web-v2/web/licenses/postcss-nested.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2014 Andrey Sitnik <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/postcss-selector-parser.txt b/web-v2/web/licenses/postcss-selector-parser.txt
new file mode 100644
index 0000000000..49a8c375b7
--- /dev/null
+++ b/web-v2/web/licenses/postcss-selector-parser.txt
@@ -0,0 +1,22 @@
+Copyright (c) Ben Briggs <[email protected]> (http://beneb.info)
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/postcss-value-parser.txt b/web-v2/web/licenses/postcss-value-parser.txt
new file mode 100644
index 0000000000..6dcaefcbed
--- /dev/null
+++ b/web-v2/web/licenses/postcss-value-parser.txt
@@ -0,0 +1,22 @@
+Copyright (c) Bogdan Chadkin <[email protected]>
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/postcss.txt b/web-v2/web/licenses/postcss.txt
new file mode 100644
index 0000000000..da057b4562
--- /dev/null
+++ b/web-v2/web/licenses/postcss.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2013 Andrey Sitnik <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/prelude-ls.txt b/web-v2/web/licenses/prelude-ls.txt
new file mode 100644
index 0000000000..525b11850e
--- /dev/null
+++ b/web-v2/web/licenses/prelude-ls.txt
@@ -0,0 +1,22 @@
+Copyright (c) George Zahariev
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/prettier.txt b/web-v2/web/licenses/prettier.txt
new file mode 100644
index 0000000000..5767e34d30
--- /dev/null
+++ b/web-v2/web/licenses/prettier.txt
@@ -0,0 +1,7 @@
+Copyright © James Long and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/prop-types.txt b/web-v2/web/licenses/prop-types.txt
new file mode 100644
index 0000000000..188fb2b0bd
--- /dev/null
+++ b/web-v2/web/licenses/prop-types.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2013-present, Facebook, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/property-expr.txt b/web-v2/web/licenses/property-expr.txt
new file mode 100644
index 0000000000..397b66c329
--- /dev/null
+++ b/web-v2/web/licenses/property-expr.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Jason Quense
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/proxy-from-env.txt b/web-v2/web/licenses/proxy-from-env.txt
new file mode 100644
index 0000000000..8f25097d09
--- /dev/null
+++ b/web-v2/web/licenses/proxy-from-env.txt
@@ -0,0 +1,20 @@
+The MIT License
+
+Copyright (C) 2016-2018 Rob Wu <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/pump.txt b/web-v2/web/licenses/pump.txt
new file mode 100644
index 0000000000..757562ec59
--- /dev/null
+++ b/web-v2/web/licenses/pump.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Mathias Buus
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/punycode.txt b/web-v2/web/licenses/punycode.txt
new file mode 100644
index 0000000000..a81b73c8fd
--- /dev/null
+++ b/web-v2/web/licenses/punycode.txt
@@ -0,0 +1,20 @@
+Copyright Mathias Bynens <https://mathiasbynens.be/>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/qrcode-react.txt b/web-v2/web/licenses/qrcode-react.txt
new file mode 100644
index 0000000000..9aa55eadf6
--- /dev/null
+++ b/web-v2/web/licenses/qrcode-react.txt
@@ -0,0 +1,18 @@
+ISC License
+
+Copyright (c) 2015, Paul O’Shannessy
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+This product bundles QR Code Generator, which is available under a
+"MIT" license. For details, see src/third-party/qrcodegen.
diff --git a/web-v2/web/licenses/qrcode.react.txt b/web-v2/web/licenses/qrcode.react.txt
new file mode 100644
index 0000000000..9aa55eadf6
--- /dev/null
+++ b/web-v2/web/licenses/qrcode.react.txt
@@ -0,0 +1,18 @@
+ISC License
+
+Copyright (c) 2015, Paul O’Shannessy
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+This product bundles QR Code Generator, which is available under a
+"MIT" license. For details, see src/third-party/qrcodegen.
diff --git a/web-v2/web/licenses/qs.txt b/web-v2/web/licenses/qs.txt
new file mode 100644
index 0000000000..fecf6b6942
--- /dev/null
+++ b/web-v2/web/licenses/qs.txt
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors)
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/queue-microtask.txt b/web-v2/web/licenses/queue-microtask.txt
new file mode 100644
index 0000000000..c7e6852752
--- /dev/null
+++ b/web-v2/web/licenses/queue-microtask.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) Feross Aboukhadijeh
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/quick-lru.txt b/web-v2/web/licenses/quick-lru.txt
new file mode 100644
index 0000000000..f10681684e
--- /dev/null
+++ b/web-v2/web/licenses/quick-lru.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/rc-cascader.txt b/web-v2/web/licenses/rc-cascader.txt
new file mode 100644
index 0000000000..9820f1e0a8
--- /dev/null
+++ b/web-v2/web/licenses/rc-cascader.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present alipay.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-checkbox.txt b/web-v2/web/licenses/rc-checkbox.txt
new file mode 100644
index 0000000000..ae5cd01d84
--- /dev/null
+++ b/web-v2/web/licenses/rc-checkbox.txt
@@ -0,0 +1,7 @@
+The MIT License (MIT) Copyright (c) 2016 React Components
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-collapse.txt b/web-v2/web/licenses/rc-collapse.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-collapse.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-component-color-picker.txt b/web-v2/web/licenses/rc-component-color-picker.txt
new file mode 100644
index 0000000000..717e411ba5
--- /dev/null
+++ b/web-v2/web/licenses/rc-component-color-picker.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present alipay.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-component-context.txt b/web-v2/web/licenses/rc-component-context.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-component-context.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-component-mini-decimal.txt b/web-v2/web/licenses/rc-component-mini-decimal.txt
new file mode 100644
index 0000000000..30ffa8fd2f
--- /dev/null
+++ b/web-v2/web/licenses/rc-component-mini-decimal.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019-present react-component
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/rc-component-mutate-observer.txt b/web-v2/web/licenses/rc-component-mutate-observer.txt
new file mode 100644
index 0000000000..30ffa8fd2f
--- /dev/null
+++ b/web-v2/web/licenses/rc-component-mutate-observer.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019-present react-component
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/rc-component-portal.txt b/web-v2/web/licenses/rc-component-portal.txt
new file mode 100644
index 0000000000..30ffa8fd2f
--- /dev/null
+++ b/web-v2/web/licenses/rc-component-portal.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019-present react-component
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/rc-component-tour.txt b/web-v2/web/licenses/rc-component-tour.txt
new file mode 100644
index 0000000000..30ffa8fd2f
--- /dev/null
+++ b/web-v2/web/licenses/rc-component-tour.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019-present react-component
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/rc-component-trigger.txt b/web-v2/web/licenses/rc-component-trigger.txt
new file mode 100644
index 0000000000..fbf368a7fb
--- /dev/null
+++ b/web-v2/web/licenses/rc-component-trigger.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-dialog.txt b/web-v2/web/licenses/rc-dialog.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-dialog.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-drawer.txt b/web-v2/web/licenses/rc-drawer.txt
new file mode 100644
index 0000000000..12189b627d
--- /dev/null
+++ b/web-v2/web/licenses/rc-drawer.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-dropdown.txt b/web-v2/web/licenses/rc-dropdown.txt
new file mode 100644
index 0000000000..fbf368a7fb
--- /dev/null
+++ b/web-v2/web/licenses/rc-dropdown.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-field-form.txt b/web-v2/web/licenses/rc-field-form.txt
new file mode 100644
index 0000000000..30ffa8fd2f
--- /dev/null
+++ b/web-v2/web/licenses/rc-field-form.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019-present react-component
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/rc-image.txt b/web-v2/web/licenses/rc-image.txt
new file mode 100644
index 0000000000..12189b627d
--- /dev/null
+++ b/web-v2/web/licenses/rc-image.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-input-number.txt b/web-v2/web/licenses/rc-input-number.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-input-number.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-input.txt b/web-v2/web/licenses/rc-input.txt
new file mode 100644
index 0000000000..77cc01bda5
--- /dev/null
+++ b/web-v2/web/licenses/rc-input.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-mentions.txt b/web-v2/web/licenses/rc-mentions.txt
new file mode 100644
index 0000000000..717e411ba5
--- /dev/null
+++ b/web-v2/web/licenses/rc-mentions.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present alipay.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-menu.txt b/web-v2/web/licenses/rc-menu.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-menu.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-motion.txt b/web-v2/web/licenses/rc-motion.txt
new file mode 100644
index 0000000000..77cc01bda5
--- /dev/null
+++ b/web-v2/web/licenses/rc-motion.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-notification.txt b/web-v2/web/licenses/rc-notification.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-notification.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-overflow.txt b/web-v2/web/licenses/rc-overflow.txt
new file mode 100644
index 0000000000..77cc01bda5
--- /dev/null
+++ b/web-v2/web/licenses/rc-overflow.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-pagination.txt b/web-v2/web/licenses/rc-pagination.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-pagination.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-picker.txt b/web-v2/web/licenses/rc-picker.txt
new file mode 100644
index 0000000000..77cc01bda5
--- /dev/null
+++ b/web-v2/web/licenses/rc-picker.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-progress.txt b/web-v2/web/licenses/rc-progress.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-progress.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-rate.txt b/web-v2/web/licenses/rc-rate.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-rate.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-resize-observer.txt b/web-v2/web/licenses/rc-resize-observer.txt
new file mode 100644
index 0000000000..77cc01bda5
--- /dev/null
+++ b/web-v2/web/licenses/rc-resize-observer.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-segmented.txt b/web-v2/web/licenses/rc-segmented.txt
new file mode 100644
index 0000000000..77cc01bda5
--- /dev/null
+++ b/web-v2/web/licenses/rc-segmented.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-select.txt b/web-v2/web/licenses/rc-select.txt
new file mode 100644
index 0000000000..9820f1e0a8
--- /dev/null
+++ b/web-v2/web/licenses/rc-select.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present alipay.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-slider.txt b/web-v2/web/licenses/rc-slider.txt
new file mode 100644
index 0000000000..fbf368a7fb
--- /dev/null
+++ b/web-v2/web/licenses/rc-slider.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-steps.txt b/web-v2/web/licenses/rc-steps.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-steps.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-switch.txt b/web-v2/web/licenses/rc-switch.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-switch.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-table.txt b/web-v2/web/licenses/rc-table.txt
new file mode 100644
index 0000000000..69e806d2c9
--- /dev/null
+++ b/web-v2/web/licenses/rc-table.txt
@@ -0,0 +1,9 @@
+MIT LICENSE
+
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-tabs.txt b/web-v2/web/licenses/rc-tabs.txt
new file mode 100644
index 0000000000..1f5a0d9d8d
--- /dev/null
+++ b/web-v2/web/licenses/rc-tabs.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-textarea.txt b/web-v2/web/licenses/rc-textarea.txt
new file mode 100644
index 0000000000..77cc01bda5
--- /dev/null
+++ b/web-v2/web/licenses/rc-textarea.txt
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-present afc163
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-tooltip.txt b/web-v2/web/licenses/rc-tooltip.txt
new file mode 100644
index 0000000000..d1c691b588
--- /dev/null
+++ b/web-v2/web/licenses/rc-tooltip.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-tree-select.txt b/web-v2/web/licenses/rc-tree-select.txt
new file mode 100644
index 0000000000..12189b627d
--- /dev/null
+++ b/web-v2/web/licenses/rc-tree-select.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-tree.txt b/web-v2/web/licenses/rc-tree.txt
new file mode 100644
index 0000000000..12189b627d
--- /dev/null
+++ b/web-v2/web/licenses/rc-tree.txt
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-upload.txt b/web-v2/web/licenses/rc-upload.txt
new file mode 100644
index 0000000000..5584ca056d
--- /dev/null
+++ b/web-v2/web/licenses/rc-upload.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016-present react-component
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-util.txt b/web-v2/web/licenses/rc-util.txt
new file mode 100644
index 0000000000..47db0c24cd
--- /dev/null
+++ b/web-v2/web/licenses/rc-util.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present yiminghe
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rc-virtual-list.txt b/web-v2/web/licenses/rc-virtual-list.txt
new file mode 100644
index 0000000000..d1c691b588
--- /dev/null
+++ b/web-v2/web/licenses/rc-virtual-list.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/react-dom.txt b/web-v2/web/licenses/react-dom.txt
new file mode 100644
index 0000000000..b93be90515
--- /dev/null
+++ b/web-v2/web/licenses/react-dom.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Meta Platforms, Inc. and affiliates.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/react-hook-form.txt b/web-v2/web/licenses/react-hook-form.txt
new file mode 100644
index 0000000000..139faf48e1
--- /dev/null
+++ b/web-v2/web/licenses/react-hook-form.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019-present Beier(Bill) Luo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/react-hot-toast.txt b/web-v2/web/licenses/react-hot-toast.txt
new file mode 100644
index 0000000000..669336ec76
--- /dev/null
+++ b/web-v2/web/licenses/react-hot-toast.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Timo Lins
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/react-is.txt b/web-v2/web/licenses/react-is.txt
new file mode 100644
index 0000000000..b93be90515
--- /dev/null
+++ b/web-v2/web/licenses/react-is.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Meta Platforms, Inc. and affiliates.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/react-redux.txt b/web-v2/web/licenses/react-redux.txt
new file mode 100644
index 0000000000..55bc8dfbe9
--- /dev/null
+++ b/web-v2/web/licenses/react-redux.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-present Dan Abramov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/react-slick.txt b/web-v2/web/licenses/react-slick.txt
new file mode 100644
index 0000000000..353390362a
--- /dev/null
+++ b/web-v2/web/licenses/react-slick.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Kiran Abburi
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/react-transition-group.txt b/web-v2/web/licenses/react-transition-group.txt
new file mode 100644
index 0000000000..af586225d6
--- /dev/null
+++ b/web-v2/web/licenses/react-transition-group.txt
@@ -0,0 +1,30 @@
+BSD 3-Clause License
+
+Copyright (c) 2018, React Community
+Forked from React (https://github.com/facebook/react) Copyright 2013-present, Facebook, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/react-universal-interface.txt b/web-v2/web/licenses/react-universal-interface.txt
new file mode 100644
index 0000000000..fdddb29aa4
--- /dev/null
+++ b/web-v2/web/licenses/react-universal-interface.txt
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <https://unlicense.org>
diff --git a/web-v2/web/licenses/react-use.txt b/web-v2/web/licenses/react-use.txt
new file mode 100644
index 0000000000..fdddb29aa4
--- /dev/null
+++ b/web-v2/web/licenses/react-use.txt
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <https://unlicense.org>
diff --git a/web-v2/web/licenses/react.txt b/web-v2/web/licenses/react.txt
new file mode 100644
index 0000000000..b93be90515
--- /dev/null
+++ b/web-v2/web/licenses/react.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Meta Platforms, Inc. and affiliates.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/read-cache.txt b/web-v2/web/licenses/read-cache.txt
new file mode 100644
index 0000000000..4b98a41f03
--- /dev/null
+++ b/web-v2/web/licenses/read-cache.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2016 Bogdan Chadkin <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/readdirp.txt b/web-v2/web/licenses/readdirp.txt
new file mode 100644
index 0000000000..037cbb4e69
--- /dev/null
+++ b/web-v2/web/licenses/readdirp.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/redux-thunk.txt b/web-v2/web/licenses/redux-thunk.txt
new file mode 100644
index 0000000000..55bc8dfbe9
--- /dev/null
+++ b/web-v2/web/licenses/redux-thunk.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-present Dan Abramov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/redux.txt b/web-v2/web/licenses/redux.txt
new file mode 100644
index 0000000000..55bc8dfbe9
--- /dev/null
+++ b/web-v2/web/licenses/redux.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-present Dan Abramov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/reduxjs-toolkit.txt b/web-v2/web/licenses/reduxjs-toolkit.txt
new file mode 100644
index 0000000000..1daa252487
--- /dev/null
+++ b/web-v2/web/licenses/reduxjs-toolkit.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Mark Erikson
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/reflect-getprototypeof.txt b/web-v2/web/licenses/reflect-getprototypeof.txt
new file mode 100644
index 0000000000..40680dc464
--- /dev/null
+++ b/web-v2/web/licenses/reflect-getprototypeof.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/regenerator-runtime.txt b/web-v2/web/licenses/regenerator-runtime.txt
new file mode 100644
index 0000000000..cde61b6c53
--- /dev/null
+++ b/web-v2/web/licenses/regenerator-runtime.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2014-present, Facebook, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/regexp-prototype-flags.txt b/web-v2/web/licenses/regexp-prototype-flags.txt
new file mode 100644
index 0000000000..e5956a86be
--- /dev/null
+++ b/web-v2/web/licenses/regexp-prototype-flags.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (C) 2014 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/web-v2/web/licenses/reselect.txt b/web-v2/web/licenses/reselect.txt
new file mode 100644
index 0000000000..2a957b4906
--- /dev/null
+++ b/web-v2/web/licenses/reselect.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-2018 Reselect Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/resize-observer-polyfill.txt b/web-v2/web/licenses/resize-observer-polyfill.txt
new file mode 100644
index 0000000000..3a568dc69a
--- /dev/null
+++ b/web-v2/web/licenses/resize-observer-polyfill.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Denis Rul
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/resolve-from.txt b/web-v2/web/licenses/resolve-from.txt
new file mode 100644
index 0000000000..e7af2f7710
--- /dev/null
+++ b/web-v2/web/licenses/resolve-from.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/resolve-pkg-maps.txt b/web-v2/web/licenses/resolve-pkg-maps.txt
new file mode 100644
index 0000000000..51e4fd8646
--- /dev/null
+++ b/web-v2/web/licenses/resolve-pkg-maps.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Hiroki Osame <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/resolve-uri.txt b/web-v2/web/licenses/resolve-uri.txt
new file mode 100644
index 0000000000..0a81b2ade1
--- /dev/null
+++ b/web-v2/web/licenses/resolve-uri.txt
@@ -0,0 +1,19 @@
+Copyright 2019 Justin Ridgewell <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/resolve.txt b/web-v2/web/licenses/resolve.txt
new file mode 100644
index 0000000000..ff4fce28af
--- /dev/null
+++ b/web-v2/web/licenses/resolve.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2012 James Halliday
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/reusify.txt b/web-v2/web/licenses/reusify.txt
new file mode 100644
index 0000000000..fbf3a01d8c
--- /dev/null
+++ b/web-v2/web/licenses/reusify.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Matteo Collina
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/rimraf.txt b/web-v2/web/licenses/rimraf.txt
new file mode 100644
index 0000000000..1493534e60
--- /dev/null
+++ b/web-v2/web/licenses/rimraf.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/rtl-css-js.txt b/web-v2/web/licenses/rtl-css-js.txt
new file mode 100644
index 0000000000..4c43675bc4
--- /dev/null
+++ b/web-v2/web/licenses/rtl-css-js.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+Copyright (c) 2017 Kent C. Dodds
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/run-parallel.txt b/web-v2/web/licenses/run-parallel.txt
new file mode 100644
index 0000000000..c7e6852752
--- /dev/null
+++ b/web-v2/web/licenses/run-parallel.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) Feross Aboukhadijeh
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/rushstack-eslint-patch.txt b/web-v2/web/licenses/rushstack-eslint-patch.txt
new file mode 100644
index 0000000000..340d63d1fa
--- /dev/null
+++ b/web-v2/web/licenses/rushstack-eslint-patch.txt
@@ -0,0 +1,27 @@
+This is a monorepo, with each published package containing its own license. The
+license for each package can be found in the package's folder.
+
+The projects in this monorepo are licensed under the MIT license.
+
+Copyright (c) Microsoft Corporation. All rights reserved.
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/safe-array-concat.txt b/web-v2/web/licenses/safe-array-concat.txt
new file mode 100644
index 0000000000..b4213ac640
--- /dev/null
+++ b/web-v2/web/licenses/safe-array-concat.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/safe-regex-test.txt b/web-v2/web/licenses/safe-regex-test.txt
new file mode 100644
index 0000000000..6abfe1434e
--- /dev/null
+++ b/web-v2/web/licenses/safe-regex-test.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/scheduler.txt b/web-v2/web/licenses/scheduler.txt
new file mode 100644
index 0000000000..b96dcb0480
--- /dev/null
+++ b/web-v2/web/licenses/scheduler.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Facebook, Inc. and its affiliates.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/screenfull.txt b/web-v2/web/licenses/screenfull.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/screenfull.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/scroll-into-view-if-needed.txt b/web-v2/web/licenses/scroll-into-view-if-needed.txt
new file mode 100644
index 0000000000..842ecc17a3
--- /dev/null
+++ b/web-v2/web/licenses/scroll-into-view-if-needed.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Cody Olsen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/semver.txt b/web-v2/web/licenses/semver.txt
new file mode 100644
index 0000000000..19129e315f
--- /dev/null
+++ b/web-v2/web/licenses/semver.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/set-array.txt b/web-v2/web/licenses/set-array.txt
new file mode 100644
index 0000000000..9fb470195e
--- /dev/null
+++ b/web-v2/web/licenses/set-array.txt
@@ -0,0 +1,19 @@
+Copyright 2022 Justin Ridgewell <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/set-function-length.txt b/web-v2/web/licenses/set-function-length.txt
new file mode 100644
index 0000000000..0314929078
--- /dev/null
+++ b/web-v2/web/licenses/set-function-length.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Jordan Harband and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/set-function-name.txt b/web-v2/web/licenses/set-function-name.txt
new file mode 100644
index 0000000000..0314929078
--- /dev/null
+++ b/web-v2/web/licenses/set-function-name.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Jordan Harband and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/set-harmonic-interval.txt b/web-v2/web/licenses/set-harmonic-interval.txt
new file mode 100644
index 0000000000..0a449f1fd2
--- /dev/null
+++ b/web-v2/web/licenses/set-harmonic-interval.txt
@@ -0,0 +1,9 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
+
+In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <https://unlicense.org>
diff --git a/web-v2/web/licenses/shebang-command.txt b/web-v2/web/licenses/shebang-command.txt
new file mode 100644
index 0000000000..db6bc32cc7
--- /dev/null
+++ b/web-v2/web/licenses/shebang-command.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Kevin Mårtensson <[email protected]> (github.com/kevva)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/shebang-regex.txt b/web-v2/web/licenses/shebang-regex.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/shebang-regex.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/side-channel.txt b/web-v2/web/licenses/side-channel.txt
new file mode 100644
index 0000000000..3900dd7e2f
--- /dev/null
+++ b/web-v2/web/licenses/side-channel.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/signal-exit.txt b/web-v2/web/licenses/signal-exit.txt
new file mode 100644
index 0000000000..954f2fa823
--- /dev/null
+++ b/web-v2/web/licenses/signal-exit.txt
@@ -0,0 +1,16 @@
+The ISC License
+
+Copyright (c) 2015-2023 Benjamin Coe, Isaac Z. Schlueter, and Contributors
+
+Permission to use, copy, modify, and/or distribute this software
+for any purpose with or without fee is hereby granted, provided
+that the above copyright notice and this permission notice
+appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
+LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/sirv.txt b/web-v2/web/licenses/sirv.txt
new file mode 100644
index 0000000000..d46889ae35
--- /dev/null
+++ b/web-v2/web/licenses/sirv.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Luke Edwards <[email protected]> (https://lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/slash.txt b/web-v2/web/licenses/slash.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/slash.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/source-map-js.txt b/web-v2/web/licenses/source-map-js.txt
new file mode 100644
index 0000000000..ed1b7cf27e
--- /dev/null
+++ b/web-v2/web/licenses/source-map-js.txt
@@ -0,0 +1,28 @@
+
+Copyright (c) 2009-2011, Mozilla Foundation and contributors
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the names of the Mozilla Foundation nor the names of project
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/source-map.txt b/web-v2/web/licenses/source-map.txt
new file mode 100644
index 0000000000..ed1b7cf27e
--- /dev/null
+++ b/web-v2/web/licenses/source-map.txt
@@ -0,0 +1,28 @@
+
+Copyright (c) 2009-2011, Mozilla Foundation and contributors
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the names of the Mozilla Foundation nor the names of project
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/stack-generator.txt b/web-v2/web/licenses/stack-generator.txt
new file mode 100644
index 0000000000..5c09f1a025
--- /dev/null
+++ b/web-v2/web/licenses/stack-generator.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2017 Eric Wendelin and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/stackframe.txt b/web-v2/web/licenses/stackframe.txt
new file mode 100644
index 0000000000..5c09f1a025
--- /dev/null
+++ b/web-v2/web/licenses/stackframe.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2017 Eric Wendelin and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/stacktrace-gps.txt b/web-v2/web/licenses/stacktrace-gps.txt
new file mode 100644
index 0000000000..5c09f1a025
--- /dev/null
+++ b/web-v2/web/licenses/stacktrace-gps.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2017 Eric Wendelin and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/stacktrace-js.txt b/web-v2/web/licenses/stacktrace-js.txt
new file mode 100644
index 0000000000..5c09f1a025
--- /dev/null
+++ b/web-v2/web/licenses/stacktrace-js.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2017 Eric Wendelin and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/streamsearch.txt b/web-v2/web/licenses/streamsearch.txt
new file mode 100644
index 0000000000..9ea90e0392
--- /dev/null
+++ b/web-v2/web/licenses/streamsearch.txt
@@ -0,0 +1,19 @@
+Copyright Brian White. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/string-convert.txt b/web-v2/web/licenses/string-convert.txt
new file mode 100644
index 0000000000..353390362a
--- /dev/null
+++ b/web-v2/web/licenses/string-convert.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Kiran Abburi
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/string-prototype-matchall.txt b/web-v2/web/licenses/string-prototype-matchall.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/string-prototype-matchall.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/string-prototype-trim.txt b/web-v2/web/licenses/string-prototype-trim.txt
new file mode 100644
index 0000000000..fcf5754efe
--- /dev/null
+++ b/web-v2/web/licenses/string-prototype-trim.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/string-prototype-trimend.txt b/web-v2/web/licenses/string-prototype-trimend.txt
new file mode 100644
index 0000000000..e48a1b576c
--- /dev/null
+++ b/web-v2/web/licenses/string-prototype-trimend.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Khaled Al-Ansari
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/string-prototype-trimstart.txt b/web-v2/web/licenses/string-prototype-trimstart.txt
new file mode 100644
index 0000000000..e48a1b576c
--- /dev/null
+++ b/web-v2/web/licenses/string-prototype-trimstart.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Khaled Al-Ansari
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/string-width-cjs.txt b/web-v2/web/licenses/string-width-cjs.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/string-width-cjs.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/string-width.txt b/web-v2/web/licenses/string-width.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/string-width.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/strip-ansi-cjs.txt b/web-v2/web/licenses/strip-ansi-cjs.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/strip-ansi-cjs.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/strip-ansi.txt b/web-v2/web/licenses/strip-ansi.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/strip-ansi.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/strip-bom.txt b/web-v2/web/licenses/strip-bom.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/strip-bom.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/strip-final-newline.txt b/web-v2/web/licenses/strip-final-newline.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/strip-final-newline.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/strip-json-comments.txt b/web-v2/web/licenses/strip-json-comments.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/strip-json-comments.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/styled-jsx.md b/web-v2/web/licenses/styled-jsx.md
new file mode 100644
index 0000000000..a336f94ac6
--- /dev/null
+++ b/web-v2/web/licenses/styled-jsx.md
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016-present Vercel, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/stylis.txt b/web-v2/web/licenses/stylis.txt
new file mode 100644
index 0000000000..f0b1a9a465
--- /dev/null
+++ b/web-v2/web/licenses/stylis.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016-present Sultan Tarimo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/sucrase.txt b/web-v2/web/licenses/sucrase.txt
new file mode 100644
index 0000000000..06d77d6ad3
--- /dev/null
+++ b/web-v2/web/licenses/sucrase.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2012-2018 various contributors (see AUTHORS)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/supports-color.txt b/web-v2/web/licenses/supports-color.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/supports-color.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/supports-preserve-symlinks-flag.txt b/web-v2/web/licenses/supports-preserve-symlinks-flag.txt
new file mode 100644
index 0000000000..2e7b9a3eac
--- /dev/null
+++ b/web-v2/web/licenses/supports-preserve-symlinks-flag.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/svgo.txt b/web-v2/web/licenses/svgo.txt
new file mode 100644
index 0000000000..38a47dacb9
--- /dev/null
+++ b/web-v2/web/licenses/svgo.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Kir Belevich
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/tailwindcss.txt b/web-v2/web/licenses/tailwindcss.txt
new file mode 100644
index 0000000000..d6a8229073
--- /dev/null
+++ b/web-v2/web/licenses/tailwindcss.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Tailwind Labs, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/tapable.txt b/web-v2/web/licenses/tapable.txt
new file mode 100644
index 0000000000..03c083cefe
--- /dev/null
+++ b/web-v2/web/licenses/tapable.txt
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/tar.txt b/web-v2/web/licenses/tar.txt
new file mode 100644
index 0000000000..19129e315f
--- /dev/null
+++ b/web-v2/web/licenses/tar.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/text-table.txt b/web-v2/web/licenses/text-table.txt
new file mode 100644
index 0000000000..30a59ef86e
--- /dev/null
+++ b/web-v2/web/licenses/text-table.txt
@@ -0,0 +1,18 @@
+This software is released under the MIT license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/thejoshwolfe-yauzl.txt b/web-v2/web/licenses/thejoshwolfe-yauzl.txt
new file mode 100644
index 0000000000..37538d4d09
--- /dev/null
+++ b/web-v2/web/licenses/thejoshwolfe-yauzl.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Josh Wolfe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/thenify-all.txt b/web-v2/web/licenses/thenify-all.txt
new file mode 100644
index 0000000000..a7ae8ee9b8
--- /dev/null
+++ b/web-v2/web/licenses/thenify-all.txt
@@ -0,0 +1,22 @@
+
+The MIT License (MIT)
+
+Copyright (c) 2014 Jonathan Ong [email protected]
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/thenify.txt b/web-v2/web/licenses/thenify.txt
new file mode 100644
index 0000000000..bed701c694
--- /dev/null
+++ b/web-v2/web/licenses/thenify.txt
@@ -0,0 +1,22 @@
+
+The MIT License (MIT)
+
+Copyright (c) 2014-2016 Jonathan Ong [email protected] and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/throttle-debounce.txt b/web-v2/web/licenses/throttle-debounce.txt
new file mode 100644
index 0000000000..15ea9cc0c9
--- /dev/null
+++ b/web-v2/web/licenses/throttle-debounce.txt
@@ -0,0 +1,325 @@
+Copyright (c) Ivan Nikolić <http://ivannikolic.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+---
+
+Copyright (c) 2010 "Cowboy" Ben Alman
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+---
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
diff --git a/web-v2/web/licenses/tinycolor.txt b/web-v2/web/licenses/tinycolor.txt
new file mode 100644
index 0000000000..1bfd9e4106
--- /dev/null
+++ b/web-v2/web/licenses/tinycolor.txt
@@ -0,0 +1,7 @@
+Copyright (c) Scott Cooper <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/to-fast-properties.txt b/web-v2/web/licenses/to-fast-properties.txt
new file mode 100644
index 0000000000..f7dc2b5046
--- /dev/null
+++ b/web-v2/web/licenses/to-fast-properties.txt
@@ -0,0 +1,12 @@
+MIT License
+
+Copyright (c) Petka Antonov
+Copyright (c) Benjamin Gruenbaum
+Copyright (c) John-David Dalton
+Copyright (c) Sindre Sorhus
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/to-regex-range.txt b/web-v2/web/licenses/to-regex-range.txt
new file mode 100644
index 0000000000..7cccaf9e34
--- /dev/null
+++ b/web-v2/web/licenses/to-regex-range.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-present, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/toggle-selection.txt b/web-v2/web/licenses/toggle-selection.txt
new file mode 100644
index 0000000000..4a7395ee83
--- /dev/null
+++ b/web-v2/web/licenses/toggle-selection.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 sudodoki <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/toposort.txt b/web-v2/web/licenses/toposort.txt
new file mode 100644
index 0000000000..7975a823cd
--- /dev/null
+++ b/web-v2/web/licenses/toposort.txt
@@ -0,0 +1,21 @@
+
+Toposort - Topological sorting for node.js
+Copyright (c) 2012 by Marcel Klehr <[email protected]>
+MIT LICENSE
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/totalist.txt b/web-v2/web/licenses/totalist.txt
new file mode 100644
index 0000000000..a3f96f8284
--- /dev/null
+++ b/web-v2/web/licenses/totalist.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/web-v2/web/licenses/trace-mapping.txt b/web-v2/web/licenses/trace-mapping.txt
new file mode 100644
index 0000000000..21001ea74d
--- /dev/null
+++ b/web-v2/web/licenses/trace-mapping.txt
@@ -0,0 +1,19 @@
+Copyright 2022 Justin Ridgewell <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/trysound-sax.txt b/web-v2/web/licenses/trysound-sax.txt
new file mode 100644
index 0000000000..19129e315f
--- /dev/null
+++ b/web-v2/web/licenses/trysound-sax.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/ts-api-utils.txt b/web-v2/web/licenses/ts-api-utils.txt
new file mode 100644
index 0000000000..08520a1e27
--- /dev/null
+++ b/web-v2/web/licenses/ts-api-utils.txt
@@ -0,0 +1,20 @@
+# MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/ts-easing.txt b/web-v2/web/licenses/ts-easing.txt
new file mode 100644
index 0000000000..fdddb29aa4
--- /dev/null
+++ b/web-v2/web/licenses/ts-easing.txt
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <https://unlicense.org>
diff --git a/web-v2/web/licenses/tsconfig-paths.txt b/web-v2/web/licenses/tsconfig-paths.txt
new file mode 100644
index 0000000000..884c7e3b18
--- /dev/null
+++ b/web-v2/web/licenses/tsconfig-paths.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Jonas Kello
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/tslib.txt b/web-v2/web/licenses/tslib.txt
new file mode 100644
index 0000000000..bfe6430cb0
--- /dev/null
+++ b/web-v2/web/licenses/tslib.txt
@@ -0,0 +1,12 @@
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/tsx.txt b/web-v2/web/licenses/tsx.txt
new file mode 100644
index 0000000000..bf183d2f5a
--- /dev/null
+++ b/web-v2/web/licenses/tsx.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Hiroki Osame <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/type-check.txt b/web-v2/web/licenses/type-check.txt
new file mode 100644
index 0000000000..525b11850e
--- /dev/null
+++ b/web-v2/web/licenses/type-check.txt
@@ -0,0 +1,22 @@
+Copyright (c) George Zahariev
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/type-fest.txt b/web-v2/web/licenses/type-fest.txt
new file mode 100644
index 0000000000..1625c17936
--- /dev/null
+++ b/web-v2/web/licenses/type-fest.txt
@@ -0,0 +1,121 @@
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
+ HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer
+exclusive Copyright and Related Rights (defined below) upon the creator
+and subsequent owner(s) (each and all, an "owner") of an original work of
+authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for
+the purpose of contributing to a commons of creative, cultural and
+scientific works ("Commons") that the public can reliably and without fear
+of later claims of infringement build upon, modify, incorporate in other
+works, reuse and redistribute as freely as possible in any form whatsoever
+and for any purposes, including without limitation commercial purposes.
+These owners may contribute to the Commons to promote the ideal of a free
+culture and the further production of creative, cultural and scientific
+works, or to gain reputation or greater distribution for their Work in
+part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any
+expectation of additional consideration or compensation, the person
+associating CC0 with a Work (the "Affirmer"), to the extent that he or she
+is an owner of Copyright and Related Rights in the Work, voluntarily
+elects to apply CC0 to the Work and publicly distribute the Work under its
+terms, with knowledge of his or her Copyright and Related Rights in the
+Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be
+protected by copyright and related or neighboring rights ("Copyright and
+Related Rights"). Copyright and Related Rights include, but are not
+limited to, the following:
+
+ i. the right to reproduce, adapt, distribute, perform, display,
+ communicate, and translate a Work;
+ ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or
+ likeness depicted in a Work;
+ iv. rights protecting against unfair competition in regards to a Work,
+ subject to the limitations in paragraph 4(a), below;
+ v. rights protecting the extraction, dissemination, use and reuse of data
+ in a Work;
+ vi. database rights (such as those arising under Directive 96/9/EC of the
+ European Parliament and of the Council of 11 March 1996 on the legal
+ protection of databases, and under any national implementation
+ thereof, including any amended or successor version of such
+ directive); and
+vii. other similar, equivalent or corresponding rights throughout the
+ world based on applicable law or treaty, and any national
+ implementations thereof.
+
+2. Waiver. To the greatest extent permitted by, but not in contravention
+of, applicable law, Affirmer hereby overtly, fully, permanently,
+irrevocably and unconditionally waives, abandons, and surrenders all of
+Affirmer's Copyright and Related Rights and associated claims and causes
+of action, whether now known or unknown (including existing as well as
+future claims and causes of action), in the Work (i) in all territories
+worldwide, (ii) for the maximum duration provided by applicable law or
+treaty (including future time extensions), (iii) in any current or future
+medium and for any number of copies, and (iv) for any purpose whatsoever,
+including without limitation commercial, advertising or promotional
+purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
+member of the public at large and to the detriment of Affirmer's heirs and
+successors, fully intending that such Waiver shall not be subject to
+revocation, rescission, cancellation, termination, or any other legal or
+equitable action to disrupt the quiet enjoyment of the Work by the public
+as contemplated by Affirmer's express Statement of Purpose.
+
+3. Public License Fallback. Should any part of the Waiver for any reason
+be judged legally invalid or ineffective under applicable law, then the
+Waiver shall be preserved to the maximum extent permitted taking into
+account Affirmer's express Statement of Purpose. In addition, to the
+extent the Waiver is so judged Affirmer hereby grants to each affected
+person a royalty-free, non transferable, non sublicensable, non exclusive,
+irrevocable and unconditional license to exercise Affirmer's Copyright and
+Related Rights in the Work (i) in all territories worldwide, (ii) for the
+maximum duration provided by applicable law or treaty (including future
+time extensions), (iii) in any current or future medium and for any number
+of copies, and (iv) for any purpose whatsoever, including without
+limitation commercial, advertising or promotional purposes (the
+"License"). The License shall be deemed effective as of the date CC0 was
+applied by Affirmer to the Work. Should any part of the License for any
+reason be judged legally invalid or ineffective under applicable law, such
+partial invalidity or ineffectiveness shall not invalidate the remainder
+of the License, and in such case Affirmer hereby affirms that he or she
+will not (i) exercise any of his or her remaining Copyright and Related
+Rights in the Work or (ii) assert any associated claims and causes of
+action with respect to the Work, in either case contrary to Affirmer's
+express Statement of Purpose.
+
+4. Limitations and Disclaimers.
+
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
+ surrendered, licensed or otherwise affected by this document.
+ b. Affirmer offers the Work as-is and makes no representations or
+ warranties of any kind concerning the Work, express, implied,
+ statutory or otherwise, including without limitation warranties of
+ title, merchantability, fitness for a particular purpose, non
+ infringement, or the absence of latent or other defects, accuracy, or
+ the present or absence of errors, whether or not discoverable, all to
+ the greatest extent permissible under applicable law.
+ c. Affirmer disclaims responsibility for clearing rights of other persons
+ that may apply to the Work or any use thereof, including without
+ limitation any person's Copyright and Related Rights in the Work.
+ Further, Affirmer disclaims responsibility for obtaining any necessary
+ consents, permissions or other rights required for any use of the
+ Work.
+ d. Affirmer understands and acknowledges that Creative Commons is not a
+ party to this document and has no duty or obligation with respect to
+ this CC0 or use of the Work.
\ No newline at end of file
diff --git a/web-v2/web/licenses/typed-array-buffer.txt b/web-v2/web/licenses/typed-array-buffer.txt
new file mode 100644
index 0000000000..b4213ac640
--- /dev/null
+++ b/web-v2/web/licenses/typed-array-buffer.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/typed-array-byte-length.txt b/web-v2/web/licenses/typed-array-byte-length.txt
new file mode 100644
index 0000000000..707437b575
--- /dev/null
+++ b/web-v2/web/licenses/typed-array-byte-length.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/typed-array-byte-offset.txt b/web-v2/web/licenses/typed-array-byte-offset.txt
new file mode 100644
index 0000000000..707437b575
--- /dev/null
+++ b/web-v2/web/licenses/typed-array-byte-offset.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/typed-array-length.txt b/web-v2/web/licenses/typed-array-length.txt
new file mode 100644
index 0000000000..707437b575
--- /dev/null
+++ b/web-v2/web/licenses/typed-array-length.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/types-hoist-non-react-statics.txt b/web-v2/web/licenses/types-hoist-non-react-statics.txt
new file mode 100644
index 0000000000..c3ee6e73d5
--- /dev/null
+++ b/web-v2/web/licenses/types-hoist-non-react-statics.txt
@@ -0,0 +1,8 @@
+This project is licensed under the MIT license.
+Copyrights are respective of each contributor listed at the beginning of each definition file.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/types-js-cookie.txt b/web-v2/web/licenses/types-js-cookie.txt
new file mode 100644
index 0000000000..c3ee6e73d5
--- /dev/null
+++ b/web-v2/web/licenses/types-js-cookie.txt
@@ -0,0 +1,8 @@
+This project is licensed under the MIT license.
+Copyrights are respective of each contributor listed at the beginning of each definition file.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/types-lodash-es.txt b/web-v2/web/licenses/types-lodash-es.txt
new file mode 100644
index 0000000000..91e06df855
--- /dev/null
+++ b/web-v2/web/licenses/types-lodash-es.txt
@@ -0,0 +1,8 @@
+This project is licensed under the MIT license.
+Copyrights are respective of each contributor listed at the beginning of each definition file.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/types-lodash.txt b/web-v2/web/licenses/types-lodash.txt
new file mode 100644
index 0000000000..91e06df855
--- /dev/null
+++ b/web-v2/web/licenses/types-lodash.txt
@@ -0,0 +1,8 @@
+This project is licensed under the MIT license.
+Copyrights are respective of each contributor listed at the beginning of each definition file.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/types-node.txt b/web-v2/web/licenses/types-node.txt
new file mode 100644
index 0000000000..91e06df855
--- /dev/null
+++ b/web-v2/web/licenses/types-node.txt
@@ -0,0 +1,8 @@
+This project is licensed under the MIT license.
+Copyrights are respective of each contributor listed at the beginning of each definition file.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/types-qs.txt b/web-v2/web/licenses/types-qs.txt
new file mode 100644
index 0000000000..91e06df855
--- /dev/null
+++ b/web-v2/web/licenses/types-qs.txt
@@ -0,0 +1,8 @@
+This project is licensed under the MIT license.
+Copyrights are respective of each contributor listed at the beginning of each definition file.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/types-tar.txt b/web-v2/web/licenses/types-tar.txt
new file mode 100644
index 0000000000..c3ee6e73d5
--- /dev/null
+++ b/web-v2/web/licenses/types-tar.txt
@@ -0,0 +1,8 @@
+This project is licensed under the MIT license.
+Copyrights are respective of each contributor listed at the beginning of each definition file.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/types-yauzl.txt b/web-v2/web/licenses/types-yauzl.txt
new file mode 100644
index 0000000000..c3ee6e73d5
--- /dev/null
+++ b/web-v2/web/licenses/types-yauzl.txt
@@ -0,0 +1,8 @@
+This project is licensed under the MIT license.
+Copyrights are respective of each contributor listed at the beginning of each definition file.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/typescript-eslint-parser.txt b/web-v2/web/licenses/typescript-eslint-parser.txt
new file mode 100644
index 0000000000..61fed56768
--- /dev/null
+++ b/web-v2/web/licenses/typescript-eslint-parser.txt
@@ -0,0 +1,26 @@
+typescript-eslint
+
+Originally extracted from:
+
+TypeScript ESLint Parser
+Copyright JS Foundation and other contributors, https://js.foundation
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+- Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/typescript-eslint-scope-manager.txt b/web-v2/web/licenses/typescript-eslint-scope-manager.txt
new file mode 100644
index 0000000000..61fed56768
--- /dev/null
+++ b/web-v2/web/licenses/typescript-eslint-scope-manager.txt
@@ -0,0 +1,26 @@
+typescript-eslint
+
+Originally extracted from:
+
+TypeScript ESLint Parser
+Copyright JS Foundation and other contributors, https://js.foundation
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+- Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/typescript-eslint-types.txt b/web-v2/web/licenses/typescript-eslint-types.txt
new file mode 100644
index 0000000000..61fed56768
--- /dev/null
+++ b/web-v2/web/licenses/typescript-eslint-types.txt
@@ -0,0 +1,26 @@
+typescript-eslint
+
+Originally extracted from:
+
+TypeScript ESLint Parser
+Copyright JS Foundation and other contributors, https://js.foundation
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+- Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/typescript-eslint-typescript-estree.txt b/web-v2/web/licenses/typescript-eslint-typescript-estree.txt
new file mode 100644
index 0000000000..61fed56768
--- /dev/null
+++ b/web-v2/web/licenses/typescript-eslint-typescript-estree.txt
@@ -0,0 +1,26 @@
+typescript-eslint
+
+Originally extracted from:
+
+TypeScript ESLint Parser
+Copyright JS Foundation and other contributors, https://js.foundation
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+- Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/typescript-eslint-visitor-keys.txt b/web-v2/web/licenses/typescript-eslint-visitor-keys.txt
new file mode 100644
index 0000000000..61fed56768
--- /dev/null
+++ b/web-v2/web/licenses/typescript-eslint-visitor-keys.txt
@@ -0,0 +1,26 @@
+typescript-eslint
+
+Originally extracted from:
+
+TypeScript ESLint Parser
+Copyright JS Foundation and other contributors, https://js.foundation
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+- Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/web-v2/web/licenses/ufo.txt b/web-v2/web/licenses/ufo.txt
new file mode 100644
index 0000000000..e739abce46
--- /dev/null
+++ b/web-v2/web/licenses/ufo.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Pooya Parsa <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/unbox-primitive.txt b/web-v2/web/licenses/unbox-primitive.txt
new file mode 100644
index 0000000000..3900dd7e2f
--- /dev/null
+++ b/web-v2/web/licenses/unbox-primitive.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/undici-types.txt b/web-v2/web/licenses/undici-types.txt
new file mode 100644
index 0000000000..e7323bb52e
--- /dev/null
+++ b/web-v2/web/licenses/undici-types.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Matteo Collina and Undici contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/ungap-structured-clone.txt b/web-v2/web/licenses/ungap-structured-clone.txt
new file mode 100644
index 0000000000..48afbe52af
--- /dev/null
+++ b/web-v2/web/licenses/ungap-structured-clone.txt
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2021, Andrea Giammarchi, @WebReflection
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/update-browserslist-db.txt b/web-v2/web/licenses/update-browserslist-db.txt
new file mode 100644
index 0000000000..377ae1bee9
--- /dev/null
+++ b/web-v2/web/licenses/update-browserslist-db.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2022 Andrey Sitnik <[email protected]> and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/uri-js.txt b/web-v2/web/licenses/uri-js.txt
new file mode 100644
index 0000000000..9338bde8eb
--- /dev/null
+++ b/web-v2/web/licenses/uri-js.txt
@@ -0,0 +1,11 @@
+Copyright 2011 Gary Court. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY GARY COURT "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Gary Court.
diff --git a/web-v2/web/licenses/use-sync-external-store.txt b/web-v2/web/licenses/use-sync-external-store.txt
new file mode 100644
index 0000000000..b93be90515
--- /dev/null
+++ b/web-v2/web/licenses/use-sync-external-store.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Meta Platforms, Inc. and affiliates.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/util-deprecate.txt b/web-v2/web/licenses/util-deprecate.txt
new file mode 100644
index 0000000000..6a60e8c225
--- /dev/null
+++ b/web-v2/web/licenses/util-deprecate.txt
@@ -0,0 +1,24 @@
+(The MIT License)
+
+Copyright (c) 2014 Nathan Rajlich <[email protected]>
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/vben.txt b/web-v2/web/licenses/vben.txt
new file mode 100644
index 0000000000..ba2fe3b14c
--- /dev/null
+++ b/web-v2/web/licenses/vben.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/webpack-bundle-analyzer.txt b/web-v2/web/licenses/webpack-bundle-analyzer.txt
new file mode 100644
index 0000000000..8c11fc7289
--- /dev/null
+++ b/web-v2/web/licenses/webpack-bundle-analyzer.txt
@@ -0,0 +1,20 @@
+Copyright JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/which-boxed-primitive.txt b/web-v2/web/licenses/which-boxed-primitive.txt
new file mode 100644
index 0000000000..3900dd7e2f
--- /dev/null
+++ b/web-v2/web/licenses/which-boxed-primitive.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/which-builtin-type.txt b/web-v2/web/licenses/which-builtin-type.txt
new file mode 100644
index 0000000000..c5412d4aae
--- /dev/null
+++ b/web-v2/web/licenses/which-builtin-type.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 ECMAScript Shims
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/which-collection.txt b/web-v2/web/licenses/which-collection.txt
new file mode 100644
index 0000000000..c05eb206bd
--- /dev/null
+++ b/web-v2/web/licenses/which-collection.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Inspect JS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/which-typed-array.txt b/web-v2/web/licenses/which-typed-array.txt
new file mode 100644
index 0000000000..b43df444e5
--- /dev/null
+++ b/web-v2/web/licenses/which-typed-array.txt
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/web-v2/web/licenses/which.txt b/web-v2/web/licenses/which.txt
new file mode 100644
index 0000000000..19129e315f
--- /dev/null
+++ b/web-v2/web/licenses/which.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/word-wrap.txt b/web-v2/web/licenses/word-wrap.txt
new file mode 100644
index 0000000000..d045aa5f34
--- /dev/null
+++ b/web-v2/web/licenses/word-wrap.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2023, Jon Schlinkert
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/licenses/wrap-ansi-cjs.txt b/web-v2/web/licenses/wrap-ansi-cjs.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/wrap-ansi-cjs.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/wrap-ansi.txt b/web-v2/web/licenses/wrap-ansi.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/wrap-ansi.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/wrappy.txt b/web-v2/web/licenses/wrappy.txt
new file mode 100644
index 0000000000..19129e315f
--- /dev/null
+++ b/web-v2/web/licenses/wrappy.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/ws.txt b/web-v2/web/licenses/ws.txt
new file mode 100644
index 0000000000..1da5b96a11
--- /dev/null
+++ b/web-v2/web/licenses/ws.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Einar Otto Stangvik <[email protected]>
+Copyright (c) 2013 Arnout Kazemier and contributors
+Copyright (c) 2016 Luigi Pinca and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/xobotyi-scrollbar-width.txt b/web-v2/web/licenses/xobotyi-scrollbar-width.txt
new file mode 100644
index 0000000000..9a85f135f6
--- /dev/null
+++ b/web-v2/web/licenses/xobotyi-scrollbar-width.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Anton Zinovyev
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/yallist.txt b/web-v2/web/licenses/yallist.txt
new file mode 100644
index 0000000000..2d80720fe6
--- /dev/null
+++ b/web-v2/web/licenses/yallist.txt
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/web-v2/web/licenses/yaml.txt b/web-v2/web/licenses/yaml.txt
new file mode 100644
index 0000000000..e060aaa1fe
--- /dev/null
+++ b/web-v2/web/licenses/yaml.txt
@@ -0,0 +1,13 @@
+Copyright Eemeli Aro <[email protected]>
+
+Permission to use, copy, modify, and/or distribute this software for any purpose
+with or without fee is hereby granted, provided that the above copyright notice
+and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
+THIS SOFTWARE.
diff --git a/web-v2/web/licenses/yauzl.txt b/web-v2/web/licenses/yauzl.txt
new file mode 100644
index 0000000000..37538d4d09
--- /dev/null
+++ b/web-v2/web/licenses/yauzl.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Josh Wolfe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web-v2/web/licenses/yocto-queue.txt b/web-v2/web/licenses/yocto-queue.txt
new file mode 100644
index 0000000000..fa7ceba3eb
--- /dev/null
+++ b/web-v2/web/licenses/yocto-queue.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/web-v2/web/licenses/yup.txt b/web-v2/web/licenses/yup.txt
new file mode 100644
index 0000000000..397b66c329
--- /dev/null
+++ b/web-v2/web/licenses/yup.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Jason Quense
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/web-v2/web/next.config.js b/web-v2/web/next.config.js
new file mode 100644
index 0000000000..0b6a33058c
--- /dev/null
+++ b/web-v2/web/next.config.js
@@ -0,0 +1,62 @@
+/*
+ * 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.
+ */
+
+const withBundleAnalyzer = require('@next/bundle-analyzer')({
+ enabled: process.env.ANALYZE === 'true'
+})
+
+const isProdEnv = process.env.NODE_ENV === 'production'
+
+const apiUrl = process.env.NEXT_PUBLIC_API_URL
+const oauthUri = process.env.NEXT_PUBLIC_OAUTH_URI
+const oauthPath = process.env.NEXT_PUBLIC_OAUTH_PATH
+
+/** @type {import('next').NextConfig} */
+const nextConfig = {
+ ...(isProdEnv
+ ? {}
+ : {
+ // ** Just for development
+ async rewrites() {
+ return {
+ fallback: [
+ {
+ source: '/api/:path*',
+ destination: `${apiUrl}/api/:path*`
+ },
+ {
+ source: '/configs',
+ destination: `${apiUrl}/configs`
+ },
+ {
+ source: `${oauthPath}`,
+ destination: `${oauthUri}${oauthPath}`
+ }
+ ]
+ }
+ }
+ }),
+ output: process.env.OUTPUT_MODE || 'standalone',
+ basePath: process.env.BASE_PATH,
+ distDir: process.env.DIST_DIR,
+ trailingSlash: false,
+ reactStrictMode: true
+}
+
+module.exports = withBundleAnalyzer(nextConfig)
diff --git a/web-v2/web/package.json b/web-v2/web/package.json
new file mode 100644
index 0000000000..900b90ce5b
--- /dev/null
+++ b/web-v2/web/package.json
@@ -0,0 +1,73 @@
+{
+ "name": "gravitino-web",
+ "private": true,
+ "engines": {
+ "node": "20.19.0",
+ "npm": ">=9.8.1"
+ },
+ "scripts": {
+ "analyze": "env-cmd -f .env.analyze pnpm build",
+ "dev": "next dev --turbo",
+ "build": "pnpm format && next build",
+ "dist": "env-cmd -f .env.static next build",
+ "start": "next start",
+ "lint": "eslint src --max-warnings=0",
+ "format": "prettier --write .",
+ "prettier:check": "prettier --check .",
+ "gen:icons": "tsx src/lib/icons/iconify-icons.js && prettier --write src/lib/icons/iconify-icons.css",
+ "test": "vitest run",
+ "test:coverage": "vitest run --coverage",
+ "test:watch": "vitest --watch"
+ },
+ "dependencies": {
+ "@ant-design/cssinjs": "^1.24.0",
+ "@ant-design/icons": "^6.1.0",
+ "@hookform/resolvers": "^3.7.0",
+ "@reduxjs/toolkit": "^1.9.7",
+ "antd": "^5.24.5",
+ "axios": "^1.12.0",
+ "chroma-js": "^2.4.2",
+ "clsx": "^2.1.1",
+ "dayjs": "^1.11.11",
+ "lodash-es": "^4.17.21",
+ "lucide-react": "^0.552.0",
+ "next": "14.2.32",
+ "next-themes": "^0.4.6",
+ "nprogress": "^0.2.0",
+ "oidc-client-ts": "^3.3.0",
+ "qs": "^6.14.0",
+ "react": "^18.3.1",
+ "react-antd-column-resize": "^1.0.3",
+ "react-dom": "^18.3.1",
+ "react-hook-form": "^7.52.1",
+ "react-hot-toast": "^2.4.1",
+ "react-redux": "^8.1.3",
+ "react-use": "^17.6.0",
+ "tailwind-merge": "^3.3.1",
+ "use-resize-observer": "^9.1.0",
+ "yup": "^1.4.0"
+ },
+ "devDependencies": {
+ "@iconify/react": "^4.1.1",
+ "@iconify/tools": "^4.1.2",
+ "@iconify/utils": "^2.1.25",
+ "@next/bundle-analyzer": "^14.2.4",
+ "@types/lodash-es": "^4.17.12",
+ "@types/node": "^20.14.9",
+ "@types/qs": "^6.9.18",
+ "@types/react": "^18.3.3",
+ "@vitest/coverage-v8": "^2.1.9",
+ "autoprefixer": "^10.4.21",
+ "env-cmd": "^10.1.0",
+ "eslint": "^9.39.1",
+ "eslint-config-next": "16.0.6",
+ "eslint-config-prettier": "^9.1.0",
+ "jsdom": "^24.1.0",
+ "postcss": "^8.5.3",
+ "prettier": "^3.3.2",
+ "tailwindcss": "^3.4.4",
+ "tsx": "^4.16.0",
+ "typescript": "^5.5.3",
+ "vitest": "^2.1.9"
+ }
+}
diff --git a/web-v2/web/pnpm-lock.yaml b/web-v2/web/pnpm-lock.yaml
new file mode 100644
index 0000000000..155e72a491
--- /dev/null
+++ b/web-v2/web/pnpm-lock.yaml
@@ -0,0 +1,7803 @@
+lockfileVersion: '9.0'
+
+settings:
+ autoInstallPeers: true
+ excludeLinksFromLockfile: false
+
+importers:
+
+ .:
+ dependencies:
+ '@ant-design/cssinjs':
+ specifier: ^1.24.0
+ '@ant-design/icons':
+ specifier: ^6.1.0
+ '@hookform/resolvers':
+ specifier: ^3.7.0
+ '@reduxjs/toolkit':
+ specifier: ^1.9.7
+ antd:
+ specifier: ^5.24.5
+ axios:
+ specifier: ^1.12.0
+ version: 1.12.2
+ chroma-js:
+ specifier: ^2.4.2
+ version: 2.6.0
+ clsx:
+ specifier: ^2.1.1
+ version: 2.1.1
+ dayjs:
+ specifier: ^1.11.11
+ version: 1.11.18
+ lodash-es:
+ specifier: ^4.17.21
+ version: 4.17.21
+ lucide-react:
+ specifier: ^0.552.0
+ version: 0.552.0([email protected])
+ next:
+ specifier: 14.2.32
+ next-themes:
+ specifier: ^0.4.6
+ nprogress:
+ specifier: ^0.2.0
+ version: 0.2.0
+ oidc-client-ts:
+ specifier: ^3.3.0
+ version: 3.3.0
+ qs:
+ specifier: ^6.14.0
+ version: 6.14.0
+ react:
+ specifier: ^18.3.1
+ version: 18.3.1
+ react-antd-column-resize:
+ specifier: ^1.0.3
+ react-dom:
+ specifier: ^18.3.1
+ version: 18.3.1([email protected])
+ react-hook-form:
+ specifier: ^7.52.1
+ version: 7.62.0([email protected])
+ react-hot-toast:
+ specifier: ^2.4.1
+ react-redux:
+ specifier: ^8.1.3
+ react-use:
+ specifier: ^17.6.0
+ tailwind-merge:
+ specifier: ^3.3.1
+ version: 3.3.1
+ use-resize-observer:
+ specifier: ^9.1.0
+ yup:
+ specifier: ^1.4.0
+ version: 1.7.1
+ devDependencies:
+ '@iconify/react':
+ specifier: ^4.1.1
+ version: 4.1.1([email protected])
+ '@iconify/tools':
+ specifier: ^4.1.2
+ version: 4.2.0
+ '@iconify/utils':
+ specifier: ^2.1.25
+ version: 2.3.0
+ '@next/bundle-analyzer':
+ specifier: ^14.2.4
+ version: 14.2.35
+ '@types/lodash-es':
+ specifier: ^4.17.12
+ version: 4.17.12
+ '@types/node':
+ specifier: ^20.14.9
+ version: 20.19.27
+ '@types/qs':
+ specifier: ^6.9.18
+ version: 6.14.0
+ '@types/react':
+ specifier: ^18.3.3
+ version: 18.3.24
+ '@vitest/coverage-v8':
+ specifier: ^2.1.9
+ autoprefixer:
+ specifier: ^10.4.21
+ version: 10.4.23([email protected])
+ env-cmd:
+ specifier: ^10.1.0
+ version: 10.1.0
+ eslint:
+ specifier: ^9.39.1
+ version: 9.39.2([email protected])
+ eslint-config-next:
+ specifier: 16.0.6
+ eslint-config-prettier:
+ specifier: ^9.1.0
+ jsdom:
+ specifier: ^24.1.0
+ version: 24.1.3
+ postcss:
+ specifier: ^8.5.3
+ version: 8.5.6
+ prettier:
+ specifier: ^3.3.2
+ version: 3.7.4
+ tailwindcss:
+ specifier: ^3.4.4
+ version: 3.4.19([email protected])
+ tsx:
+ specifier: ^4.16.0
+ version: 4.21.0
+ typescript:
+ specifier: ^5.5.3
+ version: 5.9.3
+ vitest:
+ specifier: ^2.1.9
+ version: 2.1.9(@types/[email protected])([email protected])
+
+packages:
+
+ '@alloc/[email protected]':
+ resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
+ engines: {node: '>=10'}
+
+ '@ampproject/[email protected]':
+ resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
+ engines: {node: '>=6.0.0'}
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-lCHDcEzieu4GA3n8ELeZ5VQ8pKQAWcGGLRTQ50aQM2iqPpq2evTxER84jfdPvsPAtEcZ7m44NI45edFMo8oOYQ==}
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-6YzkKCw30EI/E9kHOIXsQDHmMvTllT8STzjMb4K2qzit33RW2pqCJP0sk+hidBntXxE+Vz4n1+RvCTfBw6OErw==}
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-nOoQMLW1l+xR1Co8NFVYiP8pZp3VjIIzqV6D6ShYF2ljtdwWJn5WSsH+7kvCktXL/yhEtWURKOfH5Xz/gzlwsg==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-K4cYrJBsgvL+IoozUXYjbT6LHHNt+19a9zkvpBPxLjFHas1UpPM2A5MlhROb0BT8N8WoavM5VsP9MeSeNK/3mg==}
+ peerDependencies:
+ react: '>=16.0.0'
+ react-dom: '>=16.0.0'
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-y2217gk4NqL35giHl72o6Zzqji9O7vHh9YmhUVkPtAOpoTCH4uWxo/pr4VE8t0+ChEPs0qo4eJRC5Q1eXWo3vA==}
+ engines: {node: '>=8.x'}
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-eqvpP7xEDm2S7dUzl5srEQCBTXZMmY3ekf97zI+M2DHOYyKdJGH0qua0JACHTqbkRnD/KHFQP9J1uMJ/XWVzzA==}
+ engines: {node: '>=8.x'}
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==}
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-0/xS39c91WjPAZOWsvi1//zjx6kAp4kxWwctR6kuU6p133w8RU0D2dSCvZC19uQyharg/sAvYxGYWl01BbZZfg==}
+ engines: {node: '>=8'}
+ peerDependencies:
+ react: '>=16.0.0'
+ react-dom: '>=16.0.0'
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-KrWMu1fIg3w/1F2zfn+JlfNDU8dDqILfA5Tg85iqs1lf8ooyGlbkA+TkwfOKKgqpUmAiRY1PTFpuOU2DAIgSUg==}
+ engines: {node: '>=8'}
+ peerDependencies:
+ react: '>=16.0.0'
+ react-dom: '>=16.0.0'
+
+ '@ant-design/[email protected]':
+ resolution: {integrity: sha512-EzlvzE6xQUBrZuuhSAFTdsr4P2bBBHGZwKFemEfq8gIGyIQCxalYfZW/T2ORbtQx5rU69o+WycP3exY/7T1hGA==}
+ peerDependencies:
+ react: '>=16.9.0'
+
+ '@antfu/[email protected]':
+ resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==}
+
+ '@antfu/[email protected]':
+ resolution: {integrity: sha512-Mex9nXf9vR6AhcXmMrlz/HVgYYZpVGJ6YlPgwl7UnaFpnshXs6EK/oa5Gpf3CzENMjkvEx2tQtntGnb7UtSTOQ==}
+
+ '@asamuzakjp/[email protected]':
+ resolution: {integrity: sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==}
+ engines: {node: '>=6.9.0'}
+
+ resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
+
+ '@csstools/[email protected]':
+ resolution: {integrity: sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==}
+ engines: {node: '>=18'}
+
+ '@csstools/[email protected]':
+ resolution: {integrity: sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@csstools/css-parser-algorithms': ^3.0.5
+ '@csstools/css-tokenizer': ^3.0.4
+
+ '@csstools/[email protected]':
+ resolution: {integrity: sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@csstools/css-parser-algorithms': ^3.0.5
+ '@csstools/css-tokenizer': ^3.0.4
+
+ '@csstools/[email protected]':
+ resolution: {integrity: sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@csstools/css-tokenizer': ^3.0.4
+
+ '@csstools/[email protected]':
+ resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}
+ engines: {node: '>=18'}
+
+ '@discoveryjs/[email protected]':
+ resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==}
+ engines: {node: '>=10.0.0'}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==}
+
+ '@emotion/[email protected]':
+ resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==}
+
+ '@emotion/[email protected]':
+ resolution: {integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==}
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}
+ engines: {node: '>=12'}
+ cpu: [ppc64]
+ os: [aix]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [aix]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==}
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==}
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==}
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==}
+ engines: {node: '>=12'}
+ cpu: [loong64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==}
+ engines: {node: '>=18'}
+ cpu: [loong64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==}
+ engines: {node: '>=12'}
+ cpu: [mips64el]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==}
+ engines: {node: '>=18'}
+ cpu: [mips64el]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==}
+ engines: {node: '>=12'}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==}
+ engines: {node: '>=12'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==}
+ engines: {node: '>=18'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==}
+ engines: {node: '>=12'}
+ cpu: [s390x]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==}
+ engines: {node: '>=18'}
+ cpu: [s390x]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [netbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [netbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [netbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [sunos]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [sunos]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==}
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [win32]
+
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
+
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
+ engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@hookform/[email protected]':
+ resolution: {integrity: sha512-79Dv+3mDF7i+2ajj7SkypSKHhl1cbln1OGavqrsF7p6mbUv11xpqpacPsGDCTRvCSjEEIez2ef1NveSVL3b0Ag==}
+ peerDependencies:
+ react-hook-form: ^7.0.0
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
+ engines: {node: '>=12.22'}
+
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
+ engines: {node: '>=18.18'}
+
+ '@iconify/[email protected]':
+ resolution: {integrity: sha512-jed14EjvKjee8mc0eoscGxlg7mSQRkwQG3iX3cPBCO7UlOjz0DtlvTqxqEcHUJGh+z1VJ31Yhu5B9PxfO0zbdg==}
+ peerDependencies:
+ react: '>=16'
+
+ '@iconify/[email protected]':
+ resolution: {integrity: sha512-WRxPva/ipxYkqZd1+CkEAQmd86dQmrwH0vwK89gmp2Kh2WyyVw57XbPng0NehP3x4V1LzLsXUneP1uMfTMZmUA==}
+
+ '@iconify/[email protected]':
+ resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}
+
+ '@iconify/[email protected]':
+ resolution: {integrity: sha512-GmQ78prtwYW6EtzXRU1rY+KwOKfz32PD7iJh6Iyqw68GiKuoZ2A6pRtzWONz5VQJbp50mEjXh/7NkumtrAgRKA==}
+
+ '@isaacs/[email protected]':
+ resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
+ engines: {node: '>=12'}
+
+ '@isaacs/[email protected]':
+ resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}
+ engines: {node: '>=18.0.0'}
+
+ '@istanbuljs/[email protected]':
+ resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==}
+ engines: {node: '>=8'}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
+ engines: {node: '>=6.0.0'}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
+
+ '@juggle/[email protected]':
+ resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==}
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==}
+
+ resolution: {integrity: sha512-br772Uozk44eJq3a0Z+sTyNII+29d7ue1a0s4xd+9MlUQl3HhKo/wLqxZPFngMbwr6YnAWh/uKoVEpEOV35Fzw==}
+
+ resolution: {integrity: sha512-n9mQdigI6iZ/DF6pCTwMKeWgF2e8lg7qgt5M7HXMLtyhZYMnf/u905M18sSpPmHL9MKp9JHo56C6jrD2EvWxng==}
+
+ resolution: {integrity: sha512-9INsBF3/4XL0/tON8AGsh0svnTtDMLwv3iREGWnWkewGdOnd790tguzq9rX8xwrVthPyvaBHhw1ww0GZz0jO5Q==}
+
+ resolution: {integrity: sha512-osHXveM70zC+ilfuFa/2W6a1XQxJTvEhzEycnjUaVE8kpUS09lDpiDDX2YLdyFCzoUbvbo5r0X1Kp4MllIOShw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-P9NpCAJuOiaHHpqtrCNncjqtSBi1f6QUdHK/+dNabBIXB2RUFWL19TY1Hkhu74OvyNQEYEzzMJCMQk5agjw1Qg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-v7JaO0oXXt6d+cFjrrKqYnR2ubrD+JYP7nQVRZgeo5uNE5hkCpWnHmXm9vy3g6foMO8SPwL0P3MPw1c+BjbAzA==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-tA6sIKShXtSJBTH88i0DRd6I9n3ZTirmwpwAqH5zdJoQF7/wlJXR8DkPmKwYl5mFWhEKr5IIa3LfpMW9RRwKmQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-7S1GY4TdnlGVIdeXXKQdDkfDysoIVFMD0lJuVVMeb3eoVjrknQ0JNN7wFlhCvea0hEk0Sd4D1hedVChDKfV2jw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-OHHC81P4tirVa6Awk6eCQ6RBfWl8HpFsZtfEkMpJ5GjPsJ3nhPe6wKAJUZ/piC8sszUkAgv3fLflgzPStIwfWg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-rORQjXsAFeX6TLYJrCG5yoIDj+NKq31Rqwn8Wpn/bkPNy5rTHvOXkW8mLFonItS7QC6M+1JIIcLe+vOCTOYpvg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-jHUeDPVHrgFltqoAqDB6g6OStNnFxnc7Aks3p0KE0FbwAvRg6qWKYF5mSTdCTxA3axoSAUwxYdILzXJfUwlHhA==}
+ engines: {node: '>= 10'}
+ cpu: [ia32]
+ os: [win32]
+
+ resolution: {integrity: sha512-2N0lSoU4GjfLSO50wvKpMQgKd4HdI2UHEhQPPPnlgfBJlOgJxkjpkYBqzk08f1gItBB6xF/n+ykso2hgxuydsA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
+ engines: {node: '>= 8'}
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
+ engines: {node: '>= 8'}
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
+ engines: {node: '>= 8'}
+
+ '@nolyfill/[email protected]':
+ resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==}
+ engines: {node: '>=12.4.0'}
+
+ '@pkgjs/[email protected]':
+ resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
+ engines: {node: '>=14'}
+
+ '@polka/[email protected]':
+ resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==}
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-qgGdcVIF604M9EqjNF0hbUTz42bz/RDtxWdWuU5EQe3hi7M8ob54B6B35rOsvX5eSvIHIzT9iH1R3n+hk3CGfg==}
+ engines: {node: '>=14.x'}
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-WcZYwAThV/b2GISQ8F+7650r5ZZJ043E57aVBFkQ+kSY4C6wdofXgB0hBx+GPGpIU0Z81eETNoDUJMr7oy/P8Q==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-kFcNxg9oLRMoL3qki0OMxK+7g5mypjgaaJp/pkOis/6rVxma9nJBF/8kCIuTYHUQNr0ii7MxqE33wirPZLJQ2w==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-jS4E7T9Li2GuYwI6PyiVXmxTiM6b07rlD9Ge8uGZSCz3WlzcG5ZK7g5bbuKNeZ9pgUuPK/5guV781ujdVpm4HQ==}
+ engines: {node: '>=8.x'}
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-QjrOsDXQusNwGZPf4/qRQasg7UFEj06XiCJ8iuiq/Io7CrHrgVi6Uuetw60WAMG1799v+aM8kyc+1L/GBbHSlw==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-6f813C0IsasTZms08kfA8kPAGxbbkYToa8ALaiDIGGECU4i9hj8Plgbx0sNJDrey3EtHO30hmdaxtT0138xZcg==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-L+rZ4HXP2sJ1gHMGHjsg9jlYBX/SLN2D6OxP9Zn3qgtpMWtO2vUfxVFwiogHpAIqs54FnALxraUy/BCO1yRIgg==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-Tr2t7J1DKZUpfJuDZWHxyxWpfmj8EZrqSgyMZ+BCdvKZ6r1UDsfU46M/iWAAFBy961Ssfom2kv5f3UcjIL2CmQ==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-iwaxZyzOuK0D7lS+0AQEtW52zUWxoGqTGkke3dRyb8pYiShmRpCjB/8TzPI4R6YySCH7Vm9BZj/31VPiiQTLBg==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ '@rc-component/[email protected]':
+ resolution: {integrity: sha512-hfXE04CVsxI/slmWKeSh6du7sSKpbvVdVEZCa8A+2QWDlL97EsCYme2c3ZWLn1uC9FR21JoewlrhUPWO4QgO8w==}
+ peerDependencies:
+ react: '>=18.0.0'
+ react-dom: '>=18.0.0'
+
+ '@reduxjs/[email protected]':
+ resolution: {integrity: sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ==}
+ peerDependencies:
+ react: ^16.9.0 || ^17.0.0 || ^18
+ react-redux: ^7.2.1 || ^8.0.2
+ peerDependenciesMeta:
+ react:
+ optional: true
+ react-redux:
+ optional: true
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-OywsdRHrFvCdvsewAInDKCNyR3laPA2mc9bRYJ6LBp5IyvF3fvXbbNR0bSzHlZVFtn6E0xw2oZlyjg4rKCVcng==}
+ cpu: [arm]
+ os: [android]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-Skx39Uv+u7H224Af+bDgNinitlmHyQX1K/atIA32JP3JQw6hVODX5tkbi2zof/E69M1qH2UoN3Xdxgs90mmNYw==}
+ cpu: [arm64]
+ os: [android]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-k43D4qta/+6Fq+nCDhhv9yP2HdeKeP56QrUUTW7E6PhZP1US6NDqpJj4MY0jBHlJivVJD5P8NxrjuobZBJTCRw==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-cOo7biqwkpawslEfox5Vs8/qj83M/aZCSSNIWpVzfU2CYHa2G3P1UN5WF01RdTHSgCkri7XOlTdtk17BezlV3A==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-miSvuFkmvFbgJ1BevMa4CPCFt5MPGw094knM64W9I0giUIMMmRYcGW/JWZDriaw/k1kOBtsWh1z6nIFV1vPNtA==}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-KGXIs55+b/ZfZsq9aR026tmr/+7tq6VG6MsnrvF4H8VhwflTIuYh+LFUlIsRdQSgrgmtM3fVATzEAj4hBQlaqQ==}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-EHMUcDwhtdRGlXZsGSIuXSYwD5kOT9NVnx9sqzYiwAc91wfYOE1g1djOEDseZJKKqtHAHGwnGPQu3kytmfaXLQ==}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-+pBrqEjaakN2ySv5RVrj/qLytYhPKEUwk+e3SFU5jTLHIcAtqh2rLrd/OkbNuHJpsBgxsD8ccJt5ga/SeG0JmA==}
+ cpu: [arm]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-NSqc7rE9wuUaRBsBp5ckQ5CVz5aIRKCwsoa6WMF7G01sX3/qHUw/z4pv+D+ahL1EIKy6Enpcnz1RY8pf7bjwng==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-gr5vDbg3Bakga5kbdpqx81m2n9IX8M6gIMlQQIXiLTNeQW6CucvuInJ91EuCJ/JYvc+rcLLsDFcfAD1K7fMofg==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-gsrtB1NA3ZYj2vq0Rzkylo9ylCtW/PhpLEivlgWe0bpgtX5+9j9EZa0wtZiCjgu6zmSeZWyI/e2YRX1URozpIw==}
+ cpu: [loong64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-y3qNOfTBStmFNq+t4s7Tmc9hW2ENtPg8FeUD/VShI7rKxNW7O4fFeaYbMsd3tpFlIg1Q8IapFgy7Q9i2BqeBvA==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-89sepv7h2lIVPsFma8iwmccN7Yjjtgz0Rj/Ou6fEqg3HDhpCa+Et+YSufy27i6b0Wav69Qv4WBNl3Rs6pwhebQ==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-ZcU77ieh0M2Q8Ur7D5X7KvK+UxbXeDHwiOt/CPSBTI1fBmeDMivW0dPkdqkT4rOgDjrDDBUed9x4EgraIKoR2A==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-2AdWy5RdDF5+4YfG/YesGDDtbyJlC9LHmL6rZw6FurBJ5n4vFGupsOBGfwMRjBYH7qRQowT8D/U4LoSvVwOhSQ==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-WGt5J8Ij/rvyqpFexxk3ffKqqbLf9AqrTBbWDk7ApGUzaIs6V+s2s84kAxklFwmMF/vBNGrVdYgbblCOFFezMQ==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-JzQmb38ATzHjxlPHuTH6tE7ojnMKM2kYNzt44LO/jJi8BpceEC8QuXYA908n8r3CNuG/B3BV8VR3Hi1rYtmPiw==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-huT3fd0iC7jigGh7n3q/+lfPcXxBi+om/Rs3yiFxjvSxbSB6aohDFXbWvlspaqjeOh+hx7DDHS+5Es5qRkWkZg==}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-c2V0W1bsKIKfbLMBu/WGBz6Yci8nJ/ZJdheE0EwB73N3MvHYKiKGs3mVilX4Gs70eGeDaMqEob25Tw2Gb9Nqyw==}
+ cpu: [arm64]
+ os: [win32]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-woEHgqQqDCkAzrDhvDipnSirm5vxUXtSKDYTVpZG3nUdW/VVB5VdCYA2iReSj/u3yCZzXID4kuKG7OynPnB3WQ==}
+ cpu: [ia32]
+ os: [win32]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-dzAc53LOuFvHwbCEOS0rPbXp6SIhAf2txMP5p6mGyOXXw5mWY8NGGbPMPrs4P1WItkfApDathBj/NzMLUZ9rtQ==}
+ cpu: [x64]
+ os: [win32]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-hYT5d3YNdSh3mbCU1gwQyPgQd3T2ne0A3KG8KSBdav5TiBg6eInVmV+TeR5uHufiIgSFg0XsOWGW5/RhNcSvPg==}
+ cpu: [x64]
+ os: [win32]
+
+ '@rtsao/[email protected]':
+ resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==}
+
+ resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
+
+ resolution: {integrity: sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==}
+
+ '@trysound/[email protected]':
+ resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}
+ engines: {node: '>=10.13.0'}
+
+ '@tybys/[email protected]':
+ resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-PQTyIulDkIDro8P+IHbKCsw7U2xxBYflVzW/FgWdCAePD9xGSidgA76/GeJ6lBKoblyhf9pBY763gbrN+1dI8g==}
+ peerDependencies:
+ '@types/react': '*'
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-aLkWa0C0vO5b4Sr798E26QgOkss68Un0bLjs7u9qxzPT5CG+8DuNTffWES58YzJs3hrVAOs1wonycqEBqNJubA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-FOvQ0YPD5NOfPgMzJihoT+Za5pdkDJWcbpuj1DjaKZIr/gxodQjY/uWEFlTNqW2ugXHUiL8lRQgw63dzKHZdeQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==}
+ peerDependencies:
+ '@types/react': ^18.0.0
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-0dLEBsA1kI3OezMBF8nSsb7Nk19ZnsyE1LLhB8r27KbgU5H4pvuqZLdtE+aUkJVoXgTVuA+iLIwmZ0TuK4tx6A==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-PKhLGDq3JAg0Jk/aK890knnqduuI/Qj+udH7wCf0217IGi4gt+acgCyPVe79qoT+qKUvHMDQkwJeKW9fwl8Cyw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ '@typescript-eslint/parser': ^8.50.1
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-hM5faZwg7aVNa819m/5r7D0h0c9yC4DUlWAOvHAtISdFTc8xB86VmX5Xqabrama3wIPJ/q9RbGS1worb6JfnMg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-E1ur1MCVf+YiP89+o4Les/oBAVzmSbeRB0MQLfSlYtbWU17HPxZ6Bhs5iYmKZRALvEuBoXIZMOIRRc/P++Ortg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-mfRx06Myt3T4vuoHaKi8ZWNTPdzKPNBhiblze5N50//TSHOAQQevl/aolqA/BcqqbJ88GUnLqjjcBc8EWdBcVw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-ooHmotT/lCWLXi55G4mvaUF60aJa012QzvLK0Y+Mp4WdSt17QhMhWOaBWeGTFVkb2gDgBe19Cxy1elPXylslDw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-7J3bf022QZE42tYMO6SL+6lTPKFk/WphhRPe9Tw/el+cEwzLz1Jjz2PX3GtGQVxooLDKeMVmMt7fWpYRdG5Etg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-v5lFIS2feTkNyMhd7AucE/9j/4V9v5iIbpVRncjk/K0sQ6Sb+Np9fgYS/63n6nwqahHQvbmujeBL7mp07Q9mlA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-woHPdW+0gj53aM+cxchymJCrh0cyS7BTIdcDxWUNsclr9VDkOSbqC13juHzxOmQ22dDkMZEpZB+3X1WpUvzgVQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-lCLp8H1T9T7gPbEuJSnHwnSuO9mDf8mfK/Nion5mZmiEaQD9sWf9W4dfeFqRyqRjF06/kBuTmAqcs9sewM2NbQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-IrDKrw7pCRUR94zeuCSUWQ+w8JEf5ZX5jl/e6AHGSLi1/zIr0lgutfn/7JpfCey+urpgQEdrZVYzCaVVKiTwhQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==}
+ cpu: [arm]
+ os: [android]
+
+ resolution: {integrity: sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==}
+ cpu: [arm64]
+ os: [android]
+
+ resolution: {integrity: sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==}
+ cpu: [x64]
+ os: [freebsd]
+
+ resolution: {integrity: sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+
+ resolution: {integrity: sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==}
+ cpu: [ia32]
+ os: [win32]
+
+ resolution: {integrity: sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==}
+ cpu: [x64]
+ os: [win32]
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-Z2cOr0ksM00MpEfyVE8KXIYPEcBFxdbLSs56L8PO0QQMxt/6bDj45uQfxoc96v05KW3clk7vvgP0qfDit9DmfQ==}
+ peerDependencies:
+ '@vitest/browser': 2.1.9
+ vitest: 2.1.9
+ peerDependenciesMeta:
+ '@vitest/browser':
+ optional: true
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==}
+ peerDependencies:
+ msw: ^2.4.9
+ vite: ^5.0.0
+ peerDependenciesMeta:
+ msw:
+ optional: true
+ vite:
+ optional: true
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==}
+
+ '@xobotyi/[email protected]':
+ resolution: {integrity: sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ==}
+
+ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
+ peerDependencies:
+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
+
+ resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==}
+ engines: {node: '>=0.4.0'}
+
+ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}
+ engines: {node: '>=0.4.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
+ engines: {node: '>= 14'}
+
+ resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
+
+ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-Jewp1ek1iyqoAyjWyPgzc2kioZ+7S3jh39a+tld/j4ucnuf/cBk4omfyIdhLz49pVNsaEcRp5LtJOSQPFwPgpA==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
+
+ resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
+
+ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+
+ resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}
+
+ resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
+
+ resolution: {integrity: sha512-YYTXSFulfwytnjAPlw8QHncHJmlvFKtczb8InXaAx9Q0LbfDnfEYDE55omerIJKihhmU61Ft+cAOSzQVaBUmeA==}
+ engines: {node: ^10 || ^12 || >=14}
+ hasBin: true
+ peerDependencies:
+ postcss: ^8.1.0
+
+ resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ilYanEU8vxxBexpJd8cWM4ElSQq4QctCLKih0TSfjIfCQTeyH/6zVrmIJfLPrKTKJRbiG+cfnZbQIjAlJmF1jQ==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==}
+
+ resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
+
+ resolution: {integrity: sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==}
+ hasBin: true
+
+ resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
+
+ resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}
+
+ resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}
+
+ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
+
+ resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
+
+ resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==}
+ engines: {node: '>=10.16.0'}
+
+ resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-e6Ojr7RV14Un7dz6ASD0aZDmQPT/A+eZU+nuTNfjqmRrmkmQlnTNWH0SKmqagx9PeW87UVqapSurtAXifmtdmw==}
+
+ resolution: {integrity: sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==}
+
+ resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==}
+ engines: {node: '>= 16'}
+
+ resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==}
+
+ resolution: {integrity: sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg==}
+ engines: {node: '>=20.18.1'}
+
+ resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
+ engines: {node: '>= 8.10.0'}
+
+ resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-BLHvCB9s8Z1EV4ethr6xnkl/P2YRFOGqfgvuMG/MyCbZPrTA+NeiByY6XvgF0zP4/2deU2CXnWyMa3zu1LqQ3A==}
+
+ resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==}
+
+ resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
+
+ resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
+ engines: {node: '>=7.0.0'}
+
+ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+
+ resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
+ engines: {node: '>= 10'}
+
+ resolution: {integrity: sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw==}
+
+ resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+
+ resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}
+
+ resolution: {integrity: sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==}
+
+ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
+
+ resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==}
+
+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-fJAcud6B3rRu+KHYk+Bwf+WFL2MDCJJ1XG9x137tJQ0xYxor7XziQtuGFbWNdqrvF4Tk26O3H73nfVqXt/fW1A==}
+
+ resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==}
+
+ resolution: {integrity: sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==}
+ engines: {node: '>=8.0.0'}
+
+ resolution: {integrity: sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'}
+
+ resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
+
+ resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
+ engines: {node: '>=4'}
+ hasBin: true
+
+ resolution: {integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'}
+
+ resolution: {integrity: sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
+
+ resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
+
+ resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-zFBQ7WFRvVRhKcWoUh+ZA1g2HVgUbsZm9sbddh8EC5iv93sui8DVVz1Npvz+r6meo9VKfa8NyLWBsQK1VvIKPA==}
+
+ resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==}
+
+ resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
+ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
+ resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}
+
+ resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
+
+ resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
+ engines: {node: '>=0.4.0'}
+
+ resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
+
+ resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
+
+ resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}
+
+ resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
+
+ resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}
+
+ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==}
+
+ resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
+
+ resolution: {integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==}
+
+ resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
+
+ resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
+
+ resolution: {integrity: sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==}
+
+ resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==}
+
+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
+ engines: {node: '>=0.12'}
+
+ resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==}
+ engines: {node: '>=0.12'}
+
+ resolution: {integrity: sha512-mMdWTT9XKN7yNth/6N6g2GuKuJTsKMDHlQFUDacb/heQRRWOTIZ42t1rMHnQu4jYxU1ajdTeJM+9eEETlqToMA==}
+ engines: {node: '>=8.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==}
+
+ resolution: {integrity: sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}
+
+ resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==}
+ engines: {node: '>=12'}
+ hasBin: true
+
+ resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==}
+ engines: {node: '>=18'}
+ hasBin: true
+
+ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-nx0Z2S50TlcSQ2RtyULCff5tlKTwqF/ICh3U9s8C/e2aRXAm1Ootdb7BEHGZmejtJSgsFq8PVFdlWy8BHiz2pg==}
+ peerDependencies:
+ eslint: '>=9.0.0'
+ typescript: '>=3.3.1'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-iI1f+D2ViGn+uvv5HuHVUamg8ll4tN+JRHGc6IJi4TP9Kl976C57fzPXgseXNs8v0iA8aSJpHsTWjDb9QJamGQ==}
+ hasBin: true
+ peerDependencies:
+ eslint: '>=7.0.0'
+
+ resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==}
+
+ resolution: {integrity: sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ eslint: '*'
+ eslint-plugin-import: '*'
+ eslint-plugin-import-x: '*'
+ peerDependenciesMeta:
+ eslint-plugin-import:
+ optional: true
+ eslint-plugin-import-x:
+ optional: true
+
+ resolution: {integrity: sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ '@typescript-eslint/parser': '*'
+ eslint: '*'
+ eslint-import-resolver-node: '*'
+ eslint-import-resolver-typescript: '*'
+ eslint-import-resolver-webpack: '*'
+ peerDependenciesMeta:
+ '@typescript-eslint/parser':
+ optional: true
+ eslint:
+ optional: true
+ eslint-import-resolver-node:
+ optional: true
+ eslint-import-resolver-typescript:
+ optional: true
+ eslint-import-resolver-webpack:
+ optional: true
+
+ resolution: {integrity: sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ '@typescript-eslint/parser': '*'
+ eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9
+ peerDependenciesMeta:
+ '@typescript-eslint/parser':
+ optional: true
+
+ resolution: {integrity: sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==}
+ engines: {node: '>=4.0'}
+ peerDependencies:
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9
+
+ resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
+
+ resolution: {integrity: sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7
+
+ resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+
+ resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ hasBin: true
+ peerDependencies:
+ jiti: '*'
+ peerDependenciesMeta:
+ jiti:
+ optional: true
+
+ resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==}
+ engines: {node: '>=0.10'}
+
+ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
+
+ resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}
+ engines: {node: '>=12.0.0'}
+
+ resolution: {integrity: sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==}
+
+ resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==}
+ engines: {node: '>= 10.17.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+
+ resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==}
+ engines: {node: '>=8.6.0'}
+
+ resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
+ engines: {node: '>=8.6.0'}
+
+ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
+
+ resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
+
+ resolution: {integrity: sha512-HPtaa38cPgWvaCFmRNhlc6NG7pv6NUHqjPgVAkWGoB9mQMwYB27/K0CvOM5Czy+qpT3e8XJ6Q4aPAnzpNpzNaw==}
+
+ resolution: {integrity: sha512-bijHueCGd0LqqNK9b5oCMHc0MluJAx0cwqASgbWMvkO01lCYgIhacVRLcaDz3QnyYIRNJRDwMb41VuT6pHJ91Q==}
+
+ resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}
+
+ resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
+
+ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
+ engines: {node: '>=12.0.0'}
+ peerDependencies:
+ picomatch: ^3 || ^4
+ peerDependenciesMeta:
+ picomatch:
+ optional: true
+
+ resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
+ engines: {node: '>=16.0.0'}
+
+ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}
+
+ resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==}
+ engines: {node: '>=4.0'}
+ peerDependencies:
+ debug: '*'
+ peerDependenciesMeta:
+ debug:
+ optional: true
+
+ resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==}
+
+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+ os: [darwin]
+
+ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
+
+ resolution: {integrity: sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
+
+ resolution: {integrity: sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
+ engines: {node: '>=6.9.0'}
+
+ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==}
+
+ resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
+ engines: {node: '>=10.13.0'}
+
+ resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==}
+ hasBin: true
+
+ resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-erjk19y1U33+XAMe1VTvIONHYoSqE4iS7BYUZfHaqeohLmnC0FdxEh7rQU+6MZ4OajItzjZFSRtVANrQwNq6/g==}
+ peerDependencies:
+ csstype: ^3.0.10
+
+ resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+
+ resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
+
+ resolution: {integrity: sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==}
+
+ resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==}
+
+ resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}
+
+ resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}
+
+ resolution: {integrity: sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==}
+
+ resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}
+ engines: {node: '>= 14'}
+
+ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
+ engines: {node: '>= 14'}
+
+ resolution: {integrity: sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw==}
+
+ resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==}
+
+ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
+ engines: {node: '>=0.8.19'}
+
+ resolution: {integrity: sha512-lhYo5qNTQp3EvSSp3sRvXMbVQTLrvGV6DycRMJ5dm2BLMiJ30wpXKdDdgX+GmJZ5uQMucwRKHamXSst3Sj/Giw==}
+
+ resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==}
+
+ resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Tz/yndySvLAEXh+Uk8liFCxOwVH6YutuR74utvOcu7I9Di+DwM0mtdPVZNaVvvBUM2OXxne/NhOs1zAO7riusQ==}
+
+ resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
+ engines: {node: '>=0.12.0'}
+
+ resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}
+
+ resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}
+
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+
+ resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==}
+
+ resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==}
+ hasBin: true
+
+ resolution: {integrity: sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==}
+
+ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
+
+ resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-MyL55p3Ut3cXbeBEG7Hcv0mVM8pp8PBNWxRqchZnSfAiES1v1mRnMeFfaHWIPULpwsYfvO+ZmMZz5tGCnjzDUQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ canvas: ^2.11.2
+ peerDependenciesMeta:
+ canvas:
+ optional: true
+
+ resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
+
+ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
+
+ resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+
+ resolution: {integrity: sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==}
+
+ resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
+
+ resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}
+
+ resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==}
+
+ resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==}
+ engines: {node: '>=0.10'}
+
+ resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
+
+ resolution: {integrity: sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==}
+
+ resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
+
+ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
+ hasBin: true
+
+ resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}
+
+ resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
+
+ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
+
+ resolution: {integrity: sha512-g9WCjmfwqbexSnZE+2cl21PCfXOcqnGeWeMTNAOGEfpPbm/ZF4YIq77Z8qWrxbu660EKuLB4nSLggoKnCb+isw==}
+ peerDependencies:
+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
+
+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+
+ resolution: {integrity: sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==}
+
+ resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==}
+
+ resolution: {integrity: sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==}
+
+ resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==}
+
+ resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}
+ engines: {node: '>=8.6'}
+
+ resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
+
+ resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
+ resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
+
+ resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
+ resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==}
+
+ resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+
+ resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}
+
+ resolution: {integrity: sha512-+6bHaC8dSDGALM1HJjOHVXpuastdu2xFoZlC77Jh4cg+33Zcgm+Gxd+1xsnpZK14eyHObSp82+ll5y3SX75liw==}
+ peerDependencies:
+ react: '*'
+ react-dom: '*'
+
+ resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+
+ resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==}
+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
+
+ resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==}
+ peerDependencies:
+ react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
+
+ resolution: {integrity: sha512-fg5g0GZ7/nFc09X8wLe6pNSU8cLWbLRG3TZzPJ1BJvi2s9m7eF991se67wliM9kR5yLHRkyGKU49MMx58s3LJg==}
+ engines: {node: '>=18.17.0'}
+ hasBin: true
+ peerDependencies:
+ '@opentelemetry/api': ^1.1.0
+ '@playwright/test': ^1.41.2
+ react: ^18.2.0
+ react-dom: ^18.2.0
+ sass: ^1.3.0
+ peerDependenciesMeta:
+ '@opentelemetry/api':
+ optional: true
+ '@playwright/test':
+ optional: true
+ sass:
+ optional: true
+
+ resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==}
+
+ resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==}
+
+ resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
+
+ resolution: {integrity: sha512-7wfH4sLbt4M0gCDzGE6vzQBo0bfTKjU7Sfpqy/7gs1qBfYz2vEJH6vXcBKpO3+6Yu1telwd0t9HpyOoLEQQbIQ==}
+
+ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-t13S540ZwFOEZKLYHJwSfITugupW4uYLwuQSSXyKH/wHwZ+7FvgHE7gnNJh1YQIZ1Yd1hKSRjqeXGSUtS0r9JA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
+
+ resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==}
+ hasBin: true
+
+ resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}
+
+ resolution: {integrity: sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==}
+
+ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==}
+
+ resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==}
+
+ resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}
+
+ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
+
+ resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}
+ engines: {node: '>=16 || 14 >=14.18'}
+
+ resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
+
+ resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
+
+ resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==}
+ engines: {node: '>= 14.16'}
+
+ resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}
+
+ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+
+ resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
+ engines: {node: '>=8.6'}
+
+ resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
+
+ resolution: {integrity: sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==}
+
+ resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ postcss: ^8.0.0
+
+ resolution: {integrity: sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==}
+ engines: {node: ^12 || ^14 || >= 16}
+ peerDependencies:
+ postcss: ^8.4.21
+
+ resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}
+ engines: {node: '>= 18'}
+ peerDependencies:
+ jiti: '>=1.21.0'
+ postcss: '>=8.0.9'
+ tsx: ^4.8.1
+ yaml: ^2.4.2
+ peerDependenciesMeta:
+ jiti:
+ optional: true
+ postcss:
+ optional: true
+ tsx:
+ optional: true
+ yaml:
+ optional: true
+
+ resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}
+ engines: {node: '>=12.0'}
+ peerDependencies:
+ postcss: ^8.2.14
+
+ resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
+
+ resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
+ engines: {node: ^10 || ^12 || >=14}
+
+ resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
+ engines: {node: ^10 || ^12 || >=14}
+
+ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==}
+ engines: {node: '>=14'}
+ hasBin: true
+
+ resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
+
+ resolution: {integrity: sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==}
+
+ resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==}
+
+ resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==}
+
+ resolution: {integrity: sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==}
+
+ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==}
+ engines: {node: '>=0.6'}
+
+ resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==}
+
+ resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==}
+
+ resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
+
+ resolution: {integrity: sha512-KpXypcvju9ptjW9FaN2NFcA2QH9E9LHKq169Y0eWtH4e/wHQ5Wh5qZakAgvb8EKZ736WZ3B0zLLOBsrsja5Dag==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-aOAQc3E98HteIIsSqm6Xk2FPKIER6+5vyEFMZfo73TqM+VVAIqOkHoPjgKLqSNtVLWScoaM7vY2ZrGEheI79yg==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-swDdz4QZ4dFTo4RAUMLL50qP0EY62N2kvmk2We5xYdRwcRn8WcYtuetCJpwpaCbUfUt5+huLpVxhvmnK+PHrkA==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-ApoVi9Z8PaCQg6FsUzS8yvBEQy0ZL2PkuvAgrmohPkN3okps5WZ5WQWPc1RNuiOKaAYv8B97ACdsFU5LizzCqg==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-DX6CIgiBWNpJIMGFO8BAISFkxiuKitoizooj4BDyee8/SnBn0zwO2FHrNDpqqepj0E/TFTDpmEBCyFuTgC7MOg==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-YDAlXsPv3I1n42dv1JpdM7wJ+gSUBfeyPK59ZpBD9jQhK9jVuxpjj3NmWQHOBceA1zEPVX84T2wbdb2SD0UjmA==}
+ peerDependencies:
+ react: '>=16.11.0'
+ react-dom: '>=16.11.0'
+
+ resolution: {integrity: sha512-hgKsCay2taxzVnBPZl+1n4ZondsV78G++XVsMIJCAoioMjlMQR9YwAp7JZDIECzIu2Z66R+f4SFIRrO2DjDNAA==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-cZ3HTyyckPnNnUb9/DRqduqzLfrQRyi+CdHjdqgsyDpI3Ln5UX1kXnAhPBSJj9pVRzwRFgqkN7p9b6HBDjmu/Q==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-bKaEvB5tHebUURAEXw35LDcnRZLq3x1k7GxfAqBMzmpHkDGzjAtnUL8y4y5N15rIFIg5IJgwr211jInl3cipag==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-KXvaTbX+7ha8a/k+eg6SYRVERK0NddX8QX7a7AnRvUa/rEH0CNMlpcBzBkhI0wp2C8C4HlMoYl8TImSN+fuHKA==}
+ peerDependencies:
+ react: '>=16.0.0'
+ react-dom: '>=16.0.0'
+
+ resolution: {integrity: sha512-w8HCMZEh3f0nR8ZEd466ATqmXFCMGMN5UFCzEUL0bM/nGw/wOS2GgRzKBcm19K++jDyuWCOJOdgcKGXU3fXfbQ==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-ghHx6/6Dvp+fw8CJhDUHFHDJ84hJE3BXNCzSgLdmNiFErWSOaZNsihDAsKq9ByTALo/xkNIwtDFGIl6r+RPXBg==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-w+XTUrfh7ArbYEd2582uDrEhmBHwK1ZENJiSJVb7uRxdE7qJSYjbO2eksRXmndqyKqKoYPc9ClpPh5242mV1vA==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-KcS4O6B4qzM3KH7lkwOB7ooLPZ4b6J+VMmQgT51VZCeEcmghdeR4IrMcFq0LG+RPdnbe/ArT086tGM8Snimgiw==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-3MoPQQPV1uKyOMVNd6SZfONi+f3st0r8PksexIdBTeIYbMX0Jr+k7pHEDvsXtR4BpCv90/Pv2MovVNhktKrwvw==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-8416Yip/+eclTFdHXLKTxZvn70duYVGTvUUWbckCCZoIl3jagqke3GLsFrMs0bsQBikiYpZLD9206Ej4SOdOXQ==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-MJ5teb7FlNE0NFHTncxXQ62Y5lytq6sh5nUw0iH8OkHL/TjARSEvSHpr940pWgjGANpjCwyMdvsEV55l5tYNSg==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ date-fns: '>= 2.x'
+ dayjs: '>= 1.x'
+ luxon: '>= 3.x'
+ moment: '>= 2.x'
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+ peerDependenciesMeta:
+ date-fns:
+ optional: true
+ dayjs:
+ optional: true
+ luxon:
+ optional: true
+ moment:
+ optional: true
+
+ resolution: {integrity: sha512-oofVMMafOCokIUIBnZLNcOZFsABaUw8PPrf1/y0ZBvKZNpOiu5h4AO9vv11Sw0p4Hb3D0yGWuEattcQGtNJ/aw==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-QUhQ9ivQ8Gy7mtMZPAjLbxBt5y9GRp65VcUyGUMF3N3fhiftivPHdpuDIaWIMOTEprAjZPC08bls1dQB+I1F2Q==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-liijAjXz+KnTRVnxxXG2sYDGd6iLL7VpGGdR8gwoxAXy2KglviKCxLWZdjKYJzYzGSUwKDSTdYk8brj54Bn5BA==}
+ peerDependencies:
+ react: '>=16.0.0'
+ react-dom: '>=16.0.0'
+
+ resolution: {integrity: sha512-NOV5BZa1wZrsdkKaiK7LHRuo5ZjZYMDxPP6/1+09+FB4KoNi8jcG1ZqLE3AVCxEsYMBe65OBx71wFoHRTP3LRg==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '*'
+ react-dom: '*'
+
+ resolution: {integrity: sha512-h8IknhzSh3FEM9u8ivkskh+Ef4Yo4JRIY2nj7MrH6GQmrwV6mcpJf5/4KgH5JaVI1H3E52yCdpOlVyGZIeph5A==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-lKHL+Sny0SeHkQKKDJlAjV5oZ8DwCdS2hFhAkIjuQt1/pB81M0cA0ErVFdHq9+jmPmFw1vJB2F5NBzFXLJxV+g==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-yuZfnTpuHwRa4JH+F28wQfGeDzqtgIDvLBBJk5sFncXQjTExhtBNc6dPfVo5pL5SjabJEoejefs6wsrAKfhDoQ==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-ZepiE+6fmozYdWf/9gVp7k56PKHB1YYoDsKeQA1CBlJ/POIhjkcYiv0AGP0w2Jhzftd3AVvZP/K+V+Lpi2ankA==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-HfaeXiaSlpiSp0I/pvWpecFEHpVysZ9tpDLNkxQbMvMz6gsr7aVZ7FpWP9kt4t7DB+jJXesYS0us1uPZnlRnwQ==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-kqyivim5cp8I5RkHmpsp1Nn/Wk+1oeloMv9c7LXNgDxUpGm+RbXJGL+OPvDlcRnx9DBeOe4wyOIl4OKUERyH1g==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-2qTBTzwIT7LRI1o7zLyrCzmo5tQanmyGbSaGTIf7sYimCklAToVVfpMC6OAldSKolcnjorBYPNSKQqJmN3TCww==}
+ peerDependencies:
+ react: '*'
+ react-dom: '*'
+
+ resolution: {integrity: sha512-FNhIefhftobCdUJshO7M8uZTA9F4OPGVXqGfZkkD/5soDeOhwO06T/aKTrg0WD8gRg/pyfq+ql3aMymLHCTC4A==}
+ engines: {node: '>=10.x'}
+ peerDependencies:
+ react: '*'
+ react-dom: '*'
+
+ resolution: {integrity: sha512-nHx+9rbd1FKMiMRYsqQ3NkXUv7COHPBo3X1Obwq9SWS6/diF/A0aJ5OHubvwUAIDs+4RMleljV0pcrNUc823GQ==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-resueRJzmHG9Q6rI/DfK6Kdv9/Lfls05vzMs1Sk3M2P+3cJa+MakaZyWY8IPfehVuhPJFKrIY1IK4GqbiaiY5w==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-Ys6NcjwGkuwkeaWBDqfI3xWuZ7rDiQXlH1o2zLfFzATfEgXcqpk8CkgMfbJD81McqjcJVez25a3kPxCR807evA==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-JOuwMwR3N5xs3VKZ2pEfA3KWO394WJL9OgqYs7zeYhaD9buEK42kvVtrs590iEK0qmRatrsei11lekjY9ilNrQ==}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+
+ resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==}
+ peerDependencies:
+ react: ^18.3.1
+
+ resolution: {integrity: sha512-VC+HBLEZ0XJxnOxVAZsdRi8rD04Iz3SiiKOoYzamjylUcju/hP9np/aZdLHf/7WOD268WMoNJMvYfB5yAK45cw==}
+ peerDependencies:
+ react: '>= 16.3.0'
+ react-dom: '>= 16.3.0'
+
+ resolution: {integrity: sha512-7KWFejc98xqG/F4bAxpL41NB3o1nnvQO1RWZT3TqRZYL8RryQETGfEdVnJN2fy1crCiBLLjkRBVK05j24FxJGA==}
+ engines: {node: '>=18.0.0'}
+ peerDependencies:
+ react: ^16.8.0 || ^17 || ^18 || ^19
+
+ resolution: {integrity: sha512-bH+2EBMZ4sdyou/DPrfgIouFpcRLCJ+HoCA32UoAYHn6T3Ur5yfcDCeSr5mwldl6pFOsiocmrXMuoCJ1vV8bWg==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ react: '>=16'
+ react-dom: '>=16'
+
+ resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
+
+ resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}
+
+ resolution: {integrity: sha512-n0ZrutD7DaX/j9VscF+uTALI3oUPa/pO4Z3soOBIjuRn/FzVu6aehhysxZCLi6y7duMf52WNZGMl7CtuK5EnRw==}
+ peerDependencies:
+ '@types/react': ^16.8 || ^17.0 || ^18.0
+ '@types/react-dom': ^16.8 || ^17.0 || ^18.0
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ react-native: '>=0.59'
+ redux: ^4 || ^5.0.0-beta.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ react-dom:
+ optional: true
+ react-native:
+ optional: true
+ redux:
+ optional: true
+
+ resolution: {integrity: sha512-vKpeHhI5OZvYn82kXOs1bC8aOXktGU5AmKAgaZS4F5JPburCtbmDPqE7Pzp+1kN4+Wb81LlF33VpGwWwtXem+w==}
+ peerDependencies:
+ react: '>= 16.3'
+
+ resolution: {integrity: sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw==}
+ peerDependencies:
+ react: '*'
+ tslib: '*'
+
+ resolution: {integrity: sha512-OmedEScUMKFfzn1Ir8dBxiLLSOzhKe/dPZwVxcujweSj45aNM7BEGPb9BEVIgVEqEXx6f3/TsXzwIktNgUR02g==}
+ peerDependencies:
+ react: '*'
+ react-dom: '*'
+
+ resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
+
+ resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
+ engines: {node: '>=8.10.0'}
+
+ resolution: {integrity: sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==}
+ peerDependencies:
+ redux: ^4
+
+ resolution: {integrity: sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==}
+
+ resolution: {integrity: sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}
+
+ resolution: {integrity: sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==}
+
+ resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==}
+
+ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
+
+ resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==}
+ engines: {node: '>= 0.4'}
+ hasBin: true
+
+ resolution: {integrity: sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
+ engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-3nk8Y3a9Ea8szgKhinMlGMhGMw89mqule3KWczxhIzqudyHdCIOHw8WJlj/r329fACjKLEh13ZSk7oE22kyeIw==}
+ engines: {node: '>=18.0.0', npm: '>=8.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==}
+
+ resolution: {integrity: sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==}
+
+ resolution: {integrity: sha512-lRQgou1mu19e+Ya0LsTvKrVJ5TYUbqCVPAiImX3UfLTenarvPUl1QFdvu5Z3PYmHT9RCcwIfbjRQBntExyj3Zg==}
+
+ resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
+
+ resolution: {integrity: sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==}
+ engines: {node: '>=0.4'}
+
+ resolution: {integrity: sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+
+ resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}
+ engines: {node: '>=v12.22.7'}
+
+ resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
+
+ resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==}
+
+ resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==}
+ engines: {node: '>=10'}
+ hasBin: true
+
+ resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-AhICkFV84tBP1aWqPwLZqFvAwqEoVA9kxNMniGEUvzOlm4vLmOFLiTT3UZ6bziJTy4bOVpzWGTfSCbmaayGx8g==}
+ engines: {node: '>=6.9'}
+
+ resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
+
+ resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==}
+ engines: {node: '>= 10'}
+
+ resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-MjZkVp0NHr5+TPihLcadqnlVoGIoWo4IBHptutGh9wI3ttUYvCG26HkSuDi+K6lsZ25syXJXcctwgyVCt//xqA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==}
+
+ resolution: {integrity: sha512-mwnua/hkqM6pF4k8SnmZ2zfETsRUpWXREfA/goT8SLCV4iOFa4bzOX2nDipWAZFPTjLvQB82f5yaodMVhK0yJQ==}
+
+ resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
+
+ resolution: {integrity: sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==}
+
+ resolution: {integrity: sha512-GcUgbO4Jsqqg6RxfyTHFiPxdPqF+3LFmQhm7MgCuYQOYuWyqxo5pwRPz5d/u6/WYJdEnWfK4r+jGbyD8TSggXQ==}
+
+ resolution: {integrity: sha512-Je5vBeY4S1r/RnLydLl0TBTi3F2qdfWmYsGvtfZgEI+SCprPppaIhQf5nGcal4gI4cGpCV/duLcAzT1np6sQqg==}
+
+ resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}
+
+ resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}
+ engines: {node: '>=10.0.0'}
+
+ resolution: {integrity: sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==}
+
+ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==}
+
+ resolution: {integrity: sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==}
+ engines: {node: '>= 12.0.0'}
+ peerDependencies:
+ '@babel/core': '*'
+ babel-plugin-macros: '*'
+ react: '>= 16.8.0 || 17.x.x || ^18.0.0-0'
+ peerDependenciesMeta:
+ '@babel/core':
+ optional: true
+ babel-plugin-macros:
+ optional: true
+
+ resolution: {integrity: sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==}
+
+ resolution: {integrity: sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==}
+ engines: {node: '>=16 || 14 >=14.17'}
+ hasBin: true
+
+ resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-OoohrmuUlBs8B8o6MB2Aevn+pRIH9zDALSR+6hhqVfa6fRwG/Qw9VUMSMW9VNg2CFc/MTIfabtdOVl9ODIJjpw==}
+ engines: {node: '>=14.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
+
+ resolution: {integrity: sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g==}
+
+ resolution: {integrity: sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==}
+ engines: {node: '>=14.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
+ engines: {node: '>=0.8'}
+
+ resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
+
+ resolution: {integrity: sha512-dTEWWNu6JmeVXY0ZYoPuH5cRIwc0MeGbJwah9KUNYSJwommQpCzTySTpEe8Gs1J23aeWEuAobe4Ag7EHVt/LOg==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==}
+ engines: {node: '>=12.22'}
+
+ resolution: {integrity: sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q==}
+
+ resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
+
+ resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}
+
+ resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
+ engines: {node: '>=12.0.0'}
+
+ resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+
+ resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==}
+ engines: {node: '>=14.0.0'}
+
+ resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==}
+ engines: {node: '>=14.0.0'}
+
+ resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
+ engines: {node: '>=8.0'}
+
+ resolution: {integrity: sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==}
+
+ resolution: {integrity: sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==}
+
+ resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==}
+ engines: {node: '>=18.12'}
+ peerDependencies:
+ typescript: '>=4.8.4'
+
+ resolution: {integrity: sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==}
+
+ resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
+
+ resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
+
+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
+
+ resolution: {integrity: sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==}
+ engines: {node: '>=18.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}
+ engines: {node: '>=12.20'}
+
+ resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ytTHO+SoYSbhAH9CrYnMhiLx8To6PSSvqnvXyPUgPETCvB6eBKmTI9w6XMPS3HsBRGkwTVBX+urA8dYQx6bHfQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
+ resolution: {integrity: sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==}
+
+ resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
+
+ resolution: {integrity: sha512-QEg3HPMll0o3t2ourKwOeUAZ159Kn9mx5pnzHRQO8+Wixmh88YdZRiIwat0iNzNNXn0yoEtXJqFpyW7eM8BV7g==}
+ engines: {node: '>=20.18.1'}
+
+ resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==}
+ engines: {node: '>= 4.0.0'}
+
+ resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==}
+
+ resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
+
+ resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
+
+ resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==}
+
+ resolution: {integrity: sha512-R25VqO9Wb3asSD4eqtcxk8sJalvIOYBqS8MNZlpDSQ4l4xMQxC/J7Id9HoTqPq8FwULIn0PVW+OAqF2dyYbjow==}
+ peerDependencies:
+ react: 16.8.0 - 18
+ react-dom: 16.8.0 - 18
+
+ resolution: {integrity: sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+
+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+
+ resolution: {integrity: sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': ^18.0.0 || >=20.0.0
+ less: '*'
+ lightningcss: ^1.21.0
+ sass: '*'
+ sass-embedded: '*'
+ stylus: '*'
+ sugarss: '*'
+ terser: ^5.4.0
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ less:
+ optional: true
+ lightningcss:
+ optional: true
+ sass:
+ optional: true
+ sass-embedded:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+
+ resolution: {integrity: sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+ peerDependencies:
+ '@edge-runtime/vm': '*'
+ '@types/node': ^18.0.0 || >=20.0.0
+ '@vitest/browser': 2.1.9
+ '@vitest/ui': 2.1.9
+ happy-dom: '*'
+ jsdom: '*'
+ peerDependenciesMeta:
+ '@edge-runtime/vm':
+ optional: true
+ '@types/node':
+ optional: true
+ '@vitest/browser':
+ optional: true
+ '@vitest/ui':
+ optional: true
+ happy-dom:
+ optional: true
+ jsdom:
+ optional: true
+
+ resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-s3P7pgexgT/HTUSYgxJyn28A+99mmLq4HsJepMPzu0R8ImJc52QNqaFYW1Z2z2uIb1/J3eYgaAWVpaC+v/1aAQ==}
+ engines: {node: '>= 10.13.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+ engines: {node: '>= 8'}
+ hasBin: true
+
+ resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
+ engines: {node: '>=8'}
+ hasBin: true
+
+ resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
+
+ resolution: {integrity: sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==}
+ engines: {node: '>=8.3.0'}
+ peerDependencies:
+ bufferutil: ^4.0.1
+ utf-8-validate: ^5.0.2
+ peerDependenciesMeta:
+ bufferutil:
+ optional: true
+ utf-8-validate:
+ optional: true
+
+ resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==}
+ engines: {node: '>=10.0.0'}
+ peerDependencies:
+ bufferutil: ^4.0.1
+ utf-8-validate: '>=5.0.2'
+ peerDependenciesMeta:
+ bufferutil:
+ optional: true
+ utf-8-validate:
+ optional: true
+
+ resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}
+
+ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+
+ resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==}
+
+ resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-GKHFX2nXul2/4Dtfxhozv701jLQHdf6J34YDh2cEkpqoo8le5Mg6/LrdseVLrFarmFygZTlfIhHx/QKfb/QWXw==}
+
+ resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==}
+ engines: {node: '>=18.0.0'}
+ peerDependencies:
+ zod: ^3.25.0 || ^4.0.0
+
+ resolution: {integrity: sha512-0wZ1IRqGGhMP76gLqz8EyfBXKk0J2qo2+H3fi4mcUP/KtTocoX08nmIAHl1Z2kJIZbZee8KOpBCSNPRgauucjw==}
+
+snapshots:
+
+ '@alloc/[email protected]': {}
+
+ '@ampproject/[email protected]':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@ant-design/[email protected]':
+ dependencies:
+ '@ant-design/fast-color': 2.0.6
+
+ '@ant-design/[email protected]':
+ dependencies:
+ '@ant-design/fast-color': 3.0.0
+
+ dependencies:
+ '@ant-design/cssinjs': 1.24.0([email protected]([email protected]))([email protected])
+ '@babel/runtime': 7.28.4
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@emotion/hash': 0.8.0
+ '@emotion/unitless': 0.7.5
+ classnames: 2.5.1
+ csstype: 3.1.3
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ stylis: 4.3.6
+
+ '@ant-design/[email protected]':
+ dependencies:
+ '@babel/runtime': 7.28.4
+
+ '@ant-design/[email protected]': {}
+
+ '@ant-design/[email protected]': {}
+
+ dependencies:
+ '@ant-design/colors': 7.2.1
+ '@ant-design/icons-svg': 4.4.2
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@ant-design/colors': 8.0.0
+ '@ant-design/icons-svg': 4.4.2
+ clsx: 2.1.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ json2mq: 0.2.0
+ react: 18.3.1
+ resize-observer-polyfill: 1.5.1
+ throttle-debounce: 5.0.2
+
+ '@antfu/[email protected]':
+ dependencies:
+ package-manager-detector: 1.6.0
+ tinyexec: 1.0.2
+
+ '@antfu/[email protected]': {}
+
+ '@asamuzakjp/[email protected]':
+ dependencies:
+ '@csstools/css-calc': 2.1.4(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
+ '@csstools/css-color-parser': 3.1.0(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])
+ '@csstools/css-tokenizer': 3.0.4
+ lru-cache: 10.4.3
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/helper-validator-identifier': 7.27.1
+ js-tokens: 4.0.0
+ picocolors: 1.1.1
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/generator': 7.28.5
+ '@babel/helper-compilation-targets': 7.27.2
+ '@babel/helper-module-transforms': 7.28.3(@babel/[email protected])
+ '@babel/helpers': 7.28.4
+ '@babel/parser': 7.28.5
+ '@babel/template': 7.27.2
+ '@babel/traverse': 7.28.5
+ '@babel/types': 7.28.5
+ '@jridgewell/remapping': 2.3.5
+ convert-source-map: 2.0.0
+ debug: 4.4.3
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/parser': 7.28.4
+ '@babel/types': 7.28.4
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+ jsesc: 3.1.0
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/parser': 7.28.5
+ '@babel/types': 7.28.5
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+ jsesc: 3.1.0
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/compat-data': 7.28.5
+ '@babel/helper-validator-option': 7.27.1
+ browserslist: 4.28.1
+ lru-cache: 5.1.1
+ semver: 6.3.1
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/traverse': 7.28.4
+ '@babel/types': 7.28.4
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@babel/core': 7.28.5
+ '@babel/helper-module-imports': 7.27.1
+ '@babel/helper-validator-identifier': 7.27.1
+ '@babel/traverse': 7.28.5
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/template': 7.27.2
+ '@babel/types': 7.28.5
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.28.4
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.28.5
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/parser': 7.28.4
+ '@babel/types': 7.28.4
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/generator': 7.28.3
+ '@babel/helper-globals': 7.28.0
+ '@babel/parser': 7.28.4
+ '@babel/template': 7.27.2
+ '@babel/types': 7.28.4
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/generator': 7.28.5
+ '@babel/helper-globals': 7.28.0
+ '@babel/parser': 7.28.5
+ '@babel/template': 7.27.2
+ '@babel/types': 7.28.5
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/helper-string-parser': 7.27.1
+ '@babel/helper-validator-identifier': 7.27.1
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/helper-string-parser': 7.27.1
+ '@babel/helper-validator-identifier': 7.28.5
+
+ '@bcoe/[email protected]': {}
+
+ '@csstools/[email protected]': {}
+
+ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
+ dependencies:
+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])
+ '@csstools/css-tokenizer': 3.0.4
+
+ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
+ dependencies:
+ '@csstools/color-helpers': 5.1.0
+ '@csstools/css-calc': 2.1.4(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])
+ '@csstools/css-tokenizer': 3.0.4
+
+ '@csstools/[email protected](@csstools/[email protected])':
+ dependencies:
+ '@csstools/css-tokenizer': 3.0.4
+
+ '@csstools/[email protected]': {}
+
+ '@discoveryjs/[email protected]': {}
+
+ '@emnapi/[email protected]':
+ dependencies:
+ '@emnapi/wasi-threads': 1.1.0
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@emotion/[email protected]': {}
+
+ '@emotion/[email protected]': {}
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ dependencies:
+ eslint: 9.39.2([email protected])
+ eslint-visitor-keys: 3.4.3
+
+ '@eslint-community/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/object-schema': 2.1.7
+ debug: 4.4.3
+ minimatch: 3.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 0.17.0
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@types/json-schema': 7.0.15
+
+ '@eslint/[email protected]':
+ dependencies:
+ ajv: 6.12.6
+ debug: 4.4.3
+ espree: 10.4.0
+ globals: 14.0.0
+ ignore: 5.3.2
+ import-fresh: 3.3.1
+ js-yaml: 4.1.1
+ minimatch: 3.1.2
+ strip-json-comments: 3.1.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 0.17.0
+ levn: 0.4.1
+
+ dependencies:
+ react-hook-form: 7.62.0([email protected])
+
+ '@humanfs/[email protected]': {}
+
+ '@humanfs/[email protected]':
+ dependencies:
+ '@humanfs/core': 0.19.1
+ '@humanwhocodes/retry': 0.4.3
+
+ '@humanwhocodes/[email protected]': {}
+
+ '@humanwhocodes/[email protected]': {}
+
+ dependencies:
+ '@iconify/types': 2.0.0
+ react: 18.3.1
+
+ '@iconify/[email protected]':
+ dependencies:
+ '@iconify/types': 2.0.0
+ '@iconify/utils': 2.3.0
+ cheerio: 1.1.2
+ domhandler: 5.0.3
+ extract-zip: 2.0.1
+ local-pkg: 1.1.2
+ pathe: 2.0.3
+ svgo: 3.3.2
+ tar: 7.5.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@iconify/[email protected]': {}
+
+ '@iconify/[email protected]':
+ dependencies:
+ '@antfu/install-pkg': 1.1.0
+ '@antfu/utils': 8.1.1
+ '@iconify/types': 2.0.0
+ debug: 4.4.3
+ globals: 15.15.0
+ kolorist: 1.8.0
+ local-pkg: 1.1.2
+ mlly: 1.8.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@isaacs/[email protected]':
+ dependencies:
+ string-width: 5.1.2
+ string-width-cjs: [email protected]
+ strip-ansi: 7.1.2
+ strip-ansi-cjs: [email protected]
+ wrap-ansi: 8.1.0
+ wrap-ansi-cjs: [email protected]
+
+ '@isaacs/[email protected]':
+ dependencies:
+ minipass: 7.1.2
+
+ '@istanbuljs/[email protected]': {}
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/[email protected]': {}
+
+ '@jridgewell/[email protected]': {}
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.2
+ '@jridgewell/sourcemap-codec': 1.5.5
+
+ '@juggle/[email protected]': {}
+
+ '@napi-rs/[email protected]':
+ dependencies:
+ '@emnapi/core': 1.7.1
+ '@emnapi/runtime': 1.7.1
+ '@tybys/wasm-util': 0.10.1
+ optional: true
+
+ dependencies:
+ webpack-bundle-analyzer: 4.10.1
+ transitivePeerDependencies:
+ - bufferutil
+ - utf-8-validate
+
+ '@next/[email protected]': {}
+
+ dependencies:
+ fast-glob: 3.3.1
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ '@nodelib/[email protected]':
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ run-parallel: 1.2.0
+
+ '@nodelib/[email protected]': {}
+
+ '@nodelib/[email protected]':
+ dependencies:
+ '@nodelib/fs.scandir': 2.1.5
+ fastq: 1.20.1
+
+ '@nolyfill/[email protected]': {}
+
+ '@pkgjs/[email protected]':
+ optional: true
+
+ '@polka/[email protected]': {}
+
+ '@rc-component/[email protected]':
+ dependencies:
+ '@babel/runtime': 7.28.4
+
+ dependencies:
+ '@ant-design/fast-color': 2.0.6
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ '@rc-component/[email protected]':
+ dependencies:
+ '@babel/runtime': 7.28.4
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
+ '@rc-component/trigger': 2.3.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ is-mobile: 5.0.0
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ react-is: 18.3.1
+
+ dependencies:
+ immer: 9.0.21
+ redux: 4.2.1
+ redux-thunk: 2.4.2([email protected])
+ reselect: 4.1.8
+ optionalDependencies:
+ react: 18.3.1
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rtsao/[email protected]': {}
+
+ '@swc/[email protected]': {}
+
+ dependencies:
+ '@swc/counter': 0.1.3
+ tslib: 2.8.1
+
+ '@trysound/[email protected]': {}
+
+ '@tybys/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@types/[email protected]': {}
+
+ dependencies:
+ '@types/react': 18.3.24
+ hoist-non-react-statics: 3.3.2
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ '@types/lodash': 4.17.21
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 6.21.0
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ dependencies:
+ '@types/react': 18.3.24
+ optional: true
+
+ '@types/[email protected]':
+ dependencies:
+ '@types/prop-types': 15.7.15
+ csstype: 3.1.3
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ '@types/node': 20.19.27
+ optional: true
+
+ dependencies:
+ '@eslint-community/regexpp': 4.12.2
+ '@typescript-eslint/parser': 8.50.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/scope-manager': 8.50.1
+ '@typescript-eslint/type-utils': 8.50.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.50.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/visitor-keys': 8.50.1
+ eslint: 9.39.2([email protected])
+ ignore: 7.0.5
+ natural-compare: 1.4.0
+ ts-api-utils: 2.1.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@typescript-eslint/scope-manager': 8.50.1
+ '@typescript-eslint/types': 8.50.1
+ '@typescript-eslint/typescript-estree': 8.50.1([email protected])
+ '@typescript-eslint/visitor-keys': 8.50.1
+ debug: 4.4.3
+ eslint: 9.39.2([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ '@typescript-eslint/tsconfig-utils': 8.50.1([email protected])
+ '@typescript-eslint/types': 8.50.1
+ debug: 4.4.3
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.50.1
+ '@typescript-eslint/visitor-keys': 8.50.1
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ typescript: 5.9.3
+
+ dependencies:
+ '@typescript-eslint/types': 8.50.1
+ '@typescript-eslint/typescript-estree': 8.50.1([email protected])
+ '@typescript-eslint/utils': 8.50.1([email protected]([email protected]))([email protected])
+ debug: 4.4.3
+ eslint: 9.39.2([email protected])
+ ts-api-utils: 2.1.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]': {}
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ '@typescript-eslint/project-service': 8.50.1([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.50.1([email protected])
+ '@typescript-eslint/types': 8.50.1
+ '@typescript-eslint/visitor-keys': 8.50.1
+ debug: 4.4.3
+ minimatch: 9.0.5
+ semver: 7.7.3
+ tinyglobby: 0.2.15
+ ts-api-utils: 2.1.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@eslint-community/eslint-utils': 4.9.0([email protected]([email protected]))
+ '@typescript-eslint/scope-manager': 8.50.1
+ '@typescript-eslint/types': 8.50.1
+ '@typescript-eslint/typescript-estree': 8.50.1([email protected])
+ eslint: 9.39.2([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.50.1
+ eslint-visitor-keys: 4.2.1
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ '@napi-rs/wasm-runtime': 0.2.12
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ '@ampproject/remapping': 2.3.0
+ '@bcoe/v8-coverage': 0.2.3
+ debug: 4.4.3
+ istanbul-lib-coverage: 3.2.2
+ istanbul-lib-report: 3.0.1
+ istanbul-lib-source-maps: 5.0.6
+ istanbul-reports: 3.2.0
+ magic-string: 0.30.21
+ magicast: 0.3.5
+ std-env: 3.10.0
+ test-exclude: 7.0.1
+ tinyrainbow: 1.2.0
+ vitest: 2.1.9(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/spy': 2.1.9
+ '@vitest/utils': 2.1.9
+ chai: 5.3.3
+ tinyrainbow: 1.2.0
+
+ dependencies:
+ '@vitest/spy': 2.1.9
+ estree-walker: 3.0.3
+ magic-string: 0.30.21
+ optionalDependencies:
+ vite: 5.4.21(@types/[email protected])
+
+ '@vitest/[email protected]':
+ dependencies:
+ tinyrainbow: 1.2.0
+
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/utils': 2.1.9
+ pathe: 1.1.2
+
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/pretty-format': 2.1.9
+ magic-string: 0.30.21
+ pathe: 1.1.2
+
+ '@vitest/[email protected]':
+ dependencies:
+ tinyspy: 3.0.2
+
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/pretty-format': 2.1.9
+ loupe: 3.2.1
+ tinyrainbow: 1.2.0
+
+ '@xobotyi/[email protected]': {}
+
+ dependencies:
+ acorn: 8.15.0
+
+ dependencies:
+ acorn: 8.15.0
+
+
+
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-json-stable-stringify: 2.1.0
+ json-schema-traverse: 0.4.1
+ uri-js: 4.4.1
+
+
+
+ dependencies:
+ color-convert: 2.0.1
+
+
+ dependencies:
+ '@ant-design/colors': 7.2.1
+ '@ant-design/cssinjs': 1.24.0([email protected]([email protected]))([email protected])
+ '@ant-design/cssinjs-utils': 1.1.3([email protected]([email protected]))([email protected])
+ '@ant-design/fast-color': 2.0.6
+ '@ant-design/react-slick': 1.1.2([email protected])
+ '@babel/runtime': 7.28.4
+ '@rc-component/color-picker': 2.0.1([email protected]([email protected]))([email protected])
+ '@rc-component/mutate-observer': 1.1.0([email protected]([email protected]))([email protected])
+ '@rc-component/qrcode': 1.0.0([email protected]([email protected]))([email protected])
+ '@rc-component/tour': 1.15.1([email protected]([email protected]))([email protected])
+ '@rc-component/trigger': 2.3.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ copy-to-clipboard: 3.3.3
+ dayjs: 1.11.18
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ scroll-into-view-if-needed: 3.1.0
+ throttle-debounce: 5.0.2
+ transitivePeerDependencies:
+ - date-fns
+ - luxon
+ - moment
+
+
+ dependencies:
+ normalize-path: 3.0.0
+ picomatch: 2.3.1
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ is-array-buffer: 3.0.5
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-object-atoms: 1.1.1
+ get-intrinsic: 1.3.0
+ is-string: 1.1.1
+ math-intrinsics: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ array-buffer-byte-length: 1.0.2
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ is-array-buffer: 3.0.5
+
+
+
+
+
+ dependencies:
+ browserslist: 4.28.1
+ caniuse-lite: 1.0.30001761
+ fraction.js: 5.3.4
+ picocolors: 1.1.1
+ postcss: 8.5.6
+ postcss-value-parser: 4.2.0
+
+ dependencies:
+ possible-typed-array-names: 1.1.0
+
+
+ dependencies:
+ follow-redirects: 1.15.11
+ form-data: 4.0.4
+ proxy-from-env: 1.1.0
+ transitivePeerDependencies:
+ - debug
+
+
+
+
+
+
+ dependencies:
+ balanced-match: 1.0.2
+ concat-map: 0.0.1
+
+ dependencies:
+ balanced-match: 1.0.2
+
+ dependencies:
+ fill-range: 7.1.1
+
+ dependencies:
+ baseline-browser-mapping: 2.9.11
+ caniuse-lite: 1.0.30001761
+ electron-to-chromium: 1.5.267
+ node-releases: 2.0.27
+ update-browserslist-db: 1.2.3([email protected])
+
+
+ dependencies:
+ streamsearch: 1.1.0
+
+
+ dependencies:
+ es-errors: 1.3.0
+ function-bind: 1.1.2
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-define-property: 1.0.1
+ get-intrinsic: 1.3.0
+ set-function-length: 1.2.2
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ get-intrinsic: 1.3.0
+
+
+
+
+
+ dependencies:
+ assertion-error: 2.0.1
+ check-error: 2.1.1
+ deep-eql: 5.0.2
+ loupe: 3.2.1
+ pathval: 2.0.1
+
+ dependencies:
+ ansi-styles: 4.3.0
+ supports-color: 7.2.0
+
+
+ dependencies:
+ boolbase: 1.0.0
+ css-select: 5.2.2
+ css-what: 6.2.2
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ domutils: 3.2.2
+
+ dependencies:
+ cheerio-select: 2.1.0
+ dom-serializer: 2.0.0
+ domhandler: 5.0.3
+ domutils: 3.2.2
+ encoding-sniffer: 0.2.1
+ htmlparser2: 10.0.0
+ parse5: 7.3.0
+ parse5-htmlparser2-tree-adapter: 7.1.0
+ parse5-parser-stream: 7.1.2
+ undici: 7.16.0
+ whatwg-mimetype: 4.0.0
+
+ dependencies:
+ anymatch: 3.1.3
+ braces: 3.0.3
+ glob-parent: 5.1.2
+ is-binary-path: 2.1.0
+ is-glob: 4.0.3
+ normalize-path: 3.0.0
+ readdirp: 3.6.0
+ optionalDependencies:
+ fsevents: 2.3.3
+
+
+
+
+
+
+ dependencies:
+ color-name: 1.1.4
+
+
+ dependencies:
+ delayed-stream: 1.0.0
+
+
+
+
+
+
+
+
+ dependencies:
+ toggle-selection: 1.0.6
+
+ dependencies:
+ path-key: 3.1.1
+ shebang-command: 2.0.0
+ which: 2.0.2
+
+ dependencies:
+ hyphenate-style-name: 1.1.0
+
+ dependencies:
+ boolbase: 1.0.0
+ css-what: 6.2.2
+ domhandler: 5.0.3
+ domutils: 3.2.2
+ nth-check: 2.1.1
+
+ dependencies:
+ mdn-data: 2.0.14
+ source-map: 0.6.1
+
+ dependencies:
+ mdn-data: 2.0.28
+ source-map-js: 1.2.1
+
+ dependencies:
+ mdn-data: 2.0.30
+ source-map-js: 1.2.1
+
+
+
+ dependencies:
+ css-tree: 2.2.1
+
+ dependencies:
+ '@asamuzakjp/css-color': 3.2.0
+ rrweb-cssom: 0.8.0
+
+
+
+ dependencies:
+ whatwg-mimetype: 4.0.0
+ whatwg-url: 14.2.0
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+
+
+ dependencies:
+ ms: 2.1.3
+
+ dependencies:
+ ms: 2.1.3
+
+
+
+
+ dependencies:
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ gopd: 1.2.0
+
+ dependencies:
+ define-data-property: 1.1.4
+ has-property-descriptors: 1.0.2
+ object-keys: 1.1.1
+
+
+
+
+ dependencies:
+ esutils: 2.0.3
+
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ entities: 4.5.0
+
+
+ dependencies:
+ domelementtype: 2.3.0
+
+ dependencies:
+ dom-serializer: 2.0.0
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-errors: 1.3.0
+ gopd: 1.2.0
+
+
+
+
+
+
+ dependencies:
+ iconv-lite: 0.6.3
+ whatwg-encoding: 3.1.1
+
+ dependencies:
+ once: 1.4.0
+
+
+
+ dependencies:
+ commander: 4.1.1
+ cross-spawn: 7.0.6
+
+ dependencies:
+ stackframe: 1.3.4
+
+ dependencies:
+ array-buffer-byte-length: 1.0.2
+ arraybuffer.prototype.slice: 1.0.4
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ data-view-buffer: 1.0.2
+ data-view-byte-length: 1.0.2
+ data-view-byte-offset: 1.0.1
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ es-set-tostringtag: 2.1.0
+ es-to-primitive: 1.3.0
+ function.prototype.name: 1.1.8
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ get-symbol-description: 1.1.0
+ globalthis: 1.0.4
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+ has-proto: 1.2.0
+ has-symbols: 1.1.0
+ hasown: 2.0.2
+ internal-slot: 1.1.0
+ is-array-buffer: 3.0.5
+ is-callable: 1.2.7
+ is-data-view: 1.0.2
+ is-negative-zero: 2.0.3
+ is-regex: 1.2.1
+ is-set: 2.0.3
+ is-shared-array-buffer: 1.0.4
+ is-string: 1.1.1
+ is-typed-array: 1.1.15
+ is-weakref: 1.1.1
+ math-intrinsics: 1.1.0
+ object-inspect: 1.13.4
+ object-keys: 1.1.1
+ object.assign: 4.1.7
+ own-keys: 1.0.1
+ regexp.prototype.flags: 1.5.4
+ safe-array-concat: 1.1.3
+ safe-push-apply: 1.0.0
+ safe-regex-test: 1.1.0
+ set-proto: 1.0.0
+ stop-iteration-iterator: 1.1.0
+ string.prototype.trim: 1.2.10
+ string.prototype.trimend: 1.0.9
+ string.prototype.trimstart: 1.0.8
+ typed-array-buffer: 1.0.3
+ typed-array-byte-length: 1.0.3
+ typed-array-byte-offset: 1.0.4
+ typed-array-length: 1.0.7
+ unbox-primitive: 1.1.0
+ which-typed-array: 1.1.19
+
+
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-set-tostringtag: 2.1.0
+ function-bind: 1.1.2
+ get-intrinsic: 1.3.0
+ globalthis: 1.0.4
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+ has-proto: 1.2.0
+ has-symbols: 1.1.0
+ internal-slot: 1.1.0
+ iterator.prototype: 1.1.5
+ safe-array-concat: 1.1.3
+
+
+ dependencies:
+ es-errors: 1.3.0
+
+ dependencies:
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ has-tostringtag: 1.0.2
+ hasown: 2.0.2
+
+ dependencies:
+ hasown: 2.0.2
+
+ dependencies:
+ is-callable: 1.2.7
+ is-date-object: 1.1.0
+ is-symbol: 1.1.1
+
+ optionalDependencies:
+ '@esbuild/aix-ppc64': 0.21.5
+ '@esbuild/android-arm': 0.21.5
+ '@esbuild/android-arm64': 0.21.5
+ '@esbuild/android-x64': 0.21.5
+ '@esbuild/darwin-arm64': 0.21.5
+ '@esbuild/darwin-x64': 0.21.5
+ '@esbuild/freebsd-arm64': 0.21.5
+ '@esbuild/freebsd-x64': 0.21.5
+ '@esbuild/linux-arm': 0.21.5
+ '@esbuild/linux-arm64': 0.21.5
+ '@esbuild/linux-ia32': 0.21.5
+ '@esbuild/linux-loong64': 0.21.5
+ '@esbuild/linux-mips64el': 0.21.5
+ '@esbuild/linux-ppc64': 0.21.5
+ '@esbuild/linux-riscv64': 0.21.5
+ '@esbuild/linux-s390x': 0.21.5
+ '@esbuild/linux-x64': 0.21.5
+ '@esbuild/netbsd-x64': 0.21.5
+ '@esbuild/openbsd-x64': 0.21.5
+ '@esbuild/sunos-x64': 0.21.5
+ '@esbuild/win32-arm64': 0.21.5
+ '@esbuild/win32-ia32': 0.21.5
+ '@esbuild/win32-x64': 0.21.5
+
+ optionalDependencies:
+ '@esbuild/aix-ppc64': 0.27.2
+ '@esbuild/android-arm': 0.27.2
+ '@esbuild/android-arm64': 0.27.2
+ '@esbuild/android-x64': 0.27.2
+ '@esbuild/darwin-arm64': 0.27.2
+ '@esbuild/darwin-x64': 0.27.2
+ '@esbuild/freebsd-arm64': 0.27.2
+ '@esbuild/freebsd-x64': 0.27.2
+ '@esbuild/linux-arm': 0.27.2
+ '@esbuild/linux-arm64': 0.27.2
+ '@esbuild/linux-ia32': 0.27.2
+ '@esbuild/linux-loong64': 0.27.2
+ '@esbuild/linux-mips64el': 0.27.2
+ '@esbuild/linux-ppc64': 0.27.2
+ '@esbuild/linux-riscv64': 0.27.2
+ '@esbuild/linux-s390x': 0.27.2
+ '@esbuild/linux-x64': 0.27.2
+ '@esbuild/netbsd-arm64': 0.27.2
+ '@esbuild/netbsd-x64': 0.27.2
+ '@esbuild/openbsd-arm64': 0.27.2
+ '@esbuild/openbsd-x64': 0.27.2
+ '@esbuild/openharmony-arm64': 0.27.2
+ '@esbuild/sunos-x64': 0.27.2
+ '@esbuild/win32-arm64': 0.27.2
+ '@esbuild/win32-ia32': 0.27.2
+ '@esbuild/win32-x64': 0.27.2
+
+
+
+ dependencies:
+ '@next/eslint-plugin-next': 16.0.6
+ eslint: 9.39.2([email protected])
+ eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
+ eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
+ eslint-plugin-react: 7.37.5([email protected]([email protected]))
+ eslint-plugin-react-hooks: 7.0.1([email protected]([email protected]))
+ globals: 16.4.0
+ optionalDependencies:
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - '@typescript-eslint/parser'
+ - eslint-import-resolver-webpack
+ - eslint-plugin-import-x
+ - supports-color
+
+ dependencies:
+ eslint: 9.39.2([email protected])
+
+ dependencies:
+ debug: 3.2.7
+ is-core-module: 2.16.1
+ resolve: 1.22.10
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@nolyfill/is-core-module': 1.0.39
+ debug: 4.4.3
+ eslint: 9.39.2([email protected])
+ get-tsconfig: 4.13.0
+ is-bun-module: 2.0.0
+ stable-hash: 0.0.5
+ tinyglobby: 0.2.15
+ unrs-resolver: 1.11.1
+ optionalDependencies:
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ debug: 3.2.7
+ optionalDependencies:
+ '@typescript-eslint/parser': 8.50.1([email protected]([email protected]))([email protected])
+ eslint: 9.39.2([email protected])
+ eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@rtsao/scc': 1.1.0
+ array-includes: 3.1.9
+ array.prototype.findlastindex: 1.2.6
+ array.prototype.flat: 1.3.3
+ array.prototype.flatmap: 1.3.3
+ debug: 3.2.7
+ doctrine: 2.1.0
+ eslint: 9.39.2([email protected])
+ eslint-import-resolver-node: 0.3.9
+ hasown: 2.0.2
+ is-core-module: 2.16.1
+ is-glob: 4.0.3
+ minimatch: 3.1.2
+ object.fromentries: 2.0.8
+ object.groupby: 1.0.3
+ object.values: 1.2.1
+ semver: 6.3.1
+ string.prototype.trimend: 1.0.9
+ tsconfig-paths: 3.15.0
+ optionalDependencies:
+ '@typescript-eslint/parser': 8.50.1([email protected]([email protected]))([email protected])
+ transitivePeerDependencies:
+ - eslint-import-resolver-typescript
+ - eslint-import-resolver-webpack
+ - supports-color
+
+ dependencies:
+ aria-query: 5.3.2
+ array-includes: 3.1.9
+ array.prototype.flatmap: 1.3.3
+ ast-types-flow: 0.0.8
+ axe-core: 4.11.0
+ axobject-query: 4.1.0
+ damerau-levenshtein: 1.0.8
+ emoji-regex: 9.2.2
+ eslint: 9.39.2([email protected])
+ hasown: 2.0.2
+ jsx-ast-utils: 3.3.5
+ language-tags: 1.0.9
+ minimatch: 3.1.2
+ object.fromentries: 2.0.8
+ safe-regex-test: 1.1.0
+ string.prototype.includes: 2.0.1
+
+ dependencies:
+ '@babel/core': 7.28.5
+ '@babel/parser': 7.28.4
+ eslint: 9.39.2([email protected])
+ hermes-parser: 0.25.1
+ zod: 4.2.1
+ zod-validation-error: 4.0.2([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ array-includes: 3.1.9
+ array.prototype.findlast: 1.2.5
+ array.prototype.flatmap: 1.3.3
+ array.prototype.tosorted: 1.1.4
+ doctrine: 2.1.0
+ es-iterator-helpers: 1.2.2
+ eslint: 9.39.2([email protected])
+ estraverse: 5.3.0
+ hasown: 2.0.2
+ jsx-ast-utils: 3.3.5
+ minimatch: 3.1.2
+ object.entries: 1.1.9
+ object.fromentries: 2.0.8
+ object.values: 1.2.1
+ prop-types: 15.8.1
+ resolve: 2.0.0-next.5
+ semver: 6.3.1
+ string.prototype.matchall: 4.0.12
+ string.prototype.repeat: 1.0.0
+
+ dependencies:
+ esrecurse: 4.3.0
+ estraverse: 5.3.0
+
+
+
+ dependencies:
+ '@eslint-community/eslint-utils': 4.9.0([email protected]([email protected]))
+ '@eslint-community/regexpp': 4.12.2
+ '@eslint/config-array': 0.21.1
+ '@eslint/config-helpers': 0.4.2
+ '@eslint/core': 0.17.0
+ '@eslint/eslintrc': 3.3.3
+ '@eslint/js': 9.39.2
+ '@eslint/plugin-kit': 0.4.1
+ '@humanfs/node': 0.16.7
+ '@humanwhocodes/module-importer': 1.0.1
+ '@humanwhocodes/retry': 0.4.3
+ '@types/estree': 1.0.8
+ ajv: 6.12.6
+ chalk: 4.1.2
+ cross-spawn: 7.0.6
+ debug: 4.4.3
+ escape-string-regexp: 4.0.0
+ eslint-scope: 8.4.0
+ eslint-visitor-keys: 4.2.1
+ espree: 10.4.0
+ esquery: 1.6.0
+ esutils: 2.0.3
+ fast-deep-equal: 3.1.3
+ file-entry-cache: 8.0.0
+ find-up: 5.0.0
+ glob-parent: 6.0.2
+ ignore: 5.3.2
+ imurmurhash: 0.1.4
+ is-glob: 4.0.3
+ json-stable-stringify-without-jsonify: 1.0.1
+ lodash.merge: 4.6.2
+ minimatch: 3.1.2
+ natural-compare: 1.4.0
+ optionator: 0.9.4
+ optionalDependencies:
+ jiti: 1.21.7
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ acorn: 8.15.0
+ acorn-jsx: 5.3.2([email protected])
+ eslint-visitor-keys: 4.2.1
+
+ dependencies:
+ estraverse: 5.3.0
+
+ dependencies:
+ estraverse: 5.3.0
+
+
+ dependencies:
+ '@types/estree': 1.0.8
+
+
+
+
+ dependencies:
+ debug: 4.4.3
+ get-stream: 5.2.0
+ yauzl: 2.10.0
+ optionalDependencies:
+ '@types/yauzl': 2.10.3
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ '@nodelib/fs.walk': 1.2.8
+ glob-parent: 5.1.2
+ merge2: 1.4.1
+ micromatch: 4.0.8
+
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ '@nodelib/fs.walk': 1.2.8
+ glob-parent: 5.1.2
+ merge2: 1.4.1
+ micromatch: 4.0.8
+
+
+
+
+
+ dependencies:
+ reusify: 1.1.0
+
+ dependencies:
+ pend: 1.2.0
+
+ optionalDependencies:
+ picomatch: 4.0.3
+
+ dependencies:
+ flat-cache: 4.0.1
+
+ dependencies:
+ to-regex-range: 5.0.1
+
+ dependencies:
+ locate-path: 6.0.0
+ path-exists: 4.0.0
+
+ dependencies:
+ flatted: 3.3.3
+ keyv: 4.5.4
+
+
+
+ dependencies:
+ is-callable: 1.2.7
+
+ dependencies:
+ cross-spawn: 7.0.6
+ signal-exit: 4.1.0
+
+ dependencies:
+ asynckit: 0.4.0
+ combined-stream: 1.0.8
+ es-set-tostringtag: 2.1.0
+ hasown: 2.0.2
+ mime-types: 2.1.35
+
+
+ optional: true
+
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ functions-have-names: 1.2.3
+ hasown: 2.0.2
+ is-callable: 1.2.7
+
+
+
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ function-bind: 1.1.2
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ has-symbols: 1.1.0
+ hasown: 2.0.2
+ math-intrinsics: 1.1.0
+
+ dependencies:
+ dunder-proto: 1.0.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ pump: 3.0.3
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+
+ dependencies:
+ resolve-pkg-maps: 1.0.0
+
+ dependencies:
+ is-glob: 4.0.3
+
+ dependencies:
+ is-glob: 4.0.3
+
+ dependencies:
+ foreground-child: 3.3.1
+ jackspeak: 3.4.3
+ minimatch: 9.0.5
+ minipass: 7.1.2
+ package-json-from-dist: 1.0.1
+ path-scurry: 1.11.1
+
+
+
+
+ dependencies:
+ define-properties: 1.2.1
+ gopd: 1.2.0
+
+ dependencies:
+ csstype: 3.1.3
+
+
+
+ dependencies:
+ duplexer: 0.1.2
+
+
+
+ dependencies:
+ es-define-property: 1.0.1
+
+ dependencies:
+ dunder-proto: 1.0.1
+
+
+ dependencies:
+ has-symbols: 1.1.0
+
+ dependencies:
+ function-bind: 1.1.2
+
+
+ dependencies:
+ hermes-estree: 0.25.1
+
+ dependencies:
+ react-is: 16.13.1
+
+ dependencies:
+ whatwg-encoding: 3.1.1
+
+
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ domutils: 3.2.2
+ entities: 6.0.1
+
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ safer-buffer: 2.1.2
+
+
+
+
+ dependencies:
+ parent-module: 1.0.1
+ resolve-from: 4.0.0
+
+
+ dependencies:
+ css-in-js-utils: 3.1.0
+
+ dependencies:
+ es-errors: 1.3.0
+ hasown: 2.0.2
+ side-channel: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+
+ dependencies:
+ async-function: 1.0.0
+ call-bound: 1.0.4
+ get-proto: 1.0.1
+ has-tostringtag: 1.0.2
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ has-bigints: 1.1.0
+
+ dependencies:
+ binary-extensions: 2.3.0
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ semver: 7.7.3
+
+
+ dependencies:
+ hasown: 2.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+
+ dependencies:
+ call-bound: 1.0.4
+ generator-function: 2.0.1
+ get-proto: 1.0.1
+ has-tostringtag: 1.0.2
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ is-extglob: 2.1.1
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ gopd: 1.2.0
+ has-tostringtag: 1.0.2
+ hasown: 2.0.2
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ has-symbols: 1.1.0
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ which-typed-array: 1.1.19
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+ dependencies:
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+
+
+
+
+ dependencies:
+ istanbul-lib-coverage: 3.2.2
+ make-dir: 4.0.0
+ supports-color: 7.2.0
+
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.31
+ debug: 4.4.3
+ istanbul-lib-coverage: 3.2.2
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ html-escaper: 2.0.2
+ istanbul-lib-report: 3.0.1
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-object-atoms: 1.1.1
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ has-symbols: 1.1.0
+ set-function-name: 2.0.2
+
+ dependencies:
+ '@isaacs/cliui': 8.0.2
+ optionalDependencies:
+ '@pkgjs/parseargs': 0.11.0
+
+
+
+
+ dependencies:
+ argparse: 2.0.1
+
+ dependencies:
+ cssstyle: 4.6.0
+ data-urls: 5.0.0
+ decimal.js: 10.6.0
+ form-data: 4.0.4
+ html-encoding-sniffer: 4.0.0
+ http-proxy-agent: 7.0.2
+ https-proxy-agent: 7.0.6
+ is-potential-custom-element-name: 1.0.1
+ nwsapi: 2.2.23
+ parse5: 7.3.0
+ rrweb-cssom: 0.7.1
+ saxes: 6.0.0
+ symbol-tree: 3.2.4
+ tough-cookie: 4.1.4
+ w3c-xmlserializer: 5.0.0
+ webidl-conversions: 7.0.0
+ whatwg-encoding: 3.1.1
+ whatwg-mimetype: 4.0.0
+ whatwg-url: 14.2.0
+ ws: 8.18.3
+ xml-name-validator: 5.0.0
+ transitivePeerDependencies:
+ - bufferutil
+ - supports-color
+ - utf-8-validate
+
+
+
+
+
+ dependencies:
+ string-convert: 0.2.1
+
+ dependencies:
+ minimist: 1.2.8
+
+
+ dependencies:
+ array-includes: 3.1.9
+ array.prototype.flat: 1.3.3
+ object.assign: 4.1.7
+ object.values: 1.2.1
+
+
+ dependencies:
+ json-buffer: 3.0.1
+
+
+
+ dependencies:
+ language-subtag-registry: 0.3.23
+
+ dependencies:
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+
+
+
+ dependencies:
+ mlly: 1.8.0
+ pkg-types: 2.3.0
+ quansync: 0.2.11
+
+ dependencies:
+ p-locate: 5.0.0
+
+
+
+ dependencies:
+ js-tokens: 4.0.0
+
+
+
+ dependencies:
+ yallist: 3.1.1
+
+ dependencies:
+ react: 18.3.1
+
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+
+ dependencies:
+ '@babel/parser': 7.28.4
+ '@babel/types': 7.28.4
+ source-map-js: 1.2.1
+
+ dependencies:
+ semver: 7.7.3
+
+
+
+
+
+
+ dependencies:
+ braces: 3.0.3
+ picomatch: 2.3.1
+
+
+ dependencies:
+ mime-db: 1.52.0
+
+ dependencies:
+ brace-expansion: 1.1.12
+
+ dependencies:
+ brace-expansion: 2.0.2
+
+
+
+ dependencies:
+ minipass: 7.1.2
+
+ dependencies:
+ acorn: 8.15.0
+ pathe: 2.0.3
+ pkg-types: 1.3.1
+ ufo: 1.6.1
+
+
+
+ dependencies:
+ any-promise: 1.3.0
+ object-assign: 4.1.1
+ thenify-all: 1.6.0
+
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+ css-tree: 1.1.3
+ csstype: 3.1.3
+ fastest-stable-stringify: 2.0.2
+ inline-style-prefixer: 7.0.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ rtl-css-js: 1.16.1
+ stacktrace-js: 2.0.2
+ stylis: 4.3.6
+
+
+
+
+ dependencies:
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@next/env': 14.2.32
+ '@swc/helpers': 0.5.5
+ busboy: 1.6.0
+ caniuse-lite: 1.0.30001743
+ graceful-fs: 4.2.11
+ postcss: 8.4.31
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ styled-jsx: 5.1.1(@babel/[email protected])([email protected])
+ optionalDependencies:
+ '@next/swc-darwin-arm64': 14.2.32
+ '@next/swc-darwin-x64': 14.2.32
+ '@next/swc-linux-arm64-gnu': 14.2.32
+ '@next/swc-linux-arm64-musl': 14.2.32
+ '@next/swc-linux-x64-gnu': 14.2.32
+ '@next/swc-linux-x64-musl': 14.2.32
+ '@next/swc-win32-arm64-msvc': 14.2.32
+ '@next/swc-win32-ia32-msvc': 14.2.32
+ '@next/swc-win32-x64-msvc': 14.2.32
+ transitivePeerDependencies:
+ - '@babel/core'
+ - babel-plugin-macros
+
+
+
+
+ dependencies:
+ boolbase: 1.0.0
+
+
+
+
+
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+ has-symbols: 1.1.0
+ object-keys: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ jwt-decode: 4.0.0
+
+ dependencies:
+ wrappy: 1.0.2
+
+
+ dependencies:
+ deep-is: 0.1.4
+ fast-levenshtein: 2.0.6
+ levn: 0.4.1
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+ word-wrap: 1.2.5
+
+ dependencies:
+ get-intrinsic: 1.3.0
+ object-keys: 1.1.1
+ safe-push-apply: 1.0.0
+
+ dependencies:
+ yocto-queue: 0.1.0
+
+ dependencies:
+ p-limit: 3.1.0
+
+
+
+ dependencies:
+ callsites: 3.1.0
+
+ dependencies:
+ domhandler: 5.0.3
+ parse5: 7.3.0
+
+ dependencies:
+ parse5: 7.3.0
+
+ dependencies:
+ entities: 6.0.1
+
+
+
+
+ dependencies:
+ lru-cache: 10.4.3
+ minipass: 7.1.2
+
+
+
+
+
+
+
+
+
+
+ dependencies:
+ confbox: 0.1.8
+ mlly: 1.8.0
+ pathe: 2.0.3
+
+ dependencies:
+ confbox: 0.2.2
+ exsolve: 1.0.8
+ pathe: 2.0.3
+
+
+ dependencies:
+ postcss: 8.5.6
+ postcss-value-parser: 4.2.0
+ read-cache: 1.0.0
+ resolve: 1.22.10
+
+ dependencies:
+ camelcase-css: 2.0.1
+ postcss: 8.5.6
+
+ dependencies:
+ lilconfig: 3.1.3
+ optionalDependencies:
+ jiti: 1.21.7
+ postcss: 8.5.6
+ tsx: 4.21.0
+
+ dependencies:
+ postcss: 8.5.6
+ postcss-selector-parser: 6.1.2
+
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+
+
+ dependencies:
+ nanoid: 3.3.11
+ picocolors: 1.1.1
+ source-map-js: 1.2.1
+
+ dependencies:
+ nanoid: 3.3.11
+ picocolors: 1.1.1
+ source-map-js: 1.2.1
+
+
+
+ dependencies:
+ loose-envify: 1.4.0
+ object-assign: 4.1.1
+ react-is: 16.13.1
+
+
+
+ dependencies:
+ punycode: 2.3.1
+
+ dependencies:
+ end-of-stream: 1.4.5
+ once: 1.4.0
+
+
+ dependencies:
+ side-channel: 1.1.0
+
+
+
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/trigger': 2.3.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/async-validator': 5.0.4
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/mini-decimal': 1.1.0
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/trigger': 2.3.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/trigger': 2.3.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/trigger': 2.3.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ dayjs: 1.11.18
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ resize-observer-polyfill: 1.5.1
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/trigger': 2.3.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/context': 1.4.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@rc-component/trigger': 2.3.0([email protected]([email protected]))([email protected])
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ react-is: 18.3.1
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ classnames: 2.5.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ loose-envify: 1.4.0
+ react: 18.3.1
+ scheduler: 0.23.2
+
+ dependencies:
+ clsx: 2.1.1
+ prop-types: 15.8.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ react: 18.3.1
+
+ dependencies:
+ csstype: 3.1.3
+ goober: 2.1.16([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@types/hoist-non-react-statics': 3.3.7(@types/[email protected])
+ '@types/use-sync-external-store': 0.0.3
+ hoist-non-react-statics: 3.3.2
+ react: 18.3.1
+ react-is: 18.3.1
+ use-sync-external-store: 1.5.0([email protected])
+ optionalDependencies:
+ '@types/react': 18.3.24
+ '@types/react-dom': 18.3.7(@types/[email protected])
+ react-dom: 18.3.1([email protected])
+ redux: 4.2.1
+
+ dependencies:
+ prop-types: 15.8.1
+ react: 18.3.1
+ transitivePeerDependencies:
+ - react-dom
+
+ dependencies:
+ react: 18.3.1
+ tslib: 2.8.1
+
+ dependencies:
+ '@types/js-cookie': 2.2.7
+ '@xobotyi/scrollbar-width': 1.9.5
+ copy-to-clipboard: 3.3.3
+ fast-deep-equal: 3.1.3
+ fast-shallow-equal: 1.0.0
+ js-cookie: 2.2.1
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ react-universal-interface: 0.6.2([email protected])([email protected])
+ resize-observer-polyfill: 1.5.1
+ screenfull: 5.2.0
+ set-harmonic-interval: 1.0.1
+ throttle-debounce: 3.0.1
+ ts-easing: 0.2.0
+ tslib: 2.8.1
+
+ dependencies:
+ loose-envify: 1.4.0
+
+ dependencies:
+ pify: 2.3.0
+
+ dependencies:
+ picomatch: 2.3.1
+
+ dependencies:
+ redux: 4.2.1
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ which-builtin-type: 1.2.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-errors: 1.3.0
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ set-function-name: 2.0.2
+
+
+
+
+
+
+ dependencies:
+ is-core-module: 2.16.1
+ path-parse: 1.0.7
+ supports-preserve-symlinks-flag: 1.0.0
+
+ dependencies:
+ is-core-module: 2.16.1
+ path-parse: 1.0.7
+ supports-preserve-symlinks-flag: 1.0.0
+
+
+ dependencies:
+ '@types/estree': 1.0.8
+ optionalDependencies:
+ '@rollup/rollup-android-arm-eabi': 4.54.0
+ '@rollup/rollup-android-arm64': 4.54.0
+ '@rollup/rollup-darwin-arm64': 4.54.0
+ '@rollup/rollup-darwin-x64': 4.54.0
+ '@rollup/rollup-freebsd-arm64': 4.54.0
+ '@rollup/rollup-freebsd-x64': 4.54.0
+ '@rollup/rollup-linux-arm-gnueabihf': 4.54.0
+ '@rollup/rollup-linux-arm-musleabihf': 4.54.0
+ '@rollup/rollup-linux-arm64-gnu': 4.54.0
+ '@rollup/rollup-linux-arm64-musl': 4.54.0
+ '@rollup/rollup-linux-loong64-gnu': 4.54.0
+ '@rollup/rollup-linux-ppc64-gnu': 4.54.0
+ '@rollup/rollup-linux-riscv64-gnu': 4.54.0
+ '@rollup/rollup-linux-riscv64-musl': 4.54.0
+ '@rollup/rollup-linux-s390x-gnu': 4.54.0
+ '@rollup/rollup-linux-x64-gnu': 4.54.0
+ '@rollup/rollup-linux-x64-musl': 4.54.0
+ '@rollup/rollup-openharmony-arm64': 4.54.0
+ '@rollup/rollup-win32-arm64-msvc': 4.54.0
+ '@rollup/rollup-win32-ia32-msvc': 4.54.0
+ '@rollup/rollup-win32-x64-gnu': 4.54.0
+ '@rollup/rollup-win32-x64-msvc': 4.54.0
+ fsevents: 2.3.3
+
+
+
+ dependencies:
+ '@babel/runtime': 7.28.4
+
+ dependencies:
+ queue-microtask: 1.2.3
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+ has-symbols: 1.1.0
+ isarray: 2.0.5
+
+ dependencies:
+ es-errors: 1.3.0
+ isarray: 2.0.5
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-regex: 1.2.1
+
+
+ dependencies:
+ xmlchars: 2.2.0
+
+ dependencies:
+ loose-envify: 1.4.0
+
+
+ dependencies:
+ compute-scroll-into-view: 3.1.1
+
+
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-errors: 1.3.0
+ function-bind: 1.1.2
+ get-intrinsic: 1.3.0
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-errors: 1.3.0
+ functions-have-names: 1.2.3
+ has-property-descriptors: 1.0.2
+
+
+ dependencies:
+ dunder-proto: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ shebang-regex: 3.0.0
+
+
+ dependencies:
+ es-errors: 1.3.0
+ object-inspect: 1.13.4
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ object-inspect: 1.13.4
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ object-inspect: 1.13.4
+ side-channel-map: 1.0.1
+
+ dependencies:
+ es-errors: 1.3.0
+ object-inspect: 1.13.4
+ side-channel-list: 1.0.0
+ side-channel-map: 1.0.1
+ side-channel-weakmap: 1.0.2
+
+
+
+ dependencies:
+ '@polka/url': 1.0.0-next.29
+ mrmime: 2.0.1
+ totalist: 3.0.1
+
+
+
+
+
+ dependencies:
+ stackframe: 1.3.4
+
+
+
+ dependencies:
+ source-map: 0.5.6
+ stackframe: 1.3.4
+
+ dependencies:
+ error-stack-parser: 2.1.4
+ stack-generator: 2.0.10
+ stacktrace-gps: 3.1.2
+
+
+ dependencies:
+ es-errors: 1.3.0
+ internal-slot: 1.1.0
+
+
+
+ dependencies:
+ emoji-regex: 8.0.0
+ is-fullwidth-code-point: 3.0.0
+ strip-ansi: 6.0.1
+
+ dependencies:
+ eastasianwidth: 0.2.0
+ emoji-regex: 9.2.2
+ strip-ansi: 7.1.2
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ get-intrinsic: 1.3.0
+ gopd: 1.2.0
+ has-symbols: 1.1.0
+ internal-slot: 1.1.0
+ regexp.prototype.flags: 1.5.4
+ set-function-name: 2.0.2
+ side-channel: 1.1.0
+
+ dependencies:
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-data-property: 1.1.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-object-atoms: 1.1.1
+ has-property-descriptors: 1.0.2
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ ansi-regex: 5.0.1
+
+ dependencies:
+ ansi-regex: 6.2.2
+
+
+
+ dependencies:
+ client-only: 0.0.1
+ react: 18.3.1
+ optionalDependencies:
+ '@babel/core': 7.28.5
+
+
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ commander: 4.1.1
+ lines-and-columns: 1.2.4
+ mz: 2.7.0
+ pirates: 4.0.7
+ tinyglobby: 0.2.15
+ ts-interface-checker: 0.1.13
+
+ dependencies:
+ has-flag: 4.0.0
+
+
+ dependencies:
+ '@trysound/sax': 0.2.0
+ commander: 7.2.0
+ css-select: 5.2.2
+ css-tree: 2.3.1
+ css-what: 6.2.2
+ csso: 5.0.5
+ picocolors: 1.1.1
+
+
+
+ dependencies:
+ '@alloc/quick-lru': 5.2.0
+ arg: 5.0.2
+ chokidar: 3.6.0
+ didyoumean: 1.2.2
+ dlv: 1.1.3
+ fast-glob: 3.3.3
+ glob-parent: 6.0.2
+ is-glob: 4.0.3
+ jiti: 1.21.7
+ lilconfig: 3.1.3
+ micromatch: 4.0.8
+ normalize-path: 3.0.0
+ object-hash: 3.0.0
+ picocolors: 1.1.1
+ postcss: 8.5.6
+ postcss-import: 15.1.0([email protected])
+ postcss-js: 4.1.0([email protected])
+ postcss-nested: 6.2.0([email protected])
+ postcss-selector-parser: 6.1.2
+ resolve: 1.22.10
+ sucrase: 3.35.1
+ transitivePeerDependencies:
+ - tsx
+ - yaml
+
+ dependencies:
+ '@isaacs/fs-minipass': 4.0.1
+ chownr: 3.0.0
+ minipass: 7.1.2
+ minizlib: 3.1.0
+ yallist: 5.0.0
+
+ dependencies:
+ '@istanbuljs/schema': 0.1.3
+ glob: 10.5.0
+ minimatch: 9.0.5
+
+ dependencies:
+ thenify: 3.3.1
+
+ dependencies:
+ any-promise: 1.3.0
+
+
+
+
+
+
+
+ dependencies:
+ fdir: 6.5.0([email protected])
+ picomatch: 4.0.3
+
+
+
+
+ dependencies:
+ is-number: 7.0.0
+
+
+
+
+ dependencies:
+ psl: 1.15.0
+ punycode: 2.3.1
+ universalify: 0.2.0
+ url-parse: 1.5.10
+
+ dependencies:
+ punycode: 2.3.1
+
+ dependencies:
+ typescript: 5.9.3
+
+
+
+ dependencies:
+ '@types/json5': 0.0.29
+ json5: 1.0.2
+ minimist: 1.2.8
+ strip-bom: 3.0.0
+
+
+ dependencies:
+ esbuild: 0.27.2
+ get-tsconfig: 4.13.0
+ optionalDependencies:
+ fsevents: 2.3.3
+
+ dependencies:
+ prelude-ls: 1.2.1
+
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ call-bind: 1.0.8
+ for-each: 0.3.5
+ gopd: 1.2.0
+ has-proto: 1.2.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.8
+ for-each: 0.3.5
+ gopd: 1.2.0
+ has-proto: 1.2.0
+ is-typed-array: 1.1.15
+ reflect.getprototypeof: 1.0.10
+
+ dependencies:
+ call-bind: 1.0.8
+ for-each: 0.3.5
+ gopd: 1.2.0
+ is-typed-array: 1.1.15
+ possible-typed-array-names: 1.1.0
+ reflect.getprototypeof: 1.0.10
+
+ dependencies:
+ '@typescript-eslint/parser': 8.50.1([email protected]([email protected]))([email protected])
+ '@typescript-eslint/typescript-estree': 8.50.1([email protected])
+ '@typescript-eslint/utils': 8.50.1([email protected]([email protected]))([email protected])
+ eslint: 9.39.2([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ has-bigints: 1.1.0
+ has-symbols: 1.1.0
+ which-boxed-primitive: 1.1.1
+
+
+
+
+ dependencies:
+ napi-postinstall: 0.3.4
+ optionalDependencies:
+ '@unrs/resolver-binding-android-arm-eabi': 1.11.1
+ '@unrs/resolver-binding-android-arm64': 1.11.1
+ '@unrs/resolver-binding-darwin-arm64': 1.11.1
+ '@unrs/resolver-binding-darwin-x64': 1.11.1
+ '@unrs/resolver-binding-freebsd-x64': 1.11.1
+ '@unrs/resolver-binding-linux-arm-gnueabihf': 1.11.1
+ '@unrs/resolver-binding-linux-arm-musleabihf': 1.11.1
+ '@unrs/resolver-binding-linux-arm64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-arm64-musl': 1.11.1
+ '@unrs/resolver-binding-linux-ppc64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-riscv64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-riscv64-musl': 1.11.1
+ '@unrs/resolver-binding-linux-s390x-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-x64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-x64-musl': 1.11.1
+ '@unrs/resolver-binding-wasm32-wasi': 1.11.1
+ '@unrs/resolver-binding-win32-arm64-msvc': 1.11.1
+ '@unrs/resolver-binding-win32-ia32-msvc': 1.11.1
+ '@unrs/resolver-binding-win32-x64-msvc': 1.11.1
+
+ dependencies:
+ browserslist: 4.28.1
+ escalade: 3.2.0
+ picocolors: 1.1.1
+
+ dependencies:
+ punycode: 2.3.1
+
+ dependencies:
+ querystringify: 2.2.0
+ requires-port: 1.0.0
+
+ dependencies:
+ '@juggle/resize-observer': 3.4.0
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
+ dependencies:
+ react: 18.3.1
+
+
+ dependencies:
+ cac: 6.7.14
+ debug: 4.4.3
+ es-module-lexer: 1.7.0
+ pathe: 1.1.2
+ vite: 5.4.21(@types/[email protected])
+ transitivePeerDependencies:
+ - '@types/node'
+ - less
+ - lightningcss
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+
+ dependencies:
+ esbuild: 0.21.5
+ postcss: 8.5.6
+ rollup: 4.54.0
+ optionalDependencies:
+ '@types/node': 20.19.27
+ fsevents: 2.3.3
+
+ dependencies:
+ '@vitest/expect': 2.1.9
+ '@vitest/mocker': 2.1.9([email protected](@types/[email protected]))
+ '@vitest/pretty-format': 2.1.9
+ '@vitest/runner': 2.1.9
+ '@vitest/snapshot': 2.1.9
+ '@vitest/spy': 2.1.9
+ '@vitest/utils': 2.1.9
+ chai: 5.3.3
+ debug: 4.4.3
+ expect-type: 1.3.0
+ magic-string: 0.30.21
+ pathe: 1.1.2
+ std-env: 3.10.0
+ tinybench: 2.9.0
+ tinyexec: 0.3.2
+ tinypool: 1.1.1
+ tinyrainbow: 1.2.0
+ vite: 5.4.21(@types/[email protected])
+ vite-node: 2.1.9(@types/[email protected])
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@types/node': 20.19.27
+ jsdom: 24.1.3
+ transitivePeerDependencies:
+ - less
+ - lightningcss
+ - msw
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+
+ dependencies:
+ xml-name-validator: 5.0.0
+
+
+ dependencies:
+ '@discoveryjs/json-ext': 0.5.7
+ acorn: 8.15.0
+ acorn-walk: 8.3.4
+ commander: 7.2.0
+ debounce: 1.2.1
+ escape-string-regexp: 4.0.0
+ gzip-size: 6.0.0
+ html-escaper: 2.0.2
+ is-plain-object: 5.0.0
+ opener: 1.5.2
+ picocolors: 1.1.1
+ sirv: 2.0.4
+ ws: 7.5.10
+ transitivePeerDependencies:
+ - bufferutil
+ - utf-8-validate
+
+ dependencies:
+ iconv-lite: 0.6.3
+
+
+ dependencies:
+ tr46: 5.1.1
+ webidl-conversions: 7.0.0
+
+ dependencies:
+ is-bigint: 1.1.0
+ is-boolean-object: 1.2.2
+ is-number-object: 1.1.1
+ is-string: 1.1.1
+ is-symbol: 1.1.1
+
+ dependencies:
+ call-bound: 1.0.4
+ function.prototype.name: 1.1.8
+ has-tostringtag: 1.0.2
+ is-async-function: 2.1.1
+ is-date-object: 1.1.0
+ is-finalizationregistry: 1.1.1
+ is-generator-function: 1.1.2
+ is-regex: 1.2.1
+ is-weakref: 1.1.1
+ isarray: 2.0.5
+ which-boxed-primitive: 1.1.1
+ which-collection: 1.0.2
+ which-typed-array: 1.1.19
+
+ dependencies:
+ is-map: 2.0.3
+ is-set: 2.0.3
+ is-weakmap: 2.0.2
+ is-weakset: 2.0.4
+
+ dependencies:
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ for-each: 0.3.5
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ isexe: 2.0.0
+
+ dependencies:
+ siginfo: 2.0.0
+ stackback: 0.0.2
+
+
+ dependencies:
+ ansi-styles: 4.3.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+
+ dependencies:
+ ansi-styles: 6.2.3
+ string-width: 5.1.2
+ strip-ansi: 7.1.2
+
+
+
+
+
+
+
+
+ dependencies:
+ buffer-crc32: 0.2.13
+ fd-slicer: 1.1.0
+
+
+ dependencies:
+ property-expr: 2.0.6
+ tiny-case: 1.0.3
+ toposort: 2.0.2
+ type-fest: 2.19.0
+
+ dependencies:
+ zod: 4.2.1
+
diff --git a/web-v2/web/postcss.config.js b/web-v2/web/postcss.config.js
new file mode 100644
index 0000000000..2a0e03a816
--- /dev/null
+++ b/web-v2/web/postcss.config.js
@@ -0,0 +1,25 @@
+/*
+ * 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.
+ */
+
+module.exports = {
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {}
+ }
+}
diff --git a/web-v2/web/public/icons/favicon.ico b/web-v2/web/public/icons/favicon.ico
new file mode 100644
index 0000000000..4e721cab6d
Binary files /dev/null and b/web-v2/web/public/icons/favicon.ico differ
diff --git a/web-v2/web/public/icons/git-fork.svg b/web-v2/web/public/icons/git-fork.svg
new file mode 100644
index 0000000000..0a1d780659
--- /dev/null
+++ b/web-v2/web/public/icons/git-fork.svg
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * 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.
+-->
+<svg fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="m17.4142 11.4142-.5303-.5303zm1.3358-3.4142c0-.41421-.3358-.75-.75-.75s-.75.33579-.75.75zm-12 0c0-.41421-.33579-.75-.75-.75s-.75.33579-.75.75zm-.16421 3.4142-.53033.5303zm6.16421.5858c0-.4142-.3358-.75-.75-.75s-.75.3358-.75.75zm-1.5 4c0 .4142.3358.75.75.75s.75-.3358.75-.75zm-1.25-3.25h4v-1.5h-4zm4 0c.9216 0 1.6883.0016 2.2945-.0799.6278-.0844 1.1946-.2701 1.65-.7256l-1.0606-1.0606c-.1303.1303-.3278.2375-.7893.2996-.483.0649-1.1306.0665-2.0946.0665zm3.25-4.75c0 .96401-.0016 1.61157-.0665 2.0946-.0621.4615-.1693.659-.2996.7893l1.0606 1.0606c.4555-.4554.6412-1.0222.7256-1.65.0815-.60624.0799-1.37289.0799-2.2945zm-12 0c0 .92161-.00159 1.68826.07991 2.2945.08441.6278.27008 1.1946.72555 1.65l1.06066-1.0606c-.13032-.1303-.23754-.3278-.29958-.7893-.06495-.48303-.06654-1.13059-.06654-2.0946zm4.75 3.25c-.96401 0-1.61157-.0016-2.09461-.0665-.46146-.0621-.65896-.1693-.78927-.2996l-1.06066 1.0606c.45547.4555 1.02227.6412 1.65006.7256.60622.0815 1.37287.0799 2.29448.0799zm1.25.75v4h1.5v-4z" fill="#141b34"/><g stroke="#141b34" stroke-width="1.5"><circle cx="6" cy="6" r="2"/><circle cx="12" cy="18" r="2"/><circle cx="18" cy="6" r="2"/></g></svg>
diff --git a/web-v2/web/public/icons/github-mark.svg b/web-v2/web/public/icons/github-mark.svg
new file mode 100644
index 0000000000..13ad84ec59
--- /dev/null
+++ b/web-v2/web/public/icons/github-mark.svg
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * 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.
+-->
+<svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>
diff --git a/web-v2/web/public/icons/gravitino.ico b/web-v2/web/public/icons/gravitino.ico
new file mode 100644
index 0000000000..4e721cab6d
Binary files /dev/null and b/web-v2/web/public/icons/gravitino.ico differ
diff --git a/web-v2/web/public/icons/gravitino.png b/web-v2/web/public/icons/gravitino.png
new file mode 100644
index 0000000000..fcc426f572
Binary files /dev/null and b/web-v2/web/public/icons/gravitino.png differ
diff --git a/web-v2/web/public/icons/gravitino.svg b/web-v2/web/public/icons/gravitino.svg
new file mode 100644
index 0000000000..c1ad3dfe54
--- /dev/null
+++ b/web-v2/web/public/icons/gravitino.svg
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * 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.
+-->
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 197.3 189.2">
+<g>
+ <path fill="#0369a1" d="M144.6,85.8L144.6,85.8h-27.4c-2.8-4.9-8.1-8.2-14.1-8.2c-9,0-16.4,7.3-16.4,16.4s7.3,16.4,16.4,16.4
+ c6.1,0,11.3-3.3,14.1-8.2h26.6c-3.8,19.2-20.7,33.7-41,33.7C79.8,135.8,61,117,61,94s18.8-41.8,41.8-41.8c11,0,21.4,4.2,29.3,12
+ c3.2,3.1,8.4,3.1,11.5-0.1s3.1-8.3-0.1-11.5c-10.9-10.7-25.4-16.6-40.7-16.6c-32,0-58.1,26.1-58.1,58.1s26.1,58.1,58.1,58.1
+ c29.3,0,53.6-21.8,57.5-49.9h20.3c-3.8,39.7-37.3,70.9-78,70.9c-20.9,0-40.6-8.1-55.4-22.9c-3.2-3.2-8.3-3.2-11.5,0
+ c-3.2,3.2-3.2,8.3,0,11.5c17.9,17.9,41.6,27.7,66.9,27.7c52.2,0,94.6-42.4,94.6-94.6l0-8.8L144.6,85.8L144.6,85.8z"/>
+ <path fill="#0369a1" d="M25.4,81.4c6.3-36.9,38.5-65.1,77.2-65.1c19.8,0,38.8,7.4,53.3,20.9c3.3,3.1,8.4,2.9,11.5-0.4
+ c3.1-3.3,2.9-8.4-0.4-11.5C149.5,9,126.6,0,102.6,0C55.3,0,15.9,35,9.1,80.4C3.7,83.1,0,88.6,0,95c0,9,7.3,16.4,16.4,16.4
+ s16.4-7.3,16.4-16.4C32.7,89.3,29.8,84.3,25.4,81.4"/>
+</g>
+</svg>
diff --git a/web-v2/web/public/icons/gravitino_black.png b/web-v2/web/public/icons/gravitino_black.png
new file mode 100644
index 0000000000..b8e696ca74
Binary files /dev/null and b/web-v2/web/public/icons/gravitino_black.png differ
diff --git a/web-v2/web/public/icons/gravitino_black.svg b/web-v2/web/public/icons/gravitino_black.svg
new file mode 100644
index 0000000000..7b56c6000d
--- /dev/null
+++ b/web-v2/web/public/icons/gravitino_black.svg
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * 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.
+-->
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 197.3 189.2">
+<g>
+ <path fill="#000000" d="M144.6,85.8L144.6,85.8h-27.4c-2.8-4.9-8.1-8.2-14.1-8.2c-9,0-16.4,7.3-16.4,16.4s7.3,16.4,16.4,16.4
+ c6.1,0,11.3-3.3,14.1-8.2h26.6c-3.8,19.2-20.7,33.7-41,33.7C79.8,135.8,61,117,61,94s18.8-41.8,41.8-41.8c11,0,21.4,4.2,29.3,12
+ c3.2,3.1,8.4,3.1,11.5-0.1s3.1-8.3-0.1-11.5c-10.9-10.7-25.4-16.6-40.7-16.6c-32,0-58.1,26.1-58.1,58.1s26.1,58.1,58.1,58.1
+ c29.3,0,53.6-21.8,57.5-49.9h20.3c-3.8,39.7-37.3,70.9-78,70.9c-20.9,0-40.6-8.1-55.4-22.9c-3.2-3.2-8.3-3.2-11.5,0
+ c-3.2,3.2-3.2,8.3,0,11.5c17.9,17.9,41.6,27.7,66.9,27.7c52.2,0,94.6-42.4,94.6-94.6l0-8.8L144.6,85.8L144.6,85.8z"/>
+ <path fill="#000000" d="M25.4,81.4c6.3-36.9,38.5-65.1,77.2-65.1c19.8,0,38.8,7.4,53.3,20.9c3.3,3.1,8.4,2.9,11.5-0.4
+ c3.1-3.3,2.9-8.4-0.4-11.5C149.5,9,126.6,0,102.6,0C55.3,0,15.9,35,9.1,80.4C3.7,83.1,0,88.6,0,95c0,9,7.3,16.4,16.4,16.4
+ s16.4-7.3,16.4-16.4C32.7,89.3,29.8,84.3,25.4,81.4"/>
+</g>
+</svg>
diff --git a/web-v2/web/public/icons/gravitino_old.svg b/web-v2/web/public/icons/gravitino_old.svg
new file mode 100644
index 0000000000..ff057083f9
--- /dev/null
+++ b/web-v2/web/public/icons/gravitino_old.svg
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * 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.
+-->
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 197.3 189.2">
+<g>
+ <path fill="#0911FD" d="M144.6,85.8L144.6,85.8h-27.4c-2.8-4.9-8.1-8.2-14.1-8.2c-9,0-16.4,7.3-16.4,16.4s7.3,16.4,16.4,16.4
+ c6.1,0,11.3-3.3,14.1-8.2h26.6c-3.8,19.2-20.7,33.7-41,33.7C79.8,135.8,61,117,61,94s18.8-41.8,41.8-41.8c11,0,21.4,4.2,29.3,12
+ c3.2,3.1,8.4,3.1,11.5-0.1s3.1-8.3-0.1-11.5c-10.9-10.7-25.4-16.6-40.7-16.6c-32,0-58.1,26.1-58.1,58.1s26.1,58.1,58.1,58.1
+ c29.3,0,53.6-21.8,57.5-49.9h20.3c-3.8,39.7-37.3,70.9-78,70.9c-20.9,0-40.6-8.1-55.4-22.9c-3.2-3.2-8.3-3.2-11.5,0
+ c-3.2,3.2-3.2,8.3,0,11.5c17.9,17.9,41.6,27.7,66.9,27.7c52.2,0,94.6-42.4,94.6-94.6l0-8.8L144.6,85.8L144.6,85.8z"/>
+ <path fill="#0911FD" d="M25.4,81.4c6.3-36.9,38.5-65.1,77.2-65.1c19.8,0,38.8,7.4,53.3,20.9c3.3,3.1,8.4,2.9,11.5-0.4
+ c3.1-3.3,2.9-8.4-0.4-11.5C149.5,9,126.6,0,102.6,0C55.3,0,15.9,35,9.1,80.4C3.7,83.1,0,88.6,0,95c0,9,7.3,16.4,16.4,16.4
+ s16.4-7.3,16.4-16.4C32.7,89.3,29.8,84.3,25.4,81.4"/>
+</g>
+</svg>
diff --git a/web-v2/web/public/icons/gravitino_white.png b/web-v2/web/public/icons/gravitino_white.png
new file mode 100644
index 0000000000..401105ac7b
Binary files /dev/null and b/web-v2/web/public/icons/gravitino_white.png differ
diff --git a/web-v2/web/public/icons/gravitino_white.svg b/web-v2/web/public/icons/gravitino_white.svg
new file mode 100644
index 0000000000..371c88336d
--- /dev/null
+++ b/web-v2/web/public/icons/gravitino_white.svg
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * 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.
+-->
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 197.3 189.2">
+<g>
+ <path fill="#FFFFFF" d="M144.6,85.8L144.6,85.8h-27.4c-2.8-4.9-8.1-8.2-14.1-8.2c-9,0-16.4,7.3-16.4,16.4s7.3,16.4,16.4,16.4
+ c6.1,0,11.3-3.3,14.1-8.2h26.6c-3.8,19.2-20.7,33.7-41,33.7C79.8,135.8,61,117,61,94s18.8-41.8,41.8-41.8c11,0,21.4,4.2,29.3,12
+ c3.2,3.1,8.4,3.1,11.5-0.1s3.1-8.3-0.1-11.5c-10.9-10.7-25.4-16.6-40.7-16.6c-32,0-58.1,26.1-58.1,58.1s26.1,58.1,58.1,58.1
+ c29.3,0,53.6-21.8,57.5-49.9h20.3c-3.8,39.7-37.3,70.9-78,70.9c-20.9,0-40.6-8.1-55.4-22.9c-3.2-3.2-8.3-3.2-11.5,0
+ c-3.2,3.2-3.2,8.3,0,11.5c17.9,17.9,41.6,27.7,66.9,27.7c52.2,0,94.6-42.4,94.6-94.6l0-8.8L144.6,85.8L144.6,85.8z"/>
+ <path fill="#FFFFFF" d="M25.4,81.4c6.3-36.9,38.5-65.1,77.2-65.1c19.8,0,38.8,7.4,53.3,20.9c3.3,3.1,8.4,2.9,11.5-0.4
+ c3.1-3.3,2.9-8.4-0.4-11.5C149.5,9,126.6,0,102.6,0C55.3,0,15.9,35,9.1,80.4C3.7,83.1,0,88.6,0,95c0,9,7.3,16.4,16.4,16.4
+ s16.4-7.3,16.4-16.4C32.7,89.3,29.8,84.3,25.4,81.4"/>
+</g>
+</svg>
diff --git a/web-v2/web/public/image/login-bg.jpg b/web-v2/web/public/image/login-bg.jpg
new file mode 100644
index 0000000000..da055cec45
Binary files /dev/null and b/web-v2/web/public/image/login-bg.jpg differ
diff --git a/web-v2/web/src/app/access/layout.js b/web-v2/web/src/app/access/layout.js
new file mode 100644
index 0000000000..a29eb27e64
--- /dev/null
+++ b/web-v2/web/src/app/access/layout.js
@@ -0,0 +1,32 @@
+/*
+ * 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 SectionContainer from '@/components/SectionContainer'
+import LeftNavForCompliance from '@/components/LeftNavForCompliance'
+
+export default function AccessLayout({ children }) {
+ return (
+ <SectionContainer classProps='flex'>
+ <div className='h-full bg-white'>
+ <LeftNavForCompliance />
+ </div>
+ <div className='relative grow bg-white'>{children}</div>
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/access/page.js b/web-v2/web/src/app/access/page.js
new file mode 100644
index 0000000000..e256db4d75
--- /dev/null
+++ b/web-v2/web/src/app/access/page.js
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ */
+
+export default function AccessPage() {
+ return <></>
+}
diff --git a/web-v2/web/src/app/access/roles/CreateRoleDialog.js b/web-v2/web/src/app/access/roles/CreateRoleDialog.js
new file mode 100644
index 0000000000..f5cc3379e9
--- /dev/null
+++ b/web-v2/web/src/app/access/roles/CreateRoleDialog.js
@@ -0,0 +1,392 @@
+/*
+ * 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 React, { useEffect, useState, useRef } from 'react'
+import { PlusOutlined } from '@ant-design/icons'
+import { Button, Form, Input, Modal, Spin, Typography, Select, Collapse } from 'antd'
+import Icons from '@/components/Icons'
+import SecurableObjectFormFields from '@/components/SecurableObjectFormFields'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { validateMessages, mismatchName } from '@/config'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { useScrolling } from 'react-use'
+import { dialogContentMaxHeigth } from '@/config'
+import { cn } from '@/lib/utils/tailwind'
+import { createRole, getRoleDetails, updateRolePrivileges } from '@/lib/store/roles'
+import { to } from '@/lib/utils'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { isArray } from '@/lib/utils/is'
+
+const { Paragraph } = Typography
+
+const defaultValues = {
+ name: '',
+ securableObjects: [{}],
+ properties: []
+}
+
+export default function CreateRoleDialog({ ...props }) {
+ const { open, setOpen, editRole, mutateRoles, metalake } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [privilegeErrorTips, setPrivilegeErrorTips] = useState('')
+ const [activeCollapseKeys, setActiveCollapseKeys] = useState([])
+ const loadedRef = useRef(false)
+ const prevSecurableLenRef = useRef(0)
+ const editInitRef = useRef(false)
+ const scrollRef = useRef(null)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+ const dispatch = useAppDispatch()
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ const isElementVisibleInContainer = (el, container) => {
+ if (!el || !container) return true
+ const elRect = el.getBoundingClientRect()
+ const containerRect = container.getBoundingClientRect()
+
+ return elRect.top >= containerRect.top && elRect.bottom <= containerRect.bottom
+ }
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(false)
+ } else {
+ setTopShadow(false)
+ setBottomShadow(false)
+ }
+
+ const activeEl = document.activeElement
+
+ const isFormControl =
+ activeEl && (activeEl.getAttribute?.('role') === 'combobox' || ['INPUT', 'TEXTAREA'].includes(activeEl.tagName))
+ if (
+ isFormControl &&
+ scrollRef.current.contains(activeEl) &&
+ !isElementVisibleInContainer(activeEl, scrollRef.current)
+ ) {
+ activeEl.blur()
+ }
+ }
+ }
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ useEffect(() => {
+ if (open && editRole && !loadedRef.current) {
+ loadedRef.current = true
+ editInitRef.current = true
+
+ const init = async () => {
+ setIsLoading(true)
+
+ // Mark initialization in progress immediately so child rows
+ // skip clearing side-effects while we fetch and populate data.
+ form.setFieldsValue({ __init_in_progress: true })
+ try {
+ const { payload: role } = await dispatch(getRoleDetails({ metalake, role: editRole }))
+ form.setFieldValue('name', role.name)
+ let index = 0
+ Object.entries(role.properties || {}).forEach(([key, value]) => {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ })
+ role.securableObjects.forEach((object, index) => {
+ let fullName = object.fullName
+ form.setFieldValue(['securableObjects', index, 'type'], object.type)
+ form.setFieldValue(['securableObjects', index, 'fullName'], fullName)
+ form.setFieldValue(
+ ['securableObjects', index, 'allowPrivileges'],
+ object.privileges.filter(p => p.condition === 'allow').map(p => p.name)
+ )
+ form.setFieldValue(
+ ['securableObjects', index, 'denyPrivileges'],
+ object.privileges.filter(p => p.condition !== 'allow').map(p => p.name)
+ )
+ })
+
+ // Mark initialization finished so child fields can run their
+ // normal side-effects now.
+ setTimeout(() => {
+ form.setFieldsValue({ __init_in_progress: false })
+ editInitRef.current = false
+ }, 100)
+ setIsLoading(false)
+ } catch (e) {
+ console.error(e)
+ setIsLoading(false)
+ }
+ }
+ init()
+ }
+ setPrivilegeErrorTips('')
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editRole, metalake])
+
+ useEffect(() => {
+ setPrivilegeErrorTips('')
+ }, [values?.securableObjects])
+
+ useEffect(() => {
+ const currentLen = values?.securableObjects?.length || 0
+
+ if (currentLen === 0) {
+ setActiveCollapseKeys([])
+ prevSecurableLenRef.current = 0
+
+ return
+ }
+
+ if (prevSecurableLenRef.current === 0 && activeCollapseKeys.length === 0) {
+ if (editRole) {
+ setActiveCollapseKeys(['0'])
+ } else {
+ setActiveCollapseKeys(Array.from({ length: currentLen }, (_, idx) => String(idx)))
+ }
+ } else if (currentLen > prevSecurableLenRef.current) {
+ if (!editRole || !editInitRef.current) {
+ setActiveCollapseKeys(keys => Array.from(new Set([...(keys || []), String(currentLen - 1)])))
+ }
+ } else if (currentLen < prevSecurableLenRef.current) {
+ setActiveCollapseKeys(keys => (keys || []).filter(k => Number(k) < currentLen))
+ }
+
+ prevSecurableLenRef.current = currentLen
+ }, [values?.securableObjects?.length, editRole])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: String(values.name || '').trim(),
+ properties: (values.properties || []).reduce((acc, item) => {
+ if (!item?.key) return acc
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {}),
+ securableObjects: (values.securableObjects || [])
+ .filter(object => object.fullName)
+ .map(object => {
+ const allowPrivileges = object.allowPrivileges.map(privilege => ({ name: privilege, condition: 'ALLOW' }))
+ const denyPrivileges = object.denyPrivileges.map(privilege => ({ name: privilege, condition: 'DENY' }))
+ const privileges = [...allowPrivileges, ...denyPrivileges]
+ if (privileges.length === 0) {
+ throw new Error('At least one privilege is required for each securable object.')
+ }
+ const type = String(object.type || '').toLowerCase()
+ const fullName = object.fullName
+
+ return {
+ fullName: Array.isArray(fullName) ? fullName.join('.') : String(fullName || ''),
+ type: type,
+ privileges: privileges
+ }
+ })
+ }
+ if (editRole) {
+ const reqData = { overrides: submitData.securableObjects }
+ await dispatch(updateRolePrivileges({ metalake, role: editRole, data: reqData }))
+ } else {
+ await dispatch(createRole({ metalake, data: submitData }))
+ }
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ setConfirmLoading(false)
+ const formItem = info?.errorFields?.[0]?.name?.[0]
+ if (formItem !== 'name') {
+ setPrivilegeErrorTips(info.message)
+ }
+ form.scrollToField(formItem)
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ const handleChangeCollapse = () => {
+ // Mark initialization in progress immediately so child rows
+ // skip clearing side-effects while we fetch and populate data.
+ form.setFieldsValue({ __init_in_progress: true })
+ setTimeout(() => {
+ form.setFieldsValue({ __init_in_progress: false })
+ }, 100)
+ }
+
+ const renderSecurableObjectItems = (fields, subOpt) => {
+ const items = fields.map(field => {
+ const fname = field.name
+ const fkey = String(fname)
+
+ // Lightweight internal check: avoid emitting debug logs in production
+ const titleValue = form.getFieldValue(['securableObjects', fname, 'fullName'])
+ const fullNameStr = isArray(titleValue) ? titleValue.join('.') : titleValue
+ const indexLabel = Number(fname) + 1
+ const title = fullNameStr ? `Securable Object - ${fullNameStr}` : `Securable Object - ${indexLabel}`
+
+ return {
+ key: fkey,
+ label: (
+ <div className='flex items-center justify-between w-full'>
+ <div className='truncate pr-2'>{title}</div>
+ <div
+ onClick={e => {
+ // prevent collapse toggle when clicking the wrapper
+ e.stopPropagation()
+ }}
+ >
+ <Icons.Minus
+ className='size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={e => {
+ e.stopPropagation()
+ subOpt.remove(fname)
+ }}
+ />
+ </div>
+ </div>
+ ),
+ children: <SecurableObjectFormFields fieldName={fname} fieldKey={fkey} metalake={metalake} />
+ }
+ })
+
+ return (
+ <>
+ <Collapse
+ activeKey={activeCollapseKeys}
+ accordion={false}
+ items={items}
+ onChange={keys => {
+ const nextKeys = Array.isArray(keys) ? keys : [keys]
+ setActiveCollapseKeys(nextKeys)
+ handleChangeCollapse()
+ }}
+ />
+
+ <div className='text-center mt-2'>
+ <Button
+ type='link'
+ icon={<PlusOutlined />}
+ onClick={() => {
+ subOpt.add()
+ }}
+ >
+ Add Securable Object
+ </Button>
+ </div>
+
+ {privilegeErrorTips && <span className='text-red-500'>{privilegeErrorTips}</span>}
+ </>
+ )
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editRole ? 'Create Role' : `Edit Role ${editRole}`}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={1000}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>{!editRole ? 'Create a new role' : `Update Role ${editRole} Privileges`}</Paragraph>
+ <div
+ className={cn('relative', {
+ 'after:absolute after:-bottom-10 after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='roleForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Role Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'role name' }}
+ >
+ <Input placeholder={mismatchName} disabled={!!editRole} />
+ </Form.Item>
+ <Form.Item label='Securable Objects' name='securableObjects'>
+ <Form.List name='securableObjects'>
+ {(fields, subOpt) => renderSecurableObjectItems(fields, subOpt)}
+ </Form.List>
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem
+ fields={fields}
+ subOpt={subOpt}
+ form={form}
+ editRole={editRole}
+ isDisable={!!editRole}
+ />
+ )}
+ </Form.List>
+ </Form.Item>
+ </Form>
+ </Spin>
+ </div>
+ </div>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/access/roles/page.js b/web-v2/web/src/app/access/roles/page.js
new file mode 100644
index 0000000000..39d790103d
--- /dev/null
+++ b/web-v2/web/src/app/access/roles/page.js
@@ -0,0 +1,249 @@
+/*
+ * 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.
+ */
+
+'use client'
+import { createContext, useMemo, useState, useEffect } from 'react'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import { Button, Dropdown, Flex, Input, Modal, Spin, Table, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import ConfirmInput from '@/components/ConfirmInput'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import GetOwner from '@/components/GetOwner'
+import Loading from '@/components/Loading'
+import { useSearchParams } from 'next/navigation'
+import dynamic from 'next/dynamic'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { fetchRoles, deleteRole } from '@/lib/store/roles'
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const CreateRoleDialog = dynamic(() => import('./CreateRoleDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function RolesPage() {
+ const [open, setOpen] = useState(false)
+ const [editRole, setEditRole] = useState('')
+ const [search, setSearch] = useState('')
+ const [modal, contextHolder] = Modal.useModal()
+ const [openSetOwner, setOpenSetOwner] = useState(false)
+ const [ownerRole, setOwnerRole] = useState('')
+ const [ownerRefreshKey, setOwnerRefreshKey] = useState(0)
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const store = useAppSelector(state => state.roles)
+ const dispatch = useAppDispatch()
+
+ useEffect(() => {
+ currentMetalake && dispatch(fetchRoles({ metalake: currentMetalake }))
+ }, [dispatch, currentMetalake])
+
+ const tableData = store.rolesData
+ ?.filter(r => {
+ if (search === '') return true
+
+ return r.includes(search)
+ })
+ .map(role => {
+ return {
+ name: role,
+ key: role
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleCreateRole = () => {
+ setEditRole('')
+ setOpen(true)
+ }
+
+ const handleUpdateRolePrivileges = role => {
+ setEditRole(role)
+ setOpen(true)
+ }
+
+ const handleSetOwner = role => {
+ setOwnerRole(role)
+ setOpenSetOwner(true)
+ }
+
+ const handleOwnerDialogClose = (open, refresh) => {
+ setOpenSetOwner(open)
+ if (refresh) setOwnerRefreshKey(k => k + 1)
+ }
+
+ const showDeleteConfirm = (NameContext, role) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+
+ modal.confirm({
+ title: `Are you sure to delete the Role ${role}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => <ConfirmInput name={name} setConfirmInput={setConfirmInput} registerValidate={registerValidate} />}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deleteRole({ metalake: currentMetalake, role }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Role Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase())
+ },
+ {
+ title: 'Owner',
+ dataIndex: 'owner',
+ key: 'owner',
+ render: (_, record) => (
+ <GetOwner
+ metalake={currentMetalake}
+ metadataObjectType='role'
+ metadataObjectFullName={record.name}
+ refreshKey={ownerRefreshKey}
+ />
+ )
+ },
+ {
+ title: 'Actions',
+ dataIndex: 'action',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Tooltip title='Edit'>
+ <Icons.Pencil className='size-4' onClick={() => handleUpdateRolePrivileges(record.name)} />
+ </Tooltip>
+ </a>
+ <a>
+ <Tooltip title='Delete'>
+ <Icons.Trash2Icon className='size-4' onClick={() => showDeleteConfirm(NameContext, record.name)} />
+ </Tooltip>
+ </a>
+ <Dropdown
+ menu={{
+ items: [
+ {
+ label: 'Set Owner',
+ key: 'setOwner'
+ }
+ ],
+ onClick: ({ key }) => {
+ switch (key) {
+ case 'setOwner':
+ handleSetOwner(record.name)
+ break
+ }
+ }
+ }}
+ trigger={['hover']}
+ >
+ <Tooltip title='Settings'>
+ <a onClick={e => e.preventDefault()}>
+ <Icons.Settings className='size-4' />
+ </a>
+ </Tooltip>
+ </Dropdown>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake, ownerRefreshKey]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <Title level={2}>Roles</Title>
+ <Paragraph type='secondary'>Roles are the entities that can be granted to users or user groups.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/3 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search' onChange={onSearchTable} />
+ <Button type='primary' icon={<PlusOutlined />} onClick={handleCreateRole}>
+ Create Role
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.rolesLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ <CreateRoleDialog open={open} setOpen={setOpen} editRole={editRole} metalake={currentMetalake} />
+ <SetOwnerDialog
+ open={openSetOwner}
+ setOpen={(v, isRefresh) => handleOwnerDialogClose(v, isRefresh)}
+ metalake={currentMetalake}
+ metadataObjectType={'role'}
+ metadataObjectFullName={ownerRole}
+ />
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/access/userGroups/AddUserGroupDialog.js b/web-v2/web/src/app/access/userGroups/AddUserGroupDialog.js
new file mode 100644
index 0000000000..c10a2efb11
--- /dev/null
+++ b/web-v2/web/src/app/access/userGroups/AddUserGroupDialog.js
@@ -0,0 +1,105 @@
+/*
+ * 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 React, { useState } from 'react'
+import { Form, Input, Modal, Typography } from 'antd'
+import { validateMessages, mismatchName } from '@/config'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { createUserGroup } from '@/lib/store/userGroups'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Paragraph } = Typography
+
+const defaultValues = {
+ name: ''
+}
+
+export default function AddUserGroupDialog({ ...props }) {
+ const { open, setOpen, metalake } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const dispatch = useAppDispatch()
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim()
+ }
+
+ await dispatch(createUserGroup({ metalake, data: submitData }))
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title='Add User Group'
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={400}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>Add a user group.</Paragraph>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='roleForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='User Group Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'user group name' }}
+ >
+ <Input placeholder={mismatchName} />
+ </Form.Item>
+ </Form>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/access/userGroups/GrantRolesForUserGroupDialog.js b/web-v2/web/src/app/access/userGroups/GrantRolesForUserGroupDialog.js
new file mode 100644
index 0000000000..70e1dc610e
--- /dev/null
+++ b/web-v2/web/src/app/access/userGroups/GrantRolesForUserGroupDialog.js
@@ -0,0 +1,118 @@
+/*
+ * 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 React, { useState, useEffect } from 'react'
+import { Form, Modal, Select, Typography } from 'antd'
+import { validateMessages } from '@/config'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { fetchRoles } from '@/lib/store/roles'
+import { grantRolesForUserGroup, revokeRolesForUserGroup } from '@/lib/store/userGroups'
+
+const { Paragraph } = Typography
+const { Option } = Select
+
+export default function CreateRoleDialog({ ...props }) {
+ const { open, setOpen, userGroup, metalake } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.roles)
+
+ const defaultValues = {
+ roles: userGroup.roles
+ }
+
+ useEffect(() => {
+ open && dispatch(fetchRoles({ metalake }))
+ }, [open, dispatch, metalake])
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+ const grantRoleNams = values.roles.filter(role => !userGroup.roles.includes(role))
+ const revokeRoleNames = userGroup.roles.filter(role => !values.roles.includes(role))
+ if (grantRoleNams.length) {
+ await dispatch(
+ grantRolesForUserGroup({ metalake, group: userGroup.name, data: { roleNames: grantRoleNams } })
+ )
+ }
+ if (revokeRoleNames.length) {
+ await dispatch(
+ revokeRolesForUserGroup({ metalake, group: userGroup.name, data: { roleNames: revokeRoleNames } })
+ )
+ }
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title='Grant Role'
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={400}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>Grant the role to user group {userGroup.name}.</Paragraph>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='grantRolesForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item name='roles' label='Roles' rules={[{ required: userGroup.roles.length === 0 }]}>
+ <Select mode='multiple' placeholder='roles'>
+ {store.rolesData?.map(role => (
+ <Option key={role} value={role}>
+ {role}
+ </Option>
+ ))}
+ </Select>
+ </Form.Item>
+ </Form>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/access/userGroups/page.js b/web-v2/web/src/app/access/userGroups/page.js
new file mode 100644
index 0000000000..5ce89e3917
--- /dev/null
+++ b/web-v2/web/src/app/access/userGroups/page.js
@@ -0,0 +1,213 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useMemo, useState, useEffect } from 'react'
+import dynamic from 'next/dynamic'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import { Button, Flex, Input, Modal, Spin, Table, Tag, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import ConfirmInput from '@/components/ConfirmInput'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import Loading from '@/components/Loading'
+import { useSearchParams } from 'next/navigation'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { fetchUserGroups, deleteUserGroup } from '@/lib/store/userGroups'
+
+const AddUserGroupDialog = dynamic(() => import('./AddUserGroupDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const GrantRolesForUserGroupDialog = dynamic(() => import('./GrantRolesForUserGroupDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function UserGroupsPage() {
+ const [open, setOpen] = useState(false)
+ const [openGrant, setOpenGrant] = useState(false)
+ const [grantUserGroup, setGrantUserGroup] = useState()
+ const [modal, contextHolder] = Modal.useModal()
+ const [search, setSearch] = useState('')
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const store = useAppSelector(state => state.userGroups)
+ const dispatch = useAppDispatch()
+
+ useEffect(() => {
+ currentMetalake && dispatch(fetchUserGroups({ metalake: currentMetalake, details: true }))
+ }, [dispatch, currentMetalake])
+
+ const tableData = store.userGroupsData
+ ?.filter(g => {
+ if (search === '') return true
+
+ return g?.name.includes(search)
+ })
+ .map(group => {
+ return {
+ ...group,
+ key: group.name
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleAddUser = () => {
+ setOpen(true)
+ }
+
+ const handleGrantRoles = userGroup => {
+ setGrantUserGroup(userGroup)
+ setOpenGrant(true)
+ }
+
+ const showDeleteConfirm = (NameContex, group) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+ modal.confirm({
+ title: `Are you sure to delete the User Group ${group}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContex.Consumer>
+ {name => <ConfirmInput name={name} setConfirmInput={setConfirmInput} registerValidate={registerValidate} />}
+ </NameContex.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deleteUserGroup({ metalake: currentMetalake, group }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Group Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ width: 300
+ },
+ {
+ title: 'Roles',
+ dataIndex: 'roles',
+ key: 'roles',
+ ellipsis: true,
+ render: roles => (
+ <>
+ {roles.map(role => {
+ return <Tag key={role}>{role}</Tag>
+ })}
+ {roles.length === 0 && <span>-</span>}
+ </>
+ )
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Tooltip title='Grant Role'>
+ <Icons.UserRoundCog className='size-4' onClick={() => handleGrantRoles(record)} />
+ </Tooltip>
+ </a>
+ <a>
+ <Tooltip title='Delete'>
+ <Icons.Trash2Icon className='size-4' onClick={() => showDeleteConfirm(NameContext, record.name)} />
+ </Tooltip>
+ </a>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <Title level={2}>User Groups</Title>
+ <Paragraph type='secondary'>User groups are the entities that can be granted roles.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/3 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' onChange={onSearchTable} />
+ <Button type='primary' icon={<PlusOutlined />} onClick={handleAddUser}>
+ Add User Group
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.userGroupsLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ {open && <AddUserGroupDialog open={open} setOpen={setOpen} metalake={currentMetalake} />}
+ {openGrant && (
+ <GrantRolesForUserGroupDialog
+ open={openGrant}
+ setOpen={setOpenGrant}
+ userGroup={grantUserGroup}
+ metalake={currentMetalake}
+ />
+ )}
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/access/users/AddUserDialog.js b/web-v2/web/src/app/access/users/AddUserDialog.js
new file mode 100644
index 0000000000..766410d321
--- /dev/null
+++ b/web-v2/web/src/app/access/users/AddUserDialog.js
@@ -0,0 +1,110 @@
+/*
+ * 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 React, { useState } from 'react'
+import { Form, Input, Modal, Typography } from 'antd'
+import { validateMessages, mismatchName } from '@/config'
+import { usernameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { createUser } from '@/lib/store/users'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Paragraph } = Typography
+
+const defaultValues = {
+ name: ''
+}
+
+export default function AddUserDialog({ ...props }) {
+ const { open, setOpen, metalake, mutateUsers } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const dispatch = useAppDispatch()
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim()
+ }
+
+ // await submitUser({ params: { metalake }, data: submitData })
+ await dispatch(createUser({ metalake, data: submitData }))
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title='Add User'
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={400}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>Add a user.</Paragraph>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='roleForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Name'
+ rules={[
+ { required: true },
+ { type: 'string', max: 64 },
+ { pattern: new RegExp(usernameRegex), message: mismatchName }
+ ]}
+ messageVariables={{ label: 'name' }}
+ >
+ <Input placeholder={mismatchName} />
+ </Form.Item>
+ </Form>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/access/users/GrantRolesForUserDialog.js b/web-v2/web/src/app/access/users/GrantRolesForUserDialog.js
new file mode 100644
index 0000000000..f2e2c34f4f
--- /dev/null
+++ b/web-v2/web/src/app/access/users/GrantRolesForUserDialog.js
@@ -0,0 +1,114 @@
+/*
+ * 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 React, { useState, useEffect } from 'react'
+import { Form, Modal, Select, Typography } from 'antd'
+import { validateMessages } from '@/config'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { fetchRoles } from '@/lib/store/roles'
+import { grantRolesForUser, revokeRolesForUser } from '@/lib/store/users'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Paragraph } = Typography
+const { Option } = Select
+
+export default function GrantRolesForUserDialog({ ...props }) {
+ const { open, setOpen, user, metalake } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.roles)
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ const defaultValues = {
+ roles: user.roles
+ }
+
+ useEffect(() => {
+ open && dispatch(fetchRoles({ metalake }))
+ }, [open, dispatch, metalake])
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+ const grantRoleNams = values.roles.filter(role => !user.roles.includes(role))
+ const revokeRoleNames = user.roles.filter(role => !values.roles.includes(role))
+ if (grantRoleNams.length) {
+ await dispatch(grantRolesForUser({ metalake, user: user.name, data: { roleNames: grantRoleNams } }))
+ }
+ if (revokeRoleNames.length) {
+ await dispatch(revokeRolesForUser({ metalake, user: user.name, data: { roleNames: revokeRoleNames } }))
+ }
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title='Grant Role'
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={400}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>{`Grant the role to user ${user.name}.`}</Paragraph>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='grantRolesForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item name='roles' label='Roles' rules={[{ required: user.roles.length === 0 }]}>
+ <Select mode='multiple' placeholder='roles'>
+ {store.rolesData?.map(role => (
+ <Option key={role} value={role}>
+ {role}
+ </Option>
+ ))}
+ </Select>
+ </Form.Item>
+ </Form>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/access/users/page.js b/web-v2/web/src/app/access/users/page.js
new file mode 100644
index 0000000000..c3a03c774f
--- /dev/null
+++ b/web-v2/web/src/app/access/users/page.js
@@ -0,0 +1,209 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useMemo, useState, useEffect } from 'react'
+import dynamic from 'next/dynamic'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import { Button, Flex, Input, Modal, Spin, Table, Tag, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import ConfirmInput from '@/components/ConfirmInput'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import Loading from '@/components/Loading'
+import { useSearchParams } from 'next/navigation'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { fetchUsers, deleteUser } from '@/lib/store/users'
+
+const AddUserDialog = dynamic(() => import('./AddUserDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const GrantRolesForUserDialog = dynamic(() => import('./GrantRolesForUserDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function UsersPage() {
+ const [open, setOpen] = useState(false)
+ const [openGrant, setOpenGrant] = useState(false)
+ const [grantUser, setGrantUser] = useState()
+ const [modal, contextHolder] = Modal.useModal()
+ const [search, setSearch] = useState('')
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const store = useAppSelector(state => state.users)
+ const dispatch = useAppDispatch()
+
+ useEffect(() => {
+ currentMetalake && dispatch(fetchUsers({ metalake: currentMetalake, details: true }))
+ }, [dispatch, currentMetalake])
+
+ const tableData = store.usersData
+ ?.filter(u => {
+ if (search === '') return true
+
+ return u?.name.includes(search)
+ })
+ .map(user => {
+ return {
+ ...user,
+ key: user.name
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleAddUser = () => {
+ setOpen(true)
+ }
+
+ const handleGrantRoles = user => {
+ setGrantUser(user)
+ setOpenGrant(true)
+ }
+
+ const showDeleteConfirm = (NameContext, user) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+
+ modal.confirm({
+ title: `Are you sure to delete the User ${user}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => <ConfirmInput name={name} setConfirmInput={setConfirmInput} registerValidate={registerValidate} />}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deleteUser({ metalake: currentMetalake, user }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'User Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ width: 300
+ },
+ {
+ title: 'Roles',
+ dataIndex: 'roles',
+ key: 'roles',
+ ellipsis: true,
+ render: roles => (
+ <>
+ {roles.map(role => {
+ return <Tag key={role}>{role}</Tag>
+ })}
+ {roles.length === 0 && <span>-</span>}
+ </>
+ )
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Tooltip title='Grant Role'>
+ <Icons.UserRoundCog className='size-4' onClick={() => handleGrantRoles(record)} />
+ </Tooltip>
+ </a>
+ <a>
+ <Tooltip title='Delete'>
+ <Icons.Trash2Icon className='size-4' onClick={() => showDeleteConfirm(NameContext, record.name)} />
+ </Tooltip>
+ </a>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <Title level={2}>Users</Title>
+ <Paragraph type='secondary'>Users are the entities that can be granted roles.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/3 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' onChange={onSearchTable} />
+ <Button type='primary' icon={<PlusOutlined />} onClick={handleAddUser}>
+ Add User
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.usersLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ {open && <AddUserDialog open={open} setOpen={setOpen} metalake={currentMetalake} />}
+ {openGrant && (
+ <GrantRolesForUserDialog open={openGrant} setOpen={setOpenGrant} user={grantUser} metalake={currentMetalake} />
+ )}
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/TreeComponent.js b/web-v2/web/src/app/catalogs/TreeComponent.js
new file mode 100644
index 0000000000..2a7e0cce48
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/TreeComponent.js
@@ -0,0 +1,636 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'
+
+import { usePathname, useRouter, useSearchParams } from 'next/navigation'
+
+import { Empty, Input, Spin, Tabs, Tooltip, Tree } from 'antd'
+import { useTheme } from 'next-themes'
+
+import Icons from '@/components/Icons'
+import { checkCatalogIcon } from '@/config/catalog'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppDispatch, useAppSelector } from '@/lib/hooks/useStore'
+import {
+ setExpanded,
+ setExpandedNodes,
+ setIntoTreeNodeWithFetch,
+ removeExpandedNode,
+ setSelectedNodes,
+ setLoadedNodes,
+ getTableDetails,
+ getFilesetDetails,
+ getTopicDetails,
+ getModelDetails,
+ fetchModelVersions,
+ getVersionDetails
+} from '@/lib/store/metalakes'
+
+import { extractPlaceholder } from '@/lib/utils'
+
+const { Search } = Input
+
+export const TreeComponent = forwardRef(function TreeComponent(props, ref) {
+ const [treeData, setTreeData] = useState([])
+ const [searchValue, setSearchValue] = useState('')
+ const [expandedKeys, setExpandedKeys] = useState([])
+ const [loadedKeys, setLoadedKeys] = useState([])
+ const [autoExpandParent, setAutoExpandParent] = useState(false)
+ const [selectedKeys, setSelectedKeys] = useState([])
+ const router = useRouter()
+ const pathname = usePathname()
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const [currentCatalogType, setCatalogType] = useState(searchParams.get('catalogType') || 'relational')
+ const [, locale, , catalog, schema, entity] = pathname.split('/')
+ const treeRef = useRef(null)
+ const { theme } = useTheme()
+ const [isHover, setIsHover] = useState('')
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.metalakes)
+
+ const catalogTypeOptions = [
+ { label: 'Relational', key: 'relational' },
+ { label: 'Messaging', key: 'messaging' },
+ { label: 'Fileset', key: 'fileset' },
+ { label: 'Model', key: 'model' }
+ ]
+
+ const updateTreeData = (list, key, children) =>
+ list.map(node => {
+ if (node.key === key) {
+ return {
+ ...node,
+ isLeaf: children?.length === 0,
+ children
+ }
+ }
+ if (node.children) {
+ return {
+ ...node,
+ isLeaf: node.children.length === 0,
+ children: updateTreeData(node.children, key, children)
+ }
+ }
+
+ return node
+ })
+
+ const handleDoubleClick = event => {
+ event.preventDefault()
+ event.stopPropagation()
+ console.log('Double click is disabled')
+ }
+
+ const renderCatalogIcon = catalog => {
+ const { key, catalogType, provider, inUse } = catalog
+ if (inUse === 'false') {
+ return (
+ <Tooltip title='Not in use'>
+ <span role='img' className='anticon'>
+ <Icons.BanIcon className='size-3 text-gray-400' />
+ </span>
+ </Tooltip>
+ )
+ }
+ const calalogIcon = checkCatalogIcon({ type: catalogType, provider })
+ if (calalogIcon.startsWith('custom-icons-')) {
+ switch (calalogIcon) {
+ case 'custom-icons-hive':
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.hive className='h-4 w-3'></Icons.hive>
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ case 'custom-icons-doris':
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.doris className='h-4 w-3'></Icons.doris>
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ case 'custom-icons-paimon':
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.paimon className='size-3'></Icons.paimon>
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ case 'custom-icons-hudi':
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.hudi className='size-4'></Icons.hudi>
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ case 'custom-icons-oceanbase':
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.oceanbase className='size-4'></Icons.oceanbase>
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ case 'custom-icons-starrocks':
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.starrocks className='size-4'></Icons.starrocks>
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ case 'custom-icons-lakehouse':
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.lakehouse className='size-4'></Icons.lakehouse>
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ }
+ } else {
+ return (
+ <span
+ role='img'
+ className='anticon'
+ onMouseEnter={e => onMouseEnter(e, catalog)}
+ onMouseLeave={e => onMouseLeave(e, catalog)}
+ onClick={e => handleClickIcon(e, catalog)}
+ >
+ {isHover !== key ? (
+ <Icons.iconify icon={calalogIcon} className='my-icon-small' />
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ }
+ }
+
+ const renderIcon = nodeProps => {
+ switch (nodeProps.data.node) {
+ case 'catalog':
+ return renderCatalogIcon(nodeProps.data)
+ case 'schema':
+ return (
+ <span
+ role='img'
+ aria-label='frown'
+ className='anticon anticon-frown'
+ onMouseEnter={e => onMouseEnter(e, nodeProps.data)}
+ onMouseLeave={e => onMouseLeave(e, nodeProps.data)}
+ onClick={e => handleClickIcon(e, nodeProps.data)}
+ >
+ {isHover !== nodeProps.data.key ? (
+ <Icons.iconify icon='bx:coin-stack' className='my-icon-small' />
+ ) : (
+ <Icons.RotateCw className='h-4 w-3'></Icons.RotateCw>
+ )}
+ </span>
+ )
+ case 'table':
+ return (
+ <span role='img' aria-label='frown' className='anticon anticon-frown'>
+ <Icons.iconify icon='bx:table' className='my-icon-small' />
+ </span>
+ )
+ case 'fileset':
+ return (
+ <span role='img' aria-label='frown' className='anticon anticon-frown'>
+ <Icons.iconify icon='bx:file' className='my-icon-small' />
+ </span>
+ )
+ case 'topic':
+ return (
+ <span role='img' aria-label='frown' className='anticon anticon-frown'>
+ <Icons.iconify icon='material-symbols:topic-outline' className='my-icon-small' />
+ </span>
+ )
+ case 'model':
+ return (
+ <span role='img' aria-label='frown' className='anticon anticon-frown'>
+ <Icons.iconify icon='mdi:globe-model' className='my-icon-small' />
+ </span>
+ )
+ default:
+ return <></>
+ }
+ }
+
+ useEffect(() => {
+ if (searchParams.get('catalogType')) {
+ setCatalogType(searchParams.get('catalogType'))
+ } else {
+ setExpandedKeys([])
+ setCatalogType('relational')
+ }
+ }, [searchParams.get('catalogType')])
+
+ useEffect(() => {
+ setTimeout(() => {
+ if (entity) {
+ setExpandedKeys(
+ Array.from(new Set([...expandedKeys, catalog, `${catalog}/${schema}`, `${catalog}/${schema}/${entity}`]))
+ )
+ setSelectedKeys([`${catalog}/${schema}/${entity}`])
+ } else if (schema && !entity) {
+ setExpandedKeys(Array.from(new Set([...expandedKeys, catalog, `${catalog}/${schema}`])))
+ setSelectedKeys([`${catalog}/${schema}`])
+ } else if (catalog && !schema && !entity) {
+ setExpandedKeys(Array.from(new Set([...expandedKeys, catalog])))
+ setSelectedKeys([catalog])
+ } else if (!catalog && !schema && !entity) {
+ setExpandedKeys(Array.from(new Set([...expandedKeys])))
+ }
+ }, 1000)
+ }, [pathname])
+
+ const renderTitle = title => {
+ return (
+ <div title={title} className='absolute bottom-[-7px] inline-block w-full truncate'>
+ {title}
+ </div>
+ )
+ }
+
+ useEffect(() => {
+ if (store.metalakeTree) {
+ const catalogs = [...store.metalakeTree]
+
+ const treeData = catalogs
+ .filter(catalog => catalog.type === currentCatalogType)
+ .sort((a, b) => new Date(b.audit.lastModifiedTime).getTime() - new Date(a.audit.lastModifiedTime).getTime())
+ .map(catalog => ({
+ ...catalog,
+ title: renderTitle(catalog.name),
+
+ // Set isLeaf to true when not in-use to hide expand icon
+ isLeaf: catalog.inUse === 'false' ? true : catalog.isLeaf
+ }))
+ setTreeData(treeData)
+ }
+ }, [store.metalakeTree, currentCatalogType])
+
+ const handleClickIcon = (e, nodeProps) => {
+ e.stopPropagation()
+ if (nodeProps.inUse === 'false') return
+
+ switch (nodeProps.node) {
+ case 'table': {
+ if (store.selectedNodes.includes(nodeProps.key)) {
+ const pathArr = extractPlaceholder(nodeProps.key)
+ const [metalake, catalog, type, schema, table] = pathArr
+ dispatch(getTableDetails({ init: true, metalake, catalog, schema, table }))
+ }
+ break
+ }
+ case 'fileset': {
+ if (store.selectedNodes.includes(nodeProps.key)) {
+ const pathArr = extractPlaceholder(nodeProps.key)
+ const [metalake, catalog, type, schema, fileset] = pathArr
+ dispatch(getFilesetDetails({ init: true, metalake, catalog, schema, fileset }))
+ }
+ break
+ }
+ case 'topic': {
+ if (store.selectedNodes.includes(nodeProps.key)) {
+ const pathArr = extractPlaceholder(nodeProps.key)
+ const [metalake, catalog, type, schema, topic] = pathArr
+ dispatch(getTopicDetails({ init: true, metalake, catalog, schema, topic }))
+ }
+ break
+ }
+ case 'model': {
+ if (store.selectedNodes.includes(nodeProps.key)) {
+ const pathArr = extractPlaceholder(nodeProps.key)
+ const [metalake, catalog, type, schema, model] = pathArr
+ dispatch(fetchModelVersions({ init: true, metalake, catalog, schema, model }))
+ dispatch(getModelDetails({ init: true, metalake, catalog, schema, model }))
+ }
+ break
+ }
+ case 'version': {
+ if (store.selectedNodes.includes(nodeProps.key)) {
+ const pathArr = extractPlaceholder(nodeProps.key)
+ const [metalake, catalog, type, schema, model, version] = pathArr
+ dispatch(getVersionDetails({ init: true, metalake, catalog, schema, model, version }))
+ }
+ break
+ }
+ default:
+ dispatch(setIntoTreeNodeWithFetch({ key: nodeProps.key, reload: true }))
+ }
+ }
+
+ const onMouseEnter = (e, nodeProps) => {
+ if (nodeProps.inUse === 'false') return
+ if (nodeProps.node === 'table') {
+ if (store.selectedNodes.includes(nodeProps.key)) {
+ setIsHover(nodeProps.key)
+ }
+ } else {
+ setIsHover(nodeProps.key)
+ }
+ }
+
+ const onMouseLeave = (e, nodeProps) => {
+ if (nodeProps.inUse === 'false') return
+ setIsHover(null)
+ }
+
+ const onLoadData = node => {
+ if (node.inUse === 'false') return new Promise(resolve => resolve())
+ const { key, children } = node
+
+ dispatch(setLoadedNodes([...store.loadedNodes, key]))
+
+ return new Promise(resolve => {
+ if (children && children.length !== 0) {
+ resolve()
+
+ return
+ }
+
+ dispatch(setIntoTreeNodeWithFetch({ key }))
+
+ resolve()
+ })
+ }
+
+ const onExpand = (keys, { expanded, node }) => {
+ if (node.inUse === 'false') return
+ dispatch(setExpanded(keys))
+ setAutoExpandParent(false)
+ }
+
+ const onSelect = (keys, { selected, node }) => {
+ if (node.inUse === 'false') return
+ if (!selected) {
+ dispatch(setSelectedNodes([node.key]))
+
+ return
+ }
+
+ dispatch(setSelectedNodes(keys))
+ router.push(node.path)
+ }
+
+ const setCatalogInUse = (name, inUse) => {
+ const inUseStr = inUse.toString()
+ let tree = [...treeData]
+ for (let i = 0; i < tree.length; i++) {
+ if (tree[i].name === name) {
+ if (inUseStr === 'false') {
+ // Not in-use: set isLeaf to true to hide expand icon, clear children
+ tree[i] = { ...tree[i], inUse: inUseStr, isLeaf: true, children: [] }
+ } else {
+ // In-use: set isLeaf to false to show expand icon, allow reload
+ tree[i] = { ...tree[i], inUse: inUseStr, isLeaf: false, children: undefined }
+ }
+ break
+ }
+ }
+ if (inUseStr === 'false') {
+ // Remove from expanded and loaded nodes
+ dispatch(setExpandedNodes([...store.expandedNodes.filter(key => !key.includes(name))]))
+ dispatch(setLoadedNodes([...store.loadedNodes.filter(key => !key.includes(name))]))
+ } else {
+ // Remove from loaded nodes to allow re-fetching children when expanded
+ dispatch(setLoadedNodes([...store.loadedNodes.filter(key => key !== name)]))
+ }
+ setTreeData(tree)
+ }
+
+ useImperativeHandle(ref, () => ({
+ onLoadData,
+ setCatalogInUse
+ }))
+
+ const getParentKey = (key, tree) => {
+ let parentKey
+ for (let i = 0; i < tree.length; i++) {
+ const node = tree[i]
+ if (node.children?.length) {
+ if (node.children.some(item => item.key === key)) {
+ parentKey = node.key
+ } else if (getParentKey(key, node.children)) {
+ parentKey = getParentKey(key, node.children)
+ }
+ }
+ }
+
+ return parentKey
+ }
+
+ const dataList = useMemo(() => {
+ const list = []
+
+ const generateList = data => {
+ for (let i = 0; i < data.length; i++) {
+ const node = data[i]
+ const { key, name } = node
+ list.push({ key, name })
+ if (node.children?.length) {
+ generateList(node.children)
+ }
+ }
+ }
+ generateList(treeData)
+
+ return list
+ }, [treeData])
+
+ const onSearchTree = e => {
+ const { value } = e.target
+
+ const newExpandedKeys = dataList
+ .map(item => {
+ if (item.name.indexOf(value) > -1) {
+ return getParentKey(item.key, treeData)
+ }
+
+ return null
+ })
+ .filter((item, i, self) => !!(item && self.indexOf(item) === i))
+
+ // Use setExpanded to replace (not merge) expanded nodes for search
+ dispatch(setExpanded(newExpandedKeys))
+ setSearchValue(value)
+ setAutoExpandParent(newExpandedKeys.length > 0)
+ }
+
+ const searchTreeData = useMemo(() => {
+ const loop = data =>
+ data.map(item => {
+ const strTitle = item.name
+ const index = strTitle.indexOf(searchValue)
+ const beforeStr = strTitle.substring(0, index)
+ const afterStr = strTitle.slice(index + searchValue.length)
+
+ const title =
+ index > -1 ? (
+ <div title={item.name} className='absolute bottom-[-7px] inline-block w-full truncate'>
+ {beforeStr}
+ <span className='text-defaultPrimary'>{searchValue}</span>
+ {afterStr}
+ </div>
+ ) : (
+ <div title={item.name} className='absolute bottom-[-7px] inline-block w-full truncate'>
+ {strTitle}
+ </div>
+ )
+ if (item.children?.length) {
+ return {
+ ...item,
+ title,
+ name: item.name,
+ key: item.key,
+ node: item.node,
+ icon: item.icon,
+
+ // Keep isLeaf true for not in-use catalogs
+ isLeaf: item.inUse === 'false' ? true : item.children.length === 0,
+ children: loop(item.children)
+ }
+ }
+
+ return {
+ ...item,
+ title,
+ name: item.name,
+ key: item.key,
+ node: item.node,
+ icon: item.icon,
+
+ // Keep isLeaf true for not in-use catalogs
+ isLeaf: item.inUse === 'false' ? true : item.isLeaf
+ }
+ })
+
+ return loop(treeData)
+ }, [searchValue, treeData])
+
+ const onChangeType = key => {
+ setCatalogType(key)
+ setExpandedKeys([])
+ setLoadedKeys([])
+ setSelectedKeys([])
+ setTreeData([])
+ router.push(`/catalogs?metalake=${currentMetalake}&catalogType=${key}`)
+ }
+
+ return (
+ <div data-refer='tree-view'>
+ <Tabs onChange={onChangeType} activeKey={currentCatalogType} items={catalogTypeOptions} />
+ <Search name='searchTreeInput' className='mb-2' placeholder='Search...' onChange={onSearchTree} />
+ <Spin spinning={false}>
+ {treeData && treeData.length > 0 ? (
+ <Tree
+ ref={treeRef}
+ treeData={searchTreeData}
+ loadData={onLoadData}
+ onSelect={onSelect}
+ onExpand={onExpand}
+ autoExpandParent={autoExpandParent}
+ loadedKeys={store.loadedNodes}
+ selectedKeys={store.selectedNodes}
+ expandedKeys={store.expandedNodes}
+ onDoubleClick={handleDoubleClick}
+ blockNode
+ showIcon
+ onMouseLeave={e => onMouseLeave(e, {})}
+ icon={nodeProps => renderIcon(nodeProps)}
+ className={cn([
+ '[&_.ant-tree-title]:relative',
+ '[&_.ant-tree-title]:inline-flex',
+ '[&_.ant-tree-title]:w-[calc(100%-24px)]'
+ ])}
+ style={{ maxHeight: 'calc(100vh - 22rem)', overflowY: 'auto', overflowAnchor: 'none' }}
+ />
+ ) : (
+ <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
+ )}
+ </Spin>
+ </div>
+ )
+})
diff --git a/web-v2/web/src/app/catalogs/layout.js b/web-v2/web/src/app/catalogs/layout.js
new file mode 100644
index 0000000000..4ca504245e
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/layout.js
@@ -0,0 +1,26 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+const CatalogsView = ({ children }) => {
+ return <>{children}</>
+}
+
+export default CatalogsView
diff --git a/web-v2/web/src/app/catalogs/page.js b/web-v2/web/src/app/catalogs/page.js
new file mode 100644
index 0000000000..a4738affd2
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/page.js
@@ -0,0 +1,304 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useEffect, createContext, useRef } from 'react'
+
+import RightContent from './rightContent/RightContent'
+
+import { useAppDispatch, useAppSelector } from '@/lib/hooks/useStore'
+import { useSearchParams } from 'next/navigation'
+import { Splitter } from 'antd'
+import SectionContainer from '@/components/SectionContainer'
+import { TreeComponent } from './TreeComponent'
+
+export const TreeRefContext = createContext({})
+
+import {
+ fetchCatalogs,
+ fetchSchemas,
+ fetchTables,
+ fetchFilesets,
+ fetchTopics,
+ fetchModels,
+ fetchModelVersions,
+ getMetalakeDetails,
+ getCatalogDetails,
+ getSchemaDetails,
+ getTableDetails,
+ getFilesetDetails,
+ getTopicDetails,
+ getModelDetails,
+ getVersionDetails,
+ setSelectedNodes,
+ getCurrentEntityTags,
+ getCurrentEntityPolicies,
+ resetActivatedDetails,
+ setActivatedDetailsLoading
+} from '@/lib/store/metalakes'
+
+import { fetchTags } from '@/lib/store/tags'
+import { fetchPolicies } from '@/lib/store/policies'
+
+const CatalogsListPage = () => {
+ const dispatch = useAppDispatch()
+ const searchParams = useSearchParams()
+ const paramsSize = [...searchParams.keys()].length
+ const store = useAppSelector(state => state.metalakes)
+
+ const treeRef = useRef()
+
+ const buildNodePath = routeParams => {
+ const keys = ['metalake', 'catalog', 'catalogType', 'schema', 'table', 'fileset', 'topic', 'model']
+
+ return keys.map(key => (routeParams[key] ? `{{${routeParams[key]}}}` : '')).join('')
+ }
+
+ useEffect(() => {
+ const routeParams = {
+ metalake: searchParams.get('metalake'),
+ catalog: searchParams.get('catalog'),
+ catalogType: searchParams.get('catalogType'),
+ schema: searchParams.get('schema'),
+ table: searchParams.get('table'),
+ fileset: searchParams.get('fileset'),
+ topic: searchParams.get('topic'),
+ model: searchParams.get('model'),
+ version: searchParams.get('version')
+ }
+ async function fetchDependsData() {
+ if ([...searchParams.keys()].length) {
+ const { metalake, catalog, catalogType, schema, table, fileset, topic, model, version } = routeParams
+ await dispatch(setActivatedDetailsLoading(true))
+
+ if (metalake) {
+ dispatch(fetchTags({ metalake, details: true }))
+ dispatch(fetchPolicies({ metalake, details: true }))
+ }
+
+ if (paramsSize === 2 && metalake) {
+ dispatch(fetchCatalogs({ init: true, page: 'metalakes', metalake }))
+ dispatch(getMetalakeDetails({ metalake }))
+ }
+
+ if (paramsSize === 3 && catalog) {
+ if (!store.catalogs.length) {
+ await dispatch(fetchCatalogs({ metalake }))
+ }
+ dispatch(getCatalogDetails({ init: true, metalake, catalog }))
+ await dispatch(fetchSchemas({ init: true, page: 'catalogs', metalake, catalog, catalogType }))
+ dispatch(
+ getCurrentEntityTags({
+ init: true,
+ metalake,
+ metadataObjectType: 'catalog',
+ metadataObjectFullName: catalog,
+ details: true
+ })
+ )
+ dispatch(
+ getCurrentEntityPolicies({
+ init: true,
+ metalake,
+ metadataObjectType: 'catalog',
+ metadataObjectFullName: catalog,
+ details: true
+ })
+ )
+ }
+
+ if (paramsSize === 4 && catalog && catalogType && schema) {
+ if (!store.catalogs.length) {
+ await dispatch(fetchCatalogs({ metalake }))
+ await dispatch(fetchSchemas({ metalake, catalog, catalogType }))
+ }
+ switch (catalogType) {
+ case 'relational':
+ dispatch(fetchTables({ init: true, page: 'schemas', metalake, catalog, schema }))
+ break
+ case 'fileset':
+ dispatch(fetchFilesets({ init: true, page: 'schemas', metalake, catalog, schema }))
+ break
+ case 'messaging':
+ dispatch(fetchTopics({ init: true, page: 'schemas', metalake, catalog, schema }))
+ break
+ case 'model':
+ dispatch(fetchModels({ init: true, page: 'schemas', metalake, catalog, schema }))
+ break
+ default:
+ break
+ }
+ dispatch(getSchemaDetails({ init: true, metalake, catalog, schema }))
+ dispatch(
+ getCurrentEntityTags({
+ init: true,
+ metalake,
+ metadataObjectType: 'schema',
+ metadataObjectFullName: `${catalog}.${schema}`,
+ details: true
+ })
+ )
+ dispatch(
+ getCurrentEntityPolicies({
+ init: true,
+ metalake,
+ metadataObjectType: 'schema',
+ metadataObjectFullName: `${catalog}.${schema}`,
+ details: true
+ })
+ )
+ }
+
+ if (paramsSize === 5 && catalog && catalogType && schema && (table || fileset || topic || model)) {
+ if (!store.catalogs.length) {
+ await dispatch(fetchCatalogs({ metalake }))
+ await dispatch(fetchSchemas({ metalake, catalog, catalogType }))
+ }
+ switch (catalogType) {
+ case 'relational':
+ await dispatch(fetchTables({ init: true, page: 'schemas', metalake, catalog, schema }))
+ await dispatch(resetActivatedDetails())
+ await dispatch(getTableDetails({ init: true, metalake, catalog, schema, table }))
+ await dispatch(
+ getCurrentEntityTags({
+ init: true,
+ metalake,
+ metadataObjectType: 'table',
+ metadataObjectFullName: `${catalog}.${schema}.${table}`
+ })
+ )
+ await dispatch(
+ getCurrentEntityPolicies({
+ init: true,
+ metalake,
+ metadataObjectType: 'table',
+ metadataObjectFullName: `${catalog}.${schema}.${table}`,
+ details: true
+ })
+ )
+ break
+ case 'fileset':
+ await dispatch(fetchFilesets({ init: true, page: 'schemas', metalake, catalog, schema }))
+ await dispatch(getFilesetDetails({ init: true, metalake, catalog, schema, fileset }))
+ await dispatch(
+ getCurrentEntityTags({
+ init: true,
+ metalake,
+ metadataObjectType: 'fileset',
+ metadataObjectFullName: `${catalog}.${schema}.${fileset}`,
+ details: true
+ })
+ )
+ await dispatch(
+ getCurrentEntityPolicies({
+ init: true,
+ metalake,
+ metadataObjectType: 'fileset',
+ metadataObjectFullName: `${catalog}.${schema}.${fileset}`,
+ details: true
+ })
+ )
+ break
+ case 'messaging':
+ await dispatch(fetchTopics({ init: true, page: 'schemas', metalake, catalog, schema }))
+ await dispatch(getTopicDetails({ init: true, metalake, catalog, schema, topic }))
+ await dispatch(
+ getCurrentEntityTags({
+ init: true,
+ metalake,
+ metadataObjectType: 'topic',
+ metadataObjectFullName: `${catalog}.${schema}.${topic}`,
+ details: true
+ })
+ )
+ await dispatch(
+ getCurrentEntityPolicies({
+ init: true,
+ metalake,
+ metadataObjectType: 'topic',
+ metadataObjectFullName: `${catalog}.${schema}.${topic}`,
+ details: true
+ })
+ )
+ break
+ case 'model':
+ await dispatch(fetchModels({ init: true, page: 'schemas', metalake, catalog, schema }))
+ await dispatch(fetchModelVersions({ init: true, metalake, catalog, schema, model }))
+ await dispatch(getModelDetails({ init: true, metalake, catalog, schema, model }))
+ await dispatch(
+ getCurrentEntityTags({
+ init: true,
+ metalake,
+ metadataObjectType: 'model',
+ metadataObjectFullName: `${catalog}.${schema}.${model}`,
+ details: true
+ })
+ )
+ await dispatch(
+ getCurrentEntityPolicies({
+ init: true,
+ metalake,
+ metadataObjectType: 'model',
+ metadataObjectFullName: `${catalog}.${schema}.${model}`,
+ details: true
+ })
+ )
+ break
+ default:
+ break
+ }
+ }
+ if (paramsSize === 6 && version) {
+ if (!store.catalogs.length) {
+ await dispatch(fetchCatalogs({ metalake }))
+ await dispatch(fetchSchemas({ metalake, catalog, catalogType }))
+ await dispatch(fetchModels({ init: true, page: 'schemas', metalake, catalog, schema }))
+ }
+ dispatch(getVersionDetails({ init: true, metalake, catalog, schema, model, version }))
+ }
+ await dispatch(setActivatedDetailsLoading(false))
+ }
+ }
+ fetchDependsData()
+
+ dispatch(setSelectedNodes(routeParams.catalog ? [buildNodePath(routeParams)] : []))
+ }, [searchParams, dispatch])
+
+ return (
+ <SectionContainer classProps='flex w-full'>
+ <Splitter>
+ <Splitter.Panel defaultSize='380' min='10%' max='50%'>
+ <div className='h-full bg-white p-6'>
+ <TreeComponent ref={treeRef} />
+ </div>
+ </Splitter.Panel>
+ <Splitter.Panel>
+ <div className='h-full bg-white'>
+ <TreeRefContext.Provider value={treeRef}>
+ <RightContent />
+ </TreeRefContext.Provider>
+ </div>
+ </Splitter.Panel>
+ </Splitter>
+ </SectionContainer>
+ )
+}
+
+export default CatalogsListPage
diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js
new file mode 100644
index 0000000000..9ec3715051
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js
@@ -0,0 +1,627 @@
+/*
+ * 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.
+ */
+
+'use client'
+import React, { useEffect, useRef, useState } from 'react'
+
+import {
+ CheckCircleFilled,
+ ExclamationCircleFilled,
+ InfoCircleOutlined,
+ LeftOutlined,
+ RightOutlined
+} from '@ant-design/icons'
+import { Button, Cascader, Flex, Form, Input, Modal, Select, Spin, Steps, Tooltip, Typography, theme } from 'antd'
+import { useScrolling } from 'react-use'
+
+import Icons from '@/components/Icons'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { dialogContentMaxHeigth, validateMessages, mismatchName } from '@/config'
+import {
+ checkCatalogIcon,
+ entityDefaultProps,
+ messagingProviders,
+ providerBase,
+ rangerDefaultProps,
+ regionOptions,
+ relationalProviders
+} from '@/config/catalog'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { createCatalog, updateCatalog, getCatalogDetails, testCatalogConnection } from '@/lib/store/metalakes'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+export default function CreateCatalogDialog({ ...props }) {
+ const { open, setOpen, metalake, catalogType, editCatalog, init } = props
+ const [step, setCurrentStep] = useState(0)
+ const [cacheData, setCacheData] = useState()
+ const [providers, setProviders] = useState([])
+ const [isTestLoading, setIsTestLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [testResult, setTestResult] = useState({ code: -1, message: '' })
+ const { token } = theme.useToken()
+ const testRef = useRef(null)
+ const scrollRef = useRef(null)
+ const loadedRef = useRef(false)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+
+ const [form] = Form.useForm()
+ const currentProvider = Form.useWatch('provider', form)
+ const catalogBackend = Form.useWatch('catalog-backend', { form, preserve: true })
+ const authType = Form.useWatch('authentication.type', { form, preserve: true })
+ const values = Form.useWatch([], form)
+ const dispatch = useAppDispatch()
+ const isShowTestConnect = ['fileset', 'model'].includes(catalogType) || currentProvider === 'lakehouse-generic'
+
+ const defaultValues = {
+ name: '',
+ type: catalogType,
+ provider: '',
+ comment: '',
+ properties: []
+ }
+
+ const getDialogDescription = () => {
+ if (editCatalog) {
+ return `Edit the catalog ${editCatalog}.`
+ }
+
+ if (step === 0 && !['model', 'fileset'].includes(catalogType)) {
+ return 'Select a data source provider to create the data catalog.'
+ }
+
+ return 'Fill-in the information into the following fields to create a data catalog.'
+ }
+
+ useResetFormOnCloseModal(
+ {
+ form,
+ open
+ },
+ setCurrentStep
+ )
+
+ const isHidden = prop => {
+ const { parentField, hide, required, key } = prop
+ switch (parentField) {
+ case 'catalog-backend':
+ return catalogBackend && hide && hide.includes(catalogBackend)
+ case 'authentication.type':
+ return !authType || (hide && hide.includes(authType))
+ default:
+ return !(!editCatalog || ['region', 'location'].includes(key) || required)
+ }
+ }
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(scrollTop > 0)
+ }
+ }
+ }
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ useEffect(() => {
+ if (open && editCatalog && metalake && !loadedRef.current) {
+ loadedRef.current = true
+
+ const initLoad = async () => {
+ setIsLoading(true)
+ try {
+ if (!['fileset', 'model'].includes(catalogType)) {
+ setCurrentStep(1)
+ }
+
+ const { payload } = await dispatch(getCatalogDetails({ metalake, catalog: editCatalog }))
+ const catalog = payload?.catalog || {}
+ setCacheData(catalog)
+ form.setFieldValue('name', catalog.name)
+ form.setFieldValue('provider', catalog.provider)
+ form.setFieldValue('comment', catalog.comment)
+ let index = 0
+ Object.entries(catalog.properties || {}).forEach(([key, value]) => {
+ if (providerBase[catalog.provider]?.defaultProps?.find(item => item.key === key)) {
+ form.setFieldValue(`${key}`, value)
+ } else {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ const disabled = rangerDefaultProps.find(item => item.key === key)?.disabled
+ form.setFieldValue(['properties', index, 'disabled'], disabled)
+ const select = rangerDefaultProps.find(item => item.key === key)?.select
+ form.setFieldValue(['properties', index, 'select'], select)
+ index++
+ }
+ })
+ handScroll()
+ setIsLoading(false)
+ } catch (e) {
+ setIsLoading(false)
+ }
+ }
+ initLoad()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editCatalog, metalake])
+
+ useEffect(() => {
+ switch (catalogType) {
+ case 'relational':
+ setProviders(relationalProviders)
+ break
+ case 'messaging':
+ setProviders(messagingProviders)
+ break
+ case 'fileset':
+ form.setFieldValue('provider', 'hadoop')
+ default:
+ return
+ }
+ }, [catalogType])
+
+ useEffect(() => {
+ if (open && !editCatalog && currentProvider === 'hadoop') {
+ const defaultOptionalProps = entityDefaultProps[currentProvider] || []
+ if (defaultOptionalProps.length) {
+ defaultOptionalProps.forEach((prop, index) => {
+ form.setFieldValue(['properties', index, 'key'], prop.key)
+ form.setFieldValue(['properties', index, 'description'], prop.description)
+ form.setFieldValue(['properties', index, 'select'], prop.select)
+ form.setFieldValue(['properties', index, 'multiple'], prop.multiple)
+ form.setFieldValue(['properties', index, 'value'], prop.defaultValue)
+ if (prop.selectBefore?.length) {
+ form.setFieldValue(['properties', index, 'selectBefore'], prop.selectBefore)
+ form.setFieldValue(['properties', index, 'prefix'], prop.selectBefore[0])
+ }
+ })
+ }
+ }
+ }, [open, editCatalog, currentProvider, entityDefaultProps])
+
+ const nextStep = value => {
+ setCurrentStep(value)
+ }
+
+ const handleNext = () => {
+ if (step === 1) return
+ nextStep(step + 1)
+ }
+
+ const handlePre = () => {
+ if (step === 0) return
+ nextStep(step - 1)
+ }
+
+ const getSubmitData = () => {
+ const defaultProps =
+ (catalogType === 'model'
+ ? providerBase['model'].defaultProps
+ : providerBase[currentProvider]?.defaultProps?.filter(item => !isHidden(item))) || []
+
+ return {
+ name: values.name.trim(),
+ type: catalogType,
+ provider: values.provider,
+ comment: values.comment,
+ properties: [...values.properties, ...defaultProps].reduce((acc, item) => {
+ if (item.key === 'location' || item.key.startsWith('location-')) {
+ if (item.value) {
+ acc[item.key] = item.prefix ? item.prefix + item.value : item.value
+ }
+ } else {
+ acc[item.key] = values[item.key] || (item.value instanceof Array ? item.value.join(',') : item.value)
+ }
+
+ return acc
+ }, {})
+ }
+ }
+
+ const handleTestConnect = async () => {
+ setTestResult({ code: -1, message: '' })
+ form
+ .validateFields()
+ .then(async () => {
+ setIsTestLoading(true)
+ try {
+ const submitData = getSubmitData()
+
+ const {
+ payload: { code, message }
+ } = await dispatch(testCatalogConnection({ data: submitData, metalake }))
+ setIsTestLoading(false)
+ setTestResult({ code, message })
+ } catch {
+ setIsTestLoading(false)
+ }
+ })
+ .catch(info => {
+ console.error(info)
+ })
+ }
+
+ useEffect(() => {
+ if (testRef.current) {
+ testRef.current.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start',
+ inline: 'start'
+ })
+ }
+ }, [])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+ const submitData = getSubmitData()
+ if (editCatalog) {
+ // update catalog
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ await dispatch(updateCatalog({ init, metalake, catalog: cacheData.name, data: reqData }))
+ }
+ } else {
+ await dispatch(createCatalog({ data: submitData, metalake }))
+ }
+ setOpen(false)
+ setConfirmLoading(false)
+ })
+ .catch(info => {
+ console.error(info)
+ setConfirmLoading(false)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ const renderStepIcons = iconType => {
+ const calalogIcon = currentProvider ? (
+ renderIcon({ type: catalogType, provider: currentProvider, small: true })
+ ) : (
+ <Icons.iconify icon='healthicons:provider-fst-outline' className='size-6' />
+ )
+
+ return (
+ <div className='step-icon flex size-8 items-center justify-center rounded bg-gray-100 text-gray-400 hover:text-defaultPrimary step-icon-default-theme'>
+ {iconType === 'provider' && calalogIcon}
+ {iconType === 'configure' && <Icons.iconify icon='uil:setting' className='size-6' />}
+ </div>
+ )
+ }
+
+ const renderIcon = ({ type, provider, small = false }) => {
+ const calalogIcon = checkCatalogIcon({ type: type, provider: provider })
+ if (calalogIcon.startsWith('custom-icons-')) {
+ switch (calalogIcon) {
+ case 'custom-icons-hive':
+ return <Icons.hive className={small ? 'size-6' : 'size-12'}></Icons.hive>
+ case 'custom-icons-doris':
+ return <Icons.doris className={small ? 'size-6' : 'size-12'}></Icons.doris>
+ case 'custom-icons-paimon':
+ return <Icons.paimon className={small ? 'size-6' : 'size-12'}></Icons.paimon>
+ case 'custom-icons-hudi':
+ return <Icons.hudi className={small ? 'size-6' : 'size-12'}></Icons.hudi>
+ case 'custom-icons-oceanbase':
+ return <Icons.oceanbase className={small ? 'size-6' : 'size-12'}></Icons.oceanbase>
+ case 'custom-icons-starrocks':
+ return <Icons.starrocks className={small ? 'size-6' : 'size-12'}></Icons.starrocks>
+ case 'custom-icons-lakehouse':
+ return <Icons.lakehouse className={small ? 'size-6' : 'size-12'}></Icons.lakehouse>
+ }
+ } else {
+ return <Icons.iconify icon={calalogIcon} className={small ? 'size-6' : 'size-12'} />
+ }
+ }
+
+ const renderProvider = (provider, idx) => {
+ return (
+ <div
+ key={idx}
+ data-refer={`catalog-provider-${provider.value}`}
+ className={cn('provider-card flex items-center justify-between', {
+ 'actived-default': provider.value === currentProvider,
+ disabled: editCatalog
+ })}
+ onClick={() => handleSelectProvider(provider.value)}
+ >
+ <div className='flex space-x-3'>
+ <div className='flex size-16 items-center justify-center rounded bg-gray-100 text-gray-400 hover:text-defaultPrimary'>
+ {renderIcon({ type: catalogType, provider: provider.value })}
+ </div>
+ <div className='default-theme-text'>
+ <Paragraph className={cn('text-base', { '!text-white': provider.value === currentProvider })}>
+ {provider.label}
+ </Paragraph>
+ <Paragraph
+ type='secondary'
+ className={cn('text-sm', { '!text-white': provider.value === currentProvider })}
+ >
+ {provider.description}
+ </Paragraph>
+ </div>
+ </div>
+ {provider.value === currentProvider ? (
+ <Icons.CircleCheckBig className='provider-radio size-4 text-white default-theme-radio' />
+ ) : (
+ <Icons.Circle className='provider-radio size-4 text-gray-400 default-theme-radio' />
+ )}
+ </div>
+ )
+ }
+
+ const handleSelectProvider = provider => {
+ if (editCatalog) return
+ setTestResult({ code: -1, message: '' })
+ form.resetFields()
+ form.setFieldValue('provider', provider)
+ if (provider === 'lakehouse-paimon') {
+ form.setFieldValue('catalog-backend', 'filesystem')
+ } else if (provider === 'lakehouse-iceberg') {
+ form.setFieldValue('catalog-backend', 'hive')
+ } else if (provider === 'lakehouse-hudi') {
+ form.setFieldValue('catalog-backend', 'hms')
+ } else {
+ form.setFieldValue('catalog-backend', '')
+ }
+ }
+
+ const filter = (inputValue, path) =>
+ path.some(option => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1)
+
+ return (
+ <>
+ <Modal
+ title={
+ !editCatalog
+ ? `Create Catalog - ${catalogType.charAt(0).toUpperCase() + catalogType.slice(1)}`
+ : `Edit Catalog - ${catalogType.charAt(0).toUpperCase() + catalogType.slice(1)}`
+ }
+ open={open}
+ onOk={handleSubmit}
+ width={1000}
+ maskClosable={false}
+ keyboard={false}
+ onCancel={handleCancel}
+ footer={null}
+ >
+ <Paragraph type='secondary'>{getDialogDescription()}</Paragraph>
+ <Flex gap='middle' align='start'>
+ <Steps
+ current={step}
+ direction='vertical'
+ className='w-1/5 grow-0'
+ items={
+ ['model', 'fileset'].includes(catalogType)
+ ? [
+ {
+ title: 'Configure',
+ icon: renderStepIcons('configure'),
+ description: 'Catalog Configure'
+ }
+ ]
+ : [
+ {
+ title: 'Provider',
+ icon: renderStepIcons('provider'),
+ description: providerBase[currentProvider]?.label || 'Select Provider'
+ },
+ {
+ title: 'Configure',
+ icon: renderStepIcons('configure'),
+ description: 'Catalog Configure'
+ }
+ ]
+ }
+ />
+ <div
+ className={cn('relative w-4/5 grow', {
+ 'after:pointer-events-none after:absolute after:bottom-[10px] after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:pointer-events-none before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='catalogForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='provider'
+ rules={[{ required: catalogType !== 'model' }]}
+ className={
+ step === 1 || (step === 0 && ['fileset', 'model'].includes(catalogType)) ? 'hidden' : 'block'
+ }
+ >
+ <div>
+ <Paragraph className='text-base'>Select Provider</Paragraph>
+ {providers.map((provider, idx) => renderProvider(provider, idx))}
+ </div>
+ </Form.Item>
+ <div className={step === 0 && !['fileset', 'model'].includes(catalogType) ? 'hidden' : 'mb-4 block'}>
+ <Form.Item
+ name='name'
+ label='Catalog Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'catalog name' }}
+ data-refer='catalog-name-field'
+ >
+ <Input placeholder={mismatchName} disabled={!init} />
+ </Form.Item>
+ {providerBase[catalogType === 'model' ? 'model' : currentProvider]?.defaultProps
+ ?.filter(p => !isHidden(p))
+ .map((prop, idx) => {
+ return (
+ <Form.Item
+ name={prop.key}
+ label={prop.label}
+ key={idx}
+ rules={[
+ {
+ required:
+ prop.required ||
+ (prop.key === 'warehouse' &&
+ currentProvider === 'lakehouse-iceberg' &&
+ ['hive', 'jdbc'].includes(catalogBackend))
+ }
+ ]}
+ messageVariables={{ label: prop.label.toLowerCase() }}
+ initialValue={prop.value}
+ >
+ {prop.select ? (
+ <Select
+ data-refer={`catalog-props-${prop.key}`}
+ disabled={editCatalog && prop.required}
+ placeholder={prop.description ? prop.description : ''}
+ >
+ {prop.select?.map(item => (
+ <Select.Option value={item} key={item}>
+ {item}
+ </Select.Option>
+ ))}
+ </Select>
+ ) : (
+ <Input
+ data-refer={`catalog-props-${prop.key}`}
+ placeholder={prop.description ? prop.description : ''}
+ disabled={prop.disabled}
+ type={prop.key === 'jdbc-password' ? 'password' : 'text'}
+ />
+ )}
+ </Form.Item>
+ )
+ })}
+ <Form.Item name='comment' label='Comment' data-refer='catalog-comment-field'>
+ <TextArea />
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem
+ fields={fields}
+ subOpt={subOpt}
+ form={form}
+ isEdit={!!editCatalog}
+ theme={theme}
+ isDisable={false}
+ provider={currentProvider}
+ />
+ )}
+ </Form.List>
+ </Form.Item>
+ {!editCatalog && !isShowTestConnect && (
+ <Tooltip
+ title='Test the connection to the source system with the given information.'
+ placement='right'
+ >
+ <Button
+ type='primary'
+ onClick={handleTestConnect}
+ loading={isTestLoading}
+ icon={<InfoCircleOutlined />}
+ iconPosition='end'
+ >
+ Test Connection
+ </Button>
+ </Tooltip>
+ )}
+ {testResult.code !== -1 && !isShowTestConnect && (
+ <p
+ ref={testRef}
+ style={{ color: testResult.code === 0 ? token.colorSuccessText : token.colorWarningText }}
+ >
+ {testResult.code === 0 ? <CheckCircleFilled /> : <ExclamationCircleFilled />}{' '}
+ {testResult.code === 0 ? 'Test Success' : testResult.message}
+ </p>
+ )}
+ </div>
+ </Form>
+ </Spin>
+ </div>
+ <div className='mt-4 flex justify-between'>
+ <div className='grow'>
+ {(step === 1 || (step === 0 && ['fileset', 'model'].includes(catalogType))) && (
+ <div className='flex justify-between'>
+ {editCatalog || ['fileset', 'model'].includes(catalogType) ? (
+ <div></div>
+ ) : (
+ <Button onClick={handlePre} icon={<LeftOutlined />}>
+ Previous
+ </Button>
+ )}
+ <Button
+ type='primary'
+ onClick={handleSubmit}
+ loading={confirmLoading}
+ data-refer='handle-submit-catalog'
+ >
+ Submit
+ </Button>
+ </div>
+ )}
+ </div>
+ {step === 0 && !['fileset', 'model'].includes(catalogType) && (
+ <Button
+ type='primary'
+ onClick={handleNext}
+ icon={<RightOutlined />}
+ iconPosition='end'
+ disabled={!currentProvider}
+ data-refer='handle-next-catalog'
+ >
+ Next
+ </Button>
+ )}
+ </div>
+ </div>
+ </Flex>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateFilesetDialog.js b/web-v2/web/src/app/catalogs/rightContent/CreateFilesetDialog.js
new file mode 100644
index 0000000000..da357f5ed3
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/CreateFilesetDialog.js
@@ -0,0 +1,433 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { useContext, useEffect, useRef, useState } from 'react'
+
+import { InfoCircleOutlined } from '@ant-design/icons'
+import { Flex, Form, Input, Modal, Radio, Select, Space, Spin, Switch, Tooltip, Typography } from 'antd'
+import { useScrolling } from 'react-use'
+import { TreeRefContext } from '../page'
+import Icons from '@/components/Icons'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { dialogContentMaxHeigth, validateMessages, mismatchName } from '@/config'
+import { filesetLocationProviders } from '@/config/catalog'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { createFileset, updateFileset, getFilesetDetails } from '@/lib/store/metalakes'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+export default function CreateFilesetDialog({ ...props }) {
+ const { open, setOpen, metalake, catalog, catalogType, schema, editFileset, locationProviders, init } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const treeRef = useContext(TreeRefContext)
+ const scrollRef = useRef(null)
+ const loadedRef = useRef(false)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+ const dispatch = useAppDispatch()
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ const defaultLocationName = Form.useWatch(['properties'], form)?.filter(
+ item => item?.key === 'default-location-name'
+ )[0]
+ const storageLocationsItems = Form.useWatch(['storageLocations'], form)
+ const currentSelectBefore = locationProviders?.map(p => filesetLocationProviders[p]) || []
+ const selectBefore = [...new Set(['file:/', 'hdfs://', ...currentSelectBefore])]
+
+ const defaultValues = {
+ name: '',
+ type: 'managed',
+ storageLocations: [{ name: '', location: '', prefix: selectBefore[0], defaultLocation: true }],
+ comment: '',
+ properties: []
+ }
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(scrollTop > 0)
+ }
+ }
+ }
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ // const { trigger: getEditFileset } = useFilesetAsync()
+
+ useEffect(() => {
+ if (open && editFileset && !loadedRef.current) {
+ loadedRef.current = true
+
+ const initLoad = async () => {
+ setIsLoading(true)
+ try {
+ const {
+ payload: { fileset }
+ } = await dispatch(getFilesetDetails({ metalake, catalog, schema, fileset: editFileset }))
+ setCacheData(fileset)
+ form.setFieldValue('name', fileset.name)
+ form.setFieldValue('type', fileset.type)
+ form.setFieldValue('comment', fileset.comment)
+ let locationIndex = 0
+ Object.entries(fileset.storageLocations || {}).forEach(([name, location]) => {
+ form.setFieldValue(['storageLocations', locationIndex, 'name'], name)
+ const prefixs = Object.values(filesetLocationProviders)
+ const prefix = prefixs.find(pre => location.startsWith(pre))
+ form.setFieldValue(['storageLocations', locationIndex, 'prefix'], prefix)
+ form.setFieldValue(['storageLocations', locationIndex, 'location'], location.replace(prefix, ''))
+ if (fileset.properties['default-location-name'] === name) {
+ form.setFieldValue(['storageLocations', locationIndex, 'defaultLocation'], true)
+ } else {
+ form.setFieldValue(['storageLocations', locationIndex, 'defaultLocation'], false)
+ }
+ locationIndex++
+ })
+ let index = 0
+ Object.entries(fileset.properties || {}).forEach(([key, value]) => {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ })
+ setIsLoading(false)
+ } catch (e) {
+ setIsLoading(false)
+ }
+ }
+ initLoad()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editFileset, metalake, catalog, schema])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+ let defaultLocation = ''
+
+ const submitData = {
+ name: values.name.trim(),
+ type: values.type,
+ storageLocations: values.storageLocations.reduce((acc, item) => {
+ if (item.name && item.location) {
+ acc[item.name] = item.prefix && item.location ? item.prefix + item.location : item.location
+ if (item.defaultLocation && !values.properties['default-location-name']) {
+ defaultLocation = item.name
+ }
+ }
+
+ return acc
+ }, {}),
+ comment: values.comment,
+ tagsToAdd: values.tags,
+ properties: values.properties.reduce((acc, item) => {
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {})
+ }
+ defaultLocation && (submitData.properties['default-location-name'] = defaultLocation)
+ if (editFileset) {
+ // update fileset
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ await dispatch(
+ updateFileset({ data: reqData, metalake, catalog, catalogType, schema, fileset: cacheData.name })
+ )
+ }
+ } else {
+ await dispatch(createFileset({ data: submitData, metalake, catalog, catalogType, schema }))
+ }
+ treeRef.current.onLoadData({ key: `${catalog}/${schema}`, nodeType: 'schema' })
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ const onChangeDefaultLocation = (checked, index) => {
+ const fields = form.getFieldValue('storageLocations')
+ fields.forEach((item, i) => {
+ if (i !== index) {
+ item.defaultLocation = false
+ } else {
+ item.defaultLocation = checked
+ }
+ })
+ form.setFieldValue(['storageLocations'], fields)
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editFileset ? 'Create Fileset' : 'Edit Fileset'}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ okButtonProps={{ 'data-refer': 'handle-submit-fileset' }}
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>
+ {!editFileset ? 'Create a new fileset.' : `Edit the fileset ${editFileset}.`}
+ </Paragraph>
+ <div
+ className={cn('relative', {
+ 'after:absolute after:-bottom-10 after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='filesetForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Fileset Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'fileset name' }}
+ >
+ <Input data-refer='fileset-name-field' placeholder={mismatchName} disabled={init} />
+ </Form.Item>
+ <Form.Item
+ name='type'
+ label='Type'
+ tooltip={{
+ title: (
+ <>
+ <div>
+ When the fileset type is set to 'Managed', the underlying storage location associated with it
+ will be deleted upon the deletion of the fileset. Conversely, if the fileset type is set to
+ 'External', the storage location linked to it will not be deleted when the fileset is removed.
+ </div>
+ </>
+ ),
+ placement: 'right',
+ icon: <InfoCircleOutlined />
+ }}
+ >
+ <Radio.Group disabled={!!editFileset}>
+ <Radio value={'managed'}>Managed</Radio>
+ <Radio value={'external'}>External</Radio>
+ </Radio.Group>
+ </Form.Item>
+ <Form.Item
+ label='Storage Locations'
+ tooltip={{
+ title: (
+ <>
+ <div>
+ 1. The 'Storage Location' refers to the physical location where the fileset is stored.
+ </div>
+ <div>
+ 2. It is optional if the fileset is 'Managed' type and a storage location is already specified
+ at the parent catalog or schema level.
+ </div>
+ <div>
+ 3. It becomes mandatory if the fileset type is 'External' or no storage location is defined at
+ the parent level.
+ </div>
+ </>
+ ),
+ icon: <InfoCircleOutlined />
+ }}
+ >
+ <Form.List name='storageLocations'>
+ {(fields, subOpt) => (
+ <div className='flex w-full flex-col gap-2'>
+ {fields.map(({ key, name, ...restField }) => (
+ <Form.Item label={null} className='align-items-center mb-1' key={key}>
+ <Flex gap='small' align='start' justify='space-between' key={key}>
+ <Form.Item
+ name={[name, 'name']}
+ className='mb-0 w-full grow'
+ rules={[
+ {
+ required: values?.type === 'external',
+ whitespace: true,
+ message: 'The storage location name is required!'
+ }
+ ]}
+ {...restField}
+ >
+ <Input
+ data-refer={`storageLocations-name-${name}`}
+ placeholder='Name'
+ disabled={!!editFileset}
+ />
+ </Form.Item>
+ <Form.Item
+ name={[name, 'location']}
+ className='mb-0 w-full grow'
+ rules={[
+ {
+ required: values?.type === 'external',
+ whitespace: true,
+ message: 'The storage location is required!'
+ }
+ ]}
+ {...restField}
+ >
+ <Input
+ data-refer={`storageLocations-location-${name}`}
+ addonBefore={
+ selectBefore.length ? (
+ <Form.Item noStyle name={[name, 'prefix']} label=''>
+ <Select
+ data-refer={`storageLocations-prefix-${name}`}
+ defaultValue={selectBefore[0]}
+ disabled={!!editFileset}
+ >
+ {selectBefore.map(item => (
+ <Select.Option key={item} value={item} data-refer={`prefix-option-${item}`}>
+ {item}
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ ) : null
+ }
+ placeholder='Location'
+ disabled={!!editFileset}
+ />
+ </Form.Item>
+ {!defaultLocationName &&
+ storageLocationsItems?.length > 1 &&
+ storageLocationsItems[0].name &&
+ storageLocationsItems[0].location && (
+ <Form.Item name={[name, 'defaultLocation']} className='mb-0 grow-0' {...restField}>
+ <Tooltip title='Default location'>
+ <Switch
+ size='small'
+ onChange={checked => onChangeDefaultLocation(checked, name)}
+ disabled={!!editFileset}
+ checked={storageLocationsItems?.[name]?.defaultLocation === true}
+ />
+ </Tooltip>
+ </Form.Item>
+ )}
+ {name === 0 ? (
+ <Icons.Plus
+ className={cn(
+ 'size-8 grow-0 cursor-pointer text-gray-400 hover:text-defaultPrimary',
+ {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed': !!editFileset
+ }
+ )}
+ onClick={() => {
+ if (!!editFileset) return
+ subOpt.add({
+ name: '',
+ location: '',
+ prefix: selectBefore[0],
+ defaultLocation: false
+ })
+ }}
+ />
+ ) : (
+ <Icons.Minus
+ className={cn(
+ 'size-8 grow-0 cursor-pointer text-gray-400 hover:text-defaultPrimary',
+ {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed': !!editFileset
+ }
+ )}
+ onClick={() => {
+ if (!!editFileset) return
+ subOpt.remove(name)
+ }}
+ />
+ )}
+ </Flex>
+ </Form.Item>
+ ))}
+ </div>
+ )}
+ </Form.List>
+ </Form.Item>
+ <Form.Item name='comment' label='Comment'>
+ <TextArea data-refer='fileset-comment-field' />
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem
+ fields={fields}
+ subOpt={subOpt}
+ form={form}
+ isEdit={!!editFileset}
+ isDisable={false}
+ provider={'fileset'}
+ />
+ )}
+ </Form.List>
+ </Form.Item>
+ </Form>
+ </Spin>
+ </div>
+ </div>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateSchemaDialog.js b/web-v2/web/src/app/catalogs/rightContent/CreateSchemaDialog.js
new file mode 100644
index 0000000000..d9910e3b88
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/CreateSchemaDialog.js
@@ -0,0 +1,250 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { useContext, useEffect, useRef, useState } from 'react'
+
+import { Form, Input, Modal, Spin, Typography } from 'antd'
+import { useScrolling } from 'react-use'
+
+import { TreeRefContext } from '../page'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { dialogContentMaxHeigth, validateMessages, mismatchName } from '@/config'
+import { filesetLocationProviders } from '@/config/catalog'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { createSchema, updateSchema, getSchemaDetails } from '@/lib/store/metalakes'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+const defaultValues = {
+ name: '',
+ comment: '',
+ properties: []
+}
+
+export default function CreateSchemaDialog({ ...props }) {
+ const { open, setOpen, metalake, catalog, catalogType, provider, locationProviders, editSchema, init } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const treeRef = useContext(TreeRefContext)
+ const scrollRef = useRef(null)
+ const loadedRef = useRef(false)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+ const currentSelectBefore = locationProviders?.map(p => filesetLocationProviders[p])
+ const selectBefore = [...new Set(['file:/', 'hdfs://', ...currentSelectBefore])]
+ const dispatch = useAppDispatch()
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(scrollTop > 0)
+ }
+ }
+ }
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ useEffect(() => {
+ if (open && editSchema && !loadedRef.current) {
+ loadedRef.current = true
+
+ const initLoad = async () => {
+ setIsLoading(true)
+ try {
+ const {
+ payload: { schema }
+ } = await dispatch(getSchemaDetails({ metalake, catalog, schema: editSchema }))
+ setCacheData(schema)
+ form.setFieldValue('name', schema.name)
+ form.setFieldValue('comment', schema.comment)
+ let index = 0
+ Object.entries(schema.properties || {}).forEach(([key, value]) => {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ })
+ handScroll()
+ setIsLoading(false)
+ } catch (e) {
+ setIsLoading(false)
+ }
+ }
+ initLoad()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editSchema, metalake, catalog])
+
+ useEffect(() => {
+ if (open && !editSchema && locationProviders?.length) {
+ form.setFieldValue(['properties', 0, 'key'], 'location')
+ form.setFieldValue(['properties', 0, 'description'], 'Hadoop catalog storage location')
+ form.setFieldValue(['properties', 0, 'selectBefore'], selectBefore)
+ form.setFieldValue(['properties', 0, 'prefix'], selectBefore?.[0])
+ }
+ }, [open, editSchema, provider, locationProviders])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim(),
+ comment: values.comment,
+ properties:
+ values.properties &&
+ values.properties.reduce((acc, item) => {
+ if (item.key === 'location' || item.key.startsWith('location-')) {
+ if (item.value) {
+ acc[item.key] = item.prefix ? item.prefix + item.value : item.value
+ }
+ } else {
+ acc[item.key] = values[item.key] || item.value
+ }
+
+ return acc
+ }, {})
+ }
+ if (editSchema) {
+ // update schema
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ await dispatch(
+ updateSchema({ init, metalake, catalog, catalogType, schema: cacheData.name, data: reqData })
+ )
+ }
+ } else {
+ await dispatch(createSchema({ data: submitData, metalake, catalog, catalogType }))
+ }
+ !editSchema && treeRef.current.onLoadData({ key: catalog, nodeType: 'catalog', inUse: 'true' }, true)
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editSchema ? 'Create Schema' : 'Edit Schema'}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ okButtonProps={{ 'data-refer': 'handle-submit-schema' }}
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>
+ {!editSchema ? `Create a new schema in ${catalog}.` : `Edit the schema ${editSchema} in ${catalog}.`}
+ </Paragraph>
+ <div
+ className={cn('relative', {
+ 'after:absolute after:-bottom-10 after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='schemaForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Schema Name'
+ data-refer='schema-name-field'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'schema name' }}
+ >
+ <Input placeholder={mismatchName} disabled={editSchema} />
+ </Form.Item>
+ {!['jdbc-mysql', 'lakehouse-paimon'].includes(provider) && (
+ <Form.Item name='comment' label='Comment' data-refer='schema-comment-field'>
+ <TextArea disabled={editSchema} />
+ </Form.Item>
+ )}
+ {!['jdbc-postgresql', 'lakehouse-paimon', 'kafka', 'jdbc-mysql'].includes(provider) && (
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem
+ fields={fields}
+ subOpt={subOpt}
+ form={form}
+ isEdit={!!editSchema}
+ isDisable={['jdbc-doris'].includes(provider) && !!editSchema}
+ selectBefore={selectBefore}
+ />
+ )}
+ </Form.List>
+ </Form.Item>
+ )}
+ </Form>
+ </Spin>
+ </div>
+ </div>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateTableDialog.js b/web-v2/web/src/app/catalogs/rightContent/CreateTableDialog.js
new file mode 100644
index 0000000000..e29ff98af6
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/CreateTableDialog.js
@@ -0,0 +1,1534 @@
+/*
+ * 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.
+ */
+
+/**
+ * CreateTableDialog component
+ *
+ * A dialog component for creating and editing tables in a metalake catalog.
+ *
+ * Features:
+ * - Create new tables or edit existing ones
+ * - Configure table name, comment and properties
+ * - Add/edit/remove table columns with name, type, nullable, and comment fields
+ * - Add/edit/remove custom table properties
+ * - Responsive dialog layout
+ *
+ * Props:
+ * @param {boolean} open - Controls dialog visibility
+ * @param {function} setOpen - Function to update dialog visibility
+ * @param {string} type - Dialog mode: 'create' or 'edit'
+ * @param {object} data - Table data for edit mode
+ */
+
+'use client'
+
+import React, { useContext, useEffect, useRef, useState } from 'react'
+
+import { PlusOutlined } from '@ant-design/icons'
+import { Button, Flex, Form, Input, InputNumber, Modal, Pagination, Select, Spin, Switch, Tabs, Typography } from 'antd'
+import { useScrolling } from 'react-use'
+import { TreeRefContext } from '../page'
+import Icons from '@/components/Icons'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import ColumnTypeComponent from '@/components/ColumnTypeComponent'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { validateMessages, mismatchName } from '@/config'
+import {
+ ColumnSpesicalType,
+ ColumnType,
+ ColumnTypeForMysql,
+ ColumnTypeSupportAutoIncrement,
+ ColumnWithParamType,
+ UnsupportColumnType,
+ autoIncrementInfoMap,
+ defaultValueSupported,
+ dialogContentMaxHeigth,
+ distributionInfoMap,
+ getPropInfo,
+ indexesInfoMap,
+ partitionInfoMap,
+ sortOrdersInfoMap,
+ transformsLimitMap
+} from '@/config'
+import { tableDefaultProps } from '@/config/catalog'
+import { nameRegex } from '@/lib/utils/regex'
+import { capitalizeFirstLetter, genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { createTable, updateTable, getTableDetails } from '@/lib/store/metalakes'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+export default function CreateTableDialog({ ...props }) {
+ const {
+ open,
+ setOpen,
+ metalake,
+ catalog,
+ catalogType,
+ provider,
+ schema,
+ editTable,
+ init,
+ catalogLocation,
+ schemaLocation
+ } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const treeRef = useContext(TreeRefContext)
+ const scrollRef = useRef(null)
+ const loadedRef = useRef(false)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+ const [columnTypes, setColumnTypes] = useState([])
+
+ const [tabOptions, setTabOptions] = useState([
+ {
+ label: (
+ <span className='font-normal text-[rgb(0,0,0,0.88)] before:mr-0.5 before:font-["SimSun"] before:text-[#ff4d4f] before:content-["*"]'>
+ Columns
+ </span>
+ ),
+ key: 'columns'
+ }
+ ])
+ const [tabKey, setTabKey] = useState('columns')
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ const defaultValues = {
+ name: '',
+ comment: '',
+ columns: [{ id: '', name: '', typeObj: { type: '' }, required: false, comment: '' }],
+ properties: []
+ }
+ const supportProperties = getPropInfo(provider).allowAdd
+ const distributionInfo = distributionInfoMap[provider]
+ const partitioningInfo = partitionInfoMap[provider]
+ const sortOredsInfo = sortOrdersInfoMap[provider]
+ const indexesInfo = indexesInfoMap[provider]
+ const autoIncrementInfo = autoIncrementInfoMap[provider]
+ const isSupportDefaultValue = defaultValueSupported.includes(provider)
+ const dispatch = useAppDispatch()
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(scrollTop > 0)
+ }
+ }
+ }
+
+ useEffect(() => {
+ const tabs = [...tabOptions]
+ if (partitioningInfo) {
+ tabs.push({
+ label: <span className='font-normal text-[rgb(0,0,0,0.88)]'>Partitions</span>,
+ key: 'partitions'
+ })
+ }
+ if (sortOredsInfo) {
+ ;``
+ tabs.push({
+ label: <span className='font-normal text-[rgb(0,0,0,0.88)]'>Sort Orders</span>,
+ key: 'sortOrders'
+ })
+ }
+ if (indexesInfo) {
+ tabs.push({
+ label: <span className='font-normal text-[rgb(0,0,0,0.88)]'>Indexes</span>,
+ key: 'indexes'
+ })
+ }
+ if (distributionInfo) {
+ tabs.push({
+ label: (
+ <span
+ className={cn('font-normal text-[rgb(0,0,0,0.88)]', {
+ 'before:mr-0.5 before:font-["SimSun"] before:text-[#ff4d4f] before:content-["*"]':
+ distributionInfo.required
+ })}
+ >
+ Distribution
+ </span>
+ ),
+ key: 'distribution'
+ })
+ }
+ setTabOptions(tabs)
+ }, [provider, partitioningInfo, sortOredsInfo, indexesInfo, distributionInfo])
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ useEffect(() => {
+ if (provider === 'lakehouse-iceberg' && values?.distribution?.strategy === 'hash') {
+ form.validateFields([['distribution', 'strategy']], { recursive: true })
+ }
+ }, [values?.distribution?.strategy, provider, values?.partitions])
+
+ useEffect(() => {
+ if (provider === 'lakehouse-iceberg' && values?.distribution?.strategy === 'range') {
+ form.validateFields([['distribution', 'strategy']], { recursive: true })
+ }
+ }, [values?.distribution?.strategy, provider, values?.partitions, values?.sortOrders])
+
+ useEffect(() => {
+ values?.columns?.forEach((col, index) => {
+ if (col?.autoIncrement) {
+ form.validateFields([['columns', index, 'autoIncrement']], { recursive: true })
+ }
+ })
+ }, [values?.indexes, values?.columns])
+
+ const getElementType = typeObj => {
+ if (typeof typeObj === 'object') {
+ const type = typeObj.type
+ switch (type) {
+ case 'list':
+ return {
+ element: {
+ type: typeof typeObj.elementType === 'string' ? typeObj.elementType : typeObj.elementType.type,
+ required: !typeObj.containsNull,
+ ...getElementType(typeObj.elementType)
+ }
+ }
+ case 'map':
+ return {
+ keyObj: {
+ type: typeof typeObj.keyType === 'string' ? typeObj.keyType : typeObj.keyType.type,
+ required: true,
+ ...getElementType(typeObj.keyType)
+ },
+ valueObj: {
+ type: typeof typeObj.valueType === 'string' ? typeObj.valueType : typeObj.valueType.type,
+ required: !typeObj.valueContainsNull,
+ ...getElementType(typeObj.valueType)
+ }
+ }
+ case 'struct':
+ return {
+ fieldColumns: typeObj.fields.map(col => {
+ return {
+ name: col.name,
+ typeObj: {
+ type: typeof col.type === 'string' ? col.type : col.type.type,
+ ...getElementType(col.type)
+ },
+ required: !col.nullable,
+ comment: col.comment || ''
+ }
+ })
+ }
+ case 'union':
+ return {
+ types: typeObj.types.map(type => {
+ return {
+ typeObj: {
+ type: typeof type === 'string' ? type : type.type,
+ ...getElementType(type)
+ }
+ }
+ })
+ }
+ default:
+ return {}
+ }
+ }
+
+ return {}
+ }
+
+ useEffect(() => {
+ if (open) {
+ if (editTable && !loadedRef.current) {
+ loadedRef.current = true
+
+ const initLoad = async () => {
+ setIsLoading(true)
+ try {
+ const { payload } = await dispatch(getTableDetails({ metalake, catalog, schema, table: editTable }))
+ const table = payload?.table || {}
+ table.columns = table.columns?.map(col => {
+ return {
+ ...col,
+ uniqueId: col.name
+ }
+ })
+ setCacheData(table)
+ form.setFieldValue('name', table.name)
+ form.setFieldValue('comment', table.comment)
+ for (let key in table.columns) {
+ form.setFieldValue(['columns', key, 'uniqueId'], table.columns[key].uniqueId)
+ form.setFieldValue(['columns', key, 'name'], table.columns[key].name)
+ form.setFieldValue(['columns', key, 'required'], !table.columns[key].nullable)
+ autoIncrementInfo &&
+ form.setFieldValue(['columns', key, 'autoIncrement'], table.columns[key].autoIncrement)
+ form.setFieldValue(['columns', key, 'comment'], table.columns[key].comment || '')
+ form.setFieldValue(['columns', key, 'isEdit'], true)
+ if (typeof table.columns[key].type === 'string') {
+ form.setFieldValue(['columns', key, 'typeObj', 'type'], capitalizeFirstLetter(table.columns[key].type))
+ } else {
+ const type = table.columns[key].type.type
+ const elementType = table.columns[key].type?.elementType
+ const keyType = table.columns[key].type?.keyType
+ const valueType = table.columns[key].type?.valueType
+ switch (type) {
+ case 'list':
+ form.setFieldValue(['columns', key, 'typeObj'], {
+ type: table.columns[key].type?.type,
+ element: {
+ type:
+ typeof elementType === 'string'
+ ? capitalizeFirstLetter(elementType)
+ : capitalizeFirstLetter(elementType.type),
+ required: !table.columns[key].type?.containsNull,
+ ...getElementType(table.columns[key].type?.elementType)
+ }
+ })
+ break
+ case 'map':
+ form.setFieldValue(['columns', key, 'typeObj'], {
+ type: table.columns[key].type?.type,
+ keyObj: {
+ type:
+ typeof keyType === 'string'
+ ? capitalizeFirstLetter(keyType)
+ : capitalizeFirstLetter(keyType.type),
+ required: true,
+ ...getElementType(table.columns[key].type?.keyType)
+ },
+ valueObj: {
+ type:
+ typeof valueType === 'string'
+ ? capitalizeFirstLetter(valueType)
+ : capitalizeFirstLetter(valueType.type),
+ required: !table.columns[key].type?.valueContainsNull,
+ ...getElementType(table.columns[key].type?.valueType)
+ }
+ })
+ break
+ case 'struct':
+ form.setFieldValue(['columns', key, 'typeObj'], {
+ type: table.columns[key].type?.type,
+ fieldColumns: table.columns[key].type?.fields.map(col => {
+ return {
+ id: col.name,
+ name: col.name,
+ typeObj: {
+ type:
+ typeof col.type === 'string'
+ ? capitalizeFirstLetter(col.type)
+ : capitalizeFirstLetter(col.type.type),
+ ...getElementType(col.type)
+ },
+ required: !col.nullable,
+ comment: col.comment || ''
+ }
+ })
+ })
+ break
+ case 'union':
+ form.setFieldValue(['columns', key, 'typeObj'], {
+ type: table.columns[key].type?.type,
+ types: table.columns[key].type?.types.map(type => {
+ return {
+ typeObj: {
+ type:
+ typeof type === 'string' ? capitalizeFirstLetter(type) : capitalizeFirstLetter(type.type),
+ ...getElementType(type)
+ }
+ }
+ })
+ })
+ break
+ default:
+ form.setFieldValue(
+ ['columns', key, 'typeObj', 'type'],
+ capitalizeFirstLetter(table.columns[key].type?.type)
+ )
+ }
+ }
+ if (table.columns[key].defaultValue) {
+ form.setFieldValue(['columns', key, 'defaultValue'], table.columns[key].defaultValue)
+ }
+ }
+ if (table.distribution) {
+ form.setFieldValue(['distribution', 'strategy'], table.distribution.strategy)
+ form.setFieldValue(['distribution', 'number'], table.distribution.number)
+ form.setFieldValue(
+ ['distribution', 'field'],
+ table.distribution.funcArgs.map(item => item.fieldName[0] || '')
+ )
+ }
+ let idxPartiton = 0
+ if (table.partitioning?.length) {
+ table.partitioning.forEach(item => {
+ const fields = item.fieldName || item.fieldNames.map(f => f[0])
+ form.setFieldValue(['partitions', idxPartiton, 'strategy'], item.strategy)
+ form.setFieldValue(['partitions', idxPartiton, 'fieldName'], fields)
+ form.setFieldValue(['partitions', idxPartiton, 'number'], item.width || item.number)
+ idxPartiton++
+ })
+ }
+ let idxSortOrder = 0
+ if (table.sortOrders?.length) {
+ table.sortOrders.forEach(item => {
+ const strategy = item.sortTerm?.type === 'field' ? 'field' : item.sortTerm?.funcName
+
+ const number =
+ item.sortTerm?.type === 'function'
+ ? item.sortTerm?.funcArgs.find(f => f.type === 'literal')?.value
+ : undefined
+
+ const fieldName =
+ item.sortTerm?.type === 'field'
+ ? item.sortTerm.fieldName[0]
+ : item.sortTerm?.funcArgs.find(f => f.fieldName)?.fieldName[0]
+ form.setFieldValue(['sortOrders', idxSortOrder, 'strategy'], strategy)
+ form.setFieldValue(['sortOrders', idxSortOrder, 'number'], number)
+ form.setFieldValue(['sortOrders', idxSortOrder, 'fieldName'], fieldName)
+ form.setFieldValue(['sortOrders', idxSortOrder, 'direction'], item.direction)
+ form.setFieldValue(['sortOrders', idxSortOrder, 'nullOrdering'], item.nullOrdering)
+ idxSortOrder++
+ })
+ }
+ let idxIndex = 0
+ if (table.indexes?.length) {
+ table.indexes.forEach(item => {
+ const fields = item.fieldNames.map(f => f[0])
+ form.setFieldValue(['indexes', idxIndex, 'name'], item.name)
+ form.setFieldValue(['indexes', idxIndex, 'indexType'], capitalizeFirstLetter(item.indexType))
+ form.setFieldValue(['indexes', idxIndex, 'fieldName'], fields)
+ idxIndex++
+ })
+ }
+ let idxProperty = 0
+ if (table.properties && Object.keys(table.properties).length) {
+ Object.entries(table.properties).forEach(([key, value]) => {
+ form.setFieldValue(['properties', idxProperty, 'key'], key)
+ form.setFieldValue(['properties', idxProperty, 'value'], value)
+ idxProperty++
+ })
+ }
+ handScroll()
+ setIsLoading(false)
+ } catch (e) {
+ console.error(e)
+ setIsLoading(false)
+ }
+ }
+
+ initLoad()
+ } else {
+ if (tableDefaultProps[provider]) {
+ tableDefaultProps[provider].forEach(item => {
+ form.setFieldValue(item.key, item.defaultValue)
+ })
+ }
+ }
+ if (provider) {
+ let columnTypes = [...ColumnType, ...ColumnWithParamType, ...ColumnSpesicalType].filter(
+ item => !UnsupportColumnType[provider]?.includes(item)
+ )
+
+ if (provider === 'jdbc-mysql') {
+ columnTypes = [...columnTypes, ...ColumnTypeForMysql]
+ }
+ setColumnTypes(columnTypes.sort((a, b) => a.localeCompare(b)))
+ }
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editTable, catalog, provider, metalake, schema])
+
+ useEffect(() => {
+ if (tableDefaultProps[provider] && values?.format) {
+ tableDefaultProps[provider].forEach(item => {
+ if (['input-format', 'output-format', 'serde-lib'].includes(item.key)) {
+ form.setFieldValue(item.key, item.defaultValueOptions[values.format])
+ }
+ })
+ }
+ }, [provider, values?.format])
+
+ const getColumnType = typeObj => {
+ const { type } = typeObj
+ if (!ColumnSpesicalType.includes(type)) {
+ return type
+ } else {
+ switch (type) {
+ case 'list':
+ return {
+ type: 'list',
+ containsNull: provider !== 'jdbc-postgresql' && !typeObj?.element?.required,
+ elementType: getColumnType(typeObj?.element)
+ }
+ case 'map':
+ return {
+ type: 'map',
+ valueContainsNull: !typeObj?.valueObj?.required,
+ keyType: getColumnType(typeObj?.keyObj),
+ valueType: getColumnType(typeObj?.valueObj)
+ }
+ case 'struct':
+ return {
+ type: 'struct',
+ fields: typeObj?.fieldColumns.map(item => {
+ const f = {
+ uniqueId: item.uniqueId || item.name,
+ name: item.name,
+ type: getColumnType(item.typeObj),
+ nullable: !item.required
+ }
+ if (item.comment) {
+ f.comment = item.comment
+ }
+
+ return f
+ })
+ }
+ case 'union':
+ return {
+ type: 'union',
+ types: typeObj?.types.map(item => getColumnType(item.typeObj))
+ }
+ default:
+ return type
+ }
+ }
+ }
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim(),
+ comment: values.comment,
+ tagsToAdd: values.tags,
+ columns: values.columns.map(col => {
+ const column = {
+ uniqueId: col.uniqueId || col.name,
+ name: col.name,
+ type: getColumnType(col.typeObj),
+ nullable: !col.required,
+ comment: col.comment || ''
+ }
+ if (autoIncrementInfo) {
+ column['autoIncrement'] = col.autoIncrement
+ }
+ if (col.defaultValue) {
+ switch (col.defaultValue.type) {
+ case 'field':
+ column['defaultValue'] = {
+ type: 'field',
+ fieldName: [col.defaultValue?.fieldName]
+ }
+ break
+ case 'function':
+ column['defaultValue'] = {
+ type: 'function',
+ funcName: col.defaultValue?.funcName,
+ funcArgs: col.defaultValue?.funcArgs.map(f => {
+ const func = {}
+ if (f.type === 'literal') {
+ func['type'] = 'literal'
+ func['dataType'] = 'string'
+ func['value'] = f.value
+ } else {
+ func['type'] = 'field'
+ func['fieldName'] = [f.fieldName]
+ }
+
+ return func
+ })
+ }
+ break
+ default:
+ column['defaultValue'] = {
+ type: 'literal',
+ dataType: col.defaultValue?.dataType || 'string',
+ value: col.defaultValue?.value
+ }
+ }
+ }
+
+ return column
+ }),
+ properties:
+ values.properties &&
+ values.properties.reduce((acc, item) => {
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {})
+ }
+ if (partitioningInfo) {
+ submitData['partitioning'] = values.partitions?.map(p => {
+ const field = {}
+ if (p.strategy === 'list') {
+ field['fieldNames'] = [[p.fieldName]]
+ } else if (p.strategy === 'bucket') {
+ field['numBuckets'] = p.number
+ field['fieldNames'] = [[p.fieldName]]
+ } else if (p.strategy === 'truncate') {
+ field['width'] = p.number
+ field['fieldName'] = [p.fieldName]
+ } else {
+ field['fieldName'] = [p.fieldName]
+ }
+
+ return {
+ strategy: p.strategy,
+ ...field
+ }
+ })
+ }
+ if (sortOredsInfo) {
+ submitData['sortOrders'] = values.sortOrders?.map(s => {
+ const field = {
+ sortTerm: {}
+ }
+ if (s.strategy !== 'field') {
+ field.sortTerm['type'] = 'function'
+ field.sortTerm['funcName'] = s.strategy
+ field.sortTerm['funcArgs'] = []
+ if (['truncate', 'bucket'].includes(s.strategy)) {
+ field.sortTerm['funcArgs'] = [
+ {
+ type: 'literal',
+ dataType: 'integer',
+ value: s.number + ''
+ },
+ {
+ type: 'field',
+ fieldName: [s.fieldName]
+ }
+ ]
+ } else {
+ field.sortTerm['funcArgs'] = [
+ {
+ type: 'field',
+ fieldName: [s.fieldName]
+ }
+ ]
+ }
+ } else {
+ field.sortTerm = {
+ type: s.strategy,
+ fieldName: [s.fieldName]
+ }
+ }
+ field['direction'] = s.direction
+ field['nullOrdering'] = s.nullOrdering
+
+ return field
+ })
+ }
+ if (indexesInfo) {
+ submitData['indexes'] = values.indexes?.map(i => {
+ return {
+ indexType: i.indexType,
+ name: i.name,
+ fieldNames: i.fieldName.map(f => [f])
+ }
+ })
+ }
+ if (
+ distributionInfo &&
+ (values?.distribution?.strategy || values?.distribution?.number || values?.distribution?.field)
+ ) {
+ submitData['distribution'] = {
+ strategy: values.distribution?.strategy,
+ number: values.distribution?.number || 0,
+ funcArgs:
+ values.distribution?.field?.map(f => {
+ return {
+ type: 'field',
+ fieldName: [f]
+ }
+ }) || []
+ }
+ }
+ if (editTable) {
+ // update table
+ const reqData = {
+ updates: genUpdates(cacheData, submitData, ['lakehouse-iceberg', 'lakehouse-paimon'].includes(provider))
+ }
+ if (reqData.updates.length) {
+ await dispatch(
+ updateTable({ init, metalake, catalog, catalogType, schema, table: cacheData.name, data: reqData })
+ )
+ }
+ } else {
+ submitData.columns.forEach(col => {
+ delete col.uniqueId
+ })
+ if (tableDefaultProps[provider]) {
+ tableDefaultProps[provider].forEach(item => {
+ if (values[item.key]) {
+ submitData.properties[item.key] = values[item.key]
+ }
+ })
+ }
+ await dispatch(createTable({ data: submitData, metalake, catalog, schema, catalogType }))
+ }
+ treeRef.current.onLoadData({ key: `${catalog}/${schema}`, nodeType: 'schema' })
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ const formItem = info?.errorFields?.[0]?.name?.[0]
+ if (
+ ['columns', 'partitions', 'sortOrders', 'indexes', 'distribution'].includes(formItem) &&
+ tabKey !== formItem
+ ) {
+ onChangeTab(formItem)
+ }
+ form.scrollToField(formItem)
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ const [pageOffset, setPageOffset] = useState(1)
+
+ const onChange = page => {
+ setPageOffset(page)
+ }
+
+ const renderTableColumns = (fields, subOpt) => {
+ const pageSize = 10
+ const isShowPagination = fields.length > pageSize
+
+ return (
+ <div className='flex flex-col divide-y divide-solid border-b border-solid'>
+ <div className={cn('grid grid-cols-10 divide-x divide-solid')}>
+ <div
+ className={cn('col-span-2 bg-gray-100 p-1 text-center', {
+ 'col-span-1': isSupportDefaultValue
+ })}
+ >
+ Column
+ </div>
+ <div
+ className={cn('col-span-3 bg-gray-100 p-1 text-center', {
+ 'col-span-2': autoIncrementInfo
+ })}
+ >
+ Data Type
+ </div>
+ {isSupportDefaultValue && <div className='col-span-1 bg-gray-100 p-1 text-center'>Default Value</div>}
+ <div className='bg-gray-100 p-1 text-center'>Not Null</div>
+ {autoIncrementInfo && <div className='bg-gray-100 p-1 text-center'>Auto Increment</div>}
+ <div className='col-span-3 bg-gray-100 p-1 text-center'>Comment</div>
+ <div className='bg-gray-100 p-1 text-center'>Action</div>
+ </div>
+ {fields.slice((pageOffset - 1) * pageSize, pageOffset * pageSize).map(subField => {
+ const subColumnType = form.getFieldValue('columns')[subField.name]?.typeObj?.type
+
+ return (
+ <div key={subField.name}>
+ <div className={cn('grid grid-cols-10')}>
+ <div
+ className={cn('col-span-2 px-2 py-1', { 'col-span-1': isSupportDefaultValue })}
+ data-refer={`column-name-${subField.name}`}
+ >
+ <Form.Item
+ noStyle
+ name={[subField.name, 'name']}
+ label=''
+ rules={[
+ ({ getFieldValue }) => ({
+ validator(_, name) {
+ if (name) {
+ if (!nameRegex.test(name)) {
+ return Promise.reject(new Error(mismatchName))
+ }
+ if (getFieldValue('columns').length) {
+ let names = getFieldValue('columns').map(col => col?.name)
+ names.splice(subField.name, 1)
+ if (names.includes(name)) {
+ return Promise.reject(new Error('The column name already exists!'))
+ }
+ }
+
+ return Promise.resolve()
+ } else {
+ return Promise.reject(new Error('The column name is required!'))
+ }
+ }
+ })
+ ]}
+ >
+ <Input size='small' />
+ </Form.Item>
+ <Form.Item
+ shouldUpdate={(prevValues, currentValues) => prevValues.columns !== currentValues.columns}
+ noStyle
+ >
+ {() => {
+ const errors = form.getFieldError(['columns', subField.name, 'name'])
+
+ return errors.length ? <div className='text-red-500'>{errors[0]}</div> : null
+ }}
+ </Form.Item>
+ </div>
+ <div
+ className={cn('col-span-3 px-2 py-1', { 'col-span-2': autoIncrementInfo })}
+ data-refer={`column-type-${subField.name}`}
+ >
+ <ColumnTypeComponent
+ form={form}
+ parentField={['columns']}
+ subField={subField}
+ columnNamespace={[]}
+ columnTypes={columnTypes}
+ provider={provider}
+ disabled={
+ form.getFieldValue('columns')[subField.name]?.isEdit &&
+ ['lakehouse-iceberg', 'lakehouse-paimon'].includes(provider) &&
+ ColumnSpesicalType.includes(subColumnType)
+ }
+ />
+ </div>
+ {isSupportDefaultValue && (
+ <div className='px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'defaultValue', 'value']} label=''>
+ <Input size='small' />
+ </Form.Item>
+ </div>
+ )}
+ <div className='px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'required']} label=''>
+ <Switch size='small' disabled={provider === 'hive'} />
+ </Form.Item>
+ </div>
+ {autoIncrementInfo && (
+ <div className='px-2 py-1'>
+ <Form.Item
+ noStyle
+ name={[subField.name, 'autoIncrement']}
+ label=''
+ rules={[
+ () => ({
+ validator(_, autoIncrement) {
+ if (autoIncrement) {
+ if (autoIncrementInfo.uniqueCheck) {
+ const names = form
+ .getFieldValue('indexes')
+ ?.filter(idx => ['unique_key', 'primary_key'].includes(idx?.indexType?.toLowerCase()))
+ .map(col => col?.fieldName)
+ ?.flat()
+ if (!names?.includes(form.getFieldValue('columns')[subField.name].name)) {
+ return Promise.reject(
+ new Error('An auto-increment column requires simultaneously setting a unique index')
+ )
+ }
+ }
+ if (autoIncrementInfo.notNullCheck) {
+ if (!form.getFieldValue('columns')[subField.name].required) {
+ return Promise.reject(new Error('An auto-increment column must be not null'))
+ }
+ }
+ }
+
+ return Promise.resolve()
+ }
+ })
+ ]}
+ >
+ <Switch
+ size='small'
+ disabled={
+ !!editTable ||
+ !ColumnTypeSupportAutoIncrement.includes(values?.columns[subField.name]?.typeObj?.type)
+ }
+ />
+ </Form.Item>
+ <Form.Item
+ shouldUpdate={(prevValues, currentValues) => prevValues.columns !== currentValues.columns}
+ noStyle
+ >
+ {() => {
+ const errors = form.getFieldError(['columns', subField.name, 'autoIncrement'])
+
+ return errors.length ? <div className='text-red-500'>{errors[0]}</div> : null
+ }}
+ </Form.Item>
+ </div>
+ )}
+ <div className='col-span-3 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'comment']} label=''>
+ <Input size='small' />
+ </Form.Item>
+ </div>
+ <div className='px-2 py-1'>
+ <Icons.Minus
+ className={cn('size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary', {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed': form.getFieldValue('columns').length === 1
+ })}
+ onClick={() => {
+ if (form.getFieldValue('columns').length === 1) return
+ subOpt.remove(subField.name)
+ if (fields.length - 1 === pageOffset * pageSize) {
+ setPageOffset(pageOffset - 1)
+ } else if (fields.length - 1 < pageOffset * pageSize) {
+ const to = Math.ceil(fields.length / pageSize)
+ setPageOffset((fields.length - 1) % pageSize === 0 ? to - 1 : to)
+ }
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ )
+ })}
+ {isShowPagination && (
+ <Pagination
+ size='small'
+ className='justify-end'
+ current={pageOffset}
+ onChange={onChange}
+ pageSize={pageSize}
+ total={fields.length}
+ />
+ )}
+ {pageOffset === Math.ceil(fields.length / pageSize) && (
+ <div className='text-center'>
+ <Button
+ type='link'
+ icon={<PlusOutlined />}
+ onClick={() => {
+ subOpt.add()
+ if (fields.length === pageOffset * pageSize) {
+ setPageOffset(pageOffset + 1)
+ } else if (fields.length > pageOffset * pageSize) {
+ const to = Math.ceil(fields.length / pageSize)
+ setPageOffset(fields.length % pageSize === 0 ? to + 1 : to)
+ }
+ }}
+ >
+ Add Column
+ </Button>
+ </div>
+ )}
+ </div>
+ )
+ }
+
+ const renderTablePartitions = (fields, subOpt) => {
+ return (
+ <div className='flex flex-col divide-y divide-solid border-b border-solid'>
+ <div className='grid grid-cols-5 divide-x divide-solid'>
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Field</div>
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Strategy</div>
+ <div className='col-span-1 bg-gray-100 p-1 text-center'>Action</div>
+ </div>
+ {fields.map(subField => (
+ <div key={subField.name}>
+ <div className='grid grid-cols-5'>
+ <div className='col-span-2 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'fieldName']} label='Field'>
+ <Select size='small' className='w-full' placeholder='Field' disabled={!!editTable}>
+ {form
+ .getFieldValue('columns')
+ ?.filter(col => col?.name)
+ ?.map(col => (
+ <Select.Option key={col?.name} value={col?.name}>
+ <Flex justify='space-between'>
+ <span>{col?.name}</span>
+ <span>{col?.typeObj?.type}</span>
+ </Flex>
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ </div>
+ <div className='col-span-2 flex gap-2 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'strategy']} label='Strategy'>
+ <Select size='small' className='w-full' placeholder='Strategy' disabled={!!editTable}>
+ {partitioningInfo
+ ?.filter(s => {
+ const field = form.getFieldValue(['partitions', subField.name, 'fieldName'])
+ const column = form.getFieldValue('columns').find(c => c?.name === field)
+ const type = column?.typeObj?.type?.split('(')[0]
+
+ return transformsLimitMap[s]?.includes(type) || !transformsLimitMap[s]
+ })
+ .map(s => (
+ <Select.Option key={s} value={s}>
+ {capitalizeFirstLetter(s)}
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ {['truncate', 'bucket'].includes(form.getFieldValue(['partitions', subField.name, 'strategy'])) && (
+ <Form.Item noStyle name={[subField.name, 'number']} label='Number' rules={[{ required: true }]}>
+ <InputNumber
+ size='small'
+ min={0}
+ placeholder={
+ form.getFieldValue(['partitions', subField.name, 'strategy']) === 'bucket' ? 'Number' : 'Width'
+ }
+ disabled={!!editTable}
+ />
+ </Form.Item>
+ )}
+ </div>
+ <div className='px-2 py-1'>
+ <Icons.Minus
+ className={cn('size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary', {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed': !!editTable
+ })}
+ onClick={() => {
+ if (!!editTable) return
+ subOpt.remove(subField.name)
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ ))}
+ <div className='text-center'>
+ <Button
+ type='link'
+ icon={<PlusOutlined />}
+ disabled={!!editTable}
+ onClick={() => {
+ subOpt.add()
+ }}
+ >
+ Add Partition
+ </Button>
+ </div>
+ </div>
+ )
+ }
+
+ const renderTableSortOrders = (fields, subOpt) => {
+ return (
+ <div className='flex flex-col divide-y divide-solid border-b border-solid'>
+ <div className='grid grid-cols-6 divide-x divide-solid'>
+ <div className='col-span-1 bg-gray-100 p-1 text-center'>Field</div>
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Strategy</div>
+ <div className='col-span-1 bg-gray-100 p-1 text-center'>Direction</div>
+ <div className='col-span-1 bg-gray-100 p-1 text-center'>Null Ordering</div>
+ <div className='col-span-1 bg-gray-100 p-1 text-center'>Action</div>
+ </div>
+ {fields.map(subField => (
+ <div key={subField.name}>
+ <div className='grid grid-cols-6'>
+ <div className='col-span-1 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'fieldName']} label='Field'>
+ <Select size='small' className='w-full' placeholder='Field' disabled={!!editTable}>
+ {form
+ .getFieldValue('columns')
+ ?.filter(col => col?.name)
+ ?.map(col => (
+ <Select.Option key={col?.name} value={col?.name}>
+ <Flex justify='space-between'>
+ <span>{col?.name}</span>
+ <span>{col?.typeObj?.type}</span>
+ </Flex>
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ </div>
+ <div className='col-span-2 flex gap-2 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'strategy']} label='Strategy'>
+ <Select size='small' className='w-full' placeholder='Strategy' disabled={!!editTable}>
+ {sortOredsInfo
+ ?.filter(s => {
+ const field = form.getFieldValue(['sortOrders', subField.name, 'fieldName'])
+ const column = form.getFieldValue('columns').find(c => c?.name === field)
+ const type = column?.typeObj?.type?.split('(')[0]
+
+ return transformsLimitMap[s]?.includes(type) || !transformsLimitMap[s]
+ })
+ .map(s => (
+ <Select.Option key={s} value={s}>
+ {capitalizeFirstLetter(s)}
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ {['truncate', 'bucket'].includes(form.getFieldValue(['sortOrders', subField.name, 'strategy'])) && (
+ <Form.Item noStyle name={[subField.name, 'number']} label='Number' rules={[{ required: true }]}>
+ <InputNumber
+ size='small'
+ min={0}
+ placeholder={
+ form.getFieldValue(['sortOrders', subField.name, 'strategy']) === 'bucket' ? 'Number' : 'Width'
+ }
+ disabled={!!editTable}
+ />
+ </Form.Item>
+ )}
+ </div>
+ <div className='col-span-1 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'direction']} label='Direction'>
+ <Select size='small' className='w-full' placeholder='Direction' disabled={!!editTable}>
+ <Select.Option key='asc' value='asc'>
+ Ascending
+ </Select.Option>
+ <Select.Option key='desc' value='desc'>
+ Descending
+ </Select.Option>
+ </Select>
+ </Form.Item>
+ </div>
+ <div className='col-span-1 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'nullOrdering']} label='Null Ordering'>
+ <Select size='small' className='w-full' placeholder='Null Ordering' disabled={!!editTable}>
+ <Select.Option key='nulls_first' value='nulls_first'>
+ Nulls first
+ </Select.Option>
+ <Select.Option key='nulls_last' value='nulls_last'>
+ Nulls last
+ </Select.Option>
+ </Select>
+ </Form.Item>
+ </div>
+ <div className='px-2 py-1'>
+ <Icons.Minus
+ className={cn('size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary', {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed': !!editTable
+ })}
+ onClick={() => {
+ if (!!editTable) return
+ subOpt.remove(subField.name)
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ ))}
+ <div className='text-center'>
+ <Button
+ type='link'
+ icon={<PlusOutlined />}
+ disabled={!!editTable}
+ onClick={() => {
+ subOpt.add()
+ }}
+ >
+ Add Sort Order
+ </Button>
+ </div>
+ </div>
+ )
+ }
+
+ const renderTableIndexes = (fields, subOpt) => {
+ return (
+ <div className='flex flex-col divide-y divide-solid border-b border-solid'>
+ <div className='grid grid-cols-5 divide-x divide-solid'>
+ <div className='col-span-1 bg-gray-100 p-1 text-center'>Index Name</div>
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Field</div>
+ <div className='col-span-1 bg-gray-100 p-1 text-center'>Index Type</div>
+ <div className='col-span-1 bg-gray-100 p-1 text-center'>Action</div>
+ </div>
+ {fields.map(subField => (
+ <div key={subField.name}>
+ <div className='grid grid-cols-5'>
+ <div className='col-span-1 px-2 py-1'>
+ <Form.Item
+ noStyle
+ name={[subField.name, 'name']}
+ label=''
+ rules={[
+ ({ getFieldValue }) => ({
+ validator(_, name) {
+ if (name) {
+ if (!nameRegex.test(name)) {
+ return Promise.reject(new Error(mismatchName))
+ }
+ if (getFieldValue('indexes').length) {
+ let names = getFieldValue('indexes').map(col => col?.name)
+ names.splice(subField.name, 1)
+ if (names.includes(name)) {
+ return Promise.reject(new Error('The index name already exists!'))
+ }
+ }
+
+ return Promise.resolve()
+ }
+ }
+ })
+ ]}
+ >
+ <Input size='small' placeholder='Index Name' disabled={!!editTable} />
+ </Form.Item>
+ </div>
+ <div className='col-span-2 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'fieldName']} label='Field'>
+ <Select size='small' className='w-full' mode='multiple' placeholder='Field' disabled={!!editTable}>
+ {form
+ .getFieldValue('columns')
+ ?.filter(col => col?.name)
+ ?.map(col => (
+ <Select.Option key={col?.name} value={col?.name}>
+ {col?.name}
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ </div>
+ <div className='col-span-1 px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'indexType']} label='Index Type'>
+ <Select size='small' className='w-full' placeholder='Index Type' disabled={!!editTable}>
+ <Select.Option key='primary_key' value='primary_key'>
+ Primary Key
+ </Select.Option>
+ <Select.Option key='unique_key' value='unique_key'>
+ Unique Key
+ </Select.Option>
+ </Select>
+ </Form.Item>
+ </div>
+ <div className='px-2 py-1'>
+ <Icons.Minus
+ className={cn('size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary', {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed': !!editTable
+ })}
+ onClick={() => {
+ if (!!editTable) return
+ subOpt.remove(subField.name)
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ ))}
+ <div className='text-center'>
+ <Button
+ type='link'
+ icon={<PlusOutlined />}
+ disabled={!!editTable}
+ onClick={() => {
+ subOpt.add()
+ }}
+ >
+ Add Index
+ </Button>
+ </div>
+ </div>
+ )
+ }
+
+ const onChangeTab = key => {
+ setTabKey(key)
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editTable ? 'Create Table' : 'Edit Table'}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ okButtonProps={{ 'data-refer': 'handle-submit-table' }}
+ maskClosable={false}
+ keyboard={false}
+ width={1000}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>
+ {!editTable ? 'Create a new table, and define columns for it.' : `Edit the table ${editTable} in ${schema}.`}
+ </Paragraph>
+ <div
+ className={cn('relative', {
+ 'after:absolute after:-bottom-10 after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='tableForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Table Name'
+ messageVariables={{ label: 'table name' }}
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ >
+ <Input data-refer='table-name-field' placeholder={mismatchName} disabled={init} />
+ </Form.Item>
+ <Tabs activeKey={tabKey} onChange={onChangeTab} items={tabOptions} />
+ <Form.Item
+ className={tabKey !== 'columns' ? 'hidden' : ''}
+ label=''
+ name='columns'
+ rules={[{ required: true }]}
+ help=''
+ >
+ <Form.List name='columns'>{(fields, subOpt) => renderTableColumns(fields, subOpt)}</Form.List>
+ </Form.Item>
+ {partitioningInfo && (
+ <Form.Item className={tabKey !== 'partitions' ? 'hidden' : ''} label='' name='partitions'>
+ <Form.List name='partitions'>{(fields, subOpt) => renderTablePartitions(fields, subOpt)}</Form.List>
+ </Form.Item>
+ )}
+ {sortOredsInfo && (
+ <Form.Item className={tabKey !== 'sortOrders' ? 'hidden' : ''} label='' name='sortOrders'>
+ <Form.List name='sortOrders'>{(fields, subOpt) => renderTableSortOrders(fields, subOpt)}</Form.List>
+ </Form.Item>
+ )}
+ {indexesInfo && (
+ <Form.Item className={tabKey !== 'indexes' ? 'hidden' : ''} label='' name='indexes'>
+ <Form.List name='indexes'>{(fields, subOpt) => renderTableIndexes(fields, subOpt)}</Form.List>
+ </Form.Item>
+ )}
+ {distributionInfo && (
+ <Form.Item className={tabKey !== 'distribution' ? 'hidden' : ''} label='' help=''>
+ <div className='flex flex-col divide-y divide-solid border-b border-solid'>
+ <div className='grid grid-cols-4 divide-x divide-solid'>
+ {distributionInfo.funcArgs && (
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Field</div>
+ )}
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Strategy</div>
+ </div>
+ <div className='grid grid-cols-4'>
+ {distributionInfo.funcArgs && (
+ <div className='col-span-2 px-2 py-1'>
+ <Form.Item
+ noStyle
+ name={['distribution', 'field']}
+ label='Field'
+ rules={[{ required: values?.distribution?.strategy === 'hash' }]}
+ >
+ <Select
+ mode='multiple'
+ size='small'
+ className='w-full'
+ placeholder='Field'
+ disabled={!!editTable || values?.distribution?.strategy === 'even'}
+ >
+ {values?.columns
+ ?.filter(col => col?.name)
+ ?.map((col, index) => (
+ <Select.Option key={col?.name + index} value={col?.name}>
+ {col?.name}
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ <Form.Item
+ shouldUpdate={(prevValues, currentValues) => prevValues.columns !== currentValues.columns}
+ noStyle
+ >
+ {() => {
+ const errors = form.getFieldError(['distribution', 'field'])
+
+ return errors.length ? <div className='text-red-500'>{errors[0]}</div> : null
+ }}
+ </Form.Item>
+ </div>
+ )}
+ <div className='col-span-2 px-2 py-1'>
+ <div className='flex gap-2'>
+ <Form.Item
+ noStyle
+ name={['distribution', 'strategy']}
+ label='Strategy'
+ rules={[
+ { required: distributionInfo.required },
+ ({ getFieldValue }) => ({
+ validator(_, strategy) {
+ if (strategy && provider === 'lakehouse-iceberg') {
+ if (
+ strategy === 'hash' &&
+ !(getFieldValue('partitions')?.filter(p => !!p)?.length > 0)
+ ) {
+ return Promise.reject(
+ new Error(
+ "Iceberg's Distribution Mode.HASH is distributed based on partition"
+ )
+ )
+ }
+ if (
+ strategy === 'range' &&
+ !(getFieldValue('partitions')?.filter(p => !!p)?.length > 0) &&
+ !(getFieldValue('sortOrders')?.filter(s => !!s)?.length > 0)
+ ) {
+ return Promise.reject(
+ new Error(
+ "Iceberg's Distribution Mode.RANGE is distributed based on sortOrder or partition"
+ )
+ )
+ }
+ }
+
+ return Promise.resolve()
+ }
+ })
+ ]}
+ >
+ <Select size='small' className='w-full' placeholder='Strategy' disabled={!!editTable}>
+ {distributionInfo.strategyOption.map(s => (
+ <Select.Option key={s} value={s}>
+ {capitalizeFirstLetter(s)}
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ {distributionInfo.funcArgs && (
+ <Form.Item
+ noStyle
+ name={['distribution', 'number']}
+ label='Number'
+ rules={[{ required: distributionInfo.required }]}
+ >
+ <InputNumber size='small' min={0} placeholder='Number' disabled={!!editTable} />
+ </Form.Item>
+ )}
+ </div>
+ <Form.Item
+ shouldUpdate={(prevValues, currentValues) => prevValues.columns !== currentValues.columns}
+ noStyle
+ >
+ {() => {
+ const errors = form.getFieldError(['distribution', 'strategy'])
+
+ return errors.length ? <div className='text-red-500'>{errors[0]}</div> : null
+ }}
+ </Form.Item>
+ {distributionInfo.funcArgs && (
+ <Form.Item
+ shouldUpdate={(prevValues, currentValues) => prevValues.columns !== currentValues.columns}
+ noStyle
+ >
+ {() => {
+ const errors = form.getFieldError(['distribution', 'number'])
+
+ return errors.length ? <div className='text-red-500'>{errors[0]}</div> : null
+ }}
+ </Form.Item>
+ )}
+ </div>
+ </div>
+ </div>
+ </Form.Item>
+ )}
+ <Form.Item name='comment' label='Comment'>
+ <TextArea data-refer='table-comment-field' />
+ </Form.Item>
+ {supportProperties && (
+ <Form.Item label='Properties'>
+ <div className='flex flex-col gap-2'>
+ {!editTable &&
+ tableDefaultProps[provider] &&
+ tableDefaultProps[provider].map((prop, idx) => {
+ const isLocationRequired =
+ prop.key === 'location' &&
+ provider === 'lakehouse-generic' &&
+ !catalogLocation &&
+ !schemaLocation
+
+ return (
+ <Flex gap='small' align='start' className='align-items-center mb-1' key={idx}>
+ <Input disabled value={prop.key} />
+ <Form.Item
+ className='mb-0 w-full grow'
+ name={prop.key}
+ label=''
+ rules={
+ isLocationRequired
+ ? [
+ {
+ required: true,
+ message: 'Location is required when not set in catalog or schema'
+ }
+ ]
+ : []
+ }
+ >
+ {prop.select ? (
+ <Select className='flex-none' disabled={prop.disabled}>
+ {prop.select?.map(item => (
+ <Select.Option value={item} key={item}>
+ {item}
+ </Select.Option>
+ ))}
+ </Select>
+ ) : (
+ <Input placeholder={prop.description} disabled={prop.disabled} />
+ )}
+ </Form.Item>
+ <Icons.Minus className={'cursor-not-allowed text-gray-100 hover:text-gray-200'} />
+ </Flex>
+ )
+ })}
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem
+ fields={fields}
+ subOpt={subOpt}
+ form={form}
+ isEdit={!!editTable}
+ isDisable={['jdbc-mysql'].includes(provider)}
+ provider={provider}
+ />
+ )}
+ </Form.List>
+ </div>
+ </Form.Item>
+ )}
+ </Form>
+ </Spin>
+ </div>
+ </div>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateTopicDialog.js b/web-v2/web/src/app/catalogs/rightContent/CreateTopicDialog.js
new file mode 100644
index 0000000000..c9c7fe962f
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/CreateTopicDialog.js
@@ -0,0 +1,218 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { useContext, useEffect, useRef, useState } from 'react'
+import { Form, Input, Modal, Spin, Typography } from 'antd'
+import { useScrolling } from 'react-use'
+import { TreeRefContext } from '../page'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { validateMessages, dialogContentMaxHeigth, mismatchName } from '@/config'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { createTopic, updateTopic, getTopicDetails } from '@/lib/store/metalakes'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+const defaultValues = {
+ name: '',
+ comment: '',
+ properties: []
+}
+
+export default function CreateTopicDialog({ ...props }) {
+ const { open, setOpen, metalake, catalog, catalogType, schema, editTopic, init } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const treeRef = useContext(TreeRefContext)
+ const scrollRef = useRef(null)
+ const loadedRef = useRef(false)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+ const dispatch = useAppDispatch()
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(scrollTop > 0)
+ }
+ }
+ }
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ useEffect(() => {
+ if (open && editTopic && !loadedRef.current) {
+ loadedRef.current = true
+
+ const initLoad = async () => {
+ setIsLoading(true)
+ try {
+ const {
+ payload: { topic }
+ } = await dispatch(getTopicDetails({ metalake, catalog, schema, topic: editTopic }))
+ setCacheData(topic)
+ form.setFieldValue('name', topic.name)
+ form.setFieldValue('comment', topic.comment)
+ let index = 0
+ Object.entries(topic.properties || {}).forEach(([key, value]) => {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ })
+ setIsLoading(false)
+ } catch (e) {
+ setIsLoading(false)
+ }
+ }
+ initLoad()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editTopic, metalake, catalog, schema])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim(),
+ comment: values.comment,
+ tagsToAdd: values.tags,
+ properties: values.properties.reduce((acc, item) => {
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {})
+ }
+ if (editTopic) {
+ // update topic
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ await dispatch(updateTopic({ metalake, catalog, catalogType, schema, topic: editTopic, data: reqData }))
+ }
+ } else {
+ await dispatch(createTopic({ data: submitData, metalake, catalog, schema, catalogType }))
+ }
+ init && treeRef.current.onLoadData({ key: `${catalog}/${schema}`, nodeType: 'schema' })
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editTopic ? 'Create Topic' : 'Edit Topic'}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ okButtonProps={{ 'data-refer': 'handle-submit-topic' }}
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>{!editTopic ? 'Create a new topic.' : `Edit the topic ${editTopic}.`}</Paragraph>
+ <div
+ className={cn('relative', {
+ 'after:absolute after:-bottom-10 after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='topicForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Topic Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'topic name' }}
+ >
+ <Input data-refer='topic-name-field' placeholder={mismatchName} disabled={!!editTopic} />
+ </Form.Item>
+ <Form.Item name='comment' label='Comment'>
+ <TextArea data-refer='topic-comment-field' />
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem
+ fields={fields}
+ subOpt={subOpt}
+ form={form}
+ isEdit={!!editTopic}
+ isDisable={false}
+ provider={'kafka'}
+ />
+ )}
+ </Form.List>
+ </Form.Item>
+ </Form>
+ </Spin>
+ </div>
+ </div>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/LinkVersionDialog.js b/web-v2/web/src/app/catalogs/rightContent/LinkVersionDialog.js
new file mode 100644
index 0000000000..472444704e
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/LinkVersionDialog.js
@@ -0,0 +1,418 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { useEffect, useRef, useState } from 'react'
+import { Flex, Form, Input, Modal, Spin, Switch, Tooltip, Typography } from 'antd'
+import { useScrolling } from 'react-use'
+import Icons from '@/components/Icons'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { validateMessages, dialogContentMaxHeigth } from '@/config'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { linkVersion, updateVersion, getVersionDetails } from '@/lib/store/metalakes'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+const defaultValues = {
+ uris: [{ name: '', uri: '', defaultUri: true }],
+ aliases: [{ name: '' }],
+ comment: '',
+ properties: []
+}
+
+export default function LinkVersionDialog({ ...props }) {
+ const { open, setOpen, metalake, catalog, catalogType, schema, model, editVersion } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const scrollRef = useRef(null)
+ const loadedRef = useRef(false)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+ const urisItems = Form.useWatch(['uris'], form)
+ const aliasesItems = Form.useWatch(['aliases'], form)
+ const defaultUriName = Form.useWatch(['properties'], form)?.filter(item => item?.key === 'default-uri-name')[0]
+ const dispatch = useAppDispatch()
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(scrollTop > 0)
+ }
+ }
+ }
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ useEffect(() => {
+ if (open && editVersion !== '' && !loadedRef.current) {
+ loadedRef.current = true
+
+ const initLoad = async () => {
+ setIsLoading(true)
+ try {
+ const { payload: modelVersion } = await dispatch(
+ getVersionDetails({ metalake, catalog, catalogType, schema, model, version: editVersion })
+ )
+ setCacheData(modelVersion)
+ let uriIndex = 0
+ Object.entries(modelVersion.uris || {}).forEach(([name, uri]) => {
+ form.setFieldValue(['uris', uriIndex, 'name'], name)
+ form.setFieldValue(['uris', uriIndex, 'uri'], uri)
+ if (modelVersion.properties['default-uri-name'] === name) {
+ form.setFieldValue(['uris', uriIndex, 'defaultUri'], true)
+ } else {
+ form.setFieldValue(['uris', uriIndex, 'defaultUri'], false)
+ }
+ uriIndex++
+ })
+ form.setFieldValue('comment', modelVersion.comment)
+ modelVersion.aliases.forEach((alias, index) => {
+ form.setFieldValue(['aliases', index, 'name'], alias)
+ })
+ let index = 0
+ Object.entries(modelVersion.properties || {}).forEach(([key, value]) => {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ })
+ setIsLoading(false)
+ } catch (e) {
+ setIsLoading(false)
+ }
+ }
+ initLoad()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editVersion, metalake, catalog, schema])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ let defaultUri = ''
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ uris: values.uris.reduce((acc, item) => {
+ if (item.name && item.uri) {
+ acc[item.name] = item.uri
+ if (item.defaultUri && !values.properties.find(prop => prop.key === 'default-uri-name')) {
+ defaultUri = item.name
+ }
+ }
+
+ return acc
+ }, {}),
+ aliases: values.aliases.map(alias => alias.name).filter(aliasName => aliasName),
+ comment: values.comment,
+ properties: values.properties.reduce((acc, item) => {
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {})
+ }
+ defaultUri && (submitData.properties['default-uri-name'] = defaultUri)
+ if (editVersion !== '') {
+ // update version
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ dispatch(
+ updateVersion({
+ metalake,
+ catalog,
+ catalogType,
+ schema,
+ model,
+ version: cacheData.version,
+ data: reqData
+ })
+ )
+ }
+ } else {
+ await dispatch(linkVersion({ data: submitData, metalake, catalog, schema, catalogType, model }))
+ }
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ const onChangeDefaultUri = (checked, index) => {
+ const fields = form.getFieldValue('uris') || []
+ fields.forEach((item, i) => {
+ if (i !== index) {
+ item.defaultUri = false
+ } else {
+ item.defaultUri = checked
+ }
+ })
+ form.setFieldValue(['uris'], fields)
+ }
+
+ return (
+ <>
+ <Modal
+ title='Link Version'
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>Link a new version.</Paragraph>
+ <div
+ className={cn('relative', {
+ 'after:absolute after:-bottom-10 after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='versionForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item label='URI(s)'>
+ <Form.List name='uris'>
+ {(fields, subOpt) => (
+ <div className='flex flex-col gap-2'>
+ {fields.map(({ key, name, ...restField }) => (
+ <Form.Item label={null} className='align-items-center mb-1' key={key}>
+ <Flex gap='small' align='center'>
+ <Form.Item
+ className='mb-0 w-full grow'
+ name={[name, 'name']}
+ rules={[
+ { required: name === 0, message: 'The URI name is required!' },
+ ({ getFieldValue }) => ({
+ validator(_, uriName) {
+ if (getFieldValue('uris').length) {
+ if (uriName) {
+ let names = getFieldValue('uris').map(p => p?.name)
+ names.splice(name, 1)
+ if (names.includes(uriName)) {
+ return Promise.reject(new Error('The URI name already exists!'))
+ }
+ }
+ }
+
+ return Promise.resolve()
+ }
+ })
+ ]}
+ {...restField}
+ >
+ <Input placeholder='URI name' />
+ </Form.Item>
+ <Form.Item
+ className='mb-0 w-full grow'
+ name={[name, 'uri']}
+ rules={[{ required: !!values?.uris[name].name, message: 'URI is required' }]}
+ {...restField}
+ >
+ <Input placeholder='URI' />
+ </Form.Item>
+ {!defaultUriName && urisItems?.length > 1 && urisItems[0].name && urisItems[0].uri && (
+ <Form.Item className='mb-0 grow-0' name={[name, 'defaultUri']} {...restField}>
+ <Tooltip title='Default URI'>
+ <Switch
+ size='small'
+ onChange={checked => onChangeDefaultUri(checked, name)}
+ disabled={!!editVersion}
+ checked={urisItems?.[name]?.defaultUri === true}
+ />
+ </Tooltip>
+ </Form.Item>
+ )}
+ <div className='flex w-10 shrink-0 items-center justify-start gap-2'>
+ {name === 0 ? (
+ <>
+ <Icons.Plus
+ className='size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => {
+ subOpt.add({ name: '', uri: '', defaultUri: false })
+ }}
+ />
+ {urisItems?.length > 1 && (
+ <Icons.Minus
+ className='size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => {
+ subOpt.remove(name)
+ }}
+ />
+ )}
+ </>
+ ) : (
+ <>
+ <span className='inline-block size-4' />
+ <Icons.Minus
+ className='size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => {
+ subOpt.remove(name)
+ }}
+ />
+ </>
+ )}
+ </div>
+ </Flex>
+ </Form.Item>
+ ))}
+ </div>
+ )}
+ </Form.List>
+ </Form.Item>
+ <Form.Item label='Aliases'>
+ <Form.List name='aliases'>
+ {(fields, subOpt) => (
+ <div className='flex flex-col gap-2'>
+ {fields.map(({ key, name, ...restField }) => (
+ <Form.Item label={null} className='align-items-center mb-1' key={key}>
+ <Flex gap='small' align='center'>
+ <Form.Item
+ {...restField}
+ className='mb-0 w-full grow'
+ name={[name, 'name']}
+ rules={[
+ ({ getFieldValue }) => ({
+ validator(_, aliasName) {
+ if (getFieldValue('aliases').length) {
+ if (aliasName) {
+ if (!isNaN(Number(aliasName))) {
+ return Promise.reject(
+ new Error('Aliase cannot be a number or numeric string')
+ )
+ }
+ let names = getFieldValue('aliases').map(p => p?.name)
+ names.splice(name, 1)
+ if (names.includes(aliasName)) {
+ return Promise.reject(new Error('The alias already exists!'))
+ }
+ }
+ }
+
+ return Promise.resolve()
+ }
+ })
+ ]}
+ >
+ <Input placeholder={`Alias ${name + 1}`} />
+ </Form.Item>
+ <div className='flex w-10 shrink-0 items-center justify-start gap-2'>
+ {name === 0 ? (
+ <>
+ <Icons.Plus
+ className='size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => {
+ subOpt.add()
+ }}
+ />
+ {aliasesItems?.length > 1 && (
+ <Icons.Minus
+ className='size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => {
+ subOpt.remove(name)
+ }}
+ />
+ )}
+ </>
+ ) : (
+ <>
+ <span className='inline-block size-4' />
+ <Icons.Minus
+ className='size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => {
+ subOpt.remove(name)
+ }}
+ />
+ </>
+ )}
+ </div>
+ </Flex>
+ </Form.Item>
+ ))}
+ </div>
+ )}
+ </Form.List>
+ </Form.Item>
+ <Form.Item name='comment' label='Comment'>
+ <TextArea />
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem
+ fields={fields}
+ subOpt={subOpt}
+ form={form}
+ isEdit={false}
+ isDisable={false}
+ />
+ )}
+ </Form.List>
+ </Form.Item>
+ </Form>
+ </Spin>
+ </div>
+ </div>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/RegisterModelDialog.js b/web-v2/web/src/app/catalogs/rightContent/RegisterModelDialog.js
new file mode 100644
index 0000000000..5c6994d22b
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/RegisterModelDialog.js
@@ -0,0 +1,220 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { useContext, useEffect, useRef, useState } from 'react'
+
+import { Form, Input, Modal, Spin, Typography } from 'antd'
+import { useScrolling } from 'react-use'
+
+import { TreeRefContext } from '../page'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { validateMessages, mismatchName } from '@/config'
+import { dialogContentMaxHeigth } from '@/config'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { registerModel, updateModel, getModelDetails } from '@/lib/store/metalakes'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+const defaultValues = {
+ name: '',
+ comment: '',
+ properties: []
+}
+
+export default function RegisterModelDialog({ ...props }) {
+ const { open, setOpen, metalake, catalog, catalogType, schema, editModel, init } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const treeRef = useContext(TreeRefContext)
+ const scrollRef = useRef(null)
+ const loadedRef = useRef(false)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+ const dispatch = useAppDispatch()
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(scrollTop > 0)
+ }
+ }
+ }
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ useEffect(() => {
+ if (open && editModel && !loadedRef.current) {
+ loadedRef.current = true
+
+ const initLoad = async () => {
+ setIsLoading(true)
+ try {
+ const {
+ payload: { model }
+ } = await dispatch(getModelDetails({ metalake, catalog, schema, model: editModel }))
+ setCacheData(model)
+ form.setFieldValue('name', model.name)
+ form.setFieldValue('comment', model.comment)
+ let index = 0
+ Object.entries(model.properties || {}).forEach(([key, value]) => {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ })
+ setIsLoading(false)
+ } catch (e) {
+ setIsLoading(false)
+ }
+ }
+ initLoad()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editModel, metalake, catalog, schema])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim(),
+ comment: values.comment,
+ tagsToAdd: values.tags,
+ properties: values.properties.reduce((acc, item) => {
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {})
+ }
+ if (editModel) {
+ // update model
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ await dispatch(updateModel({ metalake, catalog, catalogType, schema, model: editModel, data: reqData }))
+ }
+ } else {
+ await dispatch(registerModel({ data: submitData, metalake, catalog, schema, catalogType }))
+ }
+ !editModel && treeRef.current.onLoadData({ key: `${catalog}/${schema}`, nodeType: 'schema' })
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title='Register Model'
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>Register a new model.</Paragraph>
+ <div
+ className={cn('relative', {
+ 'after:absolute after:-bottom-10 after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='modelForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Model Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'model name' }}
+ >
+ <Input placeholder={mismatchName} disabled={init} />
+ </Form.Item>
+ <Form.Item name='comment' label='Comment'>
+ <TextArea />
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem
+ fields={fields}
+ subOpt={subOpt}
+ form={form}
+ isEdit={false}
+ isDisable={false}
+ />
+ )}
+ </Form.List>
+ </Form.Item>
+ </Form>
+ </Spin>
+ </div>
+ </div>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/RightContent.js b/web-v2/web/src/app/catalogs/rightContent/RightContent.js
new file mode 100644
index 0000000000..19caf27f78
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/RightContent.js
@@ -0,0 +1,242 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import CatalogsPage from './entitiesContent/CatalogsPage'
+import { useSearchParams } from 'next/navigation'
+import { Breadcrumb } from 'antd'
+import Link from 'next/link'
+import useResizeObserver from 'use-resize-observer'
+import dynamic from 'next/dynamic'
+import Loading from '@/components/Loading'
+
+const CatalogDetailsPage = dynamic(() => import('./entitiesContent/CatalogDetailsPage'), {
+ loading: () => <Loading height={'200px'} />,
+ ssr: false
+})
+
+const SchemaDetailsPage = dynamic(() => import('./entitiesContent/SchemaDetailsPage'), {
+ loading: () => <Loading height={'200px'} />,
+ ssr: false
+})
+
+const FilesetDetailsPage = dynamic(() => import('./entitiesContent/FilesetDetailsPage'), {
+ loading: () => <Loading height={'200px'} />,
+ ssr: false
+})
+
+const ModelDetailsPage = dynamic(() => import('./entitiesContent/ModelDetailsPage'), {
+ loading: () => <Loading height={'200px'} />,
+ ssr: false
+})
+
+const TopicDetailsPage = dynamic(() => import('./entitiesContent/TopicDetailsPage'), {
+ loading: () => <Loading height={'200px'} />,
+ ssr: false
+})
+
+const TableDetailsPage = dynamic(() => import('./entitiesContent/TableDetailsPage'), {
+ loading: () => <Loading height={'200px'} />,
+ ssr: false
+})
+
+const RightContent = () => {
+ const searchParams = useSearchParams()
+
+ const currentMetalake = searchParams.get('metalake')
+ const catalogType = searchParams.get('catalogType')
+ const catalog = searchParams.get('catalog')
+ const schema = searchParams.get('schema')
+
+ const entity = searchParams.get(
+ catalogType === 'relational'
+ ? 'table'
+ : catalogType === 'fileset'
+ ? 'fileset'
+ : catalogType === 'messaging'
+ ? 'topic'
+ : catalogType === 'model'
+ ? 'model'
+ : ''
+ )
+ const paramsSize = [...searchParams.keys()].length
+ const { ref, width } = useResizeObserver()
+
+ const renderEntity = () => {
+ if (paramsSize === 2 && !catalog && !schema && !entity) {
+ return <CatalogsPage />
+ } else if (paramsSize === 3 && catalog && !schema && !entity) {
+ return <CatalogDetailsPage />
+ } else if (paramsSize === 4 && catalog && schema && !entity) {
+ return <SchemaDetailsPage />
+ } else {
+ switch (catalogType) {
+ case 'relational':
+ return (
+ <TableDetailsPage
+ namespaces={{
+ catalog: decodeURIComponent(catalog),
+ schema: decodeURIComponent(schema),
+ table: decodeURIComponent(entity)
+ }}
+ />
+ )
+ case 'fileset':
+ return (
+ <FilesetDetailsPage
+ namespaces={{
+ catalog: decodeURIComponent(catalog),
+ schema: decodeURIComponent(schema),
+ fileset: decodeURIComponent(entity)
+ }}
+ />
+ )
+ case 'messaging':
+ return (
+ <TopicDetailsPage
+ namespaces={{
+ catalog: decodeURIComponent(catalog),
+ schema: decodeURIComponent(schema),
+ topic: decodeURIComponent(entity)
+ }}
+ />
+ )
+ case 'model':
+ return (
+ <ModelDetailsPage
+ namespaces={{
+ catalog: decodeURIComponent(catalog),
+ schema: decodeURIComponent(schema),
+ model: decodeURIComponent(entity)
+ }}
+ />
+ )
+ default:
+ return null
+ }
+ }
+ }
+
+ return (
+ <div className='p-6' ref={ref}>
+ <Breadcrumb
+ className='mb-4'
+ separator='>'
+ items={[
+ {
+ title: (
+ <Link data-refer='back-home-btn' href='/metalakes'>
+ Metalakes
+ </Link>
+ )
+ },
+ {
+ title: catalog ? (
+ <Link
+ data-refer='metalake-name-link'
+ href={`/catalogs?metalake=${currentMetalake}&catalogType=${catalogType}`}
+ title={currentMetalake}
+ className='inline-block min-w-10 truncate'
+ style={{ maxWidth: `calc((${width}px - 160px)/4)` }}
+ >
+ {decodeURIComponent(currentMetalake)}
+ </Link>
+ ) : (
+ <span
+ data-refer='metalake-name-link'
+ title={currentMetalake}
+ className='inline-block min-w-10 truncate'
+ style={{ maxWidth: `calc((${width}px - 160px)/4)` }}
+ >
+ {decodeURIComponent(currentMetalake)}
+ </span>
+ )
+ },
+ ...(catalog
+ ? [
+ {
+ title: schema ? (
+ <Link
+ href={`/catalogs?metalake=${currentMetalake}&catalogType=${catalogType}&catalog=${decodeURIComponent(catalog)}`}
+ title={catalog}
+ className='inline-block min-w-10 truncate'
+ style={{ maxWidth: `calc((${width}px - 160px)/4)` }}
+ >
+ {decodeURIComponent(catalog)}
+ </Link>
+ ) : (
+ <span
+ title={catalog}
+ className='inline-block min-w-10 truncate'
+ style={{ maxWidth: `calc((${width}px - 160px)/4)` }}
+ >
+ {decodeURIComponent(catalog)}
+ </span>
+ )
+ }
+ ]
+ : []),
+ ...(schema
+ ? [
+ {
+ title: entity ? (
+ <Link
+ href={`/catalogs?metalake=${currentMetalake}&catalogType=${catalogType}&catalog=${decodeURIComponent(catalog)}&schema=${decodeURIComponent(schema)}`}
+ title={schema}
+ className='inline-block min-w-10 truncate'
+ style={{ maxWidth: `calc((${width}px - 160px)/4)` }}
+ >
+ {decodeURIComponent(schema)}
+ </Link>
+ ) : (
+ <span
+ title={schema}
+ className='inline-block min-w-10 truncate'
+ style={{ maxWidth: `calc((${width}px - 160px)/4)` }}
+ >
+ {decodeURIComponent(schema)}
+ </span>
+ )
+ }
+ ]
+ : []),
+ ...(entity
+ ? [
+ {
+ title: (
+ <span
+ title={entity}
+ className='inline-block min-w-10 truncate'
+ style={{ maxWidth: `calc((${width}px - 160px)/4)` }}
+ >
+ {decodeURIComponent(entity)}
+ </span>
+ )
+ }
+ ]
+ : [])
+ ]}
+ />
+ {renderEntity()}
+ </div>
+ )
+}
+
+export default RightContent
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogDetailsPage.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogDetailsPage.js
new file mode 100644
index 0000000000..3289fc636b
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogDetailsPage.js
@@ -0,0 +1,543 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useContext, useMemo, useState, useEffect } from 'react'
+import dynamic from 'next/dynamic'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import {
+ Breadcrumb,
+ Button,
+ Divider,
+ Dropdown,
+ Flex,
+ Input,
+ Modal,
+ Popover,
+ Space,
+ Spin,
+ Table,
+ Tabs,
+ Tooltip,
+ Typography
+} from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import useResizeObserver from 'use-resize-observer'
+import { TreeRefContext } from '../../page'
+import AssociatedTable from '@/components/AssociatedTable'
+import ConfirmInput from '@/components/ConfirmInput'
+import Tags from '@/components/CustomTags'
+import Icons from '@/components/Icons'
+import Policies from '@/components/PolicyTag'
+import PropertiesContent from '@/components/PropertiesContent'
+import { checkCatalogIcon } from '@/config/catalog'
+import Link from 'next/link'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { useSearchParams } from 'next/navigation'
+import { deleteSchema, getCurrentEntityOwner } from '@/lib/store/metalakes'
+import Loading from '@/components/Loading'
+import CreateSchemaDialog from '../CreateSchemaDialog'
+
+const CreateCatalogDialog = dynamic(() => import('../CreateCatalogDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+const renderIcon = catalog => {
+ const calalogIcon = checkCatalogIcon({ type: catalog?.type, provider: catalog?.provider })
+ if (calalogIcon.startsWith('custom-icons-')) {
+ switch (calalogIcon) {
+ case 'custom-icons-hive':
+ return <Icons.hive className='size-8'></Icons.hive>
+ case 'custom-icons-doris':
+ return <Icons.doris className='size-8'></Icons.doris>
+ case 'custom-icons-paimon':
+ return <Icons.paimon className='size-8'></Icons.paimon>
+ case 'custom-icons-hudi':
+ return <Icons.hudi className='size-8'></Icons.hudi>
+ case 'custom-icons-oceanbase':
+ return <Icons.oceanbase className='size-8'></Icons.oceanbase>
+ case 'custom-icons-starrocks':
+ return <Icons.starrocks className='size-8'></Icons.starrocks>
+ case 'custom-icons-lakehouse':
+ return <Icons.lakehouse className='size-8'></Icons.lakehouse>
+ }
+ } else {
+ return <Icons.iconify icon={calalogIcon} className='size-8' />
+ }
+}
+
+export default function CatalogDetailsPage() {
+ const [openCatalog, setOpenCatalog] = useState(false)
+ const [openSchema, setOpenSchema] = useState(false)
+ const [openOwner, setOpenOwner] = useState(false)
+ const [editSchema, setEditSchema] = useState('')
+ const [metadataObjectType, setMetadataObjectType] = useState('')
+ const [metadataObjectFullName, setMetadataObjectFullName] = useState('')
+ const [modal, contextHolder] = Modal.useModal()
+ const [search, setSearch] = useState('')
+ const [tabKey, setTabKey] = useState('Schemas')
+ const { ref, width } = useResizeObserver()
+ const treeRef = useContext(TreeRefContext)
+ const auth = useAppSelector(state => state.auth)
+ const { anthEnable, systemConfig } = auth
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const catalogType = searchParams.get('catalogType')
+ const catalog = searchParams.get('catalog')
+ const store = useAppSelector(state => state.metalakes)
+ const dispatch = useAppDispatch()
+ const [ownerData, setOwnerData] = useState(null)
+
+ useEffect(() => {
+ const getOwnerData = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'catalog',
+ metadataObjectFullName: catalog
+ })
+ )
+ setOwnerData(payload?.owner)
+ }
+ anthEnable && getOwnerData()
+ }, [anthEnable])
+
+ const tableData = [...store.tableData]
+ .sort((a, b) => new Date(b?.audit?.lastModifiedTime).getTime() - new Date(a?.audit?.lastModifiedTime).getTime())
+ .filter(c => {
+ if (search === '') return true
+
+ return c.name.includes(search)
+ })
+ .map(schema => {
+ return {
+ ...schema,
+ key: schema.name,
+ children: undefined
+ }
+ })
+
+ const tagContent = (
+ <div>
+ <Tags
+ readOnly={true}
+ metadataObjectType={'catalog'}
+ metadataObjectFullName={store.activatedDetails?.name || catalog}
+ key={`catalog-${store.activatedDetails?.name || catalog}-tags`}
+ />
+ </div>
+ )
+
+ const policyContent = (
+ <div>
+ <Policies
+ readOnly={true}
+ metadataObjectType={'catalog'}
+ metadataObjectFullName={store.activatedDetails?.name || catalog}
+ key={`catalog-${store.activatedDetails?.name || catalog}-policies`}
+ />
+ </div>
+ )
+
+ const properties = store.activatedDetails?.properties
+ const propertyContent = <PropertiesContent properties={properties} />
+
+ const tabOptions = anthEnable
+ ? [
+ { label: 'Schemas', key: 'Schemas' },
+ { label: 'Associated roles', key: 'Associated roles' }
+ ]
+ : [{ label: 'Schemas', key: 'Schemas' }]
+
+ const onChangeTab = key => {
+ setTabKey(key)
+ }
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleCreateScheme = () => {
+ setEditSchema('')
+ setOpenSchema(true)
+ }
+
+ const handleEditSchema = schema => {
+ setEditSchema(schema)
+ setOpenSchema(true)
+ }
+
+ const handleEditCatalog = () => {
+ setOpenCatalog(true)
+ }
+
+ const handleSetOwner = (type, name) => {
+ setMetadataObjectType(type)
+ setMetadataObjectFullName(name)
+ setOpenOwner(true)
+ }
+
+ const showDeleteConfirm = (NameContext, schema, type) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+
+ modal.confirm({
+ title: `Are you sure to delete the ${type} ${schema}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => <ConfirmInput name={schema} setConfirmInput={setConfirmInput} registerValidate={registerValidate} />}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deleteSchema({ metalake: currentMetalake, catalog, catalogType, schema }))
+ treeRef.current.onLoadData({ key: `${catalog}`, nodeType: 'catalog', inUse: true })
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Schema Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ width: 200,
+ render: name => (
+ <Link
+ data-refer={`schema-link-${name}`}
+ href={`/catalogs?metalake=${encodeURIComponent(currentMetalake)}&catalogType=${catalogType}&catalog=${encodeURIComponent(catalog)}&schema=${encodeURIComponent(name)}`}
+ >
+ {name}
+ </Link>
+ )
+ },
+ {
+ title: 'Tags',
+ dataIndex: 'tags',
+ key: 'tags',
+ ellipsis: true,
+ render: (_, record) =>
+ record?.node === 'schema' ? (
+ <Tags
+ metadataObjectType={'schema'}
+ metadataObjectFullName={`${record.namespace.at(-1)}.${record.name}`}
+ key={`schema-${record.namespace.at(-1)}.${record.name}-tags`}
+ />
+ ) : null
+ },
+ {
+ title: 'Policies',
+ dataIndex: 'policies',
+ key: 'policies',
+ ellipsis: true,
+ render: (_, record) =>
+ record?.node === 'schema' ? (
+ <Policies
+ metadataObjectType={'schema'}
+ metadataObjectFullName={`${record.namespace.at(-1)}.${record.name}`}
+ key={`schema-${record.namespace.at(-1)}.${record.name}-policies`}
+ />
+ ) : null
+ },
+ ...(store.activatedDetails?.provider !== 'kafka'
+ ? [
+ {
+ title: 'Actions',
+ dataIndex: 'action',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Tooltip title='Edit'>
+ <Icons.Pencil className='size-4' onClick={() => handleEditSchema(record.name)} />
+ </Tooltip>
+ </a>
+ <a>
+ <Tooltip title='Delete'>
+ <Icons.Trash2Icon
+ className='size-4'
+ onClick={() => showDeleteConfirm(NameContext, record.name, 'schema')}
+ />
+ </Tooltip>
+ </a>
+ {anthEnable && (
+ <Dropdown
+ menu={{
+ items: [
+ {
+ label: 'Set Owner',
+ key: 'setOwner'
+ }
+ ],
+ onClick: ({ key }) => {
+ switch (key) {
+ case 'setOwner':
+ handleSetOwner('schema', `${catalog}.${record.name}`)
+ break
+ }
+ }
+ }}
+ trigger={['hover']}
+ >
+ <Tooltip title='Settings'>
+ <a onClick={e => e.preventDefault()}>
+ <Icons.Settings className='size-4' />
+ </a>
+ </Tooltip>
+ </Dropdown>
+ )}
+ </div>
+ )
+ }
+ }
+ ]
+ : [])
+ ],
+ [catalogType, anthEnable]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <div ref={ref}>
+ <Spin spinning={store.activatedDetailsLoading}>
+ <Flex className='mb-2' gap='small' align='flex-start'>
+ <div className='size-8'>{renderIcon(store.activatedDetails)}</div>
+ <div className='grow-1 relative bottom-1'>
+ <Title level={3} style={{ marginBottom: '0.125rem' }}>
+ <Space>
+ <span
+ title={catalog}
+ className={`min-w-10 truncate`}
+ style={{ maxWidth: `calc(${width}px - 56px)`, display: 'inherit' }}
+ >
+ {decodeURIComponent(catalog)}
+ </span>
+ <Tooltip title='Edit'>
+ <Icons.Pencil
+ className='relative size-4 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={handleEditCatalog}
+ />
+ </Tooltip>
+ </Space>
+ </Title>
+ <Paragraph
+ type='secondary'
+ className='truncate'
+ title={store.activatedDetails?.comment}
+ style={{ marginBottom: 0, maxWidth: `calc(${width}px - 56px)` }}
+ >
+ {store.activatedDetails?.comment}
+ </Paragraph>
+ </div>
+ </Flex>
+ <Space split={<Divider type='vertical' />} wrap={true} className='mb-2'>
+ {anthEnable && (
+ <Space size={4}>
+ <Tooltip title='Owner' placement='top'>
+ <Icons.User className='size-4' color='grey' />
+ </Tooltip>
+ <span>{ownerData?.name || '-'}</span>
+ <Tooltip title='Set Owner'>
+ <Icons.Pencil
+ className='relative size-3 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={() => handleSetOwner('catalog', catalog)}
+ />
+ </Tooltip>
+ </Space>
+ )}
+ <Space size={4}>
+ <Tooltip title='Type' placement='top'>
+ <Icons.Type className='size-4' color='grey' />
+ </Tooltip>
+ <span>{store.activatedDetails?.type}</span>
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Provider' placement='top'>
+ <Icons.CircleParkingIcon className='size-4' color='grey' />
+ </Tooltip>
+ <span>{store.activatedDetails?.provider}</span>
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Tags' placement='top'>
+ <Icons.Tags className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityTags?.length > 0 ? (
+ <Popover placement='bottom' title={<span>Tags</span>} content={tagContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityTags?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Policies' placement='top'>
+ <Icons.PencilRuler className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityPolicies?.length > 0 ? (
+ <Popover placement='bottom' title={<span>Policies</span>} content={policyContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityPolicies?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Properties' placement='top'>
+ <Icons.TableProperties className='size-4' color='grey' />
+ </Tooltip>
+ {properties && Object.keys(properties).length > 0 ? (
+ <Popover placement='bottom' title={<span>Properties</span>} content={propertyContent}>
+ <a className='text-defaultPrimary'>{Object.keys(properties)?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ </Space>
+ </Spin>
+ <Tabs data-refer='details-tabs' defaultActiveKey={tabKey} onChange={onChangeTab} items={tabOptions} />
+ {tabKey === 'Schemas' ? (
+ <>
+ <Flex justify='flex-end' className='mb-4'>
+ <div
+ className={cn('flex gap-4', {
+ 'w-1/3': ['kafka', 'lakehouse-hudi'].includes(store.activatedDetails?.provider),
+ 'w-1/2': !['kafka', 'lakehouse-hudi'].includes(store.activatedDetails?.provider)
+ })}
+ >
+ <Search name='searcSchemaInput' placeholder='Search...' value={search} onChange={onSearchTable} />
+ {!['kafka', 'lakehouse-hudi'].includes(store.activatedDetails?.provider) && (
+ <Button
+ data-refer='create-schema-btn'
+ type='primary'
+ icon={<PlusOutlined />}
+ onClick={handleCreateScheme}
+ >
+ Create Schema
+ </Button>
+ )}
+ </div>
+ </Flex>
+ <Spin spinning={store.tableLoading}>
+ <Table
+ data-refer='table-grid'
+ size='small'
+ style={{ maxHeight: 'calc(100vh - 30rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 37rem)' }}
+ dataSource={tableData}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ columns={resizableColumns}
+ components={components}
+ />
+ {tableData?.length === 1000 && (
+ <span className='float-right text-xs text-slate-300'>{t('common.defaultTotalNum')}</span>
+ )}
+ </Spin>
+ {openSchema && (
+ <CreateSchemaDialog
+ open={openSchema}
+ setOpen={setOpenSchema}
+ metalake={currentMetalake}
+ catalog={catalog}
+ catalogType={catalogType}
+ provider={store.activatedDetails?.provider}
+ locationProviders={store.activatedDetails?.properties?.['filesystem-providers']?.split(',') || []}
+ editSchema={editSchema}
+ />
+ )}
+ </>
+ ) : (
+ <AssociatedTable
+ metalake={currentMetalake}
+ metadataObjectType={'catalog'}
+ metadataObjectFullName={store.activatedDetails?.name}
+ />
+ )}
+ {openCatalog && (
+ <CreateCatalogDialog
+ open={openCatalog}
+ setOpen={setOpenCatalog}
+ metalake={currentMetalake}
+ editCatalog={catalog}
+ catalogType={catalogType}
+ systemConfig={systemConfig}
+ />
+ )}
+ {openOwner && (
+ <SetOwnerDialog
+ open={openOwner}
+ setOpen={setOpenOwner}
+ metalake={currentMetalake}
+ metadataObjectType={metadataObjectType}
+ metadataObjectFullName={metadataObjectFullName}
+ mutateOwner={async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'catalog',
+ metadataObjectFullName: catalog
+ })
+ )
+ setOwnerData(payload?.owner)
+ }}
+ />
+ )}
+ </div>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogsPage.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogsPage.js
new file mode 100644
index 0000000000..33dff4aa2f
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/CatalogsPage.js
@@ -0,0 +1,378 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useContext, useMemo, useState } from 'react'
+
+import dynamic from 'next/dynamic'
+import { useSearchParams } from 'next/navigation'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import { Button, Dropdown, Flex, Input, Modal, Spin, Table, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { switchInUseCatalog, deleteCatalog } from '@/lib/store/metalakes'
+import { TreeRefContext } from '../../page'
+import Tags from '@/components/CustomTags'
+import Icons from '@/components/Icons'
+import Policies from '@/components/PolicyTag'
+import Link from 'next/link'
+import Loading from '@/components/Loading'
+
+const CreateCatalogDialog = dynamic(() => import('../CreateCatalogDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const ConfirmInput = dynamic(() => import('@/components/ConfirmInput'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function CatalogsPage() {
+ const [open, setOpen] = useState(false)
+ const [openOwner, setOpenOwner] = useState(false)
+ const [editCatalog, setEditCatalog] = useState('')
+ const [metadataObjectFullName, setMetadataObjectFullName] = useState('')
+ const auth = useAppSelector(state => state.auth)
+ const { anthEnable } = auth
+ const [modal, contextHolder] = Modal.useModal()
+ const [search, setSearch] = useState('')
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake') || ''
+ const catalogType = searchParams.get('catalogType') || 'relational'
+ const treeRef = useContext(TreeRefContext)
+ const store = useAppSelector(state => state.metalakes)
+ const dispatch = useAppDispatch()
+
+ const tableData =
+ [...store.tableData]
+ .sort((a, b) => new Date(b?.audit?.lastModifiedTime).getTime() - new Date(a?.audit?.lastModifiedTime).getTime())
+ .filter(c => {
+ if (search === '') return c.type === catalogType
+
+ return c.name.includes(search) && c.type === catalogType
+ })
+ .map(catalog => {
+ return {
+ ...catalog,
+ key: catalog.name,
+ tags: [],
+ properties: catalog.properties,
+ children: undefined
+ }
+ }) || []
+
+ const providerFitlers = [...store.tableData]
+ .filter(catalog => catalog.type === catalogType)
+ ?.map(catalog => catalog.provider)
+ .filter((value, index, self) => self.indexOf(value) === index)
+ .map(p => {
+ return {
+ text: p,
+ value: p
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleCreateCatalog = () => {
+ setEditCatalog('')
+ setOpen(true)
+ }
+
+ const handleEditCatalog = catalog => {
+ setEditCatalog(catalog)
+ setOpen(true)
+ }
+
+ const handleSetOwner = catalog => {
+ setMetadataObjectFullName(catalog)
+ setOpenOwner(true)
+ }
+
+ const showDeleteConfirm = (NameContext, catalog, type) => {
+ const inUse = catalog.properties['in-use'] === 'true'
+ if (inUse) {
+ modal.error({
+ title: `Make sure the ${type} ${catalog.name} is not in-use`,
+ icon: <ExclamationCircleFilled />,
+ okText: 'OK'
+ })
+
+ return
+ }
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+
+ modal.confirm({
+ title: `Are you sure to delete the ${type} ${catalog.name}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => (
+ <ConfirmInput
+ name={name}
+ type={type}
+ setConfirmInput={setConfirmInput}
+ registerValidate={registerValidate}
+ />
+ )}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deleteCatalog({ metalake: currentMetalake, catalog: catalog.name, catalogType: catalog.type }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Catalog Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ width: 200,
+ render: (_, record) => (
+ <div className='flex items-center gap-0.5'>
+ {record.properties?.['in-use'] === 'false' && (
+ <Tooltip title='Not In Use'>
+ <Icons.BanIcon className='size-3 text-gray-400' />
+ </Tooltip>
+ )}
+ {record.properties?.['in-use'] === 'true' ? (
+ <Link
+ href={`/catalogs?metalake=${currentMetalake}&catalogType=${catalogType}&catalog=${encodeURIComponent(record.name)}`}
+ title={record.name}
+ data-refer={`catalog-link-${record.name}`}
+ className='hover:text-defaultPrimary'
+ >
+ {record.name}
+ </Link>
+ ) : (
+ <span>{record.name}</span>
+ )}
+ </div>
+ )
+ },
+ {
+ title: 'Provider',
+ dataIndex: 'provider',
+ key: 'provider',
+ filters: providerFitlers,
+ onFilter: (value, record) => record.provider.indexOf(value) === 0,
+ ellipsis: true,
+ width: 150
+ },
+ {
+ title: 'Comment',
+ dataIndex: 'comment',
+ key: 'comment',
+ ellipsis: true,
+ width: 120,
+ render: (_, record) => <span>{record.comment || '-'}</span>
+ },
+ {
+ title: 'Tags',
+ dataIndex: 'tags',
+ key: 'tags',
+ ellipsis: true,
+ render: (_, record) =>
+ record?.node === 'catalog' ? (
+ <Tags
+ metadataObjectType={'catalog'}
+ metadataObjectFullName={record.name}
+ key={`catalog-${record.name}-tags`}
+ />
+ ) : null
+ },
+ {
+ title: 'Policies',
+ dataIndex: 'policies',
+ key: 'policies',
+ ellipsis: true,
+ render: (_, record) =>
+ record?.node === 'catalog' ? (
+ <Policies
+ metadataObjectType={'catalog'}
+ metadataObjectFullName={record.name}
+ key={`catalog-${record.name}-policies`}
+ />
+ ) : null
+ },
+ {
+ title: 'Actions',
+ dataIndex: 'action',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ <a data-refer={`edit-entity-${record.name}`}>
+ <Tooltip title='Edit'>
+ <Icons.Pencil className='size-4' onClick={() => handleEditCatalog(record.name)} />
+ </Tooltip>
+ </a>
+ <a data-refer={`delete-entity-${record.name}`}>
+ <Tooltip title='Delete'>
+ <Icons.Trash2Icon
+ className='size-4'
+ onClick={() => showDeleteConfirm(NameContext, record, 'catalog')}
+ />
+ </Tooltip>
+ </a>
+ <Dropdown
+ menu={{
+ items: anthEnable
+ ? [
+ {
+ label: 'Set Owner',
+ key: 'setOwner'
+ },
+ {
+ label: record.properties?.['in-use'] === 'true' ? 'Not In-Use' : 'In-Use',
+ key: record.properties?.['in-use'] === 'true' ? 'notInUse' : 'inUse'
+ }
+ ]
+ : [
+ {
+ label: record.properties?.['in-use'] === 'true' ? 'Not In-Use' : 'In-Use',
+ key: record.properties?.['in-use'] === 'true' ? 'notInUse' : 'inUse'
+ }
+ ],
+ onClick: ({ key }) => {
+ switch (key) {
+ case 'setOwner':
+ handleSetOwner(record.name)
+ break
+ case 'inUse':
+ handleChangeInUse(record, true)
+ break
+ case 'notInUse':
+ handleChangeInUse(record, false)
+ break
+ }
+ }
+ }}
+ trigger={['hover']}
+ >
+ <Tooltip title='Settings'>
+ <a data-refer={`settings-catalog-${record.name}`} onClick={e => e.preventDefault()}>
+ <Icons.Settings className='size-4' />
+ </a>
+ </Tooltip>
+ </Dropdown>
+ </div>
+ )
+ }
+ }
+ ],
+ [catalogType, anthEnable, store.tableLoading, store.tableData]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ const handleChangeInUse = async (catalogObj, checked) => {
+ await dispatch(switchInUseCatalog({ metalake: currentMetalake, catalog: catalogObj.name, isInUse: checked }))
+ treeRef.current?.setCatalogInUse(catalogObj.name, checked)
+ }
+
+ return (
+ <div>
+ <Title level={2}>Catalogs</Title>
+ <Paragraph type='secondary'>This table lists the data catalogs you have access to.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/2 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' value={search} onChange={onSearchTable} />
+ <Button type='primary' icon={<PlusOutlined />} onClick={handleCreateCatalog} data-refer='create-catalog-btn'>
+ Create Catalog
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.tableLoading}>
+ <Table
+ data-refer='table-grid'
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 33rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ {tableData?.length === 1000 && (
+ <span className='float-right text-xs text-slate-300'>up to 1000 data items</span>
+ )}
+ </Spin>
+ {open && (
+ <CreateCatalogDialog
+ open={open}
+ setOpen={setOpen}
+ metalake={currentMetalake}
+ catalogType={catalogType}
+ editCatalog={editCatalog}
+ init={true}
+ />
+ )}
+ {openOwner && (
+ <SetOwnerDialog
+ open={openOwner}
+ setOpen={setOpenOwner}
+ metalake={currentMetalake}
+ metadataObjectType={'catalog'}
+ metadataObjectFullName={metadataObjectFullName}
+ />
+ )}
+ </div>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/FilesetDetailsPage.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/FilesetDetailsPage.js
new file mode 100644
index 0000000000..8214d49908
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/FilesetDetailsPage.js
@@ -0,0 +1,319 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useState, useEffect } from 'react'
+import dynamic from 'next/dynamic'
+import { Divider, Flex, Popover, Space, Spin, Tabs, Tooltip, Typography } from 'antd'
+import useResizeObserver from 'use-resize-observer'
+import AssociatedTable from '@/components/AssociatedTable'
+import Tags from '@/components/CustomTags'
+import Policies from '@/components/PolicyTag'
+import Icons from '@/components/Icons'
+import PropertiesContent from '@/components/PropertiesContent'
+import ListFiles from './ListFiles'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { useSearchParams } from 'next/navigation'
+import { getCatalogDetails } from '@/lib/store/metalakes'
+import Loading from '@/components/Loading'
+import CreateFilesetDialog from '../CreateFilesetDialog'
+import { getCurrentEntityOwner } from '@/lib/store/metalakes'
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+
+export default function FilesetDetailsPage({ ...props }) {
+ const [open, setOpen] = useState(false)
+ const [openOwner, setOpenOwner] = useState(false)
+ const [metadataObjectFullName, setMetadataObjectFullName] = useState('')
+ const { catalog, schema, fileset } = props.namespaces
+ const { locale } = props
+ const { ref, width } = useResizeObserver()
+ const auth = useAppSelector(state => state.auth)
+ const { anthEnable, systemConfig } = auth
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const catalogType = searchParams.get('catalogType')
+ const [catalogData, setCatalogData] = useState(null)
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.metalakes)
+ const [ownerData, setOwnerData] = useState(null)
+
+ useEffect(() => {
+ if (!currentMetalake || !catalog) return
+
+ const initLoad = async () => {
+ const { payload } = await dispatch(getCatalogDetails({ metalake: currentMetalake, catalog }))
+ setCatalogData(payload?.catalog)
+ }
+ initLoad()
+ }, [currentMetalake, catalog, store.activatedDetailsLoading])
+
+ useEffect(() => {
+ const getOwnerData = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'fileset',
+ metadataObjectFullName: `${catalog}.${schema}.${fileset}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }
+ anthEnable && getOwnerData()
+ }, [anthEnable])
+
+ const handleSetOwner = name => {
+ setMetadataObjectFullName(name)
+ setOpenOwner(true)
+ }
+
+ const tagContent = (
+ <div>
+ <Tags readOnly={true} metadataObjectType={'fileset'} metadataObjectFullName={`${catalog}.${schema}.${fileset}`} />
+ </div>
+ )
+
+ const policyContent = (
+ <div>
+ <Policies
+ readOnly={true}
+ metadataObjectType={'fileset'}
+ metadataObjectFullName={`${catalog}.${schema}.${fileset}`}
+ />
+ </div>
+ )
+
+ const properties = store.activatedDetails?.properties
+ const propertyContent = <PropertiesContent properties={properties} />
+
+ const storageLocations = store.activatedDetails?.storageLocations
+
+ const storageLocationContent = () => {
+ return (
+ <Space.Compact className='max-h-80 overflow-auto'>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Name</span>
+ {storageLocations
+ ? Object.keys(storageLocations).map((name, index) => (
+ <span
+ className={cn('p-1', {
+ 'font-bold': name === properties?.['default-location-name']
+ })}
+ key={index}
+ >
+ {name}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Location</span>
+ {storageLocations
+ ? Object.values(storageLocations).map((location, index) => (
+ <span className='p-1' key={index}>
+ {location || '-'}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ </Space.Compact>
+ )
+ }
+
+ const disableFilesystemOps = catalogData?.properties?.['disable-filesystem-ops'] === 'true'
+ const [activeTab, setActiveTab] = useState(disableFilesystemOps ? '' : 'files')
+
+ const tabOptions = [
+ {
+ label: disableFilesystemOps ? (
+ <Tooltip title='Filesystem operations are disabled'>
+ <span>Files</span>
+ </Tooltip>
+ ) : (
+ <span>Files</span>
+ ),
+ key: 'files',
+ disabled: disableFilesystemOps
+ },
+ ...(anthEnable ? [{ label: 'Associated roles', key: 'Associated roles' }] : [])
+ ]
+
+ const handleEditTable = () => {
+ setOpen(true)
+ }
+
+ return (
+ <>
+ <Spin spinning={store.activatedDetailsLoading}>
+ <Flex className='mb-2' gap='small' align='flex-start' ref={ref}>
+ <div className='size-8'>
+ <Icons.iconify icon='bx:file' className='my-icon-large' />
+ </div>
+ <div className='grow-1 relative bottom-1'>
+ <Title level={3} style={{ marginBottom: '0.125rem' }}>
+ <Space>
+ <span
+ title={fileset}
+ className='min-w-10 truncate'
+ style={{ maxWidth: `calc(${width}px - 56px)`, display: 'inherit' }}
+ >
+ {fileset}
+ </span>
+ <Tooltip title='Edit'>
+ <Icons.Pencil
+ className='relative size-4 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={handleEditTable}
+ />
+ </Tooltip>
+ </Space>
+ </Title>
+ <Paragraph
+ type='secondary'
+ className='truncate'
+ title={store.activatedDetails?.comment}
+ style={{ marginBottom: 0, maxWidth: `calc(${width}px - 56px)` }}
+ >
+ {store.activatedDetails?.comment}
+ </Paragraph>
+ </div>
+ </Flex>
+ <Space split={<Divider type='vertical' />} wrap={true} className='mb-2'>
+ {anthEnable && (
+ <Space size={4}>
+ <Tooltip title='Owner' placement='top'>
+ <Icons.User className='size-4' color='grey' />
+ </Tooltip>
+ <span>{ownerData?.name || '-'}</span>
+ <Tooltip title='Set Owner'>
+ <Icons.Pencil
+ className='relative size-3 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={() => handleSetOwner(`${catalog}.${schema}.${fileset}`)}
+ />
+ </Tooltip>
+ </Space>
+ )}
+ <Space size={4}>
+ <Tooltip title='Type' placement='top'>
+ <Icons.Type className='size-4' color='grey' />
+ </Tooltip>
+ <span>{store.activatedDetails?.type?.toUpperCase()}</span>
+ </Space>
+ {storageLocations && Object.keys(storageLocations).length > 0 ? (
+ <Space size={4}>
+ <Tooltip title='Storage Location(s)' placement='top'>
+ <Icons.CloudUpload className='size-4' color='grey' />
+ </Tooltip>
+ <Popover placement='bottom' title={<span>Storage Location(s)</span>} content={storageLocationContent}>
+ <a className='text-defaultPrimary'>{Object.keys(storageLocations)?.length}</a>
+ </Popover>
+ </Space>
+ ) : (
+ <Space size={4}>
+ <Tooltip title='Storage Location(s)' placement='top'>
+ <Icons.CloudUpload className='size-4' color='grey' />
+ </Tooltip>
+ <a className='text-defaultPrimary'>0</a>
+ </Space>
+ )}
+ <Space size={4}>
+ <Tooltip title='Tags' placement='top'>
+ <Icons.Tags className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityTags && store.currentEntityTags?.length > 0 ? (
+ <Popover placement='bottom' title={<span>Tags</span>} content={tagContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityTags?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Properties' placement='top'>
+ <Icons.TableProperties className='size-4' color='grey' />
+ </Tooltip>
+ {properties && Object.keys(properties).length > 0 ? (
+ <Popover placement='bottom' title={<span>Properties</span>} content={propertyContent}>
+ <a className='text-defaultPrimary'>{Object.keys(properties)?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ </Space>
+ </Spin>
+ <Tabs items={tabOptions} activeKey={activeTab} onChange={setActiveTab} />
+ {activeTab === 'files' && (
+ <div data-refer='tab-files-panel'>
+ <ListFiles
+ metalake={currentMetalake}
+ catalog={catalog}
+ schema={schema}
+ fileset={fileset}
+ storageLocations={store.activatedDetails?.storageLocations}
+ defaultLocationName={store.activatedDetails?.properties?.['default-location-name']}
+ />
+ </div>
+ )}
+ {anthEnable && activeTab === 'Associated roles' && fileset && (
+ <AssociatedTable
+ metalake={currentMetalake}
+ metadataObjectType={'fileset'}
+ metadataObjectFullName={`${catalog}.${schema}.${fileset}`}
+ />
+ )}
+ {open && (
+ <CreateFilesetDialog
+ open={open}
+ setOpen={setOpen}
+ metalake={currentMetalake}
+ catalog={catalog}
+ schema={schema}
+ editFileset={fileset}
+ init={true}
+ />
+ )}
+ {openOwner && (
+ <SetOwnerDialog
+ open={openOwner}
+ setOpen={setOpenOwner}
+ metalake={currentMetalake}
+ metadataObjectType={'fileset'}
+ metadataObjectFullName={metadataObjectFullName}
+ mutateOwner={async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'fileset',
+ metadataObjectFullName: `${catalog}.${schema}.${fileset}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }}
+ />
+ )}
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/ListFiles.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/ListFiles.js
new file mode 100644
index 0000000000..849e1409c3
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/ListFiles.js
@@ -0,0 +1,235 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useEffect, useState, useMemo } from 'react'
+
+import { ArrowLeftOutlined, CopyOutlined, FileOutlined, FolderOutlined } from '@ant-design/icons'
+import { App, Button, Select, Space, Spin, Table, Typography } from 'antd'
+
+// import { useListFilesByFileset } from '@/hooks'
+import { copyToClipboard, formatFileSize, formatLastModified } from '@/lib/utils'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import { getFilesetFiles } from '@/lib/store/metalakes'
+
+const { Option } = Select
+const { Text, Link } = Typography
+
+const ListFiles = ({ metalake, catalog, schema, fileset, storageLocations, defaultLocationName }) => {
+ const [currentLocation, setCurrentLocation] = useState(undefined)
+ const [sub_path, setSubPath] = useState('')
+ const [pathSegments, setPathSegments] = useState([])
+ const { message } = App.useApp()
+ const store = useAppSelector(state => state.metalakes)
+ const dispatch = useAppDispatch()
+
+ useEffect(() => {
+ if (defaultLocationName) {
+ setCurrentLocation(defaultLocationName)
+ }
+ }, [defaultLocationName])
+
+ useEffect(() => {
+ if (sub_path) {
+ setPathSegments(sub_path.split('/').filter(p => p))
+ } else {
+ setPathSegments([])
+ }
+ }, [sub_path])
+
+ useEffect(() => {
+ console.log('sub_path changed:', sub_path)
+ if (metalake && catalog && schema && fileset) {
+ dispatch(
+ getFilesetFiles({
+ metalake,
+ catalog,
+ schema,
+ fileset,
+ subPath: sub_path,
+ locationName: currentLocation
+ })
+ )
+ }
+ }, [dispatch, metalake, catalog, schema, fileset, sub_path, currentLocation])
+
+ const handleLocationChange = value => {
+ setCurrentLocation(value)
+ setSubPath('')
+ }
+
+ const handlePathSegmentClick = index => {
+ const newSubPath = pathSegments.slice(0, index + 1).join('/')
+ setSubPath(newSubPath)
+ }
+
+ const handleDirectoryClick = dirName => {
+ const newSubPath = sub_path ? `${sub_path}/${dirName}` : dirName
+ setSubPath(newSubPath)
+ }
+
+ const handleBackClick = () => {
+ if (pathSegments.length > 0) {
+ const newPathSegments = pathSegments.slice(0, -1)
+ setSubPath(newPathSegments.join('/'))
+ }
+ }
+
+ const handleCopyPath = () => {
+ if (currentLocation && storageLocations && storageLocations[currentLocation]) {
+ const basePath = storageLocations[currentLocation].replace(/\/$/, '')
+ const fullPath = sub_path ? `${basePath}/${sub_path}` : basePath
+ copyToClipboard(fullPath)
+ .then(() => {
+ message.success('Path copied!')
+ })
+ .catch(err => {
+ console.error('Failed to copy path: ', err)
+ message.error('Failed to copy path')
+ })
+ }
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'File Name',
+ dataIndex: 'name',
+ key: 'name',
+ width: 250,
+ render: (name, record) => (
+ <Space>
+ {record.isDir ? <FolderOutlined /> : <FileOutlined />}
+ {record.isDir ? <Link onClick={() => handleDirectoryClick(name)}>{name}</Link> : <span>{name}</span>}
+ </Space>
+ )
+ },
+ {
+ title: 'File Type',
+ dataIndex: 'type',
+ key: 'type',
+ width: 150,
+ render: (type, record) => (record.isDir ? 'Directory' : 'File')
+ },
+ {
+ title: 'File Size',
+ dataIndex: 'size',
+ key: 'size',
+ width: 200,
+ render: size => formatFileSize(size)
+ },
+ {
+ title: 'File Modified Time',
+ dataIndex: 'lastModified',
+ key: 'lastModified',
+ render: lastModified => formatLastModified(lastModified)
+ }
+ ],
+ [sub_path]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ if (!storageLocations || Object.keys(storageLocations).length === 0) {
+ return <p>No storage locations configured</p>
+ }
+
+ if (!currentLocation && defaultLocationName) {
+ setCurrentLocation(defaultLocationName)
+
+ return <Spin />
+ }
+
+ if (!currentLocation && Object.keys(storageLocations).length > 0) {
+ const firstLocation = Object.keys(storageLocations)[0]
+ setCurrentLocation(firstLocation)
+
+ return <Spin />
+ }
+
+ if (!currentLocation) {
+ return <p>Please select a storage location</p>
+ }
+
+ const displayedFiles = [...store.tableData] || []
+
+ const currentFullPath =
+ currentLocation && storageLocations && storageLocations[currentLocation]
+ ? `${storageLocations[currentLocation].replace(/\/$/, '')}${sub_path ? `/${sub_path}` : ''}`
+ : ''
+
+ return (
+ <Spin spinning={store.tableLoading}>
+ <Space direction='vertical' style={{ width: '100%' }}>
+ <Space wrap style={{ justifyContent: 'space-between', width: '100%' }}>
+ <Text type='secondary' style={{ display: 'flex', alignItems: 'center' }}>
+ {sub_path && (
+ <Button icon={<ArrowLeftOutlined />} onClick={handleBackClick} type='text' style={{ marginRight: 8 }} />
+ )}
+ {currentLocation && storageLocations && storageLocations[currentLocation] && (
+ <Link onClick={() => setSubPath('')}>{storageLocations[currentLocation].replace(/\/$/, '')}</Link>
+ )}
+ {pathSegments.map((segment, index) => (
+ <span key={index}>
+ {'/'}
+ <Link onClick={() => handlePathSegmentClick(index)}>{segment}</Link>
+ </span>
+ ))}
+ {currentFullPath && <CopyOutlined onClick={handleCopyPath} style={{ marginLeft: 8, cursor: 'pointer' }} />}
+ </Text>
+ {Object.keys(storageLocations).length > 0 && (
+ <Select
+ value={currentLocation}
+ style={{ minWidth: 200 }}
+ onChange={handleLocationChange}
+ placeholder='Select Location'
+ >
+ {Object.entries(storageLocations).map(
+ (
+ [name, _path] // Changed path to _path to avoid conflict
+ ) => (
+ <Option key={name} value={name}>
+ {name}
+ </Option>
+ )
+ )}
+ </Select>
+ )}
+ </Space>
+
+ <Table
+ style={{ maxHeight: 'calc(100vh - 30rem)' }}
+ scroll={{ y: 'calc(100vh - 37rem)' }}
+ dataSource={displayedFiles}
+ columns={resizableColumns}
+ components={components}
+ rowKey='name'
+ size='small'
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Space>
+ </Spin>
+ )
+}
+
+export default ListFiles
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/ModelDetailsPage.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/ModelDetailsPage.js
new file mode 100644
index 0000000000..c6a5d95ed7
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/ModelDetailsPage.js
@@ -0,0 +1,493 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useMemo, useState, useEffect } from 'react'
+import dynamic from 'next/dynamic'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import {
+ Button,
+ Divider,
+ Drawer,
+ Empty,
+ Flex,
+ Input,
+ Modal,
+ Popover,
+ Space,
+ Spin,
+ Table,
+ Tabs,
+ Tooltip,
+ Typography
+} from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import useResizeObserver from 'use-resize-observer'
+
+import AssociatedTable from '@/components/AssociatedTable'
+import ConfirmInput from '@/components/ConfirmInput'
+import Tags from '@/components/CustomTags'
+import Policies from '@/components/PolicyTag'
+import Icons from '@/components/Icons'
+import PropertiesContent from '@/components/PropertiesContent'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { useSearchParams } from 'next/navigation'
+import Loading from '@/components/Loading'
+import RegisterModelDialog from '../RegisterModelDialog'
+import LinkVersionDialog from '../LinkVersionDialog'
+import { getVersionDetails, deleteVersion, getCurrentEntityOwner } from '@/lib/store/metalakes'
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function ModelDetailsPage({ ...props }) {
+ const [openOwner, setOpenOwner] = useState(false)
+ const [metadataObjectFullName, setMetadataObjectFullName] = useState('')
+ const [open, setOpen] = useState(false)
+ const { catalog, schema, model } = props.namespaces
+ const [search, setSearch] = useState('')
+ const [activeTab, setActiveTab] = useState('Versions')
+ const [modal, contextHolder] = Modal.useModal()
+ const { ref, width } = useResizeObserver()
+ const [openLinkVersion, setOpenLinkVersion] = useState(false)
+ const [editVersion, setEditVersion] = useState('')
+ const [openVersion, setOpenVersion] = useState(false)
+ const [currentVersion, setCurrentVersion] = useState()
+ const auth = useAppSelector(state => state.auth)
+ const { anthEnable, systemConfig } = auth
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const catalogType = searchParams.get('catalogType')
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.metalakes)
+ const [ownerData, setOwnerData] = useState(null)
+
+ useEffect(() => {
+ const getOwnerData = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'model',
+ metadataObjectFullName: `${catalog}.${schema}.${model}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }
+ anthEnable && getOwnerData()
+ }, [anthEnable])
+
+ const handleSetOwner = name => {
+ setMetadataObjectFullName(name)
+ setOpenOwner(true)
+ }
+
+ const tableData = store.tableData
+ ?.filter(v => {
+ if (search === '') return true
+
+ return v.toString().includes(search)
+ })
+ .map(v => {
+ return {
+ key: v.name,
+ version: v.name
+ }
+ })
+
+ const tagContent = (
+ <div>
+ <Tags readOnly={true} metadataObjectType={'model'} metadataObjectFullName={`${catalog}.${schema}.${model}`} />
+ </div>
+ )
+
+ const policyContent = (
+ <div>
+ <Policies readOnly={true} metadataObjectType={'model'} metadataObjectFullName={`${catalog}.${schema}.${model}`} />
+ </div>
+ )
+
+ const properties = store.activatedDetails?.properties
+ const propertyContent = <PropertiesContent properties={properties} />
+
+ const tabOptions = [
+ { label: 'Versions', key: 'Versions' },
+ ...(anthEnable ? [{ label: 'Associated roles', key: 'Associated roles' }] : [])
+ ]
+
+ const onChangeTab = key => {
+ setActiveTab(key)
+ }
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleLinkVeresion = () => {
+ setEditVersion('')
+ setOpenLinkVersion(true)
+ }
+
+ const handleEditVersion = version => {
+ setEditVersion(version)
+ setOpenLinkVersion(true)
+ }
+
+ const showDeleteConfirm = (NameContext, version, type) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+
+ modal.confirm({
+ title: `Are you sure to delete the ${type} ${version}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => (
+ <ConfirmInput
+ name={version.toString()}
+ setConfirmInput={setConfirmInput}
+ registerValidate={registerValidate}
+ />
+ )}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deleteVersion({ metalake: currentMetalake, catalog, catalogType, schema, model, version }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const handleViewVersion = async version => {
+ const { payload: modelVersion } = await dispatch(
+ getVersionDetails({ metalake: currentMetalake, catalog, catalogType, schema, model, version })
+ )
+ setCurrentVersion(modelVersion)
+ setOpenVersion(true)
+ }
+
+ const handleEditModel = () => {
+ setOpen(true)
+ }
+
+ const onClose = () => {
+ setOpenVersion(false)
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Version',
+ dataIndex: 'version',
+ key: 'version',
+ ellipsis: true,
+ sorter: (a, b) => a.version.toLowerCase().localeCompare(b.version.toLowerCase()),
+ render: version => <span>{version}</span>
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.version)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.version}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Icons.Pencil className='size-4' onClick={() => handleEditVersion(record.version)} />
+ </a>
+ <a>
+ <Icons.Eye className='size-4' onClick={() => handleViewVersion(record.version)} />
+ </a>
+ <a>
+ <Icons.Trash2Icon
+ className='size-4'
+ onClick={() => showDeleteConfirm(NameContext, record.version, 'version')}
+ />
+ </a>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake, catalog, schema, model]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <>
+ <Spin spinning={store.activatedDetailsLoading}>
+ <Flex className='mb-2' gap='small' align='flex-start' ref={ref}>
+ <div className='size-8'>
+ <Icons.iconify icon='mdi:globe-model' className='size-8' />
+ </div>
+ <div className='grow-1 relative bottom-1'>
+ <Title level={3} style={{ marginBottom: '0.125rem' }}>
+ <Space>
+ <span
+ title={model}
+ className='min-w-10 truncate'
+ style={{ maxWidth: `calc(${width}px - 56px)`, display: 'inherit' }}
+ >
+ {model}
+ </span>
+ <Tooltip title='Edit'>
+ <Icons.Pencil
+ className='relative size-4 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={handleEditModel}
+ />
+ </Tooltip>
+ </Space>
+ </Title>
+ <Paragraph
+ type='secondary'
+ className='truncate'
+ title={store.activatedDetails?.comment}
+ style={{ marginBottom: 0, maxWidth: `calc(${width}px - 56px)` }}
+ >
+ {store.activatedDetails?.comment}
+ </Paragraph>
+ </div>
+ </Flex>
+ <Space split={<Divider type='vertical' />} wrap={true} className='mb-2'>
+ {anthEnable && (
+ <Space size={4}>
+ <Tooltip title='Owner' placement='top'>
+ <Icons.User className='size-4' color='grey' />
+ </Tooltip>
+ <span>{ownerData?.name || '-'}</span>
+ <Tooltip title='Set Owner'>
+ <Icons.Pencil
+ className='relative size-3 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={() => handleSetOwner(`${catalog}.${schema}.${model}`)}
+ />
+ </Tooltip>
+ </Space>
+ )}
+ <Space size={4}>
+ <Tooltip title='Tags' placement='top'>
+ <Icons.Tags className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityTags && store.currentEntityTags.length > 0 ? (
+ <Popover placement='bottom' title={<span>Tags</span>} content={tagContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityTags.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Properties' placement='top'>
+ <Icons.TableProperties className='size-4' color='grey' />
+ </Tooltip>
+ {properties && Object.keys(properties).length > 0 ? (
+ <Popover placement='bottom' title={<span>Properties</span>} content={propertyContent}>
+ <a className='text-defaultPrimary'>{Object.keys(properties)?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ </Space>
+ </Spin>
+ <Tabs defaultActiveKey={activeTab} onChange={onChangeTab} items={tabOptions} />
+ {activeTab === 'Versions' && (
+ <>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/2 gap-4'>
+ <Search name='searcColumnInput' placeholder='Search...' value={search} onChange={onSearchTable} />
+ <Button type='primary' icon={<PlusOutlined />} onClick={handleLinkVeresion}>
+ Link Version
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.tableLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 30rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 37rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ {openLinkVersion && (
+ <LinkVersionDialog
+ open={openLinkVersion}
+ setOpen={setOpenLinkVersion}
+ metalake={currentMetalake}
+ catalog={catalog}
+ catalogType={catalogType}
+ schema={schema}
+ model={model}
+ editVersion={editVersion}
+ init={true}
+ />
+ )}
+ {openVersion && (
+ <Drawer title={`Version ${currentVersion?.version} Details`} onClose={onClose} open={openVersion}>
+ <>
+ {currentVersion?.uri && (
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>URI</div>
+ <span className='break-words text-base'>{currentVersion?.uri}</span>
+ </div>
+ )}
+ {currentVersion?.uris && (
+ <div className='my-4'>
+ <div className='mb-1 text-sm text-slate-400'>URI(s)</div>
+ <Space.Compact className='max-h-80 w-full overflow-auto'>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>URI Name</span>
+ {currentVersion?.uris
+ ? Object.keys(currentVersion?.uris).map(name => (
+ <span key={name} className='truncate p-1' title={name}>
+ {name}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>URI</span>
+ {currentVersion?.uris
+ ? Object.values(currentVersion?.uris).map(uri => (
+ <span key={uri} className='truncate p-1' title={uri}>
+ {uri || '-'}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ </Space.Compact>
+ </div>
+ )}
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Aliases</div>
+ <span className='break-words text-base'>
+ {currentVersion?.aliases.length === 1
+ ? currentVersion?.aliases[0]
+ : currentVersion?.aliases.length
+ ? currentVersion?.aliases.join(', ')
+ : '-'}
+ </span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Comment</div>
+ <span className='break-words text-base'>{currentVersion?.comment || '-'}</span>
+ </div>
+ <div className='my-4'>
+ <div className='mb-1 text-sm text-slate-400'>Properties</div>
+ {currentVersion?.properties && Object.keys(currentVersion?.properties).length > 0 ? (
+ <Space.Compact className='max-h-80 w-full overflow-auto'>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Key</span>
+ {currentVersion?.properties
+ ? Object.keys(currentVersion?.properties).map(key => (
+ <span key={key} className='truncate p-1' title={key}>
+ {key}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Value</span>
+ {currentVersion?.properties
+ ? Object.values(currentVersion?.properties).map(value => (
+ <span key={value} className='truncate p-1' title={value}>
+ {value || '-'}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ </Space.Compact>
+ ) : (
+ <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
+ )}
+ </div>
+ </>
+ </Drawer>
+ )}
+ </>
+ )}
+ {anthEnable && activeTab === 'Associated roles' && model && (
+ <AssociatedTable
+ metalake={currentMetalake}
+ metadataObjectType={'model'}
+ metadataObjectFullName={`${catalog}.${schema}.${model}`}
+ />
+ )}
+ {open && (
+ <RegisterModelDialog
+ open={open}
+ setOpen={setOpen}
+ metalake={currentMetalake}
+ catalog={catalog}
+ schema={schema}
+ editModel={model}
+ init={true}
+ />
+ )}
+ {openOwner && (
+ <SetOwnerDialog
+ open={openOwner}
+ setOpen={setOpenOwner}
+ metalake={currentMetalake}
+ metadataObjectType={'model'}
+ metadataObjectFullName={metadataObjectFullName}
+ mutateOwner={async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'model',
+ metadataObjectFullName: `${catalog}.${schema}.${model}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }}
+ />
+ )}
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
new file mode 100644
index 0000000000..aa69ee9184
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
@@ -0,0 +1,652 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useContext, useEffect, useMemo, useState } from 'react'
+import dynamic from 'next/dynamic'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import { Breadcrumb, Button, Divider, Flex, Input, Popover, Space, Spin, Table, Tabs, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import useResizeObserver from 'use-resize-observer'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { useSearchParams } from 'next/navigation'
+import { TreeRefContext } from '../../page'
+import AssociatedTable from '@/components/AssociatedTable'
+import ConfirmInput from '@/components/ConfirmInput'
+import Tags from '@/components/CustomTags'
+import Icons from '@/components/Icons'
+import Policies from '@/components/PolicyTag'
+import TableActions from '@/components/TableActions'
+import PropertiesContent from '@/components/PropertiesContent'
+import {
+ getCatalogDetails,
+ deleteFileset,
+ deleteModel,
+ deleteTopic,
+ deleteTable,
+ getTableDetails,
+ getCurrentEntityOwner
+} from '@/lib/store/metalakes'
+import Link from 'next/link'
+import { cn } from '@/lib/utils/tailwind'
+import Loading from '@/components/Loading'
+import CreateSchemaDialog from '../CreateSchemaDialog'
+import CreateFilesetDialog from '../CreateFilesetDialog'
+import RegisterModelDialog from '../RegisterModelDialog'
+import CreateTopicDialog from '../CreateTopicDialog'
+import CreateTableDialog from '../CreateTableDialog'
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function SchemaDetailsPage() {
+ const [openSchema, setOpenSchema] = useState(false)
+ const [openTable, setOpenTable] = useState(false)
+ const [openFileset, setOpenFileset] = useState(false)
+ const [openTopic, setOpenTopic] = useState(false)
+ const [openOwner, setOpenOwner] = useState(false)
+ const [openModel, setOpenModel] = useState(false)
+ const [editTable, setEditTable] = useState('')
+ const [editFileset, setEditFileset] = useState('')
+ const [editTopic, setEditTopic] = useState('')
+ const [editModel, setEditModel] = useState('')
+ const [metadataObjectType, setMetadataObjectType] = useState('')
+ const [metadataObjectFullName, setMetadataObjectFullName] = useState('')
+ const auth = useAppSelector(state => state.auth)
+ const { anthEnable, systemConfig } = auth
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const catalogType = searchParams.get('catalogType')
+ const catalog = searchParams.get('catalog')
+ const schema = searchParams.get('schema')
+ const store = useAppSelector(state => state.metalakes)
+ const dispatch = useAppDispatch()
+ const [search, setSearch] = useState('')
+ const [tabOptions, setTabOptions] = useState([])
+ const [createBtn, setCreateBtn] = useState('')
+ const [entityType, setEntityType] = useState('')
+ const [tabKey, setTabKey] = useState('')
+ const [nameCol, setNameCol] = useState('')
+ const { ref, width } = useResizeObserver()
+ const treeRef = useContext(TreeRefContext)
+ const [catalogData, setCatalogData] = useState(null)
+ const [ownerData, setOwnerData] = useState(null)
+
+ useEffect(() => {
+ if (!currentMetalake || !catalog) return
+
+ const initLoad = async () => {
+ const { payload } = await dispatch(getCatalogDetails({ metalake: currentMetalake, catalog }))
+ setCatalogData(payload?.catalog)
+ }
+ initLoad()
+ }, [currentMetalake, catalog, dispatch])
+
+ useEffect(() => {
+ const getOwnerData = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'schema',
+ metadataObjectFullName: `${catalog}.${schema}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }
+ anthEnable && getOwnerData()
+ }, [anthEnable])
+
+ useEffect(() => {
+ switch (catalogType) {
+ case 'relational':
+ setTabOptions(
+ anthEnable
+ ? [
+ { label: 'Tables', key: 'Tables' },
+ { label: 'Associated roles', key: 'Associated roles' }
+ ]
+ : [{ label: 'Tables', key: 'Tables' }]
+ )
+ setTabKey('Tables')
+ setCreateBtn('Create Table')
+ setNameCol('Table Name')
+ setEntityType('table')
+ break
+ case 'messaging':
+ setTabOptions(
+ anthEnable
+ ? [
+ { label: 'Topics', key: 'Topics' },
+ { label: 'Associated roles', key: 'Associated roles' }
+ ]
+ : [{ label: 'Topics', key: 'Topics' }]
+ )
+ setTabKey('Topics')
+ setCreateBtn('Create Topic')
+ setNameCol('Topic Name')
+ setEntityType('topic')
+ break
+ case 'fileset':
+ setTabOptions(
+ anthEnable
+ ? [
+ { label: 'Filesets', key: 'Filesets' },
+ { label: 'Associated roles', key: 'Associated roles' }
+ ]
+ : [{ label: 'Filesets', key: 'Filesets' }]
+ )
+ setTabKey('Filesets')
+ setCreateBtn('Create Fileset')
+ setNameCol('Fileset Name')
+ setEntityType('fileset')
+ break
+ case 'model':
+ setTabOptions(
+ anthEnable
+ ? [
+ { label: 'Models', key: 'Models' },
+ { label: 'Associated roles', key: 'Associated roles' }
+ ]
+ : [{ label: 'Models', key: 'Models' }]
+ )
+ setTabKey('Models')
+ setCreateBtn('Register Model')
+ setNameCol('Model Name')
+ setEntityType('model')
+ break
+ default:
+ setTabOptions([])
+ setCreateBtn('')
+ setEntityType('')
+ }
+ }, [catalogType, anthEnable])
+
+ const onChangeTab = key => {
+ setTabKey(key)
+ }
+
+ const tableData = [...store.tableData]
+ .filter(c => {
+ if (search === '') return true
+
+ return c.name.includes(search)
+ })
+ .map(entity => {
+ return {
+ ...entity,
+ key: entity.name,
+ children: undefined
+ }
+ })
+
+ const tagContent = (
+ <div>
+ <Tags readOnly={true} metadataObjectType={'schema'} metadataObjectFullName={`${catalog}.${schema}`} />
+ </div>
+ )
+
+ const policyContent = (
+ <div>
+ <Policies readOnly={true} metadataObjectType={'schema'} metadataObjectFullName={`${catalog}.${schema}`} />
+ </div>
+ )
+ const properties = store.activatedDetails?.properties
+ const propertyContent = <PropertiesContent properties={properties} />
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleCreate = () => {
+ switch (catalogType) {
+ case 'messaging':
+ setEditTopic('')
+ setOpenTopic(true)
+ break
+ case 'fileset':
+ setEditFileset('')
+ setOpenFileset(true)
+ break
+ case 'relational':
+ setEditTable('')
+ setOpenTable(true)
+ break
+ case 'model':
+ setEditModel('')
+ setOpenModel(true)
+ break
+ default:
+ return
+ }
+ }
+
+ const handleEditSchema = () => {
+ setOpenSchema(true)
+ }
+
+ const handleEdit = name => {
+ switch (catalogType) {
+ case 'messaging':
+ setEditTopic(name)
+ setOpenTopic(true)
+ break
+ case 'fileset':
+ setEditFileset(name)
+ setOpenFileset(true)
+ break
+ case 'model':
+ setEditModel(name)
+ setOpenModel(true)
+ break
+ default:
+ setEditTable(name)
+ setOpenTable(true)
+
+ return
+ }
+ }
+
+ const handleSetOwner = (type, name) => {
+ switch (type) {
+ case 'messaging':
+ setMetadataObjectType('topic')
+ break
+ case 'fileset':
+ setMetadataObjectType('fileset')
+ break
+ case 'relational':
+ setMetadataObjectType('table')
+ break
+ default:
+ setMetadataObjectType(type)
+ break
+ }
+ setMetadataObjectFullName(name)
+ setOpenOwner(true)
+ }
+
+ const showDeleteConfirm = async (modal, entityObj, type) => {
+ const { name: entity, storageLocation, type: managedOrExtenalType } = entityObj
+ let isManaged = false
+ let location = ''
+ if (type === 'fileset') {
+ isManaged = managedOrExtenalType === 'managed'
+ location = storageLocation
+ } else if (type === 'table') {
+ const {
+ payload: { table }
+ } = await dispatch(getTableDetails({ metalake: currentMetalake, catalog, schema, table: entity }))
+ isManaged = table.properties?.['table-type'] === 'MANAGED_TABLE' && catalogData?.provider === 'hive'
+ location = catalogData?.provider === 'hive' ? table.properties?.['location'] : ''
+ }
+
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+
+ modal.confirm({
+ title: `Are you sure to delete the ${type} ${entity}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <ConfirmInput
+ name={entity}
+ setConfirmInput={setConfirmInput}
+ isManaged={isManaged}
+ location={location}
+ registerValidate={registerValidate}
+ />
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ switch (catalogType) {
+ case 'messaging':
+ await dispatch(deleteTopic({ metalake: currentMetalake, catalog, schema, topic: entity }))
+ break
+ case 'fileset':
+ await dispatch(
+ deleteFileset({ metalake: currentMetalake, catalog, catalogType, schema, fileset: entity })
+ )
+ break
+ case 'relational':
+ await dispatch(deleteTable({ metalake: currentMetalake, catalog, catalogType, schema, table: entity }))
+ break
+ case 'model':
+ await dispatch(deleteModel({ metalake: currentMetalake, catalog, catalogType, schema, model: entity }))
+ break
+ default:
+ return
+ }
+ treeRef.current.onLoadData({ key: `${catalog}/${schema}`, nodeType: 'schema' })
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: nameCol,
+ dataIndex: 'name',
+ key: 'name',
+ width: 200,
+ ellipsis: true,
+ sorter: (a, b) => a?.name.toLowerCase().localeCompare(b?.name.toLowerCase()),
+ render: name => (
+ <Link
+ data-refer={`${entityType}-link-${name}`}
+ href={`/catalogs?metalake=${encodeURIComponent(currentMetalake)}&catalogType=${catalogType}&catalog=${encodeURIComponent(catalog)}&schema=${encodeURIComponent(schema)}&${entityType}=${encodeURIComponent(name)}`}
+ >
+ {name}
+ </Link>
+ )
+ },
+ {
+ title: 'Tags',
+ dataIndex: 'tags',
+ key: 'tags',
+ render: (_, record) =>
+ record?.node === entityType ? (
+ <Tags
+ metadataObjectType={entityType}
+ metadataObjectFullName={`${record.namespace.at(-2)}.${record.namespace.at(-1)}.${record.name}`}
+ />
+ ) : null
+ },
+ {
+ title: 'Policies',
+ dataIndex: 'policies',
+ key: 'policies',
+ render: (_, record) =>
+ record?.node === entityType ? (
+ <Policies
+ metadataObjectType={entityType}
+ metadataObjectFullName={`${record.namespace.at(-2)}.${record.namespace.at(-1)}.${record.name}`}
+ />
+ ) : null
+ },
+ {
+ title: 'Actions',
+ dataIndex: 'action',
+ key: 'action',
+ width: 100,
+ render: (_, record) => (
+ <TableActions
+ name={record.name}
+ catalogType={catalogType}
+ provider={catalogData?.provider}
+ anthEnable={anthEnable}
+ handleEdit={() => handleEdit(record.name)}
+ showDeleteConfirm={modal => showDeleteConfirm(modal, record, entityType)}
+ handleSetOwner={() =>
+ handleSetOwner(catalogType, `${record.namespace.at(-2)}.${record.namespace.at(-1)}.${record.name}`)
+ }
+ />
+ )
+ }
+ ],
+ [nameCol, entityType, store.tableLoading, anthEnable, catalogData?.provider]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <div ref={ref}>
+ <Spin spinning={store.activatedDetailsLoading}>
+ <Flex className='mb-2' gap='small' align='flex-start'>
+ <div className='size-8'>
+ <Icons.Database className='size-8' />
+ </div>
+ <div className='grow-1 relative bottom-1'>
+ <Title level={3} style={{ marginBottom: '0.125rem' }}>
+ <Space>
+ <span
+ title={schema}
+ className='min-w-10 truncate'
+ style={{ maxWidth: `calc(${width}px - 56px)`, display: 'inherit' }}
+ >
+ {decodeURIComponent(schema)}
+ </span>
+ <Tooltip title='Edit'>
+ <Icons.Pencil
+ className='relative size-4 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={handleEditSchema}
+ />
+ </Tooltip>
+ </Space>
+ </Title>
+ <Paragraph
+ type='secondary'
+ className='truncate'
+ title={store.activatedDetails?.comment}
+ style={{ marginBottom: 0, maxWidth: `calc(${width}px - 56px)` }}
+ >
+ {store.activatedDetails?.comment}
+ </Paragraph>
+ </div>
+ </Flex>
+ <Space split={<Divider type='vertical' />} wrap={true} className='mb-2'>
+ {anthEnable && (
+ <Space size={4}>
+ <Tooltip title='Owned' placement='top'>
+ <Icons.User className='size-4' color='grey' />
+ </Tooltip>
+ <span>{ownerData?.name || '-'}</span>
+ <Tooltip title='Set Owner'>
+ <Icons.Pencil
+ className='relative size-3 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={() => handleSetOwner('schema', `${catalog}.${schema}`)}
+ />
+ </Tooltip>
+ </Space>
+ )}
+ <Space size={4}>
+ <Tooltip title='Tags' placement='top'>
+ <Icons.Tags className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityTags && store.currentEntityTags?.length > 0 ? (
+ <Popover placement='bottom' title={<span>Tags</span>} content={tagContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityTags?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Policies' placement='top'>
+ <Icons.PencilRuler className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityPolicies && store.currentEntityPolicies?.length > 0 ? (
+ <Popover placement='bottom' title={<span>Policies</span>} content={policyContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityPolicies?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ {!['jdbc-postgresql', 'lakehouse-paimon', 'kafka', 'jdbc-mysql'].includes(catalogData?.provider) && (
+ <Space size={4}>
+ <Tooltip title='Properties' placement='top'>
+ <Icons.TableProperties className='size-4' color='grey' />
+ </Tooltip>
+ {properties && Object.keys(properties).length > 0 ? (
+ <Popover placement='bottom' title={<span>Properties</span>} content={propertyContent}>
+ <a className='text-defaultPrimary'>{Object.keys(properties)?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ )}
+ </Space>
+ </Spin>
+ <Tabs data-refer='details-tabs' defaultActiveKey={tabKey} onChange={onChangeTab} items={tabOptions} />
+ {tabKey !== 'Associated roles' ? (
+ <>
+ <Flex justify='flex-end' className='mb-4'>
+ <div
+ className={cn('flex gap-4', {
+ 'w-1/2': catalogData?.provider !== 'lakehouse-hudi',
+ 'w-1/3': catalogData?.provider === 'lakehouse-hudi'
+ })}
+ >
+ <Search name='searcTableInput' placeholder='Search...' value={search} onChange={onSearchTable} />
+ {catalogData?.provider !== 'lakehouse-hudi' && (
+ <Button
+ data-refer={`create-${entityType}-btn`}
+ type='primary'
+ icon={<PlusOutlined />}
+ onClick={handleCreate}
+ >
+ {createBtn}
+ </Button>
+ )}
+ </div>
+ </Flex>
+ <Spin spinning={store.tableLoading}>
+ <Table
+ data-refer='table-grid'
+ size='small'
+ style={{ maxHeight: 'calc(100vh - 30rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 37rem)' }}
+ dataSource={tableData}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ columns={resizableColumns}
+ components={components}
+ />
+ {tableData?.length === 1000 && (
+ <span className='float-right text-xs text-slate-300'>up to 1000 data items</span>
+ )}
+ </Spin>
+ {openTable && (
+ <CreateTableDialog
+ open={openTable}
+ setOpen={setOpenTable}
+ metalake={currentMetalake}
+ catalog={catalog}
+ catalogType={catalogType}
+ provider={catalogData?.provider}
+ schema={schema}
+ editTable={editTable}
+ init={false}
+ catalogLocation={catalogData?.properties?.location}
+ schemaLocation={store.activatedDetails?.properties?.location}
+ />
+ )}
+ {openFileset && (
+ <CreateFilesetDialog
+ open={openFileset}
+ setOpen={setOpenFileset}
+ metalake={currentMetalake}
+ catalog={catalog}
+ catalogType={catalogType}
+ schema={schema}
+ locationProviders={catalogData?.properties?.['filesystem-providers']?.split(',') || []}
+ editFileset={editFileset}
+ init={false}
+ />
+ )}
+ {openTopic && (
+ <CreateTopicDialog
+ open={openTopic}
+ setOpen={setOpenTopic}
+ metalake={currentMetalake}
+ catalog={catalog}
+ catalogType={catalogType}
+ schema={schema}
+ editTopic={editTopic}
+ init={false}
+ />
+ )}
+ {openModel && (
+ <RegisterModelDialog
+ open={openModel}
+ setOpen={setOpenModel}
+ metalake={currentMetalake}
+ catalog={catalog}
+ catalogType={catalogType}
+ schema={schema}
+ editModel={editModel}
+ init={false}
+ />
+ )}
+ </>
+ ) : (
+ <AssociatedTable
+ metalake={currentMetalake}
+ metadataObjectType={'schema'}
+ metadataObjectFullName={`${catalog}.${store.activatedDetails.name}`}
+ />
+ )}
+ {openSchema && (
+ <CreateSchemaDialog
+ open={openSchema}
+ setOpen={setOpenSchema}
+ metalake={currentMetalake}
+ catalog={catalog}
+ catalogType={catalogType}
+ provider={catalogData?.provider}
+ locationProviders={catalogData?.properties?.['filesystem-providers']?.split(',') || []}
+ editSchema={schema}
+ />
+ )}
+ {openOwner && (
+ <SetOwnerDialog
+ open={openOwner}
+ setOpen={setOpenOwner}
+ metalake={currentMetalake}
+ metadataObjectType={metadataObjectType}
+ metadataObjectFullName={metadataObjectFullName}
+ mutateOwner={async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'schema',
+ metadataObjectFullName: `${catalog}.${schema}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }}
+ />
+ )}
+ </div>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/TableDetailsPage.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/TableDetailsPage.js
new file mode 100644
index 0000000000..988392c9a6
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/TableDetailsPage.js
@@ -0,0 +1,657 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useMemo, useState, useEffect } from 'react'
+import dynamic from 'next/dynamic'
+import { Divider, Flex, Input, Popover, Space, Spin, Table, Tabs, Tag, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import useResizeObserver from 'use-resize-observer'
+import AssociatedTable from '@/components/AssociatedTable'
+import Tags from '@/components/CustomTags'
+import Policies from '@/components/PolicyTag'
+import Icons from '@/components/Icons'
+import { ColumnTypeColorEnum } from '@/config'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { useSearchParams } from 'next/navigation'
+import { getCatalogDetails, getCurrentEntityOwner } from '@/lib/store/metalakes'
+import CreateTableDialog from '../CreateTableDialog'
+import Loading from '@/components/Loading'
+import PropertiesContent from '@/components/PropertiesContent'
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function TableDetailsPage({ ...props }) {
+ const [open, setOpen] = useState(false)
+ const [openOwner, setOpenOwner] = useState(false)
+ const [metadataObjectFullName, setMetadataObjectFullName] = useState('')
+ const { catalog, schema, table } = props.namespaces
+ const auth = useAppSelector(state => state.auth)
+ const { anthEnable, systemConfig } = auth
+ const { 'gravitino.datastrato.custom.preview.enable': previewEnable } = systemConfig || {}
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const catalogType = searchParams.get('catalogType')
+ const [search, setSearch] = useState('')
+ const [tabKey, setTabKey] = useState('Columns')
+ const { ref, width } = useResizeObserver()
+ const store = useAppSelector(state => state.metalakes)
+ const dispatch = useAppDispatch()
+ const [catalogData, setCatalogData] = useState(null)
+ const [ownerData, setOwnerData] = useState(null)
+
+ useEffect(() => {
+ if (!currentMetalake || !catalog) return
+
+ const initLoad = async () => {
+ const { payload } = await dispatch(getCatalogDetails({ metalake: currentMetalake, catalog }))
+ setCatalogData(payload?.catalog)
+ }
+ initLoad()
+ }, [currentMetalake, catalog, dispatch])
+
+ useEffect(() => {
+ const getOwnerData = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'table',
+ metadataObjectFullName: `${catalog}.${schema}.${table}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }
+ anthEnable && getOwnerData()
+ }, [anthEnable])
+
+ const handleSetOwner = name => {
+ setMetadataObjectFullName(name)
+ setOpenOwner(true)
+ }
+
+ const tableData = store.activatedDetails?.columns
+ ?.filter(c => {
+ if (search === '') return true
+
+ return c.name.includes(search)
+ })
+ .map(col => {
+ return {
+ ...col,
+ name: col.name,
+ key: col.name,
+ type: col.type,
+ tags: []
+ }
+ })
+
+ const columnTypeFitlers = store.activatedDetails?.columns
+ ?.map(column => (typeof column.type === 'string' ? column.type : column.type.type))
+ .filter((value, index, self) => self.indexOf(value) === index)
+ .map(t => {
+ return {
+ text: t,
+ value: t
+ }
+ })
+
+ const columnTypeColor = type => {
+ const formatType = typeof type === 'string' ? type.replace(/\(.*\)/, '') : 'objectType'
+
+ return ColumnTypeColorEnum[formatType]
+ }
+
+ const tagContent = (
+ <div>
+ <Tags readOnly={true} metadataObjectType={'table'} metadataObjectFullName={`${catalog}.${schema}.${table}`} />
+ </div>
+ )
+
+ const policyContent = (
+ <div>
+ <Policies readOnly={true} metadataObjectType={'table'} metadataObjectFullName={`${catalog}.${schema}.${table}`} />
+ </div>
+ )
+ const properties = store.activatedDetails?.properties
+ const propertyContent = <PropertiesContent properties={properties} />
+
+ const partitioning = store.activatedDetails?.partitioning?.map((i, index) => {
+ let fields = i.fieldName || []
+ let sub = ''
+ let last = i.fieldName
+
+ switch (i.strategy) {
+ case 'bucket':
+ sub = `[${i.numBuckets}]`
+ fields = i.fieldNames
+ last = i.fieldNames.map(v => v[0]).join(',')
+ break
+ case 'truncate':
+ sub = `[${i.width}]`
+ break
+ case 'list':
+ fields = i.fieldNames
+ last = i.fieldNames.map(v => v[0]).join(',')
+ break
+ case 'function':
+ sub = `[${i.funcName}]`
+ fields = i.funcArgs.map(v => v.fieldName)
+ last = fields.join(',')
+ break
+ default:
+ break
+ }
+
+ return {
+ key: `partitioning-${index}`,
+ strategy: i.strategy,
+ numBuckets: i.numBuckets,
+ width: i.width,
+ funcName: i.funcName,
+ fields,
+ text: `${i.strategy}${sub}(${last})`
+ }
+ })
+
+ const sortOrders = store.activatedDetails?.sortOrders?.map((i, index) => {
+ const fields =
+ i.sortTerm?.type === 'field' ? i.sortTerm.fieldName : i.sortTerm?.funcArgs.find(f => f.fieldName)?.fieldName
+
+ return {
+ key: index,
+ fields: fields,
+ dir: i.direction,
+ no: i.nullOrdering,
+ text: `${fields[0]} ${i.direction} ${i.nullOrdering}`
+ }
+ })
+
+ const sortOrdersContent = () => {
+ return (
+ <>
+ {sortOrders &&
+ sortOrders.map((s, index) => (
+ <Space.Compact key={index}>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='p-1' data-refer='overview-tip-sortOrders-items'>
+ {s.text}
+ </span>
+ </Space.Compact>
+ </Space.Compact>
+ ))}
+ </>
+ )
+ }
+
+ const distribution = store.activatedDetails?.distribution?.funcArgs.map((i, index) => {
+ return {
+ key: `distribution-${index}`,
+ fields: i.fieldName,
+ number: store.activatedDetails?.distribution?.number,
+ strategy: store.activatedDetails?.distribution?.strategy,
+ text:
+ store.activatedDetails?.distribution?.strategy === ''
+ ? ``
+ : `${store.activatedDetails?.distribution?.strategy}${
+ store.activatedDetails?.distribution?.number === 0
+ ? ''
+ : `[${store.activatedDetails?.distribution?.number}]`
+ }(${i.fieldName.join(',')})`
+ }
+ })
+
+ const indexes = store.activatedDetails?.indexes?.map((i, index) => {
+ return {
+ key: `indexes-${index}`,
+ fields: i.fieldNames,
+ name: i.name,
+ indexType: i.indexType,
+ text: `${i.name}(${i.fieldNames.map(v => v.join('.')).join(',')})`
+ }
+ })
+
+ const indexesContent = indexList => {
+ return (
+ <Space.Compact className='max-h-80 overflow-auto'>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='min-w-20 bg-gray-100 p-1'>Name</span>
+ {indexList?.map((item, idx) => (
+ <Tooltip title={item.name} key={`name-${idx}`}>
+ <span className='block max-w-52 truncate p-1'>{item.name || '-'}</span>
+ </Tooltip>
+ ))}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='min-w-24 bg-gray-100 p-1'>Type</span>
+ {indexList?.map((item, idx) => (
+ <Tooltip title={item.indexType} key={`type-${idx}`}>
+ <span className='block max-w-28 truncate p-1'>{item.indexType || '-'}</span>
+ </Tooltip>
+ ))}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='min-w-24 bg-gray-100 p-1'>Fields</span>
+ {indexList?.map((item, idx) => {
+ const fieldsText = item.fields?.map(v => v.join('.')).join(', ') || '-'
+
+ return (
+ <Tooltip title={fieldsText} key={`fields-${idx}`}>
+ <span className='block max-w-32 truncate p-1'>{fieldsText}</span>
+ </Tooltip>
+ )
+ })}
+ </Space.Compact>
+ </Space.Compact>
+ )
+ }
+
+ const OtherPropertiesContent = properties => {
+ return (
+ <>
+ {properties &&
+ properties?.map(p => (
+ <Space.Compact key={p.key} block={true}>
+ <span className='p-1'>{p.text || p.fields}</span>
+ </Space.Compact>
+ ))}
+ </>
+ )
+ }
+
+ const tablePropertiesContent = (properties, typeKey) => {
+ return (
+ <>
+ {properties &&
+ properties.map(p => {
+ // Get the first field name for data-refer attribute
+ // fields can be: ["column"] or [["column"]] (nested array)
+ let fieldName = Array.isArray(p.fields) ? p.fields[0] : p.fields
+
+ // Handle nested array case
+ if (Array.isArray(fieldName)) {
+ fieldName = fieldName[0]
+ }
+
+ return (
+ <Space.Compact key={p.key} block={true}>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='p-1' data-refer={`tip-${typeKey}-item-${fieldName}`}>
+ {p.text || p.fields}
+ </span>
+ </Space.Compact>
+ </Space.Compact>
+ )
+ })}
+ </>
+ )
+ }
+
+ const renderColumnPopover = (title, icon, properties, name, isIndexes = false) => {
+ // Check if the column name matches any field in the properties
+ // fields can be: ["column"] or [["column"]] (nested array)
+ const matchField = fields => {
+ if (!Array.isArray(fields)) return false
+
+ return fields.some(v => (Array.isArray(v) ? v.includes(name) : v === name))
+ }
+
+ const isFieldColumn = properties.find(i => matchField(i.fields))
+
+ const matchedItems = properties.filter(i => matchField(i.fields))
+
+ // Convert title to camelCase for data-refer attribute (e.g., 'SortOrders' -> 'sortOrders')
+ const typeKey = title.charAt(0).toLowerCase() + title.slice(1).replace(' ', '')
+
+ return (
+ <>
+ {isFieldColumn && (
+ <Popover
+ placement='bottom'
+ title={() => <span>{title}</span>}
+ content={isIndexes ? indexesContent(matchedItems) : tablePropertiesContent(matchedItems, typeKey)}
+ >
+ <span data-refer={`col-icon-${typeKey}-${name}`}>
+ <Icons.iconify icon={icon} className='size-4' props={{ color: 'grey' }} />
+ </span>
+ </Popover>
+ )}
+ </>
+ )
+ }
+
+ const tabOptions = [
+ { label: 'Columns', key: 'Columns' },
+ ...(anthEnable ? [{ label: 'Associated roles', key: 'Associated roles' }] : [])
+ ]
+
+ const onChangeTab = key => {
+ setTabKey(key)
+ }
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleEditTable = () => {
+ setOpen(true)
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Column Name',
+ dataIndex: 'name',
+ key: 'name',
+ width: 300,
+ ellipsis: true,
+ sort: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ render: name => (
+ <Space>
+ <span>{name}</span>
+ {partitioning && renderColumnPopover('Partitioning', 'tabler:circle-letter-p', partitioning, name)}
+ {sortOrders && renderColumnPopover('SortOrders', 'mdi:letter-s-circle-outline', sortOrders, name)}
+ {distribution && renderColumnPopover('Distribution', 'tabler:circle-letter-d', distribution, name)}
+ {indexes && renderColumnPopover('Indexes', 'mdi:letter-i-circle-outline', indexes, name, true)}
+ </Space>
+ )
+ },
+ {
+ title: 'Data Type',
+ dataIndex: 'type',
+ key: 'type',
+ width: 200,
+ ellipsis: true,
+ filters: columnTypeFitlers,
+ onFilter: (value, record) =>
+ typeof record.type === 'string' ? record.type.indexOf(value) === 0 : record.type.type.indexOf(value) === 0,
+ render: type => <Tag color={columnTypeColor(type)}>{typeof type === 'string' ? type : type.type}</Tag>
+ },
+ {
+ title: 'Tags',
+ dataIndex: 'tags',
+ key: 'tags',
+ render: (_, record) =>
+ !record?.node ? (
+ <Tags
+ metadataObjectType={'column'}
+ metadataObjectFullName={`${catalog}.${schema}.${table}.${record.name}`}
+ />
+ ) : null
+ },
+ {
+ title: 'Policies',
+ dataIndex: 'policies',
+ key: 'policies',
+ render: (_, record) =>
+ !record?.node ? (
+ <Policies
+ metadataObjectType={'column'}
+ metadataObjectFullName={`${catalog}.${schema}.${table}.${record.name}`}
+ />
+ ) : null
+ }
+ ],
+ [store.activatedDetails]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <>
+ <Spin spinning={store.activatedDetailsLoading}>
+ <Flex className='mb-2' gap='small' align='flex-start' ref={ref}>
+ <div className='size-8'>
+ <Icons.iconify icon='bx:table' className='my-icon-large' />
+ </div>
+ <div className='grow-1 relative bottom-1'>
+ <Title level={3} style={{ marginBottom: '0.125rem' }}>
+ <Space>
+ <span
+ title={table}
+ className='min-w-10 truncate'
+ style={{ maxWidth: `calc(${width}px - 56px)`, display: 'inherit' }}
+ >
+ {table}
+ </span>
+ <Tooltip title='Edit'>
+ <Icons.Pencil
+ className='relative size-4 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={handleEditTable}
+ />
+ </Tooltip>
+ </Space>
+ </Title>
+ <Paragraph
+ type='secondary'
+ className='truncate'
+ title={store.activatedDetails?.comment}
+ style={{ marginBottom: 0, maxWidth: `calc(${width}px - 56px)` }}
+ >
+ {store.activatedDetails?.comment}
+ </Paragraph>
+ </div>
+ </Flex>
+ <Space split={<Divider type='vertical' />} wrap={true} className='mb-2'>
+ {anthEnable && (
+ <Space size={4}>
+ <Tooltip title='Owner' placement='top'>
+ <Icons.User className='size-4' color='grey' />
+ </Tooltip>
+ <span>{ownerData?.name || '-'}</span>
+ <Tooltip title='Set Owner'>
+ <Icons.Pencil
+ className='relative size-3 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={() => handleSetOwner(`${catalog}.${schema}.${table}`)}
+ />
+ </Tooltip>
+ </Space>
+ )}
+ <Space size={4}>
+ <Tooltip title='Tags' placement='top'>
+ <Icons.Tags className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityTags && store.currentEntityTags?.length > 0 ? (
+ <Popover placement='bottom' title={<span>Tags</span>} content={tagContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityTags?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Policies' placement='top'>
+ <Icons.PencilRuler className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityPolicies && store.currentEntityPolicies?.length > 0 ? (
+ <Popover placement='bottom' title={<span>Policies</span>} content={policyContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityPolicies?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ {!['jdbc-postgresql'].includes(catalogData?.catalog?.provider) && (
+ <Space size={4}>
+ <Tooltip title='Properties' placement='top'>
+ <Icons.TableProperties className='size-4' color='grey' />
+ </Tooltip>
+ {properties && Object.keys(properties).length > 0 ? (
+ <Popover placement='bottom' title={<span>Properties</span>} content={propertyContent}>
+ <a className='text-defaultPrimary' data-refer='overview-properties-link'>
+ {Object.keys(properties)?.length}
+ </a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary' data-refer='overview-properties-link'>
+ 0
+ </a>
+ )}
+ </Space>
+ )}
+ <Space size={4}>
+ <Tooltip title='Partitions' placement='top'>
+ <Icons.CircleParking className='size-4' color='grey' />
+ </Tooltip>
+ {partitioning && partitioning.length > 0 ? (
+ <Popover
+ placement='bottom'
+ title={<span>Partitions</span>}
+ content={OtherPropertiesContent(partitioning)}
+ >
+ <a className='text-defaultPrimary' data-refer='overview-partitions-link'>
+ {partitioning?.length}
+ </a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary' data-refer='overview-partitions-link'>
+ 0
+ </a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Sort Orders' placement='top'>
+ <Icons.ArrowUpDown className='size-4' color='grey' />
+ </Tooltip>
+ {sortOrders && sortOrders.length > 0 ? (
+ <Popover placement='bottom' title={<span>Sort Orders</span>} content={sortOrdersContent}>
+ <a className='text-defaultPrimary' data-refer='overview-sortorders-link'>
+ <span data-refer='overview-sortOrders-items'>
+ {sortOrders.length > 1 ? sortOrders.map(s => s.fields[0]).join(', ') : sortOrders[0].fields[0]}
+ </span>
+ </a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary' data-refer='overview-sortorders-link'>
+ 0
+ </a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Distribution' placement='top'>
+ <Icons.Layers className='size-4' color='grey' />
+ </Tooltip>
+ {distribution && distribution.length > 0 ? (
+ <Popover
+ placement='bottom'
+ title={<span>Distribution</span>}
+ content={OtherPropertiesContent(distribution)}
+ >
+ <a className='text-defaultPrimary' data-refer='overview-distribution-link'>
+ {distribution.length}
+ </a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary' data-refer='overview-distribution-link'>
+ 0
+ </a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Indexes' placement='top'>
+ <Icons.Boxes className='size-4' color='grey' />
+ </Tooltip>
+ {indexes && indexes.length > 0 ? (
+ <Popover placement='bottom' title={<span>Indexes</span>} content={indexesContent(indexes)}>
+ <a className='text-defaultPrimary' data-refer='overview-indexes-link'>
+ {indexes.length}
+ </a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary' data-refer='overview-indexes-link'>
+ 0
+ </a>
+ )}
+ </Space>
+ </Space>
+ </Spin>
+ <Tabs data-refer='details-tabs' defaultActiveKey={tabKey} onChange={onChangeTab} items={tabOptions} />
+ {tabKey === 'Columns' && (
+ <>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/3 gap-4'>
+ <Search name='searcColumnInput' placeholder='Search...' value={search} onChange={onSearchTable} />
+ </div>
+ </Flex>
+ <Spin spinning={store.activatedDetailsLoading}>
+ <Table
+ data-refer='table-grid'
+ size='small'
+ style={{ maxHeight: 'calc(100vh - 30rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 37rem)' }}
+ dataSource={tableData}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ columns={resizableColumns}
+ components={components}
+ />
+ </Spin>
+ </>
+ )}
+ {tabKey === 'Associated roles' && anthEnable && (
+ <AssociatedTable
+ metalake={currentMetalake}
+ metadataObjectType={'table'}
+ metadataObjectFullName={`${catalog}.${schema}.${table}`}
+ />
+ )}
+ {open && (
+ <CreateTableDialog
+ open={open}
+ setOpen={setOpen}
+ metalake={currentMetalake}
+ catalog={catalog}
+ catalogType={catalogType}
+ provider={catalogData?.provider}
+ schema={schema}
+ editTable={table}
+ init={true}
+ />
+ )}
+ {openOwner && (
+ <SetOwnerDialog
+ open={openOwner}
+ setOpen={setOpenOwner}
+ metalake={currentMetalake}
+ metadataObjectType={'table'}
+ metadataObjectFullName={metadataObjectFullName}
+ mutateOwner={async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'table',
+ metadataObjectFullName: `${catalog}.${schema}.${table}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }}
+ />
+ )}
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/TopicDetailsPage.js b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/TopicDetailsPage.js
new file mode 100644
index 0000000000..c2d08e4eaa
--- /dev/null
+++ b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/TopicDetailsPage.js
@@ -0,0 +1,220 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useState, useEffect } from 'react'
+import dynamic from 'next/dynamic'
+import { Divider, Flex, Popover, Space, Spin, Tabs, Tooltip, Typography } from 'antd'
+import useResizeObserver from 'use-resize-observer'
+import AssociatedTable from '@/components/AssociatedTable'
+import Tags from '@/components/CustomTags'
+import Policies from '@/components/PolicyTag'
+import Icons from '@/components/Icons'
+import PropertiesContent from '@/components/PropertiesContent'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { useSearchParams } from 'next/navigation'
+import CreateTopicDialog from '../CreateTopicDialog'
+import { getCurrentEntityOwner } from '@/lib/store/metalakes'
+import Loading from '@/components/Loading'
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+
+export default function TopicDetailsPage({ ...props }) {
+ const [open, setOpen] = useState(false)
+ const [openOwner, setOpenOwner] = useState(false)
+ const [metadataObjectFullName, setMetadataObjectFullName] = useState('')
+ const { catalog, schema, topic } = props.namespaces
+ const { ref, width } = useResizeObserver()
+ const auth = useAppSelector(state => state.auth)
+ const { anthEnable, systemConfig } = auth
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const catalogType = searchParams.get('catalogType')
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.metalakes)
+ const [ownerData, setOwnerData] = useState(null)
+
+ useEffect(() => {
+ const getOwnerData = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'topic',
+ metadataObjectFullName: `${catalog}.${schema}.${topic}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }
+ anthEnable && getOwnerData()
+ }, [anthEnable])
+
+ const handleSetOwner = name => {
+ setMetadataObjectFullName(name)
+ setOpenOwner(true)
+ }
+
+ const tagContent = (
+ <div>
+ <Tags readOnly={true} metadataObjectType={'topic'} metadataObjectFullName={`${catalog}.${schema}.${topic}`} />
+ </div>
+ )
+
+ const policyContent = (
+ <div>
+ <Policies readOnly={true} metadataObjectType={'topic'} metadataObjectFullName={`${catalog}.${schema}.${topic}`} />
+ </div>
+ )
+ const properties = store.activatedDetails?.properties
+
+ const propertyContent = (
+ <PropertiesContent properties={properties} dataReferPrefix='props' contentDataRefer='properties-popover-content' />
+ )
+ const tabOptions = [{ label: 'Associated roles', key: 'Associated roles' }]
+
+ const handleEditTable = () => {
+ setOpen(true)
+ }
+
+ return (
+ <>
+ <Spin spinning={store.activatedDetailsLoading}>
+ <Flex className='mb-2' gap='small' align='flex-start' ref={ref}>
+ <div className='size-8'>
+ <Icons.iconify icon='material-symbols:topic-outline' className='my-icon-large' />
+ </div>
+ <div className='grow-1'>
+ <Title level={3} style={{ marginBottom: '0.125rem' }}>
+ <Space>
+ <span
+ title={topic}
+ className='min-w-10 truncate'
+ style={{ maxWidth: `calc(${width}px - 56px)`, display: 'inherit' }}
+ >
+ {topic}
+ </span>
+ <Tooltip title='Edit'>
+ <Icons.Pencil
+ className='relative size-4 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={handleEditTable}
+ />
+ </Tooltip>
+ </Space>
+ </Title>
+ <Paragraph
+ type='secondary'
+ className='truncate'
+ title={store.activatedDetails?.comment}
+ style={{ marginBottom: 0, maxWidth: `calc(${width}px - 56px)` }}
+ >
+ {store.activatedDetails?.comment}
+ </Paragraph>
+ </div>
+ </Flex>
+ <Space split={<Divider type='vertical' />} wrap={true} className='mb-2'>
+ {anthEnable && (
+ <Space size={4}>
+ <Tooltip title='Owner' placement='top'>
+ <Icons.User className='size-4' color='grey' />
+ </Tooltip>
+ <span>{ownerData?.name || '-'}</span>
+ <Tooltip title='Set Owner'>
+ <Icons.Pencil
+ className='relative size-3 hover:cursor-pointer hover:text-defaultPrimary'
+ onClick={() => handleSetOwner(`${catalog}.${schema}.${topic}`)}
+ />
+ </Tooltip>
+ </Space>
+ )}
+ <Space size={4}>
+ <Tooltip title='Tags' placement='top'>
+ <Icons.Tags className='size-4' color='grey' />
+ </Tooltip>
+ {store.currentEntityTags && store.currentEntityTags?.length > 0 ? (
+ <Popover placement='bottom' title={<span>Tags</span>} content={tagContent}>
+ <a className='text-defaultPrimary'>{store.currentEntityTags?.length}</a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary'>0</a>
+ )}
+ </Space>
+ <Space size={4}>
+ <Tooltip title='Properties' placement='top'>
+ <Icons.TableProperties className='size-4' color='grey' />
+ </Tooltip>
+ {properties && Object.keys(properties).length > 0 ? (
+ <Popover placement='bottom' title={<span>Properties</span>} content={propertyContent}>
+ <a className='text-defaultPrimary' data-refer='properties-link'>
+ {Object.keys(properties)?.length}
+ </a>
+ </Popover>
+ ) : (
+ <a className='text-defaultPrimary' data-refer='properties-link'>
+ 0
+ </a>
+ )}
+ </Space>
+ </Space>
+ </Spin>
+ {anthEnable && <Tabs items={tabOptions} />}
+ {anthEnable && topic && (
+ <AssociatedTable
+ metalake={currentMetalake}
+ metadataObjectType={'topic'}
+ metadataObjectFullName={`${catalog}.${schema}.${topic}`}
+ />
+ )}
+ {open && (
+ <CreateTopicDialog
+ open={open}
+ setOpen={setOpen}
+ metalake={currentMetalake}
+ catalog={catalog}
+ schema={schema}
+ editTopic={topic}
+ />
+ )}
+ {openOwner && (
+ <SetOwnerDialog
+ open={openOwner}
+ setOpen={setOpenOwner}
+ metalake={currentMetalake}
+ metadataObjectType={'topic'}
+ metadataObjectFullName={metadataObjectFullName}
+ mutateOwner={async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'topic',
+ metadataObjectFullName: `${catalog}.${schema}.${topic}`
+ })
+ )
+ setOwnerData(payload?.owner)
+ }}
+ />
+ )}
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/compliance/layout.js b/web-v2/web/src/app/compliance/layout.js
new file mode 100644
index 0000000000..afc60deb4d
--- /dev/null
+++ b/web-v2/web/src/app/compliance/layout.js
@@ -0,0 +1,32 @@
+/*
+ * 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 SectionContainer from '@/components/SectionContainer'
+import LeftNavForCompliance from '@/components/LeftNavForCompliance'
+
+export default function DataComplianceLayout({ children }) {
+ return (
+ <SectionContainer classProps='flex'>
+ <div className='h-full bg-white'>
+ <LeftNavForCompliance />
+ </div>
+ <div className='relative grow bg-white'>{children}</div>
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/compliance/page.js b/web-v2/web/src/app/compliance/page.js
new file mode 100644
index 0000000000..2728cbd1c7
--- /dev/null
+++ b/web-v2/web/src/app/compliance/page.js
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ */
+
+export default function CompliancePage() {
+ return <></>
+}
diff --git a/web-v2/web/src/app/compliance/policies/CreatePolicyDialog.js b/web-v2/web/src/app/compliance/policies/CreatePolicyDialog.js
new file mode 100644
index 0000000000..5787979e20
--- /dev/null
+++ b/web-v2/web/src/app/compliance/policies/CreatePolicyDialog.js
@@ -0,0 +1,253 @@
+/*
+ * 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 React, { useEffect, useState, useRef } from 'react'
+import { PlusOutlined } from '@ant-design/icons'
+import { Button, Flex, Form, Input, Modal, Select, Switch, Typography } from 'antd'
+import Icons from '@/components/Icons'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { validateMessages, supportedObjectTypesMap, mismatchName } from '@/config'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { getPolicyDetails, createPolicy, updatePolicy } from '@/lib/store/policies'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+const defaultValues = {
+ name: '',
+ comment: '',
+ enabled: true,
+ policyType: 'custom',
+ supportedObjectTypes: [],
+ rules: [],
+ properties: []
+}
+
+export default function CreatePolicyDialog({ ...props }) {
+ const { open, setOpen, metalake, editPolicy } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const loadedRef = useRef(false)
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+ const dispatch = useAppDispatch()
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ useEffect(() => {
+ if (open && editPolicy && !loadedRef.current) {
+ loadedRef.current = true
+
+ const init = async () => {
+ const { payload: policy } = await dispatch(getPolicyDetails({ metalake, policy: editPolicy }))
+ setCacheData(policy)
+ form.setFieldValue('name', policy.name)
+ form.setFieldValue('enabled', policy.enabled)
+ form.setFieldValue('comment', policy.comment)
+ form.setFieldValue('policyType', policy.policyType)
+ form.setFieldValue('supportedObjectTypes', policy.content?.supportedObjectTypes || [])
+ let ruleIndex = 0
+ Object.entries(policy.content?.customRules || {}).forEach(([key, value]) => {
+ if (key !== 'color') {
+ form.setFieldValue(['rules', ruleIndex, 'ruleName'], key)
+ form.setFieldValue(['rules', ruleIndex, 'ruleContent'], value)
+ ruleIndex++
+ }
+ })
+ let index = 0
+ Object.entries(policy.content?.properties || {}).forEach(([key, value]) => {
+ if (key !== 'color') {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ }
+ })
+ }
+ init()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editPolicy, metalake])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim(),
+ comment: values.comment,
+ enabled: values.enabled,
+ policyType: values.policyType,
+ content: {
+ customRules: values.rules.reduce((acc, item) => {
+ if (item.ruleName) {
+ acc[item.ruleName] = item.ruleContent
+ }
+
+ return acc
+ }, {}),
+ supportedObjectTypes: values.supportedObjectTypes,
+ properties: values.properties.reduce((acc, item) => {
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {})
+ }
+ }
+ if (editPolicy) {
+ // update policy
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ await dispatch(updatePolicy({ metalake, policy: editPolicy, data: reqData }))
+ }
+ } else {
+ await dispatch(createPolicy({ metalake, data: submitData }))
+ }
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editPolicy ? 'Create Policy' : 'Edit Policy'}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>{!editPolicy ? 'Create a new policy' : `Edit the policy ${editPolicy}.`}</Paragraph>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='policyForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Policy Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'policy name' }}
+ >
+ <Input placeholder={mismatchName} />
+ </Form.Item>
+ <Form.Item name='enabled' label='Enabled'>
+ <Switch disabled={!!editPolicy} />
+ </Form.Item>
+ <Form.Item name='policyType' label='Policy Type'>
+ <Select>
+ <Select.Option value='custom'>Custom</Select.Option>
+ </Select>
+ </Form.Item>
+ <Form.Item
+ name='supportedObjectTypes'
+ rules={[{ required: true, message: 'Please select supported object types!' }]}
+ label='Supported Object Types'
+ >
+ <Select mode='multiple'>
+ {Object.values(supportedObjectTypesMap).map(item => (
+ <Select.Option key={item} value={item}>
+ {item}
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ <Form.Item label='Rule(s)'>
+ <div className='flex flex-col gap-2'>
+ <Form.List name='rules'>
+ {(fields, { add, remove }) => (
+ <>
+ {fields.map(({ key, name, ...restField }) => (
+ <Form.Item label={null} className='align-items-center mb-1' key={key}>
+ <Flex gap='small' align='start'>
+ <Form.Item
+ {...restField}
+ name={[name, 'ruleName']}
+ rules={[{ required: true, message: 'Please enter the rule name!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input placeholder='Rule Name' />
+ </Form.Item>
+ <Form.Item
+ {...restField}
+ name={[name, 'ruleContent']}
+ rules={[{ required: true, message: 'Please enter the rule content!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input placeholder='Rule Content' />
+ </Form.Item>
+ <Form.Item className='mb-0 grow-0'>
+ <Icons.Minus
+ className='size-8 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => remove(name)}
+ />
+ </Form.Item>
+ </Flex>
+ </Form.Item>
+ ))}
+ <Button className='w-fit' type='dashed' onClick={() => add()} icon={<PlusOutlined />}>
+ Add Rule
+ </Button>
+ </>
+ )}
+ </Form.List>
+ </div>
+ </Form.Item>
+ <Form.Item name='comment' label='Comment'>
+ <TextArea />
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem fields={fields} subOpt={subOpt} form={form} isEdit={!!editPolicy} />
+ )}
+ </Form.List>
+ </Form.Item>
+ </Form>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/compliance/policies/page.js b/web-v2/web/src/app/compliance/policies/page.js
new file mode 100644
index 0000000000..e64538ba77
--- /dev/null
+++ b/web-v2/web/src/app/compliance/policies/page.js
@@ -0,0 +1,374 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useMemo, useState, useEffect } from 'react'
+import { useRouter, useSearchParams } from 'next/navigation'
+import { ExclamationCircleFilled, PlusOutlined, StopOutlined } from '@ant-design/icons'
+import {
+ Button,
+ Drawer,
+ Dropdown,
+ Empty,
+ Flex,
+ Input,
+ Modal,
+ Space,
+ Spin,
+ Switch,
+ Table,
+ Tag,
+ Tooltip,
+ Typography,
+ theme as antdTheme
+} from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import ConfirmInput from '@/components/ConfirmInput'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import CreatePolicyDialog from './CreatePolicyDialog'
+import { formatToDateTime } from '@/lib/utils'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { use } from 'react'
+import { fetchPolicies, deletePolicy, getPolicyDetails, enableOrDisablePolicy } from '@/lib/store/policies'
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function PoliciesPage() {
+ const [open, setOpen] = useState(false)
+ const [editPolicy, setEditPolicy] = useState('')
+ const [search, setSearch] = useState('')
+ const [modal, contextHolder] = Modal.useModal()
+ const router = useRouter()
+ const [currentPolicy, setCurrentPolicy] = useState(null)
+ const [openPolicy, setOpenPolicy] = useState(false)
+ const { token } = antdTheme.useToken()
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.policies)
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const [detailsLoading, setDetailsLoading] = useState(false)
+
+ useEffect(() => {
+ currentMetalake && dispatch(fetchPolicies({ metalake: currentMetalake, details: true }))
+ }, [dispatch, currentMetalake])
+
+ const tableData = store.policiesData
+ ?.filter(p => {
+ if (search === '') return true
+
+ return p?.name.includes(search)
+ })
+ .map(policy => {
+ return {
+ ...policy,
+ createTime: policy.audit.createTime,
+ key: policy.name
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleCreatePolicy = () => {
+ setEditPolicy('')
+ setOpen(true)
+ }
+
+ const handleEditPolicy = policy => {
+ setEditPolicy(policy)
+ setOpen(true)
+ }
+
+ const showDeleteConfirm = (NameContext, policy) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+ modal.confirm({
+ title: `Are you sure to delete the Policy ${policy}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => <ConfirmInput name={name} setConfirmInput={setConfirmInput} registerValidate={registerValidate} />}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deletePolicy({ metalake: currentMetalake, policy }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const handleClick = name => () => {
+ router.push(`/metadataObjectsForPolicy?policy=${name}&metalake=${currentMetalake}`)
+ }
+
+ const handleViewPolicy = async policy => {
+ setDetailsLoading(true)
+ const { payload: policyDetail } = await dispatch(getPolicyDetails({ metalake: currentMetalake, policy }))
+ setDetailsLoading(false)
+ setCurrentPolicy(policyDetail)
+ setOpenPolicy(true)
+ }
+
+ const onClose = () => {
+ setOpenPolicy(false)
+ }
+
+ const handleEnableOrDisable = async (policy, enabled) => {
+ await dispatch(enableOrDisablePolicy({ metalake: currentMetalake, policy, data: { enable: !enabled } }))
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Policy Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ width: 200,
+ render: (_, record) => (
+ <Tag
+ key={record.name}
+ icon={!record.enabled ? <StopOutlined style={{ color: 'white' }} /> : null}
+ closable={false}
+ onClick={handleClick(record.name)}
+ color={record.enabled ? token.colorPrimary : token.colorTextDisabled}
+ style={{ userSelect: 'none' }}
+ className='cursor-pointer'
+ >
+ <span>{record.name.length > 20 ? `${record.name.slice(0, 20)}...` : record.name}</span>
+ </Tag>
+ )
+ },
+ {
+ title: 'Policy Type',
+ dataIndex: 'policyType',
+ key: 'policyType',
+ ellipsis: true,
+ width: 150,
+ render: (_, record) => <>{record.policyType}</>
+ },
+ {
+ title: 'Comment',
+ dataIndex: 'comment',
+ key: 'comment',
+ ellipsis: true,
+ width: 300,
+ render: comment => <span>{comment || '-'}</span>
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Tooltip title='Edit'>
+ <Icons.Pencil className='size-4' onClick={() => handleEditPolicy(record.name)} />
+ </Tooltip>
+ </a>
+ <a>
+ <Tooltip title='View Details'>
+ <Icons.Eye className='size-4' onClick={() => handleViewPolicy(record.name)} />
+ </Tooltip>
+ </a>
+ <Dropdown
+ menu={{
+ items: [
+ { label: 'Delete', key: 'delete' },
+ {
+ label: record.enabled ? 'Disable' : 'Enable',
+ key: 'enableOrDisable'
+ }
+ ],
+ onClick: ({ key }) => {
+ switch (key) {
+ case 'delete':
+ showDeleteConfirm(NameContext, record.name)
+ break
+ case 'enableOrDisable':
+ handleEnableOrDisable(record.name, record.enabled)
+ break
+ }
+ }
+ }}
+ trigger={['hover']}
+ >
+ <Tooltip title='Settings'>
+ <a onClick={e => e.preventDefault()}>
+ <Icons.Settings className='size-4' />
+ </a>
+ </Tooltip>
+ </Dropdown>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake, store.policiesData]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <Title level={2}>Policies</Title>
+ <Paragraph type='secondary'>This table lists the policies you have access to.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/3 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' onChange={onSearchTable} />
+ <Button type='primary' icon={<PlusOutlined />} onClick={handleCreatePolicy}>
+ Create Policy
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.policiesLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ {openPolicy && (
+ <Drawer
+ title={`View ${currentPolicy?.name} details`}
+ loading={detailsLoading}
+ onClose={onClose}
+ open={openPolicy}
+ >
+ <>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Policy Name</div>
+ <span className='break-words text-base'>{currentPolicy?.name}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Enabled</div>
+ <span className='break-words text-base'>
+ <Switch checked={currentPolicy?.enabled} disabled size='small' />
+ </span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Policy Type</div>
+ <span className='break-words text-base'>{currentPolicy?.policyType}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Supported Object Types</div>
+ <span className='break-words text-base'>
+ {currentPolicy?.content?.supportedObjectTypes.length === 1
+ ? currentPolicy?.content?.supportedObjectTypes[0]
+ : currentPolicy?.content?.supportedObjectTypes.length
+ ? currentPolicy?.content?.supportedObjectTypes.join(', ')
+ : '-'}
+ </span>
+ </div>
+ <div className='my-4'>
+ <div className='mb-1 text-sm text-slate-400'>Rule(s)</div>
+ <Space.Compact className='max-h-80 w-full overflow-auto'>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Rule Name</span>
+ {currentPolicy?.content?.customRules
+ ? Object.keys(currentPolicy?.content?.customRules).map(rule => (
+ <span key={rule} className='truncate p-1' title={rule}>
+ {rule}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Rule Content</span>
+ {currentPolicy?.content?.customRules
+ ? Object.values(currentPolicy?.content?.customRules).map(ruleContent => (
+ <span key={ruleContent} className='truncate p-1' title={ruleContent}>
+ {ruleContent || '-'}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ </Space.Compact>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Comment</div>
+ <span className='break-words text-base'>{currentPolicy?.comment || '-'}</span>
+ </div>
+ <div className='my-4'>
+ <div className='mb-1 text-sm text-slate-400'>Properties</div>
+ {currentPolicy?.content?.properties && Object.keys(currentPolicy?.content?.properties).length > 0 ? (
+ <Space.Compact className='max-h-80 w-full overflow-auto'>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Key</span>
+ {currentPolicy?.content?.properties
+ ? Object.keys(currentPolicy?.content?.properties).map(key => (
+ <span key={key} className='truncate p-1' title={key}>
+ {key}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Value</span>
+ {currentPolicy?.content?.properties
+ ? Object.values(currentPolicy?.content?.properties).map(value => (
+ <span key={value} className='truncate p-1' title={value}>
+ {value || '-'}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ </Space.Compact>
+ ) : (
+ <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
+ )}
+ </div>
+ </>
+ </Drawer>
+ )}
+ <CreatePolicyDialog open={open} setOpen={setOpen} metalake={currentMetalake} editPolicy={editPolicy} />
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/compliance/tags/CreateTagDialog.js b/web-v2/web/src/app/compliance/tags/CreateTagDialog.js
new file mode 100644
index 0000000000..5cd1003016
--- /dev/null
+++ b/web-v2/web/src/app/compliance/tags/CreateTagDialog.js
@@ -0,0 +1,181 @@
+/*
+ * 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 React, { useEffect, useState, useRef } from 'react'
+import { ColorPicker, Form, Input, Modal, Space, Typography } from 'antd'
+import Icons from '@/components/Icons'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { validateMessages, mismatchName } from '@/config'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates, generateRandomColor } from '@/lib/utils'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { getTagDetails, createTag, updateTag } from '@/lib/store/tags'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+const defaultValues = {
+ name: '',
+ comment: '',
+ color: '#0369a1',
+ properties: []
+}
+
+export default function CreateTagDialog({ ...props }) {
+ const { open, setOpen, metalake, editTag } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const loadedRef = useRef(false)
+ const dispatch = useAppDispatch()
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ useEffect(() => {
+ if (open && editTag && !loadedRef.current) {
+ loadedRef.current = true
+
+ const init = async () => {
+ const { payload: tag } = await dispatch(getTagDetails({ metalake, tag: editTag }))
+ setCacheData(tag)
+ form.setFieldValue('name', tag.name)
+ form.setFieldValue('comment', tag.comment)
+ form.setFieldValue('color', tag.properties?.color)
+ let index = 0
+ Object.entries(tag.properties || {}).forEach(([key, value]) => {
+ if (key !== 'color') {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ }
+ })
+ }
+ init()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editTag, metalake])
+
+ const handlePickerClick = () => {
+ const randomColor = generateRandomColor()
+ form.setFieldValue(['color'], randomColor)
+ }
+
+ const handlePickerChange = color => {
+ form.setFieldValue(['color'], color.toHexString())
+ }
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim(),
+ comment: values.comment,
+ properties: values.properties.reduce((acc, item) => {
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {})
+ }
+ submitData.properties.color = typeof values.color !== 'string' ? values.color.toHexString() : values.color
+ if (editTag) {
+ // update tag
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ await dispatch(updateTag({ metalake, tag: editTag, data: reqData }))
+ }
+ } else {
+ await dispatch(createTag({ metalake, data: submitData }))
+ }
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editTag ? 'Create Tag' : 'Edit Tag'}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>{!editTag ? 'Create a new tag' : `Edit the tag ${editTag}.`}</Paragraph>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='tagForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Tag Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'tag name' }}
+ >
+ <Input placeholder={mismatchName} />
+ </Form.Item>
+ <Form.Item name='comment' label='Comment'>
+ <TextArea />
+ </Form.Item>
+ <Form.Item name='color' label='Color'>
+ <Space>
+ <ColorPicker value={values?.color} onChange={handlePickerChange} />
+ <Input value={values?.color} readOnly />
+ <Icons.RefreshCcw className='size-4 cursor-pointer' onClick={handlePickerClick} />
+ </Space>
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem fields={fields} subOpt={subOpt} form={form} isEdit={!!editTag} />
+ )}
+ </Form.List>
+ </Form.Item>
+ </Form>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/compliance/tags/page.js b/web-v2/web/src/app/compliance/tags/page.js
new file mode 100644
index 0000000000..6599ff3c66
--- /dev/null
+++ b/web-v2/web/src/app/compliance/tags/page.js
@@ -0,0 +1,216 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useMemo, useState, useEffect } from 'react'
+import { useRouter, useSearchParams } from 'next/navigation'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import { Button, Flex, Input, Modal, Spin, Table, Tag, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import ConfirmInput from '@/components/ConfirmInput'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import CreateTagDialog from './CreateTagDialog'
+import { formatToDateTime } from '@/lib/utils'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { use } from 'react'
+import { fetchTags, deleteTag } from '@/lib/store/tags'
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function TagsPage() {
+ const [open, setOpen] = useState(false)
+ const [editTag, setEditTag] = useState('')
+ const [search, setSearch] = useState('')
+ const [modal, contextHolder] = Modal.useModal()
+ const router = useRouter()
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.tags)
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+
+ useEffect(() => {
+ currentMetalake && dispatch(fetchTags({ metalake: currentMetalake, details: true }))
+ }, [dispatch, currentMetalake])
+
+ const tableData = store.tagsData
+ ?.filter(t => {
+ if (search === '') return true
+
+ return t?.name.includes(search)
+ })
+ .map(tag => {
+ return {
+ ...tag,
+ createTime: tag.audit.createTime,
+ key: tag.name
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleCreateTag = () => {
+ setEditTag('')
+ setOpen(true)
+ }
+
+ const handleEditTag = tag => {
+ setEditTag(tag)
+ setOpen(true)
+ }
+
+ const showDeleteConfirm = (NameContext, tag) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+ modal.confirm({
+ title: `Are you sure to delete the Tag ${tag}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => <ConfirmInput name={name} setConfirmInput={setConfirmInput} registerValidate={registerValidate} />}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deleteTag({ metalake: currentMetalake, tag }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const handleClick = name => () => {
+ router.push(`/metadataObjectsForTag?tag=${name}&metalake=${currentMetalake}`)
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Tag Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ width: 200,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ render: (_, record) => (
+ <Tag
+ key={record.name}
+ color={record.properties?.color}
+ closable={false}
+ onClick={handleClick(record.name)}
+ className='cursor-pointer'
+ style={{ userSelect: 'none' }}
+ >
+ <span>{record.name.length > 20 ? `${record.name.slice(0, 20)}...` : record.name}</span>
+ </Tag>
+ )
+ },
+ {
+ title: 'Created At',
+ dataIndex: ['audit', 'createTime'],
+ sorter: (a, b) => new Date(a.createTime).getTime() - new Date(b.createTime).getTime(),
+ key: 'createTime',
+ ellipsis: true,
+ width: 200,
+ render: (_, record) => <>{formatToDateTime(record.createTime)}</>
+ },
+ {
+ title: 'Comment',
+ dataIndex: 'comment',
+ key: 'comment',
+ ellipsis: true,
+ render: comment => <span>{comment || '-'}</span>
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Tooltip title='Edit'>
+ <Icons.Pencil className='size-4' onClick={() => handleEditTag(record.name)} />
+ </Tooltip>
+ </a>
+ <a>
+ <Tooltip title='Delete'>
+ <Icons.Trash2Icon className='size-4' onClick={() => showDeleteConfirm(NameContext, record.name)} />
+ </Tooltip>
+ </a>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake, store.tagsData]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <Title level={2}>Tags</Title>
+ <Paragraph type='secondary'>This table lists the tags you have access to.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/3 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' onChange={onSearchTable} />
+ <Button type='primary' icon={<PlusOutlined />} onClick={handleCreateTag}>
+ Create Tag
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.tagsLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ <CreateTagDialog open={open} setOpen={setOpen} metalake={currentMetalake} editTag={editTag} />
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/jobTemplates/page.js b/web-v2/web/src/app/jobTemplates/page.js
new file mode 100644
index 0000000000..f5b38dbdf2
--- /dev/null
+++ b/web-v2/web/src/app/jobTemplates/page.js
@@ -0,0 +1,449 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useContext, useEffect, useMemo, useState } from 'react'
+import dynamic from 'next/dynamic'
+import { useRouter, useSearchParams } from 'next/navigation'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import { Button, Drawer, Flex, Input, Modal, Space, Spin, Table, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import ConfirmInput from '@/components/ConfirmInput'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import { formatToDateTime } from '@/lib/utils'
+import Loading from '@/components/Loading'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { fetchJobTemplates, getJobTemplate, deleteJobTemplate } from '@/lib/store/jobs'
+
+const RegisterJobTemplateDialog = dynamic(() => import('../jobs/RegisterJobTemplateDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function JobTemplatesPage() {
+ const [open, setOpen] = useState(false)
+ const [editJobTemplate, setEditJobTemplate] = useState('')
+ const [openDetailJobTemplate, setOpenDetailJobTemplate] = useState(false)
+ const [currentJobTemplate, setCurrentJobTemplate] = useState(null)
+ const router = useRouter()
+ const [modal, contextHolder] = Modal.useModal()
+ const [search, setSearch] = useState('')
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake') || ''
+ const jobTemplateName = searchParams.get('jobTemplateName') || ''
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.jobs)
+ const [isLoadingDetails, setIsLoadingDetails] = useState(false)
+
+ useEffect(() => {
+ currentMetalake && dispatch(fetchJobTemplates({ metalake: currentMetalake, details: true }))
+ }, [dispatch, currentMetalake])
+
+ const tableData = store.jobTemplates
+ ?.filter(t => {
+ if (search === '') return true
+
+ return t.name.includes(search)
+ })
+ .map(jobTemplate => {
+ return {
+ ...jobTemplate,
+ key: jobTemplate.name
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleJobTemplate = () => {
+ setEditJobTemplate('')
+ setOpen(true)
+ }
+
+ const handleEditJobTemplate = async jobTemplate => {
+ setEditJobTemplate(jobTemplate)
+ setOpen(true)
+ }
+
+ const handleViewJobTemplate = async jobTemplate => {
+ setIsLoadingDetails(true)
+ const { payload: jobTemplateDetail } = await dispatch(getJobTemplate({ metalake: currentMetalake, jobTemplate }))
+ setCurrentJobTemplate(jobTemplateDetail)
+ setOpenDetailJobTemplate(true)
+ setIsLoadingDetails(false)
+ }
+
+ const onClose = () => {
+ setOpenDetailJobTemplate(false)
+ setCurrentJobTemplate(null)
+ }
+
+ useEffect(() => {
+ if (jobTemplateName) {
+ handleViewJobTemplate(jobTemplateName)
+ }
+ }, [jobTemplateName])
+
+ const showDeleteConfirm = (NameContext, jobTemplate, type) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+
+ modal.confirm({
+ title: `Are you sure to cancel the Job Template ${jobTemplate}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => (
+ <ConfirmInput
+ name={name}
+ type={type}
+ confirmTips={`Please enter \"${jobTemplate}\" to confirm deletion!`}
+ notMatchTips={`The entered name does not match the job template name`}
+ setConfirmInput={setConfirmInput}
+ registerValidate={registerValidate}
+ />
+ )}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(deleteJobTemplate({ metalake: currentMetalake, jobTemplate }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Template Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ width: 300
+ },
+ {
+ title: 'Creator',
+ dataIndex: ['audit', 'creator'],
+ key: 'creator',
+ ellipsis: true,
+ width: 200
+ },
+ {
+ title: 'Created At',
+ dataIndex: ['audit', 'createTime'],
+ sorter: (a, b) => new Date(a.audit.createTime).getTime() - new Date(b.audit.createTime).getTime(),
+ key: 'createTime',
+ ellipsis: true,
+ width: 200,
+ render: (_, record) => <>{formatToDateTime(record.audit.createTime)}</>
+ },
+ {
+ title: 'Comment',
+ dataIndex: 'comment',
+ key: 'comment',
+ ellipsis: true
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Tooltip title='Edit'>
+ <Icons.Pencil className='size-4' onClick={() => handleEditJobTemplate(record.name)} />
+ </Tooltip>
+ </a>
+ <a>
+ <Tooltip title='View Details'>
+ <Icons.Eye className='size-4' onClick={() => handleViewJobTemplate(record.name)} />
+ </Tooltip>
+ </a>
+ <a>
+ <Tooltip title='Delete'>
+ <Icons.Trash2Icon
+ className='size-4'
+ onClick={() => showDeleteConfirm(NameContext, record.name, 'jobTemplate')}
+ />
+ </Tooltip>
+ </a>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <div className='h-full bg-white p-6'>
+ <Title level={2} className='flex items-center gap-1'>
+ <Icons.Undo2 className='size-6 cursor-pointer' onClick={() => router.back()} />
+ Job Templates
+ </Title>
+ <Paragraph type='secondary'>This table lists the job templates you have access to.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/3 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' onChange={onSearchTable} />
+ <Button type='primary' icon={<PlusOutlined />} onClick={handleJobTemplate}>
+ Register Job Template
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.isJobTemplatesLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ {openDetailJobTemplate && (
+ <Drawer
+ title={`View Details - ${currentJobTemplate?.name || ''}`}
+ loading={isLoadingDetails}
+ onClose={onClose}
+ open={openDetailJobTemplate}
+ >
+ <>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Template Name</div>
+ <span className='break-words text-base'>{currentJobTemplate?.name}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Job Type</div>
+ <span className='break-words text-base'>{currentJobTemplate?.jobType}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Executable</div>
+ <span className='break-words text-base'>{currentJobTemplate?.executable}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Comment</div>
+ <span className='break-words text-base'>{currentJobTemplate?.comment || '-'}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Arguments</div>
+ <span className='break-words text-base'>
+ {currentJobTemplate?.arguments.length === 1
+ ? currentJobTemplate?.arguments[0]
+ : currentJobTemplate?.arguments.length
+ ? currentJobTemplate?.arguments.join(', ')
+ : '-'}
+ </span>
+ </div>
+ <div className='my-4'>
+ <div className='mb-1 text-sm text-slate-400'>Environment Variable(s)</div>
+ <Space.Compact className='max-h-80 w-full overflow-auto'>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Env Var Name</span>
+ {currentJobTemplate?.environments
+ ? Object.keys(currentJobTemplate?.environments).map(envName => (
+ <span key={envName} className='truncate p-1' title={envName}>
+ {envName}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Env Var Value</span>
+ {currentJobTemplate?.environments
+ ? Object.values(currentJobTemplate?.environments).map(envValue => (
+ <span key={envValue} className='truncate p-1' title={envValue}>
+ {envValue || '-'}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ </Space.Compact>
+ </div>
+ <div className='my-4'>
+ <div className='mb-1 text-sm text-slate-400'>Custom Fields</div>
+ <Space.Compact className='max-h-80 w-full overflow-auto'>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Key</span>
+ {currentJobTemplate?.customFields
+ ? Object.keys(currentJobTemplate?.customFields).map(field => (
+ <span key={field} className='truncate p-1' title={field}>
+ {field}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Value</span>
+ {currentJobTemplate?.customFields
+ ? Object.values(currentJobTemplate?.customFields).map(value => (
+ <span key={value} className='truncate p-1' title={value}>
+ {value || '-'}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ </Space.Compact>
+ </div>
+ {currentJobTemplate?.jobType === 'shell' && (
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Script(s)</div>
+ {currentJobTemplate?.scripts && currentJobTemplate.scripts.length > 0 ? (
+ currentJobTemplate.scripts.map((script, index) => (
+ <span key={index} className='mb-2 block break-words last:mb-0'>
+ {script}
+ </span>
+ ))
+ ) : (
+ <span>-</span>
+ )}
+ </div>
+ )}
+ {currentJobTemplate?.jobType === 'spark' && (
+ <>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Class Name</div>
+ <span className='break-words text-base'>{currentJobTemplate?.className}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Jars</div>
+ {currentJobTemplate?.jars && currentJobTemplate.jars.length > 0 ? (
+ currentJobTemplate.jars.map((jar, index) => (
+ <span key={index} className='mb-2 block break-words last:mb-0'>
+ {jar}
+ </span>
+ ))
+ ) : (
+ <span>-</span>
+ )}
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Files</div>
+ {currentJobTemplate?.files && currentJobTemplate.files.length > 0 ? (
+ currentJobTemplate.files.map((file, index) => (
+ <span key={index} className='mb-2 block break-words last:mb-0'>
+ {file}
+ </span>
+ ))
+ ) : (
+ <span>-</span>
+ )}
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Archives</div>
+ {currentJobTemplate?.archives && currentJobTemplate.archives.length > 0 ? (
+ currentJobTemplate.archives.map((archive, index) => (
+ <span key={index} className='mb-2 block break-words last:mb-0'>
+ {archive}
+ </span>
+ ))
+ ) : (
+ <span>-</span>
+ )}
+ </div>
+ <div className='my-4'>
+ <div className='mb-1 text-sm text-slate-400'>Config(s)</div>
+ <Space.Compact className='max-h-80 w-full overflow-auto'>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Config Name</span>
+ {currentJobTemplate?.configs
+ ? Object.keys(currentJobTemplate?.configs).map(configName => (
+ <span key={configName} className='truncate p-1' title={configName}>
+ {configName}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='w-1/2 divide-y border-gray-100'>
+ <span className='bg-gray-100 p-1'>Config Value</span>
+ {currentJobTemplate?.configs
+ ? Object.values(currentJobTemplate?.configs).map(configValue => (
+ <span key={configValue} className='truncate p-1' title={configValue}>
+ {configValue || '-'}
+ </span>
+ ))
+ : null}
+ </Space.Compact>
+ </Space.Compact>
+ </div>
+ </>
+ )}
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Details</div>
+ <div className='flex justify-between'>
+ <span className='text-sm'>Creator: </span>
+ <span className='text-sm'>{currentJobTemplate?.audit?.creator}</span>
+ </div>
+ <div className='flex justify-between'>
+ <span className='text-sm'>Created At: </span>
+ <span className='text-sm'>{formatToDateTime(currentJobTemplate?.audit?.createTime)}</span>
+ </div>
+ <div className='flex justify-between'>
+ <span className='text-sm'>Updated At: </span>
+ <span className='text-sm'>{formatToDateTime(currentJobTemplate?.audit?.lastModifiedTime)}</span>
+ </div>
+ </div>
+ </>
+ </Drawer>
+ )}
+ {open && (
+ <RegisterJobTemplateDialog
+ open={open}
+ setOpen={setOpen}
+ metalake={currentMetalake}
+ editJobTemplate={editJobTemplate}
+ details={true}
+ />
+ )}
+ </div>
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/jobs/CreateJobDialog.js b/web-v2/web/src/app/jobs/CreateJobDialog.js
new file mode 100644
index 0000000000..bac446c750
--- /dev/null
+++ b/web-v2/web/src/app/jobs/CreateJobDialog.js
@@ -0,0 +1,486 @@
+/*
+ * 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 React, { useEffect, useMemo, useState } from 'react'
+import dynamic from 'next/dynamic'
+import { ArrowRightOutlined, PlusOutlined } from '@ant-design/icons'
+import { Button, Divider, Flex, Form, Input, Modal, Select, Spin, Typography } from 'antd'
+import Icons from '@/components/Icons'
+import { validateMessages } from '@/config'
+import { getJobParamValues } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import RegisterJobTemplateDialog from './RegisterJobTemplateDialog'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { fetchJobTemplates, getJobTemplate, createJob } from '@/lib/store/jobs'
+
+const { Paragraph } = Typography
+
+const defaultValues = {
+ jobTemplateName: '',
+ jobConf: []
+}
+
+export default function CreateJobDialog({ ...props }) {
+ const { open, setOpen, metalake, router, jobTemplateNames } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [jobTemplateDetail, setJobTemplateDetail] = useState(null)
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+ const currentJobTemplate = Form.useWatch('jobTemplateName', form)
+ const jobConfValues = Form?.useWatch('jobConf', form)
+ const [placeholderEntries, setPlaceholderEntries] = useState([])
+ const hasJobConfig = placeholderEntries.length > 0
+ const [openTemplate, setOpenTemplate] = useState(false)
+ const dispatch = useAppDispatch()
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ useEffect(() => {
+ open && dispatch(fetchJobTemplates({ metalake }))
+ }, [dispatch, metalake, open])
+
+ useEffect(() => {
+ if (open && jobTemplateNames && jobTemplateNames.length > 0 && !currentJobTemplate) {
+ form.setFieldValue('jobTemplateName', jobTemplateNames[0])
+ }
+ }, [open, jobTemplateNames, currentJobTemplate])
+
+ const updateOnChange = (index, newValue) => {
+ const changedKey = jobConfValues?.[index]?.confKey
+ if (!changedKey) return
+
+ const updatedJobConf = (jobConfValues || []).map(conf =>
+ conf?.confKey === changedKey ? { ...conf, value: newValue } : conf
+ )
+
+ form.setFieldsValue({ jobConf: updatedJobConf })
+ }
+
+ const getPlaceholderEntries = templateDetail => {
+ if (!templateDetail) return []
+
+ const jobType = String(templateDetail.jobType || '').toLowerCase()
+ const stringValues = []
+
+ const pushString = value => {
+ if (typeof value === 'string' && value) {
+ stringValues.push(value)
+ }
+ }
+
+ const pushArray = values => {
+ ;(values || []).forEach(val => pushString(val))
+ }
+
+ const pushObjectValues = obj => {
+ Object.values(obj || {}).forEach(val => pushString(val))
+ }
+
+ const pushObjectKeys = obj => {
+ Object.keys(obj || {}).forEach(key => pushString(key))
+ }
+
+ pushString(templateDetail.jobType)
+ pushString(templateDetail.comment)
+ pushString(templateDetail.executable)
+ pushArray(templateDetail.arguments)
+ pushObjectKeys(templateDetail.environments)
+ pushObjectValues(templateDetail.environments)
+ pushObjectKeys(templateDetail.customFields)
+ pushObjectValues(templateDetail.customFields)
+
+ if (jobType === 'spark') {
+ pushString(templateDetail.className)
+ pushArray(templateDetail.jars)
+ pushArray(templateDetail.files)
+ pushArray(templateDetail.archives)
+ pushObjectKeys(templateDetail.configs)
+ pushObjectValues(templateDetail.configs)
+ }
+
+ if (jobType === 'shell') {
+ pushArray(templateDetail.scripts)
+ }
+
+ const placeholders = stringValues.flatMap(template => getJobParamValues(template) || []).filter(Boolean)
+ const uniquePlaceholders = Array.from(new Set(placeholders))
+
+ return uniquePlaceholders.map(name => ({
+ key: name,
+ value: '',
+ confKey: name,
+ template: `{{${name}}}`
+ }))
+ }
+
+ const getPlaceholderValueMap = () =>
+ (jobConfValues || []).reduce((acc, item) => {
+ if (item?.confKey) {
+ acc[item.confKey] = item.value || ''
+ }
+
+ return acc
+ }, {})
+
+ const renderTemplateValue = template => {
+ if (!template) return ''
+ const valueMap = getPlaceholderValueMap()
+
+ return template.replace(/\{\{([^}]+)\}\}/g, (_, key) => valueMap[key] || `{{${key}}}`)
+ }
+
+ useEffect(() => {
+ const fetchJobTemplateDetails = async () => {
+ setIsLoading(true)
+ try {
+ const { payload: jobTemplate } = await dispatch(getJobTemplate({ metalake, jobTemplate: currentJobTemplate }))
+ setIsLoading(false)
+ setJobTemplateDetail(jobTemplate)
+ const nextPlaceholderEntries = getPlaceholderEntries(jobTemplate)
+ setPlaceholderEntries(nextPlaceholderEntries)
+ form.setFieldsValue({ jobConf: nextPlaceholderEntries })
+ } catch (error) {
+ console.log(error)
+ setIsLoading(false)
+ }
+ }
+ if (currentJobTemplate) {
+ fetchJobTemplateDetails()
+ } else {
+ setPlaceholderEntries([])
+ }
+ }, [currentJobTemplate])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ jobTemplateName: values.jobTemplateName,
+ jobConf: values.jobConf?.reduce((acc, item) => {
+ if (item.confKey && item.value) {
+ acc[item.confKey] = item.value
+ }
+
+ return acc
+ }, {})
+ }
+ await dispatch(createJob({ metalake, data: submitData }))
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title='Run Job'
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={1000}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>Create a new job by the template.</Paragraph>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='policyForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='jobTemplateName'
+ label='Template Name'
+ rules={[{ required: true }]}
+ messageVariables={{ label: 'template name' }}
+ >
+ <Select
+ popupRender={menu => (
+ <>
+ {menu}
+ <Divider style={{ margin: '8px 0' }} />
+ <div className='flex justify-between'>
+ <Button
+ type='text'
+ icon={<PlusOutlined />}
+ onClick={() => {
+ setOpenTemplate(true)
+ }}
+ >
+ Register Job Template
+ </Button>
+ <Button
+ type='text'
+ icon={<ArrowRightOutlined />}
+ onClick={() => {
+ router.push(`/jobTemplates?metalake=${metalake}`)
+ }}
+ >
+ Go to Job Templates
+ </Button>
+ </div>
+ </>
+ )}
+ options={jobTemplateNames.map(template => ({ label: template, value: template }))}
+ />
+ </Form.Item>
+ <div className='relative rounded border border-gray-200'>
+ {hasJobConfig && (
+ <>
+ <div className='pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-gray-200' />
+ <div className='pointer-events-none absolute left-1/2 top-1/2 flex size-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border border-gray-200 bg-white text-gray-500'>
+ <Icons.iconify icon='mdi:arrow-left' className='size-4' />
+ </div>
+ </>
+ )}
+ <div className={cn('grid gap-6 p-4', hasJobConfig ? 'grid-cols-2' : 'grid-cols-1')}>
+ <div className='space-y-2 max-h-[320px] overflow-y-auto pr-2'>
+ <Paragraph className='text-sm !mb-0'>Template Parameters</Paragraph>
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Basic Fields</Paragraph>
+ <div className='pl-4 space-y-1'>
+ <div className='text-[12px] text-gray-700'>
+ <span className='text-gray-400'>Job Type:</span> {jobTemplateDetail?.jobType || '-'}
+ </div>
+ <div className='text-[12px] text-gray-700'>
+ <span className='text-gray-400'>Comment:</span> {jobTemplateDetail?.comment || '-'}
+ </div>
+ <div className='text-[12px] text-gray-700'>
+ <span className='text-gray-400'>Executable:</span>{' '}
+ {renderTemplateValue(jobTemplateDetail?.executable || '') || '-'}
+ </div>
+ {jobTemplateDetail?.jobType === 'spark' && (
+ <div className='text-[12px] text-gray-700'>
+ <span className='text-gray-400'>Class Name:</span>{' '}
+ {renderTemplateValue(jobTemplateDetail?.className || '') || '-'}
+ </div>
+ )}
+ </div>
+ </div>
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Arguments</Paragraph>
+ <div className='pl-4'>
+ {(jobTemplateDetail?.arguments || []).length > 0 ? (
+ <div className='space-y-1'>
+ {(jobTemplateDetail?.arguments || []).map((arg, index) => (
+ <div key={`arg-${index}`} className='text-sm text-gray-700'>
+ {renderTemplateValue(arg)}
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className='text-[12px] text-gray-400'>No arguments</div>
+ )}
+ </div>
+ </div>
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Environment Variables</Paragraph>
+ <div className='pl-4'>
+ {Object.keys(jobTemplateDetail?.environments || {}).length > 0 ? (
+ <div className='space-y-1'>
+ {Object.entries(jobTemplateDetail?.environments || {}).map(([key, value]) => (
+ <div key={`env-${key}`} className='text-sm text-gray-700'>
+ <span className='text-gray-400'>{renderTemplateValue(key)}:</span>{' '}
+ {renderTemplateValue(value)}
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className='text-[12px] text-gray-400'>No environment variables</div>
+ )}
+ </div>
+ </div>
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Custom Fields</Paragraph>
+ <div className='pl-4'>
+ {Object.keys(jobTemplateDetail?.customFields || {}).length > 0 ? (
+ <div className='space-y-1'>
+ {Object.entries(jobTemplateDetail?.customFields || {}).map(([key, value]) => (
+ <div key={`custom-${key}`} className='text-sm text-gray-700'>
+ <span className='text-gray-400'>{renderTemplateValue(key)}:</span>{' '}
+ {renderTemplateValue(value)}
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className='text-[12px] text-gray-400'>No custom fields</div>
+ )}
+ </div>
+ </div>
+ {jobTemplateDetail?.jobType === 'spark' && (
+ <>
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Jars</Paragraph>
+ <div className='pl-4'>
+ {(jobTemplateDetail?.jars || []).length > 0 ? (
+ <div className='space-y-1'>
+ {(jobTemplateDetail?.jars || []).map((item, index) => (
+ <div key={`jar-${index}`} className='text-sm text-gray-700'>
+ {renderTemplateValue(item)}
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className='text-[12px] text-gray-400'>No jars</div>
+ )}
+ </div>
+ </div>
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Files</Paragraph>
+ <div className='pl-4'>
+ {(jobTemplateDetail?.files || []).length > 0 ? (
+ <div className='space-y-1'>
+ {(jobTemplateDetail?.files || []).map((item, index) => (
+ <div key={`file-${index}`} className='text-sm text-gray-700'>
+ {renderTemplateValue(item)}
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className='text-[12px] text-gray-400'>No files</div>
+ )}
+ </div>
+ </div>
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Archives</Paragraph>
+ <div className='pl-4'>
+ {(jobTemplateDetail?.archives || []).length > 0 ? (
+ <div className='space-y-1'>
+ {(jobTemplateDetail?.archives || []).map((item, index) => (
+ <div key={`archive-${index}`} className='text-sm text-gray-700'>
+ {renderTemplateValue(item)}
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className='text-[12px] text-gray-400'>No archives</div>
+ )}
+ </div>
+ </div>
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Configs</Paragraph>
+ <div className='pl-4'>
+ {Object.keys(jobTemplateDetail?.configs || {}).length > 0 ? (
+ <div className='space-y-1'>
+ {Object.entries(jobTemplateDetail?.configs || {}).map(([key, value]) => (
+ <div key={`config-${key}`} className='text-[12px] text-gray-700'>
+ <span className='text-gray-400'>{renderTemplateValue(key)}:</span>{' '}
+ {renderTemplateValue(value)}
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className='text-[12px] text-gray-400'>No configs</div>
+ )}
+ </div>
+ </div>
+ </>
+ )}
+ {jobTemplateDetail?.jobType === 'shell' && (
+ <div>
+ <Paragraph className='text-[12px] mb-1'>Scripts</Paragraph>
+ <div className='pl-4'>
+ {(jobTemplateDetail?.scripts || []).length > 0 ? (
+ <div className='space-y-1'>
+ {(jobTemplateDetail?.scripts || []).map((item, index) => (
+ <div key={`script-${index}`} className='text-sm text-gray-700'>
+ {renderTemplateValue(item)}
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className='text-[12px] text-gray-400'>No scripts</div>
+ )}
+ </div>
+ </div>
+ )}
+ </div>
+ {hasJobConfig && (
+ <div className='pl-2 max-h-[320px] overflow-y-auto pr-2'>
+ <Form.Item label='Job Configuration'>
+ <div className='flex flex-col gap-2'>
+ <Form.List name='jobConf'>
+ {fields => (
+ <>
+ {fields.map(({ key, name, ...restField }) => (
+ <Form.Item label={null} className='align-items-center mb-0' key={key}>
+ <Flex gap='small' align='start' key={key}>
+ <Form.Item
+ {...restField}
+ name={[name, 'key']}
+ rules={[{ required: true, message: 'Please enter the job config key!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input disabled placeholder='Job Config Key' />
+ </Form.Item>
+ <Form.Item
+ {...restField}
+ name={[name, 'value']}
+ rules={[{ required: true, message: 'Please enter the job config value!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input
+ placeholder={
+ form.getFieldValue(['jobConf', name, 'template']) || 'Job Config Value'
+ }
+ onChange={e => updateOnChange(name, e.target.value)}
+ />
+ </Form.Item>
+ </Flex>
+ </Form.Item>
+ ))}
+ </>
+ )}
+ </Form.List>
+ </div>
+ </Form.Item>
+ </div>
+ )}
+ </div>
+ </div>
+ </Form>
+ </Spin>
+ {openTemplate && (
+ <RegisterJobTemplateDialog open={openTemplate} setOpen={setOpenTemplate} metalake={metalake} />
+ )}
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/jobs/RegisterJobTemplateDialog.js b/web-v2/web/src/app/jobs/RegisterJobTemplateDialog.js
new file mode 100644
index 0000000000..ccfbbe0131
--- /dev/null
+++ b/web-v2/web/src/app/jobs/RegisterJobTemplateDialog.js
@@ -0,0 +1,436 @@
+/*
+ * 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 React, { useEffect, useRef, useState } from 'react'
+import { PlusOutlined } from '@ant-design/icons'
+import { Button, Flex, Form, Input, Modal, Radio, Select, Spin, Typography } from 'antd'
+import { useScrolling } from 'react-use'
+import Icons from '@/components/Icons'
+import { dialogContentMaxHeigth, validateMessages, mismatchName } from '@/config'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { genUpdates } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+import { createJobTemplate, getJobTemplate, updateJobTemplate } from '@/lib/store/jobs'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+const defaultValues = {
+ name: '',
+ jobType: 'shell',
+ comment: '',
+ executable: '',
+ arguments: [],
+ environments: [],
+ customFields: [],
+ scripts: []
+}
+
+export default function RegisterJobTemplateDialog({ ...props }) {
+ const { open, setOpen, metalake, editJobTemplate, details } = props
+ const [isLoading, setIsLoading] = useState(false)
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const scrollRef = useRef(null)
+ const loadedRef = useRef(false)
+ const scrolling = useScrolling(scrollRef)
+ const [bottomShadow, setBottomShadow] = useState(false)
+ const [topShadow, setTopShadow] = useState(false)
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+ const jobType = Form.useWatch('jobType', form)
+ const dispatch = useAppDispatch()
+
+ const handScroll = () => {
+ if (scrollRef.current) {
+ const { scrollTop, scrollHeight, clientHeight } = scrollRef.current
+ if (scrollHeight > clientHeight + scrollTop) {
+ setTopShadow(true)
+ setBottomShadow(scrollTop > 0)
+ } else if (scrollHeight === clientHeight + scrollTop) {
+ setTopShadow(false)
+ setBottomShadow(scrollTop > 0)
+ }
+ }
+ }
+
+ useEffect(() => {
+ scrollRef.current && handScroll()
+ }, [scrolling])
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ useEffect(() => {
+ const initLoad = async () => {
+ setIsLoading(true)
+ try {
+ const { payload: jobTemplateDetail } = await dispatch(
+ getJobTemplate({ metalake, jobTemplate: editJobTemplate })
+ )
+ setCacheData(jobTemplateDetail)
+ form.setFieldValue('name', jobTemplateDetail.name)
+ form.setFieldValue('jobType', jobTemplateDetail.jobType)
+ form.setFieldValue('comment', jobTemplateDetail.comment)
+ form.setFieldValue('executable', jobTemplateDetail.executable)
+ form.setFieldValue('arguments', jobTemplateDetail.arguments)
+ let index = 0
+ Object.entries(jobTemplateDetail.environments || {}).forEach(([key, value]) => {
+ form.setFieldValue(['environments', index, 'envName'], key)
+ form.setFieldValue(['environments', index, 'envValue'], value)
+ index++
+ })
+ let customFieldIndex = 0
+ Object.entries(jobTemplateDetail.customFields || {}).forEach(([key, value]) => {
+ form.setFieldValue(['customFields', customFieldIndex, 'fieldName'], key)
+ form.setFieldValue(['customFields', customFieldIndex, 'fieldValue'], value)
+ customFieldIndex++
+ })
+ if (jobTemplateDetail.jobType === 'shell') {
+ form.setFieldValue('scripts', jobTemplateDetail.scripts)
+ } else {
+ form.setFieldValue('className', jobTemplateDetail.className)
+ form.setFieldValue('jars', jobTemplateDetail.jars)
+ form.setFieldValue('files', jobTemplateDetail.files)
+ form.setFieldValue('archives', jobTemplateDetail.archives)
+ let configIndex = 0
+ Object.entries(jobTemplateDetail.configs || {}).forEach(([key, value]) => {
+ form.setFieldValue(['configs', configIndex, 'configName'], key)
+ form.setFieldValue(['configs', configIndex, 'configValue'], value)
+ configIndex++
+ })
+ }
+ setIsLoading(false)
+ } catch (e) {
+ setIsLoading(false)
+ }
+ }
+ if (open && editJobTemplate && !loadedRef.current) {
+ loadedRef.current = true
+ initLoad()
+ }
+
+ // Reset loadedRef when dialog closes
+ if (!open) {
+ loadedRef.current = false
+ }
+ }, [open, editJobTemplate, metalake])
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim(),
+ comment: values.comment,
+ jobType: values.jobType,
+ executable: values.executable,
+ arguments: values.arguments,
+ environments: values.environments?.reduce((acc, item) => {
+ if (item && item.envName && item.envValue) {
+ acc[item.envName] = item.envValue
+ }
+
+ return acc
+ }, {}),
+ customFields: values.customFields?.reduce((acc, item) => {
+ if (item && item.fieldName && item.fieldValue) {
+ acc[item.fieldName] = item.fieldValue
+ }
+
+ return acc
+ }, {}),
+ scripts: values.scripts
+ }
+ if (jobType === 'spark') {
+ Object.assign(submitData, {
+ className: values.className,
+ jars: values.jars,
+ files: values.files,
+ archives: values.archives,
+ configs: values.configs?.reduce((acc, item) => {
+ if (item && item.configName && item.configValue) {
+ acc[item.configName] = item.configValue
+ }
+
+ return acc
+ }, {})
+ })
+ }
+ if (editJobTemplate) {
+ // update job template
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ if (reqData.updates.length) {
+ await dispatch(updateJobTemplate({ metalake, jobTemplate: editJobTemplate, data: reqData }))
+ }
+ } else {
+ await dispatch(createJobTemplate({ metalake, data: { jobTemplate: submitData }, details }))
+ }
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editJobTemplate ? 'Register Job Template' : 'Edit Job Template'}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary'>
+ {!editJobTemplate ? 'Register a new job template.' : `Edit the job template ${editJobTemplate}`}
+ </Paragraph>
+ <div
+ className={cn('relative', {
+ 'after:absolute after:-bottom-10 after:left-0 after:right-0 after:h-10 after:shadow-[0px_-10px_8px_-8px_rgba(5,5,5,0.1)]':
+ topShadow,
+ 'before:absolute before:-top-10 before:left-0 before:right-0 before:h-10 before:z-10 before:shadow-[0px_10px_8px_-8px_rgba(5,5,5,0.1)]':
+ bottomShadow
+ })}
+ >
+ <div className='overflow-auto' style={{ maxHeight: `${dialogContentMaxHeigth}px` }} ref={scrollRef}>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='policyForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Template Name'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'template name' }}
+ >
+ <Input placeholder={mismatchName} />
+ </Form.Item>
+ <Form.Item name='jobType' label='Job Type'>
+ <Radio.Group disabled={editJobTemplate}>
+ <Radio value={'shell'}>{'Shell'}</Radio>
+ <Radio value={'spark'}>{'Spark'}</Radio>
+ </Radio.Group>
+ </Form.Item>
+ <Form.Item name='comment' label='Comment'>
+ <TextArea />
+ </Form.Item>
+ <Form.Item
+ name='executable'
+ rules={[{ required: true, message: 'Please enter the executable!' }]}
+ label='Executable'
+ >
+ <Input placeholder='e.g. /path/to/my_script.sh' />
+ </Form.Item>
+ <Form.Item name='arguments' label='Arguments'>
+ <Select mode='tags' tokenSeparators={[',']} placeholder='e.g. {{arg1}},{{arg2}}' />
+ </Form.Item>
+ <Form.Item label='Environment Variables'>
+ <div className='flex flex-col gap-2'>
+ <Form.List name='environments'>
+ {(fields, { add, remove }) => (
+ <>
+ {fields.map(({ key, name, ...restField }) => (
+ <Form.Item label={null} className='align-items-center mb-1' key={key}>
+ <Flex gap='small' align='start'>
+ <Form.Item
+ {...restField}
+ name={[name, 'envName']}
+ rules={[{ required: true, message: 'Please enter environment variable name!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input placeholder='Env Var Name' />
+ </Form.Item>
+ <Form.Item
+ {...restField}
+ name={[name, 'envValue']}
+ rules={[{ required: true, message: 'Please enter environment variable value!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input placeholder='Env Var Value' />
+ </Form.Item>
+ <Form.Item className='mb-0 grow-0'>
+ <Icons.Minus
+ className='size-8 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => remove(name)}
+ />
+ </Form.Item>
+ </Flex>
+ </Form.Item>
+ ))}
+ <Button className='w-fit' type='dashed' onClick={() => add()} icon={<PlusOutlined />}>
+ Add Env Var
+ </Button>
+ </>
+ )}
+ </Form.List>
+ </div>
+ </Form.Item>
+ <Form.Item label='Custom Field(s)'>
+ <div className='flex flex-col gap-2'>
+ <Form.List name='customFields'>
+ {(fields, { add, remove }) => (
+ <>
+ {fields.map(({ key, name, ...restField }) => (
+ <Form.Item label={null} className='align-items-center mb-1' key={key}>
+ <Flex gap='small' align='start'>
+ <Form.Item
+ {...restField}
+ name={[name, 'fieldName']}
+ rules={[{ required: true, message: 'Please enter custom field name!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input placeholder='Field Name' />
+ </Form.Item>
+ <Form.Item
+ {...restField}
+ name={[name, 'fieldValue']}
+ rules={[{ required: true, message: 'Please enter custom field value!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input placeholder='Field Value' />
+ </Form.Item>
+ <Form.Item className='mb-0 grow-0'>
+ <Icons.Minus
+ className='size-8 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => remove(name)}
+ />
+ </Form.Item>
+ </Flex>
+ </Form.Item>
+ ))}
+ <Button className='w-fit' type='dashed' onClick={() => add()} icon={<PlusOutlined />}>
+ Add Custom Field
+ </Button>
+ </>
+ )}
+ </Form.List>
+ </div>
+ </Form.Item>
+ {jobType === 'shell' && (
+ <Form.Item name='scripts' label='Script(s)'>
+ <Select
+ mode='tags'
+ tokenSeparators={[',']}
+ placeholder='e.g. /path/to/script1.sh,/path/to/script2.sh'
+ />
+ </Form.Item>
+ )}
+ {jobType === 'spark' && (
+ <>
+ <Form.Item
+ name='className'
+ rules={[{ required: true, message: 'Please enter the class name!' }]}
+ label='Class Name'
+ >
+ <Input placeholder='e.g. com.example.MySparkApp' />
+ </Form.Item>
+ <Form.Item name='jars' label='Jars'>
+ <Select
+ mode='tags'
+ tokenSeparators={[',']}
+ placeholder='e.g. /path/to/dependency1.jar,/path/to/dependency2.jar'
+ />
+ </Form.Item>
+ <Form.Item name='files' label='Files'>
+ <Select
+ mode='tags'
+ tokenSeparators={[',']}
+ placeholder='e.g. /path/to/file1.txt,/path/to/file2.txt'
+ />
+ </Form.Item>
+ <Form.Item name='archives' label='Archives'>
+ <Select
+ mode='tags'
+ tokenSeparators={[',']}
+ placeholder='e.g. /path/to/archive1.zip,/path/to/archive2.zip'
+ />
+ </Form.Item>
+ <Form.Item label='Configs'>
+ <div className='flex flex-col gap-2'>
+ <Form.List name='configs'>
+ {(fields, { add, remove }) => (
+ <>
+ {fields.map(({ key, name, ...restField }) => (
+ <Form.Item label={null} className='align-items-center mb-1' key={key}>
+ <Flex gap='small' align='start'>
+ <Form.Item
+ {...restField}
+ name={[name, 'configName']}
+ rules={[{ required: true, message: 'Please enter config name!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input placeholder='Config Name' />
+ </Form.Item>
+ <Form.Item
+ {...restField}
+ name={[name, 'configValue']}
+ rules={[{ required: true, message: 'Please enter config value!' }]}
+ className='mb-0 w-full grow'
+ >
+ <Input placeholder='Config Value' />
+ </Form.Item>
+ <Form.Item className='mb-0 grow-0'>
+ <Icons.Minus
+ className='size-8 cursor-pointer text-gray-400 hover:text-defaultPrimary'
+ onClick={() => remove(name)}
+ />
+ </Form.Item>
+ </Flex>
+ </Form.Item>
+ ))}
+ <Button className='w-fit' type='dashed' onClick={() => add()} icon={<PlusOutlined />}>
+ Add Config
+ </Button>
+ </>
+ )}
+ </Form.List>
+ </div>
+ </Form.Item>
+ </>
+ )}
+ </Form>
+ </Spin>
+ </div>
+ </div>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/jobs/page.js b/web-v2/web/src/app/jobs/page.js
new file mode 100644
index 0000000000..edd34cf211
--- /dev/null
+++ b/web-v2/web/src/app/jobs/page.js
@@ -0,0 +1,378 @@
+/*
+ * 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.
+ */
+
+'use client'
+import { createContext, useContext, useMemo, useState, useEffect } from 'react'
+import dynamic from 'next/dynamic'
+import { useRouter, useSearchParams } from 'next/navigation'
+import { ArrowRightOutlined, ExclamationCircleFilled, PlusOutlined, RedoOutlined } from '@ant-design/icons'
+import { Button, Drawer, Flex, Input, Modal, Spin, Table, Tag, Tooltip, Typography, theme } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import ConfirmInput from '@/components/ConfirmInput'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import { jobStatusEnum } from '@/config'
+import Link from 'next/link'
+import { formatToDateTime } from '@/lib/utils'
+import Loading from '@/components/Loading'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { fetchJobs, fetchJobTemplates, getJobDetails, cancelJob } from '@/lib/store/jobs'
+
+const RegisterJobTemplateDialog = dynamic(() => import('./RegisterJobTemplateDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const CreateJobDialog = dynamic(() => import('./CreateJobDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function JobsPage() {
+ const [open, setOpen] = useState(false)
+ const [openJobTemplate, setOpenJobTemplate] = useState(false)
+ const router = useRouter()
+ const [modal, contextHolder] = Modal.useModal()
+ const [search, setSearch] = useState('')
+ const { token } = theme.useToken()
+ const [currentJob, setCurrentJob] = useState(null)
+ const [openDetailJob, setOpenDetailJob] = useState(false)
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.jobs)
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const [jobDetailLoading, setJobDetailLoading] = useState(false)
+
+ useEffect(() => {
+ if (currentMetalake) {
+ dispatch(fetchJobs({ metalake: currentMetalake }))
+ dispatch(fetchJobTemplates({ metalake: currentMetalake }))
+ }
+ }, [dispatch, currentMetalake])
+
+ const tableData = store.jobsData
+ ?.filter(j => {
+ if (search === '') return true
+
+ return j.jobId.includes(search)
+ })
+ .map(job => {
+ return {
+ ...job,
+ key: job.jobId
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleCreateJob = templates => {
+ if (!templates || templates.length === 0) {
+ setOpenJobTemplate(true)
+ } else {
+ setOpen(true)
+ }
+ }
+
+ const handleViewJobDetail = async jobId => {
+ setJobDetailLoading(true)
+ const { payload: jobDetail } = await dispatch(getJobDetails({ metalake: currentMetalake, jobId }))
+ setCurrentJob(jobDetail)
+ setOpenDetailJob(true)
+ setJobDetailLoading(false)
+ }
+
+ const onClose = () => {
+ setOpenDetailJob(false)
+ setCurrentJob(null)
+ }
+
+ const showDeleteConfirm = (NameContext, jobId) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+ modal.confirm({
+ title: `Are you sure to cancel the job ${jobId}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {jobId => (
+ <ConfirmInput
+ name={jobId}
+ setConfirmInput={setConfirmInput}
+ confirmTips={`Please enter \"${jobId}\" to confirm cancelling the job!`}
+ notMatchTips={`The entered id does not match the job ID`}
+ registerValidate={registerValidate}
+ />
+ )}
+ </NameContext.Consumer>
+ ),
+ okText: 'Cancel Job',
+ okType: 'danger',
+ cancelText: 'Close',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ await dispatch(cancelJob({ metalake: currentMetalake, jobId }))
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const getStatusColor = status => {
+ let color = ''
+ switch (status) {
+ case jobStatusEnum.queued:
+ color = 'default'
+ break
+ case jobStatusEnum.started:
+ color = token.colorPrimary
+ break
+ case jobStatusEnum.failed:
+ color = 'red'
+ break
+ case jobStatusEnum.succeeded:
+ color = 'green'
+ break
+ case jobStatusEnum.cancelling:
+ color = 'orange'
+ break
+ case jobStatusEnum.cancelled:
+ color = 'gray'
+ break
+ default:
+ color = 'default'
+ }
+
+ return color
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Job ID',
+ dataIndex: 'jobId',
+ key: 'jobId',
+ ellipsis: true,
+ width: 200
+ },
+ {
+ title: 'Status',
+ dataIndex: 'status',
+ key: 'status',
+ ellipsis: true,
+ width: 120,
+ filters: jobStatusEnum ? Object.values(jobStatusEnum).map(status => ({ text: status, value: status })) : [],
+ onFilter: (value, record) => record.status.indexOf(value) === 0,
+ render: (_, record, index) => {
+ const status = record.status
+ const color = getStatusColor(status)
+
+ return (
+ <Tag color={color} key={index}>
+ {status}
+ </Tag>
+ )
+ }
+ },
+ {
+ title: (
+ <span className='flex items-center justify-between'>
+ Template Name
+ <Tooltip title='Go to Job Template'>
+ <ArrowRightOutlined
+ className='cursor-pointer'
+ onClick={() => {
+ router.push(`/jobTemplates?metalake=${currentMetalake}`)
+ }}
+ />
+ </Tooltip>
+ </span>
+ ),
+ dataIndex: 'jobTemplateName',
+ key: 'jobTemplateName',
+ ellipsis: true,
+ width: 180,
+ render: (_, record) => (
+ <Link
+ href={`/jobTemplates?jobTemplateName=${record.jobTemplateName}&metalake=${currentMetalake}`}
+ title={record.jobTemplateName}
+ >
+ {record.jobTemplateName}
+ </Link>
+ )
+ },
+ {
+ title: 'Creator',
+ dataIndex: ['audit', 'creator'],
+ key: 'creator',
+ ellipsis: true
+ },
+ {
+ title: 'Create At',
+ dataIndex: ['audit', 'createTime'],
+ key: 'createTime',
+ ellipsis: true,
+ render: (_, record) => <>{formatToDateTime(record.audit.createTime)}</>
+ },
+ {
+ title: 'Actions',
+ key: 'actions',
+ width: 100,
+ render: (_, record) => {
+ const NameContext = createContext(record.jobId)
+
+ return (
+ <div className='flex gap-2'>
+ <NameContext.Provider value={record.jobId}>{contextHolder}</NameContext.Provider>
+ <a>
+ <Tooltip title='View Details'>
+ <Icons.Eye className='size-4' onClick={() => handleViewJobDetail(record.jobId)} />
+ </Tooltip>
+ </a>
+ {![
+ jobStatusEnum.succeeded,
+ jobStatusEnum.failed,
+ jobStatusEnum.cancelled,
+ jobStatusEnum.cancelling
+ ].includes(record.status) && (
+ <a>
+ <Tooltip title='Cancel Job'>
+ <Icons.CircleX className='size-4' onClick={() => showDeleteConfirm(NameContext, record.jobId)} />
+ </Tooltip>
+ </a>
+ )}
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <div className='h-full bg-white p-6'>
+ <Title level={2}>Jobs</Title>
+ <Paragraph type='secondary'>This table lists the jobs you have access to.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/2 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' onChange={onSearchTable} />
+ <Button
+ icon={<RedoOutlined />}
+ onClick={() => dispatch(fetchJobs({ metalake: currentMetalake }))}
+ className='w-fit'
+ >
+ Refresh
+ </Button>
+ <Button
+ type='primary'
+ icon={<PlusOutlined />}
+ onClick={() => handleCreateJob(store.jobTemplateNames || [])}
+ className='w-fit'
+ >
+ {store.jobTemplateNames?.length > 0 ? 'Run Job' : 'Register Job Template'}
+ </Button>
+ </div>
+ </Flex>
+ <Spin spinning={store.isJobsLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ {openDetailJob && (
+ <Drawer
+ title={`View Job ${currentJob?.jobId} Details`}
+ loading={jobDetailLoading}
+ onClose={onClose}
+ open={openDetailJob}
+ >
+ <>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Job ID</div>
+ <span className='break-words text-base'>{currentJob?.jobId}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Template Name</div>
+ <span className='break-words text-base'>{currentJob?.jobTemplateName}</span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Status</div>
+ <span className='break-words text-base'>
+ {<Tag color={getStatusColor(currentJob?.status || '')}>{currentJob?.status}</Tag>}
+ </span>
+ </div>
+ <div className='my-4'>
+ <div className='text-sm text-slate-400'>Details</div>
+ <div className='flex justify-between'>
+ <span className='text-sm'>Creator: </span>
+ <span className='text-sm'>{currentJob?.audit?.creator}</span>
+ </div>
+ <div className='flex justify-between'>
+ <span className='text-sm'>Created At: </span>
+ <span className='text-sm'>{formatToDateTime(currentJob?.audit?.createTime)}</span>
+ </div>
+ <div className='flex justify-between'>
+ <span className='text-sm'>Updated At: </span>
+ <span className='text-sm'>{formatToDateTime(currentJob?.audit?.lastModifiedTime)}</span>
+ </div>
+ </div>
+ </>
+ </Drawer>
+ )}
+ {open && (
+ <CreateJobDialog
+ open={open}
+ setOpen={setOpen}
+ metalake={currentMetalake}
+ router={router}
+ jobTemplateNames={store.jobTemplateNames}
+ />
+ )}
+ {openJobTemplate && (
+ <RegisterJobTemplateDialog open={openJobTemplate} setOpen={setOpenJobTemplate} metalake={currentMetalake} />
+ )}
+ </div>
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/layout.js b/web-v2/web/src/app/layout.js
new file mode 100644
index 0000000000..7b66d387ee
--- /dev/null
+++ b/web-v2/web/src/app/layout.js
@@ -0,0 +1,49 @@
+/*
+ * 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 { NavigationEvents } from './rootLayout/navigation-events'
+import Provider from '@/lib/provider'
+import Layout from './rootLayout/Layout'
+import '@/lib/styles/antdStyles/globals.css'
+import 'antd/dist/reset.css'
+import StyledToast from '@/components/StyledToast'
+
+export const metadata = {
+ title: 'Gravitino',
+ description: 'A high-performance, geo-distributed and federated metadata lake.',
+ icons: {
+ icon: process.env.NEXT_PUBLIC_BASE_PATH + '/icons/gravitino.svg'
+ }
+}
+
+const RootLayout = ({ children }) => {
+ return (
+ <html lang='en' suppressHydrationWarning>
+ <body>
+ <Provider>
+ <NavigationEvents />
+ <Layout>{children}</Layout>
+ </Provider>
+ <StyledToast />
+ </body>
+ </html>
+ )
+}
+
+export default RootLayout
diff --git a/web-v2/web/src/app/login/components/DefaultLogin.js b/web-v2/web/src/app/login/components/DefaultLogin.js
new file mode 100644
index 0000000000..a1df78df83
--- /dev/null
+++ b/web-v2/web/src/app/login/components/DefaultLogin.js
@@ -0,0 +1,119 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useRouter } from 'next/navigation'
+import { useEffect } from 'react'
+import { Button, Form, Input } from 'antd'
+
+import { useAppDispatch, useAppSelector } from '@/lib/hooks/useStore'
+import { loginAction, setIntervalIdAction, clearIntervalId, setAuthUser } from '@/lib/store/auth'
+
+function DefaultLogin() {
+ const router = useRouter()
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.auth)
+ const [form] = Form.useForm()
+
+ useEffect(() => {
+ if (store.intervalId) {
+ clearIntervalId()
+ }
+ }, [store.intervalId])
+
+ const onFinish = async values => {
+ if (store.authType === 'simple' && store.anthEnable) {
+ await dispatch(setAuthUser({ name: values.username, type: 'user' }))
+ router.push('/metalakes')
+ } else {
+ await dispatch(loginAction({ params: values, router }))
+ await dispatch(setIntervalIdAction())
+ }
+ }
+
+ return (
+ <Form
+ form={form}
+ layout='vertical'
+ autoComplete='off'
+ onFinish={onFinish}
+ initialValues={{
+ grant_type: 'client_credentials',
+ client_id: '',
+ client_secret: '',
+ scope: ''
+ }}
+ >
+ {store.authType === 'simple' && store.anthEnable ? (
+ <>
+ <Form.Item label='Username' name='username' rules={[{ required: true, message: 'Username is required' }]}>
+ <Input placeholder='Please enter your username' />
+ </Form.Item>
+ </>
+ ) : (
+ <>
+ <Form.Item
+ label='Grant Type'
+ name='grant_type'
+ rules={[{ required: true, message: 'Grant Type is required' }]}
+ className='mt-4'
+ >
+ <Input disabled placeholder='Please enter the grant type' />
+ </Form.Item>
+
+ <Form.Item
+ label='Client ID'
+ name='client_id'
+ rules={[{ required: true, message: 'Client ID is required' }]}
+ className='mt-4'
+ >
+ <Input placeholder='' />
+ </Form.Item>
+
+ <Form.Item
+ label='Client Secret'
+ name='client_secret'
+ rules={[{ required: true, message: 'Client Secret is required' }]}
+ className='mt-4'
+ >
+ <Input placeholder='' />
+ </Form.Item>
+
+ <Form.Item
+ label='Scope'
+ name='scope'
+ rules={[{ required: true, message: 'Scope is required' }]}
+ className='mt-4'
+ >
+ <Input placeholder='' />
+ </Form.Item>
+ </>
+ )}
+
+ <Form.Item className='mb-7 mt-12'>
+ <Button type='primary' htmlType='submit' block size='large'>
+ Login
+ </Button>
+ </Form.Item>
+ </Form>
+ )
+}
+
+export default DefaultLogin
diff --git a/web-v2/web/src/app/login/components/OidcLogin.js b/web-v2/web/src/app/login/components/OidcLogin.js
new file mode 100644
index 0000000000..635bbbe747
--- /dev/null
+++ b/web-v2/web/src/app/login/components/OidcLogin.js
@@ -0,0 +1,114 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { Alert, Button, Flex, Typography } from 'antd'
+import { useState, useEffect } from 'react'
+import { oauthProviderFactory } from '@/lib/auth/providers/factory'
+
+const { Text } = Typography
+
+function OidcLogin() {
+ const [isLoading, setIsLoading] = useState(true)
+ const [userManager, setUserManager] = useState(null)
+ const [error, setError] = useState(null)
+
+ useEffect(() => {
+ const initializeOidc = async () => {
+ try {
+ // Get the provider directly - it handles config fetching internally
+ const provider = await oauthProviderFactory.getProvider()
+
+ if (provider.getType() !== 'oidc') {
+ setError('OIDC provider not configured')
+ setIsLoading(false)
+
+ return
+ }
+
+ const sharedUserManager = provider.getUserManager()
+ if (!sharedUserManager) {
+ throw new Error('Failed to get UserManager from OIDC provider')
+ }
+
+ setUserManager(sharedUserManager)
+ setIsLoading(false)
+ } catch (error) {
+ setError(error.message || 'Failed to initialize OIDC')
+ setIsLoading(false)
+ }
+ }
+
+ initializeOidc()
+ }, [])
+
+ if (isLoading) {
+ return (
+ <Flex justify='center' className='my-4'>
+ <Text>Initializing authentication...</Text>
+ </Flex>
+ )
+ }
+
+ if (error) {
+ return (
+ <Flex justify='center' className='my-4'>
+ <Alert message={error} type='error' showIcon />
+ </Flex>
+ )
+ }
+
+ return (
+ <Flex vertical align='center' gap={24} className='mt-4'>
+ <OidcLoginButton userManager={userManager} />
+ </Flex>
+ )
+}
+
+function OidcLoginButton({ userManager }) {
+ const [isLoggingIn, setIsLoggingIn] = useState(false)
+
+ const handleLogin = async () => {
+ if (!userManager) {
+ return
+ }
+
+ try {
+ setIsLoggingIn(true)
+ await userManager.signinRedirect()
+ } catch (error) {
+ setIsLoggingIn(false)
+ }
+ }
+
+ return (
+ <Button
+ type='primary'
+ size='large'
+ onClick={handleLogin}
+ disabled={!userManager || isLoggingIn}
+ style={{ minWidth: 200, height: 48 }}
+ >
+ {isLoggingIn ? 'Redirecting...' : 'Sign In'}
+ </Button>
+ )
+}
+
+export default OidcLogin
diff --git a/web-v2/web/src/app/login/page.js b/web-v2/web/src/app/login/page.js
new file mode 100644
index 0000000000..2f08baedfa
--- /dev/null
+++ b/web-v2/web/src/app/login/page.js
@@ -0,0 +1,79 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import Image from 'next/image'
+import { Roboto } from 'next/font/google'
+import { Card, Flex, Typography } from 'antd'
+import { cn } from '@/lib/utils/tailwind'
+import { useEffect, useState } from 'react'
+
+import OidcLogin from './components/OidcLogin'
+import DefaultLogin from './components/DefaultLogin'
+import { oauthProviderFactory } from '@/lib/auth/providers/factory'
+import { resetMetalakeStore } from '@/lib/store/metalakes'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+const fonts = Roboto({ subsets: ['latin'], weight: ['400'], display: 'swap' })
+
+const { Title } = Typography
+
+const LoginPage = () => {
+ const [providerType, setProviderType] = useState(null)
+ const dispatch = useAppDispatch()
+
+ useEffect(() => {
+ const detectProviderType = async () => {
+ try {
+ const detectedType = await oauthProviderFactory.getProviderType()
+ setProviderType(detectedType)
+ } catch (error) {
+ setProviderType('default') // fallback to default provider
+ }
+ }
+
+ dispatch(resetMetalakeStore())
+ detectProviderType()
+ }, [])
+
+ const useOidcLogin = providerType === 'oidc'
+
+ return (
+ <Flex justify='center' align='center' style={{ minHeight: 'calc(100vh - 7rem)' }}>
+ <Card style={{ width: 480 }} styles={{ body: { padding: 48 } }}>
+ <Flex justify='center' align='center' className='mb-8'>
+ <Image
+ src={`${process.env.NEXT_PUBLIC_BASE_PATH ?? ''}/icons/gravitino.svg`}
+ width={24}
+ height={24}
+ alt='Gravitino Logo'
+ />
+ <Title level={4} className={cn('!mb-0 ml-2 text-black', fonts.className)}>
+ Gravitino
+ </Title>
+ </Flex>
+
+ {useOidcLogin ? <OidcLogin /> : <DefaultLogin />}
+ </Card>
+ </Flex>
+ )
+}
+
+export default LoginPage
diff --git a/web-v2/web/src/app/metadataObjectsForPolicy/page.js b/web-v2/web/src/app/metadataObjectsForPolicy/page.js
new file mode 100644
index 0000000000..f5aa24dd3d
--- /dev/null
+++ b/web-v2/web/src/app/metadataObjectsForPolicy/page.js
@@ -0,0 +1,167 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useMemo, useState, useEffect } from 'react'
+import { useRouter } from 'next/navigation'
+import { StopOutlined } from '@ant-design/icons'
+import { Flex, Input, Spin, Table, Tag, Tooltip, Typography, theme as antdTheme } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import { useSearchParams } from 'next/navigation'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { getPolicyDetails, associatePolicy } from '@/lib/store/policies'
+import { getMetadataObjectsForPolicy } from '@/lib/store/metalakes'
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function MetadataObjectsForPolicyPage() {
+ const [search, setSearch] = useState('')
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const policy = searchParams.get('policy') || ''
+ const router = useRouter()
+ const { token } = antdTheme.useToken()
+ const dispatch = useAppDispatch()
+ const [policyData, setPolicyData] = useState(null)
+ const [metaDatas, setMetaDatas] = useState([])
+ const [isLoading, setIsLoading] = useState(false)
+
+ useEffect(() => {
+ const initLoad = async () => {
+ setIsLoading(true)
+ const { payload: policyData } = await dispatch(getPolicyDetails({ metalake: currentMetalake, policy }))
+ const { payload: metaDatas } = await dispatch(getMetadataObjectsForPolicy({ metalake: currentMetalake, policy }))
+ setPolicyData(policyData)
+ setMetaDatas(metaDatas)
+ setIsLoading(false)
+ }
+ if (policy && currentMetalake) {
+ initLoad()
+ }
+ }, [policy, dispatch, currentMetalake])
+
+ const tableData = metaDatas
+ ?.filter(d => {
+ if (search === '') return true
+
+ return d.fullName.includes(search)
+ })
+ .map(metaData => {
+ return {
+ ...metaData,
+ key: metaData.fullName,
+ type: metaData.type
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const showDeleteConfirm = async object => {
+ await dispatch(
+ associatePolicy({
+ metalake: currentMetalake,
+ metadataObjectType: object.type,
+ metadataObjectFullName: object.fullName,
+ data: { policiesToRemove: [policy] }
+ })
+ )
+ const { payload: metaDatas } = await dispatch(getMetadataObjectsForPolicy({ metalake: currentMetalake, policy }))
+ setMetaDatas(metaDatas)
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Metadata Object Name',
+ dataIndex: 'fullName',
+ key: 'fullName',
+ ellipsis: true,
+ sorter: (a, b) => a.fullName.toLowerCase().localeCompare(b.fullName.toLowerCase()),
+ width: 300,
+ render: (_, record) => <span>{record.fullName}</span>
+ },
+ {
+ title: 'Type',
+ dataIndex: 'type',
+ key: 'type'
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ return (
+ <div className='flex gap-2'>
+ <a>
+ <Tooltip title='Remove Associate'>
+ <Icons.Delete className='size-4' onClick={() => showDeleteConfirm(record)} />
+ </Tooltip>
+ </a>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake, isLoading]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <div className='h-full bg-white p-6'>
+ <Title level={2} className='flex items-center gap-1'>
+ <Icons.Undo2 className='size-6 cursor-pointer' onClick={() => router.back()} />
+ Metadata Objects
+ <Tag
+ icon={!policyData?.enabled ? <StopOutlined style={{ color: 'white' }} /> : null}
+ color={policyData?.enabled ? token.colorPrimary : token.colorTextDisabled}
+ >
+ {policy}
+ </Tag>
+ </Title>
+ <Paragraph type='secondary'>This table lists the metadata objects associated with policy {policy}.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/4 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' onChange={onSearchTable} />
+ </div>
+ </Flex>
+ <Spin spinning={isLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ </div>
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/metadataObjectsForTag/page.js b/web-v2/web/src/app/metadataObjectsForTag/page.js
new file mode 100644
index 0000000000..161d95269c
--- /dev/null
+++ b/web-v2/web/src/app/metadataObjectsForTag/page.js
@@ -0,0 +1,160 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useMemo, useState, useEffect } from 'react'
+import { useRouter } from 'next/navigation'
+import { Flex, Input, Spin, Table, Tag, Tooltip, Typography } from 'antd'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import Icons from '@/components/Icons'
+import SectionContainer from '@/components/SectionContainer'
+import { useSearchParams } from 'next/navigation'
+import { getTagDetails, associateTag } from '@/lib/store/tags'
+import { getMetadataObjectsForTag } from '@/lib/store/metalakes'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+export default function MetadataObjectsForTagPage() {
+ const [search, setSearch] = useState('')
+ const router = useRouter()
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const tag = searchParams.get('tag')
+ const dispatch = useAppDispatch()
+ const [tagData, setTagData] = useState(null)
+ const [metaDatas, setMetaDatas] = useState([])
+ const [isLoading, setIsLoading] = useState(false)
+
+ useEffect(() => {
+ const initLoad = async () => {
+ setIsLoading(true)
+ const { payload: tagData } = await dispatch(getTagDetails({ metalake: currentMetalake, tag }))
+ const { payload: metaDatas } = await dispatch(getMetadataObjectsForTag({ metalake: currentMetalake, tag }))
+ setTagData(tagData)
+ setMetaDatas(metaDatas)
+ setIsLoading(false)
+ }
+ if (tag && currentMetalake) {
+ initLoad()
+ }
+ }, [tag, dispatch, currentMetalake])
+
+ const tableData = metaDatas
+ ?.filter(d => {
+ if (search === '') return true
+
+ return d.fullName.includes(search)
+ })
+ .map(metaData => {
+ return {
+ ...metaData,
+ key: metaData.fullName,
+ type: metaData.type
+ }
+ })
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const showDeleteConfirm = async object => {
+ await dispatch(
+ associateTag({
+ metalake: currentMetalake,
+ metadataObjectType: object.type,
+ metadataObjectFullName: object.fullName,
+ data: { tagsToRemove: [tag] }
+ })
+ )
+ const { payload: metaDatas } = await dispatch(getMetadataObjectsForTag({ metalake: currentMetalake, tag }))
+ setMetaDatas(metaDatas)
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Metadata Object Name',
+ dataIndex: 'fullName',
+ key: 'fullName',
+ ellipsis: true,
+ sorter: (a, b) => a.fullName.toLowerCase().localeCompare(b.fullName.toLowerCase()),
+ width: 300,
+ render: (_, record) => <span>{record.fullName}</span>
+ },
+ {
+ title: 'Type',
+ dataIndex: 'type',
+ key: 'type'
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 100,
+ render: (_, record) => {
+ return (
+ <div className='flex gap-2'>
+ <a>
+ <Tooltip title='Remove Associate'>
+ <Icons.Delete className='size-4' onClick={() => showDeleteConfirm(record)} />
+ </Tooltip>
+ </a>
+ </div>
+ )
+ }
+ }
+ ],
+ [currentMetalake, metaDatas]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <div className='h-full bg-white p-6'>
+ <Title level={2} className='flex items-center gap-1'>
+ <Icons.Undo2 className='size-6 cursor-pointer' onClick={() => router.back()} />
+ Metadata Objects
+ <Tag color={tagData?.properties?.['color']}>{tag}</Tag>
+ </Title>
+ <Paragraph type='secondary'>This table lists the metadata objects associated with tag {tag}.</Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/4 gap-4'>
+ <Search name='searchCatalogInput' placeholder='Search...' onChange={onSearchTable} />
+ </div>
+ </Flex>
+ <Spin spinning={isLoading}>
+ <Table
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ </Spin>
+ </div>
+ </SectionContainer>
+ )
+}
diff --git a/web-v2/web/src/app/metalakes/CreateMetalakeDialog.js b/web-v2/web/src/app/metalakes/CreateMetalakeDialog.js
new file mode 100644
index 0000000000..20c9e79339
--- /dev/null
+++ b/web-v2/web/src/app/metalakes/CreateMetalakeDialog.js
@@ -0,0 +1,166 @@
+/*
+ * 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 React, { useEffect, useState } from 'react'
+
+import { Form, Input, Modal, Select, Spin, Typography } from 'antd'
+import RenderPropertiesFormItem from '@/components/EntityPropertiesFormItem'
+import { validateMessages } from '@/config'
+import { nameRegex } from '@/lib/utils/regex'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { createMetalake, getMetalakeDetails, updateMetalake } from '@/lib/store/metalakes'
+import { genUpdates } from '@/lib/utils'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+const { Paragraph } = Typography
+const { TextArea } = Input
+
+const defaultValues = {
+ name: '',
+ comment: '',
+ properties: []
+}
+
+export default function CreateMetalakeDialog({ ...props }) {
+ const { open, setOpen, editMetalake, mutateMetalakes } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
+ const [cacheData, setCacheData] = useState()
+ const dispatch = useAppDispatch()
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ useEffect(() => {
+ if (open && editMetalake) {
+ const init = async () => {
+ setIsLoading(true)
+ try {
+ const { payload: metalake } = await dispatch(getMetalakeDetails({ metalake: editMetalake }))
+ setCacheData(metalake)
+ form.setFieldValue('name', metalake.name)
+ form.setFieldValue('comment', metalake.comment)
+ let index = 0
+ Object.entries(metalake.properties || {}).forEach(([key, value]) => {
+ form.setFieldValue(['properties', index, 'key'], key)
+ form.setFieldValue(['properties', index, 'value'], value)
+ index++
+ })
+ setIsLoading(false)
+ } catch (e) {
+ setIsLoading(false)
+ }
+ }
+ init()
+ }
+ }, [open, editMetalake])
+
+ // const { trigger: updateMetalake, isMutating: isUpdateMutating } = useUpdateMetalakeAsync()
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+
+ const submitData = {
+ name: values.name.trim(),
+ comment: values.comment,
+ properties: values.properties.reduce((acc, item) => {
+ acc[item.key] = values[item.key] || item.value
+
+ return acc
+ }, {})
+ }
+ if (editMetalake) {
+ // update metalake
+ const reqData = { updates: genUpdates(cacheData, submitData) }
+ await dispatch(updateMetalake({ name: cacheData.name, data: reqData }))
+ } else {
+ await dispatch(createMetalake({ ...submitData }))
+ }
+ setConfirmLoading(false)
+ setOpen(false)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <Modal
+ title={!editMetalake ? 'Create Metalake' : 'Edit Metalake'}
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ okButtonProps={{ loading: false, 'data-refer': 'submit-handle-metalake' }}
+ maskClosable={false}
+ keyboard={false}
+ width={800}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ cancelButtonProps={{ 'data-refer': 'cancel-handle-metalake' }}
+ >
+ <Paragraph type='secondary'>
+ {!editMetalake ? 'Create a new metalake' : `Edit metalake ${editMetalake}`}
+ </Paragraph>
+ <Spin spinning={isLoading}>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='metalakeForm'
+ validateMessages={validateMessages}
+ >
+ <Form.Item
+ name='name'
+ label='Name'
+ data-refer='metalake-name-field'
+ rules={[{ required: true }, { type: 'string', max: 64 }, { pattern: new RegExp(nameRegex) }]}
+ messageVariables={{ label: 'name' }}
+ >
+ <Input placeholder={validateMessages.pattern?.mismatch} />
+ </Form.Item>
+ <Form.Item name='comment' label='Comment' data-refer='metalake-comment-field'>
+ <TextArea />
+ </Form.Item>
+ <Form.Item label='Properties'>
+ <Form.List name='properties'>
+ {(fields, subOpt) => (
+ <RenderPropertiesFormItem fields={fields} subOpt={subOpt} form={form} isEdit={!!editMetalake} />
+ )}
+ </Form.List>
+ </Form.Item>
+ </Form>
+ </Spin>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/metalakes/layout.js b/web-v2/web/src/app/metalakes/layout.js
new file mode 100644
index 0000000000..a27e967021
--- /dev/null
+++ b/web-v2/web/src/app/metalakes/layout.js
@@ -0,0 +1,26 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+const MetalakesView = ({ children }) => {
+ return <>{children}</>
+}
+
+export default MetalakesView
diff --git a/web-v2/web/src/app/metalakes/page.js b/web-v2/web/src/app/metalakes/page.js
new file mode 100644
index 0000000000..8b8fcb17b5
--- /dev/null
+++ b/web-v2/web/src/app/metalakes/page.js
@@ -0,0 +1,400 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useCallback, useState, useMemo, useEffect, createContext } from 'react'
+import dynamic from 'next/dynamic'
+import Loading from '@/components/Loading'
+import SectionContainer from '@/components/SectionContainer'
+import { useRouter } from 'next/navigation'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { Button, Dropdown, Flex, Input, Modal, Popover, Space, Spin, Table, Tooltip, Typography } from 'antd'
+import { ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+import {
+ fetchMetalakes,
+ deleteMetalake,
+ resetTree,
+ switchMetalakeInUse,
+ resetMetalakeStore
+} from '@/lib/store/metalakes'
+import { to } from '@/lib/utils'
+import { formatToDateTime } from '@/lib/utils/date'
+import Icons from '@/components/Icons'
+import GetOwner from '@/components/GetOwner'
+import PropertiesContent from '@/components/PropertiesContent'
+
+const CreateMetalakeDialog = dynamic(() => import('./CreateMetalakeDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const SetOwnerDialog = dynamic(() => import('@/components/SetOwnerDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const ConfirmInput = dynamic(() => import('@/components/ConfirmInput'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const { Title, Paragraph } = Typography
+const { Search } = Input
+
+const MetalakeList = () => {
+ const [open, setOpen] = useState(false)
+ const [openOwner, setOpenOwner] = useState(false)
+ const [editMetalake, setEditMetalake] = useState('')
+ const [metadataObjectFullName, setMetadataObjectFullName] = useState('')
+ const router = useRouter()
+ const [modal, contextHolder] = Modal.useModal()
+ const [search, setSearch] = useState('')
+ const [ownerRefreshKey, setOwnerRefreshKey] = useState(0)
+ const auth = useAppSelector(state => state.auth)
+ const { serviceAdmins, authUser, anthEnable } = auth
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.metalakes)
+ const [tableData, setTableData] = useState([])
+
+ useEffect(() => {
+ dispatch(resetMetalakeStore())
+ dispatch(fetchMetalakes())
+ }, [dispatch])
+
+ useEffect(() => {
+ const filteredData = store.metalakes
+ .filter(i => i.name.toLowerCase().includes(search.toLowerCase()))
+ .map(i => ({ ...i, key: i.name }))
+
+ setTableData(filteredData)
+ }, [dispatch, store.metalakes, search])
+
+ const onSearchTable = e => {
+ const { value } = e.target
+ setSearch(value)
+ }
+
+ const handleCreateMetalake = () => {
+ setEditMetalake('')
+ setOpen(true)
+ }
+
+ const handleEditMetalake = metalake => {
+ setEditMetalake(metalake)
+ setOpen(true)
+ }
+
+ const handleToCatalogsPage = metalake => {
+ dispatch(resetTree())
+ router.push(`/catalogs?metalake=${metalake}&catalogType=relational`)
+ }
+
+ const handleSetOwner = metalake => {
+ setMetadataObjectFullName(metalake)
+ setOpenOwner(true)
+ }
+
+ const handleOwnerDialogClose = (open, refresh) => {
+ setOpenOwner(open)
+ if (refresh) setOwnerRefreshKey(k => k + 1)
+ }
+
+ const propertyContent = properties => <PropertiesContent properties={properties} />
+
+ const showDeleteConfirm = (NameContext, metalake, type, isInUse = false) => {
+ let confirmInput = ''
+ let validateFn = null
+
+ const setConfirmInput = value => {
+ confirmInput = value
+ }
+
+ const registerValidate = fn => {
+ validateFn = fn
+ }
+
+ modal.confirm({
+ title: `Are you sure to delete the ${type} ${metalake}?`,
+ icon: <ExclamationCircleFilled />,
+ content: (
+ <NameContext.Consumer>
+ {name => (
+ <ConfirmInput
+ name={name}
+ type={type}
+ setConfirmInput={setConfirmInput}
+ registerValidate={registerValidate}
+ isInUse={isInUse}
+ />
+ )}
+ </NameContext.Consumer>
+ ),
+ okText: 'Delete',
+ okType: 'danger',
+ cancelText: 'Cancel',
+ onOk(close) {
+ if (validateFn && !validateFn()) return
+
+ const confirmFn = async () => {
+ const [err, res] = await to(dispatch(deleteMetalake(metalake)))
+ if (err || !res) {
+ throw new Error(err)
+ }
+ close()
+ }
+ confirmFn()
+ }
+ })
+ }
+
+ const handleChangeInUse = async (metalakeObj, checked) => {
+ const [err, res] = await to(dispatch(switchMetalakeInUse({ name: metalakeObj.name, isInUse: checked })))
+ if (err || !res) {
+ throw new Error(err)
+ }
+ }
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Metalake Name',
+ dataIndex: 'name',
+ key: 'name',
+ ellipsis: true,
+ sorter: (a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
+ width: 300,
+ render: (_, record) => (
+ <div className='flex items-center gap-0.5'>
+ {record.properties?.['in-use'] === 'false' && (
+ <Tooltip title='Not In-Use'>
+ <Icons.BanIcon className='size-3 text-gray-400' />
+ </Tooltip>
+ )}
+ {record.properties?.['in-use'] === 'true' ? (
+ <a
+ data-refer={`metalake-link-${record.name}`}
+ className='hover:text-defaultPrimary'
+ onClick={() => handleToCatalogsPage(record.name)}
+ >
+ {record.name}
+ </a>
+ ) : (
+ <span>{record.name}</span>
+ )}
+ </div>
+ )
+ },
+ {
+ title: 'Creator',
+ dataIndex: ['audit', 'creator'],
+ key: 'creator',
+ ellipsis: true
+ },
+ ...(anthEnable
+ ? [
+ {
+ title: 'Owner',
+ key: 'owner',
+ width: 150,
+ render: (_, record) => (
+ <GetOwner
+ metalake={record.name}
+ metadataObjectType='metalake'
+ metadataObjectFullName={record.name}
+ refreshKey={ownerRefreshKey}
+ />
+ )
+ }
+ ]
+ : []),
+ {
+ title: 'Created At',
+ dataIndex: ['audit', 'createTime'],
+ sorter: (a, b) => new Date(a.audit.createTime).getTime() - new Date(b.audit.createTime).getTime(),
+ key: 'createTime',
+ ellipsis: true,
+ width: 200,
+ render: (_, record) => <>{formatToDateTime(record.audit.createTime)}</>
+ },
+ {
+ title: 'Properties',
+ dataIndex: 'properties',
+ key: 'properties',
+ ellipsis: true,
+ width: 100,
+ render: (_, record) => (
+ <>
+ {record.properties && Object.keys(record.properties).length > 0 ? (
+ <Popover
+ key={record.key}
+ placement='bottom'
+ title={<span>Properties</span>}
+ content={propertyContent(record.properties)}
+ >
+ <a className='text-defaultPrimary'>{Object.keys(record.properties)?.length}</a>
+ </Popover>
+ ) : (
+ <span>0</span>
+ )}
+ </>
+ )
+ },
+ {
+ title: 'Comment',
+ dataIndex: 'comment',
+ key: 'comment',
+ ellipsis: true
+ },
+ {
+ title: 'Actions',
+ key: 'action',
+ width: 150,
+ render: (_, record) => {
+ const NameContext = createContext(record.name)
+
+ return (
+ <div className='flex gap-2' key={record.name}>
+ <NameContext.Provider value={record.name}>{contextHolder}</NameContext.Provider>
+ {([...(serviceAdmins || '').split(',')].includes(authUser?.name) || !authUser) && (
+ <a data-refer={`edit-metalake-${record.name}`}>
+ <Tooltip title='Edit'>
+ <Icons.Pencil className='size-4' onClick={() => handleEditMetalake(record.name)} />
+ </Tooltip>
+ </a>
+ )}
+ <a data-refer={`delete-metalake-${record.name}`}>
+ <Tooltip title='Delete'>
+ <Icons.Trash2Icon
+ className='size-4'
+ onClick={() =>
+ showDeleteConfirm(NameContext, record.name, 'metalake', record.properties?.['in-use'] === 'true')
+ }
+ />
+ </Tooltip>
+ </a>
+ <Dropdown
+ menu={{
+ items: anthEnable
+ ? [
+ {
+ label: 'Set Owner',
+ key: 'setOwner'
+ },
+ {
+ label: record.properties?.['in-use'] === 'true' ? 'Not In-Use' : 'In-Use',
+ key: record.properties?.['in-use'] === 'true' ? 'notInUse' : 'inUse'
+ }
+ ]
+ : [
+ {
+ label: record.properties?.['in-use'] === 'true' ? 'Not In-Use' : 'In-Use',
+ key: record.properties?.['in-use'] === 'true' ? 'notInUse' : 'inUse'
+ }
+ ],
+ onClick: ({ key }) => {
+ switch (key) {
+ case 'setOwner':
+ handleSetOwner(record.name)
+ break
+ case 'inUse':
+ handleChangeInUse(record, true)
+ break
+ case 'notInUse':
+ handleChangeInUse(record, false)
+ break
+ }
+ }
+ }}
+ trigger={['hover']}
+ >
+ <Tooltip title='Settings'>
+ <a data-refer={`settings-metalake-${record.name}`} onClick={e => e.preventDefault()}>
+ <Icons.Settings className='size-4' />
+ </a>
+ </Tooltip>
+ </Dropdown>
+ </div>
+ )
+ }
+ }
+ ],
+ [anthEnable, ownerRefreshKey]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <SectionContainer classProps='block'>
+ <div className='h-full bg-white p-6'>
+ <Title level={2} data-refer='metalake-page-title'>
+ Metalakes
+ </Title>
+ <Paragraph type='secondary'>
+ A metalake is the top-level container for data in Gravitino. Within a metalake, Gravitino provides a 3-level
+ namespace for organizing data: catalog, schemas/databases, and tables/views.
+ </Paragraph>
+ <Flex justify='flex-end' className='mb-4'>
+ <div className='flex w-1/3 gap-4'>
+ <Search
+ data-refer='query-metalake'
+ name='searchCatalogInput'
+ placeholder='Search...'
+ onChange={onSearchTable}
+ />
+ {([...(serviceAdmins || '').split(',')].includes(authUser?.name) || !anthEnable) && (
+ <Button
+ data-refer='create-metalake-btn'
+ type='primary'
+ icon={<PlusOutlined />}
+ onClick={handleCreateMetalake}
+ >
+ Create Metalake
+ </Button>
+ )}
+ </div>
+ </Flex>
+ <Table
+ data-refer='metalake-table-grid'
+ style={{ maxHeight: 'calc(100vh - 25rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 30rem)' }}
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ pagination={{ position: ['bottomCenter'], showSizeChanger: true }}
+ />
+ {open && <CreateMetalakeDialog open={open} setOpen={setOpen} editMetalake={editMetalake} />}
+ {openOwner && (
+ <SetOwnerDialog
+ open={openOwner}
+ setOpen={(v, isRefresh) => handleOwnerDialogClose(v, isRefresh)}
+ metalake={metadataObjectFullName}
+ metadataObjectType={'metalake'}
+ metadataObjectFullName={metadataObjectFullName}
+ />
+ )}
+ </div>
+ </SectionContainer>
+ )
+}
+
+export default MetalakeList
diff --git a/web-v2/web/src/app/oauth/callback/page.js b/web-v2/web/src/app/oauth/callback/page.js
new file mode 100644
index 0000000000..2166f5ac21
--- /dev/null
+++ b/web-v2/web/src/app/oauth/callback/page.js
@@ -0,0 +1,74 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useEffect } from 'react'
+import { Flex, Spin, Typography } from 'antd'
+import { oauthProviderFactory } from '@/lib/auth/providers/factory'
+
+const { Title, Text } = Typography
+
+export default function OAuthCallback() {
+ useEffect(() => {
+ handleCallback()
+ }, [])
+
+ const handleCallback = async () => {
+ try {
+ // Get the OIDC provider and its UserManager
+ const provider = await oauthProviderFactory.getProvider()
+ const userManager = provider.getUserManager()
+
+ if (!userManager) {
+ throw new Error('OIDC UserManager not available. Please try logging in again.')
+ }
+
+ // Complete the signin process
+ const user = await userManager.signinRedirectCallback()
+ window.location.href = process.env.NEXT_PUBLIC_BASE_PATH + '/metalakes'
+ } catch (error) {
+ console.error('OAuth callback failed:', error)
+
+ // Clear any corrupted OIDC state from UserManager
+ try {
+ const provider = await oauthProviderFactory.getProvider()
+ if (provider && provider.clearAuthData) {
+ await provider.clearAuthData()
+ }
+ } catch (clearError) {
+ console.error('Provider cleanup failed during error handling:', clearError)
+ }
+
+ // Redirect to login with error
+ const errorMessage = encodeURIComponent(error.message || 'Authentication failed')
+ window.location.href = `${process.env.NEXT_PUBLIC_BASE_PATH}/login?error=${errorMessage}`
+ }
+ }
+
+ return (
+ <Flex vertical align='center' justify='center' gap={16} style={{ minHeight: '100vh' }}>
+ <Spin size='large' />
+ <Title level={4} style={{ margin: 0 }}>
+ Processing authentication...
+ </Title>
+ <Text type='secondary'>Please wait while we complete your login.</Text>
+ </Flex>
+ )
+}
diff --git a/web-v2/web/src/app/oauth/logout/page.js b/web-v2/web/src/app/oauth/logout/page.js
new file mode 100644
index 0000000000..e1b6fa1743
--- /dev/null
+++ b/web-v2/web/src/app/oauth/logout/page.js
@@ -0,0 +1,69 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useEffect } from 'react'
+import { useRouter } from 'next/navigation'
+import { Flex, Spin, Typography } from 'antd'
+import { oauthProviderFactory } from '@/lib/auth/providers/factory'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { logoutAction } from '@/lib/store/auth'
+
+const { Title, Text } = Typography
+
+export default function OAuthLogout() {
+ const router = useRouter()
+ const dispatch = useAppDispatch()
+
+ useEffect(() => {
+ const handleLogoutCallback = async () => {
+ try {
+ // Get the OIDC provider for logout callback processing
+ const provider = await oauthProviderFactory.getProvider()
+
+ if (provider && provider.getUserManager) {
+ const userManager = provider.getUserManager()
+
+ if (userManager) {
+ // Complete the OIDC signout redirect callback
+ await userManager.signoutRedirectCallback()
+ }
+ }
+ } catch (error) {
+ console.warn('OIDC logout callback failed:', error)
+ } finally {
+ // Use centralized logout action for complete cleanup
+ dispatch(logoutAction({ router }))
+ }
+ }
+
+ handleLogoutCallback()
+ }, [dispatch, router])
+
+ return (
+ <Flex vertical align='center' justify='center' gap={16} style={{ minHeight: '100vh' }}>
+ <Spin size='large' />
+ <Title level={4} style={{ margin: 0 }}>
+ Logging out...
+ </Title>
+ <Text type='secondary'>Please wait while we complete your logout.</Text>
+ </Flex>
+ )
+}
diff --git a/web-v2/web/src/app/oauth/silent-callback/page.js b/web-v2/web/src/app/oauth/silent-callback/page.js
new file mode 100644
index 0000000000..cc8307bd5b
--- /dev/null
+++ b/web-v2/web/src/app/oauth/silent-callback/page.js
@@ -0,0 +1,43 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useEffect } from 'react'
+import { UserManager, WebStorageStateStore } from 'oidc-client-ts'
+
+export default function SilentCallback() {
+ useEffect(() => {
+ handleSilentCallback()
+ }, [])
+
+ const handleSilentCallback = async () => {
+ try {
+ const userManager = new UserManager({
+ userStore: new WebStorageStateStore({ store: window.localStorage })
+ })
+ await userManager.signinSilentCallback()
+ } catch (error) {
+ // Silent callback failed, fall back to normal login
+ window.parent.postMessage({ type: 'SILENT_CALLBACK_ERROR', error: error.message }, window.location.origin)
+ }
+ }
+
+ return null // This page should be invisible
+}
diff --git a/web-v2/web/src/app/page.js b/web-v2/web/src/app/page.js
new file mode 100644
index 0000000000..872e68a770
--- /dev/null
+++ b/web-v2/web/src/app/page.js
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+export default function Home() {
+ return <></>
+}
diff --git a/web-v2/web/src/app/rootLayout/Footer.js b/web-v2/web/src/app/rootLayout/Footer.js
new file mode 100644
index 0000000000..79784f8f14
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/Footer.js
@@ -0,0 +1,68 @@
+/*
+ * 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 Link from 'next/link'
+
+const Footer = props => {
+ return (
+ <footer className='sticky bottom-0 z-40 bg-slate-800 text-slate-100 py-4 text-center leading-4'>
+ <div className='container flex items-center justify-between'>
+ <span>
+ ©{new Date().getFullYear()}
+ <Link
+ className={'no-underline hover:text-defaultPrimary ml-2'}
+ target='_blank'
+ href='https://gravitino.apache.org/'
+ data-refer='footer-link-gravitino'
+ >
+ ASF
+ </Link>
+ </span>
+ <span className='flex gap-2'>
+ <Link
+ className={'no-underline hover:text-defaultPrimary'}
+ target='_blank'
+ href='https://github.com/apache/gravitino/blob/main/LICENSE'
+ data-refer='footer-link-license'
+ >
+ License
+ </Link>
+ <Link
+ className={'no-underline hover:text-defaultPrimary'}
+ target='_blank'
+ href='https://gravitino.apache.org/docs/latest/'
+ data-refer='footer-link-docs'
+ >
+ Documentation
+ </Link>
+ <Link
+ className={'no-underline hover:text-defaultPrimary'}
+ target='_blank'
+ href='https://github.com/apache/gravitino/issues'
+ data-refer='footer-link-support'
+ >
+ Support
+ </Link>
+ </span>
+ </div>
+ </footer>
+ )
+}
+
+export default Footer
diff --git a/web-v2/web/src/app/rootLayout/GitHubInfo.js b/web-v2/web/src/app/rootLayout/GitHubInfo.js
new file mode 100644
index 0000000000..1248b1a49f
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/GitHubInfo.js
@@ -0,0 +1,77 @@
+/*
+ * 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 Link from 'next/link'
+import { Dropdown } from 'antd'
+import { useAppSelector } from '@/lib/hooks/useStore'
+import Icons from '@/components/Icons'
+
+const GitHubInfo = () => {
+ const githubUrl = 'https://github.com/apache/gravitino'
+ const githubForkUrl = 'https://github.com/apache/gravitino/fork'
+ const githubLogoUrl = (process.env.NEXT_PUBLIC_BASE_PATH ?? '') + '/icons/github-mark.svg'
+ const forkLogoUrl = (process.env.NEXT_PUBLIC_BASE_PATH ?? '') + '/icons/git-fork.svg'
+ const store = useAppSelector(state => state.sys)
+
+ // Hide component if GitHub API request failed
+ if (store.githubError) {
+ return null
+ }
+
+ const dropdownItems = [
+ {
+ key: 'fork',
+ label: (
+ <a
+ href={githubForkUrl}
+ target='_blank'
+ rel='noopener noreferrer'
+ className='no-underline flex items-center justify-center'
+ >
+ <Icons.GitFork className={'text-customs-black size-4'} />
+ <span className='ml-2'>{store.forks} Forks</span>
+ </a>
+ )
+ },
+ {
+ key: 'stars',
+ label: (
+ <a
+ href={githubUrl}
+ target='_blank'
+ rel='noopener noreferrer'
+ className='no-underline flex items-center justify-center'
+ >
+ <Icons.Star className={'text-customs-black size-4'} />
+ <span className='ml-2'>{store.stars} Stars</span>
+ </a>
+ )
+ }
+ ]
+
+ return (
+ <Dropdown menu={{ items: dropdownItems }} trigger={['hover']} placement='bottomLeft'>
+ <div role={'button'} tabIndex={0} className='cursor-pointer rounded p-1.5 hover:bg-slate-700'>
+ <Icons.iconify icon='octicon:mark-github-24' className='size-6' />
+ </div>
+ </Dropdown>
+ )
+}
+
+export default GitHubInfo
diff --git a/web-v2/web/src/app/rootLayout/Layout.js b/web-v2/web/src/app/rootLayout/Layout.js
new file mode 100644
index 0000000000..97af296910
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/Layout.js
@@ -0,0 +1,47 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { App, Layout } from 'antd'
+import { SiteHeader } from './SiteHeader'
+import Footer from './Footer'
+import Loading from '@/components/Loading'
+import ScrollToTop from './ScrollToTop'
+import dynamic from 'next/dynamic'
+
+const DynamicMainContent = dynamic(() => import('./MainContent'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+const AppLayout = ({ children, scrollToTop = true }) => {
+ return (
+ <App>
+ <Layout className='min-h-screen text-clip'>
+ <SiteHeader />
+ <DynamicMainContent className='relative grow'>{children}</DynamicMainContent>
+ <Footer />
+ {scrollToTop && <ScrollToTop />}
+ </Layout>
+ </App>
+ )
+}
+
+export default AppLayout
diff --git a/web-v2/web/src/app/rootLayout/MainContent.js b/web-v2/web/src/app/rootLayout/MainContent.js
new file mode 100644
index 0000000000..f9a700cd4a
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/MainContent.js
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+
+const MainContent = ({ children }) => {
+ return <main className='relative grow'>{children}</main>
+}
+
+export default MainContent
diff --git a/web-v2/web/src/app/rootLayout/MainNav.js b/web-v2/web/src/app/rootLayout/MainNav.js
new file mode 100644
index 0000000000..8294906669
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/MainNav.js
@@ -0,0 +1,191 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { useEffect, useState } from 'react'
+import Link from 'next/link'
+import { useRouter } from 'next/navigation'
+import { ConfigProvider, Menu } from 'antd'
+import Icons from '@/components/Icons'
+import { ROUTES } from '@/config/routes'
+import { usePathname, useSearchParams } from 'next/navigation'
+
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { getCurrentEntityOwner } from '@/lib/store/metalakes'
+import { to } from '@/lib/utils'
+
+export function MainNav() {
+ const [NavItems, setItems] = useState([])
+ const router = useRouter()
+ const pathname = usePathname()
+ const [current, setCurrent] = useState(pathname)
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const auth = useAppSelector(state => state.auth)
+ const sys = useAppSelector(state => state.sys)
+ const { anthEnable, authUser } = auth
+ const dispatch = useAppDispatch()
+
+ useEffect(() => {
+ const init = async () => {
+ if (pathname === '/metalakes' && !searchParams.get('metalake')) {
+ setItems([
+ {
+ key: ROUTES.Metalakes,
+ icon: <Icons.iconify icon='carbon:cloudy' className='my-icon' />,
+ label: 'Metalakes'
+ }
+ ])
+ } else {
+ const items = [
+ {
+ key: ROUTES.Catalogs,
+ icon: <Icons.iconify icon='carbon:catalog' className='my-icon' />,
+ label: 'Catalogs'
+ },
+ {
+ key: ROUTES.Jobs,
+ icon: <Icons.iconify icon='carbon:job-run' className='my-icon' />,
+ label: 'Jobs'
+ },
+ {
+ key: ROUTES.Compliance,
+ icon: <Icons.iconify icon='carbon:ibm-cloud-security-compliance-center' className='my-icon' />,
+ label: 'Data Compliance',
+ children: [
+ {
+ key: ROUTES.Tags,
+ label: 'Tags'
+ },
+ {
+ key: ROUTES.Policies,
+ label: 'Policies'
+ },
+ {
+ key: ROUTES.RowFilters,
+ label: 'Row Filters',
+ disabled: true
+ },
+ {
+ key: ROUTES.ColumnMasks,
+ label: 'Column Masks',
+ disabled: true
+ }
+ ]
+ }
+ ]
+
+ if (anthEnable && currentMetalake) {
+ const [resError, res] = await to(
+ dispatch(
+ getCurrentEntityOwner({
+ metalake: currentMetalake,
+ metadataObjectType: 'metalake',
+ metadataObjectFullName: currentMetalake
+ })
+ )
+ )
+ const ownerData = res?.payload?.owner
+ if (anthEnable || (authUser && authUser.name === ownerData?.name)) {
+ items.push({
+ key: ROUTES.Access,
+ icon: <Icons.iconify icon='la:users-cog' className='my-icon' />,
+ label: 'Access',
+ children: [
+ {
+ key: ROUTES.Users,
+ label: 'Users'
+ },
+ {
+ key: ROUTES.UserGroups,
+ label: 'User Groups'
+ },
+ {
+ key: ROUTES.Roles,
+ label: 'Roles'
+ }
+ ]
+ })
+ }
+ }
+ setItems(items)
+ }
+ if (currentMetalake) {
+ if (pathname.startsWith('/catalogs')) {
+ setCurrent(ROUTES.Catalogs)
+ } else {
+ setCurrent(pathname)
+ }
+ } else {
+ setCurrent(ROUTES.Metalakes)
+ }
+ }
+ init()
+ }, [pathname, anthEnable, authUser, currentMetalake])
+
+ const onClick = menuItem => {
+ setCurrent(menuItem.key)
+ if (menuItem.key === ROUTES.Catalogs) {
+ router.push(`/catalogs?metalake=${currentMetalake}&catalogType=relational`)
+ } else {
+ router.push(currentMetalake ? `${menuItem.key}?metalake=${currentMetalake}` : menuItem.key)
+ }
+ }
+
+ return (
+ <div className='flex w-full items-center gap-4'>
+ <Link href='/metalakes'>
+ <div className='group flex items-center space-x-2'>
+ <Icons.gravitino className='size-8 group-hover:text-slate-100) text-white' />
+ <span className='hidden text-base font-bold sm:inline-block text-slate-100'>Gravitino</span>
+ <span id='gravitino_version' className='hidden font-sans sm:inline-block text-slate-100'>
+ {sys.version}
+ </span>
+ </div>
+ </Link>
+ {pathname !== '/login' && pathname !== '/ui/login' && (
+ <ConfigProvider
+ theme={{
+ components: {
+ Menu: {
+ horizontalLineHeight: '4rem',
+ iconMarginInlineEnd: 8,
+ fontSize: 16,
+ darkItemSelectedBg: '#334155',
+ darkPopupBg: '#2b3748',
+ darkItemColor: '#f1f5f9',
+ activeBarHeight: 2
+ }
+ }
+ }}
+ >
+ <Menu
+ theme={'dark'}
+ className='h-full min-w-0 flex-auto items-stretch border-0 bg-slate-800'
+ onClick={onClick}
+ selectedKeys={[current]}
+ mode='horizontal'
+ items={NavItems}
+ />
+ </ConfigProvider>
+ )}
+ </div>
+ )
+}
diff --git a/web-v2/web/src/app/rootLayout/ScrollToTop.js b/web-v2/web/src/app/rootLayout/ScrollToTop.js
new file mode 100644
index 0000000000..8b0c5f0065
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/ScrollToTop.js
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { FloatButton } from 'antd'
+
+const ScrollToTop = () => {
+ return <FloatButton.BackTop visibilityHeight={400} />
+}
+
+export default ScrollToTop
diff --git a/web-v2/web/src/app/rootLayout/SiteHeader.js b/web-v2/web/src/app/rootLayout/SiteHeader.js
new file mode 100644
index 0000000000..a6133f23ca
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/SiteHeader.js
@@ -0,0 +1,129 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { useState, useEffect } from 'react'
+import { cn } from '@/lib/utils/tailwind'
+import { MainNav } from './MainNav'
+import UserSetting from './UserSetting'
+import { usePathname, useSearchParams, useRouter } from 'next/navigation'
+import { Tooltip } from 'antd'
+import Icons from '@/components/Icons'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { fetchMetalakes } from '@/lib/store/metalakes'
+import GitHubInfo from './GitHubInfo'
+
+export function SiteHeader() {
+ const pathname = usePathname()
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const router = useRouter()
+
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.metalakes)
+
+ useEffect(() => {
+ if (pathname && !['/', '/ui', '/login', '/ui/login', '/oauth/callback', '/ui/oauth/callback'].includes(pathname)) {
+ dispatch(fetchMetalakes())
+ }
+ }, [dispatch, pathname])
+
+ // Ensure URL has sensible defaults when missing:
+ // - When not on `/metalakes` and `metalake` query is missing/empty/"undefined",
+ // fill it with the first metalake from store.
+ // - When on `/catalogs` and `catalogType` query is missing/empty/"undefined",
+ // default to `relational`.
+ useEffect(() => {
+ try {
+ if (store.metalakes.length === 0) {
+ return
+ }
+
+ const metalakeParam = searchParams.get('metalake')
+ const catalogTypeParam = searchParams.get('catalogType')
+
+ // helper to create a new search string preserving other params
+ const makeNewSearch = newParams => {
+ const params = new URLSearchParams(Array.from(searchParams.entries()))
+ Object.keys(newParams).forEach(k => params.set(k, newParams[k]))
+
+ return params.toString()
+ }
+
+ // If we're not on the metalakes list page and metalake is missing, fill it
+ if (!['/', '/ui', '/metalakes', '/ui/metalakes', '/login', '/ui/login'].includes(pathname) && !metalakeParam) {
+ const first = store.metalakes[0].name || ''
+ if (first) {
+ const qs = makeNewSearch({ metalake: first })
+ router.replace(`${pathname}${qs ? `?${qs}` : ''}`)
+
+ return
+ }
+ }
+
+ // If we're on catalogs route and catalogType is missing, default it
+ if ((pathname.startsWith('/catalogs') || pathname.startsWith('/ui/catalogs')) && !catalogTypeParam) {
+ const qs = makeNewSearch({ catalogType: 'relational' })
+ router.replace(`${pathname}${qs ? `?${qs}` : ''}`)
+ }
+ } catch (e) {
+ // swallow errors silently (non-critical)
+ }
+
+ // Intentionally only run when pathname/searchParams/store.metalakes change
+ }, [pathname, searchParams?.toString?.(), store.metalakes])
+
+ const handleSystemMode = () => {
+ const metalake = currentMetalake || (store.metalakes.length > 0 ? store.metalakes[0].name : '')
+ if (pathname === '/metalakes') {
+ router.push(`/catalogs?metalake=${metalake}&catalogType=relational`)
+ } else {
+ router.push(`/metalakes`)
+ }
+ }
+
+ return (
+ <header className='sticky top-0 z-40 w-full border-b border-b-[color:theme(colors.borderWhite)] bg-slate-800 text-white'>
+ <div className='container flex h-16 items-stretch space-x-4 md:justify-between md:space-x-0'>
+ <MainNav />
+ <div className='flex flex-1 items-center justify-end space-x-4'>
+ <nav className='flex items-center space-x-1'>
+ <GitHubInfo />
+ {pathname !== '/login' && pathname !== '/ui/login' && (
+ <>
+ <div
+ className={cn('cursor-pointer rounded p-1.5 hover:bg-slate-700', {
+ 'bg-gray-100 shadow-inner': pathname === '/metalakes' || pathname === '/ui/metalakes',
+ 'bg-slate-700': pathname === '/metalakes' || pathname === '/ui/metalakes'
+ })}
+ >
+ <Tooltip title='System Mode'>
+ <Icons.Settings onClick={handleSystemMode} className='size-6' />
+ </Tooltip>
+ </div>
+ <UserSetting />
+ </>
+ )}
+ </nav>
+ </div>
+ </div>
+ </header>
+ )
+}
diff --git a/web-v2/web/src/app/rootLayout/UserSetting.js b/web-v2/web/src/app/rootLayout/UserSetting.js
new file mode 100644
index 0000000000..dbbe97e962
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/UserSetting.js
@@ -0,0 +1,171 @@
+/*
+ * 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 { useEffect, useMemo, useState } from 'react'
+
+import dynamic from 'next/dynamic'
+import { LogoutOutlined, PlusOutlined, UserOutlined } from '@ant-design/icons'
+import { Avatar, Dropdown, Tooltip } from 'antd'
+import { usePathname, useSearchParams, useRouter } from 'next/navigation'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import Loading from '@/components/Loading'
+import { fetchMetalakes, resetMetalakeStore } from '@/lib/store/metalakes'
+import { resetRolesStore } from '@/lib/store/roles'
+import { logoutAction } from '@/lib/store/auth'
+import { oauthProviderFactory } from '@/lib/auth/providers/factory'
+
+const CreateMetalakeDialog = dynamic(() => import('@/app/metalakes/CreateMetalakeDialog'), {
+ loading: () => <Loading />,
+ ssr: false
+})
+
+export default function UserSetting() {
+ const [openCreateMeta, setOpenCreateMeta] = useState(false)
+ const [showLogoutButton, setShowLogoutButton] = useState(false)
+ const auth = useAppSelector(state => state.auth)
+ const { serviceAdmins, authUser, anthEnable } = auth
+ const [session, setSession] = useState({})
+ const router = useRouter()
+ const pathname = usePathname()
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.metalakes)
+
+ useEffect(() => {
+ if (pathname && !['/', '/ui', '/login', '/ui/login', '/oauth/callback', '/ui/oauth/callback'].includes(pathname)) {
+ dispatch(fetchMetalakes())
+ }
+ }, [dispatch, pathname])
+
+ const handleCreateMetalake = () => {
+ setOpenCreateMeta(true)
+ }
+
+ const handleLogout = () => {
+ dispatch(logoutAction({ router }))
+ }
+
+ const items = useMemo(
+ () => [
+ ...(authUser?.name
+ ? [
+ {
+ key: 'profile',
+ label: authUser?.name,
+ icon: <UserOutlined style={{ fontSize: 16 }} />,
+ className: 'cursor-default pointer-events-none'
+ },
+ {
+ key: 'divider1',
+ type: 'divider'
+ }
+ ]
+ : []),
+ {
+ key: 'metalakes',
+ type: 'group',
+ label: (
+ <div className='flex w-[208px] justify-between'>
+ <span>Metalakes</span>
+ {[...(serviceAdmins || '').split(',')].includes(authUser?.name) && (
+ <Tooltip title='Create Metalake'>
+ <PlusOutlined className='cursor-pointer text-black' onClick={handleCreateMetalake} />
+ </Tooltip>
+ )}
+ </div>
+ ),
+ children:
+ store.metalakes.map(metalake => ({
+ key: metalake.name,
+ label: (
+ <div
+ data-refer={`select-option-${metalake.name}`}
+ className='flex w-[200px] justify-between'
+ onClick={() => {
+ const isCatalogsPage = pathname.includes('/catalogs')
+
+ // If on catalogs page, check if metalake is in-use
+ if (isCatalogsPage && metalake.properties['in-use'] !== 'true') {
+ return
+ }
+
+ // Build new searchParams with updated metalake, preserving other params
+ const params = new URLSearchParams(searchParams.toString())
+ params.set('metalake', metalake.name)
+
+ // Reset metalake store to avoid data inconsistency
+ dispatch(resetMetalakeStore({ isCacheMetalakes: true }))
+ dispatch(resetRolesStore())
+
+ // Preserve pathname and only update metalake in query string, catalogs page goes to catalogs route
+ isCatalogsPage
+ ? router.push(`/catalogs?metalake=${metalake.name}&catalogType=relational`)
+ : router.push(`${pathname}?${params.toString()}`)
+ }}
+ >
+ <span
+ className={cn('cursor-pointer text-black', {
+ 'text-defaultPrimary': currentMetalake === metalake.name,
+ 'opacity-50 cursor-not-allowed': metalake.properties['in-use'] !== 'true'
+ })}
+ >
+ {metalake.name}
+ </span>
+ </div>
+ )
+ })) || []
+ },
+ ...(anthEnable
+ ? [
+ {
+ key: 'divider2',
+ type: 'divider'
+ },
+ {
+ key: 'logout',
+ label: 'Logout',
+ icon: <LogoutOutlined style={{ fontSize: 16 }} />,
+ onClick: handleLogout
+ }
+ ]
+ : [])
+ ],
+ [authUser, serviceAdmins, store.metalakes, currentMetalake, anthEnable, searchParams]
+ )
+
+ return (
+ <>
+ <Dropdown
+ menu={{ items }}
+ overlayClassName='[&_.ant-dropdown-menu-item-group-list]:max-h-[300px] [&_.ant-dropdown-menu-item-group-list]:overflow-y-auto'
+ >
+ <div role={'button'} tabIndex={0} data-refer='select-metalake'>
+ <Avatar
+ shape='square'
+ icon={<UserOutlined />}
+ className='bg-slate-800 hover:bg-slate-700 text-slate-100 !rounded size-8'
+ />
+ </div>
+ </Dropdown>
+ {openCreateMeta && <CreateMetalakeDialog open={openCreateMeta} setOpen={setOpenCreateMeta} />}
+ </>
+ )
+}
diff --git a/web-v2/web/src/app/rootLayout/navigation-events.js b/web-v2/web/src/app/rootLayout/navigation-events.js
new file mode 100644
index 0000000000..887b902617
--- /dev/null
+++ b/web-v2/web/src/app/rootLayout/navigation-events.js
@@ -0,0 +1,35 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useEffect } from 'react'
+
+import { usePathname, useSearchParams } from 'next/navigation'
+
+export function NavigationEvents() {
+ const pathname = usePathname()
+ const searchParams = useSearchParams()
+
+ useEffect(() => {
+ const url = `${pathname}?${searchParams}`
+ }, [pathname, searchParams])
+
+ return null
+}
diff --git a/web-v2/web/src/app/template.js b/web-v2/web/src/app/template.js
new file mode 100644
index 0000000000..f28fcb540a
--- /dev/null
+++ b/web-v2/web/src/app/template.js
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+
+const Template = ({ children }) => {
+ return <div className={'root-template h-full'}>{children}</div>
+}
+
+export default Template
diff --git a/web-v2/web/src/components/AssociatedTable.js b/web-v2/web/src/components/AssociatedTable.js
new file mode 100644
index 0000000000..ebb997edca
--- /dev/null
+++ b/web-v2/web/src/components/AssociatedTable.js
@@ -0,0 +1,133 @@
+/*
+ * 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 { useEffect, useState, useMemo } from 'react'
+import { Spin, Table, Tag } from 'antd'
+import { listRolesForObject, getRoleDetails } from '@/lib/store/roles'
+import { useAppDispatch, useAppSelector } from '@/lib/hooks/useStore'
+import { useAntdColumnResize } from 'react-antd-column-resize'
+
+export default function AssociatedTable({ ...props }) {
+ const { metalake, metadataObjectType, metadataObjectFullName } = props
+ const [tableData, setTableData] = useState([])
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.roles)
+
+ useEffect(() => {
+ dispatch(listRolesForObject({ metalake, metadataObjectType, metadataObjectFullName }))
+ }, [metalake, metadataObjectType, metadataObjectFullName])
+
+ useEffect(() => {
+ const loadPrivileges = async () => {
+ const data = []
+
+ const roleDetails = await Promise.all(
+ (store.rolesForObject || []).map(async role => {
+ const { payload } = await dispatch(getRoleDetails({ metalake, role }))
+
+ return payload
+ })
+ )
+ roleDetails.forEach(roleData => {
+ const privileges = roleData?.securableObjects?.filter(o => o.fullName === metadataObjectFullName)[0]?.privileges
+ const allowPrivileges = privileges?.filter(p => p.condition === 'allow').map(p => p.name)
+ const denyPrivileges = privileges?.filter(p => p.condition === 'deny').map(p => p.name)
+ if (allowPrivileges?.length) {
+ data.push({
+ key: roleData.name + '-allow',
+ role: roleData.name,
+ condition: 'allow',
+ privileges: allowPrivileges
+ })
+ }
+ if (denyPrivileges?.length) {
+ data.push({
+ key: roleData.name + '-deny',
+ role: roleData.name,
+ condition: 'deny',
+ privileges: denyPrivileges
+ })
+ }
+ })
+ setTableData(data)
+ }
+ loadPrivileges()
+ }, [store.rolesForObject])
+
+ const columns = useMemo(
+ () => [
+ {
+ title: 'Role Name',
+ dataIndex: 'role',
+ key: 'role',
+ width: 200,
+ onCell: (_, index) => {
+ if (!tableData || index === undefined) return {}
+
+ const currentRole = tableData[index].role
+
+ // Find how many rows have the same role starting from this row
+ const rowSpan = tableData
+ .slice(index + 1)
+ .filter((item, i) => item.role === currentRole && i + index === index).length
+
+ // Check if the current row is the first occurrence of the role
+ const isFirstOccurrence = index === 0 || tableData[index - 1].role !== currentRole
+
+ return isFirstOccurrence ? { rowSpan: rowSpan == 1 ? 2 : 1 } : { rowSpan: 0 }
+ }
+ },
+ {
+ title: 'Privilege Type',
+ dataIndex: 'condition',
+ key: 'condition',
+ width: 200
+ },
+ {
+ title: 'Privileges',
+ dataIndex: 'privileges',
+ key: 'privileges',
+ render: privileges => (
+ <>
+ {privileges.map(privilege => {
+ return <Tag key={privilege}>{privilege}</Tag>
+ })}
+ </>
+ )
+ }
+ ],
+ [tableData]
+ )
+
+ const { resizableColumns, components, tableWidth } = useAntdColumnResize(() => {
+ return { columns, minWidth: 100 }
+ }, [columns])
+
+ return (
+ <Spin spinning={store.rolesForObjectLoading}>
+ <Table
+ dataSource={tableData}
+ columns={resizableColumns}
+ components={components}
+ style={{ maxHeight: 'calc(100vh - 28rem)' }}
+ scroll={{ x: tableWidth, y: 'calc(100vh - 34rem)' }}
+ />
+ </Spin>
+ )
+}
diff --git a/web-v2/web/src/components/ColumnTypeComponent.js b/web-v2/web/src/components/ColumnTypeComponent.js
new file mode 100644
index 0000000000..d3c54a72da
--- /dev/null
+++ b/web-v2/web/src/components/ColumnTypeComponent.js
@@ -0,0 +1,255 @@
+/*
+ * 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 React, { useRef, useState } from 'react'
+import { Button, Dropdown, Form, FormListOperation, Input, InputNumber, Popconfirm, Select, Tooltip } from 'antd'
+import { useClickAway } from 'react-use'
+import SpecialColumnTypeComponent from '@/components/SpecialColumnTypeComponent'
+import { ColumnSpesicalType, ColumnWithParamType } from '@/config'
+import { capitalizeFirstLetter, extractNumbersInParentheses } from '@/lib/utils'
+import { cn } from '@/lib/utils/tailwind'
+
+export default function ColumnTypeComponent({ ...props }) {
+ ;``
+ const { form, parentField, subField, columnNamespace, columnTypes, provider, disabled } = props
+ const columnTypeRef = useRef(null)
+ const SpecialColumnTypeRef = useRef(null)
+ const [isShowParamsInput, setIsShowParamsInput] = useState(false)
+ const [errorMsg, setErrorMsg] = useState('')
+ const [paramL, setParamL] = useState('')
+ const [paramP, setParamP] = useState('')
+ const [paramS, setParamS] = useState('')
+ const [open, setOpen] = useState(false)
+ const [isEditSpecialColumnType, setIsEditSpecialColumnType] = useState(false)
+ const currentType = Form.useWatch([...parentField, subField.name, 'typeObj', ...columnNamespace, 'type'], form)
+
+ const onChangeParamL = value => {
+ setParamL(value)
+ }
+
+ const onChangeParamP = value => {
+ setParamP(value)
+ }
+
+ const onChangeParamS = value => {
+ setParamS(value)
+ }
+
+ const onFocus = e => {
+ setErrorMsg('')
+ setIsShowParamsInput(!isShowParamsInput)
+ }
+
+ const onChangeType = value => {
+ setParamL('')
+ setParamP('')
+ setParamS('')
+ setErrorMsg('')
+ if (value && ColumnSpesicalType.includes(value)) {
+ setOpen(true)
+ } else {
+ setOpen(false)
+ }
+ }
+
+ const editSpecialColumnType = () => {
+ setIsEditSpecialColumnType(true)
+ setOpen(true)
+ }
+
+ const setDefaultValue = () => {
+ setIsEditSpecialColumnType(true)
+ setOpen(true)
+ }
+
+ useClickAway(columnTypeRef, e => {
+ if (columnTypeRef.current && e?.target && !columnTypeRef.current.contains(e?.target)) {
+ setIsShowParamsInput(false)
+ setErrorMsg('')
+ const currentTypeParam = extractNumbersInParentheses(currentType)
+ const value = currentType?.replace(/\([^)]*\)/g, '')?.toLowerCase()
+ if (currentTypeParam && !paramL && ColumnWithParamType.includes(value)) {
+ setParamL(currentTypeParam)
+ }
+ const [currentTypeParam1, currentTypeParam2] = currentTypeParam.split(',')
+ if (currentTypeParam && value === 'decimal' && !paramP && !paramS) {
+ setParamP(currentTypeParam1)
+ setParamS(currentTypeParam2)
+ }
+ if (ColumnWithParamType.includes(value)) {
+ form.setFieldValue(
+ [...parentField, subField.name, 'typeObj', ...columnNamespace, 'type'],
+ capitalizeFirstLetter(value) + `(${paramL || currentTypeParam})`
+ )
+ if (!paramL && !currentTypeParam) {
+ setErrorMsg('L is missing')
+ }
+ }
+ if (value === 'decimal') {
+ form.setFieldValue(
+ [...parentField, subField.name, 'typeObj', ...columnNamespace, 'type'],
+ capitalizeFirstLetter(value) + `(${paramP || currentTypeParam1 || ''},${paramS || currentTypeParam2 || ''})`
+ )
+ const errors = []
+ if (!paramP && !currentTypeParam1) {
+ errors.push('P is missing')
+ }
+ if (!paramS && !currentTypeParam2) {
+ errors.push('S is missing')
+ }
+ if (paramP && +paramP > 38) {
+ errors.push('P can not > 38')
+ }
+ if (paramS && +paramP < +paramS) {
+ errors.push('P can not < S')
+ }
+ if (errors.length) {
+ setErrorMsg(errors.join(', '))
+ }
+ }
+ }
+ })
+
+ const confirm = () => {
+ form
+ .validateFields([[...parentField, subField.name, 'typeObj', ...columnNamespace]], { recursive: true })
+ .then(() => setOpen(false))
+ }
+
+ const cancel = () => {
+ !isEditSpecialColumnType &&
+ form.setFieldValue([...parentField, subField.name, 'typeObj', ...columnNamespace], { type: '' })
+ setOpen(false)
+ }
+
+ return (
+ <>
+ <div className='flex items-center' ref={columnTypeRef}>
+ <Form.Item
+ noStyle
+ name={[subField.name, 'typeObj', ...columnNamespace, 'type']}
+ label=''
+ rules={[
+ () => ({
+ validator(_, type) {
+ if (!type) {
+ return Promise.reject(new Error('The column type is required!'))
+ }
+
+ return Promise.resolve()
+ }
+ })
+ ]}
+ >
+ <Select
+ size='small'
+ getPopupContainer={() => columnTypeRef.current}
+ onFocus={onFocus}
+ onChange={onChangeType}
+ disabled={disabled}
+ >
+ {columnTypes.map(type => (
+ <Select.Option value={type} key={type}>
+ <Tooltip placement='left' title={type}>
+ <div>{capitalizeFirstLetter(type)}</div>
+ </Tooltip>
+ </Select.Option>
+ ))}
+ </Select>
+ </Form.Item>
+ <Popconfirm
+ title=''
+ icon={<></>}
+ description={
+ <SpecialColumnTypeComponent
+ form={form}
+ parentField={parentField}
+ subField={subField}
+ columnNamespace={columnNamespace}
+ isEdit={form.getFieldValue('columns')[subField.name]?.isEdit}
+ columnTypes={columnTypes}
+ provider={provider}
+ ref={SpecialColumnTypeRef}
+ />
+ }
+ open={open}
+ onConfirm={confirm}
+ onCancel={cancel}
+ okText='Ok'
+ cancelText='Cancel'
+ ></Popconfirm>
+
+ {currentType && ColumnSpesicalType.includes(currentType.toLowerCase()) && (
+ <Button type='link' className='ml-1 h-min p-0' onClick={editSpecialColumnType}>
+ Edit
+ </Button>
+ )}
+
+ {typeof currentType === 'string' &&
+ ColumnWithParamType.includes(currentType?.replace(/\([^)]*\)/g, '')) &&
+ isShowParamsInput && (
+ <div className='ml-1 border-b focus-within:border-[color:theme(colors.defaultPrimary)]'>
+ <InputNumber
+ size='small'
+ controls={false}
+ placeholder='L'
+ value={paramL}
+ onChange={onChangeParamL}
+ className='w-20 border-none focus-within:shadow-none'
+ />
+ </div>
+ )}
+ {typeof currentType === 'string' &&
+ currentType?.replace(/\([^)]*\)/g, '').toLowerCase() === 'decimal' &&
+ isShowParamsInput && (
+ <>
+ <div className='ml-1 border-b focus-within:border-[color:theme(colors.defaultPrimary)]'>
+ <InputNumber
+ size='small'
+ controls={false}
+ placeholder='P'
+ value={paramP}
+ onChange={onChangeParamP}
+ className='w-10 border-none focus-within:shadow-none'
+ />
+ </div>
+ <div className='ml-1 border-b focus-within:border-[color:theme(colors.defaultPrimary)]'>
+ <InputNumber
+ size='small'
+ controls={false}
+ placeholder='S'
+ value={paramS}
+ onChange={onChangeParamS}
+ className='w-10 border-none focus-within:shadow-none'
+ />
+ </div>
+ </>
+ )}
+ </div>
+ <div className='text-red-500'>{errorMsg}</div>
+ <Form.Item shouldUpdate={(prevValues, currentValues) => prevValues.type !== currentValues.type} noStyle>
+ {() => {
+ const errors = form.getFieldError([...parentField, subField.name, 'typeObj', ...columnNamespace, 'type'])
+
+ return errors.length ? <div className='text-red-500'>{errors[0]}</div> : null
+ }}
+ </Form.Item>
+ </>
+ )
+}
diff --git a/web-v2/web/src/components/ConfirmInput.js b/web-v2/web/src/components/ConfirmInput.js
new file mode 100644
index 0000000000..46bbdcf74a
--- /dev/null
+++ b/web-v2/web/src/components/ConfirmInput.js
@@ -0,0 +1,119 @@
+/*
+ * 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 { useState, useEffect, forwardRef, useImperativeHandle } from 'react'
+import { Input, Typography } from 'antd'
+
+const { Paragraph } = Typography
+
+const ConfirmInput = forwardRef(function ConfirmInput(props, ref) {
+ const { name, setConfirmInput, isManaged, location, type, confirmTips, notMatchTips, registerValidate, isInUse } =
+ props
+ const [value, setValue] = useState('')
+ const [showError, setShowError] = useState(false)
+ const [inUseError, setInUseError] = useState(false)
+ const doubleCheck = confirmTips || `Please enter "${name}" to confirm the deletion.`
+
+ useImperativeHandle(ref, () => ({
+ validate: () => {
+ if (isInUse) {
+ setInUseError(true)
+
+ return false
+ }
+ if (value !== name) {
+ setShowError(true)
+
+ return false
+ }
+
+ return true
+ }
+ }))
+
+ // Register validate function via callback to solve the issue that ref cannot be passed with dynamic import
+ useEffect(() => {
+ if (registerValidate) {
+ registerValidate(() => {
+ if (isInUse) {
+ setInUseError(true)
+
+ return false
+ }
+ if (value !== name) {
+ setShowError(true)
+
+ return false
+ }
+
+ return true
+ })
+ }
+ }, [registerValidate, value, name, isInUse])
+
+ const getStatus = () => {
+ if (showError && value === '') return 'error'
+ if (value !== '' && value !== name) return 'error'
+
+ return ''
+ }
+
+ return (
+ <>
+ {isManaged && (
+ <Paragraph
+ style={{ marginBottom: '0.5rem' }}
+ >{`Please note, the storage location "${location}" will be deleted as well.`}</Paragraph>
+ )}
+ {type === 'metalake' && (
+ <Paragraph
+ style={{ marginBottom: '0.5rem' }}
+ >{`Make sure the ${type} ${name} is not in-use, and all sub-entities in it are dropped.`}</Paragraph>
+ )}
+ <Paragraph style={{ marginBottom: '0.5rem' }}>{doubleCheck}</Paragraph>
+ <Input
+ data-refer='confirm-delete-input'
+ value={value}
+ status={getStatus()}
+ onChange={e => {
+ setValue(e.target.value)
+ setConfirmInput(e.target.value)
+ if (showError) setShowError(false)
+ }}
+ />
+ {showError && value === '' && (
+ <Paragraph type='danger' style={{ marginBottom: 0, marginTop: '0.25rem', fontSize: '12px' }}>
+ {confirmTips || `Please enter the name to confirm deletion`}
+ </Paragraph>
+ )}
+ {value !== '' && value !== name && (
+ <Paragraph type='danger' style={{ marginBottom: 0, marginTop: '0.25rem', fontSize: '12px' }}>
+ {notMatchTips || `The entered name does not match`}
+ </Paragraph>
+ )}
+ {inUseError && (
+ <Paragraph type='danger' style={{ marginBottom: 0, marginTop: '0.25rem', fontSize: '12px' }}>
+ Please set the {type} to &quot;Not In-Use&quot; before deleting
+ </Paragraph>
+ )}
+ </>
+ )
+})
+
+export default ConfirmInput
diff --git a/web-v2/web/src/components/CustomTags.js b/web-v2/web/src/components/CustomTags.js
new file mode 100644
index 0000000000..79fcc3ff14
--- /dev/null
+++ b/web-v2/web/src/components/CustomTags.js
@@ -0,0 +1,203 @@
+/*
+ * 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 React, { useEffect, useRef, useState } from 'react'
+
+import { useRouter } from 'next/navigation'
+
+import { LockOutlined, PlusOutlined } from '@ant-design/icons'
+import { Flex, Select, Space, Tag, Tooltip, theme } from 'antd'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { associateTag } from '@/lib/store/tags'
+import { getCurrentEntityTags } from '@/lib/store/metalakes'
+import { useSearchParams } from 'next/navigation'
+
+const tagInputStyle = {
+ width: 100,
+ height: 22,
+ marginInlineEnd: 8,
+ verticalAlign: 'top'
+}
+
+export default function Tags({ ...props }) {
+ const { readOnly, metadataObjectType, metadataObjectFullName } = props
+ const { token } = theme.useToken()
+ const [inputVisible, setInputVisible] = useState(false)
+ const [optionList, setOptionList] = useState([])
+ const inputRef = useRef(null)
+ const router = useRouter()
+ const store = useAppSelector(state => state.tags)
+ const dispatch = useAppDispatch()
+ const [tagsForEntity, setTagsForEntity] = useState([])
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+
+ const getTagsForEntity = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityTags({ metalake: currentMetalake, metadataObjectType, metadataObjectFullName, details: true })
+ )
+
+ return payload?.tags || []
+ }
+
+ useEffect(() => {
+ const initLoad = async () => {
+ const tags = await getTagsForEntity()
+ setTagsForEntity(tags)
+ }
+ if (currentMetalake && metadataObjectType && metadataObjectFullName) {
+ initLoad()
+ }
+ }, [metadataObjectType, metadataObjectFullName])
+
+ useEffect(() => {
+ if (inputVisible) {
+ const options =
+ store.tagsData?.filter(tagOption => !tagsForEntity?.map(tag => tag.name)?.includes(tagOption.name)) || []
+ setOptionList(options)
+ inputRef.current?.focus()
+ }
+ }, [inputVisible, tagsForEntity])
+
+ const showInput = () => {
+ setInputVisible(true)
+ }
+
+ const tagRender = props => {
+ const { value, closable, onClose } = props
+
+ const onPreventMouseDown = event => {
+ event.preventDefault()
+ event.stopPropagation()
+ }
+ const tagColor = store.tagsData?.find(tag => tag.name === value)?.properties?.color
+
+ return (
+ <Tag
+ color={tagColor}
+ onMouseDown={onPreventMouseDown}
+ closable={closable}
+ onClose={onClose}
+ style={{ marginInlineEnd: 4 }}
+ >
+ {value}
+ </Tag>
+ )
+ }
+
+ const handleChange = async value => {
+ if (value && !tagsForEntity?.map(tag => tag.name)?.includes(value)) {
+ await dispatch(
+ associateTag({
+ metalake: currentMetalake,
+ metadataObjectType,
+ metadataObjectFullName,
+ data: { tagsToAdd: [value] }
+ })
+ )
+ }
+ const tags = await getTagsForEntity()
+ setTagsForEntity(tags)
+ setInputVisible(false)
+ }
+
+ const handleClose = async removedTag => {
+ await dispatch(
+ associateTag({
+ metalake: currentMetalake,
+ metadataObjectType,
+ metadataObjectFullName,
+ data: { tagsToRemove: [removedTag] }
+ })
+ )
+ const tags = await getTagsForEntity()
+ setTagsForEntity(tags)
+ }
+
+ const handleBlur = () => {
+ setInputVisible(false)
+ }
+
+ const handleClick = name => () => {
+ router.push(`/metadataObjectsForTag?tag=${name}&metalake=${currentMetalake}`)
+ }
+
+ const tagPlusStyle = {
+ height: 22,
+ background: token.colorBgContainer,
+ borderStyle: 'dashed'
+ }
+
+ return (
+ <Flex gap='4px 0' wrap>
+ {tagsForEntity?.map((tag, index) => {
+ const isLongTag = tag.name.length > 20
+ let color = tag.properties['color'] || 'grey'
+
+ const tagElem = (
+ <Tag
+ key={tag.name + index}
+ color={color}
+ closable={!readOnly && !tag.inherited}
+ icon={tag.inherited ? <LockOutlined /> : null}
+ onClick={handleClick(tag.name)}
+ className='cursor-pointer'
+ style={{ userSelect: 'none' }}
+ onClose={() => handleClose(tag.name)}
+ >
+ <span>{isLongTag ? `${tag.name.slice(0, 20)}...` : tag.name}</span>
+ </Tag>
+ )
+
+ return isLongTag ? (
+ <Tooltip title={tag.name} key={tag.name}>
+ {tagElem}
+ </Tooltip>
+ ) : (
+ tagElem
+ )
+ })}
+ {tagsForEntity?.length === 0 && <span>No Tags </span>}
+ {inputVisible && !readOnly && (
+ <Select
+ size='small'
+ tagRender={tagRender}
+ ref={inputRef}
+ style={tagInputStyle}
+ onChange={handleChange}
+ onBlur={handleBlur}
+ >
+ {optionList.map(tag => (
+ <Select.Option value={tag.name} key={tag.name}>
+ <Space>
+ <span className='tag-swatch' style={{ backgroundColor: tag.properties?.color }}></span>
+ <span>{tag.name}</span>
+ </Space>
+ </Select.Option>
+ ))}
+ </Select>
+ )}
+ {!inputVisible && !readOnly && (
+ <Tag style={tagPlusStyle} icon={<PlusOutlined />} onClick={showInput}>
+ Associate Tag
+ </Tag>
+ )}
+ </Flex>
+ )
+}
diff --git a/web-v2/web/src/components/EntityPropertiesFormItem.js b/web-v2/web/src/components/EntityPropertiesFormItem.js
new file mode 100644
index 0000000000..a2fcf16826
--- /dev/null
+++ b/web-v2/web/src/components/EntityPropertiesFormItem.js
@@ -0,0 +1,313 @@
+/*
+ * 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 React, { useEffect } from 'react'
+
+import { DownOutlined, PlusOutlined } from '@ant-design/icons'
+import { Button, Dropdown, Flex, Form, Input, Select, Space } from 'antd'
+
+import Icons from '@/components/Icons'
+import { getPropInfo, mismatchForKey } from '@/config'
+import { filesetLocationProviders, locationDefaultProps, rangerDefaultProps } from '@/config/catalog'
+import { keyRegex } from '@/lib/utils/regex'
+import { cn } from '@/lib/utils/tailwind'
+import { mapValues } from 'lodash-es'
+import { useAppSelector } from '@/lib/hooks/useStore'
+
+export default function RenderPropertiesFormItem({ ...props }) {
+ const { fields, subOpt, form, isEdit, isDisable, provider, selectBefore } = props
+ const disableTableLevelPro = (provider && getPropInfo(provider).immutable) || []
+ const reservedPro = provider ? getPropInfo(provider).reserved : []
+ const auth = useAppSelector(state => state.auth)
+ const { systemConfig } = auth
+
+ const defaultPro = rangerDefaultProps.reduce((acc, p) => {
+ acc[p.key] = {
+ key: p.key,
+ value: systemConfig?.[`gravitino.datastrato.custom.${p.key}`] || p.value,
+ select: p.select,
+ disabled: p.disabled,
+ description: p.description ? `catalog.${p.description}` : ''
+ }
+
+ return acc
+ }, {})
+ const { 'gravitino.datastrato.custom.authorization.ranger.auth.type': rangerAuthType } = systemConfig || {}
+
+ const filesystemProviders = form.getFieldValue('properties').find(p => p.key === 'filesystem-providers')
+ useEffect(() => {
+ if (!isEdit && provider === 'hadoop') {
+ const value = filesystemProviders?.value
+ const currentSelectBefore = value?.map(p => filesetLocationProviders[p]).filter(Boolean) || []
+ const selectBefore = [...new Set(['file:/', 'hdfs://', ...currentSelectBefore])]
+ const properties = form.getFieldValue('properties')
+ properties.forEach(p => {
+ if (p.key === 'location' || p.key?.startsWith('location-')) {
+ p.selectBefore = selectBefore
+ if (!selectBefore.includes(p.prefix)) {
+ p.prefix = selectBefore[0]
+ }
+ }
+ })
+ const filteredProperties = properties.filter(p => !p?.mapForLocation || value?.includes(p.mapForLocation))
+ let newProperties = []
+ value?.forEach(p => {
+ newProperties = [...newProperties, ...handleLocationPrefixChange(p)]
+ })
+ form.setFieldValue('properties', [...filteredProperties, ...newProperties])
+ }
+ }, [filesystemProviders, isEdit, provider])
+
+ const items = [
+ {
+ label: 'Ranger Properties',
+ key: 'addDefaulteProForRanger'
+ }
+ ]
+
+ const handleMenuClick = (e, subOpt) => {
+ if (e.key === 'addDefaulteProForRanger') {
+ const existedProKeys = form.getFieldValue('properties').map(p => p?.key)
+ rangerDefaultProps.forEach(p => {
+ if (!existedProKeys.includes(p.key)) {
+ subOpt.add(defaultPro[p.key])
+ }
+ })
+ }
+ }
+
+ const handleLocationPrefixChange = value => {
+ const locationProps = locationDefaultProps[mapValues] || []
+ const existedProKeys = form.getFieldValue('properties').map(p => p?.key)
+ let newProperties = []
+ locationProps.forEach(p => {
+ if (!existedProKeys.includes(p.key)) {
+ newProperties.push({ key: p.key, value: p.defaultValue, description: p.description, mapForLocation: value })
+ }
+ })
+
+ return newProperties
+ }
+
+ const handlePropertiesKey = (e, index) => {
+ if (isEdit) return
+ const key = e.target.value
+
+ const locationProviders =
+ form.getFieldValue(['properties']).find(p => p.key === 'filesystem-providers')?.value || []
+ let filesetSelectBefore = ['file:/', 'hdfs://'] // default selectBefore values
+ locationProviders.forEach(p => {
+ if (filesetLocationProviders[p] && !filesetSelectBefore.includes(filesetLocationProviders[p])) {
+ filesetSelectBefore.push(filesetLocationProviders[p])
+ }
+ })
+ if ((provider === 'hadoop' || selectBefore) && (key === 'location' || key.startsWith('location-'))) {
+ form.setFieldValue(['properties', index, 'selectBefore'], selectBefore || filesetSelectBefore)
+ form.setFieldValue(['properties', index, 'description'], 'Hadoop catalog storage location')
+ if (!filesetSelectBefore.includes(form.getFieldValue(['properties', index, 'prefix']))) {
+ form.setFieldValue(['properties', index, 'prefix'], selectBefore?.[0] || filesetSelectBefore[0])
+ }
+ } else {
+ form.setFieldValue(['properties', index, 'selectBefore'], null)
+ form.setFieldValue(['properties', index, 'description'], '')
+ }
+ }
+
+ return (
+ <div className='flex flex-col gap-2'>
+ {fields.map(subField => (
+ <Form.Item label={null} className='align-items-center mb-1' key={subField.key}>
+ <Flex gap='small' align='start'>
+ <Form.Item
+ name={[subField.name, 'key']}
+ className='mb-0 w-full grow'
+ label=''
+ data-refer={`props-key-${subField.name}`}
+ data-testid={`props-key-${subField.name}`}
+ rules={[
+ {
+ pattern: new RegExp(keyRegex),
+ message: mismatchForKey
+ },
+ ({ getFieldValue }) => ({
+ validator(_, key) {
+ if (getFieldValue('properties').length) {
+ if (key) {
+ let keys = getFieldValue('properties').map(p => p?.key)
+ keys.splice(subField.name, 1)
+ if (keys.includes(key)) {
+ return Promise.reject(new Error('The key already exists!'))
+ }
+ if (reservedPro.includes(key) && !isEdit) {
+ return Promise.reject(new Error('The key is reserved!'))
+ }
+ if (defaultPro[key]) {
+ const { value, select, disabled, description } = defaultPro[key]
+ form.setFieldValue(['properties', subField.name, 'select'], select)
+ form.setFieldValue(['properties', subField.name, 'description'], description)
+ !form.getFieldValue(['properties', subField.name, 'value']) &&
+ value &&
+ form.setFieldValue(['properties', subField.name, 'value'], value)
+ form.setFieldValue(['properties', subField.name, 'disabled'], disabled)
+ } else {
+ form.setFieldValue(['properties', subField.name, 'select'], undefined)
+ form.setFieldValue(['properties', subField.name, 'description'], '')
+ form.setFieldValue(['properties', subField.name, 'disabled'], false)
+ }
+
+ return Promise.resolve()
+ } else {
+ return Promise.reject(new Error('The key is required!'))
+ }
+ }
+ }
+ })
+ ]}
+ >
+ <Input
+ placeholder={'Key'}
+ disabled={
+ ([...reservedPro, ...disableTableLevelPro].includes(
+ form.getFieldValue(['properties', subField.name, 'key'])
+ ) &&
+ isEdit) ||
+ isDisable
+ }
+ onChange={e => handlePropertiesKey(e, subField.name)}
+ />
+ </Form.Item>
+ <span className='w-full'>
+ <Form.Item
+ name={[subField.name, 'value']}
+ className='mb-0 w-full grow'
+ label=''
+ data-refer={`props-value-${subField.name}`}
+ data-testid={`props-value-${subField.name}`}
+ >
+ {form.getFieldValue(['properties', subField.name, 'select']) ? (
+ <Select
+ className='flex-none'
+ mode={form.getFieldValue(['properties', subField.name, 'multiple']) ? 'multiple' : undefined}
+ disabled={form.getFieldValue(['properties', subField.name, 'disabled'])}
+ placeholder={
+ form.getFieldValue(['properties', subField.name, 'description'])
+ ? `${form.getFieldValue(['properties', subField.name, 'description'])}`
+ : 'Value'
+ }
+ >
+ {form.getFieldValue(['properties', subField.name, 'select']).map(item => (
+ <Select.Option value={item} key={item}>
+ {item}
+ </Select.Option>
+ ))}
+ </Select>
+ ) : (
+ <Input
+ placeholder={
+ form.getFieldValue(['properties', subField.name, 'description'])
+ ? `${form.getFieldValue(['properties', subField.name, 'description'])}`
+ : 'Value'
+ }
+ disabled={
+ ([...reservedPro, ...disableTableLevelPro].includes(
+ form.getFieldValue(['properties', subField.name, 'key'])
+ ) &&
+ isEdit) ||
+ isDisable ||
+ form.getFieldValue(['properties', subField.name, 'disabled'])
+ }
+ type={
+ form.getFieldValue(['properties', subField.name, 'key'])?.includes('password')
+ ? 'password'
+ : 'text'
+ }
+ addonBefore={
+ form.getFieldValue(['properties', subField.name, 'selectBefore']) ? (
+ <Select
+ value={form.getFieldValue(['properties', subField.name, 'prefix'])}
+ key={form.getFieldValue(['properties', subField.name, 'selectBefore']).join(',')}
+ onChange={value => form.setFieldValue(['properties', subField.name, 'prefix'], value)}
+ >
+ {form.getFieldValue(['properties', subField.name, 'selectBefore']).map(item => (
+ <Select.Option key={item} value={item}>
+ {item}
+ </Select.Option>
+ ))}
+ </Select>
+ ) : null
+ }
+ />
+ )}
+ </Form.Item>
+ </span>
+ <Icons.Minus
+ className={cn('size-8 cursor-pointer text-gray-400 hover:text-defaultPrimary', {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed':
+ ([...reservedPro, ...disableTableLevelPro].includes(
+ form.getFieldValue(['properties', subField.name, 'key'])
+ ) &&
+ isEdit) ||
+ isDisable
+ })}
+ onClick={() => {
+ if (
+ ([...reservedPro, ...disableTableLevelPro].includes(
+ form.getFieldValue(['properties', subField.name, 'key'])
+ ) &&
+ isEdit) ||
+ isDisable
+ )
+ return
+ subOpt.remove(subField.name)
+ }}
+ />
+ </Flex>
+ </Form.Item>
+ ))}
+ {rangerAuthType && !isEdit ? (
+ <Dropdown.Button
+ data-refer='add-props'
+ icon={<DownOutlined />}
+ disabled={isDisable}
+ menu={{
+ items,
+ onClick: e => handleMenuClick(e, subOpt)
+ }}
+ onClick={() => subOpt.add({ key: '', value: '' })}
+ >
+ <Space>
+ <PlusOutlined />
+ <span>{'Add Property'}</span>
+ </Space>
+ </Dropdown.Button>
+ ) : (
+ <Button
+ data-refer='add-props'
+ className='w-fit'
+ type='dashed'
+ disabled={isDisable}
+ icon={<PlusOutlined />}
+ onClick={() => subOpt.add({ key: '', value: '' })}
+ >
+ {'Add Property'}
+ </Button>
+ )}
+ </div>
+ )
+}
diff --git a/web-v2/web/src/components/GetOwner.js b/web-v2/web/src/components/GetOwner.js
new file mode 100644
index 0000000000..30c5ab7c6d
--- /dev/null
+++ b/web-v2/web/src/components/GetOwner.js
@@ -0,0 +1,41 @@
+/*
+ * 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 React, { useEffect } from 'react'
+import { getCurrentEntityOwner } from '@/lib/store/metalakes'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+export default function GetOwner({ metalake, metadataObjectType, metadataObjectFullName, refreshKey }) {
+ const [ownerData, setOwnerData] = React.useState(null)
+ const dispatch = useAppDispatch()
+
+ useEffect(() => {
+ const fetchOwnerData = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({ metalake, metadataObjectType, metadataObjectFullName })
+ )
+ setOwnerData(payload?.owner)
+ }
+ if (metalake && metadataObjectType && metadataObjectFullName) {
+ fetchOwnerData()
+ }
+ }, [refreshKey, metalake, metadataObjectType, metadataObjectFullName])
+
+ return <span>{ownerData?.name || '-'}</span>
+}
diff --git a/web-v2/web/src/components/Icons.js b/web-v2/web/src/components/Icons.js
new file mode 100644
index 0000000000..8d006e6476
--- /dev/null
+++ b/web-v2/web/src/components/Icons.js
@@ -0,0 +1,505 @@
+/*
+ * 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 React from 'react'
+
+import { Icon as Iconify } from '@iconify/react'
+import * as lucideIcons from 'lucide-react'
+
+const Icons = {
+ ...lucideIcons,
+ iconify: ({ icon, className, props }) => <Iconify icon={icon} className={className} {...props} />,
+ gravitino: props => (
+ <svg version='1.1' xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 197.3 189.2' {...props}>
+ <g>
+ <path
+ fill='currentColor'
+ d='M144.6,85.8L144.6,85.8h-27.4c-2.8-4.9-8.1-8.2-14.1-8.2c-9,0-16.4,7.3-16.4,16.4s7.3,16.4,16.4,16.4
+ c6.1,0,11.3-3.3,14.1-8.2h26.6c-3.8,19.2-20.7,33.7-41,33.7C79.8,135.8,61,117,61,94s18.8-41.8,41.8-41.8c11,0,21.4,4.2,29.3,12
+ c3.2,3.1,8.4,3.1,11.5-0.1s3.1-8.3-0.1-11.5c-10.9-10.7-25.4-16.6-40.7-16.6c-32,0-58.1,26.1-58.1,58.1s26.1,58.1,58.1,58.1
+ c29.3,0,53.6-21.8,57.5-49.9h20.3c-3.8,39.7-37.3,70.9-78,70.9c-20.9,0-40.6-8.1-55.4-22.9c-3.2-3.2-8.3-3.2-11.5,0
+ c-3.2,3.2-3.2,8.3,0,11.5c17.9,17.9,41.6,27.7,66.9,27.7c52.2,0,94.6-42.4,94.6-94.6l0-8.8L144.6,85.8L144.6,85.8z'
+ />
+ <path
+ fill='currentColor'
+ d='M25.4,81.4c6.3-36.9,38.5-65.1,77.2-65.1c19.8,0,38.8,7.4,53.3,20.9c3.3,3.1,8.4,2.9,11.5-0.4
+ c3.1-3.3,2.9-8.4-0.4-11.5C149.5,9,126.6,0,102.6,0C55.3,0,15.9,35,9.1,80.4C3.7,83.1,0,88.6,0,95c0,9,7.3,16.4,16.4,16.4
+ s16.4-7.3,16.4-16.4C32.7,89.3,29.8,84.3,25.4,81.4'
+ />
+ </g>
+ </svg>
+ ),
+ hive: props => (
+ <svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 1000 900' {...props}>
+ <g stroke='#fdee21' transform='translate(-.53268 66.8)'>
+ <path d='m597.33 637.79v192.85h47.346v-88.632l9.7674 0.18273v88.45h47.881v-192.85h-47.881v71.552h-9.7674v-71.552z' />
+ <path d='m761.25 637.79h-46.116v192.85h46.116z' />
+ <path d='m768.8 637.79 36.429 192.85h54.984l36.429-192.85h-48.951l-12.067 82.517c-1.0055 3.1605-4.402 3.1605-5.0089 0l-12.06-82.52z' />
+ <path d='m997.97 637.79h-91.538v192.85h91.538v-50.569l-50.898-0.43357 0.00017-21.679h24.248v-50.204h-24.248l-0.00017-19.397h50.898z' />
+ </g>
+ <g transform='translate(-.53268 66.8)'>
+ <path
+ d='m503.66 52.952c-7.71-21.115-272.92-124.22-276.31-112.9-48.7 12.695-68.52 68.826-102.02 104.38l-74.393-4.261c-32.771 42.142-49.967 85.199-38.258 129.95 42.002 56.906 90.76 105.33 121.15 176.81 2.402 33.692 145.82 3.533 176.56-3.1364-41.992 30.059-78.561 76.651-62.846 210.84 14.346 63.014 24.159 133.37 151.4 204.64 16.75 9.3816 51.407 20.207 72.838 28.098 20.495 9.4012 44.461 13.264 112.07-7.4123 39.124-16.863 81.365-27.022 119.65-43.844l-46.017 2.1595c-63.369 1.3787-112.29 6.1057-127.38-11.6l-58.32-100.68 34-66.04c47.056 4.8263 62.675 42.986 104.15 57.518l48.885-36.215c141.99 83.816 198.48-53.12 214.67-159.77-1.7276-43.392-93.952 13.611-88.362-6.6789 2.1662-46.644-35.854-107.67-60.42-155.22l28.43-110.01c12.9-11.49-59.72-133.86-119.02-149.12-52.03-13.391-130.46 52.492-130.46 52.492z'
+ fill='#fdee21'
+ />
+ </g>
+ <g>
+ <g fill='#c8c037' transform='translate(-.53268 66.8)'>
+ <path d='m736.92 286.75c0.50927 11.816 0.45216 26.187 1.5941 35.15-0.19663 6.8382-5.3227 7.0888-9.5645 8.5212l27.631 10.119c5.4855 9.2313 9.8941 18.463 14.347 27.694 5.1652 22.708 1.3105 23.357-2.1254 25.031-10.027 0.10212-20.025 0.12088-29.358-1.864 4.181 2.2066 5.1006 3.8152 5.543 6.642 0.81556 5.2117-2.5407 12.329-8.0669 19.188 8.1718 4.534 23.071 8.9698 34.14 13.181l12.62-28.093c-5.7151-41.271-23.045-79.309-46.76-115.57z' />
+ <path d='m788.49 425.18c15.324 6.3872 36.495 4.5146 65.848-10.613 4.3653-3.1043 8.4311-1.2485 0.61937 3.8577-38.499 34.547-56.927 17.265-66.467 6.7552z' />
+ <path d='m857.28 410.04c4.5523 8.7165 1.7942 15.805 0.26568 23.167-4.7534 37.449-16.423 67.056-39.321 97.994-74.478 119.74-149.67 44.817-209.62-3.9455l-24.798 62.137c-1.3162 5.4464-6.7903 9.688 31.937 26.738l39.452-27.867c150.46 114.48 257.08-160.24 202.08-178.22z' />
+ <path d='m626.75 517.04c-10.151 0.72442-40.361 10.997-41.706 16.946l13.902-20.712z' />
+ <path d='m607.01 390.07c1.8598 0 10.788 2.3971 9.8302 1.864-1.3698-0.76256-0.15272 12.519 2.6568 19.439l-10.893 23.7c20.865-24.063 53.858-22.462 84.486-25.564l-14.612-9.0537c2.5384-8.4664-0.45059-15.165-1.8598-22.368z' />
+ <path d='m658.28 318.71c-22.387 6.8632-43.816 18.075-58.203 41.976 10.976-39.395 13.213-37.899 16.757-39.846 15.351-6.8651 27.922-2.5864 41.446-2.1303z' />
+ </g>
+ <g fill='#fcf6a0' transform='translate(-.53268 66.8)'>
+ <path d='m538.73 780.45c-27.07 29.87-87.47-2.26-137.63-18.64-127.46-81.05-152.36-157.35-154.09-232.2-6.5535-107.22 26.37-169.52 68.014-184.27-27.561 53.129-40.41 148.5-27.631 219.42 10.315 39.455 10.529 106 76.545 141.62 32.327 18.199 23.571 32.368 45.431 49.413 23.955 18.679 90.747 36.437 129.36 24.658z' />
+ <path d='m579.17 284.94c-45.831-64.991-110.29-89.387-182.98-92.053 14.568-4.7488 29.136-7.2216 43.704-14.246 3.5675-3.7484 2.4012-10.344 1.0627-17.042-69.97-18.27-114.13-40.85-170.03-61.781l150.91 36.215c101.91 3.8724 93.158 29.032 157.34 148.91z' />
+ <path d='m628.24 253.6c-33.87-48.35-66.72-107.03-111.31-144.35-107.64-48.584-214.12-84.666-338.91-117.5l39.827-51.216c132.42 30.227 256.8 80.808 368.21 164.19 18.849 47.66 31.419 95.383 42.173 148.87z' />
+ <path d='m696.52 168.16s-18.988-42.599-28.233-58.866c-21.446-23.766-32.29-68.054-76.213-88.922 13.892 3.7515 23.399-0.7183 51.759 24.992l44.669 84.734z' />
+ <path d='m720.14 241.96c4.3792-36.908 12.695-96.11 3.1517-119.5-26.55-35.624-53.29-72.446-80.04-106.63-4.43-4.123-7.62-9.7186-11.11-14.084 37.61 9.744 76.86 35.894 129.79 139.13z' />
+ </g>
+ <g transform='translate(-.53268 66.8)'>
+ <path d='m562.02 246.32c-14.98-11.79-28.33-53.49-51.03-62.16-21.011-1.7577-28.715-8.3682-56.344-2.7386 10.021-5.0213 19.482-11.446 30.134-14.885 7.2152-1.7032 13.983 0.18382 20.867 1.1334 1.6999-0.80357 2.8139-1.8029 2.3983-3.3133-27.812-17.187-84.866-17.432-123.38-27.243 44.699 1.4962 94.156-0.9815 127.75 9.7912 27.013 23.973 35.788 69.119 49.605 99.415z' />
+ <path d='m643.93 45.227c6.2011 0.56336 39.574 53.353 41.142 62.137 2.7751 19.202 9.6196 40.728 11.46 60.819-5.4968-19.269-11.486-38.537-18.974-57.806-2.1898-5.3062-7.7241-17.302-23.107-34.269-7.1628-11.959-8.7092-21.359-10.52-30.88z' />
+ <path d='m757.02 332.75h-14.278l15.781 4.1424z' />
+ <path d='m659.6 318.49c-14.358-1.7651-29.091-1.9991-43.448 1.1565-5.8522 7.8608-6.2554 15.856-8.813 23.245 17.454-19.236 24.38-20.412 52.261-24.401z' />
+ <path d='m855.42 417.77c-7.99 6.3771-8.7884 12.379-32.413 19.572-17.228 4.074-26.961-2.8314-35.07-12.116 12.294 3.5217 14.259 12.81 47.225 2.3966z' />
+ <path d='m783.82 421.76c-5.7504 15.812-11.949 31.791-18.199 46.6-14.883 17.454-8.5402 7.5079-30.819 34.617 7.1285-10.998 16.4-21.566 21.254-33.02 3.4091-7.5422 7.6532-15.543 9.5323-22.244-5.9074-2.95-17.999-3.1834-19.639-2.1247-19.808 11.683-23.382 24.047-35.059 36.086 8.4637-13.53 15.693-28.298 25.505-40.476 1.1181-1.5806 8.3826-1.8863 12.849-2.8189-6.9404-1.1908-19.786-3.6848-20.82-3.572-12.922 3.1053-20.163 14.361-29.756 21.836 6.9939-10.098 13.436-20.612 22.317-29.292 0.8785-1.0208 24.883 1.0822 37.324 6.0466l0.2468 4.9491 7.0633 2.8512 5.3136-13.314z' />
+ <path d='m627.07 517.09c-3.1882-1.0895-31.35-4.7112-31.35-3.8611-10.813 7.6957-12.453 15.059-12.221 21.436 17.989-17.697 17.319-17.747 43.572-17.575z' />
+ <path d='m605.68 389.81s20.322-2.9626 19.926-1.0652c-1.4722 7.0504 2.4876 24.233 2.9225 21.836l-11.424 9.32c23.926-12.029 49.113-9.6117 74.656-11.45 0 0-21.507-5.9381-20.192-6.1246 4.7977-0.6803-1.2772-22.43-2.9225-22.901 4.0915-1.3847 8.0873-2.4285 12.221-3.4617-30.756-8.0483-48.541-3.3059-75.188 13.847z' />
+ <path d='m781.56 404.98-4.5166 2.2634c-0.6408-13.231-14.851-12.26-26.834-12.382l-9.8302-2.3966c2.9889 2.7664 12.229 2.5495 8.5018 8.5212-3.1367 1.6765-4.5798 8.87-6.3763 14.912l-5.3136 0.26628c9.3867 3.6684 18.095 6.8836 28.428 11.184l6.1106 0.932 14.612-7.8555z' />
+ </g>
+ <g fill='#fff' transform='translate(-.53268 66.8)'>
+ <path d='m646.86 396.06c-2.2872-4.5248-13.794-3.8824-16.275-0.95484-2.0158 2.3788-0.12514 17.642 2.4595 15.068 3.7368-3.2849 8.6176-4.6588 14.48-4.3938 0.73904-2.82 0.47742-5.8648-0.66421-9.7194z' />
+ <path d='m757.21 418.8c1.0816-0.79113 3.3689-8.4434 2.6301-10.733-1.5117-5.4032-12.212-4.2659-12.212-4.2659-2.6108 1.5363-4.8989 9.9596-3.9448 12.739 0.45543 2.3526 11.809 3.1025 13.526 2.2595z' />
+ </g>
+ <g transform='translate(-.53268 66.8)'>
+ <path d='m299.64 682.84 6.7596 0.66112c40.071 19.675 106.05 48.847 201.57 33.171l14.988 23.584c-42.067 20.442-87.312 15.738-129.71 17.172z' />
+ <path d='m242.11 527.3 20.073 84.268c53.74 33.593 145.54 72.07 222.06 68.965l-16.91-38.8c-159.73-33.92-173.24-76.8-225.22-114.44z' />
+ <path d='m292.06 354.69c9.8106 65.302 22.907 114.81 79.69 156.28 34.804 25.03 69.351 49.954 111.37 70.524 0 0-3.6836 19.171-6.7631 18.829-125.05-13.89-216.6-117.58-227.69-164.94 10.741-36.329 26.149-59.021 43.389-80.693z' />
+ <path d='m352.17 317.69c16.664 72.376 56.397 145.68 95.889 212.18 14.477 18.369 18.266 26.475 40.579 37.659 30.159 9.5492 51.486 7.1119 73.377 5.6756-5.9982-11.102-11.329-22.706-18.217-33.14-49.018-38.765-26.364-74.06-13.344-96.406-27.256-6.887-63.37-21.525-68.345-40.778-7.9992-62.271-3.9373-82.025 4.0685-114.01-36.909 7.7822-74.309 15.494-114.01 28.82z' />
+ <path
+ d='m216.77-66.742c-12.131 7.9248-23.818 19.256-36.391 32.135-20.843 21.575-34.699 42.621-55.915 58.224-4.2432 3.6588-16.151 9.5511-31.121 10.425-7.052 0.352-11.646 1.519-24.604-0.108-11.428-6.188-22.285-2.164-32.881 10.51-11.619 16.709-26.334 48.437-32.453 68.41-12.611 50.937 19.541 92.905 50.374 125.25 27.429 26.796 43.243 43.542 54.505 68.107 8.527 15.933 14.844 37.799 21.683 53.13 2.4661 4.8605 1.9534 4.8352 8.5913 6.3 14.333 3.0588 34.215 3.0828 51.915 4.6041 7.6583 0.10691 18.175-0.17813 28.14-1.2168 13.731-2.5928 29.863-5.1333 43.384-9.8098 13.213-3.2535 24.985-7.7592 35.597-11.907-1.3686 4.6442-11.478 9.1153-15.268 15.002-35.97 51.49-45.823 97.308-39.561 169.6 3.5425 32.042 10.896 58.605 21.992 88.997 5.0775 13.908 15.882 35.934 26.236 50.565 30.79 43.506 99.672 99.374 195.56 120.88 16.729 2.2866 35.715 1.067 53.571-3.6882 47.326-14.346 143.78-48.275 143.78-48.275s-85.619 7.0828-124.83 3.2058c-9.0778-1.4195-19.081-1.9011-25.405-8.0872-1.0608-1.3694-4.9144-9.1318-2.4258-9.2015 3.3952-0.095 13.142-4.14 28.191-5.4821-32.129-3.4591-31.671-3.418-34.016-9.2706-3.6471-9.0847-9.2292-21.502-14.977-32.367 14.118 1.1911 45.376 2.9455 55.984-8.0025 0 0-18.497 2.1356-34.843 0.2184-5.5072-0.64595-14.891-3.9946-17.71-5.0297-7.3383-2.858-13.38-3.7456-14.788-5.6091-2.5483-6.4856-4.2751-8.6672-7.3506-17.356-4.1659-11.504-4.4964-24.337-5.2895-36.083 10.693 13.18 24.318 24.275 42.356 29.941 0.23141-0.48776 23.4 10.072 40.226 4.642l3.4886-1.1254c0 0.31134-11.148 0.9767-15.237-1.0474-34.219-14.545-39.37-27.276-44.895-33.599l-14.777-22.133c4.4943-8.9608 7.0351-9.3013 12.989-9.3842 18.011 2.0006 25.848 3.5399 36.807 0.89587 7.4053 15.24 9.4062 30.571 26.265 41.662 56.166 16.672 68.369-4.951 81.973-24.057 40.412 29.658 106.2 38.803 151.89 0.51478 58.086-67.212 76.476-173.17 71.325-179.22-7.2544-12.307-16.772-24.999-24.945-23.245-29.13 7.952-39.871 22.73-68.735 19.359 3.4377-0.19431 9.2187-0.28734 9.2628-0.61508 2.2238-24.441-0.17883-36.267-1.2518-38.297-8.759-19.317-20.261-39.646-28.278-54.881-2.0668-3.1607-8.1367-27.165-18.308-36.648-4.3623-3.7245-15.039-13.546-15.039-13.546l-0.90484 10.439s4.1739 0.63032 5.7624 7.0973c6.0222 24.517 36.687 82.485 38.938 85.263 10.868 17.545 1.1045 39.401 9.3673 51.663 0.7938 1.5578 16.857-0.1365 29.307 0.62845 20.473-4.4034 19.609-13.426 37.294-14.782 11.913-0.91347 13.108 21.46 12.951 23.196-2.22 24.704-9.735 53.427-21.236 79.658-23.912 46.069-50.691 87.446-88.67 93.216-46.326 8.0952-70.399-12.158-95.512-25.055l-9.6068 8.1934c-32.637 32.501-71.389 29.614-87.239-12.851-7.8901-16.473-18.172-26.569-26.976-40.7l-46.688 33.627c-3.8865 7.9708-8.6652 20.54-14.47 34.58-4.0357 9.761-7.4199 26.525-7.1995 40.456-5.9847 10.195 20.729 51.542 37.609 76.692 4.9811 7.4212 14.279 20.385 14.59 21.193 3.3476 8.6831 10.679 16.349 11.124 17.284 31.337 40.872-39.531 31.46-54.167 28.991-28.876-4.601-57.121-16.663-83.67-32.792-1.5406-0.93601-3.0757-1.8853-4.6047-2.848-31.551-19.866-60.581-45.283-85.264-70.423-14.718-16.666-28.732-50.827-39.083-75.045-15.513-58.226-37.776-159.15 22.532-235.63 3.8228-4.3717 7.9478-11.65 11.46-13.09 17.918-12.119 37.375-20.379 58.298-24.966l-2.1122-13.563c-10.449 2.3741-45.633 15.243-55.581 20.629-22.623 6.5582-41.388 13.406-70.22 20.625-9.3724 1.1468-18.592 1.1674-27.579-0.0535-20.741-2.8178-56.094-0.3007-58.349-2.3956-14.044-19.585-17.889-54.676-30.703-73.456l-0.1512-0.1872-0.16231-0.17827c-7.47-10.04-16.177-18.23-24.752-26.75-30.708-30.51-56.991-60.01-64.348-91.27-1.85-9.23-6.614-18.79-4.082-46.1l0.04669-0.1337 0.04447-0.13371c7.388-25.513 19.407-46.31 39.806-67.153 21.228 0.34267 42.24 0.809 58.607 3.9355 7.5089 1.2562 23.124 3.2959 39.252 9.304 40.822 15.207 94.76 40.209 94.76 40.209-40.488-22.236-85.761-51.115-114.35-56.943-4.2536-0.60217-6.8679-2.5426-8.1311-5.93 42.999-25.264 50.865-55.009 79.147-81.686 12.925-5.6262 17.965-8.4984 28.947-9.6917 101.57 16.06 165.51 56.515 216.09 83.566 20.529 11.164 39.191 19.606 57.015 29.773 15.624 5.1391 62.771 40.734 76.569 59.925 14.017 29.595 24.251 61.563 33.585 92.411 6.6931 31.375 12.564 44.102 12.564 44.102s-5.6883-26.243-4.7403-30.958c5.8976 2.2038 19.841 6.5574 25.621 5.881 0 0-25.818-13.346-29.201-25.141-10.856-37.847-21.744-96.765-24.68-99.837-8.274-10.411-42.777-36.816-63.941-49.03-8.006-4.6205-12.333-7.4865-12.671-9.5179 6.761-6.83 15.111-15.865 22.598-21.606 7.1766-5.5031 13.711-11.709 23.713-15.423 43.963-19.8 69.101 7.6176 75.066 2.0656 0 0-9.458-10.841-5.257-9.0564 4.3021 2.3303 18.323 5.0784 19.862 6.5094 16.023 12.534 57.913 58.344 83.161 106.68 6.0639 11.84 8.5288 19.636 5.7164 33.893-2.8199 14.27-5.0017 22.117-8.0777 31.647-2.7784 6.371-18.498 49.988-18.437 55.848-3.1666 23.932 10.264 53.893 10.264 53.893 0.12703-8.1326-0.5003-12.466 0.23677-18.282l0.90404-10.393s-0.573-2.7644-0.46902-3.86c0.6821-7.1867 2.445-13.229 2.9625-17.345 5.0476-31.255 13.822-53.755 23.775-81.182 2.9578-6.9216 6.8277-10.771 6.6303-16.041 0.16274-9.3518-8.2048-21.904-14.252-34.163-6.1-12.39-13.39-26.202-22.96-40.76-21.82-31.376-40.42-55.925-74.48-71.289-9.53-4.1821-47.03-8.2709-59.98-5.8413-15.71 3.2729-29.22 6.5004-39.99 13.398-16.95 10.854-30.27 27.659-45.89 37.561-34.56-17.282-51.24-30.216-54.35-31.999-20.54-11.006-45.2-23.778-71.73-35.89-12.72-11.862-91.71-40.233-164.04-45.892zm442.08 644.59c-21.3-16.65-39.23-33.79-51.05-51.44-3.8582 20.758-17.864 35.542-28.688 50.083-2.1546 3.4104-3.7078 8.0604 6.9022 22.879 2.8598 3.948 13.207 4.6227 20.192 4.2606-7.1065-5.3719-17.918-11.053-19.66-15.977 12.501 8.5109 24.076 10.957 34.538 9.5863 2.3903-0.26867 5.36-2.8037 7.6553-6.7058 4.6637-10.02 8.3155-12.433 12.005-15.13l8.5018 10.651z'
+ stroke='#000'
+ />
+ </g>
+ </g>
+ </svg>
+ ),
+ doris: props => (
+ <svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 512 512' {...props}>
+ <g>
+ <path
+ fill='#14a8c9'
+ d='M 177.5,-0.5 C 185.5,-0.5 193.5,-0.5 201.5,-0.5C 216.485,2.49184 229.818,8.99184 241.5,19C 263.362,40.5281 284.862,62.3615 306,84.5C 321.873,104.738 325.54,127.072 317,151.5C 313.365,160.772 308.699,169.439 303,177.5C 287.138,193.029 271.638,208.862 256.5,225C 251.896,228.6 246.896,229.267 241.5,227C 205.667,191.167 169.833,155.333 134,119.5C 114.347,92.1441 112.347,63.4775 128,33.5C 139.766,15.2282 156.266,3.8949 177.5,-0.5 Z'
+ />
+ </g>
+ <g>
+ <path
+ fill='#5168ac'
+ d='M 80.5,117.5 C 83.5823,118.017 86.5823,118.85 89.5,120C 131.667,162.167 173.833,204.333 216,246.5C 219.574,253.075 219.241,259.408 215,265.5C 173.167,307.333 131.333,349.167 89.5,391C 79.3707,395.174 72.204,392.341 68,382.5C 67.3333,297.833 67.3333,213.167 68,128.5C 69.8906,122.153 74.0573,118.486 80.5,117.5 Z'
+ />
+ </g>
+ <g>
+ <path
+ fill='#51c9a2'
+ d='M 206.5,511.5 C 197.5,511.5 188.5,511.5 179.5,511.5C 148.554,504.392 128.72,485.392 120,454.5C 114.417,431.171 119.083,410.171 134,391.5C 199.306,325.194 264.972,259.194 331,193.5C 345.241,176.315 354.407,156.648 358.5,134.5C 376.154,152.988 394.321,170.988 413,188.5C 422.048,199.213 430.714,210.213 439,221.5C 452.98,251.039 450.313,279.039 431,305.5C 369.473,367.361 307.639,428.861 245.5,490C 240.124,495.044 234.458,499.711 228.5,504C 221.551,508.038 214.217,510.538 206.5,511.5 Z'
+ />
+ </g>
+ </svg>
+ ),
+ paimon: props => (
+ <svg id='_图层_2' data-name='图层 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 218.61 218.61' {...props}>
+ <g id='_图层_1-2' data-name='图层 1'>
+ <g>
+ <path
+ fill='#0163e1'
+ d='m55.63,111.28c-3.51-10.04-11.49-18.15-21.95-21.65l-12.74-4.26h80.4c19.85-7.47,43.6-13.02,72.56-17.39l19.6-3.48,13.7-3.85C189.3,24.7,152.19,0,109.3,0,48.94,0,0,48.94,0,109.3c0,20.41,2.93,39.59,17.2,58.79,8.15-17.84,23.42-40.44,38.43-56.82Z'
+ />
+ <path
+ fill='#0163e1'
+ d='m182.4,72.57c-60.11,22.53-114.4,58.22-158.92,104.43,20.02,25.34,51.02,41.61,85.82,41.61,60.37,0,109.3-48.94,109.3-109.3,0-16.36-3.6-31.88-10.04-45.81l-26.17,9.08Z'
+ />
+ <path
+ fill='#e7e7e7'
+ d='m182.4,72.57l26.17-9.08c-.44-.95-.9-1.9-1.36-2.84l-13.7,3.85-17.66,1.02c-29.79,2.42-54.8,8.05-86.19,19.85H20.94l9,3.87c9.89,3.88,22.18,12,25.69,22.04-16.77,16.69-30.7,39.55-38.43,56.82,2.46,4.13,5.32,7.62,8.29,11.37,48.68-53.33,96.8-84.37,156.91-106.89Z'
+ />
+ </g>
+ </g>
+ </svg>
+ ),
+ hudi: props => (
+ <svg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000' viewBox='0 0 2000 2000' {...props}>
+ <g id='l65Z6PrNyXPHoWyqfb2ioux' fill='transparent' style={{ transform: 'none' }}>
+ <g style={{ transform: 'none' }}>
+ <path
+ id='pg3BNCSpi'
+ d='M0 1000 l0 -1000 1000 0 1000 0 0 1000 0 1000 -1000 0 -1000 0 0 -1000z m1529 553 c0 -5 -102 -212 -227 -461 l-228 -453 -22 46 c-20 42 -25 45 -60 45 l-38 0 -54 -110 c-30 -61 -57 -110 -60 -110 -4 0 -470 924 -470 933 0 1 59 1 130 -1 l130 -4 0 41 c0 23 -5 51 -10 62 -11 19 -2 19 450 19 253 0 460 -3 459 -7z m290 -154 l103 -84 -47 -14 -47 -15 6 -111 c8 -127 -5 -191 -56 -288 -82 -154 -302 -287 -433 -263 -32 6 -33 7 -23 45 l10 38 82 5 c102 7 177 41 242 110 68 73 96 142 102 254 2 50 2 108 -2 128 -6 31 -11 36 -35 36 -16 0 -47 -7 -70 -15 -39 -13 -42 -13 -37 3 3 9 19 67 36 127 17 61 34 118 36 128 4 12 10 15 17 9 7 -5 59 -46 116 -93z m-1587 -151 c13 -19 11 -27 -19 -87 -66 -129 -67 -286 -3 -418 46 -94 146 -173 218 -173 27 0 31 4 42 48 7 26 16 50 19 54 7 8 171 -204 171 -220 0 -6 -243 -92 -263 -92 -3 0 -2 12 3 26 6 14 10 42 10 62 0 34 -5 39 -48 63 -225 125 -326 365 -249 588 24 68 83 171 98 171 4 0 13 -10 21 -22z'
+ ></path>
+ </g>
+ </g>
+ <g id='l4ISrBZ99c0JhgybN4n19ck' fill='rgb(0,179,239)' style={{ transform: 'none' }}>
+ <g style={{ transform: 'none' }}>
+ <path
+ id='p7Z6YFxGZ'
+ d='M600 1479 c0 -9 -36 -10 -132 -5 -73 3 -138 3 -144 -1 -8 -6 71 -173 248 -526 226 -453 261 -517 274 -506 9 7 43 67 76 133 33 67 62 123 65 126 3 3 11 -4 19 -14 13 -18 14 -17 14 17 0 28 -46 129 -187 412 -164 327 -191 375 -210 375 -13 0 -23 -5 -23 -11z'
+ ></path>
+ <path
+ id='p1EBFuFvg5'
+ d='M166 1284 c-148 -189 -149 -478 -2 -665 38 -48 165 -147 206 -161 9 -3 6 -24 -10 -76 -12 -40 -20 -75 -18 -77 5 -5 369 114 381 124 7 7 -230 331 -242 331 -4 0 -19 -36 -32 -80 l-24 -79 -33 16 c-93 46 -163 143 -188 264 -22 105 5 218 72 307 l26 33 -26 37 c-14 20 -35 48 -45 61 l-18 24 -47 -59z'
+ ></path>
+ </g>
+ </g>
+ <g id='l3FOcDZejqb9IedW0GUPJgl' fill='rgb(0,78,127)' style={{ transform: 'none' }}>
+ <g style={{ transform: 'none' }}>
+ <path
+ id='p2hKcJKZD'
+ d='M596 1493 c6 -21 3 -22 -78 -26 l-83 -3 90 -2 90 -2 198 -395 c108 -217 201 -395 205 -394 4 0 92 172 195 382 185 377 210 440 175 452 -7 2 -189 6 -405 7 l-392 3 5 -22z'
+ ></path>
+ <path
+ id='pr5eCnF2i'
+ d='M1320 715 c0 -22 4 -25 35 -25 31 0 35 3 35 25 0 22 -4 25 -35 25 -31 0 -35 -3 -35 -25z'
+ ></path>
+ </g>
+ </g>
+ <g id='l4X0vkAF0oiG3FiqwZsEHPn' fill='rgb(47,91,127)' style={{ transform: 'none' }}>
+ <g style={{ transform: 'none' }}>
+ <path
+ id='pt5c96ejB'
+ d='M577 1538 l28 -53 375 -3 c206 -1 378 -6 383 -11 4 -4 -76 -177 -180 -384 l-187 -376 39 -81 39 -81 258 513 c141 282 257 516 257 521 1 4 -233 7 -520 7 l-520 0 28 -52z'
+ ></path>
+ </g>
+ </g>
+ <g id='l3TOeBmblHmtVFhNvh8YWyt' fill='rgb(1,56,104)' style={{ transform: 'none' }}>
+ <g style={{ transform: 'none' }}>
+ <path
+ id='pxcopblt3'
+ d='M1616 1369 c-32 -110 -55 -203 -52 -206 2 -3 39 6 80 20 l75 25 7 -35 c11 -57 -4 -161 -30 -219 -51 -111 -162 -195 -277 -210 -30 -4 -57 -12 -61 -18 -5 -8 -8 -7 -8 2 0 6 -11 12 -24 12 -20 0 -25 -8 -41 -65 -9 -36 -15 -68 -12 -71 13 -13 131 -16 189 -4 142 27 286 138 352 270 47 95 60 163 53 286 l-6 100 70 23 c38 12 69 24 69 25 0 3 -272 224 -316 258 -8 6 -29 -54 -68 -193z'
+ ></path>
+ </g>
+ </g>
+ </svg>
+ ),
+ lakehouse: props => (
+ <svg {...props} version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'>
+ {/* Gradient definitions */}
+ <defs>
+ {/* Ring gradient - cyan to green */}
+ <linearGradient id='lakehouse-ringGradient' x1='0%' y1='0%' x2='100%' y2='100%'>
+ <stop offset='0%' stopColor='#7DD8E8' />
+ <stop offset='50%' stopColor='#5BC4C4' />
+ <stop offset='100%' stopColor='#7AC27A' />
+ </linearGradient>
+ {/* Lake water gradient */}
+ <linearGradient id='lakehouse-lakeGradient' x1='0%' y1='0%' x2='0%' y2='100%'>
+ <stop offset='0%' stopColor='#1E5A8C' />
+ <stop offset='100%' stopColor='#0D3A5C' />
+ </linearGradient>
+ </defs>
+
+ {/* Outer ring with gradient fill */}
+ <circle cx='100' cy='100' r='95' fill='none' stroke='url(#lakehouse-ringGradient)' strokeWidth='5' />
+
+ {/* Content group - centered */}
+ <g transform='translate(100, 95)'>
+ {/* Hexagonal honeycomb house - left side (blue tones) */}
+ <polygon points='-22,-48 -14,-53 -6,-48 -6,-38 -14,-33 -22,-38' fill='#5BC4C4' />
+ <polygon points='-34,-38 -26,-43 -18,-38 -18,-28 -26,-23 -34,-28' fill='#6DD0D0' />
+ <polygon points='-22,-28 -14,-33 -6,-28 -6,-18 -14,-13 -22,-18' fill='#4DBABA' />
+ <polygon points='-46,-28 -38,-33 -30,-28 -30,-18 -38,-13 -46,-18' fill='#7DDCDC' />
+ <polygon points='-34,-18 -26,-23 -18,-18 -18,-8 -26,-3 -34,-8' fill='#5BC4C4' />
+
+ {/* Hexagonal honeycomb house - right side (green tones) */}
+ <polygon points='-10,-48 -2,-53 6,-48 6,-38 -2,-33 -10,-38' fill='#7AC27A' />
+ <polygon points='2,-48 10,-53 18,-48 18,-38 10,-33 2,-38' fill='#8CD08C' />
+ <polygon points='14,-38 22,-43 30,-38 30,-28 22,-23 14,-28' fill='#9EDA9E' />
+ <polygon points='-10,-28 -2,-33 6,-28 6,-18 -2,-13 -10,-18' fill='#6AB86A' />
+ <polygon points='2,-28 10,-33 18,-28 18,-18 10,-13 2,-18' fill='#7AC27A' />
+ <polygon points='14,-18 22,-23 30,-18 30,-8 22,-3 14,-8' fill='#8CD08C' />
+
+ {/* Middle transition hexagons */}
+ <polygon points='-22,-58 -14,-63 -6,-58 -6,-48 -14,-43 -22,-48' fill='#68C8A0' />
+ <polygon points='-10,-58 -2,-63 6,-58 6,-48 -2,-43 -10,-48' fill='#6AC69A' />
+ <polygon points='2,-38 10,-43 18,-38 18,-28 10,-23 2,-28' fill='#7CC47C' />
+
+ {/* Orange arrow pointing up */}
+ <polygon points='0,-35 8,-20 3,-20 3,-10 -3,-10 -3,-20 -8,-20' fill='#E67E22' />
+
+ {/* White platform/boat */}
+ <path d='M-40,5 L40,5 L35,13 L-35,13 Z' fill='#FFFFFF' />
+
+ {/* Lake body - natural organic shape */}
+ <path
+ d='M-50,18
+ C-52,22 -48,28 -42,32
+ C-35,37 -25,42 -10,44
+ C5,46 20,45 32,42
+ C42,39 50,34 52,28
+ C54,22 50,16 42,14
+ C30,11 15,10 0,10
+ C-20,10 -35,12 -45,15
+ C-50,17 -50,18 -50,18 Z'
+ fill='url(#lakehouse-lakeGradient)'
+ />
+
+ {/* Water ripples - left */}
+ <path d='M-55,12 Q-50,10 -45,12' fill='none' stroke='#7DD8E8' strokeWidth='1.5' />
+ <path d='M-58,20 Q-52,17 -46,20' fill='none' stroke='#7DD8E8' strokeWidth='1.5' />
+
+ {/* Water ripples - right */}
+ <path d='M45,12 Q50,10 55,12' fill='none' stroke='#7DD8E8' strokeWidth='1.5' />
+ <path d='M46,20 Q52,17 58,20' fill='none' stroke='#7DD8E8' strokeWidth='1.5' />
+
+ {/* Wave lines on lake surface */}
+ <path
+ d='M-25,22 Q-15,19 -5,22 Q5,25 15,22 Q25,19 30,22'
+ fill='none'
+ stroke='#3A7CA5'
+ strokeWidth='1'
+ opacity='0.6'
+ />
+ <path
+ d='M-20,30 Q-10,27 0,30 Q10,33 20,30 Q28,27 32,30'
+ fill='none'
+ stroke='#3A7CA5'
+ strokeWidth='1'
+ opacity='0.5'
+ />
+ <path d='M-15,38 Q-5,36 5,38 Q15,40 22,38' fill='none' stroke='#3A7CA5' strokeWidth='1' opacity='0.4' />
+ </g>
+
+ {/* LAKEHOUSE text label */}
+ <text
+ x='100'
+ y='170'
+ textAnchor='middle'
+ fontSize='12'
+ fontWeight='bold'
+ fontFamily='Arial, sans-serif'
+ fill='#4A5568'
+ >
+ LAKEHOUSE
+ </text>
+ </svg>
+ ),
+ oceanbase: props => (
+ <svg
+ id='outputsvg'
+ xmlns='http://www.w3.org/2000/svg'
+ {...props}
+ style={{
+ transform: 'matrix(1, 0, 0, 1, 0, 0)',
+ transformOrigin: '50% 50%',
+ cursor: 'move',
+ maxHeight: 'none',
+ transition: 'transform 200ms ease-in-out 0s'
+ }}
+ width='280'
+ height='280'
+ viewBox='0 0 2800 2800'
+ >
+ <g id='l1FLkn6jgqwOe1OQbCdWskk' fill='rgb(1,129,253)' style={{ transform: 'none' }}>
+ <g style={{ transform: 'none' }}>
+ <path
+ id='pqCWjVUON'
+ d='M338 1933 c-17 -4 -18 -31 -18 -383 l0 -378 148 5 c251 9 542 -36 827 -127 222 -71 357 -103 560 -135 136 -22 427 -38 548 -30 l107 7 0 382 0 382 -159 -4 c-163 -4 -323 7 -478 33 -83 14 -374 94 -418 115 -21 10 -164 47 -280 74 -104 23 -245 44 -380 56 -118 10 -423 12 -457 3z'
+ ></path>
+ </g>
+ </g>
+ <g id='l3Tw7sWw6PeBNAiRP2RWbkL' fill='rgb(7,200,70)' style={{ transform: 'none' }}>
+ <g style={{ transform: 'none' }}>
+ <path
+ id='p18iitp5Ia'
+ d='M1509 2094 c-27 -70 -66 -200 -63 -206 7 -11 251 -88 348 -109 215 -48 552 -73 679 -53 l37 7 0 123 0 124 -132 -6 c-279 -14 -552 33 -845 143 -7 3 -18 -8 -24 -23z'
+ ></path>
+ </g>
+ </g>
+ <g id='l25zI63SdRTqq2xRblRuhKG' fill='rgb(255,160,5)' style={{ transform: 'none' }}>
+ <g style={{ transform: 'none' }}>
+ <path
+ id='pecUtCUzo'
+ d='M320 970 l0 -132 33 6 c84 17 219 18 362 1 142 -16 378 -59 400 -73 5 -4 52 -21 103 -38 108 -35 97 -43 137 91 15 50 30 95 32 101 7 18 -229 94 -407 132 -156 32 -179 34 -412 39 l-248 5 0 -132z'
+ ></path>
+ </g>
+ </g>
+ </svg>
+ ),
+ starrocks: props => (
+ <svg version='1.1' width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' {...props}>
+ <g id='starrocks'>
+ <g>
+ <path
+ style={{ fill: '#01808F' }}
+ d='M11.8,26.4c-0.1,2.2,0.9,3.4,2.3,4.5c9,7.4,18,14.8,27,22.2c2.5,2.1,2.7,3.5,1,6.2
+ c-4.4,6.7-8.8,13.4-13.2,20.1c-1.7,2.5-3.2,2.9-5.9,1.4c-2.8-1.6-5.6-3.2-8.4-4.8c-3.2-1.8-4.8-4.6-4.8-8.3c0-11.8,0-23.6,0-35.5
+ C9.8,30.2,10.3,28.4,11.8,26.4z'
+ />
+ <path
+ style={{ fill: '#01808F' }}
+ d='M87.9,73.8c0.6-2.3-0.5-3.5-1.9-4.6c-9-7.4-17.9-14.7-26.8-22.1c-2.9-2.4-3.1-3.6-1.1-6.7
+ c4.3-6.6,8.7-13.2,13-19.8c1.7-2.6,3.3-2.9,6-1.4c2.8,1.6,5.6,3.2,8.3,4.8c3.2,1.8,4.7,4.5,4.7,8.2c0,11.9,0,23.7,0,35.6
+ C90.2,69.9,89.6,71.9,87.9,73.8z'
+ />
+ <path
+ style={{ fill: '#01808F' }}
+ d='M67.1,56.8c0.6,0.4,17.3,14.1,17.5,14.3c2.4,2.2,2.2,4.1-0.6,5.8C76.8,81,57.3,92.1,54.8,93.6
+ c-3.2,1.9-6.4,1.9-9.6,0c-4.6-2.7-9.2-5.3-13.8-8c-2.2-1.3-2.2-2.7,0-3.9C42.3,75.5,53.1,69.2,64,63
+ C66.5,61.6,68.2,60.1,67.1,56.8z'
+ />
+ <path
+ style={{ fill: '#FEBD02' }}
+ d='M32.9,43.2c-0.6-0.4-17.3-14.1-17.5-14.3c-2.4-2.2-2.2-4.1,0.6-5.8C23.2,19,42.7,7.9,45.2,6.4
+ c3.2-1.9,6.4-1.9,9.6,0c4.6,2.7,9.2,5.3,13.8,8c2.2,1.3,2.2,2.7,0,3.9C57.7,24.5,46.9,30.8,36,37C33.5,38.4,31.8,39.9,32.9,43.2z'
+ />
+ </g>
+ </g>
+ </svg>
+ ),
+ lineage: props => (
+ <svg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 400 300' {...props}>
+ <g>
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M122.2,67.1l45.5,90.9c5.8-11.7,17.9-19.6,31.3-19.9l-49-98.1C146.8,53.6,136,64.3,122.2,67.1z'
+ />
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M284.7,129.1c-0.1,0-0.2,0-0.3,0l55.8,118.8c6.6-9.8,17.6-15.9,29.7-15.9c1.2,0,2.5,0.1,3.7,0.2l-57.3-122
+ C310.1,121.7,298.1,129.1,284.7,129.1z'
+ />
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M235,169.1l37.9-42c-12.6-4.4-21.7-15.7-23.6-28.9l-37.9,42C224,144.6,233.2,155.9,235,169.1z'
+ />
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M56.5,244.6L115,67.9c-14,0-26.3-8.3-32.1-20.3L21.5,232.9c2.6-0.6,5.2-0.9,7.9-0.9
+ C39.9,232,49.8,236.8,56.5,244.6z'
+ />
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M1.7,267.8c0,15.3,12.4,27.7,27.7,27.7c15.3,0,27.7-12.4,27.7-27.7c0-5.1-1.4-9.8-3.7-13.9c-0.6-1-1.3-2-2-3
+ c-5.1-6.6-13-10.9-22-10.9c-3.9,0-7.6,0.8-11,2.3C8.6,246.6,1.7,256.4,1.7,267.8z'
+ />
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M107.1,58.7c2.5,0.8,5.2,1.2,7.9,1.2c0.9,0,1.8-0.1,2.6-0.1c0.3,0,0.5-0.1,0.8-0.1c3.4-0.4,6.7-1.5,9.6-3
+ c0.7-0.4,1.4-0.8,2.1-1.3c5.5-3.6,9.7-9.1,11.6-15.6c0.7-2.4,1.1-5,1.1-7.6c0-3.5-0.7-6.9-1.9-10c-0.6-1.6-1.4-3.2-2.3-4.7
+ C133.7,9.7,125,4.4,115,4.4c-8.4,0-16,3.8-21.1,9.8c-4.1,4.8-6.6,11.1-6.6,18c0,0.6,0.1,1.2,0.1,1.8
+ C88.1,45.7,96.2,55.5,107.1,58.7z'
+ />
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M171.9,173.9c0,15.3,12.4,27.7,27.7,27.7c13.9,0,25.4-10.3,27.4-23.7c0.2-1.3,0.3-2.7,0.3-4
+ c0-2.5-0.3-4.9-0.9-7.2c-2.7-9.9-10.8-17.7-20.9-19.9c-0.8-0.2-1.7-0.3-2.5-0.4c-1.1-0.1-2.2-0.2-3.4-0.2
+ c-13.2,0-24.3,9.3-27.1,21.7C172.1,169.8,171.9,171.8,171.9,173.9z'
+ />
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M278.8,120.5c0.5,0.1,1.1,0.2,1.6,0.3c1.4,0.2,2.8,0.4,4.2,0.4c2.4,0,4.8-0.3,7-0.9c0.7-0.2,1.5-0.4,2.2-0.7
+ c1.4-0.5,2.8-1.1,4.1-1.9c0.7-0.4,1.3-0.8,1.9-1.2c1.3-0.8,2.4-1.8,3.5-2.8c0.5-0.5,1.1-1,1.6-1.6c3-3.3,5.3-7.4,6.4-11.9
+ c0.6-2.2,0.9-4.5,0.9-6.9c0-15.3-12.4-27.7-27.7-27.7c-13.9,0-25.4,10.3-27.4,23.7c-0.2,1.3-0.3,2.7-0.3,4
+ C257,106.7,266.3,117.8,278.8,120.5z'
+ />
+ <path
+ fill={props.color || '#FFFFFF'}
+ d='M377.7,241.2c-2.5-0.7-5.1-1.2-7.9-1.2c-11.4,0-21.2,6.9-25.5,16.8c-1.4,3.4-2.3,7.1-2.3,10.9
+ c0,15.3,12.4,27.7,27.7,27.7s27.7-12.4,27.7-27.7C397.5,255.2,389.1,244.6,377.7,241.2z'
+ />
+ </g>
+ </svg>
+ ),
+ Keycloak: props => (
+ <svg {...props} xmlns='http://www.w3.org/2000/svg' width='167.117' height='150.658' viewBox='0 0 44.216 39.861'>
+ <path
+ d='m88.61 138.456 5.716-9.865 23.018-.004 5.686 9.965.007 19.932-5.691 9.957-23.012.008-5.782-9.965z'
+ style={{ display: 'inline', fill: '#4d4d4d', fillOpacity: 1, strokeWidth: '.264583' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='M88.552 158.481h10.375l-5.699-10.041 4.634-9.982-9.252-.002-5.795 10.065'
+ style={{ fill: '#ededed', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='M102.073 158.481h7.582l6.706-9.773-6.589-10.156h-8.921l-5.373 9.814z'
+ style={{ fill: '#e0e0e0', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='m82.815 148.52 5.738 9.964h10.374l-5.636-9.93z'
+ style={{ fill: '#acacac', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='m95.589 148.522 6.484 9.963h7.582l6.601-9.959z'
+ style={{ fill: '#9e9e9e', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='m98.157 148.529-1.958.569-1.877-.572 7.667-13.288 1.918 3.316'
+ style={{ fill: '#00b8e3', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='m103.9 158.482-1.909 3.332-5.093-5.487-2.58-7.797v-.004h3.838'
+ style={{ fill: '#33c6e9', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='M94.322 148.526h-.003v.003l-1.918 3.322-1.925-3.307 1.952-3.386 5.728-9.92h3.834'
+ style={{ fill: '#008aaa', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='M115.42 158.481h11.611l-.007-19.93h-11.605z'
+ style={{ fill: '#d4d4d4', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='M115.42 148.554v9.93h11.59v-9.93z'
+ style={{ fill: '#919191', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='M101.992 161.817h-3.836l-5.755-9.966 1.918-3.321z'
+ style={{ fill: '#00b8e3', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='m117.333 148.526-7.669 13.289c-.705-1.036-1.913-3.331-1.913-3.331l5.753-9.959z'
+ style={{ fill: '#008aaa', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='m113.495 161.815-3.831-.001 7.67-13.288 1.917-3.317 1.921 3.34m-3.839-.023h-3.828l-5.755-9.973 1.905-3.314 4.658 5.922z'
+ style={{ fill: '#00b8e3', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ <path
+ d='M119.25 145.205v.003l-1.917 3.318-7.677-13.286 3.841.002z'
+ style={{ fill: '#33c6e9', fillOpacity: 1, fillRule: 'nonzero', stroke: 'none', strokeWidth: '.330729' }}
+ transform='translate(-82.815 -128.588)'
+ />
+ </svg>
+ )
+}
+
+export default Icons
diff --git a/web-v2/web/src/components/LeftNavForCompliance.js b/web-v2/web/src/components/LeftNavForCompliance.js
new file mode 100644
index 0000000000..8799636e1f
--- /dev/null
+++ b/web-v2/web/src/components/LeftNavForCompliance.js
@@ -0,0 +1,89 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React, { useEffect, useState } from 'react'
+import { useRouter } from 'next/navigation'
+import { Menu } from 'antd'
+import { ROUTES } from '@/config/routes'
+import { usePathname, useSearchParams } from 'next/navigation'
+
+export default function LeftNav() {
+ const [NavItems, setItems] = useState([])
+ const router = useRouter()
+ const pathname = usePathname()
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+
+ useEffect(() => {
+ if (pathname.startsWith('/compliance')) {
+ setItems([
+ {
+ key: ROUTES.Tags,
+ label: 'Tags'
+ },
+ {
+ key: ROUTES.Policies,
+ label: 'Policies'
+ },
+ {
+ key: ROUTES.RowFilters,
+ label: 'Row Filters',
+ disabled: true
+ },
+ {
+ key: ROUTES.ColumnMasks,
+ label: 'Column Masks',
+ disabled: true
+ }
+ ])
+ } else if (pathname.startsWith('/access')) {
+ setItems([
+ {
+ key: ROUTES.Users,
+ label: 'Users'
+ },
+ {
+ key: ROUTES.UserGroups,
+ label: 'User Groups'
+ },
+ {
+ key: ROUTES.Roles,
+ label: 'Roles'
+ }
+ ])
+ }
+ }, [pathname])
+
+ const onClick = menuItem => {
+ router.push(`${menuItem.key}?metalake=${currentMetalake}`)
+ }
+
+ return (
+ <Menu
+ mode='inline'
+ onClick={onClick}
+ selectedKeys={[pathname]}
+ style={{ width: 200 }}
+ className='h-full'
+ items={NavItems}
+ />
+ )
+}
diff --git a/web-v2/web/src/components/Loading.js b/web-v2/web/src/components/Loading.js
new file mode 100644
index 0000000000..2873631e4f
--- /dev/null
+++ b/web-v2/web/src/components/Loading.js
@@ -0,0 +1,34 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import React from 'react'
+
+import { Spin } from 'antd'
+
+const Loading = () => {
+ return (
+ <div className='z-50 flex h-screen w-screen items-center justify-center overflow-hidden'>
+ <Spin />
+ </div>
+ )
+}
+
+export default Loading
diff --git a/web-v2/web/src/components/PolicyTag.js b/web-v2/web/src/components/PolicyTag.js
new file mode 100644
index 0000000000..b795f53596
--- /dev/null
+++ b/web-v2/web/src/components/PolicyTag.js
@@ -0,0 +1,206 @@
+/*
+ * 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 React, { useEffect, useRef, useState } from 'react'
+import { useRouter } from 'next/navigation'
+import { LockOutlined, PlusOutlined } from '@ant-design/icons'
+import { Flex, Select, Space, Tag, Tooltip, theme } from 'antd'
+import { cn } from '@/lib/utils/tailwind'
+import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore'
+import { associatePolicy } from '@/lib/store/policies'
+import { getCurrentEntityPolicies } from '@/lib/store/metalakes'
+import { useSearchParams } from 'next/navigation'
+
+const tagInputStyle = {
+ width: 100,
+ height: 22,
+ marginInlineEnd: 8,
+ verticalAlign: 'top'
+}
+
+export default function PolicyTag({ ...props }) {
+ const { readOnly, metadataObjectType, metadataObjectFullName } = props
+ const { token } = theme.useToken()
+ const [inputVisible, setInputVisible] = useState(false)
+ const [optionList, setOptionList] = useState([])
+ const inputRef = useRef(null)
+ const router = useRouter()
+ const store = useAppSelector(state => state.policies)
+ const dispatch = useAppDispatch()
+ const [policiesForEntity, setPoliciesForEntity] = useState([])
+ const searchParams = useSearchParams()
+ const currentMetalake = searchParams.get('metalake')
+
+ const getPoliciesForEntity = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityPolicies({ metalake: currentMetalake, metadataObjectType, metadataObjectFullName, details: true })
+ )
+
+ return payload?.policies || []
+ }
+
+ useEffect(() => {
+ const initLoad = async () => {
+ const policies = await getPoliciesForEntity()
+ setPoliciesForEntity(policies)
+ }
+ if (currentMetalake && metadataObjectType && metadataObjectFullName) {
+ initLoad()
+ }
+ }, [metadataObjectType, metadataObjectFullName])
+
+ useEffect(() => {
+ if (inputVisible) {
+ const options =
+ store.policiesData?.filter(
+ policyOption => !policiesForEntity?.map(policy => policy.name)?.includes(policyOption.name)
+ ) || []
+ setOptionList(options)
+ inputRef.current?.focus()
+ }
+ }, [inputVisible, policiesForEntity])
+
+ const showInput = () => {
+ setInputVisible(true)
+ }
+
+ const tagRender = props => {
+ const { value, closable, onClose } = props
+
+ const onPreventMouseDown = event => {
+ event.preventDefault()
+ event.stopPropagation()
+ }
+
+ return (
+ <Tag
+ className='text-defaultPrimary'
+ onMouseDown={onPreventMouseDown}
+ closable={closable}
+ onClose={onClose}
+ style={{ marginInlineEnd: 4 }}
+ >
+ {value}
+ </Tag>
+ )
+ }
+
+ const handleChange = async value => {
+ if (value && !policiesForEntity?.map(policy => policy.name)?.includes(value)) {
+ await dispatch(
+ associatePolicy({
+ metalake: currentMetalake,
+ metadataObjectType,
+ metadataObjectFullName,
+ data: { policiesToAdd: [value] }
+ })
+ )
+ const policies = await getPoliciesForEntity()
+ setPoliciesForEntity(policies)
+ }
+ setInputVisible(false)
+ }
+
+ const handleClose = async removedPolicy => {
+ await dispatch(
+ associatePolicy({
+ metalake: currentMetalake,
+ metadataObjectType,
+ metadataObjectFullName,
+ data: { policiesToRemove: [removedPolicy] }
+ })
+ )
+ const policies = await getPoliciesForEntity()
+ setPoliciesForEntity(policies)
+ }
+
+ const handleBlur = () => {
+ setInputVisible(false)
+ }
+
+ const handleClick = name => () => {
+ router.push(`/metadataObjectsForPolicy?policy=${name}&metalake=${currentMetalake}`)
+ }
+
+ const tagPlusStyle = {
+ height: 22,
+ background: token.colorBgContainer,
+ borderStyle: 'dashed'
+ }
+
+ return (
+ <Flex gap='4px 0' wrap>
+ {policiesForEntity?.map((policy, index) => {
+ const isLongPolicy = policy.name.length > 20
+ let color = policy.enabled ? token.colorPrimary : token.colorTextDisabled
+
+ const policyElem = (
+ <Tag
+ key={policy.name + index}
+ color={color}
+ closable={!policy.inherited}
+ icon={policy.inherited ? <LockOutlined /> : null}
+ onClick={handleClick(policy.name)}
+ className='cursor-pointer'
+ style={{ userSelect: 'none' }}
+ onClose={() => handleClose(policy.name)}
+ >
+ <span>{isLongPolicy ? `${policy.name.slice(0, 20)}...` : policy.name}</span>
+ </Tag>
+ )
+
+ return isLongPolicy ? (
+ <Tooltip title={policy.name} key={policy.name}>
+ {policyElem}
+ </Tooltip>
+ ) : (
+ policyElem
+ )
+ })}
+ {policiesForEntity?.length === 0 && <span>No Policies</span>}
+ {inputVisible && !readOnly && (
+ <Select
+ size='small'
+ tagRender={tagRender}
+ ref={inputRef}
+ style={tagInputStyle}
+ onChange={handleChange}
+ onBlur={handleBlur}
+ >
+ {optionList.map(policy => (
+ <Select.Option value={policy.name} key={policy.name}>
+ <Space>
+ <span
+ className='tag-swatch'
+ style={{ backgroundColor: policy.enabled ? token.colorPrimary : token.colorTextDisabled }}
+ ></span>
+ <span>{policy.name}</span>
+ </Space>
+ </Select.Option>
+ ))}
+ </Select>
+ )}
+ {!inputVisible && !readOnly && (
+ <Tag style={tagPlusStyle} icon={<PlusOutlined />} onClick={showInput}>
+ Associate Policy
+ </Tag>
+ )}
+ </Flex>
+ )
+}
diff --git a/web-v2/web/src/components/PropertiesContent.js b/web-v2/web/src/components/PropertiesContent.js
new file mode 100644
index 0000000000..ce1ad551b0
--- /dev/null
+++ b/web-v2/web/src/components/PropertiesContent.js
@@ -0,0 +1,62 @@
+/*
+ * 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 React from 'react'
+import { Space } from 'antd'
+import { sanitizeText } from '@/lib/utils/index'
+
+const PropertiesContent = ({ properties, dataReferPrefix, contentDataRefer }) => {
+ const entries = properties ? Object.entries(properties) : []
+
+ const keyProps = key => (dataReferPrefix ? { 'data-refer': `${dataReferPrefix}-key-${key}` } : {})
+ const valueProps = key => (dataReferPrefix ? { 'data-refer': `${dataReferPrefix}-value-${key}` } : {})
+ const contentProps = contentDataRefer ? { 'data-refer': contentDataRefer } : {}
+
+ return (
+ <Space.Compact className='max-h-80 overflow-auto' {...contentProps}>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='min-w-24 bg-gray-100 p-1'>Key</span>
+ {entries.map(([key]) => (
+ <span className='p-1 block min-w-24 max-w-60 truncate' title={key} key={`prop-key-${key}`} {...keyProps(key)}>
+ {key}
+ </span>
+ ))}
+ </Space.Compact>
+ <Space.Compact direction='vertical' className='divide-y border-gray-100'>
+ <span className='min-w-24 bg-gray-100 p-1'>Value</span>
+ {entries.map(([key, value]) => {
+ const safeValue = sanitizeText(value) || '-'
+
+ return (
+ <span
+ className='p-1 block min-w-24 max-w-60 truncate'
+ title={safeValue}
+ key={`prop-val-${key}`}
+ {...valueProps(key)}
+ >
+ {safeValue}
+ </span>
+ )
+ })}
+ </Space.Compact>
+ </Space.Compact>
+ )
+}
+
+export default PropertiesContent
diff --git a/web-v2/web/src/components/SectionContainer.js b/web-v2/web/src/components/SectionContainer.js
new file mode 100644
index 0000000000..fbee611084
--- /dev/null
+++ b/web-v2/web/src/components/SectionContainer.js
@@ -0,0 +1,30 @@
+/*
+ * 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 { ReactNode } from 'react'
+
+import { cn } from '@/lib/utils/tailwind'
+
+export default function SectionContainer({ children, classProps }) {
+ return (
+ <section className={cn('container absolute inset-0 size-full gap-0 pb-8 pt-6 md:py-10', classProps)}>
+ {children}
+ </section>
+ )
+}
diff --git a/web-v2/web/src/components/SecurableObjectFormFields.js b/web-v2/web/src/components/SecurableObjectFormFields.js
new file mode 100644
index 0000000000..d754beaca5
--- /dev/null
+++ b/web-v2/web/src/components/SecurableObjectFormFields.js
@@ -0,0 +1,964 @@
+/*
+ * 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 React, { useEffect, useLayoutEffect, useState, useRef } from 'react'
+import { Form, Input, Select, Checkbox, Spin } from 'antd'
+import { to } from '@/lib/utils'
+import { useAppDispatch, useAppSelector } from '@/lib/hooks/useStore'
+import {
+ fetchCatalogs,
+ fetchSchemas,
+ fetchTables,
+ fetchFilesets,
+ fetchTopics,
+ fetchModels
+} from '@/lib/store/metalakes'
+import { fetchTags } from '@/lib/store/tags'
+import { fetchPolicies } from '@/lib/store/policies'
+import { fetchJobTemplates } from '@/lib/store/jobs'
+import { privilegeTypes, privilegeOptions } from '@/config/security'
+
+export default function SecurableObjectFormFields({ fieldName, fieldKey, metalake }) {
+ const form = Form.useFormInstance()
+ const getFieldValue = form.getFieldValue.bind(form)
+ const setFieldValue = form.setFieldValue.bind(form)
+ const setFieldsValue = form.setFieldsValue.bind(form)
+ const { Option, OptGroup } = Select
+ const currentType = getFieldValue(['securableObjects', fieldName, 'type'])
+ const currentFullRaw = getFieldValue(['securableObjects', fieldName, 'fullName'])
+ const currentFull = String(currentFullRaw || '')
+ const displayValue = currentFull
+ const dispatch = useAppDispatch()
+ const store = useAppSelector(state => state.metalakes)
+
+ const parts = String(currentFull || '')
+ .split('.')
+ .filter(Boolean)
+
+ // remote options are now managed by SecurableObjectFormFields
+ const [searchTextMap, setSearchTextMap] = useState({})
+ const [privilegeGroupsMap, setPrivilegeGroupsMap] = useState({})
+ const [privilegeGroupsLoading, setPrivilegeGroupsLoading] = useState({})
+
+ const [schemasOptions, setSchemasOptions] = useState([])
+ const [schemasLoading, setSchemasLoading] = useState(false)
+ const [resourcesOptions, setResourcesOptions] = useState([])
+ const [resourcesLoading, setResourcesLoading] = useState(false)
+
+ // local selections for this form row (so we can set fullName only after both chosen)
+ const [localCatalogVal, setLocalCatalogVal] = useState(undefined)
+ const [localSchemaVal, setLocalSchemaVal] = useState(undefined)
+ const skipSyncRef = useRef(false)
+ const isTypeChanging = useRef(false)
+ const [localResourceVal, setLocalResourceVal] = useState(undefined)
+
+ const [localRemoteOptions, setLocalRemoteOptions] = useState({})
+ const [localRemoteLoading, setLocalRemoteLoading] = useState({})
+ const catalogOptions = localRemoteOptions['catalog'] || []
+ const rootRef = useRef(null)
+
+ const isElementVisibleInViewport = el => {
+ if (!el) return true
+ const rect = el.getBoundingClientRect()
+
+ return rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight)
+ }
+
+ useEffect(() => {
+ const handleScrollOrResize = () => {
+ const activeEl = document.activeElement
+ if (!activeEl || !rootRef.current) return
+
+ const isFormControl =
+ activeEl.getAttribute?.('role') === 'combobox' || ['INPUT', 'TEXTAREA'].includes(activeEl.tagName)
+
+ if (isFormControl && rootRef.current.contains(activeEl) && !isElementVisibleInViewport(activeEl)) {
+ activeEl.blur()
+ }
+ }
+
+ window.addEventListener('scroll', handleScrollOrResize, true)
+ window.addEventListener('resize', handleScrollOrResize, true)
+
+ return () => {
+ window.removeEventListener('scroll', handleScrollOrResize, true)
+ window.removeEventListener('resize', handleScrollOrResize, true)
+ }
+ }, [])
+
+ const loadOptionsForType = async type => {
+ if (!metalake) return
+ const t = String(type || '').toLowerCase()
+
+ // avoid duplicate loads
+ if (localRemoteOptions[t]) return
+ setLocalRemoteLoading(prev => ({ ...prev, [t]: true }))
+ try {
+ let res
+ if (t === 'catalog') {
+ const [err, r] = await to(dispatch(fetchCatalogs({ metalake })))
+ if (err || !r) return
+ res = (r?.payload?.catalogs || []).map(c => ({ label: c.name, value: c.name, catalogType: c.type }))
+ } else if (t === 'tag') {
+ const [err, r] = await to(dispatch(fetchTags({ metalake, details: true })))
+ if (err || !r) return
+ res = (r?.payload?.tags || []).map(tg => ({ label: tg.name, value: tg.name }))
+ } else if (t === 'policy') {
+ const [err, r] = await to(dispatch(fetchPolicies({ metalake, details: true })))
+ if (err || !r) return
+ res = (r?.payload?.policies || []).map(p => ({ label: p.name, value: p.name }))
+ } else if (t === 'job_template' || t === 'job template') {
+ const [err, r] = await to(dispatch(fetchJobTemplates({ metalake, details: true })))
+ if (err || !r) return
+ res = (r?.payload?.jobTemplatesRes?.jobTemplates || []).map(j => ({ label: j.name, value: j.name }))
+ }
+
+ if (res) setLocalRemoteOptions(prev => ({ ...prev, [t]: res }))
+ } finally {
+ setLocalRemoteLoading(prev => ({ ...prev, [t]: false }))
+ }
+ }
+
+ const loadPrivilegeGroupsForField = async (fieldKey, type, catalogName) => {
+ if (!type) return
+
+ // Normalize type for consistent comparisons
+ const t = String(type || '').toLowerCase()
+
+ // Always compute privilege groups for the current type/catalogName
+ // (do not short-circuit based on an existing cached value for this field)
+ setPrivilegeGroupsLoading(prev => ({ ...prev, [fieldKey]: true }))
+ try {
+ const groups = await getPrivilegeGroupsForType(t, catalogName)
+
+ // transform groups into AntD Select grouped options if they are already in that shape
+ setPrivilegeGroupsMap(prev => ({ ...prev, [fieldKey]: groups }))
+ } finally {
+ setPrivilegeGroupsLoading(prev => ({ ...prev, [fieldKey]: false }))
+ }
+ }
+
+ const getCatalogTypeForName = async catalogName => {
+ if (!catalogName) return null
+
+ const cachedType =
+ catalogOptions.find(c => c.value === catalogName)?.catalogType ||
+ store.catalogs.find(c => c.value === catalogName)?.catalogType
+ if (cachedType) return cachedType
+
+ const [err, res] = await to(dispatch(fetchCatalogs({ metalake })))
+ if (err || !res) return null
+
+ const catalogs = res?.payload?.catalogs || []
+ const matched = catalogs.find(c => c.name === catalogName)
+
+ if (matched?.type) {
+ setLocalRemoteOptions(prev => ({
+ ...prev,
+ catalog: catalogs.map(c => ({ label: c.name, value: c.name, catalogType: c.type }))
+ }))
+ }
+
+ return matched?.type || null
+ }
+
+ const getPrivilegeGroupsForType = async (type, catalogName) => {
+ if (!type) return []
+
+ if (type === 'metalake') {
+ return privilegeOptions
+ }
+
+ const groups = []
+
+ if (type === 'catalog') {
+ // Always include Catalog and Schema groups if present
+ const catalogGroup = privilegeOptions.find(g => g.label === 'Catalog privileges')
+ const schemaGroup = privilegeOptions.find(g => g.label === 'Schema privileges')
+
+ // For Catalog type, only include the 'Use Catalog' privilege from Catalog privileges
+ if (catalogGroup) {
+ const useCatalogOptions = (catalogGroup.options || []).filter(
+ o => o.label === 'Use Catalog' || o.value === 'use_catalog'
+ )
+ if (useCatalogOptions.length > 0) groups.push({ label: catalogGroup.label, options: useCatalogOptions })
+ }
+ if (schemaGroup) groups.push(schemaGroup)
+
+ // If we have a cached catalog type, append the corresponding resource group
+ const catalogType = await getCatalogTypeForName(catalogName)
+
+ if (catalogType) {
+ if (catalogType === 'relational') {
+ const tableGroup = privilegeOptions.find(g => g.label === 'Table privileges')
+ tableGroup && groups.push(tableGroup)
+ } else if (catalogType === 'messaging') {
+ const topicGroup = privilegeOptions.find(g => g.label === 'Topic privileges')
+ topicGroup && groups.push(topicGroup)
+ } else if (catalogType === 'fileset') {
+ const filesetGroup = privilegeOptions.find(g => g.label === 'Fileset privileges')
+ filesetGroup && groups.push(filesetGroup)
+ } else if (catalogType === 'model') {
+ const modelGroup = privilegeOptions.find(g => g.label === 'Model privileges')
+ modelGroup && groups.push(modelGroup)
+ }
+ }
+
+ return groups
+ }
+
+ if (type === 'schema') {
+ const schemaGroup = privilegeOptions.find(g => g.label === 'Schema privileges')
+ if (schemaGroup) {
+ const useSchemaOptions = schemaGroup.options.filter(o => o.label === 'Use Schema' || o.value === 'use_schema')
+ if (useSchemaOptions.length > 0) groups.push({ label: schemaGroup.label, options: useSchemaOptions })
+ }
+
+ const catalogType = await getCatalogTypeForName(catalogName)
+ if (catalogType) {
+ if (catalogType === 'relational') {
+ const tableGroup = privilegeOptions.find(g => g.label === 'Table privileges')
+ tableGroup && groups.push(tableGroup)
+ } else if (catalogType === 'messaging') {
+ const topicGroup = privilegeOptions.find(g => g.label === 'Topic privileges')
+ topicGroup && groups.push(topicGroup)
+ } else if (catalogType === 'fileset') {
+ const filesetGroup = privilegeOptions.find(g => g.label === 'Fileset privileges')
+ filesetGroup && groups.push(filesetGroup)
+ } else if (catalogType === 'model') {
+ const modelGroup = privilegeOptions.find(g => g.label === 'Model privileges')
+ modelGroup && groups.push(modelGroup)
+ }
+ }
+
+ return groups
+ }
+
+ if (type === 'tag') {
+ const tagGroup = privilegeOptions.find(g => g.label === 'Tag privileges')
+ if (!tagGroup) return []
+ const applyOnly = (tagGroup.options || []).filter(o => o.label === 'Apply Tag' || o.value === 'apply_tag')
+
+ return applyOnly.length > 0 ? [{ label: tagGroup.label, options: applyOnly }] : []
+ }
+
+ if (type === 'policy') {
+ const policyGroup = privilegeOptions.find(g => g.label === 'Policy privileges')
+ if (!policyGroup) return []
+
+ const applyOnly = (policyGroup.options || []).filter(
+ o => o.label === 'Apply Policy' || o.value === 'apply_policy'
+ )
+
+ return applyOnly.length > 0 ? [{ label: policyGroup.label, options: applyOnly }] : []
+ }
+
+ if (type === 'job_template') {
+ const jtGroup = privilegeOptions.find(g => g.label === 'Job Template privileges')
+ if (!jtGroup) return []
+
+ const useOnly = (jtGroup.options || []).filter(
+ o => o.label === 'Use Job Template' || o.value === 'use_job_template'
+ )
+
+ return useOnly.length > 0 ? [{ label: jtGroup.label, options: useOnly }] : []
+ }
+
+ const keyLabelMap = {
+ table: 'Table privileges',
+ topic: 'Topic privileges',
+ fileset: 'Fileset privileges',
+ model: 'Model privileges'
+ }
+
+ const lbl = keyLabelMap[type]
+ if (lbl) {
+ const g = privilegeOptions.find(x => x.label === lbl)
+ if (g) {
+ let options = g.options
+ if (type === 'table') {
+ options = options.filter(o => !(o.label === 'Create Table' || o.value === 'create_table'))
+ } else if (type === 'topic') {
+ options = options.filter(o => !(o.label === 'Create Topic' || o.value === 'create_topic'))
+ } else if (type === 'fileset') {
+ options = options.filter(o => !(o.label === 'Create Fileset' || o.value === 'create_fileset'))
+ } else if (type === 'model') {
+ options = options.filter(o => !(o.label === 'Register Model' || o.value === 'register_model'))
+ }
+
+ return [{ label: g.label, options }]
+ }
+
+ return []
+ }
+
+ return []
+ }
+
+ const filteredCatalogOptions = catalogOptions.filter(c => {
+ const catalogType = c.catalogType
+ if (currentType === 'table') return catalogType === 'relational'
+ if (currentType === 'fileset') return catalogType === 'fileset'
+ if (currentType === 'topic') return catalogType === 'messaging'
+ if (currentType === 'model') return catalogType === 'model'
+
+ return true // for schema and other types, show all
+ })
+
+ const getPart = nFromEnd => {
+ if (!parts.length) return undefined
+
+ return parts[parts.length - nFromEnd]
+ }
+
+ const isResourceThree = ['table', 'topic', 'fileset', 'model'].includes(currentType)
+ const catalogSelected = getPart(isResourceThree ? 3 : currentType === 'schema' ? 2 : 1)
+ const schemaSelected = getPart(isResourceThree ? 2 : currentType === 'schema' ? 1 : 0)
+ const resourceSelected = getPart(1)
+
+ useLayoutEffect(() => {
+ // If the parent form is actively initializing, skip type-change
+ // side-effects until that process finishes. The parent sets the
+ // `__init_in_progress` field (boolean) to indicate this state.
+ const initInProgress = getFieldValue('__init_in_progress')
+ if (initInProgress) return
+
+ // Skip this effect entirely for the `metalake` type.
+ if (currentType === 'metalake') return
+
+ isTypeChanging.current = true
+ setLocalSchemaVal(schemaSelected || undefined)
+ setLocalResourceVal(resourceSelected || undefined)
+
+ const shouldLoadSchemas = ['schema', 'table', 'topic', 'fileset', 'model'].includes(currentType)
+ if (shouldLoadSchemas && catalogSelected) {
+ loadSchemasForCatalog(catalogSelected)
+ } else {
+ setSchemasOptions([])
+ }
+
+ // clear privileges when type changes
+ }, [catalogSelected])
+
+ useEffect(() => {
+ if (schemaSelected && isResourceThree) {
+ loadResourcesForSchema(catalogSelected, schemaSelected, currentType)
+ } else {
+ setResourcesOptions([])
+ }
+ }, [schemaSelected, currentType])
+
+ // Handle type change effects: set fullName, clear privileges, load groups
+ useLayoutEffect(() => {
+ // If the parent form is actively initializing, skip type-change
+ // side-effects until that process finishes. The parent sets the
+ // `__init_in_progress` field (boolean) to indicate this state.
+ const initInProgress = getFieldValue('__init_in_progress')
+ if (initInProgress) return
+
+ isTypeChanging.current = true
+ if (currentType === 'metalake') {
+ setFieldValue(['securableObjects', fieldName, 'fullName'], String(metalake || ''))
+ } else {
+ setFieldValue(['securableObjects', fieldName, 'fullName'], undefined)
+ }
+
+ // clear privileges when type changes
+ setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], [])
+ setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], [])
+
+ // clear local selections when type changes
+ setLocalCatalogVal(undefined)
+ setLocalSchemaVal(undefined)
+ setLocalResourceVal(undefined)
+
+ // clear options when type changes
+ setSchemasOptions([])
+ setResourcesOptions([])
+ const cf = getFieldValue(['securableObjects', fieldName, 'fullName'])
+ const catalogName = Array.isArray(cf) ? cf[0] : String(cf || '').split('.')[0]
+ loadPrivilegeGroupsForField(fieldName, currentType, catalogName)
+ setTimeout(() => (isTypeChanging.current = false), 0)
+ }, [currentType])
+
+ // Clear privileges when fullName changes (for any type)
+ useEffect(() => {
+ // If parent form initialization is in progress, skip clearing privileges
+ // until the parent explicitly marks initialization finished.
+ const initInProgress = getFieldValue('__init_in_progress')
+ if (initInProgress) {
+ const entityNames = currentFull.split('.')
+ if (entityNames.length >= 2) {
+ setLocalCatalogVal(entityNames[0])
+ setLocalSchemaVal(entityNames[1])
+ }
+ if (entityNames.length === 3) {
+ setLocalResourceVal(entityNames[2])
+ }
+ loadPrivilegeGroupsForField(fieldName, currentType, entityNames[0])
+ } else {
+ setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], [])
+ setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], [])
+ }
+ }, [currentFull])
+
+ const loadSchemasForCatalog = async catalog => {
+ if (!catalog) return
+ setSchemasLoading(true)
+ try {
+ const { payload } = await dispatch(fetchSchemas({ metalake, catalog }))
+ const schemas = payload?.schemas || []
+ setSchemasOptions(schemas.map(s => ({ label: s.name, value: s.name })))
+ } catch (e) {
+ setSchemasOptions([])
+ } finally {
+ setSchemasLoading(false)
+ }
+ }
+
+ const loadResourcesForSchema = async (catalog, schema, type) => {
+ if (!catalog || !schema) return
+ setResourcesLoading(true)
+ try {
+ let payload
+ const t = String(type || '').toLowerCase()
+ if (t === 'table') {
+ const res = await dispatch(fetchTables({ metalake, catalog, schema }))
+ payload = res.payload
+ setResourcesOptions((payload?.tables || []).map(t => ({ label: t.name, value: t.name })))
+ } else if (t === 'topic') {
+ const res = await dispatch(fetchTopics({ metalake, catalog, schema }))
+ payload = res.payload
+ setResourcesOptions((payload?.topics || []).map(t => ({ label: t.name, value: t.name })))
+ } else if (t === 'fileset') {
+ const res = await dispatch(fetchFilesets({ metalake, catalog, schema }))
+ payload = res.payload
+ setResourcesOptions((payload?.filesets || []).map(f => ({ label: f.name, value: f.name })))
+ } else if (t === 'model') {
+ const res = await dispatch(fetchModels({ metalake, catalog, schema }))
+ payload = res.payload
+ setResourcesOptions((payload?.models || []).map(m => ({ label: m.name, value: m.name })))
+ }
+ } catch (e) {
+ setResourcesOptions([])
+ } finally {
+ setResourcesLoading(false)
+ }
+ }
+
+ const getGroupOptions = (groupLabel, item) => {
+ const groups = item === 'allowPrivileges' ? allowFilteredGroups : denyFilteredGroups
+
+ return groups.find(g => g.label === groupLabel)?.options || []
+ }
+
+ const handleGroupSelectAll = (groupLabel, checked, item) => {
+ const groupValues = getGroupOptions(groupLabel, item).map(o => o.value)
+ const selectedItems = getFieldValue(['securableObjects', fieldName, item]) || []
+
+ if (checked) {
+ const values = [...new Set([...(selectedItems || []), ...groupValues])]
+ setFieldValue(['securableObjects', fieldName, item], values)
+ } else {
+ const values = (selectedItems || []).filter(value => !groupValues.includes(value))
+ setFieldValue(['securableObjects', fieldName, item], values)
+ }
+ }
+
+ const handleCheckGroup = (groupLabel, item) => {
+ const groupValues = getGroupOptions(groupLabel, item).map(o => o.value)
+ const selectedItems = getFieldValue(['securableObjects', fieldName, item]) || []
+
+ return groupValues.length > 0 && groupValues.every(value => selectedItems?.includes(value))
+ }
+
+ const handleIndeterminate = (groupLabel, item) => {
+ const groupValues = getGroupOptions(groupLabel, item).map(o => o.value)
+
+ const selectedItems = (getFieldValue(['securableObjects', fieldName, item]) || []).filter(value =>
+ groupValues.includes(value)
+ )
+
+ return selectedItems?.length && selectedItems.length < groupValues.length
+ }
+
+ const getAllOptionValues = item => {
+ const groups = item === 'allowPrivileges' ? allowFilteredGroups : denyFilteredGroups
+
+ return (groups || []).flatMap(g => (g.options || []).map(o => o.value))
+ }
+
+ const handleSelectAll = (checked, item) => {
+ const allValues = getAllOptionValues(item)
+ setFieldValue(['securableObjects', fieldName, item], checked ? allValues : [])
+ }
+
+ const handleSelectAllChecked = item => {
+ const allValues = getAllOptionValues(item)
+ const selectedItems = getFieldValue(['securableObjects', fieldName, item]) || []
+
+ return allValues.length > 0 && allValues.every(v => selectedItems?.includes(v))
+ }
+
+ const handleSelectAllIndeterminate = item => {
+ const allValues = getAllOptionValues(item)
+ const selectedItems = getFieldValue(['securableObjects', fieldName, item]) || []
+ const selectedInAll = (selectedItems || []).filter(v => allValues.includes(v))
+
+ return selectedInAll.length > 0 && selectedInAll.length < allValues.length
+ }
+
+ const allowSelected = getFieldValue(['securableObjects', fieldName, 'allowPrivileges']) || []
+ const denySelected = getFieldValue(['securableObjects', fieldName, 'denyPrivileges']) || []
+ const groupedPrivilegeOptions = privilegeGroupsMap[fieldName] || []
+
+ const allowFilteredGroups = groupedPrivilegeOptions
+ .map(group => ({
+ ...group,
+ options: group.options.filter(opt => !denySelected.includes(opt.value))
+ }))
+ .filter(group => group.options.length > 0)
+
+ const denyFilteredGroups = groupedPrivilegeOptions
+ .map(group => ({
+ ...group,
+ options: group.options.filter(opt => !allowSelected.includes(opt.value))
+ }))
+ .filter(group => group.options.length > 0)
+
+ const allowAllOptionValues = getAllOptionValues('allowPrivileges')
+ const denyAllOptionValues = getAllOptionValues('denyPrivileges')
+
+ return (
+ <div className='flex flex-col gap-2' ref={rootRef}>
+ <div>
+ <Form.Item
+ name={[fieldName, 'type']}
+ label='Type'
+ rules={[{ required: true }]}
+ messageVariables={{ label: 'type' }}
+ style={{ marginBottom: 8 }}
+ >
+ <Select placeholder='Please select type' options={privilegeTypes} />
+ </Form.Item>
+ </div>
+
+ <div>
+ <Form.Item
+ name={[fieldName, 'fullName']}
+ label='Full Name'
+ rules={[{ required: true }]}
+ messageVariables={{ label: 'full name' }}
+ >
+ {(() => {
+ if (currentType === 'metalake') {
+ return <Input value={metalake} disabled />
+ }
+
+ // Schema: two linked selects (catalog -> schema)
+ if (currentType === 'schema') {
+ return (
+ <div className='flex gap-2'>
+ <Select
+ showSearch
+ filterOption={false}
+ placeholder={'Please search or select catalog name'}
+ loading={!!localRemoteLoading['catalog']}
+ onFocus={() => loadOptionsForType('catalog')}
+ value={localCatalogVal}
+ onSearch={val => {
+ if (!filteredCatalogOptions.length) loadOptionsForType('catalog')
+ }}
+ onChange={(val, _opt) => {
+ const v = val == null ? val : String(val)
+
+ // update local catalog and clear schema selection (independent values)
+ setLocalCatalogVal(v || undefined)
+ setLocalSchemaVal(undefined)
+
+ // Only clear fullName when there was an existing fullName (edit flow)
+ // to avoid the sync effect overwriting the user's just-selected catalog.
+ if (currentFull) {
+ skipSyncRef.current = true
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'fullName'], ''), 0)
+ }
+
+ // clear privileges when catalog changes
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], []), 0)
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], []), 0)
+
+ loadSchemasForCatalog(v)
+ loadPrivilegeGroupsForField(fieldName, currentType, v)
+ }}
+ style={{ minWidth: 180 }}
+ >
+ {filteredCatalogOptions.map((o, i) => (
+ <Option key={`${String(o.value)}-${i}`} value={String(o.value)} label={String(o.label)}>
+ {o.label}
+ </Option>
+ ))}
+ </Select>
+ <Select
+ showSearch
+ filterOption={(input, option) =>
+ String(option.label).toLowerCase().includes(String(input).toLowerCase())
+ }
+ placeholder={'Please search or select schema name'}
+ loading={schemasLoading}
+ value={localSchemaVal}
+ onSearch={() => {}}
+ onFocus={() => {
+ if (!schemasOptions.length && localCatalogVal) {
+ loadSchemasForCatalog(localCatalogVal)
+ }
+ }}
+ onChange={(val, _opt) => {
+ const v = val == null ? val : String(val)
+
+ // set schema locally
+ setLocalSchemaVal(v || undefined)
+
+ // only set fullName when both catalog and schema are present
+ const catalog = localCatalogVal
+ if (catalog && v) {
+ const newVal = [catalog, v]
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'fullName'], newVal), 0)
+ } else {
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'fullName'], []), 0)
+ }
+
+ // clear privileges when schema changes
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], []), 0)
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], []), 0)
+
+ loadPrivilegeGroupsForField(fieldName, currentType, localCatalogVal)
+ }}
+ style={{ minWidth: 220 }}
+ >
+ {schemasOptions.map((o, i) => (
+ <Option key={`${String(o.value)}-${i}`} value={String(o.value)} label={String(o.label)}>
+ {o.label}
+ </Option>
+ ))}
+ </Select>
+ </div>
+ )
+ }
+
+ // For Table/Topic/Fileset/Model types: three linked selects (catalog -> schema -> resource)
+ if (['table', 'topic', 'fileset', 'model'].includes(currentType)) {
+ return (
+ <div className='flex gap-2'>
+ <Select
+ showSearch
+ filterOption={false}
+ placeholder={`Please search or select catalog name`}
+ loading={!!localRemoteLoading['catalog']}
+ onFocus={() => loadOptionsForType('catalog')}
+ value={localCatalogVal}
+ onChange={(val, _opt) => {
+ const v = val == null ? val : String(val)
+
+ // update local catalog, clear schema and resource selections
+ setLocalCatalogVal(v || undefined)
+ setLocalSchemaVal(undefined)
+ setLocalResourceVal(undefined)
+
+ // If there was an existing fullName (edit), skip immediate sync and clear it
+ if (currentFull) {
+ skipSyncRef.current = true
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'fullName'], []), 0)
+ }
+
+ // clear privileges when catalog changes
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], []), 0)
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], []), 0)
+
+ loadSchemasForCatalog(v)
+ loadPrivilegeGroupsForField(fieldName, currentType, v)
+ }}
+ style={{ minWidth: 180 }}
+ >
+ {filteredCatalogOptions.map((o, i) => (
+ <Option key={`${String(o.value)}-${i}`} value={String(o.value)} label={String(o.label)}>
+ {o.label}
+ </Option>
+ ))}
+ </Select>
+ <Select
+ showSearch
+ filterOption={(input, option) =>
+ String(option.label).toLowerCase().includes(String(input).toLowerCase())
+ }
+ placeholder={`Please search or select schema name`}
+ loading={schemasLoading}
+ value={localSchemaVal}
+ onFocus={() => {
+ if (!schemasOptions.length && localCatalogVal) {
+ loadSchemasForCatalog(localCatalogVal)
+ }
+ }}
+ onChange={(val, _opt) => {
+ const v = val == null ? val : String(val)
+
+ // update local schema and clear resource selection
+ setLocalSchemaVal(v || undefined)
+ setLocalResourceVal(undefined)
+
+ // clear privileges when schema changes
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], []), 0)
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], []), 0)
+
+ // load resources for the selected catalog+schema
+ if (localCatalogVal && v) {
+ loadResourcesForSchema(localCatalogVal, v, currentType)
+ }
+
+ loadPrivilegeGroupsForField(fieldName, currentType, localCatalogVal)
+ }}
+ style={{ minWidth: 220 }}
+ >
+ {schemasOptions.map((o, i) => (
+ <Option key={`${String(o.value)}-${i}`} value={String(o.value)} label={String(o.label)}>
+ {o.label}
+ </Option>
+ ))}
+ </Select>
+ <Select
+ showSearch
+ filterOption={(input, option) =>
+ String(option.label).toLowerCase().includes(String(input).toLowerCase())
+ }
+ placeholder={`Please search or select ${currentType} name`}
+ loading={resourcesLoading}
+ value={localResourceVal}
+ onFocus={() => {
+ if (!resourcesOptions.length && localCatalogVal && localSchemaVal) {
+ loadResourcesForSchema(localCatalogVal, localSchemaVal, currentType)
+ }
+ }}
+ onChange={(val, _opt) => {
+ const v = val == null ? val : String(val)
+
+ // set resource locally
+ setLocalResourceVal(v || undefined)
+
+ // only set fullName when catalog, schema and resource are present
+ if (localCatalogVal && localSchemaVal && v) {
+ const newVal = [localCatalogVal, localSchemaVal, v]
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'fullName'], newVal), 0)
+ } else {
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'fullName'], []), 0)
+ }
+
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], []), 0)
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], []), 0)
+ loadPrivilegeGroupsForField(fieldName, currentType, localCatalogVal)
+ }}
+ style={{ minWidth: 220 }}
+ >
+ {resourcesOptions.map((o, i) => (
+ <Option key={`${String(o.value)}-${i}`} value={String(o.value)} label={String(o.label)}>
+ {o.label}
+ </Option>
+ ))}
+ </Select>
+ </div>
+ )
+ }
+
+ const remoteTypes = ['catalog', 'tag', 'policy', 'job_template']
+ if (remoteTypes.includes(currentType)) {
+ const optionsAll = localRemoteOptions[currentType] || []
+ const searchText = searchTextMap[fieldName] || ''
+
+ const displayedOptions = searchText
+ ? optionsAll.filter(o =>
+ String(o.label || '')
+ .toLowerCase()
+ .includes(String(searchText).toLowerCase())
+ )
+ : optionsAll
+
+ return (
+ <Select
+ showSearch
+ filterOption={false}
+ optionLabelProp='label'
+ placeholder={`Please search or select ${currentType} name`}
+ loading={!!localRemoteLoading[currentType]}
+ onFocus={() => loadOptionsForType(currentType)}
+ onSearch={val => {
+ setSearchTextMap(prev => ({ ...prev, [fieldName]: val }))
+ if (!localRemoteOptions[currentType]) {
+ loadOptionsForType(currentType)
+ }
+ }}
+ onChange={(val, _opt) => {
+ const v = val == null ? val : String(val)
+
+ // set the fullName in the form so the collapse title and other
+ // dependent logic reflect the user's selection
+ setFieldValue(['securableObjects', fieldName, 'fullName'], v)
+
+ // clear privileges when fullName changes
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], []), 0)
+ setTimeout(() => setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], []), 0)
+ loadPrivilegeGroupsForField(fieldName, currentType, v)
+ }}
+ value={displayValue || undefined}
+ allowClear
+ >
+ {displayedOptions.map((o, i) => (
+ <Option key={`${String(o.value)}-${i}`} value={String(o.value)} label={String(o.label)}>
+ {o.label}
+ </Option>
+ ))}
+ </Select>
+ )
+ }
+
+ return (
+ <Input
+ placeholder={`Please enter ${currentType || ''} name`}
+ value={displayValue}
+ onChange={e => {
+ const v = e.target.value
+
+ // clear privileges when fullName changes
+ setTimeout(() => {
+ setFieldValue(['securableObjects', fieldName, 'fullName'], [v])
+ setFieldValue(['securableObjects', fieldName, 'allowPrivileges'], [])
+ setFieldValue(['securableObjects', fieldName, 'denyPrivileges'], [])
+ }, 0)
+ loadPrivilegeGroupsForField(fieldName, currentType, v)
+ }}
+ />
+ )
+ })()}
+ </Form.Item>
+ </div>
+
+ <div>
+ <Form.Item name={[fieldName, 'allowPrivileges']} label='Allow Privileges'>
+ <Select
+ mode='tags'
+ placeholder='Add allow privileges'
+ style={{ width: '100%' }}
+ loading={!!privilegeGroupsLoading[fieldName]}
+ >
+ {allowAllOptionValues.length > 0 && (
+ <OptGroup
+ key='__select_all_allow__'
+ label={
+ <Checkbox
+ className='text-base font-medium text-black'
+ checked={handleSelectAllChecked('allowPrivileges')}
+ indeterminate={handleSelectAllIndeterminate('allowPrivileges')}
+ onChange={e => handleSelectAll(e.target.checked, 'allowPrivileges')}
+ >
+ <span className='ant-select-item-group text-base font-semibold text-black'>Select All</span>
+ </Checkbox>
+ }
+ >
+ <Option
+ key='__select_all_allow_placeholder__'
+ value='__select_all_allow_placeholder__'
+ disabled
+ style={{ height: 0, padding: 0, margin: 0, lineHeight: 0, display: 'none' }}
+ />
+ </OptGroup>
+ )}
+ {allowFilteredGroups.map(group => (
+ <OptGroup
+ key={group.label}
+ label={
+ <Checkbox
+ checked={handleCheckGroup(group.label, 'allowPrivileges')}
+ indeterminate={handleIndeterminate(group.label, 'allowPrivileges')}
+ onChange={e => handleGroupSelectAll(group.label, e.target.checked, 'allowPrivileges')}
+ >
+ <span className='ant-select-item-group'>{group.label}</span>
+ </Checkbox>
+ }
+ >
+ {group.options.map(option => (
+ <Option key={option.value} value={option.value}>
+ {option.label}
+ </Option>
+ ))}
+ </OptGroup>
+ ))}
+ </Select>
+ </Form.Item>
+ <Form.Item name={[fieldName, 'denyPrivileges']} label='Deny Privileges'>
+ <Select
+ mode='tags'
+ placeholder='Add deny privileges'
+ style={{ width: '100%' }}
+ loading={!!privilegeGroupsLoading[fieldName]}
+ >
+ {denyAllOptionValues.length > 0 && (
+ <OptGroup
+ key='__select_all_deny__'
+ label={
+ <Checkbox
+ className='text-base font-medium text-black'
+ checked={handleSelectAllChecked('denyPrivileges')}
+ indeterminate={handleSelectAllIndeterminate('denyPrivileges')}
+ onChange={e => handleSelectAll(e.target.checked, 'denyPrivileges')}
+ >
+ <span className='ant-select-item-group text-base font-semibold text-black'>Select All</span>
+ </Checkbox>
+ }
+ >
+ <Option
+ key='__select_all_deny_placeholder__'
+ value='__select_all_deny_placeholder__'
+ disabled
+ style={{ height: 0, padding: 0, margin: 0, lineHeight: 0, display: 'none' }}
+ />
+ </OptGroup>
+ )}
+ {denyFilteredGroups.map(group => (
+ <OptGroup
+ key={group.label}
+ label={
+ <Checkbox
+ checked={handleCheckGroup(group.label, 'denyPrivileges')}
+ indeterminate={handleIndeterminate(group.label, 'denyPrivileges')}
+ onChange={e => handleGroupSelectAll(group.label, e.target.checked, 'denyPrivileges')}
+ >
+ <span className='ant-select-item-group'>{group.label}</span>
+ </Checkbox>
+ }
+ >
+ {group.options.map(option => (
+ <Option key={option.value} value={option.value}>
+ {option.label}
+ </Option>
+ ))}
+ </OptGroup>
+ ))}
+ </Select>
+ </Form.Item>
+ </div>
+ </div>
+ )
+}
diff --git a/web-v2/web/src/components/SetOwnerDialog.js b/web-v2/web/src/components/SetOwnerDialog.js
new file mode 100644
index 0000000000..2957c256f9
--- /dev/null
+++ b/web-v2/web/src/components/SetOwnerDialog.js
@@ -0,0 +1,136 @@
+/*
+ * 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 React, { useRef, useState } from 'react'
+import { Form, Modal, Typography } from 'antd'
+import UserAndGroupCascader from '@/components/UserAndGroupCascader'
+import { validateMessages } from '@/config'
+import { cn } from '@/lib/utils/tailwind'
+import { useResetFormOnCloseModal } from '@/lib/hooks/use-reset'
+import { setEntityOwner, getCurrentEntityOwner } from '@/lib/store/metalakes'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { useEffect } from 'react'
+
+const { Paragraph } = Typography
+
+export default function SetOwnerDialog({ ...props }) {
+ const { open, setOpen, metalake, metadataObjectType, metadataObjectFullName, mutateOwner } = props
+ const [confirmLoading, setConfirmLoading] = useState(false)
+ const cascaderOwnerRef = useRef(null)
+ const dispatch = useAppDispatch()
+ const [ownerData, setOwnerData] = useState(null)
+
+ const [form] = Form.useForm()
+ const values = Form.useWatch([], form)
+
+ useResetFormOnCloseModal({
+ form,
+ open
+ })
+
+ useEffect(() => {
+ const initLoad = async () => {
+ const { payload } = await dispatch(
+ getCurrentEntityOwner({ metalake, metadataObjectType, metadataObjectFullName })
+ )
+ setOwnerData(payload?.owner)
+ }
+ if (open) {
+ initLoad()
+ }
+ }, [open])
+
+ const defaultValues = {
+ name: ''
+ }
+
+ const handleSubmit = e => {
+ e.preventDefault()
+ form
+ .validateFields()
+ .then(async () => {
+ setConfirmLoading(true)
+ const [type, name] = values.name
+
+ const submitData = {
+ name: name,
+ type: type
+ }
+
+ await dispatch(setEntityOwner({ metalake, metadataObjectType, metadataObjectFullName, data: submitData }))
+ setConfirmLoading(false)
+ mutateOwner && mutateOwner()
+ setOpen(false, true)
+ })
+ .catch(info => {
+ console.error(info)
+ form.scrollToField(info?.errorFields?.[0]?.name?.[0])
+ })
+ }
+
+ const handleCancel = () => {
+ setOpen(false, false)
+ }
+
+ return (
+ <>
+ <Modal
+ title='Set Owner'
+ open={open}
+ onOk={handleSubmit}
+ okText='Submit'
+ maskClosable={false}
+ keyboard={false}
+ width={400}
+ confirmLoading={confirmLoading}
+ onCancel={handleCancel}
+ >
+ <Paragraph type='secondary' style={{ marginBottom: '2px' }}>
+ {`Set owner for ${metadataObjectFullName}`}
+ </Paragraph>
+ <Form
+ form={form}
+ initialValues={defaultValues}
+ layout='vertical'
+ name='roleForm'
+ validateMessages={validateMessages}
+ >
+ <div
+ ref={cascaderOwnerRef}
+ className={cn([
+ '[&_.ant-cascader-menu-item-content]:relative',
+ '[&_.ant-cascader-menu-item-content]:h-[22px]',
+ '[&_.ant-cascader-menu-item]:w-full',
+ '[&_.ant-cascader-menu-item]:min-w-40',
+ '[&_.ant-select-selection-item]:h-[28px]'
+ ])}
+ >
+ <UserAndGroupCascader
+ cascaderOwnerRef={cascaderOwnerRef}
+ metalake={metalake}
+ multiple={false}
+ data={ownerData}
+ form={form}
+ />
+ </div>
+ </Form>
+ </Modal>
+ </>
+ )
+}
diff --git a/web-v2/web/src/components/SpecialColumnTypeComponent.js b/web-v2/web/src/components/SpecialColumnTypeComponent.js
new file mode 100644
index 0000000000..34952aa05b
--- /dev/null
+++ b/web-v2/web/src/components/SpecialColumnTypeComponent.js
@@ -0,0 +1,412 @@
+/*
+ * 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 React, { useEffect, useState } from 'react'
+import { PlusOutlined } from '@ant-design/icons'
+import { Button, Form, Input, Pagination, Switch } from 'antd'
+import Icons from '@/components/Icons'
+import ColumnTypeComponent from '@/components/ColumnTypeComponent'
+import { nameRegex } from '@/lib/utils/regex'
+import { cn } from '@/lib/utils/tailwind'
+
+export default function SpecialColumnTypeComponent({ ...props }) {
+ const { form, parentField, subField, columnNamespace, isEdit, columnTypes, provider } = props
+
+ const currentType = Form.useWatch(
+ [...parentField, subField.name, 'typeObj', ...columnNamespace, 'type'],
+ form
+ )?.toLowerCase()
+
+ const fieldColumns = Form.useWatch(
+ [...parentField, subField.name, 'typeObj', ...columnNamespace, 'fieldColumns'],
+ form
+ )
+ const unionTypes = Form.useWatch([...parentField, subField.name, 'typeObj', ...columnNamespace, 'types'], form)
+ const disabled = isEdit && ['lakehouse-iceberg', 'lakehouse-paimon'].includes(provider)
+
+ useEffect(() => {
+ if (!isEdit) {
+ if (currentType === 'struct' && !fieldColumns?.length) {
+ form.setFieldValue(
+ [...parentField, subField.name, 'typeObj', ...columnNamespace, 'fieldColumns'],
+ [{ id: '', name: '', typeObj: { type: '' }, required: false, comment: '' }]
+ )
+ } else if (currentType === 'union' && !unionTypes?.length) {
+ form.setFieldValue(
+ [...parentField, subField.name, 'typeObj', ...columnNamespace, 'types'],
+ [{ id: '', typeObj: { type: '' } }]
+ )
+ }
+ }
+ }, [currentType, isEdit, fieldColumns, unionTypes])
+
+ const [pageOffset, setPageOffset] = useState(1)
+
+ const onChange = page => {
+ setPageOffset(page)
+ }
+
+ const renderFieldColumns = (fields, subOpt) => {
+ const pageSize = 5
+ const isShowPagination = fields.length > pageSize
+
+ return (
+ <div className='flex flex-col divide-y divide-solid border-b border-solid'>
+ <div className={cn('grid divide-x divide-solid', provider !== 'hive' ? 'grid-cols-10' : 'grid-cols-7')}>
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Field Name</div>
+ <div className='col-span-3 bg-gray-100 p-1 text-center'>Data Type</div>
+ <div className='bg-gray-100 p-1 text-center'>Not Null</div>
+ {provider !== 'hive' && <div className='col-span-3 bg-gray-100 p-1 text-center'>Comment</div>}
+ <div className='bg-gray-100 p-1 text-center'>Action</div>
+ </div>
+ {fields.slice((pageOffset - 1) * pageSize, pageOffset * pageSize).map(field => {
+ return (
+ <div key={field.key}>
+ <div className={cn('grid', provider !== 'hive' ? 'grid-cols-10' : 'grid-cols-7')}>
+ <div className='col-span-2 px-2 py-1'>
+ <Form.Item
+ noStyle
+ name={[field.name, 'name']}
+ label=''
+ rules={[
+ ({ getFieldValue }) => ({
+ validator(_, name) {
+ if (name) {
+ if (!nameRegex.test(name)) {
+ return Promise.reject(new Error(t('common.namePatternMiss')))
+ }
+ if (
+ getFieldValue([
+ ...parentField,
+ subField.name,
+ 'typeObj',
+ ...columnNamespace,
+ 'fieldColumns'
+ ]).length
+ ) {
+ let names = getFieldValue([
+ ...parentField,
+ subField.name,
+ 'typeObj',
+ ...columnNamespace,
+ 'fieldColumns'
+ ]).map(col => col?.name)
+ names.splice(field.name, 1)
+ if (names.includes(name)) {
+ return Promise.reject('The column name already exists!')
+ }
+ }
+
+ return Promise.resolve()
+ } else {
+ return Promise.reject('The field name is required!')
+ }
+ }
+ })
+ ]}
+ >
+ <Input size='small' disabled={disabled} />
+ </Form.Item>
+ <Form.Item
+ shouldUpdate={(prevValues, currentValues) => prevValues.fieldColumns !== currentValues.fieldColumns}
+ noStyle
+ >
+ {() => {
+ const errors = form.getFieldError([
+ ...parentField,
+ subField.name,
+ 'typeObj',
+ ...columnNamespace,
+ 'fieldColumns',
+ field.name,
+ 'name'
+ ])
+
+ return errors.length ? <div className='text-red-500'>{errors[0]}</div> : null
+ }}
+ </Form.Item>
+ </div>
+ <div className='col-span-3 px-2 py-1'>
+ <ColumnTypeComponent
+ form={form}
+ parentField={[...parentField, subField.name, 'typeObj', ...columnNamespace, 'fieldColumns']}
+ subField={field}
+ columnNamespace={[]}
+ columnTypes={columnTypes}
+ disabled={disabled}
+ />
+ </div>
+ <div className='px-2 py-1'>
+ <Form.Item noStyle name={[field.name, 'required']} label=''>
+ <Switch size='small' disabled={provider === 'hive' || disabled} />
+ </Form.Item>
+ </div>
+ {provider !== 'hive' && (
+ <div className='col-span-3 px-2 py-1'>
+ <Form.Item noStyle name={[field.name, 'comment']} label=''>
+ <Input size='small' disabled={disabled} />
+ </Form.Item>
+ </div>
+ )}
+ <div className='px-2 py-1'>
+ <Icons.Minus
+ className={cn('size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary', {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed':
+ form.getFieldValue([
+ ...parentField,
+ subField.name,
+ 'typeObj',
+ ...columnNamespace,
+ 'fieldColumns'
+ ]).length === 1 || disabled
+ })}
+ onClick={() => {
+ if (
+ form.getFieldValue([
+ ...parentField,
+ subField.name,
+ 'typeObj',
+ ...columnNamespace,
+ 'fieldColumns'
+ ]).length === 1 ||
+ disabled
+ )
+ return
+ subOpt.remove(field.name)
+ if (fields.length - 1 === pageOffset * pageSize) {
+ setPageOffset(pageOffset - 1)
+ } else if (fields.length - 1 < pageOffset * pageSize) {
+ const to = Math.ceil(fields.length / pageSize)
+ setPageOffset((fields.length - 1) % pageSize === 0 ? to - 1 : to)
+ }
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ )
+ })}
+ {isShowPagination && (
+ <Pagination
+ size='small'
+ className='text-right'
+ current={pageOffset}
+ onChange={onChange}
+ pageSize={pageSize}
+ total={fields.length}
+ />
+ )}
+ <div className='text-left'>
+ <Button
+ type='link'
+ icon={<PlusOutlined />}
+ disabled={disabled}
+ onClick={() => {
+ subOpt.add()
+ if (fields.length === pageOffset * pageSize) {
+ setPageOffset(pageOffset + 1)
+ } else if (fields.length > pageOffset * pageSize) {
+ const to = Math.ceil(fields.length / pageSize)
+ setPageOffset(fields.length % pageSize === 0 ? to + 1 : to)
+ }
+ }}
+ >
+ Add Field
+ </Button>
+ </div>
+ </div>
+ )
+ }
+
+ const renderTypes = (fields, subOpt) => {
+ const pageSize = 5
+ const isShowPagination = fields.length > pageSize
+
+ return (
+ <div className='flex flex-col divide-y divide-solid border-b border-solid'>
+ <div className='grid grid-cols-3 divide-x divide-solid'>
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Data Type</div>
+ <div className='bg-gray-100 p-1 text-center'>Action</div>
+ </div>
+ {fields.slice((pageOffset - 1) * pageSize, pageOffset * pageSize).map(field => {
+ return (
+ <div key={field.key}>
+ <div className='grid grid-cols-3'>
+ <div className='col-span-2 px-2 py-1'>
+ <ColumnTypeComponent
+ form={form}
+ parentField={[...parentField, subField.name, 'typeObj', ...columnNamespace, 'types']}
+ subField={field}
+ columnNamespace={[]}
+ columnTypes={columnTypes}
+ />
+ </div>
+ <div className='px-2 py-1'>
+ <Icons.Minus
+ className={cn('size-4 cursor-pointer text-gray-400 hover:text-defaultPrimary', {
+ 'text-gray-100 hover:text-gray-200 cursor-not-allowed':
+ form.getFieldValue([...parentField, subField.name, 'typeObj', ...columnNamespace, 'types'])
+ .length === 1
+ })}
+ onClick={() => {
+ if (
+ form.getFieldValue([...parentField, subField.name, 'typeObj', ...columnNamespace, 'types'])
+ .length === 1
+ )
+ return
+ subOpt.remove(field.name)
+ if (fields.length - 1 === pageOffset * pageSize) {
+ setPageOffset(pageOffset - 1)
+ } else if (fields.length - 1 < pageOffset * pageSize) {
+ const to = Math.ceil(fields.length / pageSize)
+ setPageOffset((fields.length - 1) % pageSize === 0 ? to - 1 : to)
+ }
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ )
+ })}
+ {isShowPagination && (
+ <Pagination
+ size='small'
+ className='text-right'
+ current={pageOffset}
+ onChange={onChange}
+ pageSize={pageSize}
+ total={fields.length}
+ />
+ )}
+ <div className='text-left'>
+ <Button
+ type='link'
+ icon={<PlusOutlined />}
+ onClick={() => {
+ subOpt.add()
+ if (fields.length === pageOffset * pageSize) {
+ setPageOffset(pageOffset + 1)
+ } else if (fields.length > pageOffset * pageSize) {
+ const to = Math.ceil(fields.length / pageSize)
+ setPageOffset(fields.length % pageSize === 0 ? to + 1 : to)
+ }
+ }}
+ >
+ Types
+ </Button>
+ </div>
+ </div>
+ )
+ }
+
+ return (
+ <div className='w-[600px]'>
+ {currentType === 'list' && (
+ <div className='size-full bg-gray-100 pl-8 pt-px shadow-[inset_1px_1px_2px_rgba(204,204,204)]'>
+ <div className='grid grid-cols-4 divide-x divide-solid'>
+ <div className='bg-gray-100 p-1 text-center'>Element</div>
+ <div className='col-span-2 bg-gray-100 p-1 text-center'>Element Type</div>
+ <div className='bg-gray-100 p-1 text-center'>Not Null</div>
+ </div>
+ <div className='grid grid-cols-4 bg-white'>
+ <div className='px-2 py-1'></div>
+ <div className='col-span-2 px-2 py-1'>
+ <ColumnTypeComponent
+ form={form}
+ parentField={['columns']}
+ subField={subField}
+ columnNamespace={[...columnNamespace, 'element']}
+ columnTypes={columnTypes}
+ disabled={disabled}
+ />
+ </div>
+ <div className='px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'typeObj', ...columnNamespace, 'element', 'required']} label=''>
+ <Switch
+ size='small'
+ disabled={['hive', 'jdbc-postgresql'].includes(provider) || disabled}
+ defaultValue={provider === 'jdbc-postgresql'}
+ />
+ </Form.Item>
+ </div>
+ </div>
+ </div>
+ )}
+ {currentType === 'map' && (
+ <div className='size-full bg-gray-100 pl-8 pt-px shadow-[inset_1px_1px_2px_rgba(204,204,204)]'>
+ <div className='grid grid-cols-4 border-b border-solid bg-white'>
+ <div className='px-2 py-1'>Key</div>
+ <div className='col-span-2 px-2 py-1'>
+ <ColumnTypeComponent
+ form={form}
+ parentField={['columns']}
+ subField={subField}
+ columnNamespace={[...columnNamespace, 'keyObj']}
+ columnTypes={columnTypes}
+ disabled={disabled}
+ />
+ </div>
+ <div className='px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'typeObj', ...columnNamespace, 'keyObj', 'required']} label=''>
+ <Switch size='small' defaultValue={true} disabled={provider === 'hive' || disabled} />
+ </Form.Item>
+ </div>
+ </div>
+
+ <div className='grid grid-cols-4 bg-white'>
+ <div className='px-2 py-1'>Value</div>
+ <div className='col-span-2 px-2 py-1'>
+ <ColumnTypeComponent
+ form={form}
+ parentField={['columns']}
+ subField={subField}
+ columnNamespace={[...columnNamespace, 'valueObj']}
+ columnTypes={columnTypes}
+ disabled={disabled}
+ />
+ </div>
+ <div className='px-2 py-1'>
+ <Form.Item noStyle name={[subField.name, 'typeObj', ...columnNamespace, 'valueObj', 'required']} label=''>
+ <Switch size='small' disabled={provider === 'hive' || disabled} />
+ </Form.Item>
+ </div>
+ </div>
+ </div>
+ )}
+ {currentType === 'struct' && (
+ <div className='size-full bg-gray-100 pl-8 pt-px shadow-[inset_1px_1px_2px_rgba(204,204,204)]'>
+ <Form.Item noStyle name={[subField.name, 'typeObj', ...columnNamespace, 'fieldColumns']} label=''>
+ <Form.List name={[subField.name, 'typeObj', ...columnNamespace, 'fieldColumns']}>
+ {(fields, subOpt) => renderFieldColumns(fields, subOpt)}
+ </Form.List>
+ </Form.Item>
+ </div>
+ )}
+ {currentType === 'union' && (
+ <div className='size-full bg-gray-100 pl-8 pt-px shadow-[inset_1px_1px_2px_rgba(204,204,204)]'>
+ <Form.Item noStyle name={[subField.name, 'typeObj', ...columnNamespace, 'types']} label=''>
+ <Form.List name={[subField.name, 'typeObj', ...columnNamespace, 'types']}>
+ {(fields, subOpt) => renderTypes(fields, subOpt)}
+ </Form.List>
+ </Form.Item>
+ </div>
+ )}
+ </div>
+ )
+}
diff --git a/web-v2/web/src/components/StyledToast.js b/web-v2/web/src/components/StyledToast.js
new file mode 100644
index 0000000000..f91e0e7e7a
--- /dev/null
+++ b/web-v2/web/src/components/StyledToast.js
@@ -0,0 +1,64 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { toast, ToastBar, Toaster } from 'react-hot-toast'
+import themeConfig from '../config/themeConfig'
+
+export default function StyledToast() {
+ const { toastPosition, toastDuration } = themeConfig
+
+ return (
+ <div>
+ <Toaster
+ reverseOrder={false}
+ position={toastPosition}
+ toastOptions={{
+ duration: toastDuration,
+ style: {
+ borderRadius: '8px',
+ maxWidth: 500
+ }
+ }}
+ >
+ {t => (
+ <ToastBar toast={t}>
+ {({ icon, message }) => (
+ <>
+ {icon}
+ <div className='twc-flex twc-w-full twc-break-normal [&>div]:twc-justify-start'>{message}</div>
+ <div className='twc-flex twc-h-full'>
+ {t.type !== 'loading' && (
+ <button
+ className='twc-border-0 twc-text-[#666] twc-w-6 twc-h-6 twc-justify-start twc-rounded-full twc-ring-primary-400 twc-transition hover:twc-bg-[#f8f8f8] focus:twc-outline-none focus-visible:twc-ring'
+ onClick={() => toast.dismiss(t.id)}
+ >
+ x
+ </button>
+ )}
+ </div>
+ </>
+ )}
+ </ToastBar>
+ )}
+ </Toaster>
+ </div>
+ )
+}
diff --git a/web-v2/web/src/components/TableActions.js b/web-v2/web/src/components/TableActions.js
new file mode 100644
index 0000000000..4dd0043320
--- /dev/null
+++ b/web-v2/web/src/components/TableActions.js
@@ -0,0 +1,66 @@
+/*
+ * 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, Modal, Tooltip } from 'antd'
+import Icons from '@/components/Icons'
+
+export default function TableActions({ ...props }) {
+ const { catalogType, provider, anthEnable, handleEdit, showDeleteConfirm, handleSetOwner } = props
+ const [modal, contextHolder] = Modal.useModal()
+
+ return (
+ <div className='flex gap-2'>
+ {contextHolder}
+ <a>
+ <Icons.Pencil className='size-4' onClick={() => handleEdit()} />
+ </a>
+ {provider !== 'lakehouse-paimon' && (
+ <a data-refer={`delete-entity-${props.name}`}>
+ <Icons.Trash2Icon className='size-4' onClick={() => showDeleteConfirm(modal)} />
+ </a>
+ )}
+ {catalogType !== 'model' && anthEnable && (
+ <Dropdown
+ menu={{
+ items: [
+ {
+ label: 'Set Owner',
+ key: 'setOwner'
+ }
+ ],
+ onClick: ({ key }) => {
+ switch (key) {
+ case 'setOwner':
+ handleSetOwner()
+ break
+ }
+ }
+ }}
+ trigger={['hover']}
+ >
+ <Tooltip title='Settings'>
+ <a onClick={e => e.preventDefault()}>
+ <Icons.Settings className='size-4' />
+ </a>
+ </Tooltip>
+ </Dropdown>
+ )}
+ </div>
+ )
+}
diff --git a/web-v2/web/src/components/UserAndGroupCascader.js b/web-v2/web/src/components/UserAndGroupCascader.js
new file mode 100644
index 0000000000..375e98db3f
--- /dev/null
+++ b/web-v2/web/src/components/UserAndGroupCascader.js
@@ -0,0 +1,132 @@
+/*
+ * 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 React, { useEffect, useState } from 'react'
+import { Cascader, Form } from 'antd'
+import { fetchUsers } from '@/lib/store/users'
+import { fetchUserGroups } from '@/lib/store/userGroups'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+
+export default function UserAndGroupCascader({ ...props }) {
+ const { cascaderOwnerRef, metalake, multiple, form, data } = props
+ const dispatch = useAppDispatch()
+
+ const [options, setOptions] = useState([
+ {
+ value: 'user',
+ label: (
+ <div title='User' className='inline-block w-full truncate'>
+ User
+ </div>
+ ),
+ key: 'user',
+ type: 'user',
+ isLeaf: false
+ },
+ {
+ value: 'group',
+ label: (
+ <div title='Group' className='inline-block w-full truncate'>
+ Group
+ </div>
+ ),
+ key: 'group',
+ type: 'group',
+ isLeaf: false
+ }
+ ])
+
+ useEffect(() => {
+ if (data && cascaderOwnerRef.current) {
+ form.setFieldValue('name', [data?.type, data?.name])
+ }
+ }, [data])
+
+ const loadData = selectedOptions =>
+ new Promise(async resolve => {
+ const targetOption = selectedOptions[selectedOptions.length - 1]
+ const type = targetOption?.value
+ let optionData = []
+ switch (type) {
+ case 'user':
+ const { payload } = await dispatch(fetchUsers({ metalake }))
+ optionData = payload?.userRes?.names?.map(user => ({
+ label: (
+ <div title={user} className='inline-block w-full truncate'>
+ {user}
+ </div>
+ ),
+ value: user,
+ key: user,
+ type: 'user',
+ isLeaf: true
+ }))
+ break
+ case 'group':
+ const { payload: groupPayload } = await dispatch(fetchUserGroups({ metalake }))
+ optionData = groupPayload?.userGroupsRes?.names?.map(group => ({
+ label: (
+ <div title={group} className='inline-block w-full truncate'>
+ {group}
+ </div>
+ ),
+ value: group,
+ key: group,
+ type: 'group',
+ isLeaf: true
+ }))
+ break
+ default:
+ break
+ }
+ targetOption.children = optionData || []
+ setOptions([...options])
+
+ resolve()
+ })
+
+ const displayRender = labels => {
+ let displayLabels = labels.slice(-1).map((label, index) => (
+ <div
+ title={label?.props?.title}
+ key={index}
+ className='relative top-[3px] inline-block max-w-full overflow-hidden truncate'
+ >
+ {label}
+ </div>
+ ))
+
+ return displayLabels
+ }
+
+ return (
+ <Form.Item noStyle name={['name']} label='Owner'>
+ <Cascader
+ size='small'
+ options={options}
+ loadData={loadData}
+ multiple={multiple}
+ maxTagCount='responsive'
+ displayRender={displayRender}
+ getPopupContainer={() => cascaderOwnerRef.current}
+ className='w-full'
+ />
+ </Form.Item>
+ )
+}
diff --git a/web-v2/web/src/config/catalog.js b/web-v2/web/src/config/catalog.js
new file mode 100644
index 0000000000..2f29860a9b
--- /dev/null
+++ b/web-v2/web/src/config/catalog.js
@@ -0,0 +1,728 @@
+/*
+ * 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.
+ */
+
+export const checkCatalogIcon = ({ type, provider }) => {
+ switch (type) {
+ case 'relational':
+ switch (provider) {
+ case 'hive':
+ return 'custom-icons-hive'
+ case 'lakehouse-iceberg':
+ return 'openmoji:iceberg'
+ case 'jdbc-mysql':
+ return 'devicon:mysql-wordmark'
+ case 'jdbc-postgresql':
+ return 'devicon:postgresql-wordmark'
+ case 'jdbc-doris':
+ return 'custom-icons-doris'
+ case 'lakehouse-paimon':
+ return 'custom-icons-paimon'
+ case 'lakehouse-hudi':
+ return 'custom-icons-hudi'
+ case 'jdbc-oceanbase':
+ return 'custom-icons-oceanbase'
+ case 'jdbc-starrocks':
+ return 'custom-icons-starrocks'
+ case 'lakehouse-generic':
+ return 'custom-icons-lakehouse'
+ default:
+ return 'bx:book'
+ }
+ case 'messaging':
+ return 'skill-icons:kafka'
+ case 'fileset':
+ return 'twemoji:file-folder'
+ case 'model':
+ return 'carbon:machine-learning-model'
+ default:
+ return 'bx:book'
+ }
+}
+
+export const tableDefaultProps = {
+ hive: [
+ {
+ key: 'table-type',
+ defaultValue: 'MANAGED_TABLE',
+ select: ['MANAGED_TABLE', 'EXTERNAL_TABLE']
+ },
+ {
+ key: 'location',
+ defaultValue: '',
+ description: 'Hadoop catalog storage location'
+ },
+ {
+ key: 'format',
+ defaultValue: 'TEXTFILE',
+ select: ['TEXTFILE', 'SEQUENCEFILE', 'RCFILE', 'ORC', 'PARQUET', 'AVRO', 'JSON', 'CSV', 'REGEX']
+ },
+ {
+ key: 'input-format',
+ defaultValue: 'org.apache.hadoop.mapred.TextInputFormat',
+ defaultValueOptions: {
+ TEXTFILE: 'org.apache.hadoop.mapred.TextInputFormat',
+ SEQUENCEFILE: 'org.apache.hadoop.mapred.SequenceFileInputFormat',
+ RCFILE: 'org.apache.hadoop.hive.ql.io.RCFileInputFormat',
+ ORC: 'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat',
+ PARQUET: 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat',
+ AVRO: 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat',
+ JSON: 'org.apache.hadoop.mapred.TextInputFormat',
+ CSV: 'org.apache.hadoop.mapred.TextInputFormat',
+ REGEX: 'org.apache.hadoop.mapred.TextInputFormat'
+ }
+ },
+ {
+ key: 'output-format',
+ defaultValue: 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
+ defaultValueOptions: {
+ TEXTFILE: 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
+ SEQUENCEFILE: 'org.apache.hadoop.mapred.SequenceFileOutputFormat',
+ RCFILE: 'org.apache.hadoop.hive.ql.io.RCFileOutputFormat',
+ ORC: 'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat',
+ PARQUET: 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat',
+ AVRO: 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat',
+ JSON: 'org.apache.hadoop.mapred.TextOutputFormat',
+ CSV: 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
+ REGEX: 'org.apache.hadoop.mapred.TextOutputFormat'
+ }
+ },
+ {
+ key: 'serde-lib',
+ defaultValue: 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
+ defaultValueOptions: {
+ TEXTFILE: 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
+ SEQUENCEFILE: 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
+ RCFILE: 'org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe',
+ ORC: 'org.apache.hadoop.hive.ql.io.orc.OrcSerde',
+ PARQUET: 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe',
+ AVRO: 'org.apache.hadoop.hive.serde2.avro.AvroSerDe',
+ JSON: 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
+ CSV: 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
+ REGEX: 'org.apache.hadoop.hive.serde2.RegexSerDe'
+ }
+ }
+ ],
+ 'jdbc-mysql': [
+ {
+ key: 'engine',
+ defaultValue: 'InnoDB',
+ select: ['InnoDB', 'MyISAM', 'MEMORY', 'CSV', 'ARCHIVE', 'BLACKHOLE', 'MRG_MYISAM']
+ },
+ {
+ key: 'auto-increment-offset',
+ defaultValue: '',
+ description: 'autoIncrementOffsetDesc'
+ }
+ ],
+ 'lakehouse-generic': [
+ {
+ key: 'location',
+ defaultValue: '',
+ description: 'The storage location of the table. Required if not set in catalog and schema.'
+ },
+ {
+ key: 'format',
+ defaultValue: 'lance',
+ disabled: true,
+ description: 'The format of the table'
+ }
+ ]
+}
+
+export const filesetLocationProviders = {
+ 'builtin-local': 'file:/',
+ 'builtin-hdfs': 'hdfs://',
+ s3: 's3a://',
+ gcs: 'gs://',
+ oss: 'oss://',
+ abs: 'abfss://'
+}
+
+export const entityDefaultProps = {
+ hadoop: [
+ {
+ key: 'filesystem-providers',
+ defaultValue: ['builtin-local', 'builtin-hdfs'],
+ select: Object.keys(filesetLocationProviders),
+ multiple: true,
+ description: 'The file system providers to add'
+ },
+ {
+ key: 'location',
+ defaultValue: '',
+ selectBefore: Object.values(filesetLocationProviders),
+ description: 'Hadoop catalog storage location'
+ }
+ ]
+}
+
+export const locationDefaultProps = {
+ s3: [
+ {
+ key: 's3-endpoint',
+ defaultValue: '',
+ description: 'fileset.s3EndpointDesc'
+ },
+ {
+ key: 's3-access-key-id',
+ defaultValue: '',
+ description: 'fileset.s3AccessKeyDesc'
+ },
+ {
+ key: 's3-secret-access-key',
+ defaultValue: '',
+ description: 'fileset.s3SecretKeyDesc'
+ }
+ ],
+ gcs: [
+ {
+ key: 'gcs-service-account-file',
+ defaultValue: '',
+ description: 'fileset.gcsServiceAccountFileDesc'
+ }
+ ],
+ oss: [
+ {
+ key: 'oss-endpoint',
+ defaultValue: '',
+ description: 'fileset.ossEndpointDesc'
+ },
+ {
+ key: 'oss-access-key-id',
+ defaultValue: '',
+ description: 'fileset.ossAccessKeyDesc'
+ },
+ {
+ key: 'oss-secret-access-key',
+ defaultValue: '',
+ description: 'fileset.ossSecretKeyDesc'
+ }
+ ],
+ abs: [
+ {
+ key: 'azure-storage-account-name',
+ defaultValue: '',
+ description: 'fileset.abfsAccountNameDesc'
+ },
+ {
+ key: 'azure-storage-account-key',
+ defaultValue: '',
+ description: 'fileset.abfsAccountKeyDesc'
+ }
+ ]
+}
+
+export const rangerDefaultProps = [
+ {
+ label: 'Authorization Provider',
+ key: 'authorization-provider',
+ value: 'ranger',
+ disabled: true
+ },
+ {
+ label: 'Ranger Auth Type',
+ key: 'authorization.ranger.auth.type',
+ value: 'simple',
+ disabled: true
+ },
+ {
+ label: 'Ranger Admin URL',
+ key: 'authorization.ranger.admin.url',
+ value: ''
+ },
+ {
+ label: 'Ranger Username',
+ key: 'authorization.ranger.username',
+ value: ''
+ },
+ {
+ label: 'Ranger Password',
+ key: 'authorization.ranger.password',
+ value: ''
+ },
+ {
+ label: 'Ranger Service Type',
+ key: 'authorization.ranger.service.type',
+ value: '',
+ select: ['HadoopSQL', 'HDFS'],
+ description: 'rangerServiceTypeDesc'
+ },
+ {
+ label: 'Ranger Service Name',
+ key: 'authorization.ranger.service.name',
+ value: '',
+ description: 'rangerServiceNameDesc'
+ },
+ {
+ label: 'Ranger service initialize',
+ key: 'authorization.ranger.service.create-if-absent',
+ value: '',
+ description: 'serviceInitializeDesc'
+ }
+]
+
+export const providerBase = {
+ hive: {
+ label: 'Apache Hive',
+ defaultProps: [
+ {
+ label: 'Metastore URIs',
+ key: 'metastore.uris',
+ value: '',
+ required: true,
+ description: 'The Apache Hive metastore URIs'
+ }
+ ]
+ },
+ 'lakehouse-iceberg': {
+ label: 'Apache Iceberg',
+ defaultProps: [
+ {
+ label: 'Catalog Backend',
+ key: 'catalog-backend',
+ value: 'hive',
+ required: true,
+ description: 'Apache Iceberg catalog type choose properties',
+ select: ['hive', 'jdbc', 'rest']
+ },
+ {
+ label: 'URI',
+ key: 'uri',
+ value: '',
+ required: true,
+ description: 'Apache Iceberg catalog uri config'
+ },
+ {
+ label: 'Warehouse',
+ key: 'warehouse',
+ value: '',
+ description: 'Apache Iceberg catalog warehouse config'
+ },
+ {
+ label: 'JDBC Driver',
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive'],
+ description:
+ '"com.mysql.jdbc.Driver" or "com.mysql.cj.jdbc.Driver" for MySQL, "org.postgresql.Driver" for PostgreSQL'
+ },
+ {
+ label: 'JDBC User',
+ key: 'jdbc-user',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive']
+ },
+ {
+ label: 'JDBC Password',
+ key: 'jdbc-password',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive']
+ },
+ {
+ label: 'Authentication Type',
+ key: 'authentication.type',
+ value: 'simple',
+ required: false,
+ description:
+ 'The type of authentication for Paimon catalog backend, currently Gravitino only supports Kerberos and simple',
+ select: ['simple', 'Kerberos']
+ },
+ {
+ label: 'Authentication Kerberos Principal',
+ key: 'authentication.kerberos.principal',
+ value: '',
+ required: true,
+ description: 'The principal of the Kerberos authentication.',
+ parentField: 'authentication.type',
+ hide: ['simple']
+ },
+ {
+ label: 'Authentication Kerberos Keytab Uri',
+ key: 'authentication.kerberos.keytab-uri',
+ value: '',
+ required: true,
+ description: 'The URI of The keytab for the Kerberos authentication.',
+ parentField: 'authentication.type',
+ hide: ['simple']
+ }
+ ]
+ },
+ 'jdbc-mysql': {
+ label: 'MySQL',
+ defaultProps: [
+ {
+ label: 'JDBC Driver',
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. com.mysql.jdbc.Driver or com.mysql.cj.jdbc.Driver'
+ },
+ {
+ label: 'JDBC URL',
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:mysql://localhost:3306'
+ },
+ {
+ label: 'JDBC User',
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ label: 'JDBC Password',
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ 'jdbc-postgresql': {
+ label: 'PostgreSQL',
+ defaultProps: [
+ {
+ label: 'JDBC Driver',
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. org.postgresql.Driver'
+ },
+ {
+ label: 'JDBC URL',
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:postgresql://localhost:5432/your_database'
+ },
+ {
+ label: 'JDBC User',
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ label: 'JDBC Password',
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ },
+ {
+ label: 'JDBC Database',
+ key: 'jdbc-database',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ 'jdbc-doris': {
+ label: 'Apache Doris',
+ defaultProps: [
+ {
+ label: 'JDBC Driver',
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. com.mysql.jdbc.Driver or com.mysql.cj.jdbc.Driver'
+ },
+ {
+ label: 'JDBC URL',
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:mysql://localhost:9030'
+ },
+ {
+ label: 'JDBC User',
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ label: 'JDBC Password',
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ 'jdbc-starrocks': {
+ label: 'StarRocks',
+ defaultProps: [
+ {
+ label: 'JDBC Driver',
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. com.mysql.jdbc.Driver or com.mysql.cj.jdbc.Driver'
+ },
+ {
+ label: 'JDBC URL',
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:mysql://localhost:9030'
+ },
+ {
+ label: 'JDBC User',
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ label: 'JDBC Password',
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ 'lakehouse-paimon': {
+ label: 'Apache Paimon',
+ defaultProps: [
+ {
+ label: 'Catalog Backend',
+ key: 'catalog-backend',
+ value: 'filesystem',
+ required: true,
+ select: ['filesystem', 'hive', 'jdbc'],
+ description: 'paimonBackendDesc'
+ },
+ {
+ label: 'URI',
+ key: 'uri',
+ value: '',
+ required: true,
+ description: 'Only supports "filesystem" now.',
+ parentField: 'catalog-backend',
+ hide: ['filesystem']
+ },
+ {
+ label: 'Warehouse',
+ key: 'warehouse',
+ value: '',
+ required: true,
+ description: 'e.g. file:/user/hive/warehouse-paimon/ or hdfs://namespace/hdfs/path'
+ },
+ {
+ label: 'JDBC Driver',
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'filesystem'],
+ description:
+ '"com.mysql.jdbc.Driver" or "com.mysql.cj.jdbc.Driver" for MySQL, "org.postgresql.Driver" for PostgreSQL'
+ },
+ {
+ label: 'JDBC User',
+ key: 'jdbc-user',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'filesystem']
+ },
+ {
+ label: 'JDBC Password',
+ key: 'jdbc-password',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'filesystem']
+ },
+ {
+ label: 'Authentication Type',
+ key: 'authentication.type',
+ value: 'simple',
+ required: false,
+ description:
+ 'The type of authentication for Paimon catalog backend, currently Gravitino only supports Kerberos and simple',
+ select: ['simple', 'Kerberos']
+ },
+ {
+ label: 'Authentication Kerberos Principal',
+ key: 'authentication.kerberos.principal',
+ value: '',
+ required: true,
+ description: 'The principal of the Kerberos authentication.',
+ parentField: 'authentication.type',
+ hide: ['simple']
+ },
+ {
+ label: 'Authentication Kerberos Keytab Uri',
+ key: 'authentication.kerberos.keytab-uri',
+ value: '',
+ required: true,
+ description: 'The URI of The keytab for the Kerberos authentication.',
+ parentField: 'authentication.type',
+ hide: ['simple']
+ }
+ ]
+ },
+ 'lakehouse-generic': {
+ label: 'Lakehouse Generic',
+ defaultProps: []
+ },
+ 'lakehouse-hudi': {
+ label: 'Apache Hudi',
+ defaultProps: [
+ {
+ label: 'Catalog Backend',
+ key: 'catalog-backend',
+ value: 'hms',
+ defaultValue: 'hms',
+ required: true,
+ select: ['hms']
+ },
+ {
+ label: 'URI',
+ key: 'uri',
+ value: '',
+ required: true,
+ description: 'Apache Hudi catalog uri config'
+ }
+ ]
+ },
+ 'jdbc-oceanbase': {
+ label: 'OceanBase',
+ defaultProps: [
+ {
+ label: 'JDBC Driver',
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. com.mysql.jdbc.Driver or com.mysql.cj.jdbc.Driver or com.oceanbase.jdbc.Driver'
+ },
+ {
+ label: 'JDBC URL',
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:mysql://localhost:2881 or jdbc:oceanbase://localhost:2881'
+ },
+ {
+ label: 'JDBC User',
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ label: 'JDBC Password',
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ hadoop: {
+ label: 'Apache Hadoop',
+ defaultProps: []
+ },
+ kafka: {
+ label: 'Apache Kafka',
+ defaultProps: [
+ {
+ label: 'Bootstrap Servers',
+ key: 'bootstrap.servers',
+ value: '',
+ required: true,
+ description: 'The Apache Kafka broker(s) to connect to, allowing for multiple brokers by comma-separating them'
+ }
+ ]
+ },
+ model: {
+ label: 'Model',
+ defaultProps: []
+ }
+}
+
+export const Location = [
+ {
+ label: 'Apache Hadoop',
+ value: 'hadoop',
+ description: 'An open source distributed data storage system'
+ }
+]
+
+export const messagingProviders = [
+ {
+ label: 'Apache Kafka',
+ value: 'kafka',
+ description: 'A distributed streaming platform'
+ }
+]
+
+export const relationalProviders = [
+ {
+ label: 'Apache Doris',
+ value: 'jdbc-doris',
+ description: 'Open source, real-time data warehouse'
+ },
+ {
+ label: 'Apache Hive',
+ value: 'hive',
+ description: 'A distributed, fault-tolerant data warehouse system'
+ },
+ {
+ label: 'Apache Hudi',
+ value: 'lakehouse-hudi',
+ description: 'An open source data lake platform'
+ },
+ {
+ label: 'Apache Iceberg',
+ value: 'lakehouse-iceberg',
+ description: 'The open table format for analytic datasets'
+ },
+ {
+ label: 'Apache Paimon',
+ value: 'lakehouse-paimon',
+ description: 'A realtime lakehouse architecture with Flink and Spark for both streaming and batch operations'
+ },
+ {
+ label: 'Lakehouse Generic',
+ value: 'lakehouse-generic',
+ description: 'A generic lakehouse catalog supporting multiple table formats'
+ },
+ {
+ label: 'MySQL',
+ value: 'jdbc-mysql',
+ description: 'A fully managed database service'
+ },
+ {
+ label: 'OceanBase',
+ value: 'jdbc-oceanbase',
+ description: 'The multi-cloud distributed database for mission-critical workloads at any scale'
+ },
+ {
+ label: 'PostgreSQL',
+ value: 'jdbc-postgresql',
+ description: "The world's most advanced open source relational database"
+ },
+ {
+ label: 'StarRocks',
+ value: 'jdbc-starrocks',
+ description: 'An open source, high performance analytical database'
+ }
+]
diff --git a/web-v2/web/src/config/index.js b/web-v2/web/src/config/index.js
new file mode 100644
index 0000000000..eed62cf22e
--- /dev/null
+++ b/web-v2/web/src/config/index.js
@@ -0,0 +1,318 @@
+/*
+ * 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.
+ */
+
+export const dialogContentMaxHeigth = 500
+
+export const maxTreeWidth = 700
+
+export const mismatchName =
+ 'Must start with a letter, digit, or underscore, can include alphanumeric characters, underscores, slashes (/), equal signs (=), or hyphens (-), and must be between 1 and 64 characters long!'
+
+export const mismatchUsername =
+ 'Must start with a letter/underscore (_), contain only alphanumeric characters (Aa-Zz,0-9), underscore (_), center (-), dot (.) or the ‘@’ character.'
+
+export const mismatchForKey =
+ 'Must start with a letter/underscore(_), contain only alphanumeric characters (Aa-Zz,0-9) or underscores (_), hyphens(-), or dots(.)!'
+
+export const validateMessages = {
+ required: 'Please enter the ${label}!',
+ string: {
+ max: 'The ${label} must be less than ${max} characters!'
+ },
+ pattern: {
+ mismatch: mismatchName,
+ mismatchusername: mismatchUsername,
+ mismatchforkey: mismatchForKey
+ }
+}
+
+export const supportedObjectTypesMap = {
+ CATALOG: 'catalog',
+ SCHEMA: 'schema',
+ TABLE: 'table',
+ FILESET: 'fileset',
+ TOPIC: 'topic',
+ MODEL: 'model'
+}
+
+export const ColumnTypeColorEnum = {
+ boolean: 'blue',
+ short: 'blue',
+ integer: 'blue',
+ long: 'blue',
+ float: 'blue',
+ double: 'blue',
+ decimal: 'blue',
+ fixed: 'blue',
+
+ date: '',
+ time: '',
+ timestamp: '',
+ timestamp_tz: '',
+ interval_day: '',
+ interval_year: '',
+
+ string: 'orange',
+ char: 'orange',
+ varchar: 'orange',
+
+ byte: 'green',
+ uuid: 'green',
+ binary: 'green',
+
+ objectType: 'magenta'
+}
+
+export const jobStatusEnum = {
+ queued: 'queued',
+ started: 'started',
+ failed: 'failed',
+ succeeded: 'succeeded',
+ cancelling: 'cancelling',
+ cancelled: 'cancelled'
+}
+
+export const ColumnType = [
+ 'boolean',
+ 'byte',
+ 'short',
+ 'integer',
+ 'long',
+ 'float',
+ 'double',
+ 'date',
+ 'time',
+ 'timestamp',
+ 'timestamp_tz',
+ 'string',
+ 'interval_day',
+ 'interval_year',
+ 'uuid',
+ 'binary',
+ 'decimal'
+]
+
+export const ColumnTypeForMysql = ['byte unsigned', 'short unsigned', 'integer unsigned', 'long unsigned']
+
+export const ColumnTypeSupportAutoIncrement = [
+ 'byte',
+ 'short',
+ 'integer',
+ 'long',
+ 'byte unsigned',
+ 'short unsigned',
+ 'integer unsigned',
+ 'long unsigned'
+]
+
+export const ColumnWithParamType = ['char', 'varchar', 'fixed']
+
+export const ColumnSpesicalType = ['union', 'list', 'map', 'struct']
+
+export const UnsupportColumnType = {
+ 'lakehouse-iceberg': ['varchar', 'char', 'byte', 'short', 'interval_day', 'interval_year', 'union'],
+ hive: ['fixed', 'time', 'timestamp_tz', 'uuid'],
+ 'jdbc-mysql': [
+ 'boolean',
+ 'fixed',
+ 'struct',
+ 'list',
+ 'map',
+ 'timestamp_tz',
+ 'interval_day',
+ 'interval_year',
+ 'union',
+ 'uuid'
+ ],
+ 'jdbc-postgresql': ['fixed', 'byte', 'struct', 'map', 'interval_day', 'interval_year', 'union', 'uuid'],
+ 'jdbc-doris': [
+ 'fixed',
+ 'struct',
+ 'list',
+ 'map',
+ 'timestamp_tz',
+ 'interval_day',
+ 'interval_year',
+ 'union',
+ 'uuid',
+ 'binary',
+ 'time'
+ ],
+ 'lakehouse-generic': ['char', 'varchar', 'time', 'timestamp_tz'],
+ 'lakehouse-paimon': ['interval_day', 'interval_year', 'union', 'uuid']
+}
+
+const tableLevelPropInfoMap = {
+ hive: {
+ reserved: ['comment', 'EXTERNAL', 'numFiles', 'totalSize', 'transient_lastDdlTime'],
+ immutable: [
+ 'format',
+ 'input-format',
+ 'location',
+ 'output-format',
+ 'serde-name',
+ 'serde-lib',
+ 'serde.parameter',
+ 'table-type'
+ ],
+ allowAdd: true
+ },
+ 'jdbc-mysql': {
+ reserved: [],
+ immutable: ['auto-increment-offset', 'engine'],
+ allowAdd: true
+ },
+ 'jdbc-oceanbase': {
+ reserved: [],
+ immutable: [],
+ allowAdd: false
+ },
+ starrocks: {
+ reserved: [],
+ immutable: [],
+ allowAdd: true
+ },
+ 'jdbc-postgresql': {
+ reserved: [],
+ immutable: [],
+ allowAdd: false
+ },
+ 'lakehouse-iceberg': {
+ reserved: [
+ 'cherry-pick-snapshot-id',
+ 'comment',
+ 'creator',
+ 'current-snapshot-id',
+ 'identifier-fields',
+ 'sort-order',
+ 'write.distribution-mode'
+ ], // Can't be set or modified
+ immutable: ['location', 'provider', 'format', 'format-version'], // Can't be modified after creation
+ allowAdd: true
+ },
+ 'lakehouse-paimon': {
+ reserved: ['bucket-key', 'comment', 'owner', 'partition', 'primary-key'],
+ immutable: ['merge-engine', 'rowkind.field', 'sequence.field'],
+ allowAdd: true
+ },
+ kafka: {
+ reserved: [],
+ immutable: ['replication-factor'],
+ allowAdd: true
+ },
+ fileset: {
+ reserved: [],
+ immutable: ['default-location-name'],
+ allowAdd: true
+ }
+}
+
+export const getPropInfo = provider => {
+ if (Object.hasOwn(tableLevelPropInfoMap, provider)) {
+ return tableLevelPropInfoMap[provider]
+ }
+
+ return {
+ reserved: [],
+ immutable: ['in-use'],
+ allowAdd: true
+ }
+}
+
+export const distributionInfoMap = {
+ hive: {
+ required: false,
+ strategyOption: ['hash'],
+ funcArgs: ['field']
+ },
+ 'jdbc-doris': {
+ required: true,
+ strategyOption: ['hash', 'even'],
+ funcArgs: ['field']
+ },
+ 'jdbc-starrocks': {
+ required: true,
+ strategyOption: ['hash', 'even'],
+ funcArgs: ['field']
+ },
+ 'lakehouse-iceberg': {
+ required: false,
+ strategyOption: ['hash', 'range'],
+ funcArgs: null
+ }
+}
+
+export const partitionInfoMap = {
+ hive: ['identity'],
+ 'jdbc-doris': ['range', 'list'],
+ 'lakehouse-iceberg': ['identity', 'bucket', 'truncate', 'year', 'month', 'day', 'hour'],
+ 'lakehouse-paimon': ['identity']
+}
+
+export const transformsLimitMap = {
+ bucket: [
+ 'integer',
+ 'long',
+ 'decimal',
+ 'date',
+ 'time',
+ 'timestamp',
+ 'timestamp_tz',
+ 'string',
+ 'uuid',
+ 'fixed',
+ 'binary'
+ ],
+ truncate: ['integer', 'long', 'decimal', 'string', 'binary'],
+ year: ['date', 'timestamp', 'timestamp_tz'],
+ month: ['date', 'timestamp', 'timestamp_tz'],
+ day: ['date', 'timestamp', 'timestamp_tz'],
+ hour: ['timestamp', 'timestamp_tz']
+}
+
+export const sortOrdersInfoMap = {
+ hive: ['field'],
+ 'lakehouse-iceberg': ['field', 'bucket', 'truncate', 'year', 'month', 'day', 'hour']
+}
+
+export const indexesInfoMap = {
+ 'jdbc-doris': ['primary_key'],
+ 'jdbc-starrocks': ['primary_key'],
+ 'jdbc-mysql': ['primary_key', 'unique_key'],
+ 'jdbc-oceanbase': ['primary_key', 'unique_key'],
+ 'jdbc-postgresql': ['primary_key', 'unique_key'],
+ 'lakehouse-paimon': ['primary_key']
+}
+
+export const autoIncrementInfoMap = {
+ 'jdbc-mysql': {
+ notNullCheck: true,
+ uniqueCheck: true
+ },
+ 'jdbc-oceanbase': {
+ notNullCheck: true,
+ uniqueCheck: true
+ },
+ 'jdbc-postgresql': {
+ notNullCheck: true,
+ uniqueCheck: false
+ }
+}
+
+export const defaultValueSupported = ['jdbc-doris', 'jdbc-mysql', 'jdbc-oceanbase', 'jdbc-postgresql', 'jdbc-starrocks']
diff --git a/web-v2/web/src/config/routes.js b/web-v2/web/src/config/routes.js
new file mode 100644
index 0000000000..4e221e34ec
--- /dev/null
+++ b/web-v2/web/src/config/routes.js
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+
+export const ROUTES = {
+ Catalogs: '/catalogs',
+ Jobs: '/jobs',
+ Lineage: '/lineage',
+ Compliance: '/compliance',
+ Tags: '/compliance/tags',
+ Policies: '/compliance/policies',
+ RowFilters: '/compliance/row-filters',
+ ColumnMasks: '/compliance/column-masks',
+ Access: '/access',
+ Users: '/access/users',
+ UserGroups: '/access/userGroups',
+ Roles: '/access/roles',
+ Metalakes: '/metalakes'
+}
+
+export const routeValues = Object.values(ROUTES)
diff --git a/web-v2/web/src/config/security.js b/web-v2/web/src/config/security.js
new file mode 100644
index 0000000000..6a0cfd73e1
--- /dev/null
+++ b/web-v2/web/src/config/security.js
@@ -0,0 +1,151 @@
+/*
+ * 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.
+ */
+
+export const privilegeTypes = [
+ {
+ label: 'Metalake',
+ value: 'metalake'
+ },
+ {
+ label: 'Catalog',
+ value: 'catalog'
+ },
+ {
+ label: 'Schema',
+ value: 'schema'
+ },
+ {
+ label: 'Table',
+ value: 'table'
+ },
+ {
+ label: 'Topic',
+ value: 'topic'
+ },
+ {
+ label: 'Fileset',
+ value: 'fileset'
+ },
+ {
+ label: 'Model',
+ value: 'model'
+ },
+ {
+ label: 'Tag',
+ value: 'tag'
+ },
+ {
+ label: 'Policy',
+ value: 'policy'
+ },
+ {
+ label: 'Job Template',
+ value: 'job_template'
+ }
+]
+
+export const privilegeOptions = [
+ {
+ label: 'User privileges',
+ options: [{ label: 'Manage Users', value: 'manage_users' }]
+ },
+ {
+ label: 'Group privileges',
+ options: [{ label: 'Manage Groups', value: 'manage_groups' }]
+ },
+ {
+ label: 'Role privileges',
+ options: [{ label: 'Manage Grants', value: 'manage_grants' }]
+ },
+ {
+ label: 'Permission privileges',
+ options: [{ label: 'Create Role', value: 'create_role' }]
+ },
+ {
+ label: 'Catalog privileges',
+ options: [
+ { label: 'Create Catalog', value: 'create_catalog' },
+ { label: 'Use Catalog', value: 'use_catalog' }
+ ]
+ },
+ {
+ label: 'Schema privileges',
+ options: [
+ { label: 'Create Schema', value: 'create_schema' },
+ { label: 'Use Schema', value: 'use_schema' }
+ ]
+ },
+ {
+ label: 'Table privileges',
+ options: [
+ { label: 'Create Table', value: 'create_table' },
+ { label: 'Modify Table', value: 'modify_table' },
+ { label: 'Select Table', value: 'select_table' }
+ ]
+ },
+ {
+ label: 'Topic privileges',
+ options: [
+ { label: 'Create Topic', value: 'create_topic' },
+ { label: 'Produce Topic', value: 'produce_topic' },
+ { label: 'Consume Topic', value: 'consume_topic' }
+ ]
+ },
+ {
+ label: 'Fileset privileges',
+ options: [
+ { label: 'Create Fileset', value: 'create_fileset' },
+ { label: 'Write Fileset', value: 'write_fileset' },
+ { label: 'Read Fileset', value: 'read_fileset' }
+ ]
+ },
+ {
+ label: 'Model privileges',
+ options: [
+ { label: 'Register Model', value: 'register_model' },
+ { label: 'Link Model Version', value: 'link_model_version' },
+ { label: 'Use Model', value: 'use_model' }
+ ]
+ },
+ {
+ label: 'Tag privileges',
+ options: [
+ { label: 'Create Tag', value: 'create_tag' },
+ { label: 'Apply Tag', value: 'apply_tag' }
+ ]
+ },
+ {
+ label: 'Policy privileges',
+ options: [
+ { label: 'Create Policy', value: 'create_policy' },
+ { label: 'Apply Policy', value: 'apply_policy' }
+ ]
+ },
+ {
+ label: 'Job Template privileges',
+ options: [
+ { label: 'Register Job Template', value: 'register_job_template' },
+ { label: 'Use Job Template', value: 'use_job_template' }
+ ]
+ },
+ {
+ label: 'Job privileges',
+ options: [{ label: 'Run Job', value: 'run_job' }]
+ }
+]
diff --git a/web-v2/web/src/config/themeConfig.js b/web-v2/web/src/config/themeConfig.js
new file mode 100644
index 0000000000..2523ff5a4d
--- /dev/null
+++ b/web-v2/web/src/config/themeConfig.js
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ */
+
+// @ts-check
+
+/**
+ * @typedef {import('react-hot-toast').ToastPosition} ToastPosition
+ */
+
+const themeConfig = {
+ /**
+ * @description message box position
+ * @type {ToastPosition}
+ */
+ toastPosition: 'top-right',
+
+ /**
+ * @description message box duration in milliseconds
+ * @type {number}
+ */
+ toastDuration: 4000
+}
+
+export default themeConfig
diff --git a/web-v2/web/src/lib/api/auth/index.js b/web-v2/web/src/lib/api/auth/index.js
new file mode 100644
index 0000000000..fe9e596ce6
--- /dev/null
+++ b/web-v2/web/src/lib/api/auth/index.js
@@ -0,0 +1,40 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+import { ContentTypeEnum } from '@/lib/enums/httpEnum'
+
+export const getAuthConfigsApi = () => {
+ return defHttp.get({
+ url: '/configs'
+ })
+}
+
+export const loginApi = (url, params) => {
+ return defHttp.post(
+ {
+ url,
+ data: params,
+ headers: {
+ 'Content-Type': ContentTypeEnum.FORM_URLENCODED
+ }
+ },
+ { withToken: false }
+ )
+}
diff --git a/web-v2/web/src/lib/api/catalogs/index.js b/web-v2/web/src/lib/api/catalogs/index.js
new file mode 100644
index 0000000000..b05c9ff590
--- /dev/null
+++ b/web-v2/web/src/lib/api/catalogs/index.js
@@ -0,0 +1,80 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/catalogs?details=true`,
+ GET_DETAIL: ({ metalake, catalog }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}`,
+ CREATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/catalogs`,
+ TEST_CONNECT: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/testConnection`,
+ UPDATE: ({ metalake, catalog }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}`,
+ DELETE: ({ metalake, catalog }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}?force=true`,
+ UPDATEINUSE: ({ metalake, catalog }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}`
+}
+
+export const getCatalogsApi = params => {
+ return defHttp.get({
+ url: `${Apis.GET(params)}`
+ })
+}
+
+export const getCatalogDetailsApi = ({ metalake, catalog }) => {
+ return defHttp.get({
+ url: `${Apis.GET_DETAIL({ metalake, catalog })}`
+ })
+}
+
+export const createCatalogApi = ({ data, metalake }) => {
+ return defHttp.post({
+ url: `${Apis.CREATE({ metalake })}`,
+ data
+ })
+}
+
+export const testCatalogConnectionApi = ({ data, metalake }) => {
+ return defHttp.post({
+ url: `${Apis.TEST_CONNECT({ metalake })}`,
+ data
+ })
+}
+
+export const updateCatalogApi = ({ metalake, catalog, data }) => {
+ return defHttp.put({
+ url: `${Apis.UPDATE({ metalake, catalog })}`,
+ data
+ })
+}
+
+export const deleteCatalogApi = ({ metalake, catalog }) => {
+ return defHttp.delete({
+ url: `${Apis.DELETE({ metalake, catalog })}`
+ })
+}
+
+export const switchInUseCatalogApi = ({ metalake, catalog, isInUse }) => {
+ return defHttp.patch({
+ url: `${Apis.UPDATEINUSE({ metalake, catalog })}`,
+ data: { inUse: isInUse }
+ })
+}
diff --git a/web-v2/web/src/lib/api/filesets/index.js b/web-v2/web/src/lib/api/filesets/index.js
new file mode 100644
index 0000000000..43039736b9
--- /dev/null
+++ b/web-v2/web/src/lib/api/filesets/index.js
@@ -0,0 +1,77 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/filesets`,
+ GET_DETAIL: ({ metalake, catalog, schema, fileset }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/filesets/${encodeURIComponent(fileset)}`,
+ LIST_FILES: ({ metalake, catalog, schema, fileset, subPath, locationName }) => {
+ const params = new URLSearchParams()
+ if (subPath) params.append('sub_path', subPath)
+ if (locationName) params.append('location_name', locationName)
+ const queryString = params.toString()
+
+ return `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/filesets/${encodeURIComponent(fileset)}/files${queryString ? `?${queryString}` : ''}`
+ },
+ CREATE: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/filesets`,
+ UPDATE: ({ metalake, catalog, schema, fileset }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/filesets/${encodeURIComponent(fileset)}`,
+ DELETE: ({ metalake, catalog, schema, fileset }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/filesets/${encodeURIComponent(fileset)}`
+}
+
+export const getFilesetsApi = params => {
+ return defHttp.get({
+ url: `${Apis.GET(params)}`
+ })
+}
+
+export const getFilesetDetailsApi = ({ metalake, catalog, schema, fileset }) => {
+ return defHttp.get({
+ url: `${Apis.GET_DETAIL({ metalake, catalog, schema, fileset })}`
+ })
+}
+
+export const listFilesetFilesApi = ({ metalake, catalog, schema, fileset, subPath = '/', locationName }) => {
+ return defHttp.get({
+ url: `${Apis.LIST_FILES({ metalake, catalog, schema, fileset, subPath, locationName })}`
+ })
+}
+
+export const createFilesetApi = ({ metalake, catalog, schema, data }) => {
+ return defHttp.post({ url: `${Apis.CREATE({ metalake, catalog, schema })}`, data })
+}
+
+export const updateFilesetApi = ({ metalake, catalog, schema, fileset, data }) => {
+ return defHttp.put({ url: `${Apis.UPDATE({ metalake, catalog, schema, fileset })}`, data })
+}
+
+export const deleteFilesetApi = ({ metalake, catalog, schema, fileset }) => {
+ return defHttp.delete({ url: `${Apis.DELETE({ metalake, catalog, schema, fileset })}` })
+}
diff --git a/web-v2/web/src/lib/api/github/index.js b/web-v2/web/src/lib/api/github/index.js
new file mode 100644
index 0000000000..9a981519a4
--- /dev/null
+++ b/web-v2/web/src/lib/api/github/index.js
@@ -0,0 +1,33 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+export const githubApis = {
+ GET: 'https://api.github.com/repos/apache/gravitino'
+}
+
+export const getGitHubApi = () => {
+ return defHttp.get({
+ url: `${githubApis.GET}`,
+ headers: {
+ Accept: 'application/vnd.github+json'
+ }
+ })
+}
diff --git a/web-v2/web/src/lib/api/jobs/index.js b/web-v2/web/src/lib/api/jobs/index.js
new file mode 100644
index 0000000000..80d5b2865e
--- /dev/null
+++ b/web-v2/web/src/lib/api/jobs/index.js
@@ -0,0 +1,96 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/jobs/runs`,
+ GET_TEMPLATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/jobs/templates`,
+ GET_DETAIL: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}`,
+ CREATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/jobs/runs`,
+ REGISTER_JOB_TEMPLATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/jobs/templates`,
+ UPDATE_JOB_TEMPLATE: ({ metalake, jobTemplate }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/jobs/templates/${encodeURIComponent(jobTemplate)}`,
+ GET_TEMPLATE_DETAIL: ({ metalake, jobTemplate }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/jobs/templates/${encodeURIComponent(jobTemplate)}`,
+ DELETE_TEMPLATE: ({ metalake, jobTemplate }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/jobs/templates/${encodeURIComponent(jobTemplate)}`,
+ GET_JOB_DETAIL: ({ metalake, jobId }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/jobs/runs/${encodeURIComponent(jobId)}`,
+ CANCEL_JOB: ({ metalake, jobId }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/jobs/runs/${encodeURIComponent(jobId)}`
+}
+
+export const getJobsApi = ({ metalake }) => {
+ return defHttp.get({
+ url: Apis.GET({ metalake })
+ })
+}
+
+export const getJobTemplatesApi = ({ metalake, details }) => {
+ return defHttp.get({
+ url: Apis.GET_TEMPLATE({ metalake }),
+ params: { details }
+ })
+}
+
+export const createJobTemplateApi = ({ metalake, data }) => {
+ return defHttp.post({
+ url: Apis.REGISTER_JOB_TEMPLATE({ metalake }),
+ data
+ })
+}
+
+export const updateJobTemplateApi = ({ metalake, jobTemplate, data }) => {
+ return defHttp.put({
+ url: Apis.UPDATE_JOB_TEMPLATE({ metalake, jobTemplate }),
+ data
+ })
+}
+
+export const getJobTemplateApi = ({ metalake, jobTemplate }) => {
+ return defHttp.get({
+ url: Apis.GET_TEMPLATE_DETAIL({ metalake, jobTemplate })
+ })
+}
+
+export const deleteJobTemplateApi = ({ metalake, jobTemplate }) => {
+ return defHttp.delete({
+ url: Apis.DELETE_TEMPLATE({ metalake, jobTemplate })
+ })
+}
+
+export const createJobApi = ({ metalake, data }) => {
+ return defHttp.post({
+ url: Apis.CREATE({ metalake }),
+ data
+ })
+}
+
+export const getJobApi = ({ metalake, jobId }) => {
+ return defHttp.get({
+ url: Apis.GET_JOB_DETAIL({ metalake, jobId })
+ })
+}
+
+export const cancelJobApi = ({ metalake, jobId }) => {
+ return defHttp.post({
+ url: Apis.CANCEL_JOB({ metalake, jobId })
+ })
+}
diff --git a/web-v2/web/src/lib/api/metalakes/index.js b/web-v2/web/src/lib/api/metalakes/index.js
new file mode 100644
index 0000000000..4d65f4ef93
--- /dev/null
+++ b/web-v2/web/src/lib/api/metalakes/index.js
@@ -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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: '/api/metalakes',
+ CREATE: '/api/metalakes',
+ DELETE: '/api/metalakes',
+ UPDATE: '/api/metalakes',
+ UPDATEINUSE: '/api/metalakes',
+ OWNER_PATH: ({ metalake, metadataObjectType, metadataObjectFullName }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/owners/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}`,
+ TAGS_PATH: ({ metalake, metadataObjectType, metadataObjectFullName }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/objects/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}/tags`,
+ POLICIES_PATH: ({ metalake, metadataObjectType, metadataObjectFullName }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/objects/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}/policies`,
+ METADATA_PATH_TAG: ({ metalake, tag }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/tags/${encodeURIComponent(tag)}/objects`,
+ METADATA_PATH_POLICY: ({ metalake, policy }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/policies/${encodeURIComponent(policy)}/objects`
+}
+
+export const getMetalakesApi = () => {
+ return defHttp.get({
+ url: `${Apis.GET}`
+ })
+}
+
+export const getMetalakeDetailsApi = name => {
+ return defHttp.get({
+ url: `${Apis.GET}/${name}`
+ })
+}
+
+export const createMetalakeApi = data => {
+ return defHttp.post({
+ url: `${Apis.CREATE}`,
+ data
+ })
+}
+
+export const deleteMetalakeApi = name => {
+ return defHttp.delete({
+ url: `${Apis.DELETE}/${name}`
+ })
+}
+
+export const updateMetalakeApi = ({ name, data }) => {
+ return defHttp.put({
+ url: `${Apis.UPDATE}/${name}`,
+ data
+ })
+}
+
+export const getMetalakeDataApi = url => {
+ return defHttp.get({
+ url: `/api${url}`
+ })
+}
+
+export const switchInUseApi = ({ name, isInUse }) => {
+ return defHttp.patch({
+ url: `${Apis.UPDATEINUSE}/${name}`,
+ data: { inUse: isInUse }
+ })
+}
+
+export const getEntityOwnerApi = (metalake, metadataObjectType, metadataObjectFullName) => {
+ return defHttp.get({
+ url: Apis.OWNER_PATH({ metalake, metadataObjectType, metadataObjectFullName })
+ })
+}
+
+export const setEntityOwnerApi = (metalake, metadataObjectType, metadataObjectFullName, data) => {
+ return defHttp.put({
+ url: Apis.OWNER_PATH({ metalake, metadataObjectType, metadataObjectFullName }),
+ data
+ })
+}
+
+export const getCurrentEntityTagsApi = (metalake, metadataObjectType, metadataObjectFullName, details) => {
+ return defHttp.get({
+ url: Apis.TAGS_PATH({ metalake, metadataObjectType, metadataObjectFullName }),
+ params: { details }
+ })
+}
+
+export const getCurrentEntityPoliciesApi = ({ metalake, metadataObjectType, metadataObjectFullName, details }) => {
+ return defHttp.get({
+ url: Apis.POLICIES_PATH({ metalake, metadataObjectType, metadataObjectFullName }),
+ params: { details }
+ })
+}
+
+export const getMetadataObjectsForTagApi = (metalake, tag) => {
+ return defHttp.get({
+ url: Apis.METADATA_PATH_TAG({ metalake, tag })
+ })
+}
+
+export const getMetadataObjectsForPolicyApi = (metalake, policy) => {
+ return defHttp.get({
+ url: Apis.METADATA_PATH_POLICY({ metalake, policy })
+ })
+}
diff --git a/web-v2/web/src/lib/api/models/index.js b/web-v2/web/src/lib/api/models/index.js
new file mode 100644
index 0000000000..ec71e94874
--- /dev/null
+++ b/web-v2/web/src/lib/api/models/index.js
@@ -0,0 +1,110 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/models`,
+ GET_DETAIL: ({ metalake, catalog, schema, model }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/models/${encodeURIComponent(model)}`,
+ REGISTER: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/models`,
+ UPDATE: ({ metalake, catalog, schema, model }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/models/${encodeURIComponent(model)}`,
+ DELETE: ({ metalake, catalog, schema, model }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/models/${encodeURIComponent(model)}`,
+ GET_VERSIONS: ({ metalake, catalog, schema, model }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/models/${encodeURIComponent(model)}/versions`,
+ GET_VERSION_DETAIL: ({ metalake, catalog, schema, model, version }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/models/${encodeURIComponent(model)}/versions/${version}`,
+ LINK_VERSION: ({ metalake, catalog, schema, model }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/models/${encodeURIComponent(model)}/versions`,
+ UPDATE_VERSION: ({ metalake, catalog, schema, model, version }) => {
+ return `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/models/${encodeURIComponent(model)}/versions/${version}`
+ },
+ DELETE_VERSION: ({ metalake, catalog, schema, model, version }) => {
+ return `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/models/${encodeURIComponent(model)}/versions/${encodeURIComponent(version)}`
+ }
+}
+
+export const getModelsApi = params => {
+ return defHttp.get({
+ url: `${Apis.GET(params)}`
+ })
+}
+
+export const getModelDetailsApi = ({ metalake, catalog, schema, model }) => {
+ return defHttp.get({
+ url: `${Apis.GET_DETAIL({ metalake, catalog, schema, model })}`
+ })
+}
+
+export const registerModelApi = ({ metalake, catalog, schema, data }) => {
+ return defHttp.post({ url: `${Apis.REGISTER({ metalake, catalog, schema })}`, data })
+}
+
+export const updateModelApi = ({ metalake, catalog, schema, model, data }) => {
+ return defHttp.put({ url: `${Apis.UPDATE({ metalake, catalog, schema, model })}`, data })
+}
+
+export const deleteModelApi = ({ metalake, catalog, schema, model }) => {
+ return defHttp.delete({ url: `${Apis.DELETE({ metalake, catalog, schema, model })}` })
+}
+
+export const getModelVersionsApi = params => {
+ return defHttp.get({
+ url: `${Apis.GET_VERSIONS(params)}`
+ })
+}
+
+export const linkVersionApi = ({ metalake, catalog, schema, model, data }) => {
+ return defHttp.post({ url: `${Apis.LINK_VERSION({ metalake, catalog, schema, model })}`, data })
+}
+
+export const updateVersionApi = ({ metalake, catalog, schema, model, version, data }) => {
+ return defHttp.put({
+ url: `${Apis.UPDATE_VERSION({ metalake, catalog, schema, model, version })}`,
+ data
+ })
+}
+
+export const getVersionDetailsApi = ({ metalake, catalog, schema, model, version }) => {
+ return defHttp.get({
+ url: `${Apis.GET_VERSION_DETAIL({ metalake, catalog, schema, model, version })}`
+ })
+}
+
+export const deleteVersionApi = ({ metalake, catalog, schema, model, version }) => {
+ return defHttp.delete({
+ url: `${Apis.DELETE_VERSION({ metalake, catalog, schema, model, version })}`
+ })
+}
diff --git a/web-v2/web/src/lib/api/policies/index.js b/web-v2/web/src/lib/api/policies/index.js
new file mode 100644
index 0000000000..ef1f0dffc5
--- /dev/null
+++ b/web-v2/web/src/lib/api/policies/index.js
@@ -0,0 +1,80 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/policies`,
+ GET_DETAIL: ({ metalake, policy }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/policies/${encodeURIComponent(policy)}`,
+ CREATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/policies`,
+ DELETE: ({ metalake, policy }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/policies/${encodeURIComponent(policy)}`,
+ UPDATE: ({ metalake, policy }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/policies/${encodeURIComponent(policy)}`,
+ ASSOCIATE: ({ metalake, metadataObjectType, metadataObjectFullName }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/objects/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}/policies`
+}
+
+export const getPoliciesApi = ({ metalake, details }) => {
+ return defHttp.get({
+ url: Apis.GET({ metalake }),
+ params: { details }
+ })
+}
+
+export const getPolicyDetailsApi = ({ metalake, policy }) => {
+ return defHttp.get({
+ url: Apis.GET_DETAIL({ metalake, policy })
+ })
+}
+
+export const createPolicyApi = ({ metalake, data }) => {
+ return defHttp.post({
+ url: Apis.CREATE({ metalake }),
+ data
+ })
+}
+
+export const deletePolicyApi = ({ metalake, policy }) => {
+ return defHttp.delete({
+ url: Apis.DELETE({ metalake, policy })
+ })
+}
+
+export const updatePolicyApi = ({ metalake, policy, data }) => {
+ return defHttp.put({
+ url: Apis.UPDATE({ metalake, policy }),
+ data
+ })
+}
+
+export const enableOrDisablePolicyApi = ({ metalake, policy, data }) => {
+ return defHttp.patch({
+ url: `${Apis.UPDATE({ metalake, policy })}`,
+ data
+ })
+}
+
+export const associatePolicyApi = ({ metalake, metadataObjectType, metadataObjectFullName, data }) => {
+ return defHttp.post({
+ url: Apis.ASSOCIATE({ metalake, metadataObjectType, metadataObjectFullName }),
+ data
+ })
+}
diff --git a/web-v2/web/src/lib/api/roles/index.js b/web-v2/web/src/lib/api/roles/index.js
new file mode 100644
index 0000000000..a8b170fb29
--- /dev/null
+++ b/web-v2/web/src/lib/api/roles/index.js
@@ -0,0 +1,74 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/roles`,
+ GET_DETAIL: ({ metalake, role }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/roles/${encodeURIComponent(role)}`,
+ CREATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/roles`,
+ UPDATE: ({ metalake, role }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/permissions/roles/${encodeURIComponent(role)}`,
+ DELETE: ({ metalake, role }) => `/api/metalakes/${encodeURIComponent(metalake)}/roles/${encodeURIComponent(role)}`,
+ GRANT_PRIVILEGE: ({ metalake, role, metadataObjectType, metadataObjectFullName }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/permissions/roles/${encodeURIComponent(role)}/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}/grant`,
+ REVOKE_PRIVILEGE: ({ metalake, role, metadataObjectType, metadataObjectFullName }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/permissions/roles/${encodeURIComponent(role)}/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}/revoke`,
+ LIST_ROLES_FOR_OBJECT: ({ metalake, metadataObjectType, metadataObjectFullName }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/objects/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}/roles`
+}
+
+export const getRolesApi = ({ metalake }) => {
+ return defHttp.get({
+ url: Apis.GET({ metalake })
+ })
+}
+
+export const createRoleApi = ({ metalake, data }) => {
+ return defHttp.post({
+ url: Apis.CREATE({ metalake }),
+ data
+ })
+}
+
+export const getRoleDetailsApi = ({ metalake, role }) => {
+ return defHttp.get({
+ url: Apis.GET_DETAIL({ metalake, role })
+ })
+}
+
+export const updateRolePrivilegesApi = ({ metalake, role, data }) => {
+ return defHttp.put({
+ url: Apis.UPDATE({ metalake, role }),
+ data
+ })
+}
+
+export const deleteRoleApi = ({ metalake, role }) => {
+ return defHttp.delete({
+ url: Apis.DELETE({ metalake, role })
+ })
+}
+
+export const listRolesForObjectApi = ({ metalake, metadataObjectType, metadataObjectFullName }) => {
+ return defHttp.get({
+ url: Apis.LIST_ROLES_FOR_OBJECT({ metalake, metadataObjectType, metadataObjectFullName })
+ })
+}
diff --git a/web-v2/web/src/lib/api/schemas/index.js b/web-v2/web/src/lib/api/schemas/index.js
new file mode 100644
index 0000000000..0848c1e545
--- /dev/null
+++ b/web-v2/web/src/lib/api/schemas/index.js
@@ -0,0 +1,59 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake, catalog }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas`,
+ GET_DETAIL: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}`,
+ CREATE: ({ metalake, catalog }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas`,
+ UPDATE: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}`,
+ DELETE: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}`
+}
+
+export const getSchemasApi = params => {
+ return defHttp.get({
+ url: `${Apis.GET(params)}`
+ })
+}
+
+export const getSchemaDetailsApi = ({ metalake, catalog, schema }) => {
+ return defHttp.get({
+ url: `${Apis.GET_DETAIL({ metalake, catalog, schema })}`
+ })
+}
+
+export const createSchemaApi = ({ metalake, catalog, data }) => {
+ return defHttp.post({ url: `${Apis.CREATE({ metalake, catalog })}`, data })
+}
+
+export const updateSchemaApi = ({ metalake, catalog, schema, data }) => {
+ return defHttp.put({ url: `${Apis.UPDATE({ metalake, catalog, schema })}`, data })
+}
+
+export const deleteSchemaApi = ({ metalake, catalog, schema }) => {
+ return defHttp.delete({ url: `${Apis.DELETE({ metalake, catalog, schema })}` })
+}
diff --git a/web-v2/web/src/lib/api/tables/index.js b/web-v2/web/src/lib/api/tables/index.js
new file mode 100644
index 0000000000..f2a786014b
--- /dev/null
+++ b/web-v2/web/src/lib/api/tables/index.js
@@ -0,0 +1,61 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/tables`,
+ GET_DETAIL: ({ metalake, catalog, schema, table }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/tables/${encodeURIComponent(table)}`,
+ CREATE: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/tables`,
+ UPDATE: ({ metalake, catalog, schema, table }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/tables/${encodeURIComponent(table)}`,
+ DELETE: ({ metalake, catalog, schema, table }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/tables/${encodeURIComponent(table)}`
+}
+
+export const getTablesApi = params => {
+ return defHttp.get({
+ url: `${Apis.GET(params)}`
+ })
+}
+
+export const getTableDetailsApi = ({ metalake, catalog, schema, table }) => {
+ return defHttp.get({
+ url: `${Apis.GET_DETAIL({ metalake, catalog, schema, table })}`
+ })
+}
+
+export const createTableApi = ({ metalake, catalog, schema, data }) => {
+ return defHttp.post({ url: `${Apis.CREATE({ metalake, catalog, schema })}`, data })
+}
+
+export const updateTableApi = ({ metalake, catalog, schema, table, data }) => {
+ return defHttp.put({ url: `${Apis.UPDATE({ metalake, catalog, schema, table })}`, data })
+}
+
+export const deleteTableApi = ({ metalake, catalog, schema, table }) => {
+ return defHttp.delete({ url: `${Apis.DELETE({ metalake, catalog, schema, table })}` })
+}
diff --git a/web-v2/web/src/lib/api/tags/index.js b/web-v2/web/src/lib/api/tags/index.js
new file mode 100644
index 0000000000..a7ef9cfcee
--- /dev/null
+++ b/web-v2/web/src/lib/api/tags/index.js
@@ -0,0 +1,70 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/tags`,
+ GET_DETAIL: ({ metalake, tag }) => `/api/metalakes/${encodeURIComponent(metalake)}/tags/${encodeURIComponent(tag)}`,
+ CREATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/tags`,
+ DELETE: ({ metalake, tag }) => `/api/metalakes/${encodeURIComponent(metalake)}/tags/${encodeURIComponent(tag)}`,
+ UPDATE: ({ metalake, tag }) => `/api/metalakes/${encodeURIComponent(metalake)}/tags/${encodeURIComponent(tag)}`,
+ ASSOCIATE: ({ metalake, metadataObjectType, metadataObjectFullName }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/objects/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}/tags`
+}
+
+export const getTagsApi = ({ metalake, details }) => {
+ return defHttp.get({
+ url: Apis.GET({ metalake }),
+ params: { details }
+ })
+}
+
+export const getTagDetailsApi = ({ metalake, tag }) => {
+ return defHttp.get({
+ url: Apis.GET_DETAIL({ metalake, tag })
+ })
+}
+
+export const createTagApi = ({ metalake, data }) => {
+ return defHttp.post({
+ url: Apis.CREATE({ metalake }),
+ data
+ })
+}
+
+export const deleteTagApi = ({ metalake, tag }) => {
+ return defHttp.delete({
+ url: Apis.DELETE({ metalake, tag })
+ })
+}
+
+export const updateTagApi = ({ metalake, tag, data }) => {
+ return defHttp.put({
+ url: Apis.UPDATE({ metalake, tag }),
+ data
+ })
+}
+
+export const associateTagApi = ({ metalake, metadataObjectType, metadataObjectFullName, data }) => {
+ return defHttp.post({
+ url: Apis.ASSOCIATE({ metalake, metadataObjectType, metadataObjectFullName }),
+ data
+ })
+}
diff --git a/web-v2/web/src/lib/api/topics/index.js b/web-v2/web/src/lib/api/topics/index.js
new file mode 100644
index 0000000000..24f8afd81f
--- /dev/null
+++ b/web-v2/web/src/lib/api/topics/index.js
@@ -0,0 +1,61 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/topics`,
+ GET_DETAIL: ({ metalake, catalog, schema, topic }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(
+ catalog
+ )}/schemas/${encodeURIComponent(schema)}/topics/${encodeURIComponent(topic)}`,
+ CREATE: ({ metalake, catalog, schema }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/topics`,
+ UPDATE: ({ metalake, catalog, schema, topic }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/topics/${encodeURIComponent(topic)}`,
+ DELETE: ({ metalake, catalog, schema, topic }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/catalogs/${encodeURIComponent(catalog)}/schemas/${encodeURIComponent(schema)}/topics/${encodeURIComponent(topic)}`
+}
+
+export const getTopicsApi = params => {
+ return defHttp.get({
+ url: `${Apis.GET(params)}`
+ })
+}
+
+export const getTopicDetailsApi = ({ metalake, catalog, schema, topic }) => {
+ return defHttp.get({
+ url: `${Apis.GET_DETAIL({ metalake, catalog, schema, topic })}`
+ })
+}
+
+export const createTopicApi = ({ metalake, catalog, schema, data }) => {
+ return defHttp.post({ url: `${Apis.CREATE({ metalake, catalog, schema })}`, data })
+}
+
+export const updateTopicApi = ({ metalake, catalog, schema, topic, data }) => {
+ return defHttp.put({ url: `${Apis.UPDATE({ metalake, catalog, schema, topic })}`, data })
+}
+
+export const deleteTopicApi = ({ metalake, catalog, schema, topic }) => {
+ return defHttp.delete({ url: `${Apis.DELETE({ metalake, catalog, schema, topic })}` })
+}
diff --git a/web-v2/web/src/lib/api/userGroups/index.js b/web-v2/web/src/lib/api/userGroups/index.js
new file mode 100644
index 0000000000..efbc763f55
--- /dev/null
+++ b/web-v2/web/src/lib/api/userGroups/index.js
@@ -0,0 +1,65 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/groups`,
+ GET_DETAIL: ({ group }) => `/api/tags/${encodeURIComponent(group)}`,
+ CREATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/groups`,
+ DELETE: ({ metalake, group }) => `/api/metalakes/${encodeURIComponent(metalake)}/groups/${encodeURIComponent(group)}`,
+ GRANT_ROLES: ({ metalake, group }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/permissions/groups/${encodeURIComponent(group)}/grant`,
+ REVOKE_ROLES: ({ metalake, group }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/permissions/groups/${encodeURIComponent(group)}/revoke`
+}
+
+export const getUserGroupsApi = ({ metalake, details }) => {
+ return defHttp.get({
+ url: Apis.GET({ metalake }),
+ params: { details }
+ })
+}
+
+export const createUserGroupApi = ({ metalake, data }) => {
+ return defHttp.post({
+ url: Apis.CREATE({ metalake }),
+ data
+ })
+}
+
+export const deleteUserGroupApi = ({ metalake, group }) => {
+ return defHttp.delete({
+ url: Apis.DELETE({ metalake, group })
+ })
+}
+
+export const grantRolesForUserGroupApi = ({ metalake, group, data }) => {
+ return defHttp.put({
+ url: Apis.GRANT_ROLES({ metalake, group }),
+ data
+ })
+}
+
+export const revokeRolesForUserGroupApi = ({ metalake, group, data }) => {
+ return defHttp.put({
+ url: Apis.REVOKE_ROLES({ metalake, group }),
+ data
+ })
+}
diff --git a/web-v2/web/src/lib/api/users/index.js b/web-v2/web/src/lib/api/users/index.js
new file mode 100644
index 0000000000..3ad7e3351e
--- /dev/null
+++ b/web-v2/web/src/lib/api/users/index.js
@@ -0,0 +1,65 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/users`,
+ GET_DETAIL: ({ user }) => `/api/users/${encodeURIComponent(user)}`,
+ CREATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/users`,
+ DELETE: ({ metalake, user }) => `/api/metalakes/${encodeURIComponent(metalake)}/users/${encodeURIComponent(user)}`,
+ GRANT_ROLES: ({ metalake, user }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/permissions/users/${encodeURIComponent(user)}/grant`,
+ REVOKE_ROLES: ({ metalake, user }) =>
+ `/api/metalakes/${encodeURIComponent(metalake)}/permissions/users/${encodeURIComponent(user)}/revoke`
+}
+
+export const getUsersApi = ({ metalake, details }) => {
+ return defHttp.get({
+ url: Apis.GET({ metalake }),
+ params: { details }
+ })
+}
+
+export const createUserApi = ({ metalake, data }) => {
+ return defHttp.post({
+ url: Apis.CREATE({ metalake }),
+ data
+ })
+}
+
+export const deleteUserApi = ({ metalake, user }) => {
+ return defHttp.delete({
+ url: Apis.DELETE({ metalake, user })
+ })
+}
+
+export const grantRolesForUserApi = ({ metalake, user, data }) => {
+ return defHttp.put({
+ url: Apis.GRANT_ROLES({ metalake, user }),
+ data
+ })
+}
+
+export const revokeRolesForUserApi = ({ metalake, user, data }) => {
+ return defHttp.put({
+ url: Apis.REVOKE_ROLES({ metalake, user }),
+ data
+ })
+}
diff --git a/web-v2/web/src/lib/api/version/index.js b/web-v2/web/src/lib/api/version/index.js
new file mode 100644
index 0000000000..6e84bac6c4
--- /dev/null
+++ b/web-v2/web/src/lib/api/version/index.js
@@ -0,0 +1,30 @@
+/*
+ * 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 { defHttp } from '@/lib/utils/axios'
+
+const Apis = {
+ GET: '/api/version'
+}
+
+export const getVersionApi = () => {
+ return defHttp.get({
+ url: `${Apis.GET}`
+ })
+}
diff --git a/web-v2/web/src/lib/auth/providers/base.js b/web-v2/web/src/lib/auth/providers/base.js
new file mode 100644
index 0000000000..4b6bea7e45
--- /dev/null
+++ b/web-v2/web/src/lib/auth/providers/base.js
@@ -0,0 +1,70 @@
+/*
+ * 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.
+ */
+
+/**
+ * Base OAuth Provider Interface
+ * All OAuth providers should implement these methods
+ */
+export class BaseOAuthProvider {
+ constructor(config) {
+ this.config = config
+ this.providerType = 'base'
+ }
+
+ /**
+ * Initialize the provider with configuration
+ * @param {Object} config - OAuth configuration from backend
+ * @returns {Promise<void>}
+ */
+ async initialize(config) {
+ throw new Error('initialize() must be implemented by OAuth provider')
+ }
+
+ /**
+ * Get access token for API calls
+ * @returns {Promise<string|null>} - Access token or null if not available
+ */
+ async getAccessToken() {
+ throw new Error('getAccessToken() must be implemented by OAuth provider')
+ }
+
+ /**
+ * Check if user is currently authenticated
+ * @returns {Promise<boolean>} - True if authenticated, false otherwise
+ */
+ async isAuthenticated() {
+ throw new Error('isAuthenticated() must be implemented by OAuth provider')
+ }
+
+ /**
+ * Clear authentication data (logout)
+ * @returns {Promise<void>}
+ */
+ async clearAuthData() {
+ throw new Error('clearAuthData() must be implemented by OAuth provider')
+ }
+
+ /**
+ * Get provider type
+ * @returns {string}
+ */
+ getType() {
+ return this.providerType
+ }
+}
diff --git a/web-v2/web/src/lib/auth/providers/factory.js b/web-v2/web/src/lib/auth/providers/factory.js
new file mode 100644
index 0000000000..4b8518a9aa
--- /dev/null
+++ b/web-v2/web/src/lib/auth/providers/factory.js
@@ -0,0 +1,127 @@
+/*
+ * 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 { OidcOAuthProvider } from './oidc'
+import { GenericOAuthProvider } from './generic'
+import { get } from 'http'
+
+// Registry of available OAuth providers
+const PROVIDER_REGISTRY = {
+ oidc: OidcOAuthProvider,
+ default: GenericOAuthProvider
+}
+
+/**
+ * OAuth Provider Factory
+ * Creates and manages OAuth provider instances
+ */
+class OAuthProviderFactory {
+ constructor() {
+ this.currentProvider = null
+ this.configPromise = null
+ }
+
+ /**
+ * Get or create OAuth provider based on configuration
+ * @returns {Promise<BaseOAuthProvider>}
+ */
+ async getProvider() {
+ if (this.currentProvider) {
+ return this.currentProvider
+ }
+
+ if (this.configPromise) {
+ await this.configPromise
+
+ return this.currentProvider
+ }
+
+ this.configPromise = this._initializeProvider()
+ await this.configPromise
+
+ return this.currentProvider
+ }
+
+ async _initializeProvider() {
+ try {
+ const response = await fetch('/configs')
+ if (!response.ok) {
+ throw new Error(`Failed to fetch OAuth config: ${response.status}`)
+ }
+
+ const config = await response.json()
+ let providerType = 'default'
+ const provider = config['gravitino.authenticator.oauth.provider']
+
+ if (provider) {
+ const normalizedProvider = provider.toLowerCase()
+ if (normalizedProvider === 'oidc') {
+ providerType = 'oidc'
+ }
+
+ // If provider is set to something else, fall back to default
+ }
+
+ const ProviderClass = PROVIDER_REGISTRY[providerType]
+ this.currentProvider = new ProviderClass()
+ await this.currentProvider.initialize(config)
+
+ return this.currentProvider
+ } catch (error) {
+ this.configPromise = null
+ throw error
+ }
+ }
+
+ /**
+ * Get access token from current provider
+ * @returns {Promise<string|null>}
+ */
+ async getAccessToken() {
+ const provider = await this.getProvider()
+
+ return await provider.getAccessToken()
+ }
+
+ /**
+ * Get user profile from current provider
+ * @returns {Promise<object|null>}
+ */
+ async getUserProfile() {
+ const provider = await this.getProvider()
+
+ return await provider.getUserProfile()
+ }
+
+ /**
+ * Get provider type
+ * @returns {Promise<string>}
+ */
+ async getProviderType() {
+ const provider = await this.getProvider()
+
+ return provider.getType()
+ }
+}
+
+// Export singleton instance
+export const oauthProviderFactory = new OAuthProviderFactory()
+
+// Export factory class for testing
+export { OAuthProviderFactory }
diff --git a/web-v2/web/src/lib/auth/providers/factory.test.js b/web-v2/web/src/lib/auth/providers/factory.test.js
new file mode 100644
index 0000000000..3e1ac0855e
--- /dev/null
+++ b/web-v2/web/src/lib/auth/providers/factory.test.js
@@ -0,0 +1,205 @@
+/*
+ * 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 { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
+import { OAuthProviderFactory } from '@/lib/auth/providers/factory'
+
+describe('OAuth Provider Factory', () => {
+ let fetchMock
+ let factory
+
+ // Common mock config
+ const oidcConfig = {
+ 'gravitino.authenticator.oauth.provider': 'oidc',
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ }
+
+ const mockSuccessResponse = config => ({
+ ok: true,
+ json: async () => config
+ })
+
+ beforeEach(() => {
+ vi.clearAllMocks()
+
+ // Create a fresh factory instance for each test
+ factory = new OAuthProviderFactory()
+
+ // Create a proper fetch mock
+ fetchMock = vi.fn()
+ global.fetch = fetchMock
+ })
+
+ afterEach(() => {
+ vi.restoreAllMocks()
+ })
+
+ describe('getProvider', () => {
+ it('should create OIDC provider when configured', async () => {
+ fetchMock.mockResolvedValueOnce(mockSuccessResponse(oidcConfig))
+
+ const provider = await factory.getProvider()
+
+ expect(provider).toBeDefined()
+ expect(provider.getType()).toBe('oidc')
+ expect(fetchMock).toHaveBeenCalledWith('/configs')
+ })
+
+ it('should create default provider when provider not specified', async () => {
+ // Mock config response without provider config
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => ({
+ 'gravitino.authenticator.oauth.serverUri': 'https://generic.example.com'
+ })
+ })
+
+ const provider = await factory.getProvider()
+
+ expect(provider).toBeDefined()
+ expect(provider.getType()).toBe('default')
+ })
+
+ it('should return cached provider on subsequent calls', async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => ({
+ 'gravitino.authenticator.oauth.provider': 'oidc',
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ })
+ })
+
+ const provider1 = await factory.getProvider()
+ const provider2 = await factory.getProvider()
+
+ expect(provider1).toBe(provider2)
+ expect(fetchMock).toHaveBeenCalledTimes(1)
+ })
+
+ it('should handle config fetch errors', async () => {
+ fetchMock.mockRejectedValueOnce(new Error('Network error'))
+
+ await expect(factory.getProvider()).rejects.toThrow('Network error')
+ })
+
+ it('should handle non-ok HTTP responses', async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: false,
+ status: 500,
+ statusText: 'Internal Server Error'
+ })
+
+ await expect(factory.getProvider()).rejects.toThrow('Failed to fetch OAuth config: 500')
+ })
+
+ it('should handle invalid JSON responses', async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => {
+ throw new Error('Invalid JSON')
+ }
+ })
+
+ await expect(factory.getProvider()).rejects.toThrow('Invalid JSON')
+ })
+ })
+
+ describe('provider creation', () => {
+ it('should create OIDC provider when provider is set to oidc', async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => ({
+ 'gravitino.authenticator.oauth.provider': 'OIDC',
+ 'gravitino.authenticator.oauth.authority': 'https://oidc.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'oidc-client'
+ })
+ })
+
+ const provider = await factory.getProvider()
+
+ expect(provider.getType()).toBe('oidc')
+ })
+
+ it('should use default provider when no provider specified', async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => ({
+ 'gravitino.authenticator.oauth.serverUri': 'https://generic.example.com'
+ })
+ })
+
+ const provider = await factory.getProvider()
+
+ expect(provider.getType()).toBe('default')
+ })
+
+ it('should use default provider for unknown provider types', async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => ({
+ 'gravitino.authenticator.oauth.provider': 'unknown-provider',
+ 'gravitino.authenticator.oauth.serverUri': 'https://generic.example.com'
+ })
+ })
+
+ const provider = await factory.getProvider()
+
+ expect(provider.getType()).toBe('default')
+ })
+ })
+
+ describe('utility methods', () => {
+ it('should get access token from provider', async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => ({
+ 'gravitino.authenticator.oauth.provider': 'oidc',
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ })
+ })
+
+ // Mock the provider's getAccessToken method
+ const mockToken = 'test-token'
+ const provider = await factory.getProvider()
+ vi.spyOn(provider, 'getAccessToken').mockResolvedValue(mockToken)
+
+ const token = await factory.getAccessToken()
+
+ expect(token).toBe(mockToken)
+ })
+
+ it('should get provider type', async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => ({
+ 'gravitino.authenticator.oauth.provider': 'oidc',
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ })
+ })
+
+ const providerType = await factory.getProviderType()
+
+ expect(providerType).toBe('oidc')
+ })
+ })
+})
diff --git a/web-v2/web/src/lib/auth/providers/generic.js b/web-v2/web/src/lib/auth/providers/generic.js
new file mode 100644
index 0000000000..54f617e32c
--- /dev/null
+++ b/web-v2/web/src/lib/auth/providers/generic.js
@@ -0,0 +1,77 @@
+/*
+ * 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 { BaseOAuthProvider } from './base'
+
+export class GenericOAuthProvider extends BaseOAuthProvider {
+ constructor() {
+ super()
+ this.providerType = 'default'
+ }
+
+ async initialize(config) {
+ this.config = config
+ }
+
+ async getAccessToken() {
+ // For generic OAuth providers, tokens are typically obtained through:
+ // 1. Client credentials flow (backend handles token exchange)
+ // 2. Authorization code flow (stored in localStorage after login)
+
+ // Check localStorage for generic OAuth token
+ const token = typeof window !== 'undefined' ? localStorage.getItem('accessToken') : null
+
+ return token
+ }
+
+ /**
+ * Check if user is currently authenticated
+ */
+ async isAuthenticated() {
+ if (typeof window === 'undefined') {
+ return false
+ }
+
+ const token = localStorage.getItem('accessToken')
+
+ return !!token
+ }
+
+ /**
+ * Get current user profile
+ */
+ async getUserProfile() {
+ // Generic OAuth provider doesn't have user profile, default to a test user
+ return this.getAccessToken() ? { name: 'test' } : null
+ }
+
+ /**
+ * Clear authentication data
+ */
+ async clearAuthData() {
+ if (typeof window === 'undefined') return
+
+ // Clear generic OAuth tokens
+ localStorage.removeItem('accessToken')
+ localStorage.removeItem('authParams')
+ localStorage.removeItem('expiredIn')
+ localStorage.removeItem('isIdle')
+ localStorage.removeItem('refresh_token')
+ }
+}
diff --git a/web-v2/web/src/lib/auth/providers/oidc.js b/web-v2/web/src/lib/auth/providers/oidc.js
new file mode 100644
index 0000000000..42eb6d67e0
--- /dev/null
+++ b/web-v2/web/src/lib/auth/providers/oidc.js
@@ -0,0 +1,155 @@
+/*
+ * 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 { BaseOAuthProvider } from './base'
+import { UserManager, WebStorageStateStore } from 'oidc-client-ts'
+
+export class OidcOAuthProvider extends BaseOAuthProvider {
+ constructor() {
+ super()
+ this.providerType = 'oidc'
+ this.oidcConfig = null
+ this.userManager = null
+ }
+
+ async initialize(config) {
+ this.config = config
+
+ const authority = config['gravitino.authenticator.oauth.authority']
+ const clientId = config['gravitino.authenticator.oauth.clientId']
+ const scope = config['gravitino.authenticator.oauth.scope'] || 'openid profile email'
+
+ if (!authority || !clientId) {
+ throw new Error('OIDC provider requires both authority and clientId to be configured')
+ }
+
+ // Use provider name directly from config without hardcoded mapping
+ this.oidcConfig = {
+ authority: authority,
+ client_id: clientId,
+ response_type: 'code', // Use Authorization Code flow with PKCE
+ scope: scope,
+ redirect_uri: `${window.location.origin}/ui/oauth/callback`,
+ post_logout_redirect_uri: `${window.location.origin}/ui/oauth/logout`,
+ silent_redirect_uri: `${window.location.origin}/ui/oauth/silent-callback`,
+ automaticSilentRenew: true,
+ silentRequestTimeout: 10000,
+ userStore: new WebStorageStateStore({ store: window.localStorage })
+ }
+
+ // Create shared UserManager instance
+ this.userManager = new UserManager(this.oidcConfig)
+ }
+
+ async getAccessToken() {
+ if (!this.userManager) {
+ return null
+ }
+
+ try {
+ // Get current user from UserManager (includes expiration checking)
+ let user = await this.userManager.getUser()
+
+ if (user && !user.expired) {
+ // For JWKS validation, we need the ID token (JWT format), not the access token
+ return user.id_token || user.access_token
+ }
+
+ if (user && user.expired) {
+ try {
+ // Attempt silent refresh
+ const refreshedUser = await this.userManager.signinSilent()
+
+ // Return ID token for JWKS validation
+ return refreshedUser.id_token || refreshedUser.access_token
+ } catch (refreshError) {
+ // Clear expired tokens
+ await this.userManager.removeUser()
+
+ return null
+ }
+ }
+
+ return null
+ } catch (error) {
+ return null
+ }
+ }
+
+ /**
+ * Get the shared UserManager instance
+ */
+ getUserManager() {
+ return this.userManager
+ }
+
+ getOidcConfig() {
+ return this.oidcConfig
+ }
+
+ /**
+ * Check if user is currently authenticated
+ */
+ async isAuthenticated() {
+ if (typeof window === 'undefined' || !this.userManager) {
+ return false
+ }
+
+ try {
+ const user = await this.userManager.getUser()
+
+ return !!(user && !user.expired)
+ } catch (error) {
+ return false
+ }
+ }
+
+ /**
+ * Get current user profile
+ */
+ async getUserProfile() {
+ if (typeof window === 'undefined' || !this.userManager) {
+ return null
+ }
+
+ try {
+ const user = await this.userManager.getUser()
+
+ return user ? user.profile : null
+ } catch (error) {
+ return null
+ }
+ }
+
+ /**
+ * Clear authentication data
+ */
+ async clearAuthData() {
+ if (typeof window === 'undefined') return
+
+ // Clear UserManager data if available
+ if (this.userManager) {
+ try {
+ await this.userManager.removeUser()
+ } catch (error) {
+ // Silent error handling for production
+ }
+ }
+ }
+}
diff --git a/web-v2/web/src/lib/auth/providers/oidc.test.js b/web-v2/web/src/lib/auth/providers/oidc.test.js
new file mode 100644
index 0000000000..cffe8bcbc2
--- /dev/null
+++ b/web-v2/web/src/lib/auth/providers/oidc.test.js
@@ -0,0 +1,312 @@
+/*
+ * 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 { describe, it, expect, vi, beforeEach } from 'vitest'
+import { OidcOAuthProvider } from '@/lib/auth/providers/oidc'
+import { UserManager } from 'oidc-client-ts'
+
+// Mock oidc-client-ts
+vi.mock('oidc-client-ts', () => ({
+ UserManager: vi.fn(),
+ WebStorageStateStore: vi.fn()
+}))
+
+describe('OidcOAuthProvider', () => {
+ let provider
+ let mockUserManager
+
+ beforeEach(() => {
+ // Reset all mocks
+ vi.clearAllMocks()
+
+ // Create mock UserManager
+ mockUserManager = {
+ getUser: vi.fn(),
+ signinRedirect: vi.fn(),
+ signinRedirectCallback: vi.fn(),
+ signinSilent: vi.fn(),
+ removeUser: vi.fn()
+ }
+
+ UserManager.mockImplementation(() => mockUserManager)
+
+ provider = new OidcOAuthProvider()
+ })
+
+ describe('initialization', () => {
+ it('should initialize with correct provider type', () => {
+ expect(provider.providerType).toBe('oidc')
+ expect(provider.oidcConfig).toBeNull()
+ expect(provider.userManager).toBeNull()
+ })
+
+ it('should throw error when authority is missing', async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ }
+
+ await expect(provider.initialize(config)).rejects.toThrow(
+ 'OIDC provider requires both authority and clientId to be configured'
+ )
+ })
+
+ it('should throw error when clientId is missing', async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com'
+ }
+
+ await expect(provider.initialize(config)).rejects.toThrow(
+ 'OIDC provider requires both authority and clientId to be configured'
+ )
+ })
+
+ it('should initialize successfully with valid config', async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client',
+ 'gravitino.authenticator.oauth.scope': 'openid profile'
+ }
+
+ await provider.initialize(config)
+
+ expect(provider.config).toBe(config)
+ expect(provider.oidcConfig).toEqual({
+ authority: 'https://test.example.com',
+ client_id: 'test-client',
+ response_type: 'code',
+ scope: 'openid profile',
+ redirect_uri: `${window.location.origin}/ui/oauth/callback`,
+ post_logout_redirect_uri: `${window.location.origin}/ui/oauth/logout`,
+ silent_redirect_uri: `${window.location.origin}/ui/oauth/silent-callback`,
+ automaticSilentRenew: true,
+ silentRequestTimeout: 10000,
+ userStore: expect.any(Object)
+ })
+ expect(UserManager).toHaveBeenCalledWith(provider.oidcConfig)
+ })
+
+ it('should use default scope when not provided', async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ }
+
+ await provider.initialize(config)
+
+ expect(provider.oidcConfig.scope).toBe('openid profile email')
+ })
+ })
+
+ describe('getAccessToken', () => {
+ beforeEach(async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ }
+ await provider.initialize(config)
+ })
+
+ it('should return null when userManager is not available', async () => {
+ provider.userManager = null
+ const token = await provider.getAccessToken()
+ expect(token).toBeNull()
+ })
+
+ it('should return id_token for valid user', async () => {
+ const mockUser = {
+ id_token: 'test-id-token',
+ access_token: 'test-access-token',
+ expired: false
+ }
+ mockUserManager.getUser.mockResolvedValue(mockUser)
+
+ const token = await provider.getAccessToken()
+
+ expect(token).toBe('test-id-token')
+ })
+
+ it('should return access_token when id_token is not available', async () => {
+ const mockUser = {
+ access_token: 'test-access-token',
+ expired: false
+ }
+ mockUserManager.getUser.mockResolvedValue(mockUser)
+
+ const token = await provider.getAccessToken()
+
+ expect(token).toBe('test-access-token')
+ })
+
+ it('should attempt silent refresh for expired user', async () => {
+ const expiredUser = { expired: true }
+
+ const refreshedUser = {
+ id_token: 'new-id-token',
+ expired: false
+ }
+
+ mockUserManager.getUser.mockResolvedValue(expiredUser)
+ mockUserManager.signinSilent.mockResolvedValue(refreshedUser)
+
+ const token = await provider.getAccessToken()
+
+ expect(mockUserManager.signinSilent).toHaveBeenCalled()
+ expect(token).toBe('new-id-token')
+ })
+
+ it('should handle silent refresh failure', async () => {
+ const expiredUser = { expired: true }
+
+ mockUserManager.getUser.mockResolvedValue(expiredUser)
+ mockUserManager.signinSilent.mockRejectedValue(new Error('Refresh failed'))
+ mockUserManager.removeUser.mockResolvedValue()
+
+ const token = await provider.getAccessToken()
+
+ expect(mockUserManager.removeUser).toHaveBeenCalled()
+ expect(token).toBeNull()
+ })
+
+ it('should return null for general errors', async () => {
+ mockUserManager.getUser.mockRejectedValue(new Error('General error'))
+
+ const token = await provider.getAccessToken()
+
+ expect(token).toBeNull()
+ })
+ })
+
+ describe('isAuthenticated', () => {
+ beforeEach(async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ }
+ await provider.initialize(config)
+ })
+
+ it('should return false in server environment', async () => {
+ // Mock server environment
+ const originalWindow = global.window
+ delete global.window
+
+ const isAuth = await provider.isAuthenticated()
+
+ expect(isAuth).toBe(false)
+
+ global.window = originalWindow
+ })
+
+ it('should return true for valid user', async () => {
+ const mockUser = { expired: false }
+ mockUserManager.getUser.mockResolvedValue(mockUser)
+
+ const isAuth = await provider.isAuthenticated()
+
+ expect(isAuth).toBe(true)
+ })
+
+ it('should return false for expired user', async () => {
+ const mockUser = { expired: true }
+ mockUserManager.getUser.mockResolvedValue(mockUser)
+
+ const isAuth = await provider.isAuthenticated()
+
+ expect(isAuth).toBe(false)
+ })
+
+ it('should return false when no user', async () => {
+ mockUserManager.getUser.mockResolvedValue(null)
+
+ const isAuth = await provider.isAuthenticated()
+
+ expect(isAuth).toBe(false)
+ })
+ })
+
+ describe('getUserProfile', () => {
+ beforeEach(async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ }
+ await provider.initialize(config)
+ })
+
+ it('should return user profile when available', async () => {
+ const mockProfile = { sub: 'user-id', name: 'Test User' }
+ const mockUser = { profile: mockProfile }
+ mockUserManager.getUser.mockResolvedValue(mockUser)
+
+ const profile = await provider.getUserProfile()
+
+ expect(profile).toBe(mockProfile)
+ })
+
+ it('should return null when no user', async () => {
+ mockUserManager.getUser.mockResolvedValue(null)
+
+ const profile = await provider.getUserProfile()
+
+ expect(profile).toBeNull()
+ })
+ })
+
+ describe('clearAuthData', () => {
+ beforeEach(async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ }
+ await provider.initialize(config)
+ })
+
+ it('should call removeUser on userManager', async () => {
+ mockUserManager.removeUser.mockResolvedValue()
+
+ await provider.clearAuthData()
+
+ expect(mockUserManager.removeUser).toHaveBeenCalled()
+ })
+
+ it('should handle errors silently', async () => {
+ mockUserManager.removeUser.mockRejectedValue(new Error('Remove failed'))
+
+ await expect(provider.clearAuthData()).resolves.not.toThrow()
+ })
+ })
+
+ describe('utility methods', () => {
+ beforeEach(async () => {
+ const config = {
+ 'gravitino.authenticator.oauth.authority': 'https://test.example.com',
+ 'gravitino.authenticator.oauth.clientId': 'test-client'
+ }
+ await provider.initialize(config)
+ })
+
+ it('should return userManager instance', () => {
+ expect(provider.getUserManager()).toBe(mockUserManager)
+ })
+
+ it('should return oidc config', () => {
+ expect(provider.getOidcConfig()).toBe(provider.oidcConfig)
+ })
+ })
+})
diff --git a/web-v2/web/src/lib/enums/httpEnum.js b/web-v2/web/src/lib/enums/httpEnum.js
new file mode 100644
index 0000000000..ba379b841c
--- /dev/null
+++ b/web-v2/web/src/lib/enums/httpEnum.js
@@ -0,0 +1,54 @@
+/*
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+ */
+
+/**
+ * @enum {string}
+ */
+const ContentTypeEnum = Object.freeze({
+ JSON: 'application/json;charset=UTF-8',
+ FORM_URLENCODED: 'application/x-www-form-urlencoded;charset=UTF-8',
+ FORM_DATA: 'multipart/form-data;charset=UTF-8'
+})
+
+/**
+ * @enum {string}
+ */
+const RequestEnum = Object.freeze({
+ GET: 'GET',
+ POST: 'POST',
+ PUT: 'PUT',
+ DELETE: 'DELETE'
+})
+
+/**
+ * @enum {number|string}
+ */
+const ResultEnum = Object.freeze({
+ SUCCESS: 0,
+ ERROR: -1,
+ TIMEOUT: 401,
+ TYPE: 'success'
+})
+
+export { ContentTypeEnum, RequestEnum, ResultEnum }
diff --git a/web-v2/web/src/lib/hooks/use-reset.js b/web-v2/web/src/lib/hooks/use-reset.js
new file mode 100644
index 0000000000..d821e7e271
--- /dev/null
+++ b/web-v2/web/src/lib/hooks/use-reset.js
@@ -0,0 +1,36 @@
+/*
+ * 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 { useEffect, useRef } from 'react'
+import { Form } from 'antd'
+
+export const useResetFormOnCloseModal = ({ form, open }, setCurrentStep) => {
+ const prevOpenRef = useRef()
+ useEffect(() => {
+ prevOpenRef.current = open
+ }, [open])
+ const prevOpen = prevOpenRef.current
+
+ useEffect(() => {
+ if (!open && prevOpen) {
+ setCurrentStep && setCurrentStep(0)
+ form.resetFields()
+ }
+ }, [form, prevOpen, open, setCurrentStep])
+}
diff --git a/web-v2/web/src/lib/hooks/useHasMounted.js b/web-v2/web/src/lib/hooks/useHasMounted.js
new file mode 100644
index 0000000000..bfe766e53f
--- /dev/null
+++ b/web-v2/web/src/lib/hooks/useHasMounted.js
@@ -0,0 +1,32 @@
+/*
+ * 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 { useEffect, useState } from 'react'
+
+const useHasMounted = () => {
+ const [hasMounted, setHasMounted] = useState(false)
+
+ useEffect(() => {
+ setHasMounted(true)
+ }, [])
+
+ return hasMounted
+}
+
+export default useHasMounted
diff --git a/web-v2/web/src/lib/hooks/useStore.js b/web-v2/web/src/lib/hooks/useStore.js
new file mode 100644
index 0000000000..20509b4361
--- /dev/null
+++ b/web-v2/web/src/lib/hooks/useStore.js
@@ -0,0 +1,26 @@
+/*
+ * 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 { useDispatch, useSelector, useStore } from 'react-redux'
+
+export const useAppDispatch = useDispatch
+
+export const useAppSelector = useSelector
+
+export const useAppStore = useStore
diff --git a/web-v2/web/src/lib/icons/iconify-icons.css b/web-v2/web/src/lib/icons/iconify-icons.css
new file mode 100644
index 0000000000..728bb47099
--- /dev/null
+++ b/web-v2/web/src/lib/icons/iconify-icons.css
@@ -0,0 +1,56 @@
+/*
+ * 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.
+ */
+
+.custom-icons-doris,
+.custom-icons-starrocks,
+.custom-icons-hive,
+.custom-icons-hudi,
+.custom-icons-oceanbase,
+.custom-icons-paimon {
+ display: inline-block;
+ width: 1em;
+ height: 1em;
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+}
+
+.custom-icons-doris {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512' height='512'%3E%3Cg fill-rule='evenodd'%3E%3Cpath fill='%2314a8c9' d='M177.5-.5h24q22.477 4.488 40 19.5A2984 2984 0 01306 84.5q23.81 30.358 11 67a122 122 0 01-14 26 1561 1561 0 00-46.5 47.5q-6.906 5.4-15 2L134 119.5q-29.48-41.033-6-86 17.649-27.408 49.5-34' opacity='.998'/%3E%3Cpath fill='%235168ac' d='M80.5 117.5a44.6 44.6 0 019 2.5L216 246.5q5.361 9.862-1 19L89.5 391q-15.194 6.261-21.5-8.5-1-127 0-254 2.835-9.52 12.5-11' opacity='.991'/%3E%3Cpath fill='%2351c9a2' d='M206.5 511.5h-27q-46.42-10.662-59.5-57-8.375-34.994 14-63a27563 27563 0 01197-198q21.361-25.778 27.5-59a1387 1387 0 0054.5 54 617 617 0 0126 33q20.97 44.308-8 84A24184 24184 0 01245.5 490a170 170 0 01-17 14q-10.424 6.057-22 7.5' opacity='.998'/%3E%3C/g%3E%3C/svg%3E");
+}
+
+.custom-icons-starrocks {
+ background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg version="1.1" width="100" height="100" xmlns="http://www.w3.org/2000/svg"><style type="text/css">.st0{fill:%2301808F;}.st1{fill:%23FEBD02;}</style><g id="starrocks"><g><path class="st0" d="M11.8,26.4c-0.1,2.2,0.9,3.4,2.3,4.5c9,7.4,18,14.8,27,22.2c2.5,2.1,2.7,3.5,1,6.2c-4.4,6.7-8.8,13.4-13.2,20.1c-1.7,2.5-3.2,2.9-5.9,1.4c-2.8-1.6-5.6-3.2-8.4-4.8c-3.2-1.8-4.8-4.6-4.8-8.3c0-11.8,0-23.6,0-35.5C9.8,30.2,10.3,28.4,11.8,26.4z"/><path class="st0" d="M87.9,73.8c0.6-2.3-0.5-3.5-1.9-4.6c-9-7.4-17.9-14.7-26.8-22.1c-2.9-2.4-3.1-3.6-1.1-6.7c4.3-6.6,8.7-13.2,13-19.8c1.7-2.6,3.3-2.9,6-1.4c2.8,1.6,5.6,3.2,8.3,4.8c3.2,1.8,4.7,4.5,4.7,8.2c0,11.9,0,23.7,0,35.6C90.2,69.9,89.6,71.9,87.9,73.8z"/><path class="st0" d="M67.1,56.8c0.6,0.4,17.3,14.1,17.5,14.3c2.4,2.2,2.2,4.1-0.6,5.8C76.8,81,57.3,92.1,54.8,93.6c-3.2,1.9-6.4,1.9-9.6,0c-4.6-2.7-9.2-5.3-13.8-8c-2.2-1.3-2.2-2.7,0-3.9C42.3,75.5,53.1,69.2,64,63C66.5,61.6,68.2,60.1,67.1,56.8z"/><path class="st1" d="M32.9,43.2c-0.6-0.4-17.3-14.1-17.5-14.3c-2.4-2.2-2.2-4.1,0.6-5.8C23.2,19,42.7,7.9,45.2,6.4c3.2-1.9,6.4-1.9,9.6,0c4.6,2.7,9.2,5.3,13.8,8c2.2,1.3,2.2,2.7,0,3.9C57.7,24.5,46.9,30.8,36,37C33.5,38.4,31.8,39.9,32.9,43.2z"/></g></g></svg>');
+}
+
+.custom-icons-hive {
+ width: 1.12em;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 900' width='1000' height='900'%3E%3Cpath fill-rule='evenodd' stroke='%23fdee21' stroke-width='5.129' d='M596.797 704.59v192.85h47.346v-88.632l9.767.183v88.45h47.881V704.59h-47.88v71.552h-9.768V704.59zm163.92 0h-46.116v192.85h46.116zm7.55 0 36.429 192.85h54.984l36.429-192.85h-48.951l-12.067 82.517c-1.006 3.16-4.402 3.16-5.009 0l-12.06-82.52zm229.17 0h-91.538v192.85h91.538v-50.569l-50.898-.434v-21.679h24.248v-50.204H946.54v-19.397h50.898z'/%3E%3Cpath fill='%23fdee21' fill-rule='evenodd' d='M503.127 119.752c-7.71-21.115-272.92-124.22-276.31-112.9-48.7 12.695-68.52 68.826-102.02 104.38l-74.393-4.261C17.633 149.113.437 192.17 12.146 236.921c42.002 56.906 90.76 105.33 121.15 176.81 2.402 33.692 145.82 3.533 176.56-3.136-41.992 30.059-78.561 76.65-62.846 210.84 14.346 63.014 24.159 133.37 151.4 204.64 16.75 9.381 51.407 20.207 72.838 28.098 20.495 9.4 44.461 13.264 112.07-7.413 39.124-16.863 81.365-27.022 119.65-43.844l-46.017 2.16c-63.369 1.378-112.29 6.105-127.38-11.6l-58.32-100.68 34-66.04c47.056 4.826 62.675 42.986 104.15 57.518l48.885-36.215c141.99 83.816 198.48-53.12 214.67-159.77-1.728-43.392-93.952 13.61-88.362-6.68 2.166-46.643-35.854-107.67-60.42-155.22l28.43-110.01c12.9-11.49-59.72-133.86-119.02-149.12-52.03-13.39-130.46 52.493-130.46 52.493z'/%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23c8c037'%3E%3Cpath d='M736.387 353.55c.51 11.816.452 26.187 1.594 35.15-.197 6.838-5.323 7.089-9.564 8.521l27.63 10.12c5.486 9.23 9.895 18.462 14.348 27.693 5.165 22.708 1.31 23.357-2.126 25.031-10.027.102-20.025.121-29.358-1.864 4.181 2.207 5.1 3.815 5.543 6.642.816 5.212-2.54 12.33-8.067 19.188 8.172 4.534 23.071 8.97 34.14 13.181l12.62-28.093c-5.715-41.27-23.045-79.309-46.76-115.57zm51.57 138.43c15.324 6.387 36.495 4.515 65.848-10.613 4.365-3.104 8.431-1.248.62 3.858-38.5 34.547-56.928 17.265-66.468 6.755'/%3E%3Cpath d='M856.747 476.84c4.552 8.717 1.794 15.805.266 23.167-4.754 37.449-16.423 67.056-39.321 97.994-74.478 119.74-149.67 44.817-209.62-3.945l-24.798 62.137c-1.317 5.446-6.79 9.688 31.937 26.738l39.452-27.867c150.46 114.48 257.08-160.24 202.08-178.22zm-230.53 107c-10.151.724-40.361 10.997-41.706 16.946l13.902-20.712zm-19.74-126.97c1.86 0 10.788 2.397 9.83 1.864-1.37-.763-.153 12.519 2.657 19.439l-10.893 23.7c20.865-24.063 53.858-22.462 84.486-25.564l-14.612-9.054c2.538-8.466-.45-15.165-1.86-22.368zm51.27-71.36c-22.387 6.863-43.816 18.075-58.203 41.976 10.976-39.395 13.213-37.899 16.757-39.846 15.351-6.865 27.922-2.586 41.446-2.13'/%3E%3C/g%3E%3Cg fill='%23fcf6a0'%3E%3Cpath d='M538.197 847.25c-27.07 29.87-87.47-2.26-137.63-18.64-127.46-81.05-152.36-157.35-154.09-232.2-6.553-107.22 26.37-169.52 68.014-184.27-27.561 53.129-40.41 148.5-27.631 219.42 10.315 39.455 10.529 106 76.545 141.62 32.327 18.199 23.571 32.368 45.431 49.413 23.955 18.679 90.747 36.437 129.36 24.658zm40.44-495.51c-45.831-64.991-110.29-89.387-182.98-92.053 14.568-4.749 29.136-7.222 43.704-14.246 3.567-3.748 2.401-10.344 1.063-17.042-69.97-18.27-114.13-40.85-170.03-61.781l150.91 36.215c101.91 3.872 93.158 29.032 157.34 148.91z'/%3E%3Cpath d='M627.707 320.4c-33.87-48.35-66.72-107.03-111.31-144.35-107.64-48.584-214.12-84.666-338.91-117.5l39.827-51.216c132.42 30.227 256.8 80.808 368.21 164.19 18.849 47.66 31.419 95.383 42.173 148.87zm68.28-85.44s-18.988-42.599-28.233-58.866c-21.446-23.766-32.29-68.054-76.213-88.922 13.892 3.752 23.399-.718 51.759 24.992l44.669 84.734z'/%3E%3Cpath d='M719.607 308.76c4.38-36.908 12.695-96.11 3.152-119.5-26.55-35.624-53.29-72.446-80.04-106.63-4.43-4.123-7.62-9.719-11.11-14.084 37.61 9.744 76.86 35.894 129.79 139.13z'/%3E%3C/g%3E%3Cpath d='M561.487 313.12c-14.98-11.79-28.33-53.49-51.03-62.16-21.011-1.758-28.715-8.368-56.344-2.739 10.021-5.02 19.482-11.446 30.134-14.885 7.215-1.703 13.983.184 20.867 1.134 1.7-.804 2.814-1.803 2.398-3.313-27.812-17.187-84.866-17.432-123.38-27.243 44.7 1.496 94.156-.982 127.75 9.79 27.013 23.974 35.788 69.12 49.605 99.416m81.91-201.093c6.201.563 39.574 53.353 41.142 62.137 2.775 19.202 9.62 40.728 11.46 60.819-5.497-19.269-11.486-38.537-18.974-57.806-2.19-5.306-7.724-17.302-23.107-34.269-7.163-11.959-8.71-21.359-10.52-30.88zm113.09 287.523h-14.278l15.781 4.142zm-97.42-14.26c-14.358-1.765-29.091-2-43.448 1.157-5.852 7.86-6.255 15.856-8.813 23.245 17.454-19.236 24.38-20.412 52.261-24.401zm195.82 99.28c-7.99 6.377-8.788 12.379-32.413 19.572-17.228 4.074-26.961-2.831-35.07-12.116 12.294 3.522 14.259 12.81 47.225 2.397zm-71.6 3.99c-5.75 15.812-11.949 31.791-18.199 46.6-14.883 17.454-8.54 7.508-30.819 34.617 7.129-10.998 16.4-21.566 21.254-33.02 3.41-7.542 7.653-15.543 9.532-22.244-5.907-2.95-17.999-3.183-19.639-2.125-19.808 11.683-23.382 24.047-35.059 36.086 8.464-13.53 15.693-28.298 25.505-40.476 1.118-1.58 8.383-1.886 12.85-2.819-6.941-1.19-19.787-3.684-20.82-3.572-12.923 3.106-20.164 14.361-29.757 21.836 6.994-10.098 13.436-20.612 22.317-29.292.879-1.02 24.883 1.083 37.324 6.047l.247 4.95 7.063 2.85 5.314-13.314zm-156.75 95.33c-3.188-1.09-31.35-4.711-31.35-3.861-10.813 7.696-12.453 15.059-12.221 21.436 17.989-17.697 17.319-17.747 43.572-17.575zm-21.39-127.28s20.322-2.963 19.926-1.065c-1.472 7.05 2.488 24.233 2.923 21.836l-11.424 9.32c23.926-12.03 49.113-9.612 74.656-11.45 0 0-21.507-5.938-20.192-6.125 4.797-.68-1.278-22.43-2.923-22.9 4.091-1.385 8.087-2.43 12.221-3.462-30.756-8.049-48.541-3.306-75.188 13.847z'/%3E%3Cpath d='m781.027 471.78-4.517 2.263c-.64-13.23-14.85-12.26-26.834-12.382l-9.83-2.396c2.99 2.766 12.23 2.55 8.502 8.521-3.137 1.677-4.58 8.87-6.376 14.912l-5.314.266c9.387 3.669 18.095 6.884 28.428 11.184l6.11.932 14.613-7.855z'/%3E%3Cpath fill='%23fff' d='M646.327 462.86c-2.287-4.525-13.794-3.882-16.275-.955-2.016 2.379-.125 17.642 2.46 15.068 3.736-3.285 8.617-4.659 14.48-4.394.739-2.82.477-5.864-.665-9.719m110.35 22.74c1.082-.791 3.369-8.443 2.63-10.733-1.512-5.403-12.212-4.266-12.212-4.266-2.61 1.536-4.899 9.96-3.945 12.74.456 2.352 11.81 3.102 13.526 2.259z'/%3E%3Cpath d='m299.107 749.64 6.76.661c40.07 19.675 106.05 48.847 201.57 33.171l14.988 23.584c-42.067 20.442-87.312 15.738-129.71 17.172zm-57.53-155.54 20.073 84.268c53.74 33.593 145.54 72.07 222.06 68.965l-16.91-38.8c-159.73-33.92-173.24-76.8-225.22-114.44zm49.95-172.61c9.81 65.302 22.907 114.81 79.69 156.28 34.804 25.03 69.351 49.954 111.37 70.524 0 0-3.684 19.171-6.763 18.829-125.05-13.89-216.6-117.58-227.69-164.94 10.74-36.329 26.149-59.021 43.389-80.693zm60.11-37c16.664 72.376 56.397 145.68 95.889 212.18 14.477 18.369 18.266 26.475 40.579 37.659 30.159 9.55 51.486 7.112 73.377 5.676-5.998-11.102-11.329-22.706-18.217-33.14-49.018-38.765-26.364-74.06-13.344-96.406-27.256-6.887-63.37-21.525-68.345-40.778-8-62.271-3.937-82.025 4.068-114.01-36.909 7.782-74.309 15.494-114.01 28.82z'/%3E%3Cpath stroke='%23000' stroke-width='.114' d='M216.237.058c-12.131 7.925-23.818 19.256-36.391 32.135-20.843 21.575-34.699 42.621-55.915 58.224-4.243 3.659-16.151 9.551-31.121 10.425-7.052.352-11.646 1.519-24.604-.108-11.428-6.188-22.285-2.164-32.881 10.51-11.619 16.709-26.334 48.437-32.453 68.41-12.611 50.937 19.541 92.905 50.374 125.25 27.429 26.796 43.243 43.542 54.505 68.107 8.527 15.933 14.844 37.799 21.683 53.13 2.466 4.86 1.953 4.835 8.591 6.3 14.333 3.059 34.215 3.083 51.915 4.604 7.659.107 18.175-.178 28.14-1.217 13.731-2.592 29.863-5.133 43.384-9.81 13.213-3.253 24.985-7.759 35.597-11.906-1.368 4.644-11.478 9.115-15.268 15.002-35.97 51.49-45.823 97.308-39.56 169.6 3.542 32.042 10.895 58.605 21.991 88.997 5.078 13.908 15.882 35.934 26.236 50.565 30.79 43.506 99.672 99.374 195.56 120.88 16.73 2.286 35.715 1.067 53.571-3.689 47.326-14.346 143.78-48.275 143.78-48.275s-85.619 7.083-124.83 3.206c-9.078-1.42-19.08-1.901-25.405-8.087-1.06-1.37-4.914-9.132-2.425-9.202 3.395-.095 13.142-4.14 28.19-5.482-32.128-3.459-31.67-3.418-34.015-9.27-3.648-9.085-9.23-21.502-14.977-32.367 14.118 1.19 45.376 2.945 55.984-8.003 0 0-18.497 2.136-34.843.219-5.508-.646-14.891-3.995-17.71-5.03-7.339-2.858-13.38-3.746-14.788-5.61-2.549-6.485-4.276-8.666-7.351-17.355-4.166-11.504-4.496-24.337-5.29-36.083 10.693 13.18 24.318 24.275 42.356 29.94.232-.487 23.4 10.073 40.226 4.643l3.489-1.126c0 .312-11.148.977-15.237-1.047-34.219-14.545-39.37-27.276-44.895-33.599l-14.777-22.133c4.494-8.96 7.035-9.301 12.989-9.384 18.011 2 25.848 3.54 36.807.896 7.405 15.24 9.406 30.57 26.265 41.662 56.166 16.672 68.369-4.951 81.973-24.057 40.412 29.658 106.2 38.803 151.89.514 58.086-67.212 76.476-173.17 71.325-179.22-7.254-12.307-16.772-24.999-24.945-23.245-29.13 7.952-39.871 22.73-68.735 19.36 3.438-.195 9.219-.288 9.263-.616 2.224-24.44-.179-36.267-1.252-38.297-8.759-19.317-20.261-39.646-28.278-54.88-2.067-3.161-8.137-27.166-18.308-36.649-4.362-3.724-15.039-13.546-15.039-13.546l-.905 10.44s4.174.63 5.763 7.097c6.022 24.517 36.687 82.485 38.938 85.263 10.868 17.545 1.104 39.4 9.367 51.663.794 1.557 16.857-.137 29.307.628 20.473-4.403 19.609-13.426 37.294-14.782 11.913-.913 13.108 21.46 12.95 23.196-2.22 24.704-9.734 53.427-21.235 79.658-23.912 46.07-50.691 87.446-88.67 93.216-46.326 8.095-70.4-12.158-95.512-25.055l-9.607 8.194c-32.637 32.5-71.389 29.614-87.239-12.851-7.89-16.473-18.172-26.57-26.976-40.7l-46.688 33.627c-3.886 7.97-8.665 20.54-14.47 34.58-4.036 9.76-7.42 26.525-7.2 40.456-5.984 10.195 20.73 51.542 37.61 76.692 4.98 7.42 14.279 20.385 14.59 21.193 3.347 8.683 10.679 16.349 11.124 17.284 31.337 40.872-39.531 31.46-54.167 28.99-28.876-4.6-57.121-16.662-83.67-32.791a339 339 0 01-4.605-2.848c-31.551-19.866-60.581-45.283-85.264-70.423-14.718-16.666-28.732-50.827-39.083-75.045-15.513-58.226-37.776-159.15 22.532-235.63 3.823-4.372 7.948-11.65 11.46-13.09 17.918-12.12 37.375-20.38 58.298-24.966l-2.112-13.563c-10.45 2.374-45.633 15.243-55.581 20.629-22.623 6.558-41.388 13.406-70.22 20.625-9.373 1.146-18.592 1.167-27.58-.054-20.74-2.818-56.093-.3-58.348-2.396-14.044-19.585-17.89-54.676-30.703-73.456l-.152-.187-.162-.178c-7.47-10.04-16.177-18.23-24.752-26.75C54.652 291.5 28.37 262 21.012 230.74c-1.85-9.23-6.614-18.79-4.082-46.1l.047-.134.044-.133c7.388-25.513 19.407-46.31 39.806-67.153 21.228.342 42.24.809 58.607 3.935 7.51 1.256 23.124 3.296 39.252 9.304 40.822 15.207 94.76 40.209 94.76 40.209-40.488-22.236-85.76-51.115-114.35-56.943-4.253-.602-6.868-2.543-8.13-5.93 42.998-25.264 50.864-55.009 79.146-81.686 12.925-5.626 17.965-8.498 28.947-9.692 101.57 16.06 165.51 56.515 216.09 83.566 20.53 11.164 39.191 19.606 57.015 29.773 15.624 5.14 62.771 40.734 76.57 59.925 14.016 29.595 24.25 61.563 33.584 92.411 6.693 31.375 12.564 44.102 12.564 44.102s-5.688-26.243-4.74-30.958c5.898 2.204 19.84 6.558 25.62 5.881 0 0-25.817-13.346-29.2-25.14-10.856-37.848-21.744-96.766-24.68-99.838-8.274-10.41-42.777-36.816-63.941-49.03-8.006-4.62-12.333-7.486-12.671-9.518 6.76-6.83 15.11-15.865 22.598-21.606 7.177-5.503 13.71-11.709 23.713-15.423 43.963-19.8 69.1 7.618 75.066 2.066 0 0-9.458-10.841-5.257-9.056 4.302 2.33 18.323 5.078 19.862 6.509 16.023 12.534 57.913 58.344 83.16 106.68 6.065 11.84 8.53 19.636 5.717 33.893-2.82 14.27-5.001 22.117-8.077 31.647-2.779 6.371-18.498 49.988-18.437 55.848-3.167 23.932 10.264 53.893 10.264 53.893.127-8.133-.5-12.466.236-18.282l.904-10.393s-.573-2.764-.469-3.86c.682-7.187 2.445-13.229 2.963-17.345 5.047-31.255 13.822-53.755 23.775-81.182 2.958-6.922 6.828-10.771 6.63-16.041.163-9.352-8.205-21.904-14.252-34.163-6.1-12.39-13.39-26.202-22.96-40.76-21.82-31.376-40.42-55.925-74.48-71.289-9.53-4.182-47.03-8.27-59.98-5.841-15.71 3.273-29.22 6.5-39.99 13.398-16.95 10.854-30.27 27.659-45.89 37.56-34.56-17.281-51.24-30.215-54.35-31.998-20.54-11.006-45.2-23.778-71.73-35.89-12.72-11.862-91.71-40.233-164.04-45.892zm442.08 644.59c-21.3-16.65-39.23-33.79-51.05-51.44-3.858 20.758-17.864 35.542-28.688 50.083-2.155 3.41-3.708 8.06 6.902 22.879 2.86 3.948 13.207 4.623 20.192 4.26-7.106-5.371-17.918-11.052-19.66-15.976 12.501 8.51 24.076 10.957 34.538 9.586 2.39-.269 5.36-2.804 7.656-6.706 4.663-10.02 8.315-12.433 12.005-15.13l8.501 10.651z' color='%23000'/%3E%3C/g%3E%3C/svg%3E");
+}
+
+.custom-icons-hudi {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 2000' width='2000' height='2000'%3E%3Cpath fill='transparent' d='M0 1000V0h2000v2000H0zm1529 553c0-5-102-212-227-461l-228-453-22 46c-20 42-25 45-60 45h-38l-54-110c-30-61-57-110-60-110-4 0-470 924-470 933 0 1 59 1 130-1l130-4v41c0 23-5 51-10 62-11 19-2 19 450 19 253 0 460-3 459-7m290-154 103-84-47-14-47-15 6-111c8-127-5-191-56-288-82-154-302-287-433-263-32 6-33 7-23 45l10 38 82 5c102 7 177 41 242 110 68 73 96 142 102 254 2 50 2 108-2 128-6 31-11 36-35 36-16 0-47-7-70-15-39-13-42-13-37 3 3 9 19 67 36 127 17 61 34 118 36 128 4 12 10 15 17 9 7-5 59-46 116-93M232 1248c13-19 11-27-19-87-66-129-67-286-3-418 46-94 146-173 218-173 27 0 31 4 42 48 7 26 16 50 19 54 7 8 171-204 171-220 0-6-243-92-263-92-3 0-2 12 3 26 6 14 10 42 10 62 0 34-5 39-48 63-225 125-326 365-249 588 24 68 83 171 98 171 4 0 13-10 21-22'/%3E%3Cpath fill='%2300B3EF' d='M600 1479c0-9-36-10-132-5-73 3-138 3-144-1-8-6 71-173 248-526 226-453 261-517 274-506 9 7 43 67 76 133 33 67 62 123 65 126s11-4 19-14c13-18 14-17 14 17 0 28-46 129-187 412-164 327-191 375-210 375-13 0-23-5-23-11m-434-195c-148-189-149-478-2-665 38-48 165-147 206-161 9-3 6-24-10-76-12-40-20-75-18-77 5-5 369 114 381 124 7 7-230 331-242 331-4 0-19-36-32-80l-24-79-33 16c-93 46-163 143-188 264-22 105 5 218 72 307l26 33-26 37c-14 20-35 48-45 61l-18 24z'/%3E%3Cpath fill='%23004E7F' d='M596 1493c6-21 3-22-78-26l-83-3 90-2 90-2 198-395c108-217 201-395 205-394 4 0 92 172 195 382 185 377 210 440 175 452-7 2-189 6-405 7l-392 3zm724-778c0-22 4-25 35-25s35 3 35 25-4 25-35 25-35-3-35-25'/%3E%3Cpath fill='%232F5B7F' d='m577 1538 28-53 375-3c206-1 378-6 383-11 4-4-76-177-180-384L996 711l39-81 39-81 258 513c141 282 257 516 257 521 1 4-233 7-520 7H549z'/%3E%3Cpath fill='%23013868' d='M1616 1369c-32-110-55-203-52-206 2-3 39 6 80 20l75 25 7-35c11-57-4-161-30-219-51-111-162-195-277-210-30-4-57-12-61-18-5-8-8-7-8 2 0 6-11 12-24 12-20 0-25-8-41-65-9-36-15-68-12-71 13-13 131-16 189-4 142 27 286 138 352 270 47 95 60 163 53 286l-6 100 70 23c38 12 69 24 69 25 0 3-272 224-316 258-8 6-29-54-68-193'/%3E%3C/svg%3E");
+}
+
+.custom-icons-oceanbase {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2800 2800' width='2800' height='2800'%3E%3Cpath fill='%230181FD' d='M338 1933c-17-4-18-31-18-383v-378l148 5c251 9 542-36 827-127 222-71 357-103 560-135 136-22 427-38 548-30l107 7v764l-159-4c-163-4-323 7-478 33-83 14-374 94-418 115-21 10-164 47-280 74-104 23-245 44-380 56-118 10-423 12-457 3'/%3E%3Cpath fill='%2307C846' d='M1509 2094c-27-70-66-200-63-206 7-11 251-88 348-109 215-48 552-73 679-53l37 7v247l-132-6c-279-14-552 33-845 143-7 3-18-8-24-23'/%3E%3Cpath fill='%23FFA005' d='M320 970V838l33 6c84 17 219 18 362 1 142-16 378-59 400-73 5-4 52-21 103-38 108-35 97-43 137 91 15 50 30 95 32 101 7 18-229 94-407 132-156 32-179 34-412 39l-248 5z'/%3E%3C/svg%3E");
+}
+
+.custom-icons-paimon {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 218.61 218.61' width='218.61' height='218.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-2{fill:%230163e1}%3C/style%3E%3C/defs%3E%3Cg id='svgID0'%3E%3Cpath d='M55.63 111.28a35.01 35.01 0 00-21.95-21.65l-12.74-4.26h80.4c19.85-7.47 43.6-13.02 72.56-17.39l19.6-3.48 13.7-3.85C189.3 24.7 152.19 0 109.3 0 48.94 0 0 48.94 0 109.3c0 20.41 2.93 39.59 17.2 58.79 8.15-17.84 23.42-40.44 38.43-56.82Z' class='cls-2'/%3E%3Cpath d='M182.4 72.57A430.5 430.5 0 0023.48 177c20.02 25.34 51.02 41.61 85.82 41.61 60.37 0 109.3-48.94 109.3-109.3 0-16.36-3.6-31.88-10.04-45.81l-26.17 9.08Z' class='cls-2'/%3E%3Cpath fill='%23e7e7e7' d='m182.4 72.57 26.17-9.08c-.44-.95-.9-1.9-1.36-2.84l-13.7 3.85-17.66 1.02c-29.79 2.42-54.8 8.05-86.19 19.85H20.94l9 3.87c9.89 3.88 22.18 12 25.69 22.04-16.77 16.69-30.7 39.55-38.43 56.82 2.46 4.13 5.32 7.62 8.29 11.37 48.68-53.33 96.8-84.37 156.91-106.89Z'/%3E%3C/g%3E%3C/svg%3E");
+}
diff --git a/web-v2/web/src/lib/icons/iconify-icons.js b/web-v2/web/src/lib/icons/iconify-icons.js
new file mode 100644
index 0000000000..edf367ffb8
--- /dev/null
+++ b/web-v2/web/src/lib/icons/iconify-icons.js
@@ -0,0 +1,81 @@
+/*
+ * 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 fs from 'node:fs'
+import path from 'node:path'
+
+import { cleanupSVG, importDirectory, runSVGO } from '@iconify/tools'
+import { getIconsCSS } from '@iconify/utils'
+
+const SVGs = {
+ dir: 'src/lib/icons/svg',
+ prefix: 'custom-icons'
+}
+
+const target = path.join(__dirname, 'iconify-icons.css')
+
+;(async () => {
+ const icons = []
+
+ const iconSet = await importDirectory(SVGs.dir, {
+ prefix: SVGs.prefix
+ })
+
+ await iconSet.forEach(async name => {
+ const svg = iconSet.toSVG(name)
+ cleanupSVG(svg)
+ runSVGO(svg)
+ iconSet.fromSVG(name, svg)
+ })
+
+ icons.push(iconSet.export())
+
+ await fs.promises.writeFile(
+ target,
+ `
+/*
+ * 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.
+ */
+
+${icons
+ .map(iconSet =>
+ getIconsCSS(iconSet, Object.keys(iconSet.icons), {
+ iconSelector: '.{prefix}-{name}'
+ })
+ )
+ .join('\n')}
+ `,
+ 'utf8'
+ )
+})()
diff --git a/web-v2/web/src/lib/icons/svg/doris.svg b/web-v2/web/src/lib/icons/svg/doris.svg
new file mode 100644
index 0000000000..7bd05ce60a
--- /dev/null
+++ b/web-v2/web/src/lib/icons/svg/doris.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="512px" height="512px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
+<g><path style="opacity:0.998" fill="#14a8c9" d="M 177.5,-0.5 C 185.5,-0.5 193.5,-0.5 201.5,-0.5C 216.485,2.49184 229.818,8.99184 241.5,19C 263.362,40.5281 284.862,62.3615 306,84.5C 321.873,104.738 325.54,127.072 317,151.5C 313.365,160.772 308.699,169.439 303,177.5C 287.138,193.029 271.638,208.862 256.5,225C 251.896,228.6 246.896,229.267 241.5,227C 205.667,191.167 169.833,155.333 134,119.5C 114.347,92.1441 112.347,63.4775 128,33.5C 139.766,15.2282 156.266,3.8949 177.5,-0.5 Z"/></g>
+<g><path style="opacity:0.991" fill="#5168ac" d="M 80.5,117.5 C 83.5823,118.017 86.5823,118.85 89.5,120C 131.667,162.167 173.833,204.333 216,246.5C 219.574,253.075 219.241,259.408 215,265.5C 173.167,307.333 131.333,349.167 89.5,391C 79.3707,395.174 72.204,392.341 68,382.5C 67.3333,297.833 67.3333,213.167 68,128.5C 69.8906,122.153 74.0573,118.486 80.5,117.5 Z"/></g>
+<g><path style="opacity:0.998" fill="#51c9a2" d="M 206.5,511.5 C 197.5,511.5 188.5,511.5 179.5,511.5C 148.554,504.392 128.72,485.392 120,454.5C 114.417,431.171 119.083,410.171 134,391.5C 199.306,325.194 264.972,259.194 331,193.5C 345.241,176.315 354.407,156.648 358.5,134.5C 376.154,152.988 394.321,170.988 413,188.5C 422.048,199.213 430.714,210.213 439,221.5C 452.98,251.039 450.313,279.039 431,305.5C 369.473,367.361 307.639,428.861 245.5,490C 240.124,495.044 234.458,499.711 228.5,504C 221.551,508.038 214.217,510.538 206.5,511.5 Z"/></g>
+</svg>
diff --git a/web-v2/web/src/lib/icons/svg/hive.svg b/web-v2/web/src/lib/icons/svg/hive.svg
new file mode 100644
index 0000000000..031ad38977
--- /dev/null
+++ b/web-v2/web/src/lib/icons/svg/hive.svg
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="900" width="1e3" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 1000 900">
+ <g stroke="#fdee21" stroke-width="5.1286" transform="translate(-.53268 66.8)" fill-rule="evenodd">
+ <path d="m597.33 637.79v192.85h47.346v-88.632l9.7674 0.18273v88.45h47.881v-192.85h-47.881v71.552h-9.7674v-71.552z"/>
+ <path d="m761.25 637.79h-46.116v192.85h46.116z"/>
+ <path d="m768.8 637.79 36.429 192.85h54.984l36.429-192.85h-48.951l-12.067 82.517c-1.0055 3.1605-4.402 3.1605-5.0089 0l-12.06-82.52z"/>
+ <path d="m997.97 637.79h-91.538v192.85h91.538v-50.569l-50.898-0.43357 0.00017-21.679h24.248v-50.204h-24.248l-0.00017-19.397h50.898z"/>
+ </g>
+ <g transform="translate(-.53268 66.8)">
+ <path d="m503.66 52.952c-7.71-21.115-272.92-124.22-276.31-112.9-48.7 12.695-68.52 68.826-102.02 104.38l-74.393-4.261c-32.771 42.142-49.967 85.199-38.258 129.95 42.002 56.906 90.76 105.33 121.15 176.81 2.402 33.692 145.82 3.533 176.56-3.1364-41.992 30.059-78.561 76.651-62.846 210.84 14.346 63.014 24.159 133.37 151.4 204.64 16.75 9.3816 51.407 20.207 72.838 28.098 20.495 9.4012 44.461 13.264 112.07-7.4123 39.124-16.863 81.365-27.022 119.65-43.844l-46.017 2.1595c-63.369 1.3787-112.29 6.1057-127.38-11.6l-58.32-100.68 34-66.04c47.056 4.8263 62.675 42.986 104.15 57.518l48.885-36.215c141.99 83.816 198.48-53.12 214.67-159.77-1.7276-43.392-93.952 13.611-88.362-6.6789 2.1662-46.644-35.854-107.67-60.42-155.22l28.43-110.01c12.9-11.49-59.72-133.86-119.02-149.12-52.03-13.391-130.46 52.492-130.46 52.492z" fill-rule="evenodd" fill="#fdee21"/>
+ </g>
+ <g fill-rule="evenodd">
+ <g fill="#c8c037" transform="translate(-.53268 66.8)">
+ <path d="m736.92 286.75c0.50927 11.816 0.45216 26.187 1.5941 35.15-0.19663 6.8382-5.3227 7.0888-9.5645 8.5212l27.631 10.119c5.4855 9.2313 9.8941 18.463 14.347 27.694 5.1652 22.708 1.3105 23.357-2.1254 25.031-10.027 0.10212-20.025 0.12088-29.358-1.864 4.181 2.2066 5.1006 3.8152 5.543 6.642 0.81556 5.2117-2.5407 12.329-8.0669 19.188 8.1718 4.534 23.071 8.9698 34.14 13.181l12.62-28.093c-5.7151-41.271-23.045-79.309-46.76-115.57z"/>
+ <path d="m788.49 425.18c15.324 6.3872 36.495 4.5146 65.848-10.613 4.3653-3.1043 8.4311-1.2485 0.61937 3.8577-38.499 34.547-56.927 17.265-66.467 6.7552z"/>
+ <path d="m857.28 410.04c4.5523 8.7165 1.7942 15.805 0.26568 23.167-4.7534 37.449-16.423 67.056-39.321 97.994-74.478 119.74-149.67 44.817-209.62-3.9455l-24.798 62.137c-1.3162 5.4464-6.7903 9.688 31.937 26.738l39.452-27.867c150.46 114.48 257.08-160.24 202.08-178.22z"/>
+ <path d="m626.75 517.04c-10.151 0.72442-40.361 10.997-41.706 16.946l13.902-20.712z"/>
+ <path d="m607.01 390.07c1.8598 0 10.788 2.3971 9.8302 1.864-1.3698-0.76256-0.15272 12.519 2.6568 19.439l-10.893 23.7c20.865-24.063 53.858-22.462 84.486-25.564l-14.612-9.0537c2.5384-8.4664-0.45059-15.165-1.8598-22.368z"/>
+ <path d="m658.28 318.71c-22.387 6.8632-43.816 18.075-58.203 41.976 10.976-39.395 13.213-37.899 16.757-39.846 15.351-6.8651 27.922-2.5864 41.446-2.1303z"/>
+ </g>
+ <g fill="#fcf6a0" transform="translate(-.53268 66.8)">
+ <path d="m538.73 780.45c-27.07 29.87-87.47-2.26-137.63-18.64-127.46-81.05-152.36-157.35-154.09-232.2-6.5535-107.22 26.37-169.52 68.014-184.27-27.561 53.129-40.41 148.5-27.631 219.42 10.315 39.455 10.529 106 76.545 141.62 32.327 18.199 23.571 32.368 45.431 49.413 23.955 18.679 90.747 36.437 129.36 24.658z"/>
+ <path d="m579.17 284.94c-45.831-64.991-110.29-89.387-182.98-92.053 14.568-4.7488 29.136-7.2216 43.704-14.246 3.5675-3.7484 2.4012-10.344 1.0627-17.042-69.97-18.27-114.13-40.85-170.03-61.781l150.91 36.215c101.91 3.8724 93.158 29.032 157.34 148.91z"/>
+ <path d="m628.24 253.6c-33.87-48.35-66.72-107.03-111.31-144.35-107.64-48.584-214.12-84.666-338.91-117.5l39.827-51.216c132.42 30.227 256.8 80.808 368.21 164.19 18.849 47.66 31.419 95.383 42.173 148.87z"/>
+ <path d="m696.52 168.16s-18.988-42.599-28.233-58.866c-21.446-23.766-32.29-68.054-76.213-88.922 13.892 3.7515 23.399-0.7183 51.759 24.992l44.669 84.734z"/>
+ <path d="m720.14 241.96c4.3792-36.908 12.695-96.11 3.1517-119.5-26.55-35.624-53.29-72.446-80.04-106.63-4.43-4.123-7.62-9.7186-11.11-14.084 37.61 9.744 76.86 35.894 129.79 139.13z"/>
+ </g>
+ <g transform="translate(-.53268 66.8)">
+ <path d="m562.02 246.32c-14.98-11.79-28.33-53.49-51.03-62.16-21.011-1.7577-28.715-8.3682-56.344-2.7386 10.021-5.0213 19.482-11.446 30.134-14.885 7.2152-1.7032 13.983 0.18382 20.867 1.1334 1.6999-0.80357 2.8139-1.8029 2.3983-3.3133-27.812-17.187-84.866-17.432-123.38-27.243 44.699 1.4962 94.156-0.9815 127.75 9.7912 27.013 23.973 35.788 69.119 49.605 99.415z"/>
+ <path d="m643.93 45.227c6.2011 0.56336 39.574 53.353 41.142 62.137 2.7751 19.202 9.6196 40.728 11.46 60.819-5.4968-19.269-11.486-38.537-18.974-57.806-2.1898-5.3062-7.7241-17.302-23.107-34.269-7.1628-11.959-8.7092-21.359-10.52-30.88z"/>
+ <path d="m757.02 332.75h-14.278l15.781 4.1424z"/>
+ <path d="m659.6 318.49c-14.358-1.7651-29.091-1.9991-43.448 1.1565-5.8522 7.8608-6.2554 15.856-8.813 23.245 17.454-19.236 24.38-20.412 52.261-24.401z"/>
+ <path d="m855.42 417.77c-7.99 6.3771-8.7884 12.379-32.413 19.572-17.228 4.074-26.961-2.8314-35.07-12.116 12.294 3.5217 14.259 12.81 47.225 2.3966z"/>
+ <path d="m783.82 421.76c-5.7504 15.812-11.949 31.791-18.199 46.6-14.883 17.454-8.5402 7.5079-30.819 34.617 7.1285-10.998 16.4-21.566 21.254-33.02 3.4091-7.5422 7.6532-15.543 9.5323-22.244-5.9074-2.95-17.999-3.1834-19.639-2.1247-19.808 11.683-23.382 24.047-35.059 36.086 8.4637-13.53 15.693-28.298 25.505-40.476 1.1181-1.5806 8.3826-1.8863 12.849-2.8189-6.9404-1.1908-19.786-3.6848-20.82-3.572-12.922 3.1053-20.163 14.361-29.756 21.836 6.9939-10.098 13.436-20.612 22.317-29.292 0.8785-1.0208 24.883 1.0822 37.324 6.0466l0.2468 4.9491 7.0633 2.8512 5.3136-13.314z"/>
+ <path d="m627.07 517.09c-3.1882-1.0895-31.35-4.7112-31.35-3.8611-10.813 7.6957-12.453 15.059-12.221 21.436 17.989-17.697 17.319-17.747 43.572-17.575z"/>
+ <path d="m605.68 389.81s20.322-2.9626 19.926-1.0652c-1.4722 7.0504 2.4876 24.233 2.9225 21.836l-11.424 9.32c23.926-12.029 49.113-9.6117 74.656-11.45 0 0-21.507-5.9381-20.192-6.1246 4.7977-0.6803-1.2772-22.43-2.9225-22.901 4.0915-1.3847 8.0873-2.4285 12.221-3.4617-30.756-8.0483-48.541-3.3059-75.188 13.847z"/>
+ <path d="m781.56 404.98-4.5166 2.2634c-0.6408-13.231-14.851-12.26-26.834-12.382l-9.8302-2.3966c2.9889 2.7664 12.229 2.5495 8.5018 8.5212-3.1367 1.6765-4.5798 8.87-6.3763 14.912l-5.3136 0.26628c9.3867 3.6684 18.095 6.8836 28.428 11.184l6.1106 0.932 14.612-7.8555z"/>
+ </g>
+ <g fill="#fff" transform="translate(-.53268 66.8)">
+ <path d="m646.86 396.06c-2.2872-4.5248-13.794-3.8824-16.275-0.95484-2.0158 2.3788-0.12514 17.642 2.4595 15.068 3.7368-3.2849 8.6176-4.6588 14.48-4.3938 0.73904-2.82 0.47742-5.8648-0.66421-9.7194z"/>
+ <path d="m757.21 418.8c1.0816-0.79113 3.3689-8.4434 2.6301-10.733-1.5117-5.4032-12.212-4.2659-12.212-4.2659-2.6108 1.5363-4.8989 9.9596-3.9448 12.739 0.45543 2.3526 11.809 3.1025 13.526 2.2595z"/>
+ </g>
+ <g transform="translate(-.53268 66.8)">
+ <path d="m299.64 682.84 6.7596 0.66112c40.071 19.675 106.05 48.847 201.57 33.171l14.988 23.584c-42.067 20.442-87.312 15.738-129.71 17.172z"/>
+ <path d="m242.11 527.3 20.073 84.268c53.74 33.593 145.54 72.07 222.06 68.965l-16.91-38.8c-159.73-33.92-173.24-76.8-225.22-114.44z"/>
+ <path d="m292.06 354.69c9.8106 65.302 22.907 114.81 79.69 156.28 34.804 25.03 69.351 49.954 111.37 70.524 0 0-3.6836 19.171-6.7631 18.829-125.05-13.89-216.6-117.58-227.69-164.94 10.741-36.329 26.149-59.021 43.389-80.693z"/>
+ <path d="m352.17 317.69c16.664 72.376 56.397 145.68 95.889 212.18 14.477 18.369 18.266 26.475 40.579 37.659 30.159 9.5492 51.486 7.1119 73.377 5.6756-5.9982-11.102-11.329-22.706-18.217-33.14-49.018-38.765-26.364-74.06-13.344-96.406-27.256-6.887-63.37-21.525-68.345-40.778-7.9992-62.271-3.9373-82.025 4.0685-114.01-36.909 7.7822-74.309 15.494-114.01 28.82z"/>
+ <path style="color-rendering:auto;text-decoration-color:#000000;color:#000000;isolation:auto;mix-blend-mode:normal;shape-rendering:auto;solid-color:#000000;block-progression:tb;text-decoration-line:none;image-rendering:auto;white-space:normal;text-indent:0;text-transform:none;text-decoration-style:solid" d="m216.77-66.742c-12.131 7.9248-23.818 19.256-36.391 32.135-20.843 21.575-34.699 42.621-55.915 58.224-4.2432 3.6588-16.151 9.5511-31.121 10.425-7.052 0.352-11.646 1.519-24.604-0.108-11.428-6.188-22.285-2.164-32.881 10.51-11.619 16.709-26.334 48.437-32.453 68.41-12.611 50.937 19.541 92.905 50.374 125.25 27.429 26.796 43.243 43.542 54.505 68.107 8.527 15.933 14.844 37.799 21.683 53.13 2.4661 4.8605 1.9534 4.8352 8.5913 6.3 14.333 3.0588 34.215 3.0828 51.915 4.6041 7.6583 0.10691 18.175-0.17813 28.14-1.2168 13.731-2.5928 29.863-5.1333 43.384-9.8098 13.213-3.2535 24.985-7.7592 35.597-11.907-1.3686 4.6442-11.478 9.1153-15.268 15.002-35.97 51.49-45.823 97.308-39.561 169.6 3.5425 32.042 10.896 58.605 21.992 88.997 5.0775 13.908 15.882 35.934 26.236 50.565 30.79 43.506 99.672 99.374 195.56 120.88 16.729 2.2866 35.715 1.067 53.571-3.6882 47.326-14.346 143.78-48.275 143.78-48.275s-85.619 7.0828-124.83 3.2058c-9.0778-1.4195-19.081-1.9011-25.405-8.0872-1.0608-1.3694-4.9144-9.1318-2.4258-9.2015 3.3952-0.095 13.142-4.14 28.191-5.4821-32.129-3.4591-31.671-3.418-34.016-9.2706-3.6471-9.0847-9.2292-21.502-14.977-32.367 14.118 1.1911 45.376 2.9455 55.984-8.0025 0 0-18.497 2.1356-34.843 0.2184-5.5072-0.64595-14.891-3.9946-17.71-5.0297-7.3383-2.858-13.38-3.7456-14.788-5.6091-2.5483-6.4856-4.2751-8.6672-7.3506-17.356-4.1659-11.504-4.4964-24.337-5.2895-36.083 10.693 13.18 24.318 24.275 42.356 29.941 0.23141-0.48776 23.4 10.072 40.226 4.642l3.4886-1.1254c0 0.31134-11.148 0.9767-15.237-1.0474-34.219-14.545-39.37-27.276-44.895-33.599l-14.777-22.133c4.4943-8.9608 7.0351-9.3013 12.989-9.3842 18.011 2.0006 25.848 3.5399 36.807 0.89587 7.4053 15.24 9.4062 30.571 26.265 41.662 56.166 16.672 68.369-4.951 81.973-24.057 40.412 29.658 106.2 38.803 151.89 0.51478 58.086-67.212 76.476-173.17 71.325-179.22-7.2544-12.307-16.772-24.999-24.945-23.245-29.13 7.952-39.871 22.73-68.735 19.359 3.4377-0.19431 9.2187-0.28734 9.2628-0.61508 2.2238-24.441-0.17883-36.267-1.2518-38.297-8.759-19.317-20.261-39.646-28.278-54.881-2.0668-3.1607-8.1367-27.165-18.308-36.648-4.3623-3.7245-15.039-13.546-15.039-13.546l-0.90484 10.439s4.1739 0.63032 5.7624 7.0973c6.0222 24.517 36.687 82.485 38.938 85.263 10.868 17.545 1.1045 39.401 9.3673 51.663 0.7938 1.5578 16.857-0.1365 29.307 0.62845 20.473-4.4034 19.609-13.426 37.294-14.782 11.913-0.91347 13.108 21.46 12.951 23.196-2.22 24.704-9.735 53.427-21.236 79.658-23.912 46.069-50.691 87.446-88.67 93.216-46.326 8.0952-70.399-12.158-95.512-25.055l-9.6068 8.1934c-32.637 32.501-71.389 29.614-87.239-12.851-7.8901-16.473-18.172-26.569-26.976-40.7l-46.688 33.627c-3.8865 7.9708-8.6652 20.54-14.47 34.58-4.0357 9.761-7.4199 26.525-7.1995 40.456-5.9847 10.195 20.729 51.542 37.609 76.692 4.9811 7.4212 14.279 20.385 14.59 21.193 3.3476 8.6831 10.679 16.349 11.124 17.284 31.337 40.872-39.531 31.46-54.167 28.991-28.876-4.601-57.121-16.663-83.67-32.792-1.5406-0.93601-3.0757-1.8853-4.6047-2.848-31.551-19.866-60.581-45.283-85.264-70.423-14.718-16.666-28.732-50.827-39.083-75.045-15.513-58.226-37.776-159.15 22.532-235.63 3.8228-4.3717 7.9478-11.65 11.46-13.09 17.918-12.119 37.375-20.379 58.298-24.966l-2.1122-13.563c-10.449 2.3741-45.633 15.243-55.581 20.629-22.623 6.5582-41.388 13.406-70.22 20.625-9.3724 1.1468-18.592 1.1674-27.579-0.0535-20.741-2.8178-56.094-0.3007-58.349-2.3956-14.044-19.585-17.889-54.676-30.703-73.456l-0.1512-0.1872-0.16231-0.17827c-7.47-10.04-16.177-18.23-24.752-26.75-30.708-30.51-56.991-60.01-64.348-91.27-1.85-9.23-6.614-18.79-4.082-46.1l0.04669-0.1337 0.04447-0.13371c7.388-25.513 19.407-46.31 39.806-67.153 21.228 0.34267 42.24 0.809 58.607 3.9355 7.5089 1.2562 23.124 3.2959 39.252 9.304 40.822 15.207 94.76 40.209 94.76 40.209-40.488-22.236-85.761-51.115-114.35-56.943-4.2536-0.60217-6.8679-2.5426-8.1311-5.93 42.999-25.264 50.865-55.009 79.147-81.686 12.925-5.6262 17.965-8.4984 28.947-9.6917 101.57 16.06 165.51 56.515 216.09 83.566 20.529 11.164 39.191 19.606 57.015 29.773 15.624 5.1391 62.771 40.734 76.569 59.925 14.017 29.595 24.251 61.563 33.585 92.411 6.6931 31.375 12.564 44.102 12.564 44.102s-5.6883-26.243-4.7403-30.958c5.8976 2.2038 19.841 6.5574 25.621 5.881 0 0-25.818-13.346-29.201-25.141-10.856-37.847-21.744-96.765-24.68-99.837-8.274-10.411-42.777-36.816-63.941-49.03-8.006-4.6205-12.333-7.4865-12.671-9.5179 6.761-6.83 15.111-15.865 22.598-21.606 7.1766-5.5031 13.711-11.709 23.713-15.423 43.963-19.8 69.101 7.6176 75.066 2.0656 0 0-9.458-10.841-5.257-9.0564 4.3021 2.3303 18.323 5.0784 19.862 6.5094 16.023 12.534 57.913 58.344 83.161 106.68 6.0639 11.84 8.5288 19.636 5.7164 33.893-2.8199 14.27-5.0017 22.117-8.0777 31.647-2.7784 6.371-18.498 49.988-18.437 55.848-3.1666 23.932 10.264 53.893 10.264 53.893 0.12703-8.1326-0.5003-12.466 0.23677-18.282l0.90404-10.393s-0.573-2.7644-0.46902-3.86c0.6821-7.1867 2.445-13.229 2.9625-17.345 5.0476-31.255 13.822-53.755 23.775-81.182 2.9578-6.9216 6.8277-10.771 6.6303-16.041 0.16274-9.3518-8.2048-21.904-14.252-34.163-6.1-12.39-13.39-26.202-22.96-40.76-21.82-31.376-40.42-55.925-74.48-71.289-9.53-4.1821-47.03-8.2709-59.98-5.8413-15.71 3.2729-29.22 6.5004-39.99 13.398-16.95 10.854-30.27 27.659-45.89 37.561-34.56-17.282-51.24-30.216-54.35-31.999-20.54-11.006-45.2-23.778-71.73-35.89-12.72-11.862-91.71-40.233-164.04-45.892zm442.08 644.59c-21.3-16.65-39.23-33.79-51.05-51.44-3.8582 20.758-17.864 35.542-28.688 50.083-2.1546 3.4104-3.7078 8.0604 6.9022 22.879 2.8598 3.948 13.207 4.6227 20.192 4.2606-7.1065-5.3719-17.918-11.053-19.66-15.977 12.501 8.5109 24.076 10.957 34.538 9.5863 2.3903-0.26867 5.36-2.8037 7.6553-6.7058 4.6637-10.02 8.3155-12.433 12.005-15.13l8.5018 10.651z" stroke="#000" stroke-width=".11397"/>
+ </g>
+ </g>
+</svg>
diff --git a/web-v2/web/src/lib/icons/svg/hudi.svg b/web-v2/web/src/lib/icons/svg/hudi.svg
new file mode 100644
index 0000000000..19a86a1c9e
--- /dev/null
+++ b/web-v2/web/src/lib/icons/svg/hudi.svg
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="0 0 2000 2000">
+ <g id="l65Z6PrNyXPHoWyqfb2ioux" fill="transparent" style="transform: none;">
+ <g style="transform: none;">
+ <path id="pg3BNCSpi" d="M0 1000 l0 -1000 1000 0 1000 0 0 1000 0 1000 -1000 0 -1000 0 0 -1000z m1529 553 c0 -5 -102 -212 -227 -461 l-228 -453 -22 46 c-20 42 -25 45 -60 45 l-38 0 -54 -110 c-30 -61 -57 -110 -60 -110 -4 0 -470 924 -470 933 0 1 59 1 130 -1 l130 -4 0 41 c0 23 -5 51 -10 62 -11 19 -2 19 450 19 253 0 460 -3 459 -7z m290 -154 l103 -84 -47 -14 -47 -15 6 -111 c8 -127 -5 -191 -56 -288 -82 -154 -302 -287 -433 -263 -32 6 -33 7 -23 45 l10 38 82 5 c102 7 177 41 242 110 68 73 96 142 102 254 2 50 2 108 -2 128 -6 31 -11 36 -35 36 -16 0 -47 -7 -70 -15 -39 -13 -42 -13 -37 3 3 9 19 67 36 127 17 61 34 118 36 128 4 12 10 15 17 9 7 -5 59 -46 116 -93z m-1587 -151 c13 -19 11 -27 -19 -87 -66 -129 -67 -286 -3 -418 46 -94 146 -173 218 -173 27 0 31 4 42 48 7 26 16 50 19 54 7 8 171 -204 171 -220 0 -6 -243 -92 -263 -92 -3 0 -2 12 3 26 6 14 10 42 10 62 0 34 -5 39 -48 63 -225 125 -326 365 -249 588 24 68 83 171 98 171 4 0 13 -10 21 -22z"></path>
+ </g>
+ </g>
+ <g id="l4ISrBZ99c0JhgybN4n19ck" fill="rgb(0,179,239)" style="transform: none;">
+ <g style="transform: none;">
+ <path id="p7Z6YFxGZ" d="M600 1479 c0 -9 -36 -10 -132 -5 -73 3 -138 3 -144 -1 -8 -6 71 -173 248 -526 226 -453 261 -517 274 -506 9 7 43 67 76 133 33 67 62 123 65 126 3 3 11 -4 19 -14 13 -18 14 -17 14 17 0 28 -46 129 -187 412 -164 327 -191 375 -210 375 -13 0 -23 -5 -23 -11z"></path>
+ <path id="p1EBFuFvg5" d="M166 1284 c-148 -189 -149 -478 -2 -665 38 -48 165 -147 206 -161 9 -3 6 -24 -10 -76 -12 -40 -20 -75 -18 -77 5 -5 369 114 381 124 7 7 -230 331 -242 331 -4 0 -19 -36 -32 -80 l-24 -79 -33 16 c-93 46 -163 143 -188 264 -22 105 5 218 72 307 l26 33 -26 37 c-14 20 -35 48 -45 61 l-18 24 -47 -59z"></path>
+ </g>
+ </g>
+ <g id="l3FOcDZejqb9IedW0GUPJgl" fill="rgb(0,78,127)" style="transform: none;">
+ <g style="transform: none;">
+ <path id="p2hKcJKZD" d="M596 1493 c6 -21 3 -22 -78 -26 l-83 -3 90 -2 90 -2 198 -395 c108 -217 201 -395 205 -394 4 0 92 172 195 382 185 377 210 440 175 452 -7 2 -189 6 -405 7 l-392 3 5 -22z"></path>
+ <path id="pr5eCnF2i" d="M1320 715 c0 -22 4 -25 35 -25 31 0 35 3 35 25 0 22 -4 25 -35 25 -31 0 -35 -3 -35 -25z"></path>
+ </g>
+ </g>
+ <g id="l4X0vkAF0oiG3FiqwZsEHPn" fill="rgb(47,91,127)" style="transform: none;">
+ <g style="transform: none;">
+ <path id="pt5c96ejB" d="M577 1538 l28 -53 375 -3 c206 -1 378 -6 383 -11 4 -4 -76 -177 -180 -384 l-187 -376 39 -81 39 -81 258 513 c141 282 257 516 257 521 1 4 -233 7 -520 7 l-520 0 28 -52z"></path>
+ </g>
+ </g>
+ <g id="l3TOeBmblHmtVFhNvh8YWyt" fill="rgb(1,56,104)" style="transform: none;">
+ <g style="transform: none;">
+ <path id="pxcopblt3" d="M1616 1369 c-32 -110 -55 -203 -52 -206 2 -3 39 6 80 20 l75 25 7 -35 c11 -57 -4 -161 -30 -219 -51 -111 -162 -195 -277 -210 -30 -4 -57 -12 -61 -18 -5 -8 -8 -7 -8 2 0 6 -11 12 -24 12 -20 0 -25 -8 -41 -65 -9 -36 -15 -68 -12 -71 13 -13 131 -16 189 -4 142 27 286 138 352 270 47 95 60 163 53 286 l-6 100 70 23 c38 12 69 24 69 25 0 3 -272 224 -316 258 -8 6 -29 -54 -68 -193z"></path>
+ </g>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/web-v2/web/src/lib/icons/svg/oceanbase.svg b/web-v2/web/src/lib/icons/svg/oceanbase.svg
new file mode 100644
index 0000000000..e140dd1e9d
--- /dev/null
+++ b/web-v2/web/src/lib/icons/svg/oceanbase.svg
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg class="img-fluid" id="outputsvg" xmlns="http://www.w3.org/2000/svg" style="transform: matrix(1, 0, 0, 1, 0, 0); transform-origin: 50% 50%; cursor: move; max-height: none; transition: transform 200ms ease-in-out 0s;" width="280" height="280" viewBox="0 0 2800 2800">
+ <g id="l1FLkn6jgqwOe1OQbCdWskk" fill="rgb(1,129,253)" style="transform: none;">
+ <g style="transform: none;">
+ <path id="pqCWjVUON" d="M338 1933 c-17 -4 -18 -31 -18 -383 l0 -378 148 5 c251 9 542 -36 827 -127 222 -71 357 -103 560 -135 136 -22 427 -38 548 -30 l107 7 0 382 0 382 -159 -4 c-163 -4 -323 7 -478 33 -83 14 -374 94 -418 115 -21 10 -164 47 -280 74 -104 23 -245 44 -380 56 -118 10 -423 12 -457 3z"></path>
+ </g>
+ </g>
+ <g id="l3Tw7sWw6PeBNAiRP2RWbkL" fill="rgb(7,200,70)" style="transform: none;">
+ <g style="transform: none;">
+ <path id="p18iitp5Ia" d="M1509 2094 c-27 -70 -66 -200 -63 -206 7 -11 251 -88 348 -109 215 -48 552 -73 679 -53 l37 7 0 123 0 124 -132 -6 c-279 -14 -552 33 -845 143 -7 3 -18 -8 -24 -23z"></path>
+ </g>
+ </g>
+ <g id="l25zI63SdRTqq2xRblRuhKG" fill="rgb(255,160,5)" style="transform: none;">
+ <g style="transform: none;">
+ <path id="pecUtCUzo" d="M320 970 l0 -132 33 6 c84 17 219 18 362 1 142 -16 378 -59 400 -73 5 -4 52 -21 103 -38 108 -35 97 -43 137 91 15 50 30 95 32 101 7 18 -229 94 -407 132 -156 32 -179 34 -412 39 l-248 5 0 -132z"></path>
+ </g>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/web-v2/web/src/lib/icons/svg/paimon.svg b/web-v2/web/src/lib/icons/svg/paimon.svg
new file mode 100644
index 0000000000..f91bc6e441
--- /dev/null
+++ b/web-v2/web/src/lib/icons/svg/paimon.svg
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="_图层_2" data-name="图层 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 218.61 218.61">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: #e7e7e7;
+ }
+
+ .cls-2 {
+ fill: #0163e1;
+ }
+ </style>
+ </defs>
+ <g id="_图层_1-2" data-name="图层 1">
+ <g>
+ <path class="cls-2" d="m55.63,111.28c-3.51-10.04-11.49-18.15-21.95-21.65l-12.74-4.26h80.4c19.85-7.47,43.6-13.02,72.56-17.39l19.6-3.48,13.7-3.85C189.3,24.7,152.19,0,109.3,0,48.94,0,0,48.94,0,109.3c0,20.41,2.93,39.59,17.2,58.79,8.15-17.84,23.42-40.44,38.43-56.82Z"/>
+ <path class="cls-2" d="m182.4,72.57c-60.11,22.53-114.4,58.22-158.92,104.43,20.02,25.34,51.02,41.61,85.82,41.61,60.37,0,109.3-48.94,109.3-109.3,0-16.36-3.6-31.88-10.04-45.81l-26.17,9.08Z"/>
+ <path class="cls-1" d="m182.4,72.57l26.17-9.08c-.44-.95-.9-1.9-1.36-2.84l-13.7,3.85-17.66,1.02c-29.79,2.42-54.8,8.05-86.19,19.85H20.94l9,3.87c9.89,3.88,22.18,12,25.69,22.04-16.77,16.69-30.7,39.55-38.43,56.82,2.46,4.13,5.32,7.62,8.29,11.37,48.68-53.33,96.8-84.37,156.91-106.89Z"/>
+ </g>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/web-v2/web/src/lib/icons/svg/starrocks.svg b/web-v2/web/src/lib/icons/svg/starrocks.svg
new file mode 100644
index 0000000000..f6fa78578d
--- /dev/null
+++ b/web-v2/web/src/lib/icons/svg/starrocks.svg
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg version="1.1" width="100" height="100" xmlns="http://www.w3.org/2000/svg">
+<style type="text/css">
+ .st0{fill:#01808F;}
+ .st1{fill:#FEBD02;}
+</style>
+<g id="starrocks">
+ <g>
+ <path class="st0" d="M11.8,26.4c-0.1,2.2,0.9,3.4,2.3,4.5c9,7.4,18,14.8,27,22.2c2.5,2.1,2.7,3.5,1,6.2
+ c-4.4,6.7-8.8,13.4-13.2,20.1c-1.7,2.5-3.2,2.9-5.9,1.4c-2.8-1.6-5.6-3.2-8.4-4.8c-3.2-1.8-4.8-4.6-4.8-8.3c0-11.8,0-23.6,0-35.5
+ C9.8,30.2,10.3,28.4,11.8,26.4z"/>
+ <path class="st0" d="M87.9,73.8c0.6-2.3-0.5-3.5-1.9-4.6c-9-7.4-17.9-14.7-26.8-22.1c-2.9-2.4-3.1-3.6-1.1-6.7
+ c4.3-6.6,8.7-13.2,13-19.8c1.7-2.6,3.3-2.9,6-1.4c2.8,1.6,5.6,3.2,8.3,4.8c3.2,1.8,4.7,4.5,4.7,8.2c0,11.9,0,23.7,0,35.6
+ C90.2,69.9,89.6,71.9,87.9,73.8z"/>
+ <path class="st0" d="M67.1,56.8c0.6,0.4,17.3,14.1,17.5,14.3c2.4,2.2,2.2,4.1-0.6,5.8C76.8,81,57.3,92.1,54.8,93.6
+ c-3.2,1.9-6.4,1.9-9.6,0c-4.6-2.7-9.2-5.3-13.8-8c-2.2-1.3-2.2-2.7,0-3.9C42.3,75.5,53.1,69.2,64,63
+ C66.5,61.6,68.2,60.1,67.1,56.8z"/>
+ <path class="st1" d="M32.9,43.2c-0.6-0.4-17.3-14.1-17.5-14.3c-2.4-2.2-2.2-4.1,0.6-5.8C23.2,19,42.7,7.9,45.2,6.4
+ c3.2-1.9,6.4-1.9,9.6,0c4.6,2.7,9.2,5.3,13.8,8c2.2,1.3,2.2,2.7,0,3.9C57.7,24.5,46.9,30.8,36,37C33.5,38.4,31.8,39.9,32.9,43.2z"
+ />
+ </g>
+</g>
+</svg>
diff --git a/web-v2/web/src/lib/provider/AntdProvider.js b/web-v2/web/src/lib/provider/AntdProvider.js
new file mode 100644
index 0000000000..88067eb7eb
--- /dev/null
+++ b/web-v2/web/src/lib/provider/AntdProvider.js
@@ -0,0 +1,70 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useState } from 'react'
+import React from 'react'
+
+import { useServerInsertedHTML } from 'next/navigation'
+
+import {
+ StyleProvider,
+ createCache,
+ extractStyle,
+ legacyLogicalPropertiesTransformer,
+ px2remTransformer
+} from '@ant-design/cssinjs'
+import dayjs from 'dayjs'
+import 'dayjs/locale/en'
+
+dayjs.locale('en')
+
+// suppress useLayoutEffect warnings when running outside a browser
+if (!process.browser) React.useLayoutEffect = React.useEffect
+
+export function AntdProvider({ children }) {
+ const [cache] = useState(() => createCache())
+
+ const render = <>{children}</>
+
+ useServerInsertedHTML(() => {
+ return (
+ <script
+ dangerouslySetInnerHTML={{
+ __html: `</script>${extractStyle(cache)}<script>`
+ }}
+ />
+ )
+ })
+
+ if (typeof window !== 'undefined') {
+ return render
+ }
+
+ const px2rem = px2remTransformer({
+ rootValue: 16 //@default 16
+ })
+
+ return (
+ <StyleProvider layer transformers={[legacyLogicalPropertiesTransformer, px2rem]} cache={cache}>
+ {render}
+ </StyleProvider>
+ )
+}
diff --git a/web-v2/web/src/lib/provider/ThemeProvider.js b/web-v2/web/src/lib/provider/ThemeProvider.js
new file mode 100644
index 0000000000..d27d864b5b
--- /dev/null
+++ b/web-v2/web/src/lib/provider/ThemeProvider.js
@@ -0,0 +1,74 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useEffect, useState } from 'react'
+
+import { ConfigProvider, theme } from 'antd'
+import { ThemeProvider as NextThemeProvider } from 'next-themes'
+import { useTheme } from 'next-themes'
+
+import Loading from '@/components/Loading'
+import { AntdProvider } from './AntdProvider'
+
+export function AntdConfigProvider({ children }) {
+ const { theme: nowTheme } = useTheme()
+
+ return (
+ <ConfigProvider
+ prefixCls='ant'
+ iconPrefixCls='anticon'
+ theme={{
+ algorithm: theme.defaultAlgorithm
+ }}
+ >
+ <ConfigProvider
+ theme={{
+ token: {
+ colorPrimary: '#0369a1',
+ borderRadius: 8
+ }
+ }}
+ >
+ <AntdProvider>{children}</AntdProvider>
+ </ConfigProvider>
+ </ConfigProvider>
+ )
+}
+
+export default function ThemeProvider({ children }) {
+ const [mounted, setMounted] = useState(false)
+
+ // useEffect only runs on the client, so now we can safely show the UI
+ useEffect(() => {
+ setMounted(true)
+ }, [])
+
+ if (!mounted) {
+ // use your loading page
+ return <Loading />
+ }
+
+ return (
+ <NextThemeProvider attribute='class' defaultTheme='default' enableSystem={false} disableTransitionOnChange>
+ <AntdConfigProvider>{children}</AntdConfigProvider>
+ </NextThemeProvider>
+ )
+}
diff --git a/web-v2/web/src/lib/provider/client.js b/web-v2/web/src/lib/provider/client.js
new file mode 100644
index 0000000000..eecd73a8bf
--- /dev/null
+++ b/web-v2/web/src/lib/provider/client.js
@@ -0,0 +1,34 @@
+/*
+ * 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 { useEffect, useState, Fragment } from 'react'
+
+const ClientOnly = ({ children, ...delegated }) => {
+ const [hasMounted, setHasMounted] = useState(false)
+
+ useEffect(() => {
+ setHasMounted(true)
+ }, [])
+
+ if (!hasMounted) return null
+
+ return <Fragment {...delegated}>{children}</Fragment>
+}
+
+export default ClientOnly
diff --git a/web-v2/web/src/lib/provider/index.js b/web-v2/web/src/lib/provider/index.js
new file mode 100644
index 0000000000..4a87c7019e
--- /dev/null
+++ b/web-v2/web/src/lib/provider/index.js
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import ClientOnly from './client'
+import AuthProvider from './session'
+import StoreProvider from './store'
+import ThemeProvider from './ThemeProvider'
+
+const ProviderNew = ({ children }) => {
+ return (
+ <ClientOnly>
+ <StoreProvider>
+ <AuthProvider>
+ <ThemeProvider>{children}</ThemeProvider>
+ </AuthProvider>
+ </StoreProvider>
+ </ClientOnly>
+ )
+}
+
+export default ProviderNew
diff --git a/web-v2/web/src/lib/provider/session.js b/web-v2/web/src/lib/provider/session.js
new file mode 100644
index 0000000000..7c6e442e94
--- /dev/null
+++ b/web-v2/web/src/lib/provider/session.js
@@ -0,0 +1,155 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { createContext, useEffect, useState, useContext } from 'react'
+import { useRouter } from 'next/navigation'
+import { useAppDispatch } from '@/lib/hooks/useStore'
+import { initialVersion, fetchGitHubInfo, setStars, setForks } from '@/lib/store/sys'
+import { oauthProviderFactory } from '@/lib/auth/providers/factory'
+
+import { to } from '../utils'
+import { getAuthConfigs, setAuthToken, setAuthUser } from '../store/auth'
+
+import { useIdle } from 'react-use'
+
+const authProvider = {
+ version: '',
+ token: null,
+ user: null,
+ loading: true,
+ setLoading: () => Boolean
+}
+
+const AuthContext = createContext(authProvider)
+
+export const useAuth = () => useContext(AuthContext)
+
+const AuthProvider = ({ children }) => {
+ const router = useRouter()
+ const dispatch = useAppDispatch()
+
+ const [loading, setLoading] = useState(authProvider.loading)
+ const [token, setToken] = useState(null)
+ const [user, setUser] = useState(null)
+
+ const version = (typeof window !== 'undefined' && localStorage.getItem('version')) || null
+
+ const expiredIn = localStorage.getItem('expiredIn') && JSON.parse(localStorage.getItem('expiredIn')) // seconds
+ const idleOn = (expiredIn + 60) * 1000
+ const isIdle = useIdle(idleOn)
+
+ useEffect(() => {
+ if (isIdle) {
+ localStorage.setItem('isIdle', true)
+ }
+ }, [isIdle])
+
+ const goToMetalakeListPage = () => {
+ try {
+ let pathname = window.location.pathname
+
+ // Remove /ui prefix since Next.js basePath will add it automatically
+ if (pathname.startsWith('/ui')) {
+ pathname = pathname.slice(3) || '/'
+ }
+ if (pathname === '/' || pathname === '') {
+ router.replace('/metalakes')
+ } else {
+ router.replace(pathname + window.location.search)
+ }
+ } catch (e) {
+ router.replace('/metalakes')
+ }
+ }
+
+ useEffect(() => {
+ const initAuth = async () => {
+ const [authConfigsErr, resAuthConfigs] = await to(dispatch(getAuthConfigs()))
+ const authType = resAuthConfigs?.payload?.authType
+ const anthEnable = resAuthConfigs?.payload?.anthEnable
+
+ // Check sessionStorage cache first, only fetch if no cache
+ const cachedGithubInfo = typeof window !== 'undefined' && window.sessionStorage.getItem('githubInfo')
+ if (cachedGithubInfo) {
+ try {
+ const parsed = JSON.parse(cachedGithubInfo)
+ if (parsed.stars && parsed.forks) {
+ dispatch(setStars(parsed.stars))
+ dispatch(setForks(parsed.forks))
+ }
+ } catch (e) {
+ dispatch(fetchGitHubInfo())
+ }
+ } else {
+ dispatch(fetchGitHubInfo())
+ }
+
+ if (authType === 'simple') {
+ dispatch(initialVersion())
+ const sessionUser = typeof window !== 'undefined' && JSON.parse(window.sessionStorage.getItem('simpleAuthUser'))
+ if (anthEnable && !sessionUser) {
+ router.push('/login')
+ } else {
+ dispatch(setAuthUser(sessionUser))
+ goToMetalakeListPage()
+ }
+ } else if (authType === 'oauth') {
+ const tokenToUse = await oauthProviderFactory.getAccessToken()
+ const user = await oauthProviderFactory.getUserProfile()
+
+ // Update local token state
+ setToken(tokenToUse)
+ user && setUser(user)
+
+ if (tokenToUse) {
+ dispatch(setAuthToken(tokenToUse))
+ user && dispatch(setAuthUser(user))
+ dispatch(initialVersion())
+ goToMetalakeListPage()
+ } else {
+ // Don't redirect to login if we're on the OAuth callback page
+ // Let the callback page handle the OAuth flow completion
+ if (
+ typeof window !== 'undefined' &&
+ (window.location.pathname.startsWith(`${process.env.NEXT_PUBLIC_BASE_PATH}/oauth/callback`) ||
+ window.location.pathname.startsWith('/ui/oauth/callback'))
+ ) {
+ return
+ }
+ router.push('/login')
+ }
+ }
+ }
+
+ initAuth()
+ }, [])
+
+ const values = {
+ version,
+ token,
+ user,
+ loading
+ }
+
+ return <AuthContext.Provider value={values}>{children}</AuthContext.Provider>
+}
+
+export default AuthProvider
diff --git a/web-v2/web/src/lib/provider/store.js b/web-v2/web/src/lib/provider/store.js
new file mode 100644
index 0000000000..cfaaa566d7
--- /dev/null
+++ b/web-v2/web/src/lib/provider/store.js
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { useRef } from 'react'
+import { Provider } from 'react-redux'
+
+import store from '@/lib/store'
+
+const StoreProvider = ({ children }) => {
+ const storeRef = useRef()
+ if (!storeRef.current) {
+ storeRef.current = store
+ }
+
+ return <Provider store={storeRef.current}>{children}</Provider>
+}
+
+export default StoreProvider
diff --git a/web-v2/web/src/lib/settings/index.js b/web-v2/web/src/lib/settings/index.js
new file mode 100644
index 0000000000..82b5d0008f
--- /dev/null
+++ b/web-v2/web/src/lib/settings/index.js
@@ -0,0 +1,25 @@
+/*
+ * 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.
+ */
+
+export const settings = {
+ mode: 'light',
+ primaryColor: '#6478f7'
+}
+
+export default settings
diff --git a/web-v2/web/src/lib/store/auth/index.js b/web-v2/web/src/lib/store/auth/index.js
new file mode 100644
index 0000000000..ca11e64d22
--- /dev/null
+++ b/web-v2/web/src/lib/store/auth/index.js
@@ -0,0 +1,215 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+import toast from 'react-hot-toast'
+
+import { to, isProdEnv } from '@/lib/utils'
+
+import { getAuthConfigsApi, loginApi } from '@/lib/api/auth'
+
+import { initialVersion } from '@/lib/store/sys'
+import { oauthProviderFactory } from '@/lib/auth/providers/factory'
+
+const devOauthUrl = process.env.NEXT_PUBLIC_OAUTH_PATH
+
+export const getAuthConfigs = createAsyncThunk('auth/getAuthConfigs', async () => {
+ let oauthUrl = null
+ let authType = null
+ let anthEnable = null
+ let serviceAdmins = null
+ const [err, res] = await to(getAuthConfigsApi())
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ oauthUrl = `${res['gravitino.authenticator.oauth.serverUri']}${res['gravitino.authenticator.oauth.tokenPath']}`
+
+ // ** get the first authenticator from the response. response example: "[simple, oauth]"
+ authType = res['gravitino.authenticators'][0].trim()
+ anthEnable = res['gravitino.authorization.enable']
+ serviceAdmins = res['gravitino.authorization.serviceAdmins']
+
+ localStorage.setItem('oauthUrl', oauthUrl)
+
+ return { oauthUrl, authType, anthEnable, serviceAdmins, systemConfig: res }
+})
+
+export const refreshToken = createAsyncThunk('auth/refreshToken', async (data, { getState, dispatch }) => {
+ const authParams = getState().auth.authParams || window.localStorage.getItem('authParams')
+ let params = typeof authParams === 'string' ? JSON.parse(authParams) : authParams
+
+ const url = isProdEnv ? getState().auth.oauthUrl : devOauthUrl
+
+ const [err, res] = await to(loginApi(url, params))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { access_token, expires_in } = res.data
+
+ return { token: access_token, expiredIn: expires_in }
+})
+
+export const loginAction = createAsyncThunk('auth/loginAction', async ({ params, router }, { getState, dispatch }) => {
+ dispatch(setAuthParams(params))
+ localStorage.setItem('authParams', JSON.stringify(params))
+
+ const url = getState().auth.oauthUrl
+
+ const [err, res] = await to(loginApi(url, params))
+
+ if (err || !res) {
+ toast.error(err.response?.data?.err || err.message, { id: `global_error_message_status_${err.response?.status}` })
+ throw new Error(err)
+ }
+
+ const { access_token, expires_in } = res // `expires_in ` is in seconds, default is 499
+
+ localStorage.setItem('accessToken', access_token)
+ localStorage.setItem('expiredIn', expires_in)
+ localStorage.setItem('isIdle', false)
+ dispatch(setAuthToken(access_token))
+ dispatch(setExpiredIn(expires_in))
+ await dispatch(initialVersion())
+
+ router.push('/metalakes')
+
+ return { token: access_token, expired: expires_in }
+})
+
+export const logoutAction = createAsyncThunk('auth/logoutAction', async ({ router }, { getState, dispatch }) => {
+ // Clear provider authentication data first
+ if (getState().auth.authType === 'oauth') {
+ try {
+ const provider = await oauthProviderFactory.getProvider()
+ if (provider) {
+ await provider.clearAuthData()
+ console.log('[Logout Action] Provider cleanup completed')
+ }
+ } catch (error) {
+ console.warn('[Logout Action] Provider cleanup failed:', error)
+ }
+
+ // Clear legacy auth tokens
+ localStorage.removeItem('accessToken')
+ localStorage.removeItem('authParams')
+ localStorage.removeItem('expiredIn')
+ localStorage.removeItem('isIdle')
+ localStorage.removeItem('version')
+
+ dispatch(clearIntervalId())
+ dispatch(setAuthToken(''))
+ } else {
+ dispatch(setAuthUser(null))
+ }
+ await router.push('/login')
+
+ return { token: null }
+})
+
+export const setIntervalIdAction = createAsyncThunk('auth/setIntervalIdAction', async (expiredIn, { dispatch }) => {
+ const localExpiredIn = localStorage.getItem('expiredIn')
+ const expired = (expiredIn ?? Number(localExpiredIn)) * (2 / 3) * 1000
+ const defaultExpired = 299 * (2 / 3) * 1000
+
+ let intervalId = setInterval(() => {
+ if (localStorage.getItem('isIdle') === 'true') {
+ localStorage.removeItem('accessToken')
+ localStorage.removeItem('authParams')
+ dispatch(clearIntervalId())
+ dispatch(setAuthToken(''))
+
+ return
+ }
+ dispatch(refreshToken())
+ }, expired || defaultExpired)
+
+ dispatch(setIntervalId(intervalId))
+
+ return {
+ intervalId
+ }
+})
+
+export const authSlice = createSlice({
+ name: 'auth',
+ initialState: {
+ oauthUrl: null,
+ authType: null,
+ authToken: null,
+ authParams: null,
+ expiredIn: null,
+ intervalId: null,
+ anthEnable: null,
+ serviceAdmins: null,
+ systemConfig: null,
+ authUser: null
+ },
+ reducers: {
+ setIntervalId(state, action) {
+ state.intervalId = action.payload
+ },
+ clearIntervalId(state) {
+ if (state.intervalId) {
+ clearInterval(state.intervalId)
+ state.intervalId = null
+ }
+ },
+ setAuthToken(state, action) {
+ state.authToken = action.payload
+ },
+ setAuthParams(state, action) {
+ state.authParams = action.payload
+ },
+ setExpiredIn(state, action) {
+ state.expiredIn = action.payload
+ },
+ setAuthUser(state, action) {
+ if (action.payload) {
+ sessionStorage.setItem('simpleAuthUser', JSON.stringify(action.payload))
+ } else {
+ sessionStorage.removeItem('simpleAuthUser')
+ }
+ state.authUser = action.payload
+ }
+ },
+ extraReducers: builder => {
+ builder.addCase(getAuthConfigs.fulfilled, (state, action) => {
+ state.oauthUrl = action.payload.oauthUrl
+ state.authType = action.payload.authType
+ state.anthEnable = action.payload.anthEnable
+ state.serviceAdmins = action.payload.serviceAdmins
+ state.systemConfig = action.payload.systemConfig
+ })
+ builder.addCase(refreshToken.fulfilled, (state, action) => {
+ localStorage.setItem('accessToken', action.payload.token)
+ localStorage.setItem('expiredIn', action.payload.expiredIn)
+ localStorage.setItem('isIdle', false)
+ state.authToken = action.payload.token
+ state.expiredIn = action.payload.expiredIn
+ })
+ }
+})
+
+export const { setAuthToken, setAuthParams, setExpiredIn, clearIntervalId, setAuthUser } = authSlice.actions
+
+export default authSlice.reducer
diff --git a/web-v2/web/src/lib/store/index.js b/web-v2/web/src/lib/store/index.js
new file mode 100644
index 0000000000..ccd06b5dd0
--- /dev/null
+++ b/web-v2/web/src/lib/store/index.js
@@ -0,0 +1,55 @@
+/*
+ * 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.
+ */
+
+'use client'
+
+import { configureStore } from '@reduxjs/toolkit'
+
+import { isDevEnv } from '@/lib/utils'
+
+import sys from './sys'
+import auth from './auth'
+import metalakes from './metalakes'
+import tags from './tags'
+import policies from './policies'
+import users from './users'
+import userGroups from './userGroups'
+import roles from './roles'
+import jobs from './jobs'
+
+export const store = configureStore({
+ reducer: {
+ sys,
+ auth,
+ metalakes,
+ tags,
+ policies,
+ users,
+ userGroups,
+ roles,
+ jobs
+ },
+ devTools: true,
+ middleware: getDefaultMiddleware =>
+ getDefaultMiddleware({
+ serializableCheck: isDevEnv
+ })
+})
+
+export default store
diff --git a/web-v2/web/src/lib/store/jobs/index.js b/web-v2/web/src/lib/store/jobs/index.js
new file mode 100644
index 0000000000..70c5e8e390
--- /dev/null
+++ b/web-v2/web/src/lib/store/jobs/index.js
@@ -0,0 +1,232 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+
+import { to } from '@/lib/utils'
+import toast from 'react-hot-toast'
+
+import {
+ getJobsApi,
+ getJobTemplatesApi,
+ createJobTemplateApi,
+ getJobTemplateApi,
+ updateJobTemplateApi,
+ deleteJobTemplateApi,
+ createJobApi,
+ getJobApi,
+ cancelJobApi
+} from '@/lib/api/jobs'
+import { is } from '@/lib/utils/is'
+
+export const fetchJobs = createAsyncThunk('jobs/fetchJobs', async ({ metalake }, { dispatch }) => {
+ await dispatch(setJobsLoading(true))
+ const [err, res] = await to(getJobsApi({ metalake }))
+ await dispatch(setJobsLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.jobs
+})
+
+export const fetchJobTemplates = createAsyncThunk(
+ 'jobs/fetchJobTemplates',
+ async ({ metalake, details }, { dispatch }) => {
+ await dispatch(setJobTemplatesLoading(true))
+ const [err, res] = await to(getJobTemplatesApi({ metalake, details }))
+ await dispatch(setJobTemplatesLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return { jobTemplatesRes: res, details }
+ }
+)
+
+export const createJobTemplate = createAsyncThunk(
+ 'jobs/createJobTemplate',
+ async ({ metalake, data, details }, { dispatch }) => {
+ const [err, res] = await to(createJobTemplateApi({ metalake, data, details }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchJobTemplates({ metalake, details }))
+
+ return res
+ }
+)
+
+export const updateJobTemplate = createAsyncThunk(
+ 'jobs/updateJobTemplate',
+ async ({ metalake, jobTemplate, data }, { dispatch }) => {
+ const [err, res] = await to(updateJobTemplateApi({ metalake, jobTemplate, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchJobTemplates({ metalake, details: true }))
+
+ return res
+ }
+)
+
+export const getJobTemplate = createAsyncThunk(
+ 'jobs/getJobTemplate',
+ async ({ metalake, jobTemplate }, { dispatch }) => {
+ const [err, res] = await to(getJobTemplateApi({ metalake, jobTemplate }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.jobTemplate
+ }
+)
+
+export const deleteJobTemplate = createAsyncThunk(
+ 'jobs/deleteJobTemplate',
+ async ({ metalake, jobTemplate }, { dispatch }) => {
+ const [err, res] = await to(deleteJobTemplateApi({ metalake, jobTemplate }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchJobTemplates({ metalake, details: true }))
+
+ return res
+ }
+)
+
+export const createJob = createAsyncThunk('jobs/createJob', async ({ metalake, data }, { dispatch }) => {
+ const [err, res] = await to(createJobApi({ metalake, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchJobs({ metalake }))
+
+ return res
+})
+
+export const getJobDetails = createAsyncThunk('jobs/getJobDetails', async ({ metalake, jobId }, { dispatch }) => {
+ const [err, res] = await to(getJobApi({ metalake, jobId }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.job
+})
+
+export const cancelJob = createAsyncThunk('jobs/cancelJob', async ({ metalake, jobId }, { dispatch }) => {
+ const [err, res] = await to(cancelJobApi({ metalake, jobId }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchJobs({ metalake }))
+
+ return res
+})
+
+const jobsSlice = createSlice({
+ name: 'jobs',
+ initialState: {
+ jobsData: [],
+ jobTemplates: [],
+ jobTemplateNames: [],
+ isJobsLoading: false,
+ isJobTemplatesLoading: false
+ },
+ reducers: {
+ setJobsLoading: (state, action) => {
+ state.isJobsLoading = action.payload
+ },
+ setJobTemplatesLoading: (state, action) => {
+ state.isJobTemplatesLoading = action.payload
+ }
+ },
+ extraReducers: builder => {
+ builder
+ .addCase(fetchJobs.fulfilled, (state, action) => {
+ state.jobsData = action.payload
+ })
+ .addCase(fetchJobs.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(fetchJobTemplates.fulfilled, (state, action) => {
+ const { jobTemplatesRes, details } = action.payload
+ if (details) {
+ state.jobTemplates = jobTemplatesRes.jobTemplates
+ } else {
+ state.jobTemplateNames = jobTemplatesRes.names
+ }
+ })
+ .addCase(fetchJobTemplates.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(createJobTemplate.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(updateJobTemplate.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(getJobTemplate.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(deleteJobTemplate.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(getJobDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(cancelJob.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ }
+})
+
+export const { setJobsLoading, setJobTemplatesLoading } = jobsSlice.actions
+
+export default jobsSlice.reducer
diff --git a/web-v2/web/src/lib/store/metalakes/index.js b/web-v2/web/src/lib/store/metalakes/index.js
new file mode 100644
index 0000000000..37f64f3326
--- /dev/null
+++ b/web-v2/web/src/lib/store/metalakes/index.js
@@ -0,0 +1,2153 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+
+import { to, extractPlaceholder, updateTreeData, findInTree } from '@/lib/utils'
+import toast from 'react-hot-toast'
+
+import _ from 'lodash-es'
+
+import {
+ createMetalakeApi,
+ getMetalakesApi,
+ deleteMetalakeApi,
+ updateMetalakeApi,
+ switchInUseApi,
+ getMetalakeDetailsApi,
+ getEntityOwnerApi,
+ setEntityOwnerApi,
+ getCurrentEntityTagsApi,
+ getCurrentEntityPoliciesApi,
+ getMetadataObjectsForTagApi,
+ getMetadataObjectsForPolicyApi
+} from '@/lib/api/metalakes'
+
+import {
+ getCatalogsApi,
+ getCatalogDetailsApi,
+ createCatalogApi,
+ testCatalogConnectionApi,
+ updateCatalogApi,
+ deleteCatalogApi,
+ switchInUseCatalogApi
+} from '@/lib/api/catalogs'
+import {
+ getSchemasApi,
+ getSchemaDetailsApi,
+ createSchemaApi,
+ updateSchemaApi,
+ deleteSchemaApi
+} from '@/lib/api/schemas'
+import { getTablesApi, getTableDetailsApi, createTableApi, updateTableApi, deleteTableApi } from '@/lib/api/tables'
+import {
+ getFilesetsApi,
+ getFilesetDetailsApi,
+ listFilesetFilesApi,
+ createFilesetApi,
+ updateFilesetApi,
+ deleteFilesetApi
+} from '@/lib/api/filesets'
+import { getTopicsApi, getTopicDetailsApi, createTopicApi, updateTopicApi, deleteTopicApi } from '@/lib/api/topics'
+import {
+ getModelsApi,
+ getModelDetailsApi,
+ registerModelApi,
+ updateModelApi,
+ deleteModelApi,
+ getModelVersionsApi,
+ getVersionDetailsApi,
+ linkVersionApi,
+ updateVersionApi,
+ deleteVersionApi
+} from '@/lib/api/models'
+
+export const fetchMetalakes = createAsyncThunk('appMetalakes/fetchMetalakes', async (params, { getState }) => {
+ const [err, res] = await to(getMetalakesApi())
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { metalakes } = res
+
+ metalakes.sort((a, b) => new Date(b.audit.createTime) - new Date(a.audit.createTime))
+
+ return { metalakes }
+})
+
+export const createMetalake = createAsyncThunk('appMetalakes/createMetalake', async (data, { getState, dispatch }) => {
+ const [err, res] = await to(createMetalakeApi(data))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ dispatch(fetchMetalakes())
+
+ return res.metalake
+})
+
+export const deleteMetalake = createAsyncThunk('appMetalakes/deleteMetalake', async (name, { dispatch }) => {
+ const [err, res] = await to(deleteMetalakeApi(name))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchMetalakes())
+
+ return res
+})
+
+export const updateMetalake = createAsyncThunk('appMetalakes/updateMetalake', async ({ name, data }, { dispatch }) => {
+ const [err, res] = await to(updateMetalakeApi({ name, data }))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ dispatch(fetchMetalakes())
+
+ return res
+})
+
+export const switchMetalakeInUse = createAsyncThunk(
+ 'appMetalakes/switchMetalakeInUse',
+ async ({ name, isInUse }, { dispatch }) => {
+ const [err, res] = await to(switchInUseApi({ name, isInUse }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchMetalakes())
+
+ return res
+ }
+)
+
+export const getCurrentEntityOwner = createAsyncThunk(
+ 'appMetalakes/getCurrentEntityOwner',
+ async ({ metalake, metadataObjectType, metadataObjectFullName }, { dispatch }) => {
+ const [err, res] = await to(getEntityOwnerApi(metalake, metadataObjectType, metadataObjectFullName))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ return { owner: res.owner, metadataObjectType }
+ }
+)
+
+export const setEntityOwner = createAsyncThunk(
+ 'appMetalakes/setEntityOwner',
+ async ({ metalake, metadataObjectType, metadataObjectFullName, data }, { dispatch }) => {
+ const [err, res] = await to(setEntityOwnerApi(metalake, metadataObjectType, metadataObjectFullName, data))
+ if (err || !res) {
+ return { err: true }
+ }
+
+ return res
+ }
+)
+
+export const setIntoTreeNodeWithFetch = createAsyncThunk(
+ 'appMetalakes/setIntoTreeNodeWithFetch',
+ async ({ key, reload }, { getState, dispatch }) => {
+ let result = {
+ key,
+ data: [],
+ tree: getState().metalakes.metalakeTree
+ }
+
+ const pathArr = extractPlaceholder(key)
+ const [metalake, catalog, type, schema, entity] = pathArr
+
+ if (pathArr.length === 1) {
+ const [err, res] = await to(getCatalogsApi({ metalake }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { catalogs = [] } = res
+
+ result.data = catalogs.map(catalogItem => {
+ return {
+ ...catalogItem,
+ node: 'catalog',
+ id: `{{${metalake}}}{{${catalogItem.name}}}{{${catalogItem.type}}}`,
+ key: `{{${metalake}}}{{${catalogItem.name}}}{{${catalogItem.type}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog: catalogItem.name, catalogType: catalogItem.type }).toString()}`,
+ name: catalogItem.name,
+ title: catalogItem.name,
+ namespace: [metalake],
+ schemas: [],
+ children: []
+ }
+ })
+ } else if (pathArr.length === 3) {
+ const [err, res] = await to(getSchemasApi({ metalake, catalog }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+ const expandedKeys = getState().metalakes.expandedNodes
+ const loadedNodes = getState().metalakes.loadedNodes
+ let reloadedEpxpandedKeys = []
+ let reloadedKeys = []
+
+ result.data = identifiers.map(schemaItem => {
+ if (reload) {
+ if (expandedKeys.includes(`{{${metalake}}}{{${catalog}}}{{${type}}}{{${schemaItem.name}}}`)) {
+ reloadedEpxpandedKeys.push(`{{${metalake}}}{{${catalog}}}{{${type}}}{{${schemaItem.name}}}`)
+ }
+ if (loadedNodes.includes(`{{${metalake}}}{{${catalog}}}{{${type}}}{{${schemaItem.name}}}`)) {
+ reloadedKeys.push(`{{${metalake}}}{{${catalog}}}{{${type}}}{{${schemaItem.name}}}`)
+ }
+ }
+
+ return {
+ ...schemaItem,
+ node: 'schema',
+ id: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schemaItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schemaItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType: type, schema: schemaItem.name }).toString()}`,
+ isLeaf: reload ? false : undefined,
+ name: schemaItem.name,
+ title: schemaItem.name,
+ tables: [],
+ children: []
+ }
+ })
+ if (reloadedEpxpandedKeys.length > 0) {
+ const epxpanded = expandedKeys.filter(key => !reloadedEpxpandedKeys.includes(key))
+ dispatch(resetExpandNode(epxpanded))
+ }
+ if (reloadedKeys.length > 0) {
+ const loaded = loadedNodes.filter(key => !reloadedKeys.includes(key))
+ dispatch(setLoadedNodes(loaded))
+ }
+ } else if (pathArr.length === 4 && type === 'relational') {
+ const [err, res] = await to(getTablesApi({ metalake, catalog, schema }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ result.data = identifiers.map(tableItem => {
+ return {
+ ...tableItem,
+ node: 'table',
+ id: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schema}}}{{${tableItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schema}}}{{${tableItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType: type, schema, table: tableItem.name }).toString()}`,
+ name: tableItem.name,
+ title: tableItem.name,
+ isLeaf: true,
+ columns: [],
+ children: []
+ }
+ })
+ } else if (pathArr.length === 4 && type === 'fileset') {
+ const [err, res] = await to(getFilesetsApi({ metalake, catalog, schema }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ result.data = identifiers.map(filesetItem => {
+ return {
+ ...filesetItem,
+ node: 'fileset',
+ id: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schema}}}{{${filesetItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schema}}}{{${filesetItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType: type, schema, fileset: filesetItem.name }).toString()}`,
+ name: filesetItem.name,
+ title: filesetItem.name,
+ isLeaf: true
+ }
+ })
+ } else if (pathArr.length === 4 && type === 'messaging') {
+ const [err, res] = await to(getTopicsApi({ metalake, catalog, schema }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ result.data = identifiers.map(topicItem => {
+ return {
+ ...topicItem,
+ node: 'topic',
+ id: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schema}}}{{${topicItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schema}}}{{${topicItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType: type, schema, topic: topicItem.name }).toString()}`,
+ name: topicItem.name,
+ title: topicItem.name,
+ isLeaf: true
+ }
+ })
+ } else if (pathArr.length === 4 && type === 'model') {
+ const [err, res] = await to(getModelsApi({ metalake, catalog, schema }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ result.data = identifiers.map(modelItem => {
+ return {
+ ...modelItem,
+ node: 'model',
+ id: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schema}}}{{${modelItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${type}}}{{${schema}}}{{${modelItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType: type, schema, model: modelItem.name }).toString()}`,
+ name: modelItem.name,
+ title: modelItem.name,
+ isLeaf: true
+ }
+ })
+ }
+
+ return result
+ }
+)
+
+export const getMetalakeDetails = createAsyncThunk('appMetalakes/getMetalakeDetails', async ({ metalake }) => {
+ const [err, res] = await to(getMetalakeDetailsApi(metalake))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { metalake: resMetalake } = res
+
+ return resMetalake
+})
+
+export const getCurrentEntityTags = createAsyncThunk(
+ 'appMetalakes/getCurrentEntityTags',
+ async ({ init, metalake, metadataObjectType, metadataObjectFullName, details }) => {
+ const [err, res] = await to(getCurrentEntityTagsApi(metalake, metadataObjectType, metadataObjectFullName, details))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return { tags: res.tags, init }
+ }
+)
+
+export const getCurrentEntityPolicies = createAsyncThunk(
+ 'appMetalakes/getCurrentEntityPolicies',
+ async ({ init, metalake, metadataObjectType, metadataObjectFullName, details }) => {
+ const [err, res] = await to(
+ getCurrentEntityPoliciesApi({ metalake, metadataObjectType, metadataObjectFullName, details })
+ )
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return { policies: res.policies, init }
+ }
+)
+
+export const getMetadataObjectsForTag = createAsyncThunk(
+ 'appMetalakes/getMetadataObjectsForTag',
+ async ({ metalake, tag }) => {
+ const [err, res] = await to(getMetadataObjectsForTagApi(metalake, tag))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.metadataObjects
+ }
+)
+
+export const getMetadataObjectsForPolicy = createAsyncThunk(
+ 'appMetalakes/getMetadataObjectsForPolicy',
+ async ({ metalake, policy }) => {
+ const [err, res] = await to(getMetadataObjectsForPolicyApi(metalake, policy))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.metadataObjects
+ }
+)
+
+export const fetchCatalogs = createAsyncThunk(
+ 'appMetalakes/fetchCatalogs',
+ async ({ init, update, page, metalake }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTree())
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+ const [err, res] = await to(getCatalogsApi({ metalake }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ await dispatch(resetTableData())
+ throw new Error(err)
+ }
+
+ const { catalogs = [] } = res
+
+ const catalogsData = catalogs.map(catalog => {
+ return {
+ ...catalog,
+ node: 'catalog',
+ id: `{{${metalake}}}{{${catalog.name}}}{{${catalog.type}}}`,
+ key: `{{${metalake}}}{{${catalog.name}}}{{${catalog.type}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog: catalog.name, catalogType: catalog.type }).toString()}`,
+ catalogType: catalog.type,
+ provider: catalog.provider,
+ inUse: catalog.properties['in-use'],
+ name: catalog.name,
+ title: catalog.name,
+ namespace: [metalake],
+ schemas: [],
+ children: []
+ }
+ })
+
+ if (init) {
+ if (update && update.catalog) {
+ if (update.catalog !== update.newCatalog.name) {
+ const tree = getState().metalakes.metalakeTree.map(catalog => {
+ if (catalog.name === update.catalog) {
+ const schemas = catalog.children
+ ? catalog.children.map(schema => {
+ const tables = schema.children
+ ? schema.children.map(table => {
+ return {
+ ...table,
+ id: `{{${metalake}}}{{${update.newCatalog.name}}}{{${update.newCatalog.type}}}{{${schema.name}}}{{${table.name}}}`,
+ key: `{{${metalake}}}{{${update.newCatalog.name}}}{{${update.newCatalog.type}}}{{${schema.name}}}{{${table.name}}}`,
+ path: `?${new URLSearchParams({
+ metalake,
+ catalog: update.newCatalog.name,
+ catalogType: update.newCatalog.type,
+ schema: schema.name,
+ table: table.name
+ }).toString()}`
+ }
+ })
+ : []
+
+ return {
+ ...schema,
+ id: `{{${metalake}}}{{${update.newCatalog.name}}}{{${update.newCatalog.type}}}{{${schema.name}}}`,
+ key: `{{${metalake}}}{{${update.newCatalog.name}}}{{${update.newCatalog.type}}}{{${schema.name}}}`,
+ path: `?${new URLSearchParams({
+ metalake,
+ catalog: update.newCatalog.name,
+ catalogType: update.newCatalog.type,
+ schema: schema.name
+ }).toString()}`,
+ tables: tables,
+ children: tables
+ }
+ })
+ : []
+
+ return {
+ ...catalog,
+ id: `{{${metalake}}}{{${update.newCatalog.name}}}{{${update.newCatalog.type}}}`,
+ key: `{{${metalake}}}{{${update.newCatalog.name}}}{{${update.newCatalog.type}}}`,
+ path: `?${new URLSearchParams({
+ metalake,
+ catalog: update.newCatalog.name,
+ catalogType: update.newCatalog.type
+ }).toString()}`,
+ catalogType: update.newCatalog.type,
+ provider: update.newCatalog.provider,
+ name: update.newCatalog.name,
+ title: update.newCatalog.name,
+ schemas: schemas,
+ children: schemas
+ }
+ } else {
+ return { ...catalog }
+ }
+ })
+
+ dispatch(setMetalakeTree(tree))
+
+ const expandedNodes = getState().metalakes.expandedNodes.map(node => {
+ const [metalake, catalog, schema, table] = extractPlaceholder(node)
+ if (catalog === update.catalog) {
+ const updatedNode = `{{${metalake}}}{{${update.newCatalog.name}}}{{${update.newCatalog.type}}}${
+ schema ? `{{${schema}}}` : ''
+ }${table ? `{{${table}}}` : ''}`
+
+ return updatedNode
+ }
+
+ return node
+ })
+
+ const expanded = expandedNodes.filter(i => !i.startsWith(`{{${metalake}}}{{${update.catalog}}}`))
+ dispatch(setExpanded(expanded))
+
+ const loadedNodes = getState().metalakes.loadedNodes.map(node => {
+ const [metalake, catalog, schema, table] = extractPlaceholder(node)
+ if (catalog === update.catalog) {
+ const updatedNode = `{{${metalake}}}{{${update.newCatalog.name}}}{{${update.newCatalog.type}}}${
+ schema ? `{{${schema}}}` : ''
+ }${table ? `{{${table}}}` : ''}`
+
+ return updatedNode
+ }
+
+ return node
+ })
+
+ const loaded = loadedNodes.filter(i => !i.startsWith(`{{${metalake}}}{{${update.catalog}}}`))
+ dispatch(setLoadedNodes(loaded))
+ }
+ } else {
+ const mergedTree = _.values(
+ _.merge(_.keyBy(catalogsData, 'key'), _.keyBy(getState().metalakes.metalakeTree, 'key'))
+ )
+ dispatch(setMetalakeTree(mergedTree))
+ }
+ }
+
+ return {
+ catalogs: catalogsData,
+ page,
+ init
+ }
+ }
+)
+
+export const getCatalogDetails = createAsyncThunk(
+ 'appMetalakes/getCatalogDetails',
+ async ({ init, metalake, catalog }, { dispatch }) => {
+ const [err, res] = await to(getCatalogDetailsApi({ metalake, catalog }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { catalog: resCatalog } = res
+
+ return { catalog: resCatalog, init }
+ }
+)
+
+export const createCatalog = createAsyncThunk(
+ 'appMetalakes/createCatalog',
+ async ({ data, metalake }, { dispatch }) => {
+ dispatch(setTableLoading(true))
+ const [err, res] = await to(createCatalogApi({ data, metalake }))
+ dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ const { catalog: catalogItem } = res
+
+ const catalogData = {
+ ...catalogItem,
+ node: 'catalog',
+ id: `{{${metalake}}}{{${catalogItem.name}}}{{${catalogItem.type}}}`,
+ key: `{{${metalake}}}{{${catalogItem.name}}}{{${catalogItem.type}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog: catalogItem.name, catalogType: catalogItem.type }).toString()}`,
+ catalogType: catalogItem.type,
+ provider: catalogItem.provider,
+ name: catalogItem.name,
+ title: catalogItem.name,
+ namespace: [metalake],
+ schemas: [],
+ children: []
+ }
+
+ dispatch(fetchCatalogs({ metalake, init: true }))
+
+ dispatch(addCatalogToTree(catalogData))
+
+ return catalogData
+ }
+)
+
+export const testCatalogConnection = createAsyncThunk(
+ 'appMetalakes/testCatalogConnection',
+ async ({ data, metalake }) => {
+ const [err, res] = await to(testCatalogConnectionApi({ data, metalake }))
+ console.log('testCatalogConnection', err, res)
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ return res
+ }
+)
+
+export const updateCatalog = createAsyncThunk(
+ 'appMetalakes/updateCatalog',
+ async ({ init, metalake, catalog, data }, { dispatch }) => {
+ const [err, res] = await to(updateCatalogApi({ metalake, catalog, data }))
+ if (err || !res) {
+ return { err: true }
+ }
+ if (init) {
+ dispatch(fetchCatalogs({ metalake, update: { catalog, newCatalog: res.catalog }, init }))
+ } else {
+ dispatch(getCatalogDetails({ init: true, metalake, catalog }))
+ }
+
+ return res.catalog
+ }
+)
+
+export const deleteCatalog = createAsyncThunk(
+ 'appMetalakes/deleteCatalog',
+ async ({ metalake, catalog, catalogType }, { dispatch }) => {
+ dispatch(setTableLoading(true))
+ const [err, res] = await to(deleteCatalogApi({ metalake, catalog }))
+ dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchCatalogs({ metalake, catalog, page: 'metalakes', init: true }))
+
+ dispatch(removeCatalogFromTree(`{{${metalake}}}{{${catalog}}}{{${catalogType}}}`))
+
+ return res
+ }
+)
+
+export const switchInUseCatalog = createAsyncThunk(
+ 'appMetalakes/switchInUseCatalog',
+ async ({ metalake, catalog, isInUse }, { dispatch }) => {
+ const [err, res] = await to(switchInUseCatalogApi({ metalake, catalog, isInUse }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchCatalogs({ metalake, init: true }))
+
+ return res
+ }
+)
+
+export const fetchSchemas = createAsyncThunk(
+ 'appMetalakes/fetchSchemas',
+ async ({ init, page, metalake, catalog, catalogType }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+ const [err, res] = await to(getSchemasApi({ metalake, catalog }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ const schemas = identifiers.map(schema => {
+ const schemaItem = findInTree(
+ getState().metalakes.metalakeTree,
+ 'key',
+ `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema.name}}}`
+ )
+
+ return {
+ ...schema,
+ node: 'schema',
+ id: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType, schema: schema.name }).toString()}`,
+ name: schema.name,
+ title: schema.name,
+ tables: schemaItem ? schemaItem.children : [],
+ children: schemaItem ? schemaItem.children : []
+ }
+ })
+
+ if (init) {
+ const catalogKey = `{{${metalake}}}{{${catalog}}}{{${catalogType}}}`
+
+ // Always update tree nodes when init is true
+ dispatch(
+ setIntoTreeNodes({
+ key: catalogKey,
+ data: schemas
+ })
+ )
+
+ // Add catalog to loadedNodes if not already present
+ if (!getState().metalakes.loadedNodes.includes(catalogKey)) {
+ dispatch(setLoadedNodes([...getState().metalakes.loadedNodes, catalogKey]))
+ }
+ }
+
+ dispatch(setExpandedNodes([`{{${metalake}}}`, `{{${metalake}}}{{${catalog}}}{{${catalogType}}}`]))
+
+ return { schemas, page, init }
+ }
+)
+
+export const getSchemaDetails = createAsyncThunk(
+ 'appMetalakes/getSchemaDetails',
+ async ({ init, metalake, catalog, schema }, { dispatch }) => {
+ const [err, res] = await to(getSchemaDetailsApi({ metalake, catalog, schema }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { schema: resSchema } = res
+
+ return { schema: resSchema, init }
+ }
+)
+
+export const createSchema = createAsyncThunk(
+ 'appMetalakes/createSchema',
+ async ({ data, metalake, catalog, catalogType }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(createSchemaApi({ data, metalake, catalog }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ const { schema: schemaItem } = res
+
+ const schemaData = {
+ ...schemaItem,
+ node: 'schema',
+ id: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schemaItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schemaItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType, schema: schemaItem.name }).toString()}`,
+ name: schemaItem.name,
+ title: schemaItem.name,
+ tables: [],
+ children: []
+ }
+
+ dispatch(fetchSchemas({ metalake, catalog, catalogType, init: true }))
+
+ return schemaData
+ }
+)
+
+export const updateSchema = createAsyncThunk(
+ 'appMetalakes/updateSchema',
+ async ({ init, metalake, catalog, catalogType, schema, data }, { dispatch }) => {
+ const [err, res] = await to(updateSchemaApi({ metalake, catalog, schema, data }))
+ if (err || !res) {
+ return { err: true }
+ }
+ if (init) {
+ dispatch(getSchemaDetails({ init, metalake, catalog, schema }))
+ } else {
+ dispatch(fetchSchemas({ metalake, catalog, catalogType, init: true }))
+ }
+
+ return res.schema
+ }
+)
+
+export const deleteSchema = createAsyncThunk(
+ 'appMetalakes/deleteSchema',
+ async ({ metalake, catalog, catalogType, schema }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(deleteSchemaApi({ metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchSchemas({ metalake, catalog, catalogType, page: 'catalogs', init: true }))
+
+ return res
+ }
+)
+
+export const fetchTables = createAsyncThunk(
+ 'appMetalakes/fetchTables',
+ async ({ init, page, metalake, catalog, schema }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+ const [err, res] = await to(getTablesApi({ metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+
+ if (init && (err || !res)) {
+ dispatch(resetTableData())
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ const tables = identifiers.map(table => {
+ return {
+ ...table,
+ node: 'table',
+ id: `{{${metalake}}}{{${catalog}}}{{${'relational'}}}{{${schema}}}{{${table.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${'relational'}}}{{${schema}}}{{${table.name}}}`,
+ path: `?${new URLSearchParams({
+ metalake,
+ catalog,
+ catalogType: 'relational',
+ schema,
+ table: table.name
+ }).toString()}`,
+ name: table.name,
+ title: table.name,
+ isLeaf: true,
+ columns: [],
+ children: []
+ }
+ })
+
+ if (
+ init &&
+ getState().metalakes.loadedNodes.includes(`{{${metalake}}}{{${catalog}}}{{${'relational'}}}{{${schema}}}`)
+ ) {
+ dispatch(
+ setIntoTreeNodes({
+ key: `{{${metalake}}}{{${catalog}}}{{${'relational'}}}{{${schema}}}`,
+ data: tables
+ })
+ )
+ }
+
+ dispatch(
+ setExpandedNodes([
+ `{{${metalake}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'relational'}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'relational'}}}{{${schema}}}`
+ ])
+ )
+
+ return { tables, page, init }
+ }
+)
+
+export const getTableDetails = createAsyncThunk(
+ 'appMetalakes/getTableDetails',
+ async ({ init, metalake, catalog, schema, table }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+ const [err, res] = await to(getTableDetailsApi({ metalake, catalog, schema, table }))
+ await dispatch(setTableLoading(false))
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { table: resTable } = res
+
+ const { distribution, sortOrders = [], partitioning = [], indexes = [] } = resTable
+
+ const tableProps = [
+ {
+ type: 'partitioning',
+ icon: 'tabler:circle-letter-p-filled',
+ items: partitioning.map(i => {
+ let fields = i.fieldName || []
+ let sub = ''
+ let last = i.fieldName
+
+ switch (i.strategy) {
+ case 'bucket':
+ sub = `[${i.numBuckets}]`
+ fields = i.fieldNames
+ last = i.fieldNames.map(v => v[0]).join(',')
+ break
+ case 'truncate':
+ sub = `[${i.width}]`
+ break
+ case 'list':
+ fields = i.fieldNames
+ last = i.fieldNames.map(v => v[0]).join(',')
+ break
+ case 'function':
+ sub = `[${i.funcName}]`
+ fields = i.funcArgs.map(v => v.fieldName)
+ last = fields.join(',')
+ break
+ default:
+ break
+ }
+
+ return {
+ strategy: i.strategy,
+ numBuckets: i.numBuckets,
+ width: i.width,
+ funcName: i.funcName,
+ fields,
+ text: `${i.strategy}${sub}(${last})`
+ }
+ })
+ },
+ {
+ type: 'sortOrders',
+ icon: 'mdi:letter-s-circle',
+ items: sortOrders.map(i => {
+ const fields =
+ i.sortTerm?.type === 'field' ? i.sortTerm.fieldName : i.sortTerm?.funcArgs.find(f => f.fieldName)?.fieldName
+
+ return {
+ fields: fields,
+ dir: i.direction,
+ no: i.nullOrdering,
+ text: `${fields[0]} ${i.direction} ${i.nullOrdering}`
+ }
+ })
+ },
+ {
+ type: 'distribution',
+ icon: 'tabler:circle-letter-d-filled',
+ items: distribution.funcArgs.map(i => {
+ return {
+ fields: i.fieldName,
+ number: distribution.number,
+ strategy: distribution.strategy,
+ text:
+ distribution.strategy === ''
+ ? ``
+ : `${distribution.strategy}${
+ distribution.number === 0 ? '' : `[${distribution.number}]`
+ }(${i.fieldName.join(',')})`
+ }
+ })
+ },
+ {
+ type: 'indexes',
+ icon: 'mdi:letter-i-circle',
+ items: indexes.map(i => {
+ return {
+ fields: i.fieldNames,
+ name: i.name,
+ indexType: i.indexType,
+ text: `${i.name}(${i.fieldNames.map(v => v.join('.')).join(',')})`
+ }
+ })
+ }
+ ]
+
+ dispatch(setTableProps(tableProps))
+
+ dispatch(
+ setExpandedNodes([
+ `{{${metalake}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'relational'}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'relational'}}}{{${schema}}}`
+ ])
+ )
+
+ return { table: resTable, init }
+ }
+)
+
+export const createTable = createAsyncThunk(
+ 'appMetalakes/createTable',
+ async ({ data, metalake, catalog, catalogType, schema }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(createTableApi({ data, metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ const { table: tableItem } = res
+
+ const tableData = {
+ ...tableItem,
+ node: 'table',
+ id: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${tableItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${tableItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType, schema, table: tableItem.name }).toString()}`,
+ name: tableItem.name,
+ title: tableItem.name,
+ tables: [],
+ children: []
+ }
+
+ dispatch(fetchTables({ metalake, catalog, schema, catalogType, init: true }))
+
+ return tableData
+ }
+)
+
+export const updateTable = createAsyncThunk(
+ 'appMetalakes/updateTable',
+ async ({ init, metalake, catalog, catalogType, schema, table, data }, { dispatch }) => {
+ const [err, res] = await to(updateTableApi({ metalake, catalog, schema, table, data }))
+ if (err || !res) {
+ return { err: true }
+ }
+
+ if (init) {
+ await dispatch(getTableDetails({ init, metalake, catalog, catalogType, schema, table }))
+ } else {
+ await dispatch(fetchTables({ metalake, catalog, catalogType, schema, page: 'schemas', init: true }))
+ }
+
+ return res.table
+ }
+)
+
+export const deleteTable = createAsyncThunk(
+ 'appMetalakes/deleteTable',
+ async ({ metalake, catalog, catalogType, schema, table }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(deleteTableApi({ metalake, catalog, schema, table }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ await dispatch(fetchTables({ metalake, catalog, catalogType, schema, page: 'schemas', init: true }))
+
+ return res
+ }
+)
+
+export const fetchFilesets = createAsyncThunk(
+ 'appMetalakes/fetchFilesets',
+ async ({ init, page, metalake, catalog, schema }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+
+ const [err, res] = await to(getFilesetsApi({ metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+
+ if (init && (err || !res)) {
+ await dispatch(resetTableData())
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ const filesets = identifiers.map(fileset => {
+ return {
+ ...fileset,
+ node: 'fileset',
+ id: `{{${metalake}}}{{${catalog}}}{{${'fileset'}}}{{${schema}}}{{${fileset.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${'fileset'}}}{{${schema}}}{{${fileset.name}}}`,
+ path: `?${new URLSearchParams({
+ metalake,
+ catalog,
+ catalogType: 'fileset',
+ schema,
+ fileset: fileset.name
+ }).toString()}`,
+ name: fileset.name,
+ title: fileset.name,
+ isLeaf: true
+ }
+ })
+
+ if (
+ init &&
+ getState().metalakes.loadedNodes.includes(`{{${metalake}}}{{${catalog}}}{{${'fileset'}}}{{${schema}}}`)
+ ) {
+ dispatch(
+ setIntoTreeNodes({
+ key: `{{${metalake}}}{{${catalog}}}{{${'fileset'}}}{{${schema}}}`,
+ data: filesets
+ })
+ )
+ }
+
+ dispatch(
+ setExpandedNodes([
+ `{{${metalake}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'fileset'}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'fileset'}}}{{${schema}}}`
+ ])
+ )
+
+ return { filesets, page, init }
+ }
+)
+
+export const getFilesetDetails = createAsyncThunk(
+ 'appMetalakes/getFilesetDetails',
+ async ({ init, metalake, catalog, schema, fileset }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+ const [err, res] = await to(getFilesetDetailsApi({ metalake, catalog, schema, fileset }))
+ init && (await dispatch(setTableLoading(false)))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { fileset: resFileset } = res
+
+ await dispatch(
+ setExpandedNodes([
+ `{{${metalake}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'fileset'}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'fileset'}}}{{${schema}}}`
+ ])
+ )
+
+ return { fileset: resFileset, init }
+ }
+)
+
+export const createFileset = createAsyncThunk(
+ 'appMetalakes/createFileset',
+ async ({ data, metalake, catalog, catalogType, schema }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(createFilesetApi({ data, metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ const { fileset: filesetItem } = res
+
+ const filesetData = {
+ ...filesetItem,
+ node: 'fileset',
+ id: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${filesetItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${filesetItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType, schema, fileset: filesetItem.name }).toString()}`,
+ name: filesetItem.name,
+ title: filesetItem.name,
+ tables: [],
+ children: []
+ }
+
+ await dispatch(fetchFilesets({ metalake, catalog, schema, catalogType, init: true }))
+
+ return filesetData
+ }
+)
+
+export const updateFileset = createAsyncThunk(
+ 'appMetalakes/updateFileset',
+ async ({ metalake, catalog, catalogType, schema, fileset, data }, { dispatch }) => {
+ const [err, res] = await to(updateFilesetApi({ metalake, catalog, schema, fileset, data }))
+ if (err || !res) {
+ return { err: true }
+ }
+ await dispatch(fetchFilesets({ metalake, catalog, catalogType, schema, init: true }))
+
+ return res.fileset
+ }
+)
+
+export const deleteFileset = createAsyncThunk(
+ 'appMetalakes/deleteFileset',
+ async ({ metalake, catalog, catalogType, schema, fileset }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(deleteFilesetApi({ metalake, catalog, schema, fileset }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ await dispatch(fetchFilesets({ metalake, catalog, catalogType, schema, page: 'schemas', init: true }))
+
+ return res
+ }
+)
+
+export const getFilesetFiles = createAsyncThunk(
+ 'appMetalakes/getFilesetFiles',
+ async ({ metalake, catalog, schema, fileset, subPath = '/', locationName }, { getState, dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(listFilesetFilesApi({ metalake, catalog, schema, fileset, subPath, locationName }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ await dispatch(resetTableData())
+ throw new Error(err)
+ }
+
+ const { files = [] } = res
+
+ return { files, subPath, locationName }
+ }
+)
+
+export const fetchTopics = createAsyncThunk(
+ 'appMetalakes/fetchTopics',
+ async ({ init, page, metalake, catalog, schema }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+
+ const [err, res] = await to(getTopicsApi({ metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+ if (init && (err || !res)) {
+ await dispatch(resetTableData())
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ const topics = identifiers.map(topic => {
+ return {
+ ...topic,
+ node: 'topic',
+ id: `{{${metalake}}}{{${catalog}}}{{${'messaging'}}}{{${schema}}}{{${topic.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${'messaging'}}}{{${schema}}}{{${topic.name}}}`,
+ path: `?${new URLSearchParams({
+ metalake,
+ catalog,
+ catalogType: 'messaging',
+ schema,
+ topic: topic.name
+ }).toString()}`,
+ name: topic.name,
+ title: topic.name,
+ isLeaf: true
+ }
+ })
+
+ if (
+ init &&
+ getState().metalakes.loadedNodes.includes(`{{${metalake}}}{{${catalog}}}{{${'messaging'}}}{{${schema}}}`)
+ ) {
+ await dispatch(
+ setIntoTreeNodes({
+ key: `{{${metalake}}}{{${catalog}}}{{${'messaging'}}}{{${schema}}}`,
+ data: topics
+ })
+ )
+ }
+
+ await dispatch(
+ setExpandedNodes([
+ `{{${metalake}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'messaging'}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'messaging'}}}{{${schema}}}`
+ ])
+ )
+
+ return { topics, page, init }
+ }
+)
+
+export const getTopicDetails = createAsyncThunk(
+ 'appMetalakes/getTopicDetails',
+ async ({ init, metalake, catalog, schema, topic }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(setTableLoading(true))
+ }
+ const [err, res] = await to(getTopicDetailsApi({ metalake, catalog, schema, topic }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { topic: resTopic } = res
+
+ await dispatch(
+ setExpandedNodes([
+ `{{${metalake}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'messaging'}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'messaging'}}}{{${schema}}}`
+ ])
+ )
+
+ return { topic: resTopic, init }
+ }
+)
+
+export const createTopic = createAsyncThunk(
+ 'appMetalakes/createTopic',
+ async ({ data, metalake, catalog, catalogType, schema }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(createTopicApi({ data, metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ const { topic: topicItem } = res
+
+ const topicData = {
+ ...topicItem,
+ node: 'topic',
+ id: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${topicItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${topicItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType, schema, topic: topicItem.name }).toString()}`,
+ name: topicItem.name,
+ title: topicItem.name,
+ tables: [],
+ children: []
+ }
+
+ await dispatch(fetchTopics({ metalake, catalog, schema, catalogType, init: true }))
+
+ return topicData
+ }
+)
+
+export const updateTopic = createAsyncThunk(
+ 'appMetalakes/updateTopic',
+ async ({ metalake, catalog, catalogType, schema, topic, data }, { dispatch }) => {
+ const [err, res] = await to(updateTopicApi({ metalake, catalog, schema, topic, data }))
+ if (err || !res) {
+ return { err: true }
+ }
+ await dispatch(fetchTopics({ metalake, catalog, catalogType, schema, init: true }))
+
+ return res.topic
+ }
+)
+
+export const deleteTopic = createAsyncThunk(
+ 'appMetalakes/deleteTopic',
+ async ({ metalake, catalog, catalogType, schema, topic }, { dispatch }) => {
+ const [err, res] = await to(deleteTopicApi({ metalake, catalog, schema, topic }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+ await dispatch(setTableLoading(true))
+ await dispatch(fetchTopics({ metalake, catalog, catalogType, schema, page: 'topics', init: true }))
+ await dispatch(setTableLoading(false))
+
+ return res
+ }
+)
+
+export const fetchModels = createAsyncThunk(
+ 'appMetalakes/fetchModels',
+ async ({ init, page, metalake, catalog, schema }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+
+ const [err, res] = await to(getModelsApi({ metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+
+ if (init && (err || !res)) {
+ throw new Error(err)
+ }
+
+ const { identifiers = [] } = res || {}
+
+ const models = identifiers.map(model => {
+ return {
+ ...model,
+ node: 'model',
+ id: `{{${metalake}}}{{${catalog}}}{{${'model'}}}{{${schema}}}{{${model.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${'model'}}}{{${schema}}}{{${model.name}}}`,
+ path: `?${new URLSearchParams({
+ metalake,
+ catalog,
+ catalogType: 'model',
+ schema,
+ model: model.name
+ }).toString()}`,
+ name: model.name,
+ title: model.name,
+ isLeaf: true
+ }
+ })
+
+ if (init && getState().metalakes.loadedNodes.includes(`{{${metalake}}}{{${catalog}}}{{${'model'}}}{{${schema}}}`)) {
+ await dispatch(
+ setIntoTreeNodes({
+ key: `{{${metalake}}}{{${catalog}}}{{${'model'}}}{{${schema}}}`,
+ data: models
+ })
+ )
+ }
+
+ await dispatch(
+ setExpandedNodes([
+ `{{${metalake}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'model'}}}`,
+ `{{${metalake}}}{{${catalog}}}{{${'model'}}}{{${schema}}}`
+ ])
+ )
+
+ return { models, page, init }
+ }
+)
+
+export const getModelDetails = createAsyncThunk(
+ 'appMetalakes/getModelDetails',
+ async ({ init, metalake, catalog, schema, model }, { getState, dispatch }) => {
+ const [err, res] = await to(getModelDetailsApi({ metalake, catalog, schema, model }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { model: resModel } = res
+
+ return { model: resModel, init }
+ }
+)
+
+export const registerModel = createAsyncThunk(
+ 'appMetalakes/registerModel',
+ async ({ data, metalake, catalog, catalogType, schema }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(registerModelApi({ data, metalake, catalog, schema }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ const { model: modelItem } = res
+
+ const modelData = {
+ ...modelItem,
+ node: 'model',
+ id: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${modelItem.name}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${modelItem.name}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType, schema, model: modelItem.name }).toString()}`,
+ name: modelItem.name,
+ title: modelItem.name,
+ tables: [],
+ children: []
+ }
+
+ await dispatch(fetchModels({ metalake, catalog, schema, catalogType, init: true }))
+
+ return modelData
+ }
+)
+
+export const updateModel = createAsyncThunk(
+ 'appMetalakes/updateModel',
+ async ({ metalake, catalog, catalogType, schema, model, data }, { dispatch }) => {
+ const [err, res] = await to(updateModelApi({ metalake, catalog, schema, model, data }))
+ if (err || !res) {
+ return { err: true }
+ }
+ await dispatch(fetchModels({ metalake, catalog, catalogType, schema, init: true }))
+
+ return res.model
+ }
+)
+
+export const deleteModel = createAsyncThunk(
+ 'appMetalakes/deleteModel',
+ async ({ metalake, catalog, catalogType, schema, model }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(deleteModelApi({ metalake, catalog, schema, model }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ await dispatch(fetchModels({ metalake, catalog, catalogType, schema, page: 'models', init: true }))
+
+ return res
+ }
+)
+
+export const fetchModelVersions = createAsyncThunk(
+ 'appMetalakes/fetchModelVersions',
+ async ({ init, page, metalake, catalog, schema, model }, { getState, dispatch }) => {
+ if (init) {
+ await dispatch(resetTableData())
+ await dispatch(setTableLoading(true))
+ }
+
+ const [err, res] = await to(getModelVersionsApi({ metalake, catalog, schema, model }))
+ await dispatch(setTableLoading(false))
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { versions = [] } = res
+
+ const versionsData = versions.map(version => {
+ return {
+ node: 'version',
+ id: `{{${metalake}}}{{${catalog}}}{{${'model'}}}{{${schema}}}{{${model}}}{{${version}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${'model'}}}{{${schema}}}{{${model}}}{{${version}}}`,
+ path: `?${new URLSearchParams({
+ metalake,
+ catalog,
+ catalogType: 'model',
+ schema,
+ model,
+ version
+ }).toString()}`,
+ name: version,
+ title: version,
+ isLeaf: true
+ }
+ })
+
+ return { versions: versionsData, page, init }
+ }
+)
+
+export const getVersionDetails = createAsyncThunk(
+ 'appMetalakes/getVersionDetails',
+ async ({ init, metalake, catalog, schema, model, version }, { getState, dispatch }) => {
+ const [err, res] = await to(getVersionDetailsApi({ metalake, catalog, schema, model, version }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ const { modelVersion } = res
+
+ return modelVersion
+ }
+)
+
+export const linkVersion = createAsyncThunk(
+ 'appMetalakes/linkVersion',
+ async ({ data, metalake, catalog, catalogType, schema, model }, { dispatch }) => {
+ await dispatch(setTableLoading(true))
+ const [err, res] = await to(linkVersionApi({ data, metalake, catalog, schema, model }))
+ await dispatch(setTableLoading(false))
+
+ if (err || !res) {
+ return { err: true }
+ }
+
+ const { version: versionItem } = res
+
+ const versionData = {
+ node: 'version',
+ id: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${model}}}{{${versionItem}}}`,
+ key: `{{${metalake}}}{{${catalog}}}{{${catalogType}}}{{${schema}}}{{${model}}}{{${versionItem}}}`,
+ path: `?${new URLSearchParams({ metalake, catalog, catalogType, schema, version: versionItem }).toString()}`,
+ name: versionItem,
+ title: versionItem,
+ tables: [],
+ children: []
+ }
+
+ await dispatch(fetchModelVersions({ metalake, catalog, schema, catalogType, model, init: true }))
+
+ return versionData
+ }
+)
+
+export const updateVersion = createAsyncThunk(
+ 'appMetalakes/updateVersion',
+ async ({ metalake, catalog, catalogType, schema, model, version, data }, { dispatch }) => {
+ const [err, res] = await to(updateVersionApi({ metalake, catalog, schema, model, version, data }))
+ if (err || !res) {
+ return { err: true }
+ }
+ await dispatch(fetchModelVersions({ metalake, catalog, catalogType, schema, model, init: true }))
+
+ return res.modelVersion
+ }
+)
+
+export const deleteVersion = createAsyncThunk(
+ 'appMetalakes/deleteVersion',
+ async ({ metalake, catalog, catalogType, schema, model, version }, { dispatch }) => {
+ const [err, res] = await to(deleteVersionApi({ metalake, catalog, schema, model, version: version.toString() }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ await dispatch(fetchModelVersions({ metalake, catalog, catalogType, schema, model, page: 'versions', init: true }))
+
+ return res
+ }
+)
+
+export const appMetalakesSlice = createSlice({
+ name: 'appMetalakes',
+ initialState: {
+ metalakes: [],
+ filteredMetalakes: [],
+ tableData: [],
+ tableProps: [],
+ catalogs: [],
+ schemas: [],
+ tables: [],
+ columns: [],
+ filesets: [],
+ topics: [],
+ models: [],
+ versions: [],
+ metalakeTree: [],
+ loadedNodes: [],
+ selectedNodes: [],
+ expandedNodes: [],
+ activatedDetails: null,
+ activatedDetailsLoading: false,
+ tableLoading: false,
+ treeLoading: false,
+ currentMetalakeOwner: null,
+ currentEntityTags: [],
+ currentEntityPolicies: []
+ },
+ reducers: {
+ setFilteredMetalakes(state, action) {
+ state.filteredMetalakes = action.payload
+ },
+ setCurrentMetalakeOwner(state, action) {
+ state.setCurrentMetalakeOwner = action.payload
+ },
+ setMetalakeTree(state, action) {
+ state.metalakeTree = action.payload
+ },
+ setLoadedNodes(state, action) {
+ state.loadedNodes = action.payload
+ },
+ setSelectedNodes(state, action) {
+ state.selectedNodes = action.payload
+ },
+ setExpanded(state, action) {
+ state.expandedNodes = action.payload
+ },
+ setExpandedNodes(state, action) {
+ const expandedNodes = JSON.parse(JSON.stringify(state.expandedNodes))
+ const nodes = Array.from(new Set([...expandedNodes, action.payload].flat()))
+ state.expandedNodes = nodes
+ },
+ removeExpandedNode(state, action) {
+ const expandedNodes = state.expandedNodes.filter(i => i !== action.payload)
+ state.expandedNodes = expandedNodes
+ },
+ resetExpandNode(state, action) {
+ state.expandedNodes = action.payload || []
+ },
+ resetTableData(state, action) {
+ state.tableData = []
+ state.tableProps = []
+ },
+ resetTree(state, action) {
+ state.metalakeTree = []
+ state.expandedNodes = []
+ state.selectedNodes = []
+ state.loadedNodes = []
+
+ state.tableData = []
+ state.tableProps = []
+ state.catalogs = []
+ state.schemas = []
+ state.tables = []
+ state.columns = []
+ state.filesets = []
+ state.topics = []
+ state.models = []
+ state.versions = []
+ },
+ setTableLoading(state, action) {
+ state.tableLoading = action.payload
+ },
+ setTreeLoading(state, action) {
+ state.treeLoading = action.payload
+ },
+ resetActivatedDetails(state, action) {
+ state.activatedDetails = null
+
+ // Also clear table-related data to avoid stale content when switching details
+ state.tableData = []
+ state.tableProps = []
+ },
+ setActivatedDetailsLoading(state, action) {
+ state.activatedDetailsLoading = action.payload
+ },
+ setIntoTreeNodes(state, action) {
+ const { key, data } = action.payload
+ state.metalakeTree = updateTreeData(state.metalakeTree, key, data)
+ },
+ addCatalogToTree(state, action) {
+ const catalogIndex = state.metalakeTree.findIndex(c => c.key === action.payload.key)
+ if (catalogIndex === -1) {
+ state.metalakeTree.push(action.payload)
+ } else {
+ state.metalakeTree.splice(catalogIndex, 1, action.payload)
+ }
+ },
+ removeCatalogFromTree(state, action) {
+ state.metalakeTree = state.metalakeTree.filter(i => i.key !== action.payload)
+ },
+ setCatalogInUse(state, action) {
+ const { name, catalogType, metalake, isInUse } = action.payload
+ for (let i = 0; i < state.catalogs.length; i++) {
+ if (state.catalogs[i].name === name) {
+ state.catalogs[i].inUse = isInUse + ''
+ state.tableData[i].inUse = isInUse + ''
+ const catalogItem = state.metalakeTree[i]
+ catalogItem.inUse = isInUse + ''
+ state.metalakeTree.splice(i, 1, catalogItem)
+ break
+ }
+ }
+ if (!isInUse) {
+ state.expandedNodes = state.expandedNodes.filter(key => !key.includes(name))
+ state.loadedNodes = state.loadedNodes.filter(key => !key.includes(name))
+ state.metalakeTree = updateTreeData(state.metalakeTree, `{{${metalake}}}{{${name}}}{{${catalogType}}}`, [])
+ } else {
+ state.metalakeTree = updateTreeData(state.metalakeTree, `{{${metalake}}}{{${name}}}{{${catalogType}}}`, null)
+ }
+ },
+ setMetalakeInUse(state, action) {
+ for (let i = 0; i < state.metalakes.length; i++) {
+ if (state.metalakes[i].name === action.payload.name) {
+ state.metalakes[i].properties['in-use'] = action.payload.isInUse + ''
+ break
+ }
+ }
+ },
+ setTableProps(state, action) {
+ state.tableProps = action.payload
+ },
+ resetMetalakeStore(state, action) {
+ if (!action.payload?.isCacheMetalakes) {
+ state.metalakes = []
+ }
+ state.filteredMetalakes = []
+ state.tableData = []
+ state.tableProps = []
+ state.catalogs = []
+ state.schemas = []
+ state.tables = []
+ state.columns = []
+ state.filesets = []
+ state.topics = []
+ state.models = []
+ state.versions = []
+ state.metalakeTree = []
+ state.loadedNodes = []
+ state.selectedNodes = []
+ state.expandedNodes = []
+ state.activatedDetails = null
+ state.activatedDetailsLoading = false
+ state.tableLoading = false
+ state.treeLoading = false
+ state.currentMetalakeOwner = null
+ state.currentEntityTags = []
+ state.currentEntityPolicies = []
+ }
+ },
+ extraReducers: builder => {
+ builder.addCase(fetchMetalakes.fulfilled, (state, action) => {
+ state.metalakes = action.payload.metalakes
+ })
+ builder.addCase(fetchMetalakes.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(setIntoTreeNodeWithFetch.fulfilled, (state, action) => {
+ const { key, data } = action.payload
+
+ state.metalakeTree = updateTreeData(state.metalakeTree, key, data)
+ })
+ builder.addCase(setIntoTreeNodeWithFetch.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getMetalakeDetails.fulfilled, (state, action) => {
+ state.activatedDetails = action.payload
+ })
+ builder.addCase(getMetalakeDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getCurrentEntityOwner.fulfilled, (state, action) => {
+ if (action.payload.metadataObjectType === 'metalake') {
+ state.currentMetalakeOwner = action.payload.owner
+ }
+ })
+ builder.addCase(getCurrentEntityOwner.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ state.currentMetalakeOwner = null
+ })
+ builder.addCase(setEntityOwner.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getCurrentEntityTags.fulfilled, (state, action) => {
+ if (action.payload.init) {
+ state.currentEntityTags = action.payload.tags
+ }
+ })
+ builder.addCase(getCurrentEntityTags.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getCurrentEntityPolicies.fulfilled, (state, action) => {
+ if (action.payload.init) {
+ state.currentEntityPolicies = action.payload.policies
+ }
+ })
+ builder.addCase(getCurrentEntityPolicies.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getMetadataObjectsForTag.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getMetadataObjectsForPolicy.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(createCatalog.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(testCatalogConnection.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(updateCatalog.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(fetchCatalogs.fulfilled, (state, action) => {
+ state.catalogs = action.payload.catalogs
+
+ if (action.payload.init) {
+ state.tableData = action.payload.catalogs
+ }
+
+ if (state.metalakeTree.length === 0) {
+ state.metalakeTree = action.payload.catalogs
+ }
+ })
+ builder.addCase(fetchCatalogs.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getCatalogDetails.fulfilled, (state, action) => {
+ if (action.payload.init) {
+ state.activatedDetails = action.payload.catalog
+ }
+ })
+ builder.addCase(getCatalogDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(deleteCatalog.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(fetchSchemas.fulfilled, (state, action) => {
+ state.schemas = action.payload.schemas
+ if (action.payload.init) {
+ state.tableData = action.payload.schemas
+ }
+ })
+ builder.addCase(fetchSchemas.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getSchemaDetails.fulfilled, (state, action) => {
+ if (action.payload.init) {
+ state.activatedDetails = action.payload.schema
+ }
+ })
+ builder.addCase(getSchemaDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(createSchema.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(updateSchema.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(deleteSchema.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(fetchTables.fulfilled, (state, action) => {
+ state.tables = action.payload.tables
+ if (action.payload.init) {
+ state.tableData = action.payload.tables
+ }
+ })
+ builder.addCase(fetchTables.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getTableDetails.fulfilled, (state, action) => {
+ if (action.payload.init) {
+ state.activatedDetails = action.payload.table
+ state.tableData = action.payload.columns || []
+ }
+ })
+ builder.addCase(getTableDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(createTable.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(updateTable.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(deleteTable.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(fetchFilesets.fulfilled, (state, action) => {
+ state.filesets = action.payload.filesets
+ if (action.payload.init) {
+ state.tableData = action.payload.filesets
+ }
+ })
+ builder.addCase(fetchFilesets.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getFilesetDetails.fulfilled, (state, action) => {
+ if (action.payload.init) {
+ state.activatedDetails = action.payload.fileset
+ }
+
+ // state.tableData = []
+ })
+ builder.addCase(getFilesetDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(createFileset.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(updateFileset.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(deleteFileset.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getFilesetFiles.fulfilled, (state, action) => {
+ state.tableData = action.payload.files
+ })
+ builder.addCase(getFilesetFiles.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(fetchTopics.fulfilled, (state, action) => {
+ state.topics = action.payload.topics
+ if (action.payload.init) {
+ state.tableData = action.payload.topics
+ }
+ })
+ builder.addCase(fetchTopics.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getTopicDetails.fulfilled, (state, action) => {
+ if (action.payload.init) {
+ state.activatedDetails = action.payload.topic
+ }
+ })
+ builder.addCase(getTopicDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(createTopic.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(updateTopic.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(deleteTopic.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(fetchModels.fulfilled, (state, action) => {
+ state.models = action.payload.models
+ if (action.payload.init) {
+ state.tableData = action.payload.models
+ }
+ })
+ builder.addCase(fetchModels.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getModelDetails.fulfilled, (state, action) => {
+ if (action.payload.init) {
+ state.activatedDetails = action.payload.model
+ }
+ })
+ builder.addCase(getModelDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(registerModel.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(updateModel.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(deleteModel.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(fetchModelVersions.fulfilled, (state, action) => {
+ state.versions = action.payload.versions
+ if (action.payload.init) {
+ state.tableData = action.payload.versions
+ }
+ })
+ builder.addCase(fetchModelVersions.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getVersionDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(linkVersion.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(updateVersion.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(deleteVersion.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ }
+})
+
+export const {
+ setFilteredMetalakes,
+ setMetalakeTree,
+ setSelectedNodes,
+ removeExpandedNode,
+ resetMetalakeStore,
+ resetExpandNode,
+ resetTableData,
+ resetTree,
+ setTableLoading,
+ setTreeLoading,
+ setActivatedDetailsLoading,
+ setIntoTreeNodes,
+ setLoadedNodes,
+ setExpanded,
+ setExpandedNodes,
+ addCatalogToTree,
+ setCatalogInUse,
+ setMetalakeInUse,
+ removeCatalogFromTree,
+ setTableProps,
+ resetActivatedDetails
+} = appMetalakesSlice.actions
+
+export default appMetalakesSlice.reducer
diff --git a/web-v2/web/src/lib/store/policies/index.js b/web-v2/web/src/lib/store/policies/index.js
new file mode 100644
index 0000000000..850def46d3
--- /dev/null
+++ b/web-v2/web/src/lib/store/policies/index.js
@@ -0,0 +1,185 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+
+import { to } from '@/lib/utils'
+import toast from 'react-hot-toast'
+
+import {
+ getPoliciesApi,
+ createPolicyApi,
+ deletePolicyApi,
+ updatePolicyApi,
+ enableOrDisablePolicyApi,
+ getPolicyDetailsApi,
+ associatePolicyApi
+} from '@/lib/api/policies'
+
+export const fetchPolicies = createAsyncThunk('policies/fetchPolicies', async ({ metalake, details }) => {
+ const [err, res] = await to(getPoliciesApi({ metalake, details }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res
+})
+
+export const createPolicy = createAsyncThunk('policies/createPolicy', async ({ metalake, data }, { dispatch }) => {
+ const [err, res] = await to(createPolicyApi({ metalake, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchPolicies({ metalake, details: true }))
+
+ return res
+})
+
+export const getPolicyDetails = createAsyncThunk('policies/getPolicyDetails', async ({ metalake, policy }) => {
+ const [err, res] = await to(getPolicyDetailsApi({ metalake, policy }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.policy
+})
+
+export const updatePolicy = createAsyncThunk(
+ 'policies/updatePolicy',
+ async ({ metalake, policy, data }, { dispatch }) => {
+ const [err, res] = await to(updatePolicyApi({ metalake, policy, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchPolicies({ metalake, details: true }))
+
+ return res
+ }
+)
+
+export const enableOrDisablePolicy = createAsyncThunk(
+ 'policies/enableOrDisablePolicy',
+ async ({ metalake, policy, data }, { dispatch }) => {
+ const [err, res] = await to(enableOrDisablePolicyApi({ metalake, policy, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchPolicies({ metalake, details: true }))
+
+ return res
+ }
+)
+
+export const deletePolicy = createAsyncThunk('policies/deletePolicy', async ({ metalake, policy }, { dispatch }) => {
+ const [err, res] = await to(deletePolicyApi({ metalake, policy }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchPolicies({ metalake, details: true }))
+
+ return res
+})
+
+export const associatePolicy = createAsyncThunk(
+ 'policies/associatePolicy',
+ async ({ metalake, metadataObjectType, metadataObjectFullName, data }) => {
+ const [err, res] = await to(associatePolicyApi({ metalake, metadataObjectType, metadataObjectFullName, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res
+ }
+)
+
+const policiesSlice = createSlice({
+ name: 'policies',
+ initialState: {
+ policiesData: [],
+ policiesLoading: false,
+ error: null
+ },
+ reducers: {
+ setPoliciesLoading(state, action) {
+ state.policiesLoading = action.payload
+ }
+ },
+ extraReducers: builder => {
+ builder
+ .addCase(fetchPolicies.pending, state => {
+ state.policiesLoading = true
+ state.error = null
+ })
+ .addCase(fetchPolicies.fulfilled, (state, action) => {
+ state.policiesLoading = false
+ state.policiesData = action.payload.policies || []
+ })
+ .addCase(fetchPolicies.rejected, (state, action) => {
+ state.policiesLoading = false
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(createPolicy.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(updatePolicy.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(enableOrDisablePolicy.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(getPolicyDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(deletePolicy.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(associatePolicy.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ }
+})
+
+export const { setPoliciesLoading } = policiesSlice.actions
+
+export default policiesSlice.reducer
diff --git a/web-v2/web/src/lib/store/roles/index.js b/web-v2/web/src/lib/store/roles/index.js
new file mode 100644
index 0000000000..1f54e75230
--- /dev/null
+++ b/web-v2/web/src/lib/store/roles/index.js
@@ -0,0 +1,174 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+
+import { to } from '@/lib/utils'
+import toast from 'react-hot-toast'
+
+import {
+ getRolesApi,
+ createRoleApi,
+ getRoleDetailsApi,
+ updateRolePrivilegesApi,
+ deleteRoleApi,
+ listRolesForObjectApi
+} from '@/lib/api/roles'
+
+export const fetchRoles = createAsyncThunk('roles/fetchRoles', async ({ metalake }, { dispatch }) => {
+ await dispatch(setRolesLoading(true))
+ const [err, res] = await to(getRolesApi({ metalake }))
+ await dispatch(setRolesLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.names
+})
+
+export const createRole = createAsyncThunk('roles/createRole', async ({ metalake, data }, { dispatch }) => {
+ const [err, res] = await to(createRoleApi({ metalake, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchRoles({ metalake }))
+
+ return res
+})
+
+export const getRoleDetails = createAsyncThunk('roles/getRoleDetails', async ({ metalake, role }) => {
+ const [err, res] = await to(getRoleDetailsApi({ metalake, role }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.role
+})
+
+export const updateRolePrivileges = createAsyncThunk(
+ 'roles/updateRolePrivileges',
+ async ({ metalake, role, data }, { dispatch }) => {
+ const [err, res] = await to(updateRolePrivilegesApi({ metalake, role, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchRoles({ metalake }))
+
+ return res
+ }
+)
+
+export const deleteRole = createAsyncThunk('roles/deleteRole', async ({ metalake, role }, { dispatch }) => {
+ const [err, res] = await to(deleteRoleApi({ metalake, role }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchRoles({ metalake }))
+
+ return res
+})
+
+export const listRolesForObject = createAsyncThunk(
+ 'roles/listRolesForObject',
+ async ({ metalake, metadataObjectType, metadataObjectFullName }, { dispatch }) => {
+ await dispatch(setRolesForObjectLoading(true))
+ const [err, res] = await to(listRolesForObjectApi({ metalake, metadataObjectType, metadataObjectFullName }))
+ await dispatch(setRolesForObjectLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.names
+ }
+)
+
+const rolesSlice = createSlice({
+ name: 'roles',
+ initialState: {
+ rolesData: [],
+ rolesLoading: false,
+ rolesForObject: [],
+ rolesForObjectLoading: false
+ },
+ reducers: {
+ setRolesLoading(state, action) {
+ state.rolesLoading = action.payload
+ },
+ setRolesForObjectLoading(state, action) {
+ state.rolesForObjectLoading = action.payload
+ },
+ resetRolesStore(state) {
+ state.rolesData = []
+ state.rolesLoading = false
+ state.rolesForObject = []
+ state.rolesForObjectLoading = false
+ }
+ },
+ extraReducers: builder => {
+ builder.addCase(fetchRoles.fulfilled, (state, action) => {
+ state.rolesData = action.payload
+ })
+ builder.addCase(fetchRoles.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(getRoleDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(createRole.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(updateRolePrivileges.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(deleteRole.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ builder.addCase(listRolesForObject.fulfilled, (state, action) => {
+ state.rolesForObject = action.payload || []
+ })
+ builder.addCase(listRolesForObject.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ }
+})
+
+export const { setRolesLoading, setRolesForObjectLoading, resetRolesStore } = rolesSlice.actions
+
+export default rolesSlice.reducer
diff --git a/web-v2/web/src/lib/store/sys/index.js b/web-v2/web/src/lib/store/sys/index.js
new file mode 100644
index 0000000000..6da809a7ac
--- /dev/null
+++ b/web-v2/web/src/lib/store/sys/index.js
@@ -0,0 +1,126 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+
+import { loggerVersion, to, formatNumber, loggerGitHubInfo } from '@/lib/utils'
+
+import { getVersionApi } from '@/lib/api/version'
+
+import { getGitHubApi } from '@/lib/api/github'
+
+export const initialVersion = createAsyncThunk('sys/fetchVersion', async (params, { getState }) => {
+ let version = null
+ const [err, res] = await to(getVersionApi())
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ version = res.version
+ typeof window !== 'undefined' && window.localStorage.setItem('version', JSON.stringify(version))
+
+ loggerVersion(version.version)
+
+ return version
+})
+
+export const fetchGitHubInfo = createAsyncThunk(
+ 'sys/fetchGitHubInfo',
+ async (params, { getState, rejectWithValue }) => {
+ // Check sessionStorage cache first
+ if (typeof window !== 'undefined') {
+ const cached = window.sessionStorage.getItem('githubInfo')
+ if (cached) {
+ try {
+ const parsed = JSON.parse(cached)
+ if (parsed.stars && parsed.forks) {
+ return parsed
+ }
+ } catch (e) {
+ // ignore parse error
+ }
+ }
+ }
+
+ let stars = 0
+ let forks = 0
+ const [err, res] = await to(getGitHubApi())
+ if (err || !res) {
+ console.error('Error fetching repository status : ', err)
+
+ return rejectWithValue({ error: true })
+ }
+
+ stars = formatNumber(res.stargazers_count)
+ forks = formatNumber(res.forks_count)
+ loggerGitHubInfo(stars, forks)
+
+ const result = {
+ stars: stars,
+ forks: forks
+ }
+
+ // Cache to sessionStorage
+ if (typeof window !== 'undefined') {
+ window.sessionStorage.setItem('githubInfo', JSON.stringify(result))
+ }
+
+ return result
+ }
+)
+
+export const sysSlice = createSlice({
+ name: 'sys',
+ initialState: {
+ version: '',
+ stars: 0,
+ forks: 0,
+ githubError: false
+ },
+ reducers: {
+ setVersion(state, action) {
+ state.version = action.payload
+ },
+ setStars(state, action) {
+ state.stars = action.payload
+ },
+ setForks(state, action) {
+ state.forks = action.payload
+ }
+ },
+ extraReducers: builder => {
+ builder
+ .addCase(initialVersion.fulfilled, (state, action) => {
+ state.version = action.payload.version
+ })
+ .addCase(fetchGitHubInfo.fulfilled, (state, action) => {
+ state.stars = action.payload.stars
+ state.forks = action.payload.forks
+ state.githubError = false
+ })
+ .addCase(fetchGitHubInfo.rejected, (state, action) => {
+ state.githubError = true
+ })
+ }
+})
+
+export const { setVersion, setStars, setForks } = sysSlice.actions
+
+export default sysSlice.reducer
diff --git a/web-v2/web/src/lib/store/tags/index.js b/web-v2/web/src/lib/store/tags/index.js
new file mode 100644
index 0000000000..f9b5557057
--- /dev/null
+++ b/web-v2/web/src/lib/store/tags/index.js
@@ -0,0 +1,162 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+
+import { to } from '@/lib/utils'
+import toast from 'react-hot-toast'
+
+import {
+ getTagsApi,
+ createTagApi,
+ deleteTagApi,
+ updateTagApi,
+ getTagDetailsApi,
+ associateTagApi,
+ fetchTagsForEntityApi
+} from '@/lib/api/tags'
+
+export const fetchTags = createAsyncThunk('tags/fetchTags', async ({ metalake, details }) => {
+ const [err, res] = await to(getTagsApi({ metalake, details }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res
+})
+
+export const createTag = createAsyncThunk('tags/createTag', async ({ metalake, data }, { dispatch }) => {
+ const [err, res] = await to(createTagApi({ metalake, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchTags({ metalake, details: true }))
+
+ return res
+})
+
+export const getTagDetails = createAsyncThunk('tags/getTagDetails', async ({ metalake, tag }) => {
+ const [err, res] = await to(getTagDetailsApi({ metalake, tag }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res.tag
+})
+
+export const updateTag = createAsyncThunk('tags/updateTag', async ({ metalake, tag, data }, { dispatch }) => {
+ const [err, res] = await to(updateTagApi({ metalake, tag, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchTags({ metalake, details: true }))
+
+ return res
+})
+
+export const deleteTag = createAsyncThunk('tags/deleteTag', async ({ metalake, tag }, { dispatch }) => {
+ const [err, res] = await to(deleteTagApi({ metalake, tag }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchTags({ metalake, details: true }))
+
+ return res
+})
+
+export const associateTag = createAsyncThunk(
+ 'tags/associateTag',
+ async ({ metalake, metadataObjectType, metadataObjectFullName, data }) => {
+ const [err, res] = await to(associateTagApi({ metalake, metadataObjectType, metadataObjectFullName, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return res
+ }
+)
+
+const tagsSlice = createSlice({
+ name: 'tags',
+ initialState: {
+ tagsData: [],
+ tagsLoading: false,
+ error: null
+ },
+ reducers: {
+ setTagsLoading(state, action) {
+ state.tagsLoading = action.payload
+ }
+ },
+ extraReducers: builder => {
+ builder
+ .addCase(fetchTags.pending, state => {
+ state.tagsLoading = true
+ state.error = null
+ })
+ .addCase(fetchTags.fulfilled, (state, action) => {
+ state.tagsLoading = false
+ state.tagsData = action.payload.tags || []
+ })
+ .addCase(fetchTags.rejected, (state, action) => {
+ state.tagsLoading = false
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(createTag.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(updateTag.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(getTagDetails.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(deleteTag.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(associateTag.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ }
+})
+
+export const { setTagsLoading } = tagsSlice.actions
+
+export default tagsSlice.reducer
diff --git a/web-v2/web/src/lib/store/userGroups/index.js b/web-v2/web/src/lib/store/userGroups/index.js
new file mode 100644
index 0000000000..98d26963de
--- /dev/null
+++ b/web-v2/web/src/lib/store/userGroups/index.js
@@ -0,0 +1,160 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+
+import { to } from '@/lib/utils'
+import toast from 'react-hot-toast'
+
+import {
+ getUserGroupsApi,
+ createUserGroupApi,
+ deleteUserGroupApi,
+ grantRolesForUserGroupApi,
+ revokeRolesForUserGroupApi
+} from '@/lib/api/userGroups'
+
+export const fetchUserGroups = createAsyncThunk(
+ 'userGroups/fetchUserGroups',
+ async ({ metalake, details }, { dispatch }) => {
+ await dispatch(setUserGroupsLoading(true))
+ const [err, res] = await to(getUserGroupsApi({ metalake, details }))
+ await dispatch(setUserGroupsLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return { userGroupsRes: res, details }
+ }
+)
+
+export const createUserGroup = createAsyncThunk(
+ 'userGroups/createUserGroup',
+ async ({ metalake, data }, { dispatch }) => {
+ const [err, res] = await to(createUserGroupApi({ metalake, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchUserGroups({ metalake, details: true }))
+
+ return res
+ }
+)
+
+export const deleteUserGroup = createAsyncThunk(
+ 'userGroups/deleteUserGroup',
+ async ({ metalake, group }, { dispatch }) => {
+ const [err, res] = await to(deleteUserGroupApi({ metalake, group }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchUserGroups({ metalake, details: true }))
+
+ return res
+ }
+)
+
+export const grantRolesForUserGroup = createAsyncThunk(
+ 'userGroups/grantRolesForUserGroup',
+ async ({ metalake, group, data }, { dispatch }) => {
+ const [err, res] = await to(grantRolesForUserGroupApi({ metalake, group, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchUserGroups({ metalake, details: true }))
+
+ return res
+ }
+)
+
+export const revokeRolesForUserGroup = createAsyncThunk(
+ 'userGroups/revokeRolesForUserGroup',
+ async ({ metalake, group, data }, { dispatch }) => {
+ const [err, res] = await to(revokeRolesForUserGroupApi({ metalake, group, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchUserGroups({ metalake, details: true }))
+
+ return res
+ }
+)
+
+const userGroupsSlice = createSlice({
+ name: 'userGroups',
+ initialState: {
+ userGroupsData: [],
+ userGroupNames: [],
+ userGroupsLoading: false,
+ error: null
+ },
+ reducers: {
+ setUserGroupsLoading(state, action) {
+ state.userGroupsLoading = action.payload
+ }
+ },
+ extraReducers: builder => {
+ builder
+ .addCase(fetchUserGroups.fulfilled, (state, action) => {
+ if (action.payload.details) {
+ state.userGroupsData = action.payload.userGroupsRes.groups
+ } else {
+ state.userGroupNames = action.payload.userGroupsRes.names
+ }
+ })
+ .addCase(fetchUserGroups.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(createUserGroup.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(deleteUserGroup.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(grantRolesForUserGroup.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(revokeRolesForUserGroup.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ }
+})
+
+export const { setUserGroupsLoading } = userGroupsSlice.actions
+
+export default userGroupsSlice.reducer
diff --git a/web-v2/web/src/lib/store/users/index.js b/web-v2/web/src/lib/store/users/index.js
new file mode 100644
index 0000000000..13a072e1c0
--- /dev/null
+++ b/web-v2/web/src/lib/store/users/index.js
@@ -0,0 +1,145 @@
+/*
+ * 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 { createSlice, createAsyncThunk } from '@reduxjs/toolkit'
+
+import { to } from '@/lib/utils'
+import toast from 'react-hot-toast'
+
+import { getUsersApi, createUserApi, deleteUserApi, grantRolesForUserApi, revokeRolesForUserApi } from '@/lib/api/users'
+
+export const fetchUsers = createAsyncThunk('users/fetchUsers', async ({ metalake, details }, { dispatch }) => {
+ await dispatch(setUsersLoading(true))
+ const [err, res] = await to(getUsersApi({ metalake, details }))
+ await dispatch(setUsersLoading(false))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ return { userRes: res, details }
+})
+
+export const createUser = createAsyncThunk('users/createUser', async ({ metalake, data }, { dispatch }) => {
+ const [err, res] = await to(createUserApi({ metalake, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchUsers({ metalake, details: true }))
+
+ return res
+})
+
+export const deleteUser = createAsyncThunk('users/deleteUser', async ({ metalake, user }, { dispatch }) => {
+ const [err, res] = await to(deleteUserApi({ metalake, user }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchUsers({ metalake, details: true }))
+
+ return res
+})
+
+export const grantRolesForUser = createAsyncThunk(
+ 'users/grantRolesForUser',
+ async ({ metalake, user, data }, { dispatch }) => {
+ const [err, res] = await to(grantRolesForUserApi({ metalake, user, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchUsers({ metalake, details: true }))
+
+ return res
+ }
+)
+
+export const revokeRolesForUser = createAsyncThunk(
+ 'users/revokeRolesForUser',
+ async ({ metalake, user, data }, { dispatch }) => {
+ const [err, res] = await to(revokeRolesForUserApi({ metalake, user, data }))
+
+ if (err || !res) {
+ throw new Error(err)
+ }
+
+ dispatch(fetchUsers({ metalake, details: true }))
+
+ return res
+ }
+)
+
+const usersSlice = createSlice({
+ name: 'users',
+ initialState: {
+ usersData: [],
+ userNames: [],
+ usersLoading: false,
+ error: null
+ },
+ reducers: {
+ setUsersLoading(state, action) {
+ state.usersLoading = action.payload
+ }
+ },
+ extraReducers: builder => {
+ builder
+ .addCase(fetchUsers.fulfilled, (state, action) => {
+ if (action.payload.details) {
+ state.usersData = action.payload.userRes.users
+ } else {
+ state.userNames = action.payload.userRes.names
+ }
+ })
+ .addCase(fetchUsers.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(createUser.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(deleteUser.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(grantRolesForUser.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ .addCase(revokeRolesForUser.rejected, (state, action) => {
+ if (!action.error.message.includes('CanceledError')) {
+ toast.error(action.error.message)
+ }
+ })
+ }
+})
+
+export const { setUsersLoading } = usersSlice.actions
+
+export default usersSlice.reducer
diff --git a/web-v2/web/src/lib/styles/antdStyles/globals.css b/web-v2/web/src/lib/styles/antdStyles/globals.css
new file mode 100644
index 0000000000..31d4f3a4b5
--- /dev/null
+++ b/web-v2/web/src/lib/styles/antdStyles/globals.css
@@ -0,0 +1,160 @@
+/*
+ * 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 './index.css';
+@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
+
+@layer tailwind-base, antd;
+@layer tailwind-base {
+ @tailwind base;
+}
+@tailwind components;
+@tailwind utilities;
+
+.btn {
+ @apply inline-flex h-9 cursor-pointer items-center justify-center rounded-md bg-transparent px-2 text-sm font-medium transition-colors hover:bg-zinc-100 focus:outline-none focus:bg-zinc-100 active:scale-95 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-transparent;
+}
+
+.my-icon {
+ width: 1rem;
+ height: 1rem;
+}
+
+.my-icon-medium {
+ width: 1.5rem;
+ height: 1.5rem;
+}
+
+.my-icon-small {
+ width: 0.875rem;
+ height: 0.875rem;
+}
+
+.my-icon-large {
+ width: 2rem;
+ height: 2rem;
+}
+
+.ant-tabs-content-holder {
+ width: 0;
+}
+
+.ant-steps-item-active {
+ .step-icon {
+ @apply bg-[color:theme(colors.primary)] text-white;
+ &:hover {
+ @apply text-white;
+ }
+ }
+ .step-icon-default-theme {
+ @apply bg-gray-100 text-defaultPrimary;
+ &:hover {
+ @apply text-defaultPrimary;
+ }
+ }
+}
+
+.tag-metadata {
+ @apply bg-[color:theme(colors.primary)] text-white;
+}
+
+.tag-metadata-default {
+ @apply bg-[color:theme(colors.defaultPrimary)] text-white;
+}
+
+.tag-swatch {
+ display: inline-block;
+ width: 1em;
+ height: 1em;
+ vertical-align: middle;
+ border: 1px solid #d1d9e0b3;
+ border-radius: 100%;
+}
+
+.tag-small {
+ font-size: 12px;
+ line-height: 16px;
+ padding: 0 4px;
+ border-radius: 4px;
+}
+
+.provider-card {
+ @apply cursor-pointer rounded-lg p-2;
+ .ant-typography-secondary {
+ @apply mb-0 !important;
+ }
+ &:hover {
+ .provider-radio,
+ .provider-text > div {
+ @apply text-[color:theme(colors.primary)];
+ }
+ .default-theme-radio,
+ .default-theme-text > div {
+ @apply text-[color:theme(colors.defaultPrimary)];
+ }
+ }
+ &.disabled {
+ &:hover {
+ @apply cursor-not-allowed;
+ .provider-radio,
+ .default-theme-radio,
+ .provider-text > div,
+ .default-theme-text > div {
+ @apply text-inherit;
+ }
+ }
+ }
+ &.actived {
+ @apply bg-[color:theme(colors.primary)];
+ .provider-radio {
+ @apply text-white !important;
+ }
+ .provider-text > div {
+ @apply text-white !important;
+ }
+ }
+ &.actived-default {
+ @apply bg-[color:theme(colors.defaultPrimary)];
+ .default-theme-radio {
+ @apply !text-white;
+ }
+ .default-theme-text > div {
+ @apply !text-white;
+ }
+ }
+}
+
+.provider-card.actived-default:hover {
+ .default-theme-radio,
+ .default-theme-text > div,
+ .ant-typography,
+ .ant-typography-secondary {
+ @apply !text-white;
+ }
+}
+
+.ant-cascader-menu {
+ max-width: 300px;
+}
+
+.ant-cascader-menu-item-content {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
diff --git a/web-v2/web/src/lib/styles/antdStyles/index.css b/web-v2/web/src/lib/styles/antdStyles/index.css
new file mode 100644
index 0000000000..7f3f2d6512
--- /dev/null
+++ b/web-v2/web/src/lib/styles/antdStyles/index.css
@@ -0,0 +1,378 @@
+/*
+ * 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.
+ */
+
+/*
+1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
+2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
+*/
+
+*,
+::before,
+::after {
+ box-sizing: border-box; /* 1 */
+ border-width: 0; /* 2 */
+ border-style: solid; /* 2 */
+ border-color: rgba(5, 5, 5, 0.06); /* 2 */
+}
+
+::before,
+::after {
+ --tw-content: '';
+}
+
+/*
+1. Use a consistent sensible line-height in all browsers.
+2. Prevent adjustments of font size after orientation changes in iOS.
+3. Use a more readable tab size.
+4. Use the user's configured `sans` font-family by default.
+5. Use the user's configured `sans` font-feature-settings by default.
+*/
+
+html {
+ line-height: 1.5; /* 1 */
+ -webkit-text-size-adjust: 100%; /* 2 */
+ -moz-tab-size: 4; /* 3 */
+ tab-size: 4; /* 3 */
+}
+
+/*
+1. Remove the margin in all browsers.
+2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
+*/
+
+body {
+ margin: 0; /* 1 */
+ line-height: inherit; /* 2 */
+}
+
+/*
+1. Add the correct height in Firefox.
+2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
+3. Ensure horizontal rules are visible by default.
+*/
+
+hr {
+ height: 0; /* 1 */
+ color: inherit; /* 2 */
+ border-top-width: 1px; /* 3 */
+}
+
+/*
+Add the correct text decoration in Chrome, Edge, and Safari.
+*/
+
+abbr:where([title]) {
+ text-decoration: underline dotted;
+}
+
+/*
+Remove the default font size and weight for headings.
+*/
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-size: inherit;
+ font-weight: inherit;
+}
+
+/*
+Reset links to optimize for opt-in styling instead of opt-out.
+*/
+
+a {
+ color: inherit;
+ text-decoration: inherit;
+}
+
+/*
+Add the correct font weight in Edge and Safari.
+*/
+
+b,
+strong {
+ font-weight: bolder;
+}
+
+/*
+1. Use the user's configured `mono` font family by default.
+2. Correct the odd `em` font sizing in all browsers.
+*/
+
+code,
+kbd,
+samp,
+pre {
+ font-family: theme(
+ 'fontFamily.mono',
+ ui-monospace,
+ SFMono-Regular,
+ Menlo,
+ Monaco,
+ Consolas,
+ 'Liberation Mono',
+ 'Courier New',
+ monospace
+ ); /* 1 */
+ font-size: 1rem; /* 2 */
+}
+
+/*
+Add the correct font size in all browsers.
+*/
+
+small {
+ font-size: 80%;
+}
+
+/*
+Prevent `sub` and `sup` elements from affecting the line height in all browsers.
+*/
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+sup {
+ top: -0.5em;
+}
+
+/*
+1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
+2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
+3. Remove gaps between table borders by default.
+*/
+
+table {
+ text-indent: 0; /* 1 */
+ border-color: inherit; /* 2 */
+ border-collapse: collapse; /* 3 */
+}
+
+/*
+1. Change the font styles in all browsers.
+2. Remove the margin in Firefox and Safari.
+3. Remove default padding in all browsers.
+*/
+
+button,
+input,
+optgroup,
+select,
+textarea {
+ font-family: inherit; /* 1 */
+ font-size: 100%; /* 1 */
+ font-weight: inherit; /* 1 */
+ line-height: inherit; /* 1 */
+ color: inherit; /* 1 */
+ margin: 0; /* 2 */
+ padding: 0; /* 3 */
+}
+
+/*
+Remove the inheritance of text transform in Edge and Firefox.
+*/
+
+button,
+select {
+ text-transform: none;
+}
+
+/*
+Use the modern Firefox focus style for all focusable elements.
+*/
+
+:-moz-focusring {
+ outline: auto;
+}
+
+/*
+Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
+*/
+
+:-moz-ui-invalid {
+ box-shadow: none;
+}
+
+/*
+Add the correct vertical alignment in Chrome and Firefox.
+*/
+
+progress {
+ vertical-align: baseline;
+}
+
+/*
+Correct the cursor style of increment and decrement buttons in Safari.
+*/
+
+::-webkit-inner-spin-button,
+::-webkit-outer-spin-button {
+ height: auto;
+}
+
+/*
+1. Correct the odd appearance in Chrome and Safari.
+2. Correct the outline style in Safari.
+*/
+
+[type='search'] {
+ outline-offset: -2px; /* 2 */
+}
+
+/*
+Remove the inner padding in Chrome and Safari on macOS.
+*/
+
+::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+/*
+1. Correct the inability to style clickable types in iOS and Safari.
+2. Change font properties to `inherit` in Safari.
+*/
+
+::-webkit-file-upload-button {
+ -webkit-appearance: button; /* 1 */
+ font: inherit; /* 2 */
+}
+
+/*
+Add the correct display in Chrome and Safari.
+*/
+
+summary {
+ display: list-item;
+}
+
+/*
+Removes the default spacing and border for appropriate elements.
+*/
+
+blockquote,
+dl,
+dd,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+hr,
+figure,
+p,
+pre {
+ margin: 0;
+}
+
+fieldset {
+ margin: 0;
+ padding: 0;
+}
+
+legend {
+ padding: 0;
+}
+
+ol,
+ul,
+menu {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+
+/*
+Prevent resizing textareas horizontally by default.
+*/
+
+textarea {
+ resize: vertical;
+}
+
+/*
+1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
+2. Set the default placeholder color to the user's configured gray 400 color.
+*/
+
+input::placeholder,
+textarea::placeholder {
+ opacity: 1; /* 1 */
+ color: theme('colors.gray.400', #9ca3af); /* 2 */
+}
+
+/*
+Set the default cursor for buttons.
+*/
+
+button,
+[role='button'] {
+ cursor: pointer;
+}
+
+/*
+Make sure disabled buttons don't get the pointer cursor.
+*/
+:disabled {
+ cursor: default;
+}
+
+/*
+1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
+2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
+ This can trigger a poorly considered lint error in some tools but is included by design.
+*/
+
+img,
+svg,
+video,
+canvas,
+audio,
+iframe,
+embed,
+object {
+ display: block; /* 1 */
+}
+
+/*
+Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
+*/
+
+img,
+video {
+ max-width: 100%;
+ height: auto;
+}
+
+/* Make elements with the HTML hidden attribute stay hidden by default */
+[hidden] {
+ display: none;
+}
diff --git a/web-v2/web/src/lib/styles/globals.css b/web-v2/web/src/lib/styles/globals.css
new file mode 100644
index 0000000000..5221816860
--- /dev/null
+++ b/web-v2/web/src/lib/styles/globals.css
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+html,
+body {
+ min-height: 100%;
+}
+
+a {
+ -webkit-user-drag: none;
+}
diff --git a/web-v2/web/src/lib/theme/colors.js b/web-v2/web/src/lib/theme/colors.js
new file mode 100644
index 0000000000..596f945a67
--- /dev/null
+++ b/web-v2/web/src/lib/theme/colors.js
@@ -0,0 +1,77 @@
+/*
+ * 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 { lighten, darken } from '../utils/color'
+import settings from '../settings'
+
+export const primaryColor = settings.primaryColor || '#6478f7'
+
+const whiteColor = '#fff'
+const blackColor = '#000'
+const lightColor = '#32465a'
+const darkColor = '#dbdbeb'
+const lightBgColor = '#f5f5f8'
+const darkBgColor = '#232323'
+
+export const mainColor = settings.mode === 'light' ? lightColor : darkColor
+
+const colors = {
+ customs: {
+ main: mainColor,
+ white: whiteColor,
+ black: blackColor,
+ light: lightColor,
+ dark: darkColor,
+ lightBg: lightBgColor,
+ darkBg: darkBgColor
+ },
+ primary: {
+ main: primaryColor,
+ light: lighten(primaryColor),
+ dark: darken(primaryColor, 0.3)
+ },
+ secondary: {
+ light: '#97A2B1',
+ main: '#8592A3',
+ dark: '#798594'
+ },
+ success: {
+ light: '#86E255',
+ main: '#71DD37',
+ dark: '#67C932'
+ },
+ error: {
+ light: '#FF5B3F',
+ main: '#FF3E1D',
+ dark: '#E8381A'
+ },
+ warning: {
+ light: '#FFB826',
+ main: '#FFAB00',
+ dark: '#E89C00'
+ },
+ info: {
+ light: '#29CCEF',
+ main: '#03C3EC',
+ dark: '#03B1D7'
+ },
+ grey: {}
+}
+
+export default colors
diff --git a/web-v2/web/src/lib/theme/mui.js b/web-v2/web/src/lib/theme/mui.js
new file mode 100644
index 0000000000..70833e2566
--- /dev/null
+++ b/web-v2/web/src/lib/theme/mui.js
@@ -0,0 +1,798 @@
+/*
+ * 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 { createTheme, responsiveFontSizes } from '@mui/material'
+
+import { alpha } from '../utils/color'
+import settings from '../settings'
+import colors from './colors'
+import screens from './screens'
+
+const { customs, primary, secondary, success, error, warning, info, grey } = colors
+
+const createMuiTheme = (config = {}) => {
+ const mode = config.mode ?? settings.mode ?? 'light'
+
+ return responsiveFontSizes(
+ createTheme({
+ palette: {
+ mode,
+ common: {
+ black: customs.black,
+ white: customs.white
+ },
+ primary: {
+ ...primary,
+ contrastText: customs.white
+ },
+ secondary: {
+ ...secondary,
+ contrastText: customs.white
+ },
+ error: {
+ ...error,
+ contrastText: customs.white
+ },
+ warning: {
+ ...warning,
+ contrastText: customs.white
+ },
+ info: {
+ ...info,
+ contrastText: customs.white
+ },
+ success: {
+ ...success,
+ contrastText: customs.white
+ },
+ grey: {
+ ...grey
+ },
+ text: {
+ primary: alpha(customs.main, 0.87),
+ secondary: alpha(customs.main, 0.6),
+ disabled: alpha(customs.main, 0.38)
+ },
+ divider: alpha(customs.main, 0.12),
+ background: {
+ paper: mode === 'light' ? customs.white : customs.darkBg,
+ default: mode === 'light' ? customs.lightBg : customs.darkBg
+ },
+ action: {
+ active: alpha(customs.main, 0.54),
+ hover: alpha(customs.main, 0.04),
+ selected: alpha(customs.main, 0.08),
+ disabled: alpha(customs.main, 0.26),
+ disabledBackground: alpha(customs.main, 0.12),
+ focus: alpha(customs.main, 0.12)
+ }
+ },
+ breakpoints: {
+ values: {
+ ...screens
+ }
+ },
+ spacing: factor => `${0.25 * factor}rem`,
+ shape: {
+ borderRadius: 6
+ },
+ mixins: {
+ toolbar: {
+ minHeight: 64
+ }
+ },
+ shadows: [
+ 'none',
+ `0px 2px 1px -1px ${alpha(customs.main, 0.2)}, 0px 1px 1px 0px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 1px 3px 0px ${alpha(customs.main, 0.12)}`,
+ `0px 3px 1px -2px ${alpha(customs.main, 0.2)}, 0px 2px 2px 0px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 1px 5px 0px ${alpha(customs.main, 0.12)}`,
+ `0px 4px 8px -4px ${alpha(customs.main, 0.42)}`,
+ `0px 6px 18px -8px ${alpha(customs.main, 0.56)}`,
+ `0px 3px 5px -1px ${alpha(customs.main, 0.2)}, 0px 5px 8px 0px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 1px 14px 0px ${alpha(customs.main, 0.12)}`,
+ `0px 2px 10px 0px ${alpha(customs.main, 0.1)}`,
+ `0px 4px 5px -2px ${alpha(customs.main, 0.2)}, 0px 7px 10px 1px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 2px 16px 1px ${alpha(customs.main, 0.12)}`,
+ `0px 5px 5px -3px ${alpha(customs.main, 0.2)}, 0px 8px 10px 1px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 3px 14px 2px ${alpha(customs.main, 0.12)}`,
+ `0px 5px 6px -3px ${alpha(customs.main, 0.2)}, 0px 9px 12px 1px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 3px 16px 2px ${alpha(customs.main, 0.12)}`,
+ `0px 6px 6px -3px ${alpha(customs.main, 0.2)}, 0px 10px 14px 1px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 4px 18px 3px ${alpha(customs.main, 0.12)}`,
+ `0px 6px 7px -4px ${alpha(customs.main, 0.2)}, 0px 11px 15px 1px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 4px 20px 3px ${alpha(customs.main, 0.12)}`,
+ `0px 7px 8px -4px ${alpha(customs.main, 0.2)}, 0px 12px 17px 2px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 5px 22px 4px ${alpha(customs.main, 0.12)}`,
+ `0px 7px 8px -4px ${alpha(customs.main, 0.2)}, 0px 13px 19px 2px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 5px 24px 4px ${alpha(customs.main, 0.12)}`,
+ `0px 7px 9px -4px ${alpha(customs.main, 0.2)}, 0px 14px 21px 2px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 5px 26px 4px ${alpha(customs.main, 0.12)}`,
+ `0px 8px 9px -5px ${alpha(customs.main, 0.2)}, 0px 15px 22px 2px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 6px 28px 5px ${alpha(customs.main, 0.12)}`,
+ `0px 8px 10px -5px ${alpha(customs.main, 0.2)}, 0px 16px 24px 2px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 6px 30px 5px ${alpha(customs.main, 0.12)}`,
+ `0px 8px 11px -5px ${alpha(customs.main, 0.2)}, 0px 17px 26px 2px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 6px 32px 5px ${alpha(customs.main, 0.12)}`,
+ `0px 9px 11px -5px ${alpha(customs.main, 0.2)}, 0px 18px 28px 2px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 7px 34px 6px ${alpha(customs.main, 0.12)}`,
+ `0px 9px 12px -6px ${alpha(customs.main, 0.2)}, 0px 19px 29px 2px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 7px 36px 6px ${alpha(customs.main, 0.12)}`,
+ `0px 10px 13px -6px ${alpha(customs.main, 0.2)}, 0px 20px 31px 3px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 8px 38px 7px ${alpha(customs.main, 0.12)}`,
+ `0px 10px 13px -6px ${alpha(customs.main, 0.2)}, 0px 21px 33px 3px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 8px 40px 7px ${alpha(customs.main, 0.12)}`,
+ `0px 10px 14px -6px ${alpha(customs.main, 0.2)}, 0px 22px 35px 3px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 8px 42px 7px ${alpha(customs.main, 0.12)}`,
+ `0px 11px 14px -7px ${alpha(customs.main, 0.2)}, 0px 23px 36px 3px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 9px 44px 8px ${alpha(customs.main, 0.12)}`,
+ `0px 11px 15px -7px ${alpha(customs.main, 0.2)}, 0px 24px 38px 3px ${alpha(
+ customs.main,
+ 0.14
+ )}, 0px 9px 46px 8px ${alpha(customs.main, 0.12)}`
+ ],
+ typography: {
+ fontFamily: [
+ 'Public Sans',
+ 'sans-serif',
+ '-apple-system',
+ 'BlinkMacSystemFont',
+ '"Segoe UI"',
+ 'Roboto',
+ '"Helvetica Neue"',
+ 'Arial',
+ 'sans-serif',
+ '"Apple Color Emoji"',
+ '"Segoe UI Emoji"',
+ '"Segoe UI Symbol"'
+ ].join(','),
+ h1: {
+ fontWeight: 500
+ },
+ h2: {
+ fontWeight: 500
+ },
+ h3: {
+ fontWeight: 500
+ },
+ h4: {
+ fontWeight: 500
+ },
+ h5: {
+ fontWeight: 500
+ }
+ },
+ components: {
+ MuiButton: {
+ styleOverrides: {
+ root: ({ ownerState, theme }) => ({
+ fontWeight: 500,
+ lineHeight: '24px',
+ letterSpacing: '0.3px',
+ ...(ownerState.size === 'medium' &&
+ ownerState.variant === 'text' && {
+ padding: theme.spacing(1.75, 5)
+ }),
+ '&:not(.MuiButtonGroup-grouped)': {
+ transition: 'all 0.2s ease-in-out',
+ '&:hover': {
+ transform: 'translateY(-1px)'
+ }
+ }
+ }),
+ contained: ({ theme }) => ({
+ boxShadow: theme.shadows[3],
+ padding: theme.spacing(1.75, 5)
+ }),
+ containedPrimary: ({ theme }) => ({
+ '&:not(.Mui-disabled), &.MuiButtonGroup-grouped:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(primary.main, 0.4)}`
+ }
+ }),
+ containedSecondary: ({ theme }) => ({
+ '&:not(.Mui-disabled), &.MuiButtonGroup-grouped:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(primary.main, 0.4)}`
+ }
+ }),
+ containedSuccess: ({ theme }) => ({
+ '&:not(.Mui-disabled), &.MuiButtonGroup-grouped:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(primary.main, 0.4)}`
+ }
+ }),
+ containedError: ({ theme }) => ({
+ '&:not(.Mui-disabled), &.MuiButtonGroup-grouped:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(primary.main, 0.4)}`
+ }
+ }),
+ containedWarning: ({ theme }) => ({
+ '&:not(.Mui-disabled), &.MuiButtonGroup-grouped:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(primary.main, 0.4)}`
+ }
+ }),
+ containedInfo: ({ theme }) => ({
+ '&:not(.Mui-disabled), &.MuiButtonGroup-grouped:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(primary.main, 0.4)}`
+ }
+ }),
+ outlined: ({ theme }) => ({
+ padding: theme.spacing(1.5, 4.75)
+ }),
+ sizeSmall: ({ theme, ownerState }) => ({
+ borderRadius: 4,
+ ...(ownerState.variant === 'text' && {
+ padding: theme.spacing(1, 3.5)
+ }),
+ ...(ownerState.variant === 'contained' && {
+ padding: theme.spacing(1, 3.5)
+ }),
+ ...(ownerState.variant === 'outlined' && {
+ padding: theme.spacing(0.75, 3.25)
+ })
+ }),
+ sizeLarge: ({ theme, ownerState }) => ({
+ borderRadius: 8,
+ ...(ownerState.variant === 'text' && {
+ padding: theme.spacing(2, 6.5)
+ }),
+ ...(ownerState.variant === 'contained' && {
+ padding: theme.spacing(2, 6.5)
+ }),
+ ...(ownerState.variant === 'outlined' && {
+ padding: theme.spacing(1.75, 6.25)
+ })
+ })
+ }
+ },
+ MuiButtonBase: {
+ defaultProps: {
+ disableRipple: false
+ }
+ },
+ MuiFab: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ '&.MuiFab-success:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(success.main, 0.4)}`
+ },
+ '&.Mui-error:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(error.main, 0.4)}`
+ },
+ '&.MuiFab-warning:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(warning.main, 0.4)}`
+ },
+ '&.MuiFab-info:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(info.main, 0.4)}`
+ }
+ }),
+ primary: ({ theme }) => ({
+ '&:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(primary.main, 0.4)}`
+ }
+ }),
+ secondary: ({ theme }) => ({
+ '&:not(.Mui-disabled)': {
+ boxShadow: `0 2px 4px 0 ${alpha(secondary.main, 0.4)}`
+ }
+ })
+ }
+ },
+ MuiButtonGroup: {
+ styleOverrides: {
+ contained: ({ theme }) => ({
+ boxShadow: 'none',
+ '& .MuiButton-contained': {
+ paddingLeft: theme.spacing(5),
+ paddingRight: theme.spacing(5),
+ '&.MuiButton-containedPrimary:hover': {
+ boxShadow: `0 2px 4px 0 ${alpha(primary.main, 0.4)}`
+ },
+ '&.MuiButton-containedSecondary:hover': {
+ boxShadow: `0 2px 4px 0 ${alpha(secondary.main, 0.4)}`
+ },
+ '&.MuiButton-containedSuccess:hover': {
+ boxShadow: `0 2px 4px 0 ${alpha(success.main, 0.4)}`
+ },
+ '&.MuiButton-containedError:hover': {
+ boxShadow: `0 2px 4px 0 ${alpha(error.main, 0.4)}`
+ },
+ '&.MuiButton-containedWarning:hover': {
+ boxShadow: `0 2px 4px 0 ${alpha(warning.main, 0.4)}`
+ },
+ '&.MuiButton-containedInfo:hover': {
+ boxShadow: `0 2px 4px 0 ${alpha(info.main, 0.4)}`
+ }
+ }
+ })
+ }
+ },
+ MuiLink: {
+ styleOverrides: {
+ root: {
+ textDecoration: 'none'
+ }
+ }
+ },
+ MuiTypography: {
+ styleOverrides: {
+ gutterBottom: ({ theme }) => ({
+ marginBottom: theme.spacing(2)
+ })
+ },
+ variants: [
+ {
+ props: { variant: 'h1' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'h2' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'h3' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'h4' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'h5' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'h6' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'subtitle1' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'subtitle2' },
+ style: ({ theme }) => ({ color: theme.palette.text.secondary })
+ },
+ {
+ props: { variant: 'body1' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'body2' },
+ style: ({ theme }) => ({ color: theme.palette.text.secondary })
+ },
+ {
+ props: { variant: 'button' },
+ style: ({ theme }) => ({ color: theme.palette.text.primary })
+ },
+ {
+ props: { variant: 'caption' },
+ style: ({ theme }) => ({ color: theme.palette.text.secondary })
+ },
+ {
+ props: { variant: 'overline' },
+ style: ({ theme }) => ({ color: theme.palette.text.secondary })
+ }
+ ]
+ },
+ MuiPaper: {
+ styleOverrides: {
+ root: {
+ backgroundImage: 'none'
+ }
+ }
+ },
+ MuiBackdrop: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ backgroundColor: `${alpha(customs.main, 0.5)}`
+ }),
+ invisible: {
+ backgroundColor: 'transparent'
+ }
+ }
+ },
+ MuiSelect: {
+ styleOverrides: {
+ select: {
+ minWidth: '6rem !important',
+ '&.MuiTablePagination-select': {
+ minWidth: '1.5rem !important'
+ }
+ }
+ }
+ },
+ MuiDialog: {
+ styleOverrides: {
+ paper: ({ theme }) => ({
+ boxShadow: theme.shadows[6],
+ border: `1px solid ${theme.palette.divider}`,
+ '&:not(.MuiDialog-paperFullScreen)': {
+ borderRadius: 8,
+ [theme.breakpoints.down('sm')]: {
+ margin: theme.spacing(4),
+ width: `calc(100% - ${theme.spacing(8)})`,
+ maxWidth: `calc(100% - ${theme.spacing(8)}) !important`
+ }
+ },
+ '& > .MuiList-root': {
+ paddingLeft: theme.spacing(1),
+ paddingRight: theme.spacing(1)
+ }
+ })
+ }
+ },
+ MuiDialogTitle: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ padding: theme.spacing(6, 6, 1),
+ '& + .MuiDialogContent-root': {
+ paddingTop: `${theme.spacing(6)} !important`
+ }
+ })
+ }
+ },
+ MuiDialogContent: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ padding: theme.spacing(6),
+ '& + .MuiDialogContent-root': {
+ paddingTop: '0 !important'
+ },
+ '& + .MuiDialogActions-root': {
+ paddingTop: '0 !important'
+ }
+ })
+ }
+ },
+ MuiDialogActions: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ justifyContent: 'center',
+ padding: theme.spacing(1, 6, 6),
+ '&.dialog-actions-dense': {
+ padding: theme.spacing(3),
+ paddingTop: theme.spacing(1)
+ }
+ })
+ }
+ },
+
+ MuiCard: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ borderRadius: 8,
+ '& .card-more-options': {
+ marginTop: theme.spacing(-1),
+ marginRight: theme.spacing(-3)
+ },
+ '& .MuiTableContainer-root, & .MuiDataGrid-root, & .MuiDataGrid-columnHeaders': {
+ borderRadius: 0
+ }
+ })
+ },
+ defaultProps: {
+ elevation: 6
+ }
+ },
+ MuiCardHeader: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ padding: theme.spacing(6),
+ '& + .MuiCardContent-root, & + .MuiCardActions-root, & + .MuiCollapse-root .MuiCardContent-root': {
+ paddingTop: 0
+ },
+ '& .MuiCardHeader-subheader': {
+ fontSize: '0.875rem',
+ marginTop: theme.spacing(1.25),
+ color: theme.palette.text.secondary
+ }
+ }),
+ title: {
+ lineHeight: 1.6,
+ fontWeight: 500,
+ fontSize: '1.125rem',
+ letterSpacing: '0.15px',
+ '@media (min-width: 600px)': {
+ fontSize: '1.25rem'
+ }
+ },
+ action: {
+ marginTop: 0,
+ marginRight: 0
+ }
+ }
+ },
+ MuiCardContent: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ padding: theme.spacing(6),
+ '& + .MuiCardHeader-root, & + .MuiCardContent-root, & + .MuiCardActions-root': {
+ paddingTop: 0
+ },
+ '&:last-of-type': {
+ paddingBottom: theme.spacing(6)
+ }
+ })
+ }
+ },
+ MuiCardActions: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ padding: theme.spacing(6),
+ '& .MuiButton-text': {
+ paddingLeft: theme.spacing(3),
+ paddingRight: theme.spacing(3)
+ },
+ '&.card-action-dense': {
+ padding: theme.spacing(0, 3, 3),
+ '.MuiCard-root .MuiCardMedia-root + &': {
+ paddingTop: theme.spacing(3)
+ }
+ },
+ '.MuiCard-root &:first-of-type': {
+ paddingTop: theme.spacing(3),
+ '& + .MuiCardHeader-root, & + .MuiCardContent-root, & + .MuiCardActions-root': {
+ paddingTop: 0
+ }
+ }
+ })
+ }
+ },
+ MuiInputLabel: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ color: theme.palette.text.secondary
+ })
+ }
+ },
+ MuiInput: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ '&:before': {
+ borderBottom: `1px solid ${alpha(customs.main, 0.2)}`
+ },
+ '&:hover:not(.Mui-disabled):before': {
+ borderBottom: `1px solid ${alpha(customs.main, 0.32)}`
+ },
+ '&.Mui-disabled:before': {
+ borderBottomStyle: 'solid'
+ }
+ })
+ }
+ },
+ MuiFilledInput: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ backgroundColor: alpha(customs.main, 0.04),
+ '&:hover:not(.Mui-disabled)': {
+ backgroundColor: alpha(customs.main, 0.08)
+ },
+ '&:before': {
+ borderBottom: `1px solid ${alpha(customs.main, 0.22)}`
+ },
+ '&:hover:not(.Mui-disabled):before': {
+ borderBottom: `1px solid ${alpha(customs.main, 0.32)}`
+ }
+ })
+ }
+ },
+ MuiOutlinedInput: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ '&:hover:not(.Mui-focused):not(.Mui-disabled):not(.Mui-error) .MuiOutlinedInput-notchedOutline': {
+ borderColor: alpha(customs.main, 0.32)
+ },
+ '&:hover.Mui-error .MuiOutlinedInput-notchedOutline': {
+ borderColor: error.main
+ },
+ '&.Mui-error.Mui-focused': {
+ boxShadow: `0 1px 3px 0 ${alpha(error.main, 0.4)} !important`
+ },
+ '& .MuiOutlinedInput-notchedOutline': {
+ borderColor: alpha(customs.main, 0.22)
+ },
+ '&.Mui-disabled .MuiOutlinedInput-notchedOutline': {
+ borderColor: theme.palette.text.disabled
+ },
+ '&.Mui-focused': {
+ boxShadow: `0 1px 3px 0 ${alpha(primary.main, 0.4)}`
+ },
+ '&.MuiInputBase-colorSuccess.Mui-focused': {
+ boxShadow: `0 1px 3px 0 ${alpha(success.main, 0.4)}`
+ },
+ '&.MuiInputBase-colorWarning.Mui-focused': {
+ boxShadow: `0 1px 3px 0 ${alpha(warning.main, 0.4)}`
+ },
+ '&.MuiInputBase-colorError.Mui-focused': {
+ boxShadow: `0 1px 3px 0 ${alpha(error.main, 0.4)}`
+ },
+ '&.MuiInputBase-colorInfo.Mui-focused': {
+ boxShadow: `0 1px 3px 0 ${alpha(info.main, 0.4)}`
+ }
+ }),
+ colorSecondary: ({ theme }) => ({
+ '&.Mui-focused': {
+ boxShadow: `0 1px 3px 0 ${alpha(secondary.main, 0.4)}`
+ }
+ })
+ }
+ },
+ MuiDataGrid: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ border: 0,
+ color: theme.palette.text.primary,
+ '& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within': {
+ outline: 'none'
+ }
+ }),
+ toolbarContainer: ({ theme }) => ({
+ paddingRight: `${theme.spacing(5)} !important`,
+ paddingLeft: `${theme.spacing(3.25)} !important`
+ }),
+ columnHeaders: ({ theme }) => ({
+ borderTop: `1px solid ${theme.palette.divider}`,
+ backgroundColor: theme.palette.action.hover
+ }),
+ columnHeader: ({ theme }) => ({
+ '&:not(.MuiDataGrid-columnHeaderCheckbox)': {
+ paddingLeft: theme.spacing(4),
+ paddingRight: theme.spacing(4),
+ '&:first-of-type': {
+ paddingLeft: theme.spacing(5)
+ }
+ },
+ '&:last-of-type': {
+ paddingRight: theme.spacing(5)
+ }
+ }),
+ columnHeaderCheckbox: {
+ maxWidth: '58px !important',
+ minWidth: '58px !important'
+ },
+ columnHeaderTitleContainer: {
+ padding: 0
+ },
+ columnHeaderTitle: {
+ fontWeight: 600,
+ fontSize: '0.75rem',
+ letterSpacing: '0.17px'
+ },
+ columnSeparator: ({ theme }) => ({
+ color: theme.palette.divider
+ }),
+ row: ({ theme }) => ({
+ // Disable hover effects
+ '&:hover': {
+ backgroundColor: 'transparent !important'
+ },
+ '&.Mui-hovered': {
+ backgroundColor: 'transparent !important'
+ },
+ '&:last-child': {
+ '& .MuiDataGrid-cell': {
+ borderBottom: 0
+ }
+ }
+ }),
+ cell: ({ theme }) => ({
+ borderColor: theme.palette.divider,
+ '&:not(.MuiDataGrid-cellCheckbox)': {
+ paddingLeft: theme.spacing(4),
+ paddingRight: theme.spacing(4),
+ '&:first-of-type': {
+ paddingLeft: theme.spacing(5)
+ }
+ },
+ '&:last-of-type': {
+ paddingRight: theme.spacing(5)
+ },
+ '&:focus, &:focus-within': {
+ outline: 'none'
+ }
+ }),
+ cellCheckbox: {
+ maxWidth: '58px !important',
+ minWidth: '58px !important'
+ },
+ editInputCell: ({ theme }) => ({
+ padding: 0,
+ color: theme.palette.text.primary,
+ '& .MuiInputBase-input': {
+ padding: 0
+ }
+ }),
+ footerContainer: ({ theme }) => ({
+ borderTop: `1px solid ${theme.palette.divider}`,
+ '& .MuiTablePagination-toolbar': {
+ paddingLeft: `${theme.spacing(4)} !important`,
+ paddingRight: `${theme.spacing(4)} !important`
+ },
+ '& .MuiTablePagination-displayedRows, & .MuiTablePagination-selectLabel': {
+ color: theme.palette.text.primary
+ }
+ }),
+ selectedRowCount: ({ theme }) => ({
+ margin: 0,
+ paddingLeft: theme.spacing(4),
+ paddingRight: theme.spacing(4)
+ })
+ }
+ },
+ MuiBreadcrumbs: {
+ styleOverrides: {
+ root: ({ theme }) => ({
+ '& a': {
+ textDecoration: 'none',
+ color: primary.main
+ }
+ }),
+ li: ({ theme }) => ({
+ color: theme.palette.text.secondary,
+ '& .MuiTypography-root': {
+ color: 'inherit'
+ }
+ })
+ }
+ }
+ }
+ })
+ )
+}
+
+export default createMuiTheme
diff --git a/web-v2/web/src/lib/theme/screens.js b/web-v2/web/src/lib/theme/screens.js
new file mode 100644
index 0000000000..bf99feb9ca
--- /dev/null
+++ b/web-v2/web/src/lib/theme/screens.js
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+
+const screens = {
+ xs: 0,
+ sm: 600,
+ md: 900,
+ lg: 1200,
+ xl: 1540
+}
+
+export default screens
diff --git a/web-v2/web/src/lib/theme/tailwind.js b/web-v2/web/src/lib/theme/tailwind.js
new file mode 100644
index 0000000000..4ec9778225
--- /dev/null
+++ b/web-v2/web/src/lib/theme/tailwind.js
@@ -0,0 +1,32 @@
+/*
+ * 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 colors from './colors'
+import screens from './screens'
+
+const tailwindTheme = {
+ colors,
+ screens,
+ fontFamily: {},
+ fontSize: {},
+ backgroundImage: {},
+ extend: {}
+}
+
+export default tailwindTheme
diff --git a/web-v2/web/src/lib/utils/axios/Axios.js b/web-v2/web/src/lib/utils/axios/Axios.js
new file mode 100644
index 0000000000..652945b53d
--- /dev/null
+++ b/web-v2/web/src/lib/utils/axios/Axios.js
@@ -0,0 +1,347 @@
+/*
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+*/
+
+/**
+ * Referred from src/utils/http/axios/Axios.ts
+ */
+
+import axios from 'axios'
+import qs from 'qs'
+import { AxiosCanceler } from './axiosCancel'
+import { isFunction } from '../is'
+import { cloneDeep } from 'lodash-es'
+import { ContentTypeEnum, RequestEnum } from '../../enums/httpEnum'
+
+export * from './axiosTransform'
+
+/**
+ * @typedef {import('axios').AxiosRequestConfig} AxiosRequestConfig
+ * @typedef {import('axios').AxiosInstance} AxiosInstance
+ * @typedef {import('axios').AxiosResponse} AxiosResponse
+ * @typedef {import('axios').AxiosError} AxiosError
+ * @typedef {import('axios').InternalAxiosRequestConfig} InternalAxiosRequestConfig
+ * @typedef {import('@/types/axios').RequestOptions} RequestOptions
+ * @typedef {import('@/types/axios').Result} Result
+ * @typedef {import('@/types/axios').UploadFileParams} UploadFileParams
+ * @typedef {import('./axiosTransform').CreateAxiosOptions} CreateAxiosOptions
+ */
+
+/**
+ * @description: axios module
+ */
+class NextAxios {
+ /**
+ * @type {AxiosInstance}
+ * @private
+ */
+ axiosInstance
+
+ /**
+ * @type {CreateAxiosOptions}
+ * @readonly
+ */
+ options
+
+ /**
+ * @param {CreateAxiosOptions} options
+ */
+ constructor(options) {
+ this.options = options
+ this.axiosInstance = axios.create(options)
+ this.setupInterceptors()
+ }
+
+ /**
+ * @description: Create axios instance
+ * @private
+ * @param {CreateAxiosOptions} config
+ */
+ createAxios(config) {
+ this.axiosInstance = axios.create(config)
+ }
+
+ getTransform() {
+ const { transform } = this.options
+
+ return transform
+ }
+
+ /**
+ * @returns {AxiosInstance}
+ */
+ getAxios() {
+ return this.axiosInstance
+ }
+
+ /**
+ * @description: Reconfigure axios
+ * @param {CreateAxiosOptions} config
+ */
+ configAxios(config) {
+ if (!this.axiosInstance) {
+ return
+ }
+ this.createAxios(config)
+ }
+
+ /**
+ * @description: Set general header
+ * @param {Object} headers
+ */
+ setHeader(headers) {
+ if (!this.axiosInstance) {
+ return
+ }
+ Object.assign(this.axiosInstance.defaults.headers, headers)
+ }
+
+ /**
+ * @description: Interceptor configuration
+ * @private
+ */
+ setupInterceptors() {
+ const {
+ axiosInstance,
+ options: { transform }
+ } = this
+ if (!transform) {
+ return
+ }
+
+ const { requestInterceptors, requestInterceptorsCatch, responseInterceptors, responseInterceptorsCatch } = transform
+
+ const axiosCanceler = new AxiosCanceler()
+
+ // ** Request interceptor configuration processing
+ this.axiosInstance.interceptors.request.use(config => {
+ // ** If cancel repeat request is turned on, then cancel repeat request is prohibited
+ const requestOptions = config.requestOptions ?? this.options.requestOptions
+ const ignoreCancelToken = requestOptions?.ignoreCancelToken ?? true
+
+ !ignoreCancelToken && axiosCanceler.addPending(config)
+
+ if (requestInterceptors && isFunction(requestInterceptors)) {
+ config = requestInterceptors(config, this.options)
+ }
+
+ return config
+ }, undefined)
+
+ // ** Request interceptor error capture
+ requestInterceptorsCatch &&
+ isFunction(requestInterceptorsCatch) &&
+ this.axiosInstance.interceptors.request.use(undefined, requestInterceptorsCatch)
+
+ // ** Response result interceptor processing
+ this.axiosInstance.interceptors.response.use(res => {
+ res && axiosCanceler.removePending(res.config)
+ if (responseInterceptors && isFunction(responseInterceptors)) {
+ res = responseInterceptors(res)
+ }
+
+ return res
+ }, undefined)
+
+ // ** Response result interceptor error capture
+ responseInterceptorsCatch &&
+ isFunction(responseInterceptorsCatch) &&
+ this.axiosInstance.interceptors.response.use(undefined, error => {
+ return responseInterceptorsCatch(axiosInstance, error)
+ })
+ }
+
+ /**
+ * @description: File Upload
+ * @template T
+ * @param {AxiosRequestConfig} config
+ * @param {UploadFileParams} params
+ * @returns {Promise<T>}
+ */
+ uploadFile(config, params) {
+ const formData = new window.FormData()
+ const customFilename = params.name || 'file'
+
+ if (params.filename) {
+ formData.append(customFilename, params.file, params.filename)
+ } else {
+ formData.append(customFilename, params.file)
+ }
+
+ if (params.data) {
+ Object.keys(params.data).forEach(key => {
+ const value = params.data[key]
+ if (Array.isArray(value)) {
+ value.forEach(item => {
+ formData.append(`${key}[]`, item)
+ })
+
+ return
+ }
+
+ formData.append(key, params.data[key])
+ })
+ }
+
+ return this.axiosInstance.request({
+ ...config,
+ method: 'POST',
+ data: formData,
+ headers: {
+ 'Content-type': ContentTypeEnum.FORM_DATA,
+ ignoreCancelToken: true
+ }
+ })
+ }
+
+ // ** support form-data
+ supportFormData(config) {
+ const headers = config.headers || this.options.headers
+ const contentType = headers?.['Content-Type'] || headers?.['content-type']
+
+ if (
+ contentType !== ContentTypeEnum.FORM_URLENCODED ||
+ !Reflect.has(config, 'data') ||
+ config.method?.toUpperCase() === RequestEnum.GET
+ ) {
+ return config
+ }
+
+ return {
+ ...config,
+ data: qs.stringify(config.data, { arrayFormat: 'brackets' })
+ }
+ }
+
+ /**
+ * @template T
+ * @param {AxiosRequestConfig} config
+ * @param {RequestOptions} [options]
+ * @returns {Promise<T>}
+ */
+ get(config, options) {
+ return this.request({ ...config, method: 'GET' }, options)
+ }
+
+ /**
+ * @template T
+ * @param {AxiosRequestConfig} config
+ * @param {RequestOptions} [options]
+ * @returns {Promise<T>}
+ */
+ post(config, options) {
+ return this.request({ ...config, method: 'POST' }, options)
+ }
+
+ /**
+ * @template T
+ * @param {AxiosRequestConfig} config
+ * @param {RequestOptions} [options]
+ * @returns {Promise<T>}
+ */
+ put(config, options) {
+ return this.request({ ...config, method: 'PUT' }, options)
+ }
+
+ /**
+ * @template T
+ * @param {AxiosRequestConfig} config
+ * @param {RequestOptions} [options]
+ * @returns {Promise<T>}
+ */
+ patch(config, options) {
+ return this.request({ ...config, method: 'PATCH' }, options)
+ }
+
+ /**
+ * @template T
+ * @param {AxiosRequestConfig} config
+ * @param {RequestOptions} [options]
+ * @returns {Promise<T>}
+ */
+ delete(config, options) {
+ return this.request({ ...config, method: 'DELETE' }, options)
+ }
+
+ /**
+ * @template T
+ * @param {AxiosRequestConfig} config
+ * @param {RequestOptions} [options]
+ * @returns {Promise<T>}
+ */
+ request(config, options) {
+ let conf = cloneDeep(config)
+ if (config.cancelToken) {
+ conf.cancelToken = config.cancelToken
+ }
+
+ if (config.signal) {
+ conf.signal = config.signal
+ }
+
+ const transform = this.getTransform()
+
+ const { requestOptions } = this.options
+
+ const opt = Object.assign({}, requestOptions, options)
+
+ const { beforeRequestHook, requestCatchHook, transformResponseHook } = transform || {}
+ if (beforeRequestHook && isFunction(beforeRequestHook)) {
+ conf = beforeRequestHook(conf, opt)
+ }
+ conf.requestOptions = opt
+
+ conf = this.supportFormData(conf)
+
+ return new Promise((resolve, reject) => {
+ this.axiosInstance
+ .request(conf)
+ .then(res => {
+ if (transformResponseHook && isFunction(transformResponseHook)) {
+ try {
+ const ret = transformResponseHook(res, opt)
+ resolve(ret)
+ } catch (err) {
+ reject(err || new Error('request error!'))
+ }
+
+ return
+ }
+ resolve(res)
+ })
+ .catch(e => {
+ if (requestCatchHook && isFunction(requestCatchHook)) {
+ reject(requestCatchHook(e, opt))
+
+ return
+ }
+ if (axios.isAxiosError(e)) {
+ // ** rewrite error message from axios in here
+ }
+ reject(e)
+ })
+ })
+ }
+}
+
+export { NextAxios }
diff --git a/web-v2/web/src/lib/utils/axios/axiosCancel.js b/web-v2/web/src/lib/utils/axios/axiosCancel.js
new file mode 100644
index 0000000000..3a009d7001
--- /dev/null
+++ b/web-v2/web/src/lib/utils/axios/axiosCancel.js
@@ -0,0 +1,77 @@
+/*
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+ */
+
+import axios from 'axios'
+
+/**
+ * @typedef {import('axios').AxiosRequestConfig} AxiosRequestConfig
+ */
+
+const pendingMap = new Map()
+
+/**
+ * @param {AxiosRequestConfig} config
+ * @returns {string}
+ */
+const getPendingUrl = config => {
+ return [config.method, config.url].join('&')
+}
+
+class AxiosCanceler {
+ addPending(config) {
+ this.removePending(config)
+ const url = getPendingUrl(config)
+ const controller = new AbortController()
+ config.signal = config.signal || controller.signal
+ if (!pendingMap.has(url)) {
+ pendingMap.set(url, controller)
+ }
+ }
+
+ removeAllPending() {
+ pendingMap.forEach(abortController => {
+ if (abortController) {
+ abortController.abort()
+ }
+ })
+ this.reset()
+ }
+
+ removePending(config) {
+ const url = getPendingUrl(config)
+ if (pendingMap.has(url)) {
+ const abortController = pendingMap.get(url)
+ if (abortController) {
+ abortController.abort(url)
+ }
+ pendingMap.delete(url)
+ }
+ }
+
+ reset() {
+ pendingMap.clear()
+ }
+}
+
+export { AxiosCanceler }
diff --git a/web-v2/web/src/lib/utils/axios/axiosRetry.js b/web-v2/web/src/lib/utils/axios/axiosRetry.js
new file mode 100644
index 0000000000..a86f05d42f
--- /dev/null
+++ b/web-v2/web/src/lib/utils/axios/axiosRetry.js
@@ -0,0 +1,65 @@
+/*
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+ */
+
+/**
+ * Referred from src/utils/http/axios/axiosRetry.ts
+ */
+
+import axios from 'axios'
+
+/**
+ * @typedef {import('axios').AxiosError} AxiosError
+ * @typedef {import('axios').AxiosInstance} AxiosInstance
+ */
+
+class AxiosRetry {
+ /**
+ * @param {AxiosInstance} axiosInstance
+ * @param {AxiosError} error
+ * @returns {Promise}
+ */
+ retry(axiosInstance, error) {
+ const { config } = error.response
+ const { waitTime, count } = config?.requestOptions?.retryRequest ?? {}
+ config.__retryCount = config.__retryCount || 0
+ if (config.__retryCount >= count) {
+ return Promise.reject(error)
+ }
+ config.__retryCount += 1
+
+ delete config.headers
+
+ return this.delay(waitTime).then(() => axiosInstance(config))
+ }
+
+ /**
+ * @param {number} waitTime
+ * @returns {Promise}
+ */
+ delay(waitTime) {
+ return new Promise(resolve => setTimeout(resolve, waitTime))
+ }
+}
+
+export { AxiosRetry }
diff --git a/web-v2/web/src/lib/utils/axios/axiosTransform.js b/web-v2/web/src/lib/utils/axios/axiosTransform.js
new file mode 100644
index 0000000000..76e5e3acce
--- /dev/null
+++ b/web-v2/web/src/lib/utils/axios/axiosTransform.js
@@ -0,0 +1,102 @@
+/*
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+ */
+
+/**
+ * Referred from src/utils/http/axios/axiosTransform.ts
+ */
+
+/**
+ * @typedef {import('axios').AxiosInstance} AxiosInstance
+ * @typedef {import('axios').AxiosRequestConfig} AxiosRequestConfig
+ * @typedef {import('axios').AxiosResponse} AxiosResponse
+ * @typedef {import('axios').InternalAxiosRequestConfig} InternalAxiosRequestConfig
+ * @typedef {import('@/types/axios').RequestOptions} RequestOptions
+ * @typedef {import('@/types/axios').Result} Result
+ */
+
+/**
+ * @typedef {AxiosRequestConfig} CreateAxiosOptions
+ * @property {string} [authenticationScheme]
+ * @property {AxiosTransform} [transform]
+ * @property {RequestOptions} [requestOptions]
+ */
+
+/**
+ * Data processing class, can be configured according to the project
+ */
+class AxiosTransform {
+ /**
+ * A function that is called before a request is sent. It can modify the request configuration as needed.
+ * @param {AxiosRequestConfig} config
+ * @param {RequestOptions} options
+ * @returns {AxiosRequestConfig}
+ */
+ beforeRequestHook(config, options) {}
+
+ /**
+ * Processing response data
+ * @param {AxiosResponse<Result>} res
+ * @param {RequestOptions} options
+ * @returns {any}
+ */
+ transformResponseHook(res, options) {}
+
+ /**
+ * Handling of failed requests
+ * @param {Error} e
+ * @param {RequestOptions} options
+ * @returns {Promise<any>}
+ */
+ requestCatchHook(e, options) {}
+
+ /**
+ * Interceptor before request
+ * @param {InternalAxiosRequestConfig} config
+ * @param {CreateAxiosOptions} options
+ * @returns {InternalAxiosRequestConfig}
+ */
+ requestInterceptors(config, options) {}
+
+ /**
+ * Interceptor after request
+ * @param {AxiosResponse<any>} res
+ * @returns {AxiosResponse<any>}
+ */
+ responseInterceptors(res) {}
+
+ /**
+ * Interceptors error handing before request
+ * @param {Error} error
+ */
+ requestInterceptorsCatch(error) {}
+
+ /**
+ * Interceptors error handing after request
+ * @param {AxiosInstance} axiosInstance
+ * @param {Error} error
+ */
+ responseInterceptorsCatch(axiosInstance, error) {}
+}
+
+export { AxiosTransform }
diff --git a/web-v2/web/src/lib/utils/axios/checkStatus.js b/web-v2/web/src/lib/utils/axios/checkStatus.js
new file mode 100644
index 0000000000..50d821eb04
--- /dev/null
+++ b/web-v2/web/src/lib/utils/axios/checkStatus.js
@@ -0,0 +1,114 @@
+/*
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+ */
+
+/**
+ * Referred from src/utils/http/axios/checkStatus.ts
+ */
+
+/**
+ * @typedef {'none' | 'modal' | 'message' | undefined} ErrorMessageMode
+ */
+
+import toast from 'react-hot-toast'
+
+/**
+ * @param {number} status
+ * @param {string} msg
+ * @param {ErrorMessageMode} [errorMessageMode='message']
+ */
+export function checkStatus(status, msg, errorMessageMode = 'message') {
+ let errMessage = ''
+
+ switch (status) {
+ case 400:
+ errMessage = `${msg}`
+ break
+
+ case 401:
+ // ** reserve error message
+ // errMessage = msg || 'The user does not have permission (token, user name, password error or expired)!';
+ break
+
+ case 403:
+ errMessage = msg || 'The user is authorized, but access is forbidden!'
+ break
+
+ case 404:
+ errMessage = msg || 'Network request error, the resource was not found!'
+ break
+
+ case 405:
+ errMessage = msg || 'Network request error, request method not allowed!'
+ break
+
+ case 408:
+ errMessage = msg || 'Network request timed out!'
+ break
+
+ case 409:
+ errMessage = msg || 'Conflict with the current resource state!'
+ break
+
+ case 500:
+ errMessage = msg || 'Server error, unable to connect Gravitino!'
+ break
+
+ case 501:
+ errMessage = msg || 'The network is not implemented!'
+ break
+
+ case 502:
+ errMessage = msg || 'Network Error!'
+ break
+
+ case 503:
+ errMessage = msg || 'The service is unavailable, the server is temporarily overloaded or maintained!'
+ break
+
+ case 504:
+ errMessage = msg || 'Network timeout!'
+ break
+
+ case 505:
+ errMessage = msg || 'The http version does not support the request!'
+ break
+
+ default:
+ }
+
+ if (errMessage) {
+ if (errorMessageMode === 'modal') {
+ console.log({ title: 'Error Tip', text: errMessage, icon: 'error' })
+ } else if (errorMessageMode === 'message') {
+ const keyword = 'reason'
+ const idx = errMessage.indexOf(keyword)
+
+ if (idx !== -1) {
+ errMessage = errMessage.substring(idx + keyword.length + 1).replace(/^\[|\]$/g, '')
+ }
+
+ toast.error(errMessage, { id: `global_error_message_status_${status}` })
+ }
+ }
+}
diff --git a/web-v2/web/src/lib/utils/axios/helper.js b/web-v2/web/src/lib/utils/axios/helper.js
new file mode 100644
index 0000000000..ba3291b4b4
--- /dev/null
+++ b/web-v2/web/src/lib/utils/axios/helper.js
@@ -0,0 +1,83 @@
+/*
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+ */
+
+/**
+ * Referred from src/utils/http/axios/helper.ts
+ */
+
+import { isObject, isString } from '@/lib/utils/is'
+
+const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'
+
+/**
+ * @template T
+ * @param {boolean} join
+ * @param {T} restful
+ * @returns {T extends true ? string : object}
+ */
+export function joinTimestamp(join, restful = false) {
+ if (!join) {
+ return restful ? '' : {}
+ }
+ const now = new Date().getTime()
+ if (restful) {
+ return `?_t=${now}`
+ }
+
+ return { _t: now }
+}
+
+/**
+ * @typedef {Object.<string, any>} Recordable
+ */
+
+/**
+ * @description: Format request parameter time
+ * @param {Recordable} params
+ */
+export function formatRequestDate(params) {
+ if (Object.prototype.toString.call(params) !== '[object Object]') {
+ return
+ }
+
+ for (const key in params) {
+ const format = params[key]?.format ?? null
+ if (format && typeof format === 'function') {
+ params[key] = params[key].format(DATE_TIME_FORMAT)
+ }
+ if (isString(key)) {
+ const value = params[key]
+ if (value) {
+ try {
+ params[key] = isString(value) ? value.trim() : value
+ } catch (error) {
+ throw new Error(error)
+ }
+ }
+ }
+ if (isObject(params[key])) {
+ formatRequestDate(params[key])
+ }
+ }
+}
diff --git a/web-v2/web/src/lib/utils/axios/index.js b/web-v2/web/src/lib/utils/axios/index.js
new file mode 100644
index 0000000000..d9df97f88d
--- /dev/null
+++ b/web-v2/web/src/lib/utils/axios/index.js
@@ -0,0 +1,323 @@
+/*
+MIT License
+
+Copyright (c) 2020-present, Vben
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+ */
+/**
+ * Referred from src/utils/http/axios/index.ts
+ */
+
+import axios from 'axios'
+import { clone } from 'lodash-es'
+import toast from 'react-hot-toast'
+import qs from 'qs'
+import { RequestEnum, ResultEnum, ContentTypeEnum } from '@/lib/enums/httpEnum'
+import { isString, isUndefined, isNull, isEmpty } from '@/lib/utils/is'
+import { setObjToUrlParams, deepMerge } from '@/lib/utils'
+import { joinTimestamp, formatRequestDate } from './helper'
+import { AxiosRetry } from './axiosRetry'
+import { NextAxios } from './Axios'
+import { checkStatus } from './checkStatus'
+import { useAuth as Auth } from '../../provider/session'
+import { githubApis } from '@/lib/api/github'
+import { isProdEnv } from '@/lib/utils'
+import { oauthProviderFactory } from '@/lib/auth/providers/factory'
+
+/**
+ * @description: Data processing to facilitate the distinction of multiple processing methods
+ */
+const transform = {
+ /**
+ * @description: Handling response data. If the data does not conform to the expected format, an error can be thrown directly
+ * @param {AxiosResponse<Result>} res
+ * @param {RequestOptions} options
+ * @returns {any}
+ */
+ transformResponseHook: (res, options) => {
+ const { isTransformResponse, isReturnNativeResponse } = options
+
+ // ** Whether to return the native response headers, for example: use this property when you need to access the response headers
+ if (isReturnNativeResponse) {
+ return res
+ }
+
+ // ** No processing is performed; return as is
+ // ** Enable when it is necessary to directly access the code, data, and message information in the page code
+ if (!isTransformResponse) {
+ return res.data
+ }
+
+ const { data } = res
+ if (!data) {
+ // ** return '[HTTP] Request has no return value';
+ throw new Error('The interface request failed, please try again later!')
+ }
+
+ const { code, result, message } = data
+
+ const hasSuccess = data && Reflect.has(data, 'code') && code === ResultEnum.SUCCESS
+ if (hasSuccess) {
+ let successMsg = message
+
+ if (isNull(successMsg) || isUndefined(successMsg) || isEmpty(successMsg)) {
+ successMsg = `Operation Success`
+ }
+
+ if (options.successMessageMode === 'modal') {
+ console.log({ title: 'Success Tip', text: successMsg, icon: 'success' })
+ } else if (options.successMessageMode === 'message') {
+ toast.success(successMsg)
+ }
+
+ return result
+ }
+
+ let timeoutMsg = ''
+ switch (code) {
+ case ResultEnum.TIMEOUT:
+ timeoutMsg = 'Login timed out, please log in again!'
+ Auth().logout()
+ break
+ default:
+ if (message) {
+ timeoutMsg = message
+ }
+ }
+
+ if (options.errorMessageMode === 'modal') {
+ timeoutMsg && console.log({ title: 'Error Tip', text: timeoutMsg, icon: 'error' })
+ } else if (options.errorMessageMode === 'message') {
+ timeoutMsg && toast.error(timeoutMsg)
+ }
+
+ throw new Error(timeoutMsg || 'The interface request failed, please try again later!')
+ },
+
+ // ** Handling Configuration Prior to Request
+ /**
+ * @param {InternalAxiosRequestConfig} config
+ * @param {RequestOptions} options
+ * @returns {InternalAxiosRequestConfig}
+ */
+ beforeRequestHook: (config, options) => {
+ const { apiUrl, joinPrefix, joinParamsToUrl, formatDate, joinTime = true, urlPrefix } = options
+
+ if (joinPrefix) {
+ config.url = `${urlPrefix}${config.url}`
+ }
+
+ if (apiUrl && isString(apiUrl)) {
+ config.url = `${apiUrl}${config.url}`
+ }
+ const params = config.params || {}
+ const data = config.data || false
+ formatDate && data && !isString(data) && formatRequestDate(data)
+ if (config.method?.toUpperCase() === RequestEnum.GET) {
+ if (!isString(params)) {
+ // ** Add a timestamp parameter to the GET request to avoid retrieving data from the cache
+ config.params = Object.assign(params || {}, joinTimestamp(joinTime, false))
+ } else {
+ // ** Supporting RESTful Style
+ config.url = config.url + params + `${joinTimestamp(joinTime, true)}`
+ config.params = undefined
+ }
+ } else {
+ if (!isString(params)) {
+ formatDate && formatRequestDate(params)
+ if (
+ Reflect.has(config, 'data') &&
+ config.data &&
+ (Object.keys(config.data).length > 0 || config.data instanceof FormData)
+ ) {
+ config.data = data
+ config.params = params
+ } else {
+ // ** If no data is provided for non-GET requests, the params will be treated as data
+ // config.data = params
+ // config.params = undefined
+ }
+ if (joinParamsToUrl) {
+ config.url = setObjToUrlParams(config.url, Object.assign({}, config.params, config.data))
+ }
+ } else {
+ // ** Supporting RESTful Style
+ config.url = config.url + params
+ config.params = undefined
+ }
+ }
+
+ return config
+ },
+
+ /**
+ * @param {InternalAxiosRequestConfig} config
+ * @param {CreateAxiosOptions} options
+ * @returns {InternalAxiosRequestConfig}
+ */
+ requestInterceptors: async (config, options) => {
+ // ** Pre-Request Configuration Handling
+
+ // Skip token retrieval for GitHub API calls entirely
+ if (config.url === githubApis.GET) {
+ return config
+ }
+
+ // Use OAuth provider factory for proper token management
+ try {
+ const token = await oauthProviderFactory.getAccessToken()
+
+ if (token && config?.requestOptions?.withToken !== false) {
+ // ** jwt token
+ config.headers.Authorization = options.authenticationScheme ? `${options.authenticationScheme} ${token}` : token
+ } else if (window.sessionStorage.getItem('simpleAuthUser')) {
+ // Simple auth fallback
+ const simpleAuthToken = window.sessionStorage.getItem('simpleAuthToken')
+ const user = JSON.parse(window.sessionStorage.getItem('simpleAuthUser'))?.name
+ if (user) {
+ config.headers.Authorization = `Basic ${Buffer.from(user || '').toString('base64')}`
+ }
+ }
+ } catch (error) {
+ console.warn('Failed to get access token:', error)
+ }
+
+ return config
+ },
+
+ /**
+ * @param {AxiosResponse<any>} res
+ * @returns {AxiosResponse<any>}
+ */
+ responseInterceptors: res => {
+ return res
+ },
+
+ /**
+ * @param {AxiosInstance} axiosInstance
+ * @param {any} error
+ * @returns {Promise<any>}
+ */
+ responseInterceptorsCatch: async (axiosInstance, error) => {
+ const { response, code, message, config: originConfig } = error || {}
+ const errorMessageMode = originConfig?.requestOptions?.errorMessageMode || 'none'
+ const msg = response?.data?.error?.message ?? response?.data?.message ?? ''
+ const err = error?.toString?.() ?? ''
+ let errMessage = ''
+
+ if (axios.isCancel(error)) {
+ return Promise.reject(error)
+ }
+
+ try {
+ if (code === 'ECONNABORTED' && message.indexOf('timeout') !== -1) {
+ errMessage = 'The interface request timed out, please refresh the page and try again!'
+ }
+ if (err?.includes('Network Error')) {
+ errMessage = 'Unable to connect to Gravitino. Please check if Gravitino is running.'
+ }
+
+ if (errMessage) {
+ if (errorMessageMode === 'modal') {
+ console.log({ title: 'Error Tip', text: errMessage, icon: 'error' })
+ } else if (errorMessageMode === 'message') {
+ toast.error(errMessage)
+ }
+
+ return Promise.reject(error)
+ }
+ } catch (error) {
+ throw new Error(error)
+ }
+
+ checkStatus(error?.response?.status, msg, errorMessageMode)
+
+ if (response?.status === 401 && !originConfig._retry && response.config.url !== githubApis.GET) {
+ localStorage.removeItem('accessToken')
+ localStorage.removeItem('authParams')
+
+ try {
+ const provider = await oauthProviderFactory.getProvider()
+ if (provider && provider.clearAuthData) {
+ await provider.clearAuthData()
+ }
+ } catch (error) {
+ console.warn('Provider cleanup failed during 401 handling:', error)
+ }
+
+ if (isProdEnv) {
+ window.location.href = '/ui/login'
+ } else {
+ window.location.href = '/login'
+ }
+ }
+
+ const retryRequest = new AxiosRetry()
+ const { isOpenRetry } = originConfig.requestOptions.retryRequest
+ originConfig.method?.toUpperCase() === RequestEnum.GET && isOpenRetry && retryRequest.retry(axiosInstance, error)
+
+ return Promise.reject(error)
+ }
+}
+
+/**
+ * @param {Partial<CreateAxiosOptions>} [opt]
+ * @returns {NextAxios}
+ */
+function createAxios(opt) {
+ return new NextAxios(
+ deepMerge(
+ {
+ // ** See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#authentication_schemes
+ // ** authentication schemes, e.g: Bearer
+ authenticationScheme: 'Bearer',
+ timeout: 0,
+ headers: {
+ 'Content-Type': ContentTypeEnum.JSON,
+ Accept: 'application/vnd.gravitino.v1+json'
+ },
+ transform: clone(transform),
+
+ // ** request configuration settings
+ requestOptions: {
+ joinPrefix: true,
+ isReturnNativeResponse: false,
+ isTransformResponse: false,
+ joinParamsToUrl: false,
+ formatDate: true,
+ errorMessageMode: 'message',
+ apiUrl: '',
+ urlPrefix: '',
+ joinTime: true,
+ ignoreCancelToken: false,
+ withToken: true,
+ retryRequest: {
+ isOpenRetry: false,
+ count: 5,
+ waitTime: 100
+ }
+ }
+ },
+ opt || {}
+ )
+ )
+}
+
+export const defHttp = createAxios()
diff --git a/web-v2/web/src/lib/utils/color.js b/web-v2/web/src/lib/utils/color.js
new file mode 100644
index 0000000000..9811da65af
--- /dev/null
+++ b/web-v2/web/src/lib/utils/color.js
@@ -0,0 +1,32 @@
+/*
+ * 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 chroma from 'chroma-js'
+
+export const lighten = (color, value = null) => {
+ return chroma(color).brighten(value)
+}
+
+export const darken = (color, value = null) => {
+ return chroma(color).darken(value)
+}
+
+export const alpha = (color, value) => {
+ return chroma(color).alpha(value).css()
+}
diff --git a/web-v2/web/src/lib/utils/date.js b/web-v2/web/src/lib/utils/date.js
new file mode 100644
index 0000000000..bad839d321
--- /dev/null
+++ b/web-v2/web/src/lib/utils/date.js
@@ -0,0 +1,30 @@
+/*
+ * 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 dayjs from 'dayjs'
+
+const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'
+
+export const formatToDateTime = (date, format = DATE_TIME_FORMAT) => {
+ return dayjs(date).format(format)
+}
+
+export const isValidDate = value => {
+ return dayjs(value).isValid()
+}
diff --git a/web-v2/web/src/lib/utils/index.js b/web-v2/web/src/lib/utils/index.js
new file mode 100644
index 0000000000..e9e9fc0b81
--- /dev/null
+++ b/web-v2/web/src/lib/utils/index.js
@@ -0,0 +1,486 @@
+/*
+ * 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 _, { intersectionWith, isEqual, mergeWith, unionWith } from 'lodash-es'
+import { isArray, isObject } from './is'
+import { ColumnSpesicalType } from '@/config'
+import dayjs from 'dayjs'
+import { original } from '@reduxjs/toolkit'
+
+const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'
+
+const getColumnType = type => {
+ if (typeof type === 'string') {
+ return type
+ } else {
+ return type.type
+ }
+}
+
+export const isDevEnv = process.env.NODE_ENV === 'development'
+
+export const isProdEnv = process.env.NODE_ENV === 'production'
+
+export const to = (promise, errExt) => {
+ return promise
+ .then(data => [null, data])
+ .catch(err => {
+ if (errExt) {
+ const error = Object.assign({}, err, errExt)
+
+ return [error, undefined]
+ }
+
+ return [err, undefined]
+ })
+}
+
+export const loggerVersion = version => {
+ console.log(
+ `Gravitino Version: %c${version}`,
+ `color: white; background-color: #6062E0; padding: 2px; border-radius: 4px;`
+ )
+}
+
+export const loggerGitHubInfo = (stars, forks) => {
+ console.log(
+ `Gravitino GitHubInfo: %c Stars ${stars}, Forks ${forks}`,
+ `color: white; background-color: #6062E0; padding: 2px; border-radius: 4px;`
+ )
+}
+
+export const genUpdates = (originalData, newData, disableUpdate = false) => {
+ const updates = []
+
+ if (originalData.name !== newData.name) {
+ updates.push({ '@type': 'rename', newName: newData.name })
+ }
+
+ if (originalData.uri !== newData.uri) {
+ updates.push({ '@type': 'updateUri', newUri: newData.uri })
+ }
+
+ const originalUris = originalData.uris || {}
+ const newUris = newData.uris || {}
+
+ for (const key in originalUris) {
+ if (!(key in newUris)) {
+ updates.push({ '@type': 'removeUri', uriName: key })
+ }
+ }
+
+ for (const key in newUris) {
+ if (originalUris[key] !== newUris[key]) {
+ if (originalUris[key] === undefined) {
+ updates.push({ '@type': 'addUri', uriName: key, uri: newUris[key] })
+ } else {
+ updates.push({ '@type': 'updateUri', uriName: key, newUri: newUris[key] })
+ }
+ }
+ }
+
+ const originalAliases = originalData.aliases || []
+ const newAliases = newData.aliases || []
+
+ const aliasesToAdd = newAliases.filter(alias => !originalAliases.includes(alias))
+ const aliasesToRemove = originalAliases.filter(alias => !newAliases.includes(alias))
+
+ if (aliasesToAdd.length > 0 || aliasesToRemove.length > 0) {
+ updates.push({
+ '@type': 'updateAliases',
+ aliasesToAdd: aliasesToAdd,
+ aliasesToRemove: aliasesToRemove
+ })
+ }
+
+ if (originalData.comment !== newData.comment) {
+ updates.push({ '@type': 'updateComment', newComment: newData.comment })
+ }
+
+ const originalContent = originalData.content || {}
+ const newContent = newData.content || {}
+
+ if (JSON.stringify(originalContent) !== JSON.stringify(newContent)) {
+ updates.push({ '@type': 'updateContent', policyType: 'custom', newContent: newContent })
+ }
+
+ const originalProperties = originalData.properties || {}
+ const newProperties = newData.properties || {}
+
+ for (const key in originalProperties) {
+ if (!(key in newProperties)) {
+ updates.push({ '@type': 'removeProperty', property: key })
+ }
+ }
+
+ for (const key in newProperties) {
+ if (originalProperties[key] !== newProperties[key]) {
+ if (originalProperties[key] === undefined) {
+ updates.push({ '@type': 'setProperty', property: key, value: newProperties[key] })
+ } else {
+ updates.push({ '@type': 'setProperty', property: key, value: newProperties[key] })
+ }
+ }
+ }
+
+ const originalColumnsMap = _.keyBy(originalData.columns || [], 'uniqueId')
+ const newColumnsMap = _.keyBy(newData.columns || [], 'uniqueId')
+
+ for (const key in newColumnsMap) {
+ if (!(key in originalColumnsMap)) {
+ const { uniqueId, ...newColumn } = newColumnsMap[key]
+ updates.push({
+ '@type': 'addColumn',
+ fieldName: [newColumn.name],
+ type: newColumn.type,
+ nullable: newColumn.nullable,
+ comment: newColumn.comment,
+ ...(newColumn.defaultValue !== undefined && newColumn.defaultValue !== null
+ ? { defaultValue: newColumn.defaultValue }
+ : {})
+ })
+ }
+ }
+
+ for (const key in originalColumnsMap) {
+ if (!(key in newColumnsMap)) {
+ updates.push({ '@type': 'deleteColumn', fieldName: [originalColumnsMap[key].name] })
+ } else {
+ if (originalColumnsMap[key].name !== newColumnsMap[key].name) {
+ updates.push({
+ '@type': 'renameColumn',
+ oldFieldName: [originalColumnsMap[key].name],
+ newFieldName: newColumnsMap[key].name
+ })
+ }
+ if (
+ getColumnType(originalColumnsMap[key].type) !== getColumnType(newColumnsMap[key].type).toLowerCase() ||
+ (ColumnSpesicalType.includes(getColumnType(newColumnsMap[key].type).toLowerCase()) && !disableUpdate)
+ ) {
+ updates.push({
+ '@type': 'updateColumnType',
+ fieldName: [newColumnsMap[key].name],
+ newType: newColumnsMap[key].type
+ })
+ }
+ if (originalColumnsMap[key].nullable !== newColumnsMap[key].nullable) {
+ updates.push({
+ '@type': 'updateColumnNullability',
+ fieldName: [newColumnsMap[key].name],
+ nullable: newColumnsMap[key].nullable
+ })
+ }
+ if (JSON.stringify(originalColumnsMap[key].defaultValue) !== JSON.stringify(newColumnsMap[key].defaultValue)) {
+ updates.push({
+ '@type': 'updateColumnDefaultValue',
+ fieldName: [newColumnsMap[key].name],
+ newDefaultValue: newColumnsMap[key].defaultValue
+ })
+ }
+ if (
+ (!originalColumnsMap[key].comment && newColumnsMap[key].comment) ||
+ (originalColumnsMap[key].comment && !newColumnsMap[key].comment) ||
+ (originalColumnsMap[key].comment &&
+ newColumnsMap[key].comment &&
+ originalColumnsMap[key].comment !== newColumnsMap[key].comment)
+ ) {
+ updates.push({
+ '@type': 'updateColumnComment',
+ fieldName: [newColumnsMap[key].name],
+ newComment: newColumnsMap[key].comment
+ })
+ }
+ }
+ }
+
+ // job template updateTemplate
+ if (
+ JSON.stringify(originalData) !== JSON.stringify(newData) &&
+ originalData.jobType &&
+ originalData.name === newData.name &&
+ originalData.comment === newData.comment
+ ) {
+ const newTemplate = {
+ '@type': newData.jobType
+ }
+ originalData.executable !== newData.executable && (newTemplate['newExecutable'] = newData.executable)
+ JSON.stringify(originalData.arguments) !== JSON.stringify(newData.arguments) &&
+ (newTemplate['newArguments'] = newData.arguments)
+ JSON.stringify(originalData.environments) !== JSON.stringify(newData.environments) &&
+ (newTemplate['newEnvironments'] = newData.environments)
+ JSON.stringify(originalData.customFields) !== JSON.stringify(newData.customFields) &&
+ (newTemplate['newCustomFields'] = newData.customFields)
+ if (newData.jobType === 'shell') {
+ JSON.stringify(originalData.scripts) !== JSON.stringify(newData.scripts) &&
+ (newTemplate['newScripts'] = newData.scripts)
+ } else {
+ originalData.className !== newData.className && (newTemplate['newClassName'] = newData.className)
+ JSON.stringify(originalData.jars) !== JSON.stringify(newData.jars) && (newTemplate['newJars'] = newData.jars)
+ JSON.stringify(originalData.files) !== JSON.stringify(newData.files) && (newTemplate['newFiles'] = newData.files)
+ JSON.stringify(originalData.archives) !== JSON.stringify(newData.archives) &&
+ (newTemplate['newArchives'] = newData.archives)
+ JSON.stringify(originalData.configs) !== JSON.stringify(newData.configs) &&
+ (newTemplate['newConfigs'] = newData.configs)
+ }
+ updates.push({ '@type': 'updateTemplate', newTemplate })
+ }
+
+ return updates
+}
+
+export const hasNull = obj => {
+ return Object.keys(obj).some(key => obj[key] === null)
+}
+
+/*
+ * The following functions originally come from the MIT licensed Vben project.
+ */
+
+export const deepMerge = (source, target, mergeArrays = 'replace') => {
+ if (!target) {
+ return source
+ }
+ if (!source) {
+ return target
+ }
+
+ return mergeWith({}, source, target, (sourceValue, targetValue) => {
+ if (isArray(targetValue) && isArray(sourceValue)) {
+ switch (mergeArrays) {
+ case 'union':
+ return unionWith(sourceValue, targetValue, isEqual)
+ case 'intersection':
+ return intersectionWith(sourceValue, targetValue, isEqual)
+ case 'concat':
+ return sourceValue.concat(targetValue)
+ case 'replace':
+ return targetValue
+ default:
+ throw new Error(`Unknown merge array strategy: ${mergeArrays}`)
+ }
+ }
+ if (isObject(targetValue) && isObject(sourceValue)) {
+ return deepMerge(sourceValue, targetValue, mergeArrays)
+ }
+
+ return undefined
+ })
+}
+
+export function setObjToUrlParams(baseUrl, obj) {
+ let parameters = ''
+ for (const key in obj) {
+ parameters += key + '=' + encodeURIComponent(obj[key]) + '&'
+ }
+ parameters = parameters.replace(/&$/, '')
+
+ return /\?$/.test(baseUrl) ? baseUrl + parameters : baseUrl.replace(/\/?$/, '?') + parameters
+}
+
+export function extractPlaceholder(str) {
+ const regex = /\{\{(.*?)\}\}/g
+ let matches = []
+ let match
+
+ while ((match = regex.exec(str)) !== null) {
+ matches.push(match[1])
+ }
+
+ return matches
+}
+
+export const updateTreeData = (list = [], key, children = []) => {
+ return list.map(node => {
+ if (node.key === key) {
+ return {
+ ...node,
+ isLeaf: children?.length === 0,
+ children
+ }
+ }
+
+ // Always recurse if node has children property (even if empty array)
+ if (node.children) {
+ return {
+ ...node,
+ children: updateTreeData(node.children, key, children)
+ }
+ }
+
+ return node
+ })
+}
+
+export const findInTree = (tree, key, value) => {
+ let result = null
+
+ const found = _.find(tree, node => node[key] === value)
+ if (found) {
+ result = found
+ } else {
+ _.forEach(tree, node => {
+ if (_.isEmpty(result) && node.children) {
+ result = findInTree(node.children, key, value)
+ }
+ })
+ }
+
+ return result
+}
+
+export const formatNumber = num => {
+ if (num >= 1000000) {
+ return (num / 1000000).toFixed(1).replace(/\.0$/, '') + 'm'
+ } else if (num >= 1000) {
+ return (num / 1000).toFixed(1).replace(/\.0$/, '') + 'k'
+ }
+
+ return num.toString()
+}
+
+export const copyToClipboard = async text => {
+ if (navigator.clipboard && window.isSecureContext) {
+ return navigator.clipboard.writeText(text)
+ } else {
+ const textArea = document.createElement('textarea')
+ textArea.value = text
+ textArea.style.position = 'fixed'
+ textArea.style.left = '-999999px'
+ document.body.appendChild(textArea)
+ textArea.focus()
+ textArea.select()
+ try {
+ document.execCommand('copy')
+ } catch (err) {
+ throw new Error('Failed to copy path')
+ }
+ document.body.removeChild(textArea)
+
+ return Promise.resolve()
+ }
+}
+
+export const formatFileSize = sizeInBytes => {
+ if (sizeInBytes === undefined || sizeInBytes === null) return '-'
+ if (sizeInBytes < 1024) return `${sizeInBytes} B`
+ if (sizeInBytes < 1024 * 1024) return `${(sizeInBytes / 1024).toFixed(2)} KB`
+ if (sizeInBytes < 1024 * 1024 * 1024) return `${(sizeInBytes / (1024 * 1024)).toFixed(2)} MB`
+
+ return `${(sizeInBytes / (1024 * 1024 * 1024)).toFixed(2)} GB`
+}
+
+export const formatLastModified = timestamp => {
+ if (timestamp === undefined || timestamp === null) return '-'
+ try {
+ const date = new Date(Number(timestamp))
+ const year = date.getFullYear()
+ const month = (date.getMonth() + 1).toString().padStart(2, '0')
+ const day = date.getDate().toString().padStart(2, '0')
+ const hours = date.getHours().toString().padStart(2, '0')
+ const minutes = date.getMinutes().toString().padStart(2, '0')
+ const seconds = date.getSeconds().toString().padStart(2, '0')
+
+ return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
+ } catch (e) {
+ console.error('Error formatting lastModified:', e)
+
+ return String(timestamp) // Fallback to string representation of bigint
+ }
+}
+
+export function capitalizeFirstLetter(input) {
+ if (!input) return input
+
+ return input.charAt(0).toUpperCase() + input.slice(1)
+}
+
+export function extractNumbersInParentheses(str) {
+ let regex = /\((\d+(?:,\d+)*)\)/g
+ let matches = []
+ let match
+
+ while ((match = regex.exec(str)) !== null) {
+ matches.push(match[1])
+ }
+
+ return matches[0] || ''
+}
+
+export function sanitizeText(str, options = {}) {
+ const defaults = {
+ removeTabs: true,
+ removeNewlines: false,
+ removeMultipleSpaces: false,
+ trim: true,
+ maxLength: null
+ }
+
+ const config = { ...defaults, ...options }
+ let result = str
+
+ if (config.removeTabs) {
+ result = result.replace(/\t/g, ' ')
+ }
+
+ if (config.removeNewlines) {
+ result = result.replace(/[\n\r]/g, ' ')
+ }
+
+ if (config.removeMultipleSpaces) {
+ result = result.replace(/\s+/g, ' ')
+ }
+
+ if (config.trim) {
+ result = result.trim()
+ }
+
+ if (config.maxLength && result.length > config.maxLength) {
+ result = result.substring(0, config.maxLength)
+ }
+
+ return result
+}
+
+export function generateRandomColor() {
+ return (
+ '#' +
+ Math.floor(Math.random() * 16777215)
+ .toString(16)
+ .padStart(6, '0')
+ )
+}
+
+export const formatToDateTime = (date, format = DATE_TIME_FORMAT) => {
+ return dayjs(date).format(format)
+}
+
+export const getJobParamValues = params => {
+ if (!params) return []
+
+ // Match the content within the double curly braces {{...}}
+ const regex = /\{\{([^}]+)\}\}/g
+ const matches = []
+ let match
+
+ while ((match = regex.exec(params)) !== null) {
+ matches.push(match[1])
+ }
+
+ return matches
+}
diff --git a/web-v2/web/src/lib/utils/initial.js b/web-v2/web/src/lib/utils/initial.js
new file mode 100644
index 0000000000..1690c3573b
--- /dev/null
+++ b/web-v2/web/src/lib/utils/initial.js
@@ -0,0 +1,775 @@
+/*
+ * 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.
+ */
+
+export const filesetProviders = [
+ {
+ label: 'Apache Hadoop',
+ value: 'hadoop',
+ defaultProps: [
+ {
+ key: 'location',
+ value: '',
+ required: false,
+ description: 'The storage location of the fileset'
+ }
+ ]
+ }
+]
+
+export const messagingProviders = [
+ {
+ label: 'Apache Kafka',
+ value: 'kafka',
+ defaultProps: [
+ {
+ key: 'bootstrap.servers',
+ value: '',
+ required: true,
+ description: 'The Apache Kafka brokers to connect to, allowing for multiple brokers separated by commas'
+ }
+ ]
+ }
+]
+
+export const providers = [
+ {
+ label: 'Apache Doris',
+ value: 'jdbc-doris',
+ defaultProps: [
+ {
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. com.mysql.jdbc.Driver'
+ },
+ {
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:mysql://localhost:9030'
+ },
+ {
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ {
+ label: 'Apache Hive',
+ value: 'hive',
+ defaultProps: [
+ {
+ key: 'metastore.uris',
+ value: '',
+ required: true,
+ description: 'The Apache Hive metastore URIs'
+ }
+ ]
+ },
+ {
+ label: 'Apache Hudi',
+ value: 'lakehouse-hudi',
+ defaultProps: [
+ {
+ key: 'catalog-backend',
+ value: 'hms',
+ defaultValue: 'hms',
+ required: true,
+ select: ['hms'],
+ description: 'Apache Hudi catalog type choose properties'
+ },
+ {
+ key: 'uri',
+ value: '',
+ required: true,
+ description: 'Apache Hudi catalog uri config'
+ }
+ ]
+ },
+ {
+ label: 'Apache Iceberg',
+ value: 'lakehouse-iceberg',
+ defaultProps: [
+ {
+ key: 'catalog-backend',
+ value: 'hive',
+ defaultValue: 'hive',
+ required: true,
+ description: 'Apache Iceberg catalog type choose properties',
+ select: ['hive', 'jdbc', 'rest']
+ },
+ {
+ key: 'uri',
+ value: '',
+ required: true,
+ description: 'Apache Iceberg catalog uri config'
+ },
+ {
+ key: 'warehouse',
+ value: '',
+ description: 'Apache Iceberg catalog warehouse config'
+ },
+ {
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'rest'],
+ description: `"com.mysql.jdbc.Driver" or "com.mysql.cj.jdbc.Driver" for MySQL, "org.postgresql.Driver" for PostgreSQL`
+ },
+ {
+ key: 'jdbc-user',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'rest']
+ },
+ {
+ key: 'jdbc-password',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'rest']
+ },
+ {
+ key: 'authentication.type',
+ value: 'simple',
+ defaultValue: 'simple',
+ required: false,
+ description:
+ 'The type of authentication for Paimon catalog backend, currently Gravitino only supports Kerberos and simple',
+ select: ['simple', 'Kerberos']
+ },
+ {
+ key: 'authentication.kerberos.principal',
+ value: '',
+ required: true,
+ description: 'The principal of the Kerberos authentication.',
+ parentField: 'authentication.type',
+ hide: ['simple']
+ },
+ {
+ key: 'authentication.kerberos.keytab-uri',
+ value: '',
+ required: true,
+ description: 'The URI of The keytab for the Kerberos authentication.',
+ parentField: 'authentication.type',
+ hide: ['simple']
+ }
+ ]
+ },
+ {
+ label: 'Apache Paimon',
+ value: 'lakehouse-paimon',
+ defaultProps: [
+ {
+ key: 'catalog-backend',
+ value: 'filesystem',
+ defaultValue: 'filesystem',
+ required: true,
+ select: ['filesystem', 'hive', 'jdbc']
+ },
+ {
+ key: 'uri',
+ value: '',
+ required: true,
+ description:
+ 'e.g. thrift://127.0.0.1:9083 or jdbc:postgresql://127.0.0.1:5432/db_name or jdbc:mysql://127.0.0.1:3306/metastore_db',
+ parentField: 'catalog-backend',
+ hide: ['filesystem']
+ },
+ {
+ key: 'warehouse',
+ value: '',
+ required: true,
+ description: 'e.g. file:///user/hive/warehouse-paimon/ or hdfs://namespace/hdfs/path'
+ },
+ {
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'filesystem'],
+ description: `"com.mysql.jdbc.Driver" or "com.mysql.cj.jdbc.Driver" for MySQL, "org.postgresql.Driver" for PostgreSQL`
+ },
+ {
+ key: 'jdbc-user',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'filesystem']
+ },
+ {
+ key: 'jdbc-password',
+ value: '',
+ required: true,
+ parentField: 'catalog-backend',
+ hide: ['hive', 'filesystem']
+ },
+ {
+ key: 'authentication.type',
+ value: 'simple',
+ defaultValue: 'simple',
+ required: false,
+ description:
+ 'The type of authentication for Paimon catalog backend, currently Gravitino only supports Kerberos and simple',
+ select: ['simple', 'Kerberos']
+ },
+ {
+ key: 'authentication.kerberos.principal',
+ value: '',
+ required: true,
+ description: 'The principal of the Kerberos authentication.',
+ parentField: 'authentication.type',
+ hide: ['simple']
+ },
+ {
+ key: 'authentication.kerberos.keytab-uri',
+ value: '',
+ required: true,
+ description: 'The URI of The keytab for the Kerberos authentication.',
+ parentField: 'authentication.type',
+ hide: ['simple']
+ }
+ ]
+ },
+ {
+ label: 'Lakehouse Generic',
+ value: 'lakehouse-generic',
+ defaultProps: []
+ },
+ {
+ label: 'MySQL',
+ value: 'jdbc-mysql',
+ defaultProps: [
+ {
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. com.mysql.jdbc.Driver or com.mysql.cj.jdbc.Driver'
+ },
+ {
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:mysql://localhost:3306'
+ },
+ {
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ {
+ label: 'OceanBase',
+ value: 'jdbc-oceanbase',
+ defaultProps: [
+ {
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. com.mysql.jdbc.Driver or com.mysql.cj.jdbc.Driver or com.oceanbase.jdbc.Driver'
+ },
+ {
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:mysql://localhost:2881 or jdbc:oceanbase://localhost:2881'
+ },
+ {
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ {
+ label: 'PostgreSQL',
+ value: 'jdbc-postgresql',
+ defaultProps: [
+ {
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. org.postgresql.Driver'
+ },
+ {
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:postgresql://localhost:5432/your_database'
+ },
+ {
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ },
+ {
+ key: 'jdbc-database',
+ value: '',
+ required: true
+ }
+ ]
+ },
+ {
+ label: 'StarRocks',
+ value: 'jdbc-starrocks',
+ defaultProps: [
+ {
+ key: 'jdbc-driver',
+ value: '',
+ required: true,
+ description: 'e.g. com.mysql.jdbc.Driver'
+ },
+ {
+ key: 'jdbc-url',
+ value: '',
+ required: true,
+ description: 'e.g. jdbc:mysql://localhost:9030'
+ },
+ {
+ key: 'jdbc-user',
+ value: '',
+ required: true
+ },
+ {
+ key: 'jdbc-password',
+ value: '',
+ required: true
+ }
+ ]
+ }
+]
+
+const parameterizedColumnTypes = {
+ char: {
+ params: ['length'],
+ validateParams: params => {
+ if (params.length !== 1) {
+ return {
+ valid: false,
+ message: 'Please set length'
+ }
+ }
+
+ const length = params[0]
+
+ if (length <= 0) {
+ return {
+ valid: false,
+ message: 'The length must be greater than 0'
+ }
+ }
+
+ return {
+ valid: true
+ }
+ }
+ },
+ decimal: {
+ params: ['precision', 'scale'],
+ validateParams: params => {
+ if (params.length !== 2) {
+ return {
+ valid: false,
+ message: 'Please set precision and scale'
+ }
+ }
+
+ const [param1, param2] = params
+ if (param1 <= 0 || param1 > 38) {
+ return {
+ valid: false,
+ message: 'The precision must be between 1 and 38'
+ }
+ }
+
+ if (param2 < 0 || param2 > param1) {
+ return {
+ valid: false,
+ message: 'The scale must be between 0 and the precision'
+ }
+ }
+
+ return {
+ valid: true
+ }
+ }
+ },
+ fixed: {
+ params: ['length'],
+ validateParams: params => {
+ if (params.length !== 1) {
+ return {
+ valid: false,
+ message: 'Please set length'
+ }
+ }
+
+ const length = params[0]
+
+ if (length <= 0) {
+ return {
+ valid: false,
+ message: 'The length must be greater than 0'
+ }
+ }
+
+ return {
+ valid: true
+ }
+ }
+ },
+ varchar: {
+ params: ['length'],
+ validateParams: params => {
+ if (params.length !== 1) {
+ return {
+ valid: false,
+ message: 'Please set length'
+ }
+ }
+
+ const length = params[0]
+
+ if (length <= 0) {
+ return {
+ valid: false,
+ message: 'The length must be greater than 0'
+ }
+ }
+
+ return {
+ valid: true
+ }
+ }
+ }
+}
+
+export const getParameterizedColumnType = type => {
+ if (Object.hasOwn(parameterizedColumnTypes, type)) {
+ return parameterizedColumnTypes[type]
+ }
+}
+
+const relationalColumnTypeMap = {
+ 'lakehouse-iceberg': [
+ 'binary',
+ 'boolean',
+ 'date',
+ 'decimal',
+ 'double',
+ 'fixed',
+ 'float',
+ 'integer',
+ 'long',
+ 'string',
+ 'time',
+ 'timestamp',
+ 'timestamp_tz',
+ 'uuid'
+ ],
+ hive: [
+ 'binary',
+ 'boolean',
+ 'byte',
+ 'char',
+ 'date',
+ 'decimal',
+ 'double',
+ 'float',
+ 'integer',
+ 'interval_day',
+ 'interval_year',
+ 'long',
+ 'short',
+ 'string',
+ 'timestamp',
+ 'varchar'
+ ],
+ 'jdbc-mysql': [
+ 'binary',
+ 'byte',
+ 'byte unsigned',
+ 'char',
+ 'date',
+ 'decimal',
+ 'double',
+ 'float',
+ 'integer',
+ 'integer unsigned',
+ 'long',
+ 'long unsigned',
+ 'short',
+ 'short unsigned',
+ 'string',
+ 'time',
+ 'timestamp',
+ 'varchar'
+ ],
+ 'jdbc-postgresql': [
+ 'binary',
+ 'boolean',
+ 'char',
+ 'date',
+ 'decimal',
+ 'double',
+ 'float',
+ 'integer',
+ 'long',
+ 'short',
+ 'string',
+ 'time',
+ 'timestamp',
+ 'timestamp_tz',
+ 'varchar'
+ ],
+ 'jdbc-starrocks': [
+ 'binary',
+ 'boolean',
+ 'byte',
+ 'char',
+ 'date',
+ 'decimal',
+ 'double',
+ 'float',
+ 'integer',
+ 'long',
+ 'short',
+ 'string',
+ 'timestamp',
+ 'varchar'
+ ],
+ 'jdbc-doris': [
+ 'boolean',
+ 'byte',
+ 'char',
+ 'date',
+ 'decimal',
+ 'double',
+ 'float',
+ 'integer',
+ 'long',
+ 'short',
+ 'string',
+ 'timestamp',
+ 'varchar'
+ ],
+ 'lakehouse-paimon': [
+ 'binary',
+ 'boolean',
+ 'byte',
+ 'char',
+ 'date',
+ 'decimal',
+ 'double',
+ 'fixed',
+ 'float',
+ 'integer',
+ 'long',
+ 'short',
+ 'string',
+ 'time',
+ 'timestamp',
+ 'timestamp_tz',
+ 'varchar'
+ ],
+ 'lakehouse-generic': [
+ 'binary',
+ 'boolean',
+ 'byte',
+ 'date',
+ 'decimal',
+ 'double',
+ 'fixed',
+ 'float',
+ 'integer',
+ 'interval_day',
+ 'interval_year',
+ 'list',
+ 'long',
+ 'map',
+ 'short',
+ 'struct',
+ 'string',
+ 'time',
+ 'timestamp',
+ 'union'
+ ],
+ 'jdbc-oceanbase': [
+ 'binary',
+ 'byte',
+ 'byte unsigned',
+ 'char',
+ 'date',
+ 'decimal',
+ 'double',
+ 'float',
+ 'integer',
+ 'integer unsigned',
+ 'long',
+ 'long unsigned',
+ 'short',
+ 'short unsigned',
+ 'string',
+ 'time',
+ 'timestamp',
+ 'varchar'
+ ]
+}
+
+export const getRelationalColumnType = catalog => {
+ if (Object.hasOwn(relationalColumnTypeMap, catalog)) {
+ return relationalColumnTypeMap[catalog]
+ }
+
+ return []
+}
+
+const relationalTablePropInfoMap = {
+ hive: {
+ reserved: ['comment', 'EXTERNAL', 'numFiles', 'totalSize', 'transient_lastDdlTime'],
+ immutable: [
+ 'format',
+ 'input-format',
+ 'location',
+ 'output-format',
+ 'serde-name',
+ 'serde-lib',
+ 'serde.parameter',
+ 'table-type'
+ ],
+ allowDelete: true,
+ allowAdd: true
+ },
+ 'jdbc-starrocks': {
+ reserved: [],
+ allowDelete: true,
+ allowAdd: true
+ },
+ 'jdbc-doris': {
+ reserved: [],
+ allowDelete: true,
+ allowAdd: true
+ },
+ 'jdbc-mysql': {
+ reserved: [],
+ immutable: ['auto-increment-offset', 'engine'],
+ allowDelete: false,
+ allowAdd: true
+ },
+ 'jdbc-oceanbase': {
+ reserved: [],
+ immutable: [],
+ allowDelete: false,
+ allowAdd: false
+ },
+ 'jdbc-postgresql': {
+ reserved: [],
+ immutable: [],
+ allowDelete: false,
+ allowAdd: false
+ },
+ 'lakehouse-hudi': {
+ reserved: [],
+ immutable: [],
+ allowDelete: true,
+ allowAdd: true
+ },
+ 'lakehouse-iceberg': {
+ reserved: [
+ 'cherry-pick-snapshot-id',
+ 'comment',
+ 'creator',
+ 'current-snapshot-id',
+ 'identifier-fields',
+ 'sort-order',
+ 'write.distribution-mode'
+ ], // Can't be set or modified
+ immutable: ['location', 'provider', 'format', 'format-version'], // Can't be modified after creation
+ allowDelete: true,
+ allowAdd: true
+ },
+ 'lakehouse-paimon': {
+ reserved: [
+ 'bucket-key',
+ 'comment',
+ 'merge-engine',
+ 'owner',
+ 'partition',
+ 'primary-key',
+ 'rowkind.field',
+ 'sequence.field'
+ ],
+ immutable: ['merge-engine', 'rowkind.field', 'sequence.field'],
+ allowDelete: true,
+ allowAdd: true
+ },
+ 'lakehouse-generic': {
+ reserved: [],
+ immutable: ['format', 'location'],
+ allowDelete: true,
+ allowAdd: true
+ },
+ kafka: {
+ reserved: [],
+ immutable: ['replication-factor'],
+ allowAdd: true
+ },
+ fileset: {
+ reserved: [],
+ immutable: ['default-location-name'],
+ allowAdd: true
+ }
+}
+
+export const getRelationalTablePropInfo = catalog => {
+ if (Object.hasOwn(relationalTablePropInfoMap, catalog)) {
+ return relationalTablePropInfoMap[catalog]
+ }
+
+ return {
+ reserved: [],
+ immutable: [],
+ allowDelete: true,
+ allowAdd: true
+ }
+}
diff --git a/web-v2/web/src/lib/utils/is.js b/web-v2/web/src/lib/utils/is.js
new file mode 100644
index 0000000000..ee06091f43
--- /dev/null
+++ b/web-v2/web/src/lib/utils/is.js
@@ -0,0 +1,32 @@
+/*
+ * 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.
+ */
+
+export { isString, isFunction, isUndefined, isEmpty, isNull } from 'lodash-es'
+
+export function is(val, type) {
+ return toString.call(val) === `[object ${type}]`
+}
+
+export function isObject(val) {
+ return val !== null && is(val, 'Object')
+}
+
+export function isArray(val) {
+ return val && Array.isArray(val)
+}
diff --git a/web-v2/web/src/lib/utils/regex.js b/web-v2/web/src/lib/utils/regex.js
new file mode 100644
index 0000000000..8fe271bf9d
--- /dev/null
+++ b/web-v2/web/src/lib/utils/regex.js
@@ -0,0 +1,27 @@
+/*
+ * 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.
+ */
+
+export const nameRegex = /^\w[\w/=-]{0,63}$/
+
+export const nameRegexDesc =
+ 'This field must start with a letter, digit, or underscore, can include alphanumeric characters, underscores, slashes (/), equal signs (=), or hyphens (-), and must be between 1 and 64 characters long.'
+
+export const usernameRegex = /^\w[\w-.@]*$/
+
+export const keyRegex = /^[a-zA-Z_][a-zA-Z0-9-_.]*$/
diff --git a/web-v2/web/src/lib/utils/tailwind.js b/web-v2/web/src/lib/utils/tailwind.js
new file mode 100644
index 0000000000..9e526777ba
--- /dev/null
+++ b/web-v2/web/src/lib/utils/tailwind.js
@@ -0,0 +1,25 @@
+/*
+ * 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 { ClassValue, clsx } from 'clsx'
+import { twMerge } from 'tailwind-merge'
+
+export function cn(...inputs) {
+ return twMerge(clsx(inputs))
+}
diff --git a/web-v2/web/src/test/setup.js b/web-v2/web/src/test/setup.js
new file mode 100644
index 0000000000..c15d1a7a12
--- /dev/null
+++ b/web-v2/web/src/test/setup.js
@@ -0,0 +1,30 @@
+/*
+ * 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.
+ */
+
+// Mock window.location - Required for OIDC redirect URI construction
+Object.defineProperty(window, 'location', {
+ value: {
+ href: 'http://localhost:3000',
+ origin: 'http://localhost:3000',
+ pathname: '/',
+ search: '',
+ hash: ''
+ },
+ writable: true
+})
diff --git a/web-v2/web/tailwind.config.js b/web-v2/web/tailwind.config.js
new file mode 100644
index 0000000000..c30bda59b9
--- /dev/null
+++ b/web-v2/web/tailwind.config.js
@@ -0,0 +1,65 @@
+/*
+ * 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 tailwindTheme from './src/lib/theme/tailwind'
+const { fontFamily } = require('tailwindcss/defaultTheme')
+
+/** @type {import('tailwindcss').Config} */
+const config = {
+ darkMode: 'selector',
+ corePlugins: {
+ preflight: false
+ },
+ content: ['./src/**/*.{js,css}'],
+ theme: {
+ container: {
+ center: true,
+ padding: '1.5rem',
+ screens: {
+ '2xl': '1440px'
+ }
+ },
+ extend: {
+ fontFamily: {
+ sans: ['var(--font-sans)', ...fontFamily.sans]
+ },
+ backgroundColor: {
+ colorDarkBgContainer: '#141414',
+ colorDarkBg: '#1f1f1f',
+ colorColumnBg: 'rgba(60,60,60,1)',
+ primary: '#1677ff',
+ defaultPrimary: '#0369a1',
+ borderBlack: '#303030',
+ borderWhite: '#ffffff'
+ },
+ colors: {
+ primary: '#1677ff',
+ defaultPrimary: '#0369a1',
+ borderBlack: '#303030',
+ borderWhite: 'rgba(5,5,5,0.06)'
+ },
+ backgroundImage: {
+ loginBg: 'url("/image/login-bg.jpg")'
+ }
+ }
+ },
+ plugins: []
+}
+
+module.exports = config
diff --git a/web-v2/web/vitest.config.js b/web-v2/web/vitest.config.js
new file mode 100644
index 0000000000..4c0a75fde3
--- /dev/null
+++ b/web-v2/web/vitest.config.js
@@ -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 { defineConfig } from 'vitest/config'
+import { resolve } from 'path'
+
+export default defineConfig({
+ test: {
+ globals: true,
+ environment: 'jsdom',
+ setupFiles: ['./src/test/setup.js'],
+ include: ['src/**/*.{test,spec}.{js,ts,jsx,tsx}'],
+ exclude: ['node_modules', 'dist', '.next'],
+ coverage: {
+ provider: 'v8',
+ reporter: ['text', 'json', 'html'],
+ exclude: [
+ 'node_modules/',
+ 'src/test/',
+ '**/*.config.js',
+ '**/*.d.ts',
+ 'coverage/**',
+ '.next/**',
+ 'src/app/**',
+ 'src/components/**',
+ 'src/lib/icons/**'
+ ]
+ }
+ },
+ resolve: {
+ alias: {
+ '@': resolve(__dirname, './src')
+ }
+ }
+})
diff --git a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/CatalogsPage.java b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/CatalogsPage.java
index e47cb28215..9734d763b0 100644
--- a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/CatalogsPage.java
+++ b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/CatalogsPage.java
@@ -22,6 +22,7 @@ package org.apache.gravitino.integration.test.web.ui.pages;
import static org.apache.gravitino.integration.test.web.ui.CatalogsPageTest.DISTRIBUTION;
import static org.apache.gravitino.integration.test.web.ui.CatalogsPageTest.SORT_ORDERS;
+import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@@ -248,7 +249,7 @@ public class CatalogsPage extends BaseWebIT {
try {
String xpath = "//button[@data-refer='view-entity-" + name + "']";
WebElement btn = driver.findElement(By.xpath(xpath));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
clickAndWait(btn);
} catch (Exception e) {
@@ -260,7 +261,7 @@ public class CatalogsPage extends BaseWebIT {
try {
String xpath = "//button[@data-refer='edit-entity-" + name + "']";
WebElement btn = driver.findElement(By.xpath(xpath));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
clickAndWait(btn);
} catch (Exception e) {
@@ -281,7 +282,7 @@ public class CatalogsPage extends BaseWebIT {
try {
String xpath = "//button[@data-refer='delete-entity-" + name + "']";
WebElement btn = driver.findElement(By.xpath(xpath));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
clickAndWait(btn);
} catch (Exception e) {
@@ -425,7 +426,7 @@ public class CatalogsPage extends BaseWebIT {
try {
String xpath = "//a[@href='?metalake=" + metalakeName + "']";
WebElement link = tableGrid.findElement(By.xpath(xpath));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
clickAndWait(link);
} catch (Exception e) {
@@ -444,7 +445,7 @@ public class CatalogsPage extends BaseWebIT {
+ catalogType
+ "']";
WebElement link = tableGrid.findElement(By.xpath(xpath));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
clickAndWait(link);
} catch (Exception e) {
@@ -466,7 +467,7 @@ public class CatalogsPage extends BaseWebIT {
+ schemaName
+ "']";
WebElement link = tableGrid.findElement(By.xpath(xpath));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
clickAndWait(link);
} catch (Exception e) {
@@ -494,7 +495,7 @@ public class CatalogsPage extends BaseWebIT {
+ tableName
+ "']";
WebElement link = tableGrid.findElement(By.xpath(xpath));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
clickAndWait(link);
} catch (Exception e) {
@@ -504,7 +505,7 @@ public class CatalogsPage extends BaseWebIT {
public void clickBreadCrumbsToCatalogs() {
try {
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.elementToBeClickable(metalakeNameLink));
clickAndWait(metalakeNameLink);
} catch (Exception e) {
@@ -595,7 +596,7 @@ public class CatalogsPage extends BaseWebIT {
throws InterruptedException {
try {
// Check the drawer css property value
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.visibilityOf(detailsDrawer));
String drawerVisible = detailsDrawer.getCssValue("visibility");
boolean isVisible = Objects.equals(drawerVisible, "visible");
@@ -642,7 +643,7 @@ public class CatalogsPage extends BaseWebIT {
+ name
+ "']//p[@data-refer='tree-node']";
WebElement treeNode = treeView.findElement(By.xpath(xpath));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.visibilityOf(treeNode));
// Check if the link text is match with name
@@ -679,7 +680,7 @@ public class CatalogsPage extends BaseWebIT {
public boolean verifyShowTableTitle(String title) {
try {
WebElement text = tabTableBtn.findElement(By.tagName("p"));
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.visibilityOf(text));
boolean matchTitle = Objects.equals(text.getText(), title);
if (!matchTitle) {
@@ -704,7 +705,7 @@ public class CatalogsPage extends BaseWebIT {
*/
public boolean verifyShowPropertiesItemInList(
String item, String key, String value, Boolean isHighlight) {
- WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
String xpath;
if (isHighlight) {
xpath = "//div[@data-refer='props-" + item + "-" + key + "-highlight']";
@@ -729,7 +730,7 @@ public class CatalogsPage extends BaseWebIT {
} catch (Exception e) {
LOG.error(e.getMessage(), e);
}
- WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
String xpath =
"//div[@data-refer='table-grid']"
+ "//div[contains(@class, 'MuiDataGrid-main')]"
@@ -782,7 +783,7 @@ public class CatalogsPage extends BaseWebIT {
if (isColumnLevel) {
xpath = xpath + "//p";
}
- WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
List<WebElement> list =
wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(xpath)));
List<String> texts = new ArrayList<>();
@@ -837,7 +838,7 @@ public class CatalogsPage extends BaseWebIT {
formattedColName = colName + " desc nulls_last";
}
List<WebElement> tooltipItems = driver.findElements(By.xpath(xpath));
- new WebDriverWait(driver, MAX_TIMEOUT)
+ new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT))
.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));
List<String> texts = new ArrayList<>();
for (WebElement text : tooltipItems) {
@@ -881,7 +882,7 @@ public class CatalogsPage extends BaseWebIT {
}
public boolean verifyBackHomePage() {
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.visibilityOf(metalakePageTitle));
boolean matchTitle = Objects.equals(metalakePageTitle.getText(), "Metalakes");
if (!matchTitle) {
@@ -892,7 +893,7 @@ public class CatalogsPage extends BaseWebIT {
}
public boolean verifyRefreshPage() {
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(
webDriver ->
((JavascriptExecutor) webDriver)
@@ -927,7 +928,7 @@ public class CatalogsPage extends BaseWebIT {
}
public boolean verifyTreeNodes(List<String> treeNodes) {
- WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
List<WebElement> list =
wait.until(
ExpectedConditions.visibilityOfAllElementsLocatedBy(
@@ -951,7 +952,7 @@ public class CatalogsPage extends BaseWebIT {
public boolean verifySelectedNode(String nodeName) {
- WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
WebElement selectedNode =
wait.until(
diff --git a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
index 468d16f37f..74a8fbc77f 100644
--- a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
+++ b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/MetalakePage.java
@@ -19,6 +19,7 @@
package org.apache.gravitino.integration.test.web.ui.pages;
+import java.time.Duration;
import java.util.List;
import java.util.Objects;
import java.util.Set;
@@ -132,7 +133,7 @@ public class MetalakePage extends BaseWebIT {
}
public void setQueryParams(String queryParams) {
- WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
WebElement queryInputElement =
wait.until(ExpectedConditions.elementToBeClickable(queryMetalakeInput));
clearQueryInput();
@@ -184,7 +185,7 @@ public class MetalakePage extends BaseWebIT {
public void clickMetalakeLink(String name) {
try {
setQueryParams(name);
- WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(ACTION_SLEEP));
String xpath = "//a[@data-refer='metalake-link-" + name + "']";
WebElement metalakeLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));
@@ -328,7 +329,7 @@ public class MetalakePage extends BaseWebIT {
public boolean verifyLinkToCatalogsPage(String name) throws InterruptedException {
try {
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.visibilityOf(metalakeNameLink));
wait.until(ExpectedConditions.urlContains(metalakeNameLink.getAttribute("href")));
@@ -349,7 +350,7 @@ public class MetalakePage extends BaseWebIT {
public boolean verifyRefreshPage() {
try {
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(
webDriver ->
((JavascriptExecutor) webDriver)
diff --git a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/BaseWebIT.java b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/BaseWebIT.java
index faaa6ee895..16396e9cc8 100644
--- a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/BaseWebIT.java
+++ b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/BaseWebIT.java
@@ -77,7 +77,7 @@ public class BaseWebIT extends BaseIT {
protected void clickAndWait(final Object locator) throws InterruptedException {
try {
// wait the element is available
- WebDriverWait wait = new WebDriverWait(driver, MAX_TIMEOUT);
+ WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(MAX_TIMEOUT));
wait.until(ExpectedConditions.visibilityOf(locatorElement(locator)));
wait.until(ExpectedConditions.elementToBeClickable(locatorElement(locator)));
diff --git a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverManager.java b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverManager.java
index 22cd9c53a1..ddf5bbf68b 100644
--- a/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverManager.java
+++ b/web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/utils/WebDriverManager.java
@@ -18,7 +18,7 @@
*/
package org.apache.gravitino.integration.test.web.ui.utils;
-import java.util.concurrent.TimeUnit;
+import java.time.Duration;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.TimeoutException;
@@ -36,12 +36,12 @@ public class WebDriverManager {
WebDriverProvider provide = new ChromeWebDriverProvider();
WebDriver driver = generateWebDriver(provide);
- driver.manage().timeouts().implicitlyWait(BaseWebIT.MAX_IMPLICIT_WAIT, TimeUnit.SECONDS);
+ driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(BaseWebIT.MAX_IMPLICIT_WAIT));
driver.get(url);
// wait for webpage load compiled.
try {
- (new WebDriverWait(driver, BaseWebIT.MAX_TIMEOUT))
+ (new WebDriverWait(driver, Duration.ofSeconds(BaseWebIT.MAX_TIMEOUT)))
.until(
d -> {
String gravitinoVersion = d.findElement(By.id("gravitino_version")).getText();
diff --git a/web/web/build.gradle.kts b/web/web/build.gradle.kts
index 89c6e5c61f..d083baa15f 100644
--- a/web/web/build.gradle.kts
+++ b/web/web/build.gradle.kts
@@ -66,7 +66,6 @@ tasks {
}
clean {
- delete(".node")
delete("build")
delete(".next")
delete("dist")