Skip to content

Commit

Permalink
Merge pull request #144 from samvera/141-svc-conference-links
Browse files Browse the repository at this point in the history
Update Samvera Virtual Connect 2024
  • Loading branch information
heathergreerklein authored Apr 29, 2024
2 parents 4505819 + bb181a5 commit 2278dd0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
env:
NEXT_PUBLIC_CONTENTFUL_SPACE_ID: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_SPACE_ID }}
NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN }}
NEXT_PUBLIC_GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.NEXT_PUBLIC_GITHUB_PERSONAL_ACCESS_TOKEN }}

steps:
- name: Get files
Expand Down
5 changes: 2 additions & 3 deletions components/home/Layout.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import BannerContact from "components/BannerContact";
import BannerLicense from "components/BannerLicense";
import BannerPartners from "components/BannerPartners";
import Footer from "components/layout/Footer";
import Head from "next/head";
import HeaderNew from "components/layout/HeaderNew";
import Header from "components/layout/Header";
import React from "react";
import { prefix } from "prefix";

Expand All @@ -20,7 +19,7 @@ export default function HomeLayout({ children }) {
<title>{title}</title>
<meta name="description" content={description} />
</Head>
<HeaderNew />
<Header />
<main>
{children}
<BannerPartners />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ const newsNavigation = [
slug: "news-and-events",
items: [
{
label: "News and events",
href: "/news-and-events",
label: "Samvera Virtual Connect 2024",
href: "https://samvera.atlassian.net/wiki/spaces/samvera/pages/2420015105/Samvera+Virtual+Connect+2024+Program",
isExternal: true,
},
{
label: "Samvera calendar",
Expand Down
4 changes: 2 additions & 2 deletions components/layout/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import BannerLicense from "../BannerLicense";
import BannerPartners from "../BannerPartners";
import Footer from "./Footer";
import Head from "next/head";
import Header from "./Header";
import OuterWrapper from "./OuterWrapper";
import React from "react";
import SidebarLinks from "../sidebar/Links";
import { prefix } from "prefix";
import HeaderNew from "./HeaderNew";

const description =
"Samvera™ is a vibrant and welcoming community of information and technology professionals who share challenges, build expertise, and create sustainable, best-in-class solutions, making the world’s digital collections accessible now and into the future. Samvera’s suite of repository software tools offers flexible and rich user interfaces tailored to distinct content types on top of a robust back end – giving adopters the best of both worlds.";
Expand All @@ -21,7 +21,7 @@ export default function Layout({ children, title }) {
<meta name="description" content={description} />
</Head>
</Head>
<HeaderNew />
<Header />
<OuterWrapper>{children}</OuterWrapper>
<BannerContact />
<SidebarLinks />
Expand Down
11 changes: 8 additions & 3 deletions lib/github.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export async function getGithubRepoData(featuredApps) {
const apiRootUrl = "https://api.github.com/repos/";

// Set up the URLs we need to fetch
// URLs of the GitHub repo
const urls = featuredApps.map((app) => `${apiRootUrl}${app.githubHandle}`);

// URLs of the latest release
const releaseUrls = featuredApps.map(
(app) => `${apiRootUrl}${app.githubHandle}/releases/latest`
);
Expand All @@ -14,9 +16,12 @@ export async function getGithubRepoData(featuredApps) {
fetch(url, {
headers: {
Accept: "application/vnd.github.v3+json",
"User-Agent": "samvera/samvera.org",
// "User-Agent": "samvera/samvera.org",
Authorization: `token ${process.env.NEXT_PUBLIC_GITHUB_PERSONAL_ACCESS_TOKEN}`,
},
}).then((res) => res.json())
}).then((res) => {
return res.json();
})
)
);

Expand Down

0 comments on commit 2278dd0

Please sign in to comment.