Skip to content

Commit

Permalink
chore: add required copyright headers
Browse files Browse the repository at this point in the history
Signed-off-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
  • Loading branch information
hashicorp-copywrite[bot] authored and xiehan committed Oct 19, 2023
1 parent 8a624f5 commit 3d48999
Show file tree
Hide file tree
Showing 25 changed files with 125 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/code/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<!DOCTYPE html>
<!--
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
-->

<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/scripts/deploy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

const path = require('path');
const execSync = require('child_process').execSync;

Expand Down
5 changes: 5 additions & 0 deletions frontend/code/scripts/destroy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

const path = require("path");
const execSync = require("child_process").execSync;

Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/App.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

.background {
background-color: white;
height: 100vh;
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/App.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/CreatePostModal.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

.post-modal label {
display: block;
margin-top: 2em;
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/CreatePostModal.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/Post.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

.post {
background-color: #67AAF9;
border-radius: 5px;
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/Post.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/api.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/index.css
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/index.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/reportWebVitals.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

import { ReportHandler } from 'web-vitals';

const reportWebVitals = (onPerfEntry?: ReportHandler) => {
Expand Down
5 changes: 5 additions & 0 deletions frontend/code/src/setupTests.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 5 additions & 0 deletions frontend/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
5 changes: 5 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 5 additions & 0 deletions posts/api/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 5 additions & 0 deletions posts/api/lambda/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

import {
APIGatewayProxyEventV2,
APIGatewayProxyResultV2,
Expand Down
5 changes: 5 additions & 0 deletions posts/api/lambda/posts.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 5 additions & 0 deletions posts/generator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

import { Construct } from "constructs";

interface PostsGeneratorOptions {
Expand Down
5 changes: 5 additions & 0 deletions posts/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 5 additions & 0 deletions posts/storage.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
5 changes: 5 additions & 0 deletions setup.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

const cdktf = require("cdktf");
cdktf.Testing.setupJest();
5 changes: 5 additions & 0 deletions test/test-against-regression.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 3d48999

Please sign in to comment.