mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-06 07:37:38 +00:00

Enforcing inclusion of our OSS license at the top of .ts and .tsx files. Also updates any relevant files in the repo that were previously missing the license comment. An additional `@license` comment is added to client/web/src/index.tsx to preserve the license in generated Javascript. Updates #10261 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
31 lines
697 B
TypeScript
31 lines
697 B
TypeScript
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Preserved js license comment for web client app.
|
|
/**
|
|
* @license
|
|
* Copyright (c) Tailscale Inc & AUTHORS
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
import React from "react"
|
|
import { createRoot } from "react-dom/client"
|
|
import App from "src/components/app"
|
|
|
|
declare var window: any
|
|
// This is used to determine if the react client is built.
|
|
window.Tailscale = true
|
|
|
|
const rootEl = document.createElement("div")
|
|
rootEl.id = "app-root"
|
|
rootEl.classList.add("relative", "z-0")
|
|
document.body.append(rootEl)
|
|
|
|
const root = createRoot(rootEl)
|
|
|
|
root.render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>
|
|
)
|