diff --git a/.eslintrc b/.eslintrc index 256edbe..fabee4a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,15 +1,15 @@ { - "parser": "babel-eslint", - "rules": { - "strict": 0 - }, - "extends": [ - "eslint:recommended", - "plugin:react/recommended" - ], - "settings": { - "react": { - "version": "detect" - } + "parser": "babel-eslint", + "rules": { + "strict": 0 + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended" + ], + "settings": { + "react": { + "version": "detect" } - } \ No newline at end of file + } +} \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index c1eaebf..c99087a 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,3 @@ # These are supported funding model platforms -github: [Unkn0wnCat] \ No newline at end of file +github: [Unkn0wnCat] diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9dcd158..62dd6b3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,8 @@ version: 2 updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 + - package-ecosystem: npm + directory: "/" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 diff --git a/.gitignore b/.gitignore index 5a1715f..008b278 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ public /.fab /fab.zip + +/npm-*.log \ No newline at end of file diff --git a/config.js b/config.js index d267568..95dd2d4 100644 --- a/config.js +++ b/config.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line no-undef module.exports = { "siteName": "KevinK.dev", "siteAuthor": "@Unkn0wnKevin", diff --git a/gatsby-browser.js b/gatsby-browser.js index 0abd6a5..fe61893 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -1,12 +1,12 @@ /* eslint-disable no-undef */ let $ = require("jquery"); -$(function() { - $(window).on("scroll", function() { +$(function () { + $(window).on("scroll", function () { performUpdate(); }); - $(window).on("navigate", function() { + $(window).on("navigate", function () { performUpdate(); }); @@ -14,7 +14,7 @@ $(function() { }); function performUpdate() { - if(window.scrollY < 15) { + if (window.scrollY < 15) { $(".topBar").addClass("homeBarTransparent"); } else { $(".topBar").removeClass("homeBarTransparent"); diff --git a/gatsby-config.js b/gatsby-config.js index 52bc775..b938dc6 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -13,7 +13,7 @@ module.exports = { mapsLink: extConfig.mapsLink, contactTwitter: extConfig.contactTwitter, contactGitHub: extConfig.contactGitHub - }, + }, assetPrefix: "/assets", plugins: [ `gatsby-plugin-eslint`, @@ -58,25 +58,25 @@ module.exports = { { resolve: `gatsby-plugin-react-i18next`, options: { - path: `${__dirname}/locales`, - languages: extConfig.languages, - defaultLanguage: null, - siteUrl: extConfig.siteURL, - i18nextOptions: { - interpolation: { - escapeValue: false // not needed for react as it escapes by default + path: `${__dirname}/locales`, + languages: extConfig.languages, + defaultLanguage: null, + siteUrl: extConfig.siteURL, + i18nextOptions: { + interpolation: { + escapeValue: false // not needed for react as it escapes by default + }, + keySeparator: false, + nsSeparator: false }, - keySeparator: false, - nsSeparator: false - }, - pages: [ - { - matchPath: '/:lang/projects/:urlname', - getLanguageFromPath: true, - excludeLanguages: extConfig.languages - } - ] + pages: [ + { + matchPath: '/:lang/projects/:urlname', + getLanguageFromPath: true, + excludeLanguages: extConfig.languages + } + ] } - } + } ] } \ No newline at end of file diff --git a/gatsby-node.js b/gatsby-node.js index 8e52344..e817c7e 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,3 +1,4 @@ +/* eslint-disable no-undef */ const path = require(`path`); exports.createPages = async ({ actions, graphql, reporter }) => { @@ -23,9 +24,10 @@ exports.createPages = async ({ actions, graphql, reporter }) => { } result.data.allProjectsJson.nodes.forEach((node) => { + // eslint-disable-next-line no-undef console.log("Creating Page: ", `/${node.lang}/projects/${node.urlname}`); - if(node.lang !== "ignoreme") createPage({ + if (node.lang !== "ignoreme") createPage({ path: `/${node.lang}/projects/${node.urlname}`, component: projectTemplate, context: { diff --git a/locales/de/translation.json b/locales/de/translation.json index a27edd4..6a17444 100644 --- a/locales/de/translation.json +++ b/locales/de/translation.json @@ -32,4 +32,4 @@ "donate": "Spenden", "featuredProjects": "Vorgestellte Projekte", "seeMore": "Mehr erkunden" -} +} \ No newline at end of file diff --git a/locales/en/translation.json b/locales/en/translation.json index b56e204..ef63de2 100644 --- a/locales/en/translation.json +++ b/locales/en/translation.json @@ -32,4 +32,4 @@ "donateThanksText": "I really appreciate you appreciating my work and showing it! Feel free to mail me at <1>{{contactEmail}} if you have anything you want to talk about!", "featuredProjects": "Featured Projects", "seeMore": "See more" -} +} \ No newline at end of file diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index 5ea6adf..0000000 --- a/npm-debug.log +++ /dev/null @@ -1,46 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'extract' ] -2 info using npm@3.5.2 -3 info using node@v8.10.0 -4 verbose run-script [ 'preextract', 'extract', 'postextract' ] -5 info lifecycle kevin-k.dev@1.0.0~preextract: kevin-k.dev@1.0.0 -6 silly lifecycle kevin-k.dev@1.0.0~preextract: no script for preextract, continuing -7 info lifecycle kevin-k.dev@1.0.0~extract: kevin-k.dev@1.0.0 -8 verbose lifecycle kevin-k.dev@1.0.0~extract: unsafe-perm in lifecycle true -9 verbose lifecycle kevin-k.dev@1.0.0~extract: PATH: /usr/share/npm/bin/node-gyp-bin:/mnt/d/Projects/kevink-dev/node_modules/.bin:/home/kevin/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/Oculus/Support/oculus-runtime:/mnt/c/VulkanSDK/1.1.121.1/Bin:/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/bin:/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/libnvvp:/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2/libnvvp:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common Files/Intel/Shared Libraries/redist/intel64/compiler:/mnt/c/ProgramData/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Android:/mnt/c/Windows/System32:/mnt/d/CustomInstalls/libwebp-0.6.1/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn/:/mnt/c/BIN:/mnt/d/CustomInstalls/WorldPainter:/mnt/c/ProgramData/ComposerSetup/bin:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/:/mnt/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/d/CustomInstalls/TortoiseHg/:/mnt/c/Perl64/bin/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files (x86)/Paragon Software/LinuxFS for Windows/:/mnt/c/Program Files (x86)/Streamlink/bin:/mnt/d/CustomInstalls/xampp/mysql/bin:/mnt/d/CustomInstalls/OracleVM VirtualBox:/mnt/c/Program Files/nodejs/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/AIRCRACK-NG:/mnt/d/Program Files (x86)/Graphviz2.38/bin:/mnt/c/Program Files/Calibre2/:/mnt/d/Program Files (x86)/Google/Cloud SDK/google-cloud-sdk/bin:/mnt/c/Program Files (x86)/Yarn/bin/:/mnt/d/HashiCorp/Vagrant/bin:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/ZeroTier/One/:/mnt/c/Program Files/Symfony:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Users/kevin/Miniconda3:/mnt/c/Users/kevin/Miniconda3/Library/mingw-w64/bin:/mnt/c/Users/kevin/Miniconda3/Library/usr/bin:/mnt/c/Users/kevin/Miniconda3/Library/bin:/mnt/c/Users/kevin/Miniconda3/Scripts:/mnt/c/Ruby24-x64/bin:/mnt/c/Ruby26-x64/bin:/mnt/c/Users/kevin/AppData/Local/Programs/Python/Python37/Scripts/:/mnt/c/Users/kevin/AppData/Local/Programs/Python/Python37/:/mnt/c/Users/kevin/AppData/Local/Programs/Python/Python36-32/Scripts/:/mnt/c/Users/kevin/AppData/Local/Programs/Python/Python36-32/:/mnt/c/Users/kevin/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/kevin/AppData/Local/atom/bin:/mnt/d/flutter/bin:/mnt/c/Users/kevin/AppData/Local/Programs/Fiddler:/mnt/c/Users/kevin/AppData/Roaming/Composer/vendor/bin:/mnt/d/CustomInstalls/GPAC:/mnt/c/Users/kevin/AppData/Local/now-cli:/mnt/c/Users/kevin/AppData/Local/GitHubDesktop/bin:/mnt/c/Program Files/CMake/bin:/mnt/c/Users/kevin/.improbable/spatial:/mnt/c/Program Files/GPAC:/mnt/d/Program Files/GPAC:/mnt/c/Users/kevin/AppData/Local/hyper/app-2.1.2/resources/bin:/mnt/c/Users/kevin/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/kevin/AppData/Roaming/npm:/mnt/c/Users/kevin/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/kevin/.dotnet/tools:/mnt/c/Users/kevin/AppData/Local/Yarn/bin:/mnt/c/Program Files (x86)/FAHClient:/mnt/c/Users/kevin/AppData/Local/Keybase/:/mnt/d/Program Files/IPFS Desktop/resources/app.asar.unpacked/src/ipfs-on-path/scripts/bin-win:/mnt/c/Users/kevin/.dotnet/tools:/snap/bin -10 verbose lifecycle kevin-k.dev@1.0.0~extract: CWD: /mnt/d/Projects/kevink-dev -11 silly lifecycle kevin-k.dev@1.0.0~extract: Args: [ '-c', -11 silly lifecycle 'babel --config-file ./babel-extract.config.js -o tmp/chunk.js \'./src/**/*.{js,jsx,ts,tsx}\' && rm -rf tmp' ] -12 silly lifecycle kevin-k.dev@1.0.0~extract: Returned: code: 1 signal: null -13 info lifecycle kevin-k.dev@1.0.0~extract: Failed to exec extract script -14 verbose stack Error: kevin-k.dev@1.0.0 extract: `babel --config-file ./babel-extract.config.js -o tmp/chunk.js './src/**/*.{js,jsx,ts,tsx}' && rm -rf tmp` -14 verbose stack Exit status 1 -14 verbose stack at EventEmitter. (/usr/share/npm/lib/utils/lifecycle.js:232:16) -14 verbose stack at emitTwo (events.js:126:13) -14 verbose stack at EventEmitter.emit (events.js:214:7) -14 verbose stack at ChildProcess. (/usr/share/npm/lib/utils/spawn.js:24:14) -14 verbose stack at emitTwo (events.js:126:13) -14 verbose stack at ChildProcess.emit (events.js:214:7) -14 verbose stack at maybeClose (internal/child_process.js:925:16) -14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) -15 verbose pkgid kevin-k.dev@1.0.0 -16 verbose cwd /mnt/d/Projects/kevink-dev -17 error Linux 4.4.0-18362-Microsoft -18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "extract" -19 error node v8.10.0 -20 error npm v3.5.2 -21 error code ELIFECYCLE -22 error kevin-k.dev@1.0.0 extract: `babel --config-file ./babel-extract.config.js -o tmp/chunk.js './src/**/*.{js,jsx,ts,tsx}' && rm -rf tmp` -22 error Exit status 1 -23 error Failed at the kevin-k.dev@1.0.0 extract script 'babel --config-file ./babel-extract.config.js -o tmp/chunk.js './src/**/*.{js,jsx,ts,tsx}' && rm -rf tmp'. -23 error Make sure you have the latest version of node.js and npm installed. -23 error If you do, this is most likely a problem with the kevin-k.dev package, -23 error not with npm itself. -23 error Tell the author that this fails on your system: -23 error babel --config-file ./babel-extract.config.js -o tmp/chunk.js './src/**/*.{js,jsx,ts,tsx}' && rm -rf tmp -23 error You can get information on how to open an issue for this project with: -23 error npm bugs kevin-k.dev -23 error Or if that isn't available, you can get their info via: -23 error npm owner ls kevin-k.dev -23 error There is likely additional logging output above. -24 verbose exit [ 1, true ] diff --git a/package-lock.json b/package-lock.json index 27c933e..3edeeca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22673,4 +22673,4 @@ } } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 7352200..e983abc 100644 --- a/package.json +++ b/package.json @@ -59,4 +59,4 @@ "eslint-plugin-react": "^7.21.5", "gatsby-plugin-eslint": "^2.0.8" } -} +} \ No newline at end of file diff --git a/src/_mixins.scss b/src/_mixins.scss index 9e4767b..57f8452 100644 --- a/src/_mixins.scss +++ b/src/_mixins.scss @@ -10,16 +10,18 @@ @mixin cardGeneric { border-radius: 5px; overflow: hidden; - box-shadow: -1px 11px 33px -10px rgba(127,127,127,0.3); + box-shadow: -1px 11px 33px -10px rgba(127, 127, 127, 0.3); transition: transform .25s, box-shadow .25s; color: $textColor; text-decoration: none; margin: 20px; background: $background; - &:hover, &:active, &:focus { + &:hover, + &:active, + &:focus { transform: scale(1.05); - box-shadow: -1px 11px 33px -10px rgba(127,127,127,0.2), -1px 11px 33px -10px rgba($accentColor, .75); + box-shadow: -1px 11px 33px -10px rgba(127, 127, 127, 0.2), -1px 11px 33px -10px rgba($accentColor, .75); } } @@ -33,7 +35,9 @@ box-shadow: 0 0 33px -10px rgba($accentColor, .5); transition: box-shadow .25s; - &:hover, &:active, &:hover { + &:hover, + &:active, + &:hover { box-shadow: 0 0 33px -10px rgba($accentColor, .9); } } @@ -54,7 +58,7 @@ height: 50px; } - > div { + >div { display: flex; height: 100%; padding: 20px !important; @@ -62,13 +66,13 @@ font-size: 1.7em; color: white; - > span { + >span { margin-left: auto; margin-right: auto; } - > i { - + >i { + display: inline-flex; flex-direction: column; justify-content: center; diff --git a/src/_variables.scss b/src/_variables.scss index fdf04de..d14f3c2 100644 --- a/src/_variables.scss +++ b/src/_variables.scss @@ -4,4 +4,5 @@ $background: #070707; $textColor: white; $layoutPadding: 20px; -$mainFont: 'Anonymous Pro', monospace; \ No newline at end of file +$mainFont: 'Anonymous Pro', +monospace; \ No newline at end of file diff --git a/src/components/languageSwitcher.js b/src/components/languageSwitcher.js index f8b9d08..76ec261 100644 --- a/src/components/languageSwitcher.js +++ b/src/components/languageSwitcher.js @@ -1,8 +1,8 @@ import React from "react" -import {Link, Trans, useI18next} from 'gatsby-plugin-react-i18next'; +import { Link, Trans, useI18next } from 'gatsby-plugin-react-i18next'; export default function LanguageSwitcher() { - const {languages, originalPath} = useI18next(); + const { languages, originalPath } = useI18next(); return (
diff --git a/src/components/navigation.js b/src/components/navigation.js index 5ec620e..fa94ec1 100644 --- a/src/components/navigation.js +++ b/src/components/navigation.js @@ -3,7 +3,7 @@ import PropTypes from "prop-types" import { Trans, Link } from "gatsby-plugin-react-i18next" import { graphql, StaticQuery } from 'gatsby' -const Navigation = ({isHome, module}) => { +const Navigation = ({ isHome, module }) => { return (