* remove npm run lint warnings, fixes #717 * Update link for Code of Conduct in CONTRIBUTING.md
This commit is contained in:
parent
cf5cb1f6e9
commit
e83654f6ad
10 changed files with 16 additions and 13 deletions
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
|
@ -16,7 +16,7 @@ Here are links to all the sections in this document:
|
|||
|
||||
## Code of Conduct
|
||||
|
||||
Please follow the guidelines mentioned at [CODE OF CONDUCT.md](https://github.com/processing/p5.js-web-editor/blob/master/CODE_OF_CONDUCT.md#p5js-code-of-conduct).
|
||||
Please follow the guidelines mentioned at [CODE OF CONDUCT.md](https://github.com/processing/p5.js-web-editor/blob/master/.github/CODE_OF_CONDUCT.md).
|
||||
|
||||
## How Can I Contribute?
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ import { setUnsavedChanges,
|
|||
resetJustOpenedProject,
|
||||
showErrorModal } from './ide';
|
||||
import { clearState, saveState } from '../../../persistState';
|
||||
import { redirectToProtocol, protocols } from '../../../components/forceProtocol';
|
||||
|
||||
const __process = (typeof global !== 'undefined' ? global : window).process;
|
||||
const ROOT_URL = __process.env.API_URL;
|
||||
|
|
|
@ -3,7 +3,10 @@ import React from 'react';
|
|||
import InlineSVG from 'react-inlinesvg';
|
||||
import classNames from 'classnames';
|
||||
import { Console as ConsoleFeed } from 'console-feed';
|
||||
import { CONSOLE_FEED_WITHOUT_ICONS, CONSOLE_FEED_LIGHT_STYLES, CONSOLE_FEED_DARK_STYLES, CONSOLE_FEED_CONTRAST_STYLES } from '../../../styles/components/_console-feed.scss';
|
||||
import {
|
||||
CONSOLE_FEED_WITHOUT_ICONS, CONSOLE_FEED_LIGHT_STYLES,
|
||||
CONSOLE_FEED_DARK_STYLES, CONSOLE_FEED_CONTRAST_STYLES
|
||||
} from '../../../styles/components/_console-feed.scss';
|
||||
import warnLightUrl from '../../../images/console-warn-light.svg';
|
||||
import warnDarkUrl from '../../../images/console-warn-dark.svg';
|
||||
import errorLightUrl from '../../../images/console-error-light.svg';
|
||||
|
@ -115,7 +118,12 @@ class Console extends React.Component {
|
|||
return (
|
||||
<div key={consoleEvent.id} className={`preview-console__message preview-console__message--${method}`}>
|
||||
{ times > 1 &&
|
||||
<div className="preview-console__logged-times" style={{ fontSize: this.props.fontSize, borderRadius: this.props.fontSize / 2 }}>{times}</div>
|
||||
<div
|
||||
className="preview-console__logged-times"
|
||||
style={{ fontSize: this.props.fontSize, borderRadius: this.props.fontSize / 2 }}
|
||||
>
|
||||
{times}
|
||||
</div>
|
||||
}
|
||||
<ConsoleFeed
|
||||
styles={this.getConsoleFeedStyle(theme, times)}
|
||||
|
|
|
@ -10,7 +10,6 @@ import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
|
|||
const plusUrl = require('../../../images/plus.svg');
|
||||
const minusUrl = require('../../../images/minus.svg');
|
||||
const beepUrl = require('../../../sounds/audioAlert.mp3');
|
||||
const infoUrl = require('../../../images/information.svg');
|
||||
|
||||
class Preferences extends React.Component {
|
||||
constructor(props) {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import generate from 'project-name-generator';
|
||||
import * as ActionTypes from '../../../constants';
|
||||
import isSecurePage from '../../../utils/isSecurePage';
|
||||
|
||||
const initialState = () => {
|
||||
const generatedString = generate({ words: 2 }).spaced;
|
||||
|
|
|
@ -13,8 +13,6 @@ import AccountView from './modules/User/pages/AccountView';
|
|||
import { getUser } from './modules/User/actions';
|
||||
import { stopSketch } from './modules/IDE/actions/ide';
|
||||
|
||||
const __process = (typeof global !== 'undefined' ? global : window).process;
|
||||
|
||||
const checkAuth = (store) => {
|
||||
store.dispatch(getUser());
|
||||
};
|
||||
|
|
|
@ -3,7 +3,6 @@ import Q from 'q';
|
|||
import mongoose from 'mongoose';
|
||||
import objectID from 'bson-objectid';
|
||||
import shortid from 'shortid';
|
||||
import { URL } from 'url';
|
||||
|
||||
import eachSeries from 'async/eachSeries';
|
||||
import User from '../models/user';
|
||||
|
@ -28,7 +27,9 @@ const defaultHTML =
|
|||
|
||||
<!-- Generative Design Dependencies here -->
|
||||
<!-- GG Bundled -->
|
||||
<script src="https://rawgit.com/generative-design/Code-Package-p5.js/${branchName}/libraries/gg-dep-bundle/gg-dep-bundle.js"></script>
|
||||
<script src=
|
||||
"https://rawgit.com/generative-design/Code-Package-p5.js/${branchName}/libraries/gg-dep-bundle/gg-dep-bundle.js">
|
||||
</script>
|
||||
|
||||
<!-- Opentype -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/opentype.js/0.7.3/opentype.min.js"></script>
|
||||
|
|
|
@ -4,7 +4,6 @@ import mongoose from 'mongoose';
|
|||
import objectID from 'bson-objectid';
|
||||
import shortid from 'shortid';
|
||||
import eachSeries from 'async/eachSeries';
|
||||
import { URL } from 'url';
|
||||
import User from '../models/user';
|
||||
import Project from '../models/project';
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ import session from 'express-session';
|
|||
import connectMongo from 'connect-mongo';
|
||||
import passport from 'passport';
|
||||
import path from 'path';
|
||||
import { URL } from 'url';
|
||||
import basicAuth from 'express-basic-auth';
|
||||
|
||||
// Webpack Requirements
|
||||
|
|
|
@ -40,12 +40,13 @@ export function get404Sketch(callback) {
|
|||
|
||||
// Add 404 html and position canvas
|
||||
const html = htmlFile.split('</head>');
|
||||
const metaDescription = 'A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.'; // eslint-disable-line
|
||||
html[0] = `
|
||||
${html[0]}
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="keywords" content="p5.js, p5.js web editor, web editor, processing, code editor" />
|
||||
<meta name="description" content="A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners." />
|
||||
<meta name="description" content="${metaDescription}" />
|
||||
<title>404 Page Not Found - p5.js Web Editor</title>
|
||||
<style>
|
||||
.header {
|
||||
|
|
Loading…
Reference in a new issue