Skip to content

Commit

Permalink
Add license headers for all typescript files (MystenLabs#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
666lcz authored Mar 22, 2022
1 parent 3e63972 commit 4b9c6a8
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions explorer/client/src/__tests__/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { render, screen, fireEvent } from '@testing-library/react';
import { createMemoryHistory } from 'history';
import {
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import Footer from '../components/footer/Footer';
import Header from '../components/header/Header';
import Search from '../components/search/Search';
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/components/external-link/ExternalLink.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

function ExternalLink({ href, label }: { href: string; label: string }) {
return (
<a href={href} target="_blank" rel="noreferrer noopener">
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/components/footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { Link } from 'react-router-dom';

import ExternalLink from '../external-link/ExternalLink';
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { Link } from 'react-router-dom';

import styles from './Header.module.css';
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/components/search/Search.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import React, { useState, useCallback } from 'react';
import { useNavigate } from 'react-router-dom';

Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/pages/config/AppRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { Navigate, Route, Routes } from 'react-router-dom';

import Home from '../home/Home';
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/pages/home/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

function Home() {
return <div>Latest Transactions</div>;
}
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/pages/other-details/OtherDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { useParams } from 'react-router-dom';

import styles from './OtherDetails.module.css';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { instanceOfDataType } from './TransactionResult';

describe('tests for Type Guard', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { useParams } from 'react-router-dom';

import mockTransactionData from '../../utils/transaction_mock.json';
Expand Down
3 changes: 3 additions & 0 deletions explorer/client/src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

/// <reference types="react-scripts" />
3 changes: 3 additions & 0 deletions explorer/client/src/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import '@testing-library/jest-dom';
3 changes: 3 additions & 0 deletions explorer/client/src/utils/reportWebVitals.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import type { ReportHandler } from 'web-vitals';

enum ReportMethod {
Expand Down
3 changes: 3 additions & 0 deletions nft_mirror/oracle_server/src/polyfills/fetch-polyfill.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import fetch, { Headers, Request, Response } from 'node-fetch';

if (!globalThis.fetch) {
Expand Down
3 changes: 3 additions & 0 deletions nft_mirror/oracle_server/src/sdk/gatewayServiceAPI.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import {
paths as GatewayServicePaths,
components,
Expand Down

0 comments on commit 4b9c6a8

Please sign in to comment.