-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated all views in the operations perspective, extensions service,…
… publish and unpublish actions Signed-off-by: StanZGenchev <stan.z.genchev@gmail.com>
- Loading branch information
1 parent
3e10135
commit 0e5d12e
Showing
98 changed files
with
3,621 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ("Content"). Unless otherwise | ||
indicated below, the Content is provided to you under the terms and conditions of the | ||
Eclipse Public License Version 2.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
22 changes: 22 additions & 0 deletions
22
...e-extensions/src/main/resources/META-INF/dirigible/service-extensions/extensionPoints.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
5 changes: 5 additions & 0 deletions
5
.../service-extensions/src/main/resources/META-INF/dirigible/service-extensions/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"guid": "service-registry", | ||
"dependencies": [], | ||
"actions": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ("Content"). Unless otherwise | ||
indicated below, the Content is provided to you under the terms and conditions of the | ||
Eclipse Public License Version 2.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
22 changes: 22 additions & 0 deletions
22
...uctures/src/main/resources/META-INF/dirigible/view-data-structures/configs/tables-view.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
22 changes: 22 additions & 0 deletions
22
...ructures/src/main/resources/META-INF/dirigible/view-data-structures/configs/views-view.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
5 changes: 5 additions & 0 deletions
5
...es/src/main/resources/META-INF/dirigible/view-data-structures/extensions/tables.extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
5 changes: 5 additions & 0 deletions
5
...res/src/main/resources/META-INF/dirigible/view-data-structures/extensions/views.extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
3 changes: 3 additions & 0 deletions
3
...w-data-structures/src/main/resources/META-INF/dirigible/view-data-structures/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"guid": "ide-data-structures" | ||
} |
63 changes: 63 additions & 0 deletions
63
...ew-data-structures/src/main/resources/META-INF/dirigible/view-data-structures/tables.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.