Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
0983dde
* Added navigational links
CodeDead Aug 9, 2020
d7c110c
* Added icons to top bar
CodeDead Aug 10, 2020
1b72881
* Refactoring
CodeDead Aug 22, 2020
ad8ba6a
* Added design for home page
CodeDead Aug 23, 2020
725d8f5
* Added page design for advanced passgen
CodeDead Aug 24, 2020
aa74449
* Added links
CodeDead Aug 24, 2020
fbe5a34
* Yarn upgrade
CodeDead Aug 30, 2020
aa5c8ed
* Added deadhash page
CodeDead Aug 30, 2020
45394c7
* Added page for memplus
CodeDead Aug 30, 2020
a327ecc
* Removed action area
CodeDead Aug 30, 2020
99f50f1
* Added page for advanced portchecker
CodeDead Aug 30, 2020
3e1a8ae
* Added page for deadpix
CodeDead Aug 31, 2020
d11940e
* Reformatting
CodeDead Aug 31, 2020
972a836
* Added AniView page
CodeDead Aug 31, 2020
01877be
* Fixed typo's
CodeDead Aug 31, 2020
936c777
* Added icons
CodeDead Aug 31, 2020
ebc96bb
* More margin
CodeDead Aug 31, 2020
8406c58
* More margin to donations page
CodeDead Aug 31, 2020
cc8b264
* Added icons to requirements pages
CodeDead Aug 31, 2020
3b22631
* Upgraded to latest version of yarn
CodeDead Sep 19, 2020
6ed783c
* Yarn upgrade
CodeDead Jan 27, 2021
125d3f4
* Fixed ssr
CodeDead Jan 27, 2021
a85fe3a
* Added search functionality to software page
CodeDead Jan 28, 2021
d9309a6
* Moved the donate buttons higher
CodeDead Jan 28, 2021
1701c95
* Make use of headers to display titles
CodeDead Jan 28, 2021
e109e55
* Open URL in new tab
CodeDead Jan 28, 2021
072d53f
* Added ability to switch themes
CodeDead Jan 28, 2021
5f0bdd6
* Fix for gatsby builds
CodeDead Jan 28, 2021
7abe5cd
* Autofocus on textfield
CodeDead Jan 28, 2021
1990a5f
* Added blog functionality
CodeDead Jan 31, 2021
e7e0bdc
* Added missing blog posts
CodeDead Feb 1, 2021
0f34c72
* Updated README.md
CodeDead Feb 1, 2021
743f2c7
* Updated LICENSE
CodeDead Feb 1, 2021
2416409
* Added open source block
CodeDead Feb 1, 2021
57e4ecf
Merge pull request #1 from CodeDead/feature/setup
CodeDead Feb 1, 2021
d5daa60
* Fixed import order
CodeDead Feb 1, 2021
57155ee
* Added a privacy page
CodeDead Feb 1, 2021
ac272d9
Merge pull request #2 from CodeDead/feature/privacy-page
CodeDead Feb 1, 2021
a2a7cb0
* Updated links
CodeDead Feb 1, 2021
3121979
* Added a plugin to generate a site map
CodeDead Feb 1, 2021
560851b
* Added SEO component
CodeDead Feb 2, 2021
953ac92
Merge pull request #3 from CodeDead/feature/seo
CodeDead Feb 2, 2021
139033d
* Added a blog post detailing the new layout
CodeDead Feb 2, 2021
97ed7c5
* Added a cookie notice
CodeDead Feb 2, 2021
fd1882e
Merge pull request #4 from CodeDead/feature/cookie-notice
CodeDead Feb 2, 2021
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
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.yarn
.cache
public
gatsby-browser.js
gatsby-ssr.js
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"env": {
"browser": true,
"es2020": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"react/prop-types": 0
}
}
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ public
.DS_Store

# Yarn
yarn-error.log
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity
.idea/*
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

108 changes: 1 addition & 107 deletions .yarn/plugins/yarn-up-all-plugin.cjs
Original file line number Diff line number Diff line change
@@ -1,107 +1 @@
module.exports = {
name: 'yarn-up-all-plugin',
factory: require => {

const {Configuration, Project} = require('@yarnpkg/core');
const {Cli, Command} = require('clipanion');
const yup = require('yup');
const Essentials = require('@yarnpkg/plugin-essentials');

/**
* Retrieve dependencies and devDependencies
* @param workspace The current Workspace
* @returns {*[]} an array of dependencies
*/
const getDependencies = (workspace) => {
const dependencies = workspace.manifest.dependencies;
const devDependencies = workspace.manifest.devDependencies;

return [...dependencies, ...devDependencies];
};

