From 521a80c1e3ab4fd69a1eee95d438c4e47ba5265a Mon Sep 17 00:00:00 2001
From: mrPadre <51297778+mrPadre@users.noreply.github.com>
Date: Tue, 14 Jul 2020 12:40:06 +0300
Subject: [PATCH] Hm 28 (#8)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* HM-28 Добавил компонент таблицы
---
.eslintrc.json | 1 -
src/api/StorageListAPI.js | 4 +-
src/api/StorageServiceAPI.js | 3 +-
src/app.html | 36 ++++++++++++
src/app.js | 9 +++
.../api-info-component/ApiInfoComponent.css | 0
.../api-info-component/ApiInfoComponent.js | 28 ++++++++++
src/components/api-info-component/index.js | 3 +
.../TableColumnComponent.js | 16 ++++++
.../table-column-component/index.js | 3 +
.../table-component/TableComponent.js | 56 +++++++++++++++++++
src/components/table-component/index.js | 3 +
.../table-row-component/TableRowComponent.js | 25 +++++++++
src/components/test-modal/TestModal.css | 4 +-
src/components/test-modal/TestModal.js | 1 +
15 files changed, 186 insertions(+), 6 deletions(-)
create mode 100644 src/components/api-info-component/ApiInfoComponent.css
create mode 100644 src/components/api-info-component/ApiInfoComponent.js
create mode 100644 src/components/api-info-component/index.js
create mode 100644 src/components/table-column-component/TableColumnComponent.js
create mode 100644 src/components/table-column-component/index.js
create mode 100644 src/components/table-component/TableComponent.js
create mode 100644 src/components/table-component/index.js
create mode 100644 src/components/table-row-component/TableRowComponent.js
diff --git a/.eslintrc.json b/.eslintrc.json
index b798d9c..2299ee5 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -55,7 +55,6 @@
"indent": ["error", 4],
"keyword-spacing": ["error", {"before": true}],
"line-comment-position": ["error", {"position": "above"}],
- "linebreak-style": ["error", "unix"],
"lines-between-class-members": ["error", "always"],
"max-len": [
"warn",
diff --git a/src/api/StorageListAPI.js b/src/api/StorageListAPI.js
index bdd209c..5226f36 100644
--- a/src/api/StorageListAPI.js
+++ b/src/api/StorageListAPI.js
@@ -1,6 +1,6 @@
import {v4 as uuidv4} from 'uuid';
-import StorageServiceApi from './StorageServiceAPI';
+import storageApi from './StorageServiceAPI';
/**
* @interface StoreListElement
@@ -26,7 +26,7 @@ class StorageListApi {
/**
* @type {StorageServiceApi}
*/
- this.api = new StorageServiceApi();
+ this.api = storageApi;
this.api.create({key, description, author, service_name, value: []});
/**
* @type {Object}
diff --git a/src/api/StorageServiceAPI.js b/src/api/StorageServiceAPI.js
index cdaa2b5..0a3934b 100644
--- a/src/api/StorageServiceAPI.js
+++ b/src/api/StorageServiceAPI.js
@@ -68,5 +68,6 @@ class StorageServiceApi {
return data;
}
}
+const storageApi = new StorageServiceApi();
-export default StorageServiceApi;
+export default storageApi;
diff --git a/src/app.html b/src/app.html
index 3b8b5de..f47cd01 100644
--- a/src/app.html
+++ b/src/app.html
@@ -21,6 +21,42 @@
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+