-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Library detection package to identify more libraries (#555)
* Add new permission for scripting * Remove catch console log from quick links * Make LibraryData type more generic * Refactor core * Create new library detection component and refactor code * Add more libaries and refactor gis and gsi libraries * Add libraries to config * Update types * Refactor util exports * Refactor worker * Get createContext and useContextSelector from use-context-selector as currently being done in main
- Loading branch information
Showing
63 changed files
with
2,054 additions
and
637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
packages/library-detection/src/components/accordion/detectionMessage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/** | ||
* External dependencies. | ||
*/ | ||
import React from 'react'; | ||
|
||
interface DetectionMessageProps { | ||
libraryName: string; | ||
provider: string; | ||
supportURL: string; | ||
} | ||
|
||
const DetectionMessage = ({ | ||
libraryName, | ||
provider, | ||
supportURL, | ||
}: DetectionMessageProps) => { | ||
return ( | ||
<p className="dark:text-bright-gray"> | ||
{libraryName} functionality may not work properly due to the phaseout of | ||
third-party cookies. For more information, please visit the | ||
{provider + ' '} | ||
<a | ||
target="_blank" | ||
className="text-bright-navy-blue dark:text-jordy-blue" | ||
href={supportURL} | ||
rel="noreferrer" | ||
> | ||
support forum | ||
</a> | ||
. | ||
</p> | ||
); | ||
}; | ||
|
||
export default DetectionMessage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.