From 1da02e16102435e9923fe51df50db2adff5ace43 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Fri, 14 Jun 2019 11:08:16 +0930 Subject: [PATCH] add license header Signed-off-by: Alexis Tyler --- app/graphql/config.js | 12 ++++++++++++ app/graphql/index.js | 14 +++++++++++++- app/graphql/schema/resolvers.js | 12 ++++++++++++ app/graphql/schema/type-defs.js | 12 ++++++++++++ app/index.js | 12 ++++++++++++ app/server.js | 14 +++++++++++++- index.js | 12 ++++++++++++ 7 files changed, 86 insertions(+), 2 deletions(-) diff --git a/app/graphql/config.js b/app/graphql/config.js index b4a2f4490..7bda2c061 100644 --- a/app/graphql/config.js +++ b/app/graphql/config.js @@ -1,3 +1,15 @@ +/* + * Copyright 2005-2019, Lime Technology + * Copyright 2018-2019, Alexis Tyler + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + */ + const env = process.env.NODE_ENV === 'production'; const GRAPHQL_PORT = process.env.GRAPHQL_PORT || 5000; diff --git a/app/graphql/index.js b/app/graphql/index.js index 1493c89ac..a794d94a1 100644 --- a/app/graphql/index.js +++ b/app/graphql/index.js @@ -1,4 +1,16 @@ -module.exports = function ($injector, glob, get, graphql, graphqlDirective, mergeGraphqlSchemas, ApiManager, log, typeDefs, resolvers, loadState, AppError) { +/* + * Copyright 2005-2019, Lime Technology + * Copyright 2018-2019, Alexis Tyler + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + */ + + module.exports = function ($injector, glob, get, graphql, graphqlDirective, mergeGraphqlSchemas, ApiManager, log, typeDefs, resolvers, loadState, AppError) { const apiManager = new ApiManager(); const { buildSchema } = graphql; const { addDirectiveResolveFunctionsToSchema } = graphqlDirective; diff --git a/app/graphql/schema/resolvers.js b/app/graphql/schema/resolvers.js index 12ec93c9d..0880c7571 100644 --- a/app/graphql/schema/resolvers.js +++ b/app/graphql/schema/resolvers.js @@ -1,3 +1,15 @@ +/* + * Copyright 2005-2019, Lime Technology + * Copyright 2018-2019, Alexis Tyler + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + */ + module.exports = function (deepmerge, GraphQLJSON, GraphQLLong, GraphQLUUID) { return deepmerge.all([ { diff --git a/app/graphql/schema/type-defs.js b/app/graphql/schema/type-defs.js index 8547a4e9f..6c7e7883e 100644 --- a/app/graphql/schema/type-defs.js +++ b/app/graphql/schema/type-defs.js @@ -1,3 +1,15 @@ +/* + * Copyright 2005-2019, Lime Technology + * Copyright 2018-2019, Alexis Tyler + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + */ + module.exports = function (path, mergeGraphqlSchemas) { const { join } = path; const { fileLoader, mergeTypes } = mergeGraphqlSchemas; diff --git a/app/index.js b/app/index.js index 44c42f08f..b0a3e03d9 100644 --- a/app/index.js +++ b/app/index.js @@ -1,3 +1,15 @@ +/* + * Copyright 2005-2019, Lime Technology + * Copyright 2018-2019, Alexis Tyler + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + */ + const path = require('path'); const am = require('am'); const camelcase = require('camelcase'); diff --git a/app/server.js b/app/server.js index 206cc721f..3d82888e0 100644 --- a/app/server.js +++ b/app/server.js @@ -1,4 +1,16 @@ -/** +/* + * Copyright 2005-2019, Lime Technology + * Copyright 2018-2019, Alexis Tyler + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + */ + + /** * The Graphql server. */ module.exports = function ($injector, fs, net, express, config, log, getEndpoints, stoppable) { diff --git a/index.js b/index.js index 3a2083604..f08be1abb 100644 --- a/index.js +++ b/index.js @@ -1 +1,13 @@ +/* + * Copyright 2005-2019, Lime Technology + * Copyright 2018-2019, Alexis Tyler + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + */ + require('./app'); \ No newline at end of file