diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-08-31 16:02:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 16:02:13 +0200 |
commit | 6a181a7a2b03ec263788d137610e86937a57d434 (patch) | |
tree | 22368589814dad150ad6de243cc2da3cdff926a6 /plugins/base/frontend/src/main/components | |
parent | c63ea36637ce956029fb15b1482c0683ecb8a587 (diff) | |
download | dokka-6a181a7a2b03ec263788d137610e86937a57d434.tar.gz dokka-6a181a7a2b03ec263788d137610e86937a57d434.tar.bz2 dokka-6a181a7a2b03ec263788d137610e86937a57d434.zip |
Update copyright (#3149)
* Add the default copyright profile and enable IDEA project settings
* Add the license notice file
Diffstat (limited to 'plugins/base/frontend/src/main/components')
14 files changed, 62 insertions, 6 deletions
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 @@ +<!-- + - Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + --> + <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M11.1374 1.80464L6.94205 5.99996L11.1374 10.1953L10.1947 11.138L5.99935 6.94267L1.80403 11.138L0.861328 10.1953L5.05664 5.99996L0.861328 1.80464L1.80403 0.861938L5.99935 5.05725L10.1947 0.861938L11.1374 1.80464Z" fill="#637282"/> -</svg>
\ No newline at end of file +</svg> 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 @@ +<!-- + - Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + --> + <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M23.8469 14.8611C22.6607 12.4913 20.2362 10.9961 17.5861 11C14.5427 10.9989 11.8476 12.965 10.9197 15.8634C9.99166 18.7619 11.0436 21.9277 13.5217 23.6944C15.9998 25.4611 19.3356 25.4233 21.7731 23.601L27.8791 29.707L29.2931 28.293L23.1861 22.187C24.7773 20.0677 25.0332 17.2309 23.8469 14.8611ZM22.5861 18C22.5861 20.7614 20.3475 23 17.5861 23C16.26 23 14.9882 22.4732 14.0506 21.5355C13.1129 20.5979 12.5861 19.3261 12.5861 18C12.5861 15.2386 14.8247 13 17.5861 13C20.3475 13 22.5861 15.2386 22.5861 18Z" fill="white"/> </svg> 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} </span> ) -}
\ 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<SearchProps> = ({searchResult}: SearchPro <span className="template-description">{searchResult.description}</span> </div> ) -}
\ 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 => { |