From efaa05549bb63eff09fa341c694095b590c8c5f3 Mon Sep 17 00:00:00 2001 From: Unknown <_> Date: Mon, 13 Jul 2026 20:17:16 +0100 Subject: [PATCH] fix: updating dependencies --- .gitea/workflows/publish.yml | 17 ++-- .github/workflows/publish.yml | 21 +++-- .nvmrc | 2 +- gatsby-node.js | 4 +- src/pages/about.tsx | 164 +--------------------------------- src/pages/index.tsx | 2 +- src/templates/blog-list.tsx | 2 +- 7 files changed, 24 insertions(+), 188 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index c17716b..50eae14 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -10,21 +10,20 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - cache: 'npm' # Enables npm cache for faster installs + cache: 'npm' - name: Install dependencies - run: | - npm ci --legacy-peer-deps - npm install cloudron-surfer # Install locally instead of globally + run: npm ci --legacy-peer-deps + + - name: Install surfer + run: npm install -g cloudron-surfer - name: Build - run: | - npm run build + run: npm run build - name: Publish - run: | - npx surfer put --token ${{ secrets.SURFER_TOKEN }} --server datacontroller.io public/* / \ No newline at end of file + run: surfer put --token ${{ secrets.SURFER_TOKEN }} --server datacontroller.io public/ / \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8251d54..3504055 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,26 +1,25 @@ name: Gatsby Publish -# on: -# push: -# branches: main +on: + push: + branches: main jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [14.17.0] - steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + - name: Use Node.js 20 + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 cache: npm + - name: Install dependencies + run: npm ci --legacy-peer-deps + - name: Check prettier offences run: npm run lint diff --git a/.nvmrc b/.nvmrc index ae0e6a2..c675bca 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.19.6 +v20.20.2 diff --git a/gatsby-node.js b/gatsby-node.js index ba2526c..c858544 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -19,7 +19,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => { ` { allMarkdownRemark( - sort: { fields: [frontmatter___date], order: DESC } + sort: { frontmatter: { date: DESC } } limit: 1000 filter: { fileAbsolutePath: { regex: "/content/blog/" } } ) { @@ -35,7 +35,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => { } } tagsGroup: allMarkdownRemark(limit: 1000) { - group(field: frontmatter___tags) { + group(field: { frontmatter: { tags: SELECT } }) { name: fieldValue totalCount } diff --git a/src/pages/about.tsx b/src/pages/about.tsx index ddac12b..a377a74 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -10,27 +10,6 @@ import { SectionDesc } from '../components/shared/styledComponents' -import { - Card, - CardImg, - CardBody, - FeaturedImg, - FeaturedDesc -} from '../styledComponents/about' - -import sasenseiLogo from '../images/sasapps/sasensei.png' -import rubyLogo from '../images/sasapps/ruby.png' -import pygrailLogo from '../images/sasapps/pygrail.png' -import pilotLogo from '../images/sasapps/pilot.png' -import yogaLogo from '../images/sasapps/yoga.png' -import jsLogo from '../images/sasapps/js.png' -import serbianLogo from '../images/sasapps/serbian.png' -import quizrLogo from '../images/sasapps/quizr.png' -import cdoquizLogo from '../images/sasapps/cdoquiz.png' -import insureLogo from '../images/sasapps/insure.png' - -import sasenseiFeatured from '../images/sasensei_featured.png' - type DataProps = { site: { meta: { @@ -41,79 +20,6 @@ type DataProps = { } } -const SasApps = [ - { - name: 'Sasensei', - desc: 'Sasensei. SAS Software Quiz, Challenge, Compete & Learn', - link: 'https://sasensei.com', - themeColor: '#2196F3', - logo: sasenseiLogo - }, - { - name: 'Ruby', - desc: 'Ruby Cards - a Community Quiz Game for Rubyists', - link: 'https://ruby.cards', - themeColor: '#aa1502', - logo: rubyLogo - }, - { - name: 'PyGrail', - desc: 'PyGrail - a Community Quiz Game for Monty Pythonistas', - link: 'https://pygrail.com', - themeColor: '#efbf2c', - logo: pygrailLogo - }, - { - name: 'Pilot', - desc: 'Pilot Cards Leaderboard - How High Can You Climb?', - link: 'https://pilot.cards', - themeColor: '#446ff3', - logo: pilotLogo - }, - { - name: 'Yoga.cards', - desc: 'Yoga Cards - a Community Quiz Game for Student Yogis', - link: 'https://yoga.cards', - themeColor: '#6d69fb', - logo: yogaLogo - }, - { - name: 'JS.cards', - desc: 'JS Cards - a Community Quiz Game for JavaScript Ninjas', - link: 'https://js.cards', - themeColor: '#00cc99', - logo: jsLogo - }, - { - name: 'Serbian.cards', - desc: 'Serbian Cards - How Much Serbian Do You Know?', - link: 'https://serbian.cards', - themeColor: '#c6363c', - logo: serbianLogo - }, - { - name: 'Quizr', - desc: 'quizR - a community quiz game for useRs', - link: 'https://quizr.io', - themeColor: '#51904c', - logo: quizrLogo - }, - { - name: 'CDOquiz', - desc: 'CDO Quiz - a Royally Challenging Data Adventure', - link: 'https://cdoquiz.com/', - themeColor: '#a54499', - logo: cdoquizLogo - }, - { - name: 'Insure.cards', - desc: 'Insure Cards - Are You An Insurance Expert? Prove It', - link: 'https://insure.cards/', - themeColor: '#5f8ba5', - logo: insureLogo - } -] - const About: React.FC> = ({ data, location }) => { return ( > = ({ data, location }) => { > SAS Apps - , and the Macro Cards range of websites listed below: + . -
- {SasApps.map((app) => ( -
- - - -
{app.name}
-

{app.desc}

-
-
-
- ))} -
- -
- - - Sasensei is a free question-based learning system dedicated to various - aspects of the -
- SAS® software such as SAS® Programming, Administration, Risk - Dimensions, Viya, AF/SCL, and much more. -
- - This SAS® quiz allows the player to test their knowledge, challenge - their peers and submit their own questions for others to enjoy. -
- Sasensei is constantly improving by adding new features which - contribute to the player experience and increase the educational - value. -
-
-
-
-
- 1000+ -
- Active Players -
-
- 650+ -
- Questions -
-
- 20+ -
- New Players Every Day -
-
- 6
- Unique Features -
-
- 7
- Difficulty Levels -
-
) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index e2cf704..bf3f3f4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -250,7 +250,7 @@ export const pageQuery = graphql` query ImagesForGallery { images: allFile( filter: { relativeDirectory: { eq: "gallery" } } - sort: { fields: name } + sort: { name: ASC } ) { edges { node { diff --git a/src/templates/blog-list.tsx b/src/templates/blog-list.tsx index 45fa472..1a3b506 100644 --- a/src/templates/blog-list.tsx +++ b/src/templates/blog-list.tsx @@ -90,7 +90,7 @@ export const pageQuery = graphql` filter: $filter limit: $limit skip: $skip - sort: { fields: [frontmatter___date], order: DESC } + sort: { frontmatter: { date: DESC } } ) { posts: edges { post: node {