diff --git a/frontend/code/public/index.html b/frontend/code/public/index.html index 3f8d64a..9ad9072 100644 --- a/frontend/code/public/index.html +++ b/frontend/code/public/index.html @@ -1,4 +1,9 @@ + + diff --git a/frontend/code/scripts/deploy.js b/frontend/code/scripts/deploy.js index 297a425..fb42cf4 100644 --- a/frontend/code/scripts/deploy.js +++ b/frontend/code/scripts/deploy.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const path = require('path'); const execSync = require('child_process').execSync; diff --git a/frontend/code/scripts/destroy.js b/frontend/code/scripts/destroy.js index 535f957..19001fb 100644 --- a/frontend/code/scripts/destroy.js +++ b/frontend/code/scripts/destroy.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const path = require("path"); const execSync = require("child_process").execSync; diff --git a/frontend/code/src/App.css b/frontend/code/src/App.css index d23eee6..c764049 100644 --- a/frontend/code/src/App.css +++ b/frontend/code/src/App.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .background { background-color: white; height: 100vh; diff --git a/frontend/code/src/App.tsx b/frontend/code/src/App.tsx index 460397a..bcc7ce8 100644 --- a/frontend/code/src/App.tsx +++ b/frontend/code/src/App.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import React from "react"; import "./App.css"; import { usePosts } from "./api"; diff --git a/frontend/code/src/CreatePostModal.css b/frontend/code/src/CreatePostModal.css index 7ebd4a9..2df2f1d 100644 --- a/frontend/code/src/CreatePostModal.css +++ b/frontend/code/src/CreatePostModal.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .post-modal label { display: block; margin-top: 2em; diff --git a/frontend/code/src/CreatePostModal.tsx b/frontend/code/src/CreatePostModal.tsx index 4d9402d..12a285c 100644 --- a/frontend/code/src/CreatePostModal.tsx +++ b/frontend/code/src/CreatePostModal.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import React from "react"; import Modal from "react-modal"; import { createPost } from "./api"; diff --git a/frontend/code/src/Post.css b/frontend/code/src/Post.css index 564b2fe..58c0566 100644 --- a/frontend/code/src/Post.css +++ b/frontend/code/src/Post.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + .post { background-color: #67AAF9; border-radius: 5px; diff --git a/frontend/code/src/Post.tsx b/frontend/code/src/Post.tsx index 93f2180..cc98ce8 100644 --- a/frontend/code/src/Post.tsx +++ b/frontend/code/src/Post.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import * as React from "react"; import { Post as Props, usePostDetail } from "./api"; import "./Post.css" diff --git a/frontend/code/src/api.ts b/frontend/code/src/api.ts index 70245ff..5478dc7 100644 --- a/frontend/code/src/api.ts +++ b/frontend/code/src/api.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import React from "react"; const API_URL = process.env.REACT_APP_API_ENDPOINT || "http://localhost:4000"; diff --git a/frontend/code/src/index.css b/frontend/code/src/index.css index ec2585e..f4cbc92 100644 --- a/frontend/code/src/index.css +++ b/frontend/code/src/index.css @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', diff --git a/frontend/code/src/index.tsx b/frontend/code/src/index.tsx index ef2edf8..4125ab4 100644 --- a/frontend/code/src/index.tsx +++ b/frontend/code/src/index.tsx @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; diff --git a/frontend/code/src/reportWebVitals.ts b/frontend/code/src/reportWebVitals.ts index 49a2a16..d4b4a9b 100644 --- a/frontend/code/src/reportWebVitals.ts +++ b/frontend/code/src/reportWebVitals.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { ReportHandler } from 'web-vitals'; const reportWebVitals = (onPerfEntry?: ReportHandler) => { diff --git a/frontend/code/src/setupTests.ts b/frontend/code/src/setupTests.ts index 8f2609b..05813b1 100644 --- a/frontend/code/src/setupTests.ts +++ b/frontend/code/src/setupTests.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i) diff --git a/frontend/index.ts b/frontend/index.ts index 5460795..993d558 100644 --- a/frontend/index.ts +++ b/frontend/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { S3Bucket } from "@cdktf/provider-aws/lib/s3-bucket"; import { S3BucketPolicy } from "@cdktf/provider-aws/lib/s3-bucket-policy"; import { S3BucketWebsiteConfiguration } from "@cdktf/provider-aws/lib/s3-bucket-website-configuration"; diff --git a/jest.config.js b/jest.config.js index d62db83..db98fe7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ /* * For a detailed explanation regarding each configuration property, visit: diff --git a/main.ts b/main.ts index e4f17a4..ff89fec 100644 --- a/main.ts +++ b/main.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { AwsProvider } from "@cdktf/provider-aws/lib/provider"; import { App, TerraformStack, RemoteBackend } from "cdktf"; import { Construct } from "constructs"; diff --git a/posts/api/index.ts b/posts/api/index.ts index 695f8f4..974759b 100644 --- a/posts/api/index.ts +++ b/posts/api/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { NodejsFunction } from "../../lib/nodejs-function"; import { Construct } from "constructs"; import { DynamodbTable } from "@cdktf/provider-aws/lib/dynamodb-table"; diff --git a/posts/api/lambda/index.ts b/posts/api/lambda/index.ts index 525f841..701c1d4 100644 --- a/posts/api/lambda/index.ts +++ b/posts/api/lambda/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { APIGatewayProxyEventV2, APIGatewayProxyResultV2, diff --git a/posts/api/lambda/posts.ts b/posts/api/lambda/posts.ts index cb610be..2199d0a 100644 --- a/posts/api/lambda/posts.ts +++ b/posts/api/lambda/posts.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { v4 as uuidv4 } from "uuid"; import { Table, Entity } from "dynamodb-toolbox"; import DynamoDB from "aws-sdk/clients/dynamodb"; diff --git a/posts/generator.ts b/posts/generator.ts index 9ca5215..49ef936 100644 --- a/posts/generator.ts +++ b/posts/generator.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { Construct } from "constructs"; interface PostsGeneratorOptions { diff --git a/posts/index.ts b/posts/index.ts index 3d60cff..c69dffa 100644 --- a/posts/index.ts +++ b/posts/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { Construct } from "constructs"; import { PostsApi } from "./api"; import { PostsGenerator } from "./generator"; diff --git a/posts/storage.ts b/posts/storage.ts index 7fff58b..ce77556 100644 --- a/posts/storage.ts +++ b/posts/storage.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { DynamodbTable } from "@cdktf/provider-aws/lib/dynamodb-table"; import { Construct } from "constructs"; diff --git a/setup.js b/setup.js index 0b7e72f..cabf538 100644 --- a/setup.js +++ b/setup.js @@ -1,2 +1,7 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const cdktf = require("cdktf"); cdktf.Testing.setupJest(); diff --git a/test/test-against-regression.test.ts b/test/test-against-regression.test.ts index 7244a68..dbe68ef 100644 --- a/test/test-against-regression.test.ts +++ b/test/test-against-regression.test.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { FrontendStack } from "../main"; import { PostsStack } from "../main"; import { Testing } from "cdktf";