From 6a181a7a2b03ec263788d137610e86937a57d434 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Thu, 31 Aug 2023 16:02:13 +0200 Subject: Update copyright (#3149) * Add the default copyright profile and enable IDEA project settings * Add the license notice file --- plugins/base/frontend/src/main/components/app/index.scss | 4 ++++ plugins/base/frontend/src/main/components/app/index.tsx | 4 ++++ plugins/base/frontend/src/main/components/assets/clear.svg | 6 +++++- plugins/base/frontend/src/main/components/assets/searchIcon.svg | 4 ++++ plugins/base/frontend/src/main/components/root.tsx | 6 +++++- .../base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx | 4 ++++ .../base/frontend/src/main/components/search/dokkaSearchAnchor.tsx | 6 +++++- plugins/base/frontend/src/main/components/search/search.scss | 4 ++++ plugins/base/frontend/src/main/components/search/search.tsx | 4 ++++ .../base/frontend/src/main/components/search/searchResultRow.tsx | 6 +++++- plugins/base/frontend/src/main/components/search/types.ts | 6 +++++- plugins/base/frontend/src/main/components/utils/hotkey.ts | 4 ++++ plugins/base/frontend/src/main/components/utils/os.ts | 6 +++++- plugins/base/frontend/src/main/components/utils/requests.tsx | 4 ++++ plugins/base/frontend/src/main/scss/index.scss | 4 ++++ plugins/base/frontend/src/main/types/@jetbrains/index.d.ts | 4 ++++ 16 files changed, 70 insertions(+), 6 deletions(-) (limited to 'plugins/base/frontend/src') diff --git a/plugins/base/frontend/src/main/components/app/index.scss b/plugins/base/frontend/src/main/components/app/index.scss index e78edf81..9bb25de9 100644 --- a/plugins/base/frontend/src/main/components/app/index.scss +++ b/plugins/base/frontend/src/main/components/app/index.scss @@ -1,3 +1,7 @@ +/*! + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + @import "src/main/scss/index.scss"; html, diff --git a/plugins/base/frontend/src/main/components/app/index.tsx b/plugins/base/frontend/src/main/components/app/index.tsx index 4081dec4..ea2a2e42 100644 --- a/plugins/base/frontend/src/main/components/app/index.tsx +++ b/plugins/base/frontend/src/main/components/app/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import React from 'react'; import {WithFuzzySearchFilter} from '../search/search'; import './index.scss'; diff --git a/plugins/base/frontend/src/main/components/assets/clear.svg b/plugins/base/frontend/src/main/components/assets/clear.svg index ddb8450f..5c652c7f 100644 --- a/plugins/base/frontend/src/main/components/assets/clear.svg +++ b/plugins/base/frontend/src/main/components/assets/clear.svg @@ -1,3 +1,7 @@ + + - \ No newline at end of file + diff --git a/plugins/base/frontend/src/main/components/assets/searchIcon.svg b/plugins/base/frontend/src/main/components/assets/searchIcon.svg index 3fa1f24f..ef5f9c4f 100644 --- a/plugins/base/frontend/src/main/components/assets/searchIcon.svg +++ b/plugins/base/frontend/src/main/components/assets/searchIcon.svg @@ -1,3 +1,7 @@ + + diff --git a/plugins/base/frontend/src/main/components/root.tsx b/plugins/base/frontend/src/main/components/root.tsx index 9efbfdd0..93d070ce 100644 --- a/plugins/base/frontend/src/main/components/root.tsx +++ b/plugins/base/frontend/src/main/components/root.tsx @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import React from 'react'; import {render} from 'react-dom'; @@ -15,4 +19,4 @@ let renderApp = () => { document.removeEventListener('DOMContentLoaded', renderApp); }; -document.addEventListener('DOMContentLoaded', renderApp); \ No newline at end of file +document.addEventListener('DOMContentLoaded', renderApp); diff --git a/plugins/base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx b/plugins/base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx index d5150dd5..0a7edcb3 100644 --- a/plugins/base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx +++ b/plugins/base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import Select from '@jetbrains/ring-ui/components/select/select'; import {Option, OptionWithHighlightComponent, OptionWithSearchResult} from "./types"; import fuzzyHighlight from '@jetbrains/ring-ui/components/global/fuzzy-highlight.js' diff --git a/plugins/base/frontend/src/main/components/search/dokkaSearchAnchor.tsx b/plugins/base/frontend/src/main/components/search/dokkaSearchAnchor.tsx index a22dc77d..f7c6cf46 100644 --- a/plugins/base/frontend/src/main/components/search/dokkaSearchAnchor.tsx +++ b/plugins/base/frontend/src/main/components/search/dokkaSearchAnchor.tsx @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import React from "react"; import Tooltip from '@jetbrains/ring-ui/components/tooltip/tooltip'; import SearchIcon from 'react-svg-loader!../assets/searchIcon.svg'; @@ -25,4 +29,4 @@ export const DokkaSearchAnchor = ({wrapperProps, buttonProps, popup}: CustomAnch {popup} ) -} \ No newline at end of file +} diff --git a/plugins/base/frontend/src/main/components/search/search.scss b/plugins/base/frontend/src/main/components/search/search.scss index ebb102d3..6dd07d5b 100644 --- a/plugins/base/frontend/src/main/components/search/search.scss +++ b/plugins/base/frontend/src/main/components/search/search.scss @@ -1,3 +1,7 @@ +/*! + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + $font-color: hsla(0, 0%, 100%, 0.8); $secondary-font-color: hsla(0, 0%, 100%, 0.6); diff --git a/plugins/base/frontend/src/main/components/search/search.tsx b/plugins/base/frontend/src/main/components/search/search.tsx index 045f6365..24545671 100644 --- a/plugins/base/frontend/src/main/components/search/search.tsx +++ b/plugins/base/frontend/src/main/components/search/search.tsx @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import React, {useCallback, useEffect, useState} from 'react'; import List from '@jetbrains/ring-ui/components/list/list'; import Select from '@jetbrains/ring-ui/components/select/select'; diff --git a/plugins/base/frontend/src/main/components/search/searchResultRow.tsx b/plugins/base/frontend/src/main/components/search/searchResultRow.tsx index b9dbf482..e8b91519 100644 --- a/plugins/base/frontend/src/main/components/search/searchResultRow.tsx +++ b/plugins/base/frontend/src/main/components/search/searchResultRow.tsx @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import React from "react"; import {OptionWithSearchResult, SearchProps} from "./types"; import _ from "lodash"; @@ -29,4 +33,4 @@ export const SearchResultRow: React.FC = ({searchResult}: SearchPro {searchResult.description} ) -} \ No newline at end of file +} diff --git a/plugins/base/frontend/src/main/components/search/types.ts b/plugins/base/frontend/src/main/components/search/types.ts index 57e7e169..3e390dde 100644 --- a/plugins/base/frontend/src/main/components/search/types.ts +++ b/plugins/base/frontend/src/main/components/search/types.ts @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import React, {ButtonHTMLAttributes, HTMLAttributes, ReactNode, RefCallback} from "react"; export type Page = { @@ -48,4 +52,4 @@ export interface CustomAnchorProps { {onClick: () => void} & DataTestProps, popup: ReactNode -} \ No newline at end of file +} diff --git a/plugins/base/frontend/src/main/components/utils/hotkey.ts b/plugins/base/frontend/src/main/components/utils/hotkey.ts index 8ba47ab5..ae813166 100644 --- a/plugins/base/frontend/src/main/components/utils/hotkey.ts +++ b/plugins/base/frontend/src/main/components/utils/hotkey.ts @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import {detectOsKind, OsKind} from "./os"; type ModifierKey = { diff --git a/plugins/base/frontend/src/main/components/utils/os.ts b/plugins/base/frontend/src/main/components/utils/os.ts index 3005245c..6130ef67 100644 --- a/plugins/base/frontend/src/main/components/utils/os.ts +++ b/plugins/base/frontend/src/main/components/utils/os.ts @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + export enum OsKind{ WINDOWS, MACOS, @@ -11,4 +15,4 @@ export const detectOsKind = (): OsKind => { else if (userAgent.includes("Win")) return OsKind.WINDOWS else if (userAgent.includes("Linux")) return OsKind.LINUX else return OsKind.OTHER -} \ No newline at end of file +} diff --git a/plugins/base/frontend/src/main/components/utils/requests.tsx b/plugins/base/frontend/src/main/components/utils/requests.tsx index c95dda69..568c331b 100644 --- a/plugins/base/frontend/src/main/components/utils/requests.tsx +++ b/plugins/base/frontend/src/main/components/utils/requests.tsx @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + import {IWindow} from "../search/types" export const relativizeUrlForRequest = (filePath: string) : string => { diff --git a/plugins/base/frontend/src/main/scss/index.scss b/plugins/base/frontend/src/main/scss/index.scss index 4f5a498b..b68d57f3 100644 --- a/plugins/base/frontend/src/main/scss/index.scss +++ b/plugins/base/frontend/src/main/scss/index.scss @@ -1,3 +1,7 @@ +/*! + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + @import "~@jetbrains/ring-ui/components/global/variables.css"; $white: #FFFFFF; diff --git a/plugins/base/frontend/src/main/types/@jetbrains/index.d.ts b/plugins/base/frontend/src/main/types/@jetbrains/index.d.ts index a1e9f1c1..58472d01 100644 --- a/plugins/base/frontend/src/main/types/@jetbrains/index.d.ts +++ b/plugins/base/frontend/src/main/types/@jetbrains/index.d.ts @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + declare module '@jetbrains/ring-ui' { export const Tooltip: any; export const Select: any; -- cgit