Skip to content

Commit

Permalink
Migrated all views in the operations perspective, extensions service,…
Browse files Browse the repository at this point in the history
… publish and unpublish actions

Signed-off-by: StanZGenchev <stan.z.genchev@gmail.com>
  • Loading branch information
StanZGenchev committed Dec 31, 2024
1 parent 3e10135 commit 0e5d12e
Show file tree
Hide file tree
Showing 98 changed files with 3,621 additions and 42 deletions.
40 changes: 40 additions & 0 deletions components/group/group-platform-ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,42 @@
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-configurations</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-data-structures</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-extensions</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-jobs</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-listeners</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-loggers</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-logs</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-registry</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-repository</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-websockets</artifactId>
</dependency>

<dependency>
<groupId>org.eclipse.dirigible</groupId>
Expand Down Expand Up @@ -160,6 +196,10 @@
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-service-git</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-service-extensions</artifactId>
</dependency>

<dependency>
<groupId>org.eclipse.dirigible</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ registryView.controller('RegistryController', [
$scope.jstreeWidget.on('dblclick.jstree', function (event) {
let node = $scope.jstreeWidget.jstree(true).get_node(event.target);
if (node.type === 'file') {
console.log(node);
openFile(node, 'monaco'); // Temporarily set monaco
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getViewParameters() {
const params = JSON.parse(dataParameters);
const resourcePath = params["filePath"] || "";
return {
resourceType: params["params"] && params["params"]["resourceType"] || "/services/ide/workspaces",
resourceType: params["resourceType"] ?? "workspace",
contentType: params["contentType"] || "",
readOnly: params["readOnly"] || false,
gitName: params["gitName"] || "",
Expand Down Expand Up @@ -363,7 +363,6 @@ class FileIO {
#buildFileRequestMetadata(filePath, loadGitMetadata) {
let url;
let isGitProject = false;

switch (this.#getResourceType()) {
case "registry":
url = this.#buildRegistryUrl(filePath);
Expand Down
17 changes: 17 additions & 0 deletions components/platform-ide/service-extensions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# folders
dist/
.settings/
target/
derby/
dirigible_local/

# files
.DS_Store
.project
.classpath
*.bak
*.class
*.jar
derby.log
/bin/
/target/
29 changes: 29 additions & 0 deletions components/platform-ide/service-extensions/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>About</title>
</head>
<body lang="EN-US">
<h2>About This Content</h2>

<p>April 25, 2020</p>
<h3>License</h3>

<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
indicated below, the Content is provided to you under the terms and conditions of the
Eclipse Public License Version 2.0 (&quot;EPL&quot;). A copy of the EPL is available
at <a href="http://www.eclipse.org/legal/epl-v20.html">http://www.eclipse.org/legal/epl-v20.html</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>

<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
apply to your use of any object code in the Content. Check the Redistributor's license that was
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>

</body>
</html>
20 changes: 20 additions & 0 deletions components/platform-ide/service-extensions/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-parent</artifactId>
<version>11.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<name>Components - IDE - Extensions - Service</name>
<artifactId>dirigible-components-service-extensions</artifactId>
<packaging>jar</packaging>

<properties>
<license.header.location>../../../licensing-header.txt</license.header.location>
<parent.pom.folder>../../../</parent.pom.folder>
</properties>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { response } from "sdk/http";
import { database } from "sdk/db";

let extensionPoints = [];

let connection = null;
try {
connection = database.getConnection("SystemDB");
let statement = connection.prepareStatement("SELECT ARTEFACT_NAME FROM DIRIGIBLE_EXTENSION_POINTS ORDER BY ARTEFACT_NAME");
let resultSet = statement.executeQuery();
while (resultSet.next()) {
extensionPoints.push(resultSet.getString("ARTEFACT_NAME"));
}
} finally {
if (connection != null) {
connection.close();
}
}
response.setContentType("application/json");
response.println(JSON.stringify(extensionPoints));
response.flush();
response.close();
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"guid": "service-registry",
"dependencies": [],
"actions": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
const viewData = {
id: 'artefacts',
label: 'Artefacts',
region: 'bottom',
region: 'center',
lazyLoad: false,
autoFocusTab: false,
autoFocusTab: true,
path: '/services/web/view-artefacts/artefacts.html'
};
if (typeof exports !== 'undefined') {
Expand Down
17 changes: 17 additions & 0 deletions components/platform-ide/view-data-structures/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# folders
dist/
.settings/
target/
derby/
dirigible_local/

# files
.DS_Store
.project
.classpath
*.bak
*.class
*.jar
derby.log
/bin/
/target/
29 changes: 29 additions & 0 deletions components/platform-ide/view-data-structures/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>About</title>
</head>
<body lang="EN-US">
<h2>About This Content</h2>

<p>April 25, 2020</p>
<h3>License</h3>

<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
indicated below, the Content is provided to you under the terms and conditions of the
Eclipse Public License Version 2.0 (&quot;EPL&quot;). A copy of the EPL is available
at <a href="http://www.eclipse.org/legal/epl-v20.html">http://www.eclipse.org/legal/epl-v20.html</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>

<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
apply to your use of any object code in the Content. Check the Redistributor's license that was
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>

</body>
</html>
20 changes: 20 additions & 0 deletions components/platform-ide/view-data-structures/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-parent</artifactId>
<version>11.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<name>Components - IDE - Data Structures - View</name>
<artifactId>dirigible-components-view-data-structures</artifactId>
<packaging>jar</packaging>

<properties>
<license.header.location>../../../licensing-header.txt</license.header.location>
<parent.pom.folder>../../../</parent.pom.folder>
</properties>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'tables',
label: 'Table Structures',
region: 'bottom',
lazyLoad: true,
autoFocusTab: false,
path: '/services/web/view-data-structures/tables.html'
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'views',
label: 'View Structures',
region: 'bottom',
lazyLoad: true,
autoFocusTab: false,
path: '/services/web/view-data-structures/views.html'
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"module": "view-data-structures/configs/tables-view.js",
"extensionPoint": "platform-views",
"description": "Tables Structures View"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"module": "view-data-structures/configs/views-view.js",
"extensionPoint": "platform-views",
"description": "Views Structures View"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"guid": "ide-data-structures"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!--
Copyright (c) 2010-2024 Eclipse Dirigible contributors
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-FileCopyrightText: Eclipse Dirigible contributors
SPDX-License-Identifier: EPL-2.0
-->
<!DOCTYPE HTML>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" ng-app="dataStructures" ng-controller="DataStructuresController">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" sizes="any" href="data:;base64,iVBORw0KGgo=">
<title config-title></title>
<script type="text/javascript" src="configs/tables-view.js"></script>
<script type="text/javascript" src="/services/js/platform-core/services/loader.js?id=view-js"></script>
<link type="text/css" rel="stylesheet" href="/services/js/platform-core/services/loader.js?id=view-css" />
</head>

<body bk-scrollbar>
<table bk-table display-mode="compact" outer-borders="bottom">
<thead bk-table-header sticky="true">
<tr bk-table-row>
<th bk-table-header-cell>Name</th>
<th bk-table-header-cell>Location</th>
<th bk-table-header-cell>Handler</th>
<th bk-table-header-cell>Type</th>
<th bk-table-header-cell>Created</th>
<th bk-table-header-cell>Creator</th>
</tr>
</thead>
<tbody bk-table-body>
<tr bk-table-row ng-repeat="table in tables track by $index" hoverable="true" activable="false">
<td bk-table-cell>{::table.name}}</td>
<td bk-table-cell>{{::table.location}}</td>
<td bk-table-cell>{{::table.handler}}</td>
<td bk-table-cell fit-content="true">{{::table.type}}</td>
<td bk-table-cell fit-content="true">{{::table.createdAt}}</td>
<td bk-table-cell fit-content="true">{{::table.createdBy}}</td>
</tr>
<tr ng-if="tables.length === 0" bk-table-row>
<td bk-table-cell no-data="true">No Table Data</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
angular.module('dataStructures', ['platformView', 'blimpKit']).controller('DataStructuresController', ($scope, $http) => {
$http.get('/services/data/tables').then((response) => {
$scope.tables = response.data;
});
});
</script>
<theme></theme>
</body>

</html>
Loading

0 comments on commit 0e5d12e

Please sign in to comment.