This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 7463af33c2c kie-issues#2544: Create a landing page for the Data Index  
 (#2551)
7463af33c2c is described below

commit 7463af33c2cada6518a266cf3070ae0ad6f26b1c
Author: Kumar Aditya Raj <[email protected]>
AuthorDate: Tue Sep 17 21:26:34 2024 +0530

    kie-issues#2544: Create a landing page for the Data Index   (#2551)
---
 packages/data-index-webapp/env/index.js       | 33 +++++++++++++
 packages/data-index-webapp/package.json       | 36 ++++++++++++++
 packages/data-index-webapp/src/index.html     | 50 +++++++++++++++++++
 packages/data-index-webapp/src/styles.css     | 70 +++++++++++++++++++++++++++
 packages/data-index-webapp/static/favicon.svg | 44 +++++++++++++++++
 packages/data-index-webapp/webpack.config.js  | 45 +++++++++++++++++
 pnpm-lock.yaml                                | 33 +++++++++++++
 repo/graph.dot                                |  2 +
 repo/graph.json                               |  7 +++
 9 files changed, 320 insertions(+)

diff --git a/packages/data-index-webapp/env/index.js 
b/packages/data-index-webapp/env/index.js
new file mode 100644
index 00000000000..45859a2171b
--- /dev/null
+++ b/packages/data-index-webapp/env/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.
+ */
+
+const { varsWithName, getOrDefault, composeEnv } = 
require("@kie-tools-scripts/build-env");
+
+module.exports = composeEnv([require("@kie-tools/root-env/env")], {
+  vars: varsWithName({}),
+  get env() {
+    return {
+      dataIndexWebapp: {
+        dev: {
+          port: 9026,
+        },
+      },
+    };
+  },
+});
diff --git a/packages/data-index-webapp/package.json 
b/packages/data-index-webapp/package.json
new file mode 100644
index 00000000000..1627e52a3d1
--- /dev/null
+++ b/packages/data-index-webapp/package.json
@@ -0,0 +1,36 @@
+{
+  "name": "@kie-tools/data-index-webapp",
+  "version": "0.0.0",
+  "description": "",
+  "license": "Apache-2.0",
+  "keywords": [],
+  "homepage": "https://github.com/apache/incubator-kie-tools";,
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/apache/incubator-kie-tools.git";
+  },
+  "bugs": {
+    "url": "https://github.com/apache/incubator-kie-tools/issues";
+  },
+  "types": "./dist/index.d.ts",
+  "main": "dist/index.js",
+  "scripts": {
+    "build:dev": "rimraf dist && webpack --env dev",
+    "build:prod": "pnpm lint && pnpm test && rimraf dist && webpack",
+    "lint": "echo 'Linting'",
+    "start": "webpack serve --host 0.0.0.0 --env dev",
+    "test": "run-script-if --ignore-errors \"$(build-env 
tests.ignoreFailures)\" --bool \"$(build-env tests.run)\" --then \"jest 
--silent --verbose --passWithNoTests\""
+  },
+  "devDependencies": {
+    "@kie-tools-core/webpack-base": "workspace:*",
+    "@kie-tools/root-env": "workspace:*",
+    "copy-webpack-plugin": "^11.0.0",
+    "jest": "^29.7.0",
+    "rimraf": "^3.0.2",
+    "ts-node": "^10.9.2",
+    "webpack": "^5.94.0",
+    "webpack-cli": "^4.10.0",
+    "webpack-dev-server": "^4.15.1",
+    "webpack-merge": "^5.9.0"
+  }
+}
diff --git a/packages/data-index-webapp/src/index.html 
b/packages/data-index-webapp/src/index.html
new file mode 100644
index 00000000000..1456f070217
--- /dev/null
+++ b/packages/data-index-webapp/src/index.html
@@ -0,0 +1,50 @@
+<!--
+  ~ 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.      
+-->
+
+<!doctype html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>Data Index Webapp</title>
+    <link rel="stylesheet" href="styles.css" />
+    <link rel="shortcut icon" type="image/x-icon" href="favicon.svg" />
+  </head>
+  <body>
+    <div class="maindiv">
+      <div class="container">
+        <div class="logo" style="display: flex; justify-content: center">
+          <img src="favicon.svg" alt="KIE Logo" />
+          <h1>Data Index Service</h1>
+        </div>
+        <div>
+          <h4>Your Data Index service is up and working!</h4>
+        </div>
+        <p>
+          Data Index service is a dedicated supporting service that stores the 
data related to the workflow and process
+          instances and their associated jobs. This service provides a GraphQL 
endpoint allowing users to query and
+          modify that data.
+        </p>
+        <div>
+          <a href="https://graphql.org/learn/"; class="btn" 
target="_blank">GraphQL docs</a>
+        </div>
+      </div>
+    </div>
+  </body>
+</html>
diff --git a/packages/data-index-webapp/src/styles.css 
b/packages/data-index-webapp/src/styles.css
new file mode 100644
index 00000000000..618ac178a41
--- /dev/null
+++ b/packages/data-index-webapp/src/styles.css
@@ -0,0 +1,70 @@
+body {
+  margin: 0px;
+  padding: 0px;
+}
+
+.maindiv {
+  font-family: "RedHatText", "Overpass", overpass, helvetica, arial, 
sans-serif;
+  background-color: #fff;
+  color: #fff;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  height: 100vh;
+}
+
+.container {
+  text-align: center;
+  background-color: #fff;
+  max-width: 700px;
+}
+
+.logo img {
+  width: 80px;
+  height: auto;
+}
+
+h1 {
+  font-size: 48px;
+  color: #e44c3b;
+  padding-left: 15px;
+}
+
+h4 {
+  font-size: 30px;
+  color: #c94848;
+  margin-top: 10px;
+}
+
+p {
+  font-size: 16px;
+  color: #1f1e1e;
+  margin-top: 5px;
+  margin-bottom: 40px;
+}
+
+.btn {
+  padding: 10px 20px;
+  background-color: #e44c3b;
+  color: #fff;
+  text-decoration: none;
+  border-radius: 5px;
+  font-size: 16px;
+  transition: background-color 0.3s;
+}
+
+.btn:hover {
+  background-color: #c73828;
+}
+
+@media (prefers-color-scheme: dark) {
+  .maindiv,
+  .container {
+    background-color: #232121;
+  }
+
+  h4,
+  p {
+    color: #fefefe;
+  }
+}
diff --git a/packages/data-index-webapp/static/favicon.svg 
b/packages/data-index-webapp/static/favicon.svg
new file mode 100644
index 00000000000..8806924e382
--- /dev/null
+++ b/packages/data-index-webapp/static/favicon.svg
@@ -0,0 +1,44 @@
+<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg"; 
viewBox="0 0 1024 1024">
+  <!--
+       - 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.
+       -->
+  <defs>
+    <style>
+                       
.cls-1{fill:#f5891f;}.cls-2{fill:#97d4e8;}.cls-3{fill:#fff;}.cls-4{fill:#085870;}
+               </style>
+  </defs>
+  <title>
+               kie_icon_rgb_fullcolor_default
+       </title>
+  <path
+    class="cls-1"
+    
d="M921.17,381.72V280.19l-251.84,85.9a188.74,188.74,0,0,0-102.28,96.54l-46.6,101.14,45.25,30.1L512,719.41,458.29,593.87l45.26-30.1L456.94,462.63a188.62,188.62,0,0,0-101.47-96.22l-252.65-81v96.29a247.75,247.75,0,0,0,0,333.86V886.13l295.12,93.34v28.38A15.2,15.2,0,0,0,413.1,1023h197a15.2,15.2,0,0,0,15.15-15.15V977.91l295.91-97.66V715.58a247.72,247.72,0,0,0,0-333.86Z"
+  />
+  <path
+    class="cls-2"
+    
d="M648.57,309.12l272.6-93V1L512,211.81,102.82,6.62V221.77l273,87.49A249.38,249.38,0,0,1,512,437.26,249.35,249.35,0,0,1,648.57,309.12Z"
+  />
+  <circle class="cls-3" cx="737.68" cy="548.65" r="145.89" />
+  <path class="cls-4" d="M787.05,463.14a98.74,98.74,0,1,0,49.37,85.51H737.68Z" 
/>
+  <circle class="cls-3" cx="286.32" cy="548.65" r="145.89" />
+  <path class="cls-4" d="M335.68,463.14a98.74,98.74,0,1,0,49.38,85.51H286.32Z" 
/>
+  <path
+    class="cls-3"
+    
d="M414.88,404.23a187.59,187.59,0,0,1,42.06,58.4l46.61,101.14-45.26,30.1L512,719.41l53.7-125.54-45.25-30.1,46.6-101.14a188.74,188.74,0,0,1,102.28-96.54l251.84-85.9v-64l-272.6,93A249.35,249.35,0,0,0,512,437.26a249.38,249.38,0,0,0-136.21-128l-273-87.49v63.66l252.65,81A187.13,187.13,0,0,1,414.88,404.23Z"
+  />
+</svg>
diff --git a/packages/data-index-webapp/webpack.config.js 
b/packages/data-index-webapp/webpack.config.js
new file mode 100644
index 00000000000..ef01f3ecc63
--- /dev/null
+++ b/packages/data-index-webapp/webpack.config.js
@@ -0,0 +1,45 @@
+/*
+ * 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 CopyPlugin = require("copy-webpack-plugin");
+const { merge } = require("webpack-merge");
+const common = require("@kie-tools-core/webpack-base/webpack.common.config");
+const { env } = require("./env");
+const buildEnv = env;
+
+module.exports = async (env) =>
+  merge(common(env), {
+    entry: {},
+    plugins: [
+      new CopyPlugin({
+        patterns: [
+          { from: "./src/index.html", to: "./index.html" },
+          { from: "./src/styles.css", to: "./styles.css" },
+          { from: "./static/favicon.svg", to: "./favicon.svg" },
+        ],
+      }),
+    ],
+    ignoreWarnings: [/Failed to parse source map/],
+    devServer: {
+      static: {
+        directory: "./dist",
+      },
+      port: buildEnv.dataIndexWebapp.dev.port,
+    },
+  });
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ec18bd78b49..d05a9a9677e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2937,6 +2937,39 @@ importers:
         specifier: workspace:*
         version: link:../root-env
 
+  packages/data-index-webapp:
+    devDependencies:
+      '@kie-tools-core/webpack-base':
+        specifier: workspace:*
+        version: link:../webpack-base
+      '@kie-tools/root-env':
+        specifier: workspace:*
+        version: link:../root-env
+      copy-webpack-plugin:
+        specifier: ^11.0.0
+        version: 11.0.0([email protected](@swc/[email protected])([email protected]))
+      jest:
+        specifier: ^29.7.0
+        version: 
29.7.0(@types/[email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))
+      rimraf:
+        specifier: ^3.0.2
+        version: 3.0.2
+      ts-node:
+        specifier: ^10.9.2
+        version: 10.9.2(@swc/[email protected])(@types/[email protected])([email protected])
+      webpack:
+        specifier: ^5.94.0
+        version: 5.94.0(@swc/[email protected])([email protected])
+      webpack-cli:
+        specifier: ^4.10.0
+        version: 4.10.0([email protected])([email protected])
+      webpack-dev-server:
+        specifier: ^4.15.1
+        version: 4.15.1([email protected])([email protected])
+      webpack-merge:
+        specifier: ^5.9.0
+        version: 5.10.0
+
   packages/dev-deployment-base-image:
     dependencies:
       '@kie-tools/maven-base':
diff --git a/repo/graph.dot b/repo/graph.dot
index d8e09fe9c01..178278c78b7 100644
--- a/repo/graph.dot
+++ b/repo/graph.dot
@@ -88,6 +88,7 @@ digraph G {
   "@kie-tools/i18n-common-dictionary" [ color = "blue", fontcolor = "blue", 
style = "rounded" ];
   "@kie-tools/dashbuilder-viewer-image" [ color = "black", fontcolor = 
"black", style = "dashed, rounded" ];
   "@kie-tools/dashbuilder-viewer-image-env" [ color = "black", fontcolor = 
"black", style = "dashed, rounded" ];
+  "@kie-tools/data-index-webapp" [ color = "blue", fontcolor = "blue", style = 
"rounded" ];
   "@kie-tools/dev-deployment-base-image" [ color = "black", fontcolor = 
"black", style = "dashed, rounded" ];
   "@kie-tools/dev-deployment-upload-service" [ color = "black", fontcolor = 
"black", style = "dashed, rounded" ];
   "@kie-tools/dev-deployment-dmn-form-webapp" [ color = "black", fontcolor = 
"black", style = "dashed, rounded" ];
@@ -317,6 +318,7 @@ digraph G {
   "@kie-tools/dashbuilder-viewer-image" -> 
"@kie-tools/dashbuilder-viewer-deployment-webapp" [ style = "dashed", color = 
"black" ];
   "@kie-tools/dashbuilder-viewer-image" -> 
"@kie-tools/dashbuilder-viewer-image-env" [ style = "dashed", color = "black" ];
   "@kie-tools/dashbuilder-viewer-image-env" -> "@kie-tools/root-env" [ style = 
"dashed", color = "black" ];
+  "@kie-tools/data-index-webapp" -> "@kie-tools-core/webpack-base" [ style = 
"dashed", color = "blue" ];
   "@kie-tools/dev-deployment-base-image" -> "@kie-tools/maven-base" [ style = 
"solid", color = "black" ];
   "@kie-tools/dev-deployment-base-image" -> 
"@kie-tools/dev-deployment-upload-service" [ style = "dashed", color = "black" 
];
   "@kie-tools/dev-deployment-base-image" -> "@kie-tools/image-builder" [ style 
= "dashed", color = "black" ];
diff --git a/repo/graph.json b/repo/graph.json
index 1397d2e45f7..9dd90d59e50 100644
--- a/repo/graph.json
+++ b/repo/graph.json
@@ -110,6 +110,7 @@
       { "id": "@kie-tools/kie-sandbox-fs" },
       { "id": "@kie-tools/dashbuilder-viewer-image" },
       { "id": "@kie-tools/dashbuilder-viewer-image-env" },
+      { "id": "@kie-tools/data-index-webapp" },
       { "id": "@kie-tools/dev-deployment-base-image" },
       { "id": "@kie-tools/dev-deployment-upload-service" },
       { "id": "@kie-tools/dev-deployment-dmn-form-webapp" },
@@ -1376,6 +1377,11 @@
         "target": "@kie-tools/root-env",
         "weight": 1
       },
+      {
+        "source": "@kie-tools/data-index-webapp",
+        "target": "@kie-tools-core/webpack-base",
+        "weight": 1
+      },
       {
         "source": "@kie-tools/dev-deployment-base-image",
         "target": "@kie-tools/maven-base",
@@ -2524,6 +2530,7 @@
     ["@kie-tools/dashbuilder-viewer-deployment-webapp", 
"packages/dashbuilder-viewer-deployment-webapp"],
     ["@kie-tools/dashbuilder-viewer-image", 
"packages/dashbuilder-viewer-image"],
     ["@kie-tools/dashbuilder-viewer-image-env", 
"packages/dashbuilder-viewer-image-env"],
+    ["@kie-tools/data-index-webapp", "packages/data-index-webapp"],
     ["@kie-tools/dev-deployment-base-image", 
"packages/dev-deployment-base-image"],
     ["@kie-tools/dev-deployment-dmn-form-webapp", 
"packages/dev-deployment-dmn-form-webapp"],
     ["@kie-tools/dev-deployment-dmn-form-webapp-image", 
"packages/dev-deployment-dmn-form-webapp-image"],


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to