From ca17dd1adbc33513f391641a73b6dd39eae8bc9c Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 27 Oct 2024 22:24:55 +0100 Subject: [PATCH 1/2] Add .ts extension to copyright notice --- .github/workflows/copyright_notice.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyright_notice.yml b/.github/workflows/copyright_notice.yml index 64fa64f..fed4cc4 100644 --- a/.github/workflows/copyright_notice.yml +++ b/.github/workflows/copyright_notice.yml @@ -14,7 +14,7 @@ jobs: - uses: VinnyBabuManjaly/copyright-action@v1.0.0 with: CopyrightString: '/* Copyright (C) 2024 Manuel Bustillo*/\n\n' - FileType: '.tsx, .jsx' + FileType: '.tsx, .jsx, .ts' Path: 'app/, config/, db/' IgnorePath: 'testfolder1/a/, testfolder3' - name: Commit changes From 18a0fdc5141d1b8996ea1e60a64f10ad01d25cd5 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 27 Oct 2024 21:27:41 +0000 Subject: [PATCH 2/2] Add copyright notice --- app/lib/definitions.ts | 2 ++ app/lib/placeholder-data.ts | 2 ++ app/lib/utils.ts | 2 ++ app/seed/route.ts | 2 ++ app/ui/fonts.ts | 2 ++ 5 files changed, 10 insertions(+) diff --git a/app/lib/definitions.ts b/app/lib/definitions.ts index 17063fe..70eacd2 100644 --- a/app/lib/definitions.ts +++ b/app/lib/definitions.ts @@ -1,3 +1,5 @@ +/* Copyright (C) 2024 Manuel Bustillo*/ + // This file contains type definitions for your data. // It describes the shape of the data, and what data type each property should accept. // For simplicity of teaching, we're manually defining these types. diff --git a/app/lib/placeholder-data.ts b/app/lib/placeholder-data.ts index 76892d5..2d78faa 100644 --- a/app/lib/placeholder-data.ts +++ b/app/lib/placeholder-data.ts @@ -1,3 +1,5 @@ +/* Copyright (C) 2024 Manuel Bustillo*/ + // This file contains placeholder data that you'll be replacing with real data in the Data Fetching chapter: // https://nextjs.org/learn/dashboard-app/fetching-data const users = [ diff --git a/app/lib/utils.ts b/app/lib/utils.ts index 8c1a35a..4d9ce77 100644 --- a/app/lib/utils.ts +++ b/app/lib/utils.ts @@ -1,3 +1,5 @@ +/* Copyright (C) 2024 Manuel Bustillo*/ + import { Revenue } from './definitions'; export const formatCurrency = (amount: number) => { diff --git a/app/seed/route.ts b/app/seed/route.ts index 944672c..db632cd 100644 --- a/app/seed/route.ts +++ b/app/seed/route.ts @@ -1,3 +1,5 @@ +/* Copyright (C) 2024 Manuel Bustillo*/ + // import bcrypt from 'bcrypt'; // import { db } from '@vercel/postgres'; // import { guests, customers, revenue, users } from '../lib/placeholder-data'; diff --git a/app/ui/fonts.ts b/app/ui/fonts.ts index 3299f09..e520f6f 100644 --- a/app/ui/fonts.ts +++ b/app/ui/fonts.ts @@ -1,3 +1,5 @@ +/* Copyright (C) 2024 Manuel Bustillo*/ + import { Inter, Lusitana, Gloria_Hallelujah} from 'next/font/google'; export const inter = Inter({ subsets: ['latin'] });