diff --git a/tools/contributor/.gitignore b/tools/contributor/.gitignore deleted file mode 100644 index b1a6e73cf5..0000000000 --- a/tools/contributor/.gitignore +++ /dev/null @@ -1,110 +0,0 @@ -#----- -# Node -#----- - -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# next.js build output -.next - -# nuxt.js build output -.nuxt - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless - -# FuseBox cache -.fusebox/ - -#----------------- -# Create React App -#----------------- - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -build - -# ------------ -# Custom Files -# ------------ - -work-logs -# work-logs -# - -# ------------ -# Probot Files -# ------------ - -*.pem -*.vscode diff --git a/tools/contributor/.prettierrc b/tools/contributor/.prettierrc deleted file mode 100644 index 38bc8e093f..0000000000 --- a/tools/contributor/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "semi": true, - "singleQuote": true, - "trailingComma": "none" -} diff --git a/tools/contributor/dashboard-app/client/package.json b/tools/contributor/dashboard-app/client/package.json deleted file mode 100644 index 48774b4d68..0000000000 --- a/tools/contributor/dashboard-app/client/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@freecodecamp/dashboard-client", - "version": "0.0.1", - "description": "The freeCodeCamp.org open-source codebase and curriculum", - "license": "BSD-3-Clause", - "private": true, - "engines": { - "node": ">=16", - "npm": ">=8" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git" - }, - "bugs": { - "url": "https://github.com/freeCodeCamp/freeCodeCamp/issues" - }, - "homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme", - "author": "freeCodeCamp ", - "main": "none", - "scripts": { - "build": "cross-env SKIP_PREFLIGHT_CHECK=true react-scripts build", - "dev": "develop", - "develop": "cross-env REACT_APP_HOST=local SKIP_PREFLIGHT_CHECK=true react-scripts start", - "eject": "react-scripts eject", - "test": "SKIP_PREFLIGHT_CHECK=true react-scripts test" - }, - "browserslist": [ - ">0.2%", - "not dead", - "not ie <= 11", - "not op_mini all" - ], - "dependencies": { - "react": "16.14.0", - "react-dom": "16.14.0", - "react-scripts": "2.1.8", - "styled-components": "4.4.1" - }, - "devDependencies": { - "cross-env": "5.2.1" - } -} diff --git a/tools/contributor/dashboard-app/client/public/index.html b/tools/contributor/dashboard-app/client/public/index.html deleted file mode 100644 index 6da5d5e7b7..0000000000 --- a/tools/contributor/dashboard-app/client/public/index.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - freeCodeCamp Contributor Tools - - - -
- - diff --git a/tools/contributor/dashboard-app/client/src/App.js b/tools/contributor/dashboard-app/client/src/App.js deleted file mode 100644 index 28e0e9e394..0000000000 --- a/tools/contributor/dashboard-app/client/src/App.js +++ /dev/null @@ -1,145 +0,0 @@ -import React, { Component } from 'react'; -import styled from 'styled-components'; - -import FreeCodeCampLogo from './assets/freeCodeCampLogo'; -import Tabs from './components/Tabs'; -import Search from './components/Search'; -import Pareto from './components/Pareto'; -import Repos from './components/Repos'; -import Footer from './components/Footer'; - -import { ENDPOINT_INFO } from './constants'; - -const PageContainer = styled.div` - margin-top: 70px; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - @media (max-width: 991px) { - margin-top: 135px; - } -`; - -const Container = styled.div` - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - max-width: 960px; - width: 90vw; - padding: 15px; - border-radius: 4px; - box-shadow: 0 0 4px 0 #777; -`; - -const AppNavBar = styled.nav` - margin: 0; - padding: 0; - color: white; - position: fixed; - top: 0; - left: 0; - right: 0; - display: flex; - justify-content: space-between; - align-items: center; - background: ${({ theme }) => theme.primary}; - @media (max-width: 991px) { - flex-direction: column; - } -`; - -const logoStyle = { paddingLeft: '30px' }; - -const titleStyle = { margin: '0', padding: '0' }; - -class App extends Component { - state = { - view: 'search', - footerInfo: null - }; - - updateInfo() { - fetch(ENDPOINT_INFO) - .then((response) => response.json()) - .then(({ ok, numPRs, prRange, lastUpdate }) => { - if (ok) { - const footerInfo = { numPRs, prRange, lastUpdate }; - this.setState((prevState) => ({ footerInfo })); - } - }) - .catch(() => { - // do nothing - }); - } - - handleViewChange = ({ target: { id } }) => { - const view = id.replace('tabs-', ''); - this.setState((prevState) => ({ ...this.clearObj, view })); - if (view === 'reports' || view === 'search') { - this.updateInfo(); - } - }; - - componentDidMount() { - this.updateInfo(); - } - - render() { - const { - handleViewChange, - state: { view, footerInfo } - } = this; - return ( - <> - - - - -

Contributor Tools

- -
- - - - {view === 'search' && } - {view === 'reports' && } - {view === 'boilerplates' && ( - repo._id.includes('boilerplate')} - /> - )} - {view === 'other' && ( - - !repo._id.includes('boilerplate') && - repo._id !== 'freeCodeCamp' - } - /> - )} - - {footerInfo &&