Skip to content

Commit

Permalink
Add missing compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Jun 10, 2024
1 parent a1b8dc2 commit 595c945
Show file tree
Hide file tree
Showing 21 changed files with 147 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/(dashboard)/SignOutButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
'use client'
import { Button } from '@stanfordbdhg/design-system/components/Button'
import { auth } from '../../modules/firebase/clientApp'
Expand Down
7 changes: 7 additions & 0 deletions app/(dashboard)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import { redirect } from 'next/navigation'
import { SignOutButton } from './SignOutButton'
import { getServerApp } from '../../modules/firebase/serverApp'
Expand Down
8 changes: 7 additions & 1 deletion app/RegisterWorker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
'use client'

import { type User } from '@firebase/auth-types'
import { onAuthStateChanged } from 'firebase/auth'
import { useRouter } from 'next/navigation'
Expand Down
7 changes: 7 additions & 0 deletions app/sign-in/SignInForm.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
'use client'
import { signInWithEmailAndPassword, signInWithPopup } from 'firebase/auth'
import { useTranslations } from 'next-intl'
Expand Down
7 changes: 7 additions & 0 deletions app/sign-in/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import Image from 'next/image'
import { type ReactNode } from 'react'

Expand Down
7 changes: 7 additions & 0 deletions app/sign-in/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import { redirect } from 'next/navigation'
import { SignInForm } from './SignInForm'
import { getServerApp } from '../../modules/firebase/serverApp'
Expand Down
7 changes: 7 additions & 0 deletions authServiceWorker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
/// <reference lib="webworker" />

declare let self: ServiceWorkerGlobalScope
Expand Down
7 changes: 7 additions & 0 deletions env.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import { createEnv } from '@t3-oss/env-nextjs'
import { z } from 'zod'

Expand Down
7 changes: 7 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import type en from './messages/en.json'

type Messages = typeof en
Expand Down
7 changes: 7 additions & 0 deletions i18n.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
/* eslint-disable import/no-default-export */
import { getRequestConfig } from 'next-intl/server'
import { type AbstractIntlMessages } from 'use-intl'
Expand Down
6 changes: 6 additions & 0 deletions messages/en.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project

SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
7 changes: 7 additions & 0 deletions modules/firebase/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import { env } from '../../env'

export const firebaseConfig = {
Expand Down
7 changes: 7 additions & 0 deletions modules/firebase/serverApp.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import { initializeServerApp } from 'firebase/app'
import { getAuth } from 'firebase/auth'
import { headers } from 'next/headers'
Expand Down
8 changes: 8 additions & 0 deletions modules/routes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//

export const routes = {
home: '/',
signIn: '/sign-in',
Expand Down
7 changes: 7 additions & 0 deletions packages/design-system/src/components/Error/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import { forwardRef, type HTMLProps, type ReactNode } from 'react'
import { cn } from '../../utils/className'

Expand Down
7 changes: 7 additions & 0 deletions packages/design-system/src/components/Error/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
export * from './Error'
7 changes: 7 additions & 0 deletions packages/design-system/src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import { forwardRef, type InputHTMLAttributes } from 'react'
import { cn } from '../../utils/className'

Expand Down
7 changes: 7 additions & 0 deletions packages/design-system/src/components/Input/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
export * from './Input'
7 changes: 7 additions & 0 deletions packages/design-system/src/forms/Field/Field.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
'use client'
import type { ReactElement, ReactNode } from 'react'
import {
Expand Down
7 changes: 7 additions & 0 deletions packages/design-system/src/forms/Field/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
export * from './Field'
7 changes: 7 additions & 0 deletions packages/design-system/src/forms/useForm/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import { zodResolver } from '@hookform/resolvers/zod'
import { isObject, isString } from 'lodash'
import { useCallback } from 'react'
Expand Down

0 comments on commit 595c945

Please sign in to comment.