Skip to content

Commit

Permalink
[COMPLIANCE] Add Copyright and License Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hashicorp-copywrite[bot] authored Feb 1, 2023
1 parent 17080de commit a1abe26
Show file tree
Hide file tree
Showing 33 changed files with 147 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# Install dependencies only when needed
FROM node:16-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
cloud {
hostname = "app.terraform.io"
Expand Down
5 changes: 5 additions & 0 deletions postcss.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
*/

// If you want to use other PostCSS plugins, see the following:
// https://tailwindcss.com/docs/using-with-preprocessors
module.exports = {
Expand Down
3 changes: 3 additions & 0 deletions preview-env/loadbalancer.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "aws_lb" "app" {
count = var.is_prod ? 0 : 1
name = terraform.workspace
Expand Down
3 changes: 3 additions & 0 deletions preview-env/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

provider "aws" {
region = var.region
}
Expand Down
3 changes: 3 additions & 0 deletions preview-env/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

output "lb_dns_name" {
value = length(aws_lb.app) > 0 ? "https://${aws_lb.app[0].dns_name}" : ""
}
Expand Down
3 changes: 3 additions & 0 deletions preview-env/setup-hashicups.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

#cloud-config
# Add groups to the system
# Adds the ubuntu group with members 'root' and 'sys'
Expand Down
3 changes: 3 additions & 0 deletions preview-env/terraform.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
required_providers {
vercel = {
Expand Down
3 changes: 3 additions & 0 deletions preview-env/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "environment_tag" {
description = "Environment tag"
default = "Learn"
Expand Down
3 changes: 3 additions & 0 deletions preview-env/vercel.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

data "vercel_project_directory" "frontend" {
path = "."
}
Expand Down
5 changes: 5 additions & 0 deletions src/components/Account.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
*/

import { useState, useEffect, useRef } from 'react'
import { useRouter } from 'next/router'
import Image from 'next/image'
Expand Down
5 changes: 5 additions & 0 deletions src/components/Cart.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
*/

import Image from 'next/image'
import { useState } from 'react'
import NumberFormat from 'react-number-format'
Expand Down
5 changes: 5 additions & 0 deletions src/components/CartButton.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
*/

import Image from 'next/image'

export default function CartButton(props) {
Expand Down
5 changes: 5 additions & 0 deletions src/components/CheckoutButton.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
*/

import { useEffect } from 'react'
import { useRouter } from 'next/router'
import Image from 'next/image'
Expand Down
5 changes: 5 additions & 0 deletions src/components/CoffeeMenu.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
*/

import { useEffect } from 'react'
import Scroll from 'react-scroll'
import { queryFetcher } from 'gql/apolloClient';
Expand Down
5 changes: 5 additions & 0 deletions src/components/Field.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
*/

import { useState, useEffect } from 'react'
import NumberFormat from 'react-number-format'

Expand Down
5 changes: 5 additions & 0 deletions src/components/Footer.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
*/

import Link from 'next/link'
import Image from 'next/image'

Expand Down
5 changes: 5 additions & 0 deletions src/components/Header.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
*/

import Head from 'next/head'
import Image from 'next/image'
import Link from 'next/link'
Expand Down
5 changes: 5 additions & 0 deletions src/components/Orders.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
*/

import useSWR from 'swr'
import Link from 'next/link'
import Image from 'next/image'
Expand Down
5 changes: 5 additions & 0 deletions src/components/PaymentForm.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
*/

import { useState } from 'react'
import { useRouter } from 'next/router'
import Image from 'next/image'
Expand Down
5 changes: 5 additions & 0 deletions src/components/Radio.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
*/

import Image from 'next/image'


Expand Down
5 changes: 5 additions & 0 deletions src/components/Theme.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
*/

import { useState, useEffect } from 'react'
import { useTheme } from 'next-themes'
import { useDarkMode } from 'next-dark-mode'
Expand Down
5 changes: 5 additions & 0 deletions src/gql/apolloClient.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
*/

import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client';
import { setContext } from '@apollo/client/link/context';

Expand Down
5 changes: 5 additions & 0 deletions src/gql/gqlMutations.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
*/

import gql from 'graphql-tag';

const SIGNUP_MUTATION = gql`
Expand Down
5 changes: 5 additions & 0 deletions src/gql/gqlQueries.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
*/

import gql from 'graphql-tag';

const ALL_COFFEES_QUERY = gql`
Expand Down
5 changes: 5 additions & 0 deletions src/pages/_app.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
*/

import '../styles/globals.css'
import { useState, useEffect } from 'react'
import { ThemeProvider } from 'next-themes'
Expand Down
5 changes: 5 additions & 0 deletions src/pages/checkout.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
*/

import { useState } from 'react'
import { useRouter } from 'next/router'
import Image from 'next/image'
Expand Down
5 changes: 5 additions & 0 deletions src/pages/coffee/[id].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
*/

import useSWR from 'swr'
import Link from 'next/link'
import Image from 'next/image'
Expand Down
5 changes: 5 additions & 0 deletions src/pages/index.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
*/

import Header from 'components/Header'
import Footer from 'components/Footer'
import CoffeeMenu from 'components/CoffeeMenu'
Expand Down
5 changes: 5 additions & 0 deletions src/pages/order/[id].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
*/

import useSWR from 'swr'
import Link from 'next/link'
import Image from 'next/image'
Expand Down
5 changes: 5 additions & 0 deletions src/styles/globals.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
*/

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down
5 changes: 5 additions & 0 deletions src/useLocalStorage.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
*/

import { useState, useEffect } from "react";

const storage = {
Expand Down
5 changes: 5 additions & 0 deletions tailwind.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
*/

const defaultTheme = require('tailwindcss/defaultTheme')

module.exports = {
Expand Down

0 comments on commit a1abe26

Please sign in to comment.