You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by em...@apache.org on 2022/01/04 05:18:51 UTC

[incubator-age-viewer] branch main updated (e74cfe3 -> 02249ee)

This is an automated email from the ASF dual-hosted git repository.

emotionbug pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-age-viewer.git.


    from e74cfe3  Corrects `cytoscape-cxtmenu` license
     new be57843  Modify code related to irrelevant trade names.
     new 02249ee  Remove irrelevant icon files.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 backend/src/app.js                                 |   4 +-
 ...cloudController.js => RemoteLoginController.js} |   4 +-
 .../agensGraphRepository.js => GraphRepository.js} |  12 +--
 .../{agcloudRouter.js => remoteLoginRouter.js}     |   6 +-
 backend/src/services/databaseService.js            |   7 +-
 frontend/public/android-chrome-192x192.png         | Bin 8673 -> 0 bytes
 frontend/public/android-chrome-512x512.png         | Bin 30656 -> 0 bytes
 frontend/public/apple-touch-icon.png               | Bin 7769 -> 0 bytes
 frontend/public/browserconfig.xml                  |  28 -------
 frontend/public/favicon-16x16.png                  | Bin 1178 -> 0 bytes
 frontend/public/favicon-32x32.png                  | Bin 1847 -> 0 bytes
 frontend/public/favicon.ico                        | Bin 15086 -> 0 bytes
 frontend/public/index.html                         |   5 --
 frontend/public/mstile-150x150.png                 | Bin 5795 -> 0 bytes
 frontend/public/safari-pinned-tab.svg              |  82 ---------------------
 frontend/public/site.webmanifest                   |  16 +---
 16 files changed, 18 insertions(+), 146 deletions(-)
 rename backend/src/controllers/{agcloudController.js => RemoteLoginController.js} (95%)
 rename backend/src/models/{agensgraph/agensGraphRepository.js => GraphRepository.js} (93%)
 rename backend/src/routes/{agcloudRouter.js => remoteLoginRouter.js} (82%)
 delete mode 100644 frontend/public/android-chrome-192x192.png
 delete mode 100644 frontend/public/android-chrome-512x512.png
 delete mode 100644 frontend/public/apple-touch-icon.png
 delete mode 100644 frontend/public/browserconfig.xml
 delete mode 100644 frontend/public/favicon-16x16.png
 delete mode 100644 frontend/public/favicon-32x32.png
 delete mode 100644 frontend/public/favicon.ico
 delete mode 100644 frontend/public/mstile-150x150.png
 delete mode 100644 frontend/public/safari-pinned-tab.svg

[incubator-age-viewer] 01/02: Modify code related to irrelevant trade names.

Posted by em...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

emotionbug pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-age-viewer.git

commit be57843590c593d2fb7c55daa245bb5a68748172
Author: Alex Kwak <ta...@kakao.com>
AuthorDate: Tue Jan 4 14:14:49 2022 +0900

    Modify code related to irrelevant trade names.
---
 backend/src/app.js                                           |  4 ++--
 .../{agcloudController.js => RemoteLoginController.js}       |  4 ++--
 .../agensGraphRepository.js => GraphRepository.js}           | 12 ++++++------
 .../src/routes/{agcloudRouter.js => remoteLoginRouter.js}    |  6 +++---
 backend/src/services/databaseService.js                      |  7 +++----
 5 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/backend/src/app.js b/backend/src/app.js
index feddcdf..c236f82 100644
--- a/backend/src/app.js
+++ b/backend/src/app.js
@@ -29,7 +29,7 @@ const logger = require('morgan');
 const {stream} = require('./config/winston');
 const cypherRouter = require('./routes/cypherRouter');
 const databaseRouter = require('./routes/databaseRouter');
-const agcloudRouter = require('./routes/agcloudRouter');
+const remoteLoginRouter = require('./routes/remoteLoginRouter');
 const sessionRouter = require('./routes/sessionRouter');
 const app = express();
 
@@ -59,7 +59,7 @@ app.use(express.json());
 app.use(express.urlencoded({extended: false}));
 app.use(cookieParser());
 
-app.use('/agensviewer', sessionRouter, agcloudRouter);
+app.use('/agensviewer', sessionRouter, remoteLoginRouter);
 app.use('/api/v1/*', sessionRouter);
 app.use('/api/v1/cypher', cypherRouter);
 app.use('/api/v1/db', databaseRouter);
diff --git a/backend/src/controllers/agcloudController.js b/backend/src/controllers/RemoteLoginController.js
similarity index 95%
rename from backend/src/controllers/agcloudController.js
rename to backend/src/controllers/RemoteLoginController.js
index a1f7a3d..9969c0f 100644
--- a/backend/src/controllers/agcloudController.js
+++ b/backend/src/controllers/RemoteLoginController.js
@@ -22,7 +22,7 @@ const sessionService = require('../services/sessionService');
 const winston = require('winston');
 const logger = winston.createLogger();
 
-class AgcloudController {
+class RemoteLoginController {
     async connectDatabase(req, res, next) {
         let databaseService = sessionService.get(req.sessionID);
         if (databaseService.isConnected() || !req.body) {
@@ -38,4 +38,4 @@ class AgcloudController {
     }
 }
 
-module.exports = AgcloudController;
+module.exports = RemoteLoginController;
diff --git a/backend/src/models/agensgraph/agensGraphRepository.js b/backend/src/models/GraphRepository.js
similarity index 93%
rename from backend/src/models/agensgraph/agensGraphRepository.js
rename to backend/src/models/GraphRepository.js
index c70a448..b53c60c 100644
--- a/backend/src/models/agensgraph/agensGraphRepository.js
+++ b/backend/src/models/GraphRepository.js
@@ -17,16 +17,16 @@
  * under the License.
  */
 
-import Flavors from '../../config/Flavors';
-import PgConfig from '../../config/Pg'
+import Flavors from '../config/Flavors';
+import PgConfig from '../config/Pg'
 
 require('@bitnine-oss/ag-driver');
 import pg from 'pg';
 import types from 'pg-types';
-import {setAGETypes} from '../../tools/AGEParser';
+import {setAGETypes} from '../tools/AGEParser';
 
 
-class AgensGraphRepository {
+class GraphRepository {
     constructor({host, port, database, graph, user, password, flavor} = {}) {
         if (!flavor) {
             throw new Error('Flavor is required.');
@@ -97,7 +97,7 @@ class AgensGraphRepository {
      */
     async getConnection() {
         if (!this._pool) {
-            this._pool = AgensGraphRepository.newConnectionPool(this.getPoolConnectionInfo());
+            this._pool = GraphRepository.newConnectionPool(this.getPoolConnectionInfo());
         }
         const client = await this._pool.connect();
         if (this.flavor === 'AGE') {
@@ -158,4 +158,4 @@ class AgensGraphRepository {
     }
 }
 
-module.exports = AgensGraphRepository;
+module.exports = GraphRepository;
diff --git a/backend/src/routes/agcloudRouter.js b/backend/src/routes/remoteLoginRouter.js
similarity index 82%
rename from backend/src/routes/agcloudRouter.js
rename to backend/src/routes/remoteLoginRouter.js
index 60ca5f5..c99c09d 100644
--- a/backend/src/routes/agcloudRouter.js
+++ b/backend/src/routes/remoteLoginRouter.js
@@ -18,14 +18,14 @@
  */
 
 const express = require("express");
-const AgcloudController = require("../controllers/agcloudController");
+const RemoteLoginController = require("../controllers/RemoteLoginController");
 
 const router = express.Router();
-const agcloudController = new AgcloudController();
+const remoteLoginController = new RemoteLoginController();
 
 const {wrap} = require('../common/Routes');
 
 // Execute Cypher Query
-router.post("/", wrap(agcloudController.connectDatabase));
+router.post("/", wrap(remoteLoginController.connectDatabase));
 
 module.exports = router;
diff --git a/backend/src/services/databaseService.js b/backend/src/services/databaseService.js
index 4cfa3d6..bb7146d 100644
--- a/backend/src/services/databaseService.js
+++ b/backend/src/services/databaseService.js
@@ -19,8 +19,7 @@
 
 import {getQuery} from "../tools/SQLFlavorManager";
 import * as util from "util";
-
-const AgensGraphRepository = require('../models/agensgraph/agensGraphRepository');
+import GraphRepository from '../models/GraphRepository';
 
 class DatabaseService {
     constructor() {
@@ -97,7 +96,7 @@ class DatabaseService {
     async connectDatabase(connectionInfo) {
         let agensDatabaseHelper = this._agensDatabaseHelper;
         if (agensDatabaseHelper == null) {
-            this._agensDatabaseHelper = new AgensGraphRepository(connectionInfo);
+            this._agensDatabaseHelper = new GraphRepository(connectionInfo);
             agensDatabaseHelper = this._agensDatabaseHelper;
         }
 
@@ -135,7 +134,7 @@ class DatabaseService {
         }
 
         try {
-            let client = await AgensGraphRepository.getConnection(agensDatabaseHelper.getConnectionInfo());
+            let client = await GraphRepository.getConnection(agensDatabaseHelper.getConnectionInfo());
             client.release();
         } catch (err) {
             return false;

[incubator-age-viewer] 02/02: Remove irrelevant icon files.

Posted by em...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

emotionbug pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-age-viewer.git

commit 02249ee69144ef25b4d7d48711c1f9a83ea0a0e4
Author: Alex Kwak <ta...@kakao.com>
AuthorDate: Tue Jan 4 14:18:35 2022 +0900

    Remove irrelevant icon files.
---
 frontend/public/android-chrome-192x192.png | Bin 8673 -> 0 bytes
 frontend/public/android-chrome-512x512.png | Bin 30656 -> 0 bytes
 frontend/public/apple-touch-icon.png       | Bin 7769 -> 0 bytes
 frontend/public/browserconfig.xml          |  28 ----------
 frontend/public/favicon-16x16.png          | Bin 1178 -> 0 bytes
 frontend/public/favicon-32x32.png          | Bin 1847 -> 0 bytes
 frontend/public/favicon.ico                | Bin 15086 -> 0 bytes
 frontend/public/index.html                 |   5 --
 frontend/public/mstile-150x150.png         | Bin 5795 -> 0 bytes
 frontend/public/safari-pinned-tab.svg      |  82 -----------------------------
 frontend/public/site.webmanifest           |  16 +-----
 11 files changed, 2 insertions(+), 129 deletions(-)

diff --git a/frontend/public/android-chrome-192x192.png b/frontend/public/android-chrome-192x192.png
deleted file mode 100644
index ea27441..0000000
Binary files a/frontend/public/android-chrome-192x192.png and /dev/null differ
diff --git a/frontend/public/android-chrome-512x512.png b/frontend/public/android-chrome-512x512.png
deleted file mode 100644
index 6c49a9c..0000000
Binary files a/frontend/public/android-chrome-512x512.png and /dev/null differ
diff --git a/frontend/public/apple-touch-icon.png b/frontend/public/apple-touch-icon.png
deleted file mode 100644
index b3f0053..0000000
Binary files a/frontend/public/apple-touch-icon.png and /dev/null differ
diff --git a/frontend/public/browserconfig.xml b/frontend/public/browserconfig.xml
deleted file mode 100644
index b903156..0000000
--- a/frontend/public/browserconfig.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<browserconfig>
-    <msapplication>
-        <tile>
-            <square150x150logo src="/mstile-150x150.png"/>
-            <TileColor>#da532c</TileColor>
-        </tile>
-    </msapplication>
-</browserconfig>
diff --git a/frontend/public/favicon-16x16.png b/frontend/public/favicon-16x16.png
deleted file mode 100644
index 74add82..0000000
Binary files a/frontend/public/favicon-16x16.png and /dev/null differ
diff --git a/frontend/public/favicon-32x32.png b/frontend/public/favicon-32x32.png
deleted file mode 100644
index 4def415..0000000
Binary files a/frontend/public/favicon-32x32.png and /dev/null differ
diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico
deleted file mode 100644
index 996e170..0000000
Binary files a/frontend/public/favicon.ico and /dev/null differ
diff --git a/frontend/public/index.html b/frontend/public/index.html
index b9c1420..00f5770 100644
--- a/frontend/public/index.html
+++ b/frontend/public/index.html
@@ -21,18 +21,13 @@
 <html lang="en">
   <head>
     <meta charset="utf-8" />
-    <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />
     <meta name="theme-color" content="#000000" />
     <meta
       name="description"
       content="AGViewer"
     />
-    <link rel="apple-touch-icon" sizes="180x180" href="%PUBLIC_URL%/apple-touch-icon.png">
-    <link rel="icon" type="image/png" sizes="32x32" href="%PUBLIC_URL%/favicon-32x32.png">
-    <link rel="icon" type="image/png" sizes="16x16" href="%PUBLIC_URL%/favicon-16x16.png">
     <link rel="manifest" href="%PUBLIC_URL%/site.webmanifest">
-    <link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#5bbad5">
     <meta name="msapplication-TileColor" content="#da532c">
     <meta name="theme-color" content="#ffffff">
     <title>AGViewer</title>
diff --git a/frontend/public/mstile-150x150.png b/frontend/public/mstile-150x150.png
deleted file mode 100644
index b998a5a..0000000
Binary files a/frontend/public/mstile-150x150.png and /dev/null differ
diff --git a/frontend/public/safari-pinned-tab.svg b/frontend/public/safari-pinned-tab.svg
deleted file mode 100644
index aa2742c..0000000
--- a/frontend/public/safari-pinned-tab.svg
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!--
-  - Licensed to the Apache Software Foundation (ASF) under one
-  - or more contributor license agreements.  See the NOTICE file
-  - distributed with this work for additional information
-  - regarding copyright ownership.  The ASF licenses this file
-  - to you under the Apache License, Version 2.0 (the
-  - "License"); you may not use this file except in compliance
-  - with the License.  You may obtain a copy of the License at
-  -
-  - http://www.apache.org/licenses/LICENSE-2.0
-  -
-  - Unless required by applicable law or agreed to in writing,
-  - software distributed under the License is distributed on an
-  - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  - KIND, either express or implied.  See the License for the
-  - specific language governing permissions and limitations
-  - under the License.
-  -->
-
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
-<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
- width="600.000000pt" height="600.000000pt" viewBox="0 0 600.000000 600.000000"
- preserveAspectRatio="xMidYMid meet">
-<metadata>
-Created by potrace 1.11, written by Peter Selinger 2001-2013
-</metadata>
-<g transform="translate(0.000000,600.000000) scale(0.100000,-0.100000)"
-fill="#000000" stroke="none">
-<path d="M4027 5966 c-32 -7 -60 -13 -63 -14 -2 0 -30 -6 -62 -12 -31 -7 -64
--15 -72 -18 -8 -3 -24 -7 -34 -9 -38 -7 -142 -35 -223 -59 -45 -14 -90 -27
--100 -29 -20 -4 -260 -82 -283 -92 -8 -3 -17 -7 -20 -8 -3 -1 -12 -4 -20 -8
--8 -3 -44 -16 -80 -28 -36 -13 -76 -29 -90 -36 -14 -7 -32 -13 -40 -13 -9 0
--20 -4 -25 -8 -6 -5 -26 -15 -45 -22 -19 -8 -57 -23 -85 -36 -27 -12 -72 -32
--100 -44 -105 -46 -323 -156 -393 -197 -41 -24 -76 -43 -79 -43 -24 0 -456
--287 -558 -372 -11 -9 -49 -39 -84 -67 -63 -50 -233 -204 -300 -272 -339 -342
--586 -724 -717 -1106 -20 -58 -38 -114 -39 -122 -2 -9 -4 -16 -5 -16 -2 0 -8
--22 -19 -75 -24 -109 -30 -139 -36 -190 -2 -25 -8 -67 -11 -95 -13 -101 -5
--428 11 -455 2 -3 6 -26 10 -50 7 -50 39 -178 56 -225 52 -142 103 -246 177
--359 25 -39 51 -76 57 -83 157 -178 195 -214 334 -313 121 -86 321 -181 451
--216 110 -29 224 -55 260 -60 25 -3 54 -8 65 -10 121 -23 436 -23 560 0 61 12
-100 19 105 21 3 1 23 5 45 10 73 15 239 76 326 121 47 24 90 44 97 44 7 0 12
-4 12 8 0 5 10 13 23 19 25 12 200 137 227 162 158 151 237 232 270 278 8 11
-36 49 63 82 26 34 47 66 47 71 0 6 4 10 8 10 20 0 183 290 264 470 49 108 129
-321 128 340 -1 3 -20 -34 -44 -82 -43 -84 -107 -189 -133 -216 -7 -7 -13 -16
--13 -20 0 -4 -21 -29 -46 -57 -25 -27 -48 -54 -52 -60 -15 -21 -177 -165 -187
--165 -3 0 -15 -9 -28 -20 -75 -65 -363 -193 -482 -214 -51 -9 -89 -16 -113
--21 -96 -22 -366 -25 -482 -6 -183 31 -360 100 -509 199 -30 21 -61 42 -69 47
--128 85 -300 290 -385 460 -36 72 -96 240 -102 285 -1 14 -8 43 -13 65 -17 62
--25 168 -26 305 0 161 8 237 48 429 13 61 61 213 93 295 35 91 121 277 133
-286 3 3 11 19 19 35 18 41 192 303 224 337 14 16 30 34 34 42 25 46 201 229
-316 329 50 44 211 169 263 205 72 48 160 104 196 123 24 13 50 29 58 35 39 31
-528 264 553 264 3 0 27 10 54 22 26 11 54 22 61 24 8 1 21 6 30 10 9 4 22 8
-27 10 11 3 251 83 275 92 8 3 20 6 26 7 6 2 38 11 70 20 33 9 69 19 81 21 12
-2 33 8 45 13 13 5 26 9 31 9 30 3 85 16 97 23 20 11 7 10 -63 -5z"/>
-<path d="M3737 4814 c-1 -1 -34 -5 -73 -8 -39 -3 -96 -11 -125 -17 -30 -6 -65
--12 -79 -15 -14 -3 -34 -8 -45 -11 -11 -4 -22 -7 -25 -8 -42 -9 -77 -19 -85
--24 -5 -3 -12 -6 -15 -6 -6 0 -56 -20 -110 -42 -86 -36 -230 -114 -275 -150
--5 -4 -29 -20 -52 -35 -81 -53 -211 -171 -313 -285 -86 -96 -100 -113 -100
--122 0 -5 -4 -11 -8 -13 -36 -14 -333 -504 -316 -521 3 -2 -2 -10 -11 -17 -8
--7 -15 -19 -15 -26 0 -8 -13 -42 -29 -76 -37 -79 -112 -300 -100 -292 5 3 9 9
-9 15 0 33 153 299 172 299 4 0 8 6 8 13 0 11 10 24 105 128 37 40 74 74 149
-137 42 35 158 108 233 145 77 39 258 103 317 111 21 4 41 8 45 10 3 2 30 7 60
-11 30 4 63 9 75 12 35 8 294 10 344 2 26 -4 69 -10 96 -13 27 -4 57 -11 68
--17 10 -5 18 -8 18 -5 0 4 92 -24 150 -47 294 -114 555 -352 693 -632 65 -133
-118 -316 133 -460 9 -81 8 -353 0 -405 -8 -47 -28 -161 -32 -181 -9 -54 -70
--254 -101 -332 -109 -280 -288 -570 -488 -795 -299 -335 -714 -615 -1225 -827
--63 -26 -124 -51 -135 -55 -23 -10 -227 -84 -235 -86 -3 0 -12 -3 -20 -7 -14
--5 -155 -48 -175 -53 -5 -1 -77 -21 -160 -43 -82 -23 -158 -42 -170 -42 -15
--1 -16 -2 -4 -6 10 -2 77 10 150 27 74 17 145 33 159 36 43 8 240 63 360 100
-126 39 132 41 142 43 10 2 87 30 113 42 23 10 173 65 225 82 19 6 38 16 42 22
-4 5 8 7 8 3 0 -11 280 114 465 208 138 70 230 121 293 160 29 19 55 34 58 34
-9 0 306 200 379 256 39 29 75 57 80 61 18 14 129 107 164 138 113 98 270 254
-342 340 19 21 41 46 49 55 8 9 29 33 45 54 17 21 38 48 49 60 10 11 29 37 42
-56 40 59 113 164 122 175 4 6 23 37 42 70 18 33 36 62 39 65 9 8 82 159 151
-315 25 56 80 229 95 298 2 10 6 26 9 35 5 15 8 32 21 107 20 115 27 193 28
-335 0 114 -9 266 -18 280 -2 3 -6 26 -10 50 -30 212 -166 517 -304 685 -61 73
--232 235 -291 275 -36 24 -67 46 -70 49 -22 26 -247 132 -358 170 -101 34
--283 76 -372 86 -30 3 -68 8 -85 12 -28 5 -313 11 -318 7z"/>
-</g>
-</svg>
diff --git a/frontend/public/site.webmanifest b/frontend/public/site.webmanifest
index 1a190be..2fe0ac3 100644
--- a/frontend/public/site.webmanifest
+++ b/frontend/public/site.webmanifest
@@ -1,18 +1,6 @@
 {
-    "name": "AGViewer",
-    "short_name": "AGViewer",
-    "icons": [
-        {
-            "src": "/android-chrome-192x192.png",
-            "sizes": "192x192",
-            "type": "image/png"
-        },
-        {
-            "src": "/android-chrome-512x512.png",
-            "sizes": "512x512",
-            "type": "image/png"
-        }
-    ],
+    "name": "Apache AGE Viewer",
+    "short_name": "AGE Viewer",
     "theme_color": "#ffffff",
     "background_color": "#ffffff",
     "display": "standalone"