Skip to content
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
55 changes: 0 additions & 55 deletions .codeclimate.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .deepsource.toml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Code Quality Assurance
name: Code Quality Assurance - JavaScript
permissions:
contents: read

Expand All @@ -26,9 +26,9 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Markdown Lint
name: Code Quality Assurance - Markdown
permissions:
contents: read

Expand All @@ -9,24 +9,24 @@ on:
- "**/*.md"
- ".markdownlint.json"
- ".markdownlintignore"
- ".github/workflows/markdown-lint.yaml"
- ".github/workflows/code-qa-md.yaml"
pull_request:
branches: [master]
paths:
- "**/*.md"
- ".markdownlint.json"
- ".markdownlintignore"
- ".github/workflows/markdown-lint.yaml"
- ".github/workflows/code-qa-md.yaml"

jobs:
lint-markdown:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -66,7 +66,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -79,6 +79,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

Small Dev Talk is an independent news source that covers all things from the indie world of entertainment, from games to movies to books to technology and more. Our focus of Small Dev Talk is simply to give the chance of having upcoming developers show off their projects in forms of interviews which include images and video and present it to our audience.

[![Maintainability](https://api.codeclimate.com/v1/badges/ed11eb461733c807d580/maintainability)](https://codeclimate.com/github/AlexJSully/Small-Dev-Talk/maintainability)
[![CodeFactor](https://www.codefactor.io/repository/github/AlexJSully/small-dev-talk/badge)](https://www.codefactor.io/repository/github/AlexJSully/small-dev-talk)
[![DeepSource](https://deepsource.io/gh/AlexJSully/Small-Dev-Talk.svg/?label=active+issues&show_trend=true&token=XwOjH3ktxwG4kKUkE0GZK0_p)](https://deepsource.io/gh/AlexJSully/Small-Dev-Talk/?ref=repository-badge)
[![Follow on Twitter](https://img.shields.io/twitter/follow/smalldevtalk?style=social)](https://twitter.com/smalldevtalk)
[![GitHub repo size](https://img.shields.io/github/repo-size/AlexJSully/Small-Dev-Talk)](https://github.com/AlexJSully/Small-Dev-Talk)
[![GitHub](https://img.shields.io/github/license/AlexJSully/Small-Dev-Talk)](https://github.com/AlexJSully/Small-Dev-Talk)
Expand All @@ -22,7 +19,7 @@ To visit specific articles, just change the directory to end with '?' + article

| Chrome | Firefox | Edge | Safari | Opera | Mobile |
| ------ | ------- | ---- | ------ | ----- | ------ |
| ✔ | ✔ | ✔ | ? | ✔ | ✔ |
| ✔ | ✔ | ✔ | ? | ✔ | ✔ |

## Known issues

Expand All @@ -43,7 +40,6 @@ If you want to support my work, you can through the following methods:

- [BTC](3Lp4pwF5nXqwFA62BYx4DSvDswyYpskBog) - 3Lp4pwF5nXqwFA62BYx4DSvDswyYpskBog
- [ETH](0xc6EB17BD7cbe5976Bfc4f845669cD66Ff340a1A2) - 0xc6EB17BD7cbe5976Bfc4f845669cD66Ff340a1A2
- [PayPal](https://paypal.me/alexjsully) - paypal.me/alexjsully

## Contributing

Expand Down
13 changes: 12 additions & 1 deletion cypress/e2e/landing.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ describe("Landing Page", () => {

it("should show error when article is missing", () => {
// Simulate navigating to a missing article
cy.visit("http://localhost:3000/index.html?NonExistentArticle");
cy.visit("http://localhost:3000/index.html?NonExistentArticle", {
onBeforeLoad(win) {
// Simulate service worker registration throwing a disallowed redirect error
Object.defineProperty(win.navigator, "serviceWorker", {
value: {
register: () => Promise.reject(new Error("disallowed redirect")),
},
writable: true,
});
},
});

cy.get("#articleBody").should("contain", "Error retrieving article");
cy.get("#articleBody").should("be.visible");
});
Expand Down
8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@
<link rel="stylesheet preload" href="./src/scripts/libraries/bootstrap/css/bootstrap.min.css" as="style" />
<script rel="preload" as="script" src="./src/scripts/libraries/bootstrap/js/bootstrap.bundle.min.js"></script>
<script rel="preload" as="script" src="./src/scripts/libraries/showdown/showdown.min.js"></script>
<script>
// Add service workers
if (typeof navigator !== "undefined" && "serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker.register("./src/serviceWorker/sw.js");
});
}
</script>
<script rel="preload" as="script" src="./src/scripts/index.min.js"></script>
<!-- Sentry -->
<script
Expand Down
Loading