Skip to content

Commit

Permalink
Migrated Jobs and Security perspectives, fixes #4505 #4506 #4507 #4508
Browse files Browse the repository at this point in the history
Signed-off-by: StanZGenchev <stan.z.genchev@gmail.com>
  • Loading branch information
StanZGenchev committed Jan 2, 2025
1 parent 0e5d12e commit a7cff58
Show file tree
Hide file tree
Showing 48 changed files with 1,447 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/group/group-platform-ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-perspective-operations</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-perspective-jobs</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-perspective-security</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-welcome</artifactId>
Expand Down Expand Up @@ -159,6 +167,10 @@
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-websockets</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-security</artifactId>
</dependency>

<dependency>
<groupId>org.eclipse.dirigible</groupId>
Expand Down
20 changes: 20 additions & 0 deletions components/platform-ide/perspective-jobs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# folders
dist/
.settings/
target/
derby/
dirigible_local/

# files
.DS_Store
.project
.classpath
*.bak
*.class
*.jar
derby.log
/bin/
/target/
/target/
/target/
/target/
29 changes: 29 additions & 0 deletions components/platform-ide/perspective-jobs/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>
21 changes: 21 additions & 0 deletions components/platform-ide/perspective-jobs/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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 - Jobs - Perspective</name>
<artifactId>dirigible-components-perspective-jobs</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,21 @@
/*
* 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 perspectiveData = {
id: 'jobs',
label: 'Jobs',
path: '/services/web/perspective-jobs/index.html',
order: 750,
icon: '/services/web/perspective-jobs/images/jobs.svg',
};
if (typeof exports !== 'undefined') {
exports.getPerspective = () => perspectiveData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* 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
*/
exports.getMenu = () => ({
perspectiveId: 'jobs',
include: {
window: true,
help: true,
},
items: []
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"module": "perspective-jobs/configs/jobs.js",
"extensionPoint": "platform-perspectives",
"description": "Jobs Perspective"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"module": "perspective-jobs/configs/perspective-menu.js",
"extensionPoint": "platform-menus",
"description": "Jobs perspective menu"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
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" ng-app="jobs" ng-controller="JobsController" xmlns="http://www.w3.org/1999/xhtml">

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

<body>
<layout config="::layoutConfig"></layout>
<script type="text/javascript">
angular.module('jobs', ['platformView', 'platformLayout', 'blimpKit']).controller('JobsController', ($scope) => {
$scope.layoutConfig = {
views: ['jobs', 'console', 'logs'],
viewSettings: {},
layoutSettings: {
bottomPaneSize: 50
},
};
});
</script>
<theme></theme>
</body>

</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"guid": "perspective-jobs",
"dependencies": [],
"actions": []
}
20 changes: 20 additions & 0 deletions components/platform-ide/perspective-security/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# folders
dist/
.settings/
target/
derby/
dirigible_local/

# files
.DS_Store
.project
.classpath
*.bak
*.class
*.jar
derby.log
/bin/
/target/
/target/
/target/
/target/
29 changes: 29 additions & 0 deletions components/platform-ide/perspective-security/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>
21 changes: 21 additions & 0 deletions components/platform-ide/perspective-security/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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 - Security - Perspective</name>
<artifactId>dirigible-components-perspective-security</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,19 @@
/*
* 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
*/
exports.getMenu = () => ({
perspectiveId: 'security',
include: {
window: true,
help: true,
},
items: []
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* 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 perspectiveData = {
id: 'security',
label: 'Security',
path: '/services/web/perspective-security/index.html',
order: 998,
icon: '/services/web/perspective-security/images/security.svg',
};
if (typeof exports !== 'undefined') {
exports.getPerspective = () => perspectiveData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"module": "perspective-security/configs/perspective-menu.js",
"extensionPoint": "platform-menus",
"description": "Security perspective menu"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"module": "perspective-security/configs/security-perspective.js",
"extensionPoint": "platform-perspectives",
"description": "Security Perspective"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
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" ng-app="security" ng-controller="SecurityController" xmlns="http://www.w3.org/1999/xhtml">

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

<body>
<layout config="::layoutConfig"></layout>
<script type="text/javascript">
angular.module('security', ['platformView', 'platformLayout', 'blimpKit']).controller('SecurityController', ($scope) => {
$scope.layoutConfig = {
views: ['access', 'roles', 'tenants', 'users'],
viewSettings: {},
layoutSettings: {
leftPaneMinSize: 340
},
};
});
</script>
<theme></theme>
</body>

</html>
Loading

0 comments on commit a7cff58

Please sign in to comment.