Skip to content

Commit 2b8b3a5

Browse files
authored
Add ASF license (#13)
1 parent fa21f07 commit 2b8b3a5

File tree

159 files changed

+2626
-1226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+2626
-1226
lines changed

.dockerignore

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
119
node_modules
220
**/node_modules
321
README*

.gitattributes

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
119
*.scss text eol=lf
220
*.css text eol=lf
321

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
119

220
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,node,react
321
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,node,react

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
119
FROM node:14-alpine3.13
220

321
RUN mkdir -p /app

README-ko.md

-61
This file was deleted.

backend/.gitignore

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
118

219
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,node,react
320
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,node,react
@@ -139,4 +156,4 @@ sketch
139156
### react frontend ###
140157
frontend/build
141158

142-
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,node,react
159+
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,node,react

backend/package.json

+59-52
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,62 @@
11
{
2-
"name": "ag-viewer-backend",
3-
"version": "0.4.0",
4-
"private": true,
5-
"scripts": {
6-
"test": "mocha -r @babel/register --exit --timeout 100000",
7-
"test:connector": "mocha -r @babel/register --exit --timeout 10000 ./test/connector.api.test.js",
8-
"test:metachart": "mocha -r @babel/register --exit --timeout 10000 ./test/meta.api.test.js",
9-
"test:cypher": "mocha -r @babel/register --exit --timeout 10000 ./test/cypher.api.test.js",
10-
"test:session": "mocha -r @babel/register --exit --timeout 10000 ./test/session.api.test.js",
11-
"test:query": "mocha -r @babel/register --exit --timeout 10000 ./test/cypher.service.test.js",
12-
"test:ageParsing": "mocha -r @babel/register --exit --timeout 10000 ./test/ageParsing.test.js",
13-
"start": "babel-node src/bin/www",
14-
"start:dev": "nodemon --watch src/app.js --watch src/ --exec 'babel-node' src/bin/www",
15-
"build": "babel -d ./build ./src -s",
16-
"start:production": "node ./build/bin/www.js"
17-
},
18-
"dependencies": {
19-
"@bitnine-oss/ag-driver": "^0.1.0",
20-
"antlr4": "^4.9.2",
21-
"cookie-parser": "~1.4.5",
22-
"cors": "^2.8.5",
23-
"csv": "^5.5.0",
24-
"debug": "~4.3.1",
25-
"ejs": "^3.1.6",
26-
"express": "~4.17.1",
27-
"express-session": "^1.17.1",
28-
"http-status": "^1.5.0",
29-
"morgan": "~1.10.0",
30-
"multer": "^1.4.2",
31-
"npm-run-all": "^4.1.5",
32-
"pegjs": "^0.10.0",
33-
"pg": "^8.5.1",
34-
"pg-types": "^2.2.0",
35-
"uuid": "^8.3.2",
36-
"winston": "^3.3.3",
37-
"winston-daily-rotate-file": "^4.5.0"
38-
},
39-
"devDependencies": {
40-
"@babel/cli": "^7.12.13",
41-
"@babel/core": "^7.12.13",
42-
"@babel/node": "^7.12.13",
43-
"@babel/plugin-proposal-class-properties": "^7.13.0",
44-
"@babel/plugin-transform-runtime": "^7.12.15",
45-
"@babel/preset-env": "^7.12.13",
46-
"@babel/register": "^7.12.13",
47-
"babel-plugin-polyfill-corejs2": "^0.2.0",
48-
"babel-plugin-polyfill-corejs3": "^0.2.0",
49-
"babel-plugin-polyfill-regenerator": "^0.2.0",
50-
"mocha": "^8.2.1",
51-
"nodemon": "^2.0.7",
52-
"supertest": "^6.0.1",
53-
"supertest-session": "^4.1.0"
2+
"name": "ag-viewer-backend",
3+
"version": "0.4.0",
4+
"private": true,
5+
"license": "Apache-2.0",
6+
"licenses": [
7+
{
8+
"type": "Apache-2.0",
9+
"url": "https://www.apache.org/licenses/LICENSE-2.0"
5410
}
11+
],
12+
"scripts": {
13+
"test": "mocha -r @babel/register --exit --timeout 100000",
14+
"test:connector": "mocha -r @babel/register --exit --timeout 10000 ./test/connector.api.test.js",
15+
"test:metachart": "mocha -r @babel/register --exit --timeout 10000 ./test/meta.api.test.js",
16+
"test:cypher": "mocha -r @babel/register --exit --timeout 10000 ./test/cypher.api.test.js",
17+
"test:session": "mocha -r @babel/register --exit --timeout 10000 ./test/session.api.test.js",
18+
"test:query": "mocha -r @babel/register --exit --timeout 10000 ./test/cypher.service.test.js",
19+
"test:ageParsing": "mocha -r @babel/register --exit --timeout 10000 ./test/ageParsing.test.js",
20+
"start": "babel-node src/bin/www",
21+
"start:dev": "nodemon --watch src/app.js --watch src/ --exec 'babel-node' src/bin/www",
22+
"build": "babel -d ./build ./src -s",
23+
"start:production": "node ./build/bin/www.js"
24+
},
25+
"dependencies": {
26+
"@bitnine-oss/ag-driver": "^0.1.0",
27+
"antlr4": "^4.9.2",
28+
"cookie-parser": "~1.4.5",
29+
"cors": "^2.8.5",
30+
"csv": "^5.5.0",
31+
"debug": "~4.3.1",
32+
"ejs": "^3.1.6",
33+
"express": "~4.17.1",
34+
"express-session": "^1.17.1",
35+
"http-status": "^1.5.0",
36+
"morgan": "~1.10.0",
37+
"multer": "^1.4.2",
38+
"npm-run-all": "^4.1.5",
39+
"pegjs": "^0.10.0",
40+
"pg": "^8.5.1",
41+
"pg-types": "^2.2.0",
42+
"uuid": "^8.3.2",
43+
"winston": "^3.3.3",
44+
"winston-daily-rotate-file": "^4.5.0"
45+
},
46+
"devDependencies": {
47+
"@babel/cli": "^7.12.13",
48+
"@babel/core": "^7.12.13",
49+
"@babel/node": "^7.12.13",
50+
"@babel/plugin-proposal-class-properties": "^7.13.0",
51+
"@babel/plugin-transform-runtime": "^7.12.15",
52+
"@babel/preset-env": "^7.12.13",
53+
"@babel/register": "^7.12.13",
54+
"babel-plugin-polyfill-corejs2": "^0.2.0",
55+
"babel-plugin-polyfill-corejs3": "^0.2.0",
56+
"babel-plugin-polyfill-regenerator": "^0.2.0",
57+
"mocha": "^8.2.1",
58+
"nodemon": "^2.0.7",
59+
"supertest": "^6.0.1",
60+
"supertest-session": "^4.1.0"
61+
}
5562
}

backend/sql/get_role/default.sql

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
SELECT usename as user_name,
221
CASE
322
WHEN usesuper THEN

backend/sql/graph_labels/AGE.sql

+19
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
SELECT oid as la_oid, name as la_name, kind as la_kind FROM ag_catalog.ag_label;

backend/sql/graph_labels/AGENS.sql

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
SELECT l.labid as la_oid, l.labname as la_name, l.labkind as la_kind
221
FROM PG_CATALOG.AG_LABEL l
322
INNER JOIN PG_CATALOG.AG_GRAPH g ON g.oid = l.graphid
+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
SELECT SPLIT_PART(start::text, '.', 1) AS la_start, SPLIT_PART("end"::text, '.', 1) AS la_end, COUNT(1) AS la_count
221
FROM %s
322
GROUP BY SPLIT_PART(start::text, '.', 1), SPLIT_PART("end"::text, '.', 1)

0 commit comments

Comments
 (0)