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


The following commit(s) were added to refs/heads/main by this push:
     new e74cfe3  Corrects `cytoscape-cxtmenu` license
e74cfe3 is described below

commit e74cfe38804619ef84d513749e4688e9249bc299
Author: Alex Kwak <[email protected]>
AuthorDate: Tue Jan 4 14:05:51 2022 +0900

    Corrects `cytoscape-cxtmenu` license
---
 .../cytoscape/CypherResultCytoscapeChart.jsx       |  2 +-
 .../src/lib/cytoscape-cxtmenu-bitnine/assign.js    | 29 -----------------
 .../lib/cytoscape-cxtmenu-bitnine/core/index.js    | 27 ----------------
 .../src/lib/cytoscape-cxtmenu-bitnine/index.js     | 34 --------------------
 .../LICENSE                                        |  0
 frontend/src/lib/cytoscape-cxtmenu/assign.js       | 32 +++++++++++++++++++
 frontend/src/lib/cytoscape-cxtmenu/core/index.js   | 30 ++++++++++++++++++
 .../cxtmenu.js                                     | 31 ++++++++++--------
 .../defaults.js                                    | 31 ++++++++++--------
 .../dom-util.js                                    | 31 ++++++++++--------
 frontend/src/lib/cytoscape-cxtmenu/index.js        | 37 ++++++++++++++++++++++
 .../package.json                                   |  0
 12 files changed, 151 insertions(+), 133 deletions(-)

diff --git a/frontend/src/components/cytoscape/CypherResultCytoscapeChart.jsx 
b/frontend/src/components/cytoscape/CypherResultCytoscapeChart.jsx
index e4995d4..ff4fd43 100644
--- a/frontend/src/components/cytoscape/CypherResultCytoscapeChart.jsx
+++ b/frontend/src/components/cytoscape/CypherResultCytoscapeChart.jsx
@@ -35,7 +35,7 @@ import {
   faProjectDiagram,
   faWindowClose,
 } from '@fortawesome/free-solid-svg-icons';
-import cxtmenu from '../../lib/cytoscape-cxtmenu-bitnine';
+import cxtmenu from '../../lib/cytoscape-cxtmenu';
 import { initLocation, seletableLayouts } from './CytoscapeLayouts';
 import { stylesheet } from './CytoscapeStyleSheet';
 import { generateCytoscapeElement } from '../../features/cypher/CypherUtil';
diff --git a/frontend/src/lib/cytoscape-cxtmenu-bitnine/assign.js 
b/frontend/src/lib/cytoscape-cxtmenu-bitnine/assign.js
deleted file mode 100644
index 9842601..0000000
--- a/frontend/src/lib/cytoscape-cxtmenu-bitnine/assign.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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.
- */
-
-/* eslint-disable */
-// Simple, internal Object.assign() polyfill for options objects etc.
-
-module.exports = Object.assign != null ? Object.assign.bind(Object) : function 
(tgt, ...srcs) {
-  srcs.filter((src) => src != null).forEach((src) => {
-    Object.keys(src).forEach((k) => tgt[k] = src[k]);
-  });
-
-  return tgt;
-};
diff --git a/frontend/src/lib/cytoscape-cxtmenu-bitnine/core/index.js 
b/frontend/src/lib/cytoscape-cxtmenu-bitnine/core/index.js
deleted file mode 100644
index aa6c98c..0000000
--- a/frontend/src/lib/cytoscape-cxtmenu-bitnine/core/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * 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.
- */
-
-/* eslint-disable */
-module.exports = function () {
-  const cy = this;
-
-  // your extension impl...
-
-  return this; // chainability
-};
diff --git a/frontend/src/lib/cytoscape-cxtmenu-bitnine/index.js 
b/frontend/src/lib/cytoscape-cxtmenu-bitnine/index.js
deleted file mode 100644
index cf92988..0000000
--- a/frontend/src/lib/cytoscape-cxtmenu-bitnine/index.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * 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.
- */
-
-/* eslint-disable */
-const cxtmenu = require('./cxtmenu');
-
-// registers the extension on a cytoscape lib ref
-const register = function (cytoscape) {
-  if (!cytoscape) { return; } // can't register if cytoscape unspecified
-
-  cytoscape('core', 'cxtmenu', cxtmenu); // register with cytoscape.js
-};
-
-if (typeof cytoscape !== 'undefined') { // expose to global cytoscape (i.e. 
window.cytoscape)
-  register(cytoscape);
-}
-
-module.exports = register;
diff --git a/frontend/src/lib/cytoscape-cxtmenu-bitnine/LICENSE 
b/frontend/src/lib/cytoscape-cxtmenu/LICENSE
similarity index 100%
rename from frontend/src/lib/cytoscape-cxtmenu-bitnine/LICENSE
rename to frontend/src/lib/cytoscape-cxtmenu/LICENSE
diff --git a/frontend/src/lib/cytoscape-cxtmenu/assign.js 
b/frontend/src/lib/cytoscape-cxtmenu/assign.js
new file mode 100644
index 0000000..28d65c9
--- /dev/null
+++ b/frontend/src/lib/cytoscape-cxtmenu/assign.js
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2016-2020, The Cytoscape Consortium.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a 
copy of
+ * this software and associated documentation files (the “Software”), to deal 
in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies
+ * of the Software, and to permit persons to whom the Software is furnished to 
do
+ * so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in 
all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE.
+ */
+
+/* eslint-disable */
+// Simple, internal Object.assign() polyfill for options objects etc.
+
+module.exports = Object.assign != null ? Object.assign.bind(Object) : function 
(tgt, ...srcs) {
+  srcs.filter((src) => src != null).forEach((src) => {
+    Object.keys(src).forEach((k) => tgt[k] = src[k]);
+  });
+
+  return tgt;
+};
diff --git a/frontend/src/lib/cytoscape-cxtmenu/core/index.js 
b/frontend/src/lib/cytoscape-cxtmenu/core/index.js
new file mode 100644
index 0000000..ff6b27e
--- /dev/null
+++ b/frontend/src/lib/cytoscape-cxtmenu/core/index.js
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2016-2020, The Cytoscape Consortium.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a 
copy of
+ * this software and associated documentation files (the “Software”), to deal 
in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies
+ * of the Software, and to permit persons to whom the Software is furnished to 
do
+ * so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in 
all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE.
+ */
+
+/* eslint-disable */
+module.exports = function () {
+  const cy = this;
+
+  // your extension impl...
+
+  return this; // chainability
+};
diff --git a/frontend/src/lib/cytoscape-cxtmenu-bitnine/cxtmenu.js 
b/frontend/src/lib/cytoscape-cxtmenu/cxtmenu.js
similarity index 93%
rename from frontend/src/lib/cytoscape-cxtmenu-bitnine/cxtmenu.js
rename to frontend/src/lib/cytoscape-cxtmenu/cxtmenu.js
index bfd7afb..9446f73 100644
--- a/frontend/src/lib/cytoscape-cxtmenu-bitnine/cxtmenu.js
+++ b/frontend/src/lib/cytoscape-cxtmenu/cxtmenu.js
@@ -1,20 +1,23 @@
 /*
- * 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
+ * Copyright (c) 2016-2020, The Cytoscape Consortium.
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * Permission is hereby granted, free of charge, to any person obtaining a 
copy of
+ * this software and associated documentation files (the “Software”), to deal 
in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies
+ * of the Software, and to permit persons to whom the Software is furnished to 
do
+ * so, subject to the following conditions:
  *
- * 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.
+ * The above copyright notice and this permission notice shall be included in 
all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE.
  */
 
 /* eslint-disable */
diff --git a/frontend/src/lib/cytoscape-cxtmenu-bitnine/defaults.js 
b/frontend/src/lib/cytoscape-cxtmenu/defaults.js
similarity index 64%
rename from frontend/src/lib/cytoscape-cxtmenu-bitnine/defaults.js
rename to frontend/src/lib/cytoscape-cxtmenu/defaults.js
index cc5ce79..ac9862f 100644
--- a/frontend/src/lib/cytoscape-cxtmenu-bitnine/defaults.js
+++ b/frontend/src/lib/cytoscape-cxtmenu/defaults.js
@@ -1,20 +1,23 @@
 /*
- * 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
+ * Copyright (c) 2016-2020, The Cytoscape Consortium.
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * Permission is hereby granted, free of charge, to any person obtaining a 
copy of
+ * this software and associated documentation files (the “Software”), to deal 
in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies
+ * of the Software, and to permit persons to whom the Software is furnished to 
do
+ * so, subject to the following conditions:
  *
- * 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.
+ * The above copyright notice and this permission notice shall be included in 
all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE.
  */
 
 /* eslint-disable */
diff --git a/frontend/src/lib/cytoscape-cxtmenu-bitnine/dom-util.js 
b/frontend/src/lib/cytoscape-cxtmenu/dom-util.js
similarity index 54%
rename from frontend/src/lib/cytoscape-cxtmenu-bitnine/dom-util.js
rename to frontend/src/lib/cytoscape-cxtmenu/dom-util.js
index 94276de..d2bfe06 100644
--- a/frontend/src/lib/cytoscape-cxtmenu-bitnine/dom-util.js
+++ b/frontend/src/lib/cytoscape-cxtmenu/dom-util.js
@@ -1,20 +1,23 @@
 /*
- * 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
+ * Copyright (c) 2016-2020, The Cytoscape Consortium.
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * Permission is hereby granted, free of charge, to any person obtaining a 
copy of
+ * this software and associated documentation files (the “Software”), to deal 
in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies
+ * of the Software, and to permit persons to whom the Software is furnished to 
do
+ * so, subject to the following conditions:
  *
- * 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.
+ * The above copyright notice and this permission notice shall be included in 
all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE.
  */
 
 /* eslint-disable */
diff --git a/frontend/src/lib/cytoscape-cxtmenu/index.js 
b/frontend/src/lib/cytoscape-cxtmenu/index.js
new file mode 100644
index 0000000..8d3879d
--- /dev/null
+++ b/frontend/src/lib/cytoscape-cxtmenu/index.js
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2016-2020, The Cytoscape Consortium.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a 
copy of
+ * this software and associated documentation files (the “Software”), to deal 
in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies
+ * of the Software, and to permit persons to whom the Software is furnished to 
do
+ * so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in 
all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE.
+ */
+
+/* eslint-disable */
+const cxtmenu = require('./cxtmenu');
+
+// registers the extension on a cytoscape lib ref
+const register = function (cytoscape) {
+  if (!cytoscape) { return; } // can't register if cytoscape unspecified
+
+  cytoscape('core', 'cxtmenu', cxtmenu); // register with cytoscape.js
+};
+
+if (typeof cytoscape !== 'undefined') { // expose to global cytoscape (i.e. 
window.cytoscape)
+  register(cytoscape);
+}
+
+module.exports = register;
diff --git a/frontend/src/lib/cytoscape-cxtmenu-bitnine/package.json 
b/frontend/src/lib/cytoscape-cxtmenu/package.json
similarity index 100%
rename from frontend/src/lib/cytoscape-cxtmenu-bitnine/package.json
rename to frontend/src/lib/cytoscape-cxtmenu/package.json

Reply via email to