Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a block to promote open community for java #3101

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/components/AdoptiumNews/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ import LinkText from '../LinkText'
// - You can add a <callToActionLink /> tag to create a link in the body
// - Dates must be with the format: "YYYY-MM-DD"
const predefinedAdoptiumNewsList = [
{
title: "Adoptium Summit 2024",
body: "Be a part of the first-ever Adoptium Summit on September, 10.<br/>Connect with peers to exchange knowledge on Temurin, AQAvit and other Adoptium's projects.<br/><callToActionLink>Register here</callToActionLink>",
callToActionLink: 'https://www.eclipse.org/events/2024/adoptium-summit/',
date: new Date('2024-09-10'),
startDisplayAt: new Date('2024-08-01'),
stopDisplayAfter: new Date('2024-09-10'),
},
{
title: "Adoptium Summit 2024",
body: "Join us Today for the first-ever Adoptium Summit.<br/>An opportunity to connect with other Adoptium community members.<br/><callToActionLink>Register here</callToActionLink>",
callToActionLink: 'https://www.eclipse.org/events/2024/adoptium-summit/',
date: new Date('2024-09-10'),
startDisplayAt: new Date('2024-09-10'),
stopDisplayAfter: new Date('2024-09-11'),
},
{
title: "OCX 24: Join us at Open Community for Java",
body: "Join the Adoptium community at the Eclipse Foundation's flagship developer conference, held 22-24 October in Mainz, Germany. Register here: <callToActionLink>Java.OCXConf.org</callToActionLink>",
callToActionLink: 'https://www.ocxconf.org/event/778b82cc-6834-48a4-a58e-f883c5a7b8c9/websitePage:77f60b73-336c-43be-827d-8d8fcb1aaf64',
date: new Date('2024-09-10'),
startDisplayAt: new Date('2024-09-15'),
stopDisplayAfter: new Date('2024-10-24'),
}
]

Expand Down
2 changes: 1 addition & 1 deletion src/components/DownloadDropdowns/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const DownloadDropdowns = ({updaterAction, marketplace, Table}) => {
// @ts-ignore
let ext = gl && gl.getExtension('WEBGL_debug_renderer_info');
// @ts-ignore
let param = ext && gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) || "";
let param = (ext && gl.getParameter(ext.UNMASKED_RENDERER_WEBGL)) || "";
if (param.match(/Apple/) && !param.match(/Apple GPU/)) {
defaultSelectedArch = 'aarch64'
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/LatestTemurin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const LatestTemurin = (props): JSX.Element => {
// @ts-ignore
let ext = gl && gl.getExtension('WEBGL_debug_renderer_info');
// @ts-ignore
let param = ext && gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) || "";
let param = (ext && gl.getParameter(ext.UNMASKED_RENDERER_WEBGL)) || "";
isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
//Detect if the user is using a Apple GPU (M1)
if (isSafari || (param.match(/Apple/) && !param.match(/Apple GPU/))) {
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { StaticImage } from 'gatsby-plugin-image'
import Layout from '../components/Layout'
import Seo from '../components/Seo'
import LatestTemurin from '../components/LatestTemurin'
import AdoptiumNews from '../components/AdoptiumNews'
import { Slice } from 'gatsby'

const IndexPage = ({data}) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/news.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const NewsPage = (): JSX.Element => {
showFirstButton
showLastButton
/>
: null}
: null}
<a href="https://newsroom.eclipse.org/eclipse/community-news" target='_blank' rel='noreferrer' className='px-2'>View all</a>
|
<a href="https://newsroom.eclipse.org/node/add/news" target='_blank' rel='noreferrer' className='px-2'>Submit news</a>
Expand Down