/**
* Resolve the name of a package
* @param scope The scope of the descriptor
* @param name The name of the descriptor
* @returns {string|*} The full package name
*/
const resolveFullPackageName = (scope, name) => {
return scope ? `@${scope}/${name}` : name;
};

/**
* Get the descriptor
* @param dependencies The dependencies
* @param exclude The list of full package names that should be excluded
* @returns {*[]} The descriptors
*/
const getDescriptors = (dependencies, exclude) => {
const descriptions = [...dependencies.values()];
if (exclude) {
return descriptions
.filter(descriptor => {
const data = resolveFullPackageName(descriptor[1].scope, descriptor[1].name);
return !exclude.includes(data);
});
}
return descriptions;
};

class UpAllCommand extends Command {

/**
* Execute the command
* @returns {Promise<*>}
*/
async execute() {
if (!Essentials.default.commands) {
throw new Error('Yarn commands are not available!');
}

const configuration = await Configuration.find(this.context.cwd, this.context.plugins);
const {workspace} = await Project.find(configuration, this.context.cwd);

const dependencies = getDependencies(workspace);
const descriptors = getDescriptors(dependencies, this.exclude ? this.exclude.split(" ") : null);

const packageNames = descriptors.map(e => {
return resolveFullPackageName(e[1].scope, e[1].name);
});

const cli = Cli.from(Essentials.default.commands);
return await cli.runExit(['up', ...packageNames], this.context);
}
}

UpAllCommand.addOption('exclude', Command.String('--exclude'));
UpAllCommand.addPath('up-all');

UpAllCommand.schema = yup.object().shape({
exclude: yup.string()
});

UpAllCommand.usage = Command.Usage({
description: 'Yarn2 plugin that will upgrade all dependencies to their latest version with one simple command',
details: 'This command will upgrade all dependencies to their latest version',
examples: [
[
`Upgrade all dependencies`,
`yarn up-all`
],
[
`Upgrade all dependencies but exclude a single dependency`,
`yarn up-all --exclude react-dom`
],
[
`Upgrade all dependencies but exclude multiple dependencies`,
`yarn up-all --exclude "react-dom react-router"`
]]
});

return {
commands: [
UpAllCommand,
],
};
}
};
module.exports={name:"yarn-up-all-plugin",factory:a=>{const{Configuration:b,Project:c}=a("@yarnpkg/core"),{Cli:d,Command:e}=a("clipanion"),f=a("yup"),g=a("@yarnpkg/plugin-essentials"),h=(a,b)=>a?`@${a}/${b}`:b,i=(a,b)=>{const c=[...a.values()];return b?c.filter(a=>{const c=h(a[1].scope,a[1].name);return!b.includes(c)}):c};class j extends e{async execute(){if(!g.default.commands)throw new Error("Yarn commands are not available!");const a=await b.find(this.context.cwd,this.context.plugins),{workspace:e}=await c.find(a,this.context.cwd),f=[...e.manifest.dependencies,...e.manifest.devDependencies],j=i(f,this.exclude?this.exclude.split(" "):null),k=j.map(a=>h(a[1].scope,a[1].name)),l=d.from(g.default.commands);return l.runExit(["up",...k],this.context)}}return j.addOption("exclude",e.String("--exclude")),j.addPath("up-all"),j.schema=f.object().shape({exclude:f.string()}),j.usage=e.Usage({description:"Yarn2 plugin that will upgrade all dependencies to their latest version with one simple command",details:"This command will upgrade all dependencies to their latest version",examples:[["Upgrade all dependencies","yarn up-all"],["Upgrade all dependencies but exclude a single dependency","yarn up-all --exclude react-dom"],["Upgrade all dependencies but exclude multiple dependencies","yarn up-all --exclude \"react-dom react-router\""]]}),{commands:[j]}}};
55 changes: 55 additions & 0 deletions .yarn/releases/yarn-2.4.0.cjs

Large diffs are not rendered by default.

86 changes: 0 additions & 86 deletions .yarn/releases/yarn-berry.js

This file was deleted.

8 changes: 4 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/yarn-up-all-plugin.cjs
spec: "https://github.com/e5mode/yarn-up-all/releases/download/1.0.1/index.js"
spec: "https://github.com/e5mode/yarn-up-all/releases/download/1.0.3/index.js"

yarnPath: .yarn/releases/yarn-berry.js

nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-2.4.0.cjs
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The BSD Zero Clause License (0BSD)

Copyright (c) 2020 Gatsby Inc.
Copyright (c) 2021 Gatsby Inc.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
Expand Down
107 changes: 18 additions & 89 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,99 +1,28 @@
<!-- AUTO-GENERATED-CONTENT:START (STARTER) -->
<p align="center">
<a href="https://www.gatsbyjs.org">
<img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />
</a>
</p>
<h1 align="center">
Gatsby's hello-world starter
</h1>
# CodeDead.com

Kick off your project with this hello-world boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
This is the source code behind the CodeDead website.
The project was realized with the help of Gatsby, React, Material-UI and various other packages!

_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.org/docs/gatsby-starters/)._
## Usage

## 🚀 Quick start
In order to run a development build of the website, run:
```Bash
yarn start
```

1. **Create a Gatsby site.**
A development server will be executed and you can then view the website in your browser using the following url:

Use the Gatsby CLI to create a new site, specifying the hello-world starter.
`http://localhost:8000`

```shell
# create a new Gatsby site using the hello-world starter
gatsby new my-hello-world-starter https://github.com/gatsbyjs/gatsby-starter-hello-world
```
In order to build a production-ready version of the website, run:
```Bash
yarn build
```

1. **Start developing.**
`Gatsby` will then generate a static website that can be deployed on a server in seconds.

Navigate into your new site’s directory and start it up.
## About

```shell
cd my-hello-world-starter/
gatsby develop
```
This website is maintained by CodeDead.

1. **Open the source code and start editing!**

Your site is now running at `http://localhost:8000`!

_Note: You'll also see a second link: _`http://localhost:8000/___graphql`_. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._

Open the `my-hello-world-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time!

## 🧐 What's inside?

A quick look at the top-level files and directories you'll see in a Gatsby project.

.
├── node_modules
├── src
├── .gitignore
├── .prettierrc
├── gatsby-browser.js
├── gatsby-config.js
├── gatsby-node.js
├── gatsby-ssr.js
├── LICENSE
├── package-lock.json
├── package.json
└── README.md

1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.

2. **`/src`**: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. `src` is a convention for “source code”.

3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.

4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent.

5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.

6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail).

7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.

8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.

9. **`LICENSE`**: This Gatsby starter is licensed under the 0BSD license. This means that you can see this file as a placeholder and replace it with your own license.

10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**

11. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.

12. **`README.md`**: A text file containing useful reference information about your project.

## 🎓 Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:

- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.

- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.

## 💫 Deploy

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-hello-world)

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/gatsbyjs/gatsby-starter-hello-world)

<!-- AUTO-GENERATED-CONTENT:END -->
Copyright © 2021 CodeDead
8 changes: 8 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import MainContextProvider from './src/contexts/MainContextProvider';

export const wrapRootElement = ({ element }) => (
<MainContextProvider>
{element}
</MainContextProvider>
);
60 changes: 55 additions & 5 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,66 @@
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
const path = require('path');

module.exports = {
polyfill: false,
/* Your site config here */
siteMetadata: {
title: "CodeDead | Solving problems using code",
description: "Download open-source applications, free of charge",
siteUrl: "https://codedead.com"
title: 'CodeDead',
description: 'Solving problems using code',
siteUrl: 'https://codedead.com',
author: 'CodeDead',
github: 'https://github.com/CodeDead',
twitter: 'https://twitter.com/C0DEDEAD',
reddit: 'https://reddit.com/r/CodeDead/',
facebook: 'https://facebook.com/deadlinecodedead',
},
plugins: [
`gatsby-theme-material-ui`
]
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: path.join(__dirname, 'src', 'images'),
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'blog',
path: `${__dirname}/src/markdown/blog`,
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 590,
},
},
],
},
},
{
resolve: 'gatsby-plugin-google-gtag',
options: {
trackingIds: [
'G-5BW4G4STJ8',
],
pluginConfig: {
head: true,
respectDNT: true,
},
},
},
'gatsby-plugin-react-helmet',
'gatsby-transformer-remark',
'gatsby-theme-material-ui',
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
'gatsby-plugin-sitemap',
],
};
Loading