Skip to content

Commit

Permalink
Add license headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharydenton authored and gregnazario committed Apr 27, 2022
1 parent c9c48f4 commit fe6f7d8
Show file tree
Hide file tree
Showing 25 changed files with 97 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ecosystem/platform/client/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"trailingComma": "all",
"bracketSpacing": false
}
17 changes: 17 additions & 0 deletions ecosystem/platform/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion ecosystem/platform/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@
"build": "react-scripts build",
"test": "react-scripts test",
"test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
],
"plugins": [
"header"
],
"rules": {
"header/header": [2, "line", " Copyright (c) Aptos\n SPDX-License-Identifier: Apache-2.0", 2]
}
},
"browserslist": {
"production": [
Expand All @@ -48,6 +56,7 @@
"devDependencies": {
"@tailwindcss/forms": "^0.5.0",
"autoprefixer": "^10.4.4",
"eslint-plugin-header": "^3.1.1",
"postcss": "^8.4.12",
"prettier": "^2.6.2",
"tailwindcss": "^3.0.24"
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {render, screen} from "@testing-library/react";
import {MemoryRouter} from "react-router";
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {Route, Routes} from "react-router";
import {OnboardingPage} from "onboarding";
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/auth.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import {render} from "@testing-library/react";
import {useAuth, AuthContext} from "auth";

Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/auth.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";

type AuthContextValue = {
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import React from "react";
import ReactDOM from "react-dom/client";
import {BrowserRouter as Router} from "react-router-dom";
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/onboarding/GitHubSignIn.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {useAuthContext} from "auth";
import {SocialLoginButton} from "ui";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {render, screen, fireEvent} from "@testing-library/react";
import {OnboardingForm} from "./OnboardingForm";
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/onboarding/OnboardingForm.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {Identity} from "./types";
import {AptosAddressInput, Button, Checkbox} from "ui";
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/onboarding/OnboardingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {GitHubSignIn} from "./GitHubSignIn";
import {OnboardingForm} from "./OnboardingForm";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";

export function OnboardingSuccess() {
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/onboarding/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

export {OnboardingPage} from "./OnboardingPage";
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/onboarding/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

export type AptosAddress = string;

export type Identity = {
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

/// <reference types="react-scripts" />
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-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
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/ui/AptosAddressInput.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {render, screen} from "@testing-library/react";
import {AptosAddressInput} from "./AptosAddressInput";
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/ui/AptosAddressInput.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";

export function AptosAddressInput({...rest}) {
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/ui/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";

type ButtonProps = React.DetailedHTMLProps<
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/ui/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";

export function Checkbox({...rest}) {
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/ui/SocialLoginButton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {act, render, screen, fireEvent} from "@testing-library/react";
import {SocialLoginButton} from "./SocialLoginButton";
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/ui/SocialLoginButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

import * as React from "react";
import {assertNever, randomUUID} from "utils";

Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/ui/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

export * from "./AptosAddressInput";
export * from "./Button";
export * from "./Checkbox";
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/platform/client/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

/**
* Helper function for exhaustiveness checks.
*
Expand Down

0 comments on commit fe6f7d8

Please sign in to comment.