-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated csv and csvim editors, fixed git and projects tree initializ…
…ation Signed-off-by: StanZGenchev <stan.z.genchev@gmail.com>
- Loading branch information
1 parent
11ecb51
commit b12cbb5
Showing
81 changed files
with
1,447 additions
and
192 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
12 changes: 0 additions & 12 deletions
12
components/ide/ide-ui-csv/src/main/resources/META-INF/dirigible/ide-csv/css/ag-grid.min.css
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
.../ide/ide-ui-csv/src/main/resources/META-INF/dirigible/ide-csv/css/ag-theme-alpine.min.css
This file was deleted.
Oops, something went wrong.
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
19 changes: 0 additions & 19 deletions
19
...-ui-csv/src/main/resources/META-INF/dirigible/ide-csv/js/ag-grid-community.min.noStyle.js
This file was deleted.
Oops, something went wrong.
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
18 changes: 0 additions & 18 deletions
18
components/ide/ide-ui-csv/src/main/resources/META-INF/dirigible/ide-csv/js/papaparse.min.js
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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
39 changes: 39 additions & 0 deletions
39
...ents/platform-ide/editor-csv/src/main/resources/META-INF/dirigible/editor-csv/css/csv.css
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,39 @@ | ||
/** | ||
* 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 | ||
*/ | ||
:root { | ||
--ag-background-color: var(--sapList_Background, #fff); | ||
--ag-border-color: var(--sapGroup_TitleBorderColor, #d9d9d9); | ||
--ag-input-focus-border-color: var(--sapField_Focus_BorderColor, #303030); | ||
--ag-row-hover-color: var(--sapList_Hover_Background, #f2f2f2); | ||
--ag-selected-row-background-color: var(--sapList_SelectionBackgroundColor, #fff7d9); | ||
--ag-header-background-color: var(--sapList_HeaderBackground, #f7f7f7); | ||
--ag-odd-row-background-color: var(--sapList_HeaderBackground, #f7f7f7); | ||
--ag-control-panel-background-color: var(--sapList_HeaderBackground, #f7f7f7); | ||
--ag-alpine-active-color: var(--sapList_Active_TextColor, #303030); | ||
--ag-foreground-color: var(--sapTextColor, #303030); | ||
--ag-checkbox-background-color: var(--sapField_Background, #fff); | ||
--ag-checkbox-checked-color: var(--sapActiveColor, #bebebe); | ||
--ag-row-border-color: var(--sapList_BorderColor, #dedede); | ||
} | ||
|
||
.ag-grid-editor>.ag-root-wrapper { | ||
border: none !important; | ||
} | ||
|
||
.header-input { | ||
display: none; | ||
width: 100%; | ||
} | ||
|
||
.ag-cell-value:empty { | ||
height: 100%; | ||
} |
15 changes: 15 additions & 0 deletions
15
...ents/platform-ide/editor-csv/src/main/resources/META-INF/dirigible/editor-csv/csvim.csvim
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,15 @@ | ||
{ | ||
"files": [ | ||
{ | ||
"table": "jhkasd", | ||
"schema": "asd", | ||
"file": "/editor-csv/test.csv", | ||
"header": true, | ||
"useHeaderNames": false, | ||
"delimField": ",", | ||
"delimEnclosing": "\"", | ||
"distinguishEmptyFromNull": true, | ||
"version": "" | ||
} | ||
] | ||
} |
60 changes: 60 additions & 0 deletions
60
...ents/platform-ide/editor-csv/src/main/resources/META-INF/dirigible/editor-csv/editor.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,60 @@ | ||
<!-- | ||
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="csv-editor" ng-controller="CsvController"> | ||
|
||
<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="/services/web/editor-csv/configs/csv-editor.js"></script> | ||
<script type="text/javascript" src="/services/js/platform-core/services/loader.js?id=editor-js"></script> | ||
<script type="text/javascript" src="/webjars/papaparse/5.3.2/papaparse.min.js"></script> | ||
<script type="text/javascript" src="/webjars/ag-grid-community__all-modules/27.1.0/dist/ag-grid-community.min.noStyle.js"></script> | ||
<link type="text/css" rel="stylesheet" href="/services/js/platform-core/services/loader.js?id=view-css" /> | ||
<link type="text/css" rel="stylesheet" href="/webjars/ag-grid-community__all-modules/27.1.0/dist/styles/ag-grid.min.css" /> | ||
<link type="text/css" rel="stylesheet" href="/webjars/ag-grid-community__all-modules/27.1.0/dist/styles/ag-theme-alpine.min.css" /> | ||
<link type="text/css" rel="stylesheet" href="css/csv.css" /> | ||
<script type="text/javascript" src="/services/web/editor-csv/js/editor.js"></script> | ||
</head> | ||
|
||
<body class="bk-vbox" ng-mousedown="handleClick($event)" ng-on-contextmenu="showContextMenu($event)" shortcut="'ctrl+s'" shortcut-action="save"> | ||
<bk-busy-indicator-extended class="bk-fill-parent" ng-hide="state.error || !state.isBusy" size="l">{{state.busyText}}</bk-busy-indicator-extended> | ||
<bk-toolbar ng-show="!state.error && !state.isBusy"> | ||
<bk-toolbar-spacer></bk-toolbar-spacer> | ||
<bk-input type="search" compact="true" placeholder="Search..." ng-model="search.text" ng-change="searchCsv()" style="max-width:30%;"></bk-input> | ||
<bk-toolbar-separator></bk-toolbar-separator> | ||
<bk-button glyph="sap-icon--save" label="Save" state="transparent" ng-click="save()"></bk-button> | ||
<bk-button glyph="sap-icon--download" label="Export" state="transparent" ng-click="downloadCsv()"></bk-button> | ||
<bk-toolbar-separator></bk-toolbar-separator> | ||
<bk-toolbar-overflow> | ||
<bk-button glyph="sap-icon--add" is-overflow="true" state="transparent" ng-click="addRow()" label="Add row"></bk-button> | ||
<bk-toolbar-separator></bk-toolbar-separator> | ||
<bk-checkbox id="csvHeader" ng-model="papaConfig.header" ng-change="hasHeader()"></bk-checkbox> | ||
<bk-checkbox-label for="csvHeader">Has header</bk-checkbox-label> | ||
</bk-toolbar-overflow> | ||
</bk-toolbar> | ||
<div class="bk-fill-parent ag-grid-editor ag-theme-alpine" ag-grid="gridOptions" ng-show="!state.error && !state.isBusy"></div> | ||
<div class="bk-full-width bk-border--top" ng-show="!state.error && !state.isBusy"> | ||
<p class="fd-text fd-margin--tiny">Data rows: {{rowsCount}}</p> | ||
</div> | ||
<bk-message-page glyph="sap-icon--error" ng-if="state.error"> | ||
<bk-message-page-title>Editor encounterd an error!</bk-message-page-title> | ||
<bk-message-page-subtitle>{{errorMessage}}</bk-message-page-subtitle> | ||
</bk-message-page> | ||
<theme></theme> | ||
</body> | ||
|
||
</html> |
5 changes: 5 additions & 0 deletions
5
...itor-csv/src/main/resources/META-INF/dirigible/editor-csv/extensions/csv-editor.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": "editor-csv/configs/csv-editor.js", | ||
"extensionPoint": "platform-editors", | ||
"description": "CSV Editor" | ||
} |
Oops, something went wrong.