Skip to content

Commit

Permalink
Switch to omega for addon pages
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Apr 7, 2024
1 parent 7400fa4 commit 8ed035f
Show file tree
Hide file tree
Showing 4,151 changed files with 235,705 additions and 81 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/update-addon-history.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: npm install

- name: Run addon-parser and get site stats
run: node app.js --kv=nexus --getstats
run: node app.js --kv=omega --getstats

- name: Push new files back
uses: mikeal/publish-to-github-action@master
Expand Down
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module.exports = {
{
resolve: `gatsby-source-kodiaddon`,
options: {
kodiversions: ["nexus"],
kodiversions: ["omega"],
},
},
{
Expand Down
46 changes: 23 additions & 23 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,84 +143,84 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
});
});

// *** Begin Nexus Addon Page Builds
const nexusaddonresults = await graphql(`
// *** Begin Omega Addon Page Builds
const omegaaddonresults = await graphql(`
query MyQuery {
allNexusAddon {
allOmegaAddon {
nodes {
slug
}
}
}
`);

if (nexusaddonresults.errors) {
reporter.panicOnBuild(`Error while running Nexus Add-on GraphQL query.`);
if (omegaaddonresults.errors) {
reporter.panicOnBuild(`Error while running Omega Add-on GraphQL query.`);
return;
}

nexusaddonresults.data.allNexusAddon.nodes.forEach(addon => {
omegaaddonresults.data.allOmegaAddon.nodes.forEach(addon => {
createPage({
path: "addons/nexus/" + addon.slug,
component: path.resolve(`src/templates/nexus/addon.tsx`),
path: "addons/omega/" + addon.slug,
component: path.resolve(`src/templates/omega/addon.tsx`),
context: {
slug: addon.slug,
},
});
});

const nexuscategoryresults = await graphql(`
const omegacategoryresults = await graphql(`
query MyQuery {
allNexusCategory {
allOmegaCategory {
nodes {
slug
}
}
}
`);

if (nexuscategoryresults.errors) {
if (omegacategoryresults.errors) {
reporter.panicOnBuild(
`Error while running Nexus Add-on Category GraphQL query.`,
`Error while running Omega Add-on Category GraphQL query.`,
);
return;
}

nexuscategoryresults.data.allNexusCategory.nodes.forEach(category => {
omegacategoryresults.data.allOmegaCategory.nodes.forEach(category => {
createPage({
path: "addons/nexus/category/" + category.slug,
component: path.resolve(`src/templates/nexus/category.tsx`),
path: "addons/omega/category/" + category.slug,
component: path.resolve(`src/templates/omega/category.tsx`),
context: {
slug: category.slug,
},
});
});

const nexusauthorresults = await graphql(`
const omegaauthorresults = await graphql(`
query MyQuery {
allNexusAuthor {
allOmegaAuthor {
nodes {
slug
}
}
}
`);

if (nexusauthorresults.errors) {
reporter.panicOnBuild(`Error while running Nexus Add-on Author GraphQL query.`);
if (omegaauthorresults.errors) {
reporter.panicOnBuild(`Error while running Omega Add-on Author GraphQL query.`);
return;
}

nexusauthorresults.data.allNexusAuthor.nodes.forEach(author => {
omegaauthorresults.data.allOmegaAuthor.nodes.forEach(author => {
createPage({
path: "addons/nexus/author/" + author.slug,
component: path.resolve(`src/templates/nexus/author.tsx`),
path: "addons/omega/author/" + author.slug,
component: path.resolve(`src/templates/omega/author.tsx`),
context: {
slug: author.slug,
},
});
});
// *** End Nexus Addon Page Builds
// *** End Omega Addon Page Builds

const distresults = await graphql(`
query MyQuery {
Expand Down
2 changes: 1 addition & 1 deletion scripts/addon-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "echo \"No build script setup\"",
"export": "node app.js --kv=nexus --getstats"
"export": "node app.js --kv=omega --getstats"
},
"author": "pkscout <[email protected]>",
"license": "GPL-3-ONLY",
Expand Down
8 changes: 4 additions & 4 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ const mainMenu: MenuEntry[] = [
description: "Find out how add-ons expand and enhance the Kodi experience.",
},
{
id: "addons-nexus",
title: "Nexus Add-ons",
url: { url: "/addons/nexus", type: "internal" },
id: "addons-omega",
title: "Omega Add-ons",
url: { url: "/addons/omega", type: "internal" },
icon: CloudArrowDownIcon,
description: "Add-ons for Kodi 20, the latest and greatest version of Kodi.",
description: "Add-ons for Kodi 21, the latest and greatest version of Kodi.",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/SectionWidgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function AboutGallery() {
>
Interact with Kodi using its JSON-RPC based remote interface. This brings
loads of possibilities for remote controls,{" "}
<Link className="underline" to="/addons/nexus/category/web-interfaces">
<Link className="underline" to="/addons/omega/category/web-interfaces">
web browsers
</Link>
, and 3rd party tools to take Kodi to the next level.
Expand Down
2 changes: 1 addition & 1 deletion src/content/pages/addons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Music Add-Ons and Video Add-Ons let you stream internet content. Skins allow you

The add-ons available may be different depending on what version of Kodi you have. Please select your Kodi version below to get to the add-ons available for your version.

- [Kodi Nexus (version 20)](/addons/nexus/)
- [Kodi Omega (version 21)](/addons/omega/)
2 changes: 1 addition & 1 deletion src/content/pages/download/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ x-section-x officialremotes x-section-x

## Older Releases

Please note, development of the v19 "Matrix" line has ended. If you discover a bug in v19, please test if the bug is also present in v20 "Nexus" and submit your bug report for v20 if present. While we do not recommend using old builds, you can [download an old build](http://mirrors.kodi.tv/releases/) from our mirrors site if you need to.
Please note, development of the v20 "Nexus" line has ended. If you discover a bug in v20, please test if the bug is also present in v21 "Omega" and submit your bug report for v21 if present. While we do not recommend using old builds, you can [download an old build](http://mirrors.kodi.tv/releases/) from our mirrors site if you need to.

## Source Code

Expand Down
Loading

0 comments on commit 8ed035f

Please sign in to comment.