Skip to content

Commit 287ea0d

Browse files
authored
Merge pull request #1210 from processing/remove-titles
fixes #1206, removes titles where it is unneccesary
2 parents 821b2ea + 57ecfb7 commit 287ea0d

File tree

10 files changed

+3
-66
lines changed

10 files changed

+3
-66
lines changed

client/constants.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ export const HIDE_ERROR_MODAL = 'HIDE_ERROR_MODAL';
113113
export const PERSIST_STATE = 'PERSIST_STATE';
114114
export const CLEAR_PERSISTED_STATE = 'CLEAR_PERSISTED_STATE';
115115

116-
export const SHOW_HELP_MODAL = 'SHOW_HELP_MODAL';
117-
export const HIDE_HELP_MODAL = 'HIDE_HELP_MODAL';
118-
119116
export const HIDE_RUNTIME_ERROR_WARNING = 'HIDE_RUNTIME_ERROR_WARNING';
120117
export const SHOW_RUNTIME_ERROR_WARNING = 'SHOW_RUNTIME_ERROR_WARNING';
121118
export const SET_ASSETS = 'SET_ASSETS';

client/modules/IDE/actions/ide.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -232,19 +232,6 @@ export function hideErrorModal() {
232232
};
233233
}
234234

235-
export function showHelpModal(helpType) {
236-
return {
237-
type: ActionTypes.SHOW_HELP_MODAL,
238-
helpType
239-
};
240-
}
241-
242-
export function hideHelpModal() {
243-
return {
244-
type: ActionTypes.HIDE_HELP_MODAL
245-
};
246-
}
247-
248235
export function hideRuntimeErrorWarning() {
249236
return {
250237
type: ActionTypes.HIDE_RUNTIME_ERROR_WARNING

client/modules/IDE/components/Console.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Console extends React.Component {
7777
});
7878

7979
return (
80-
<div className={consoleClass} role="main" title="console">
80+
<div className={consoleClass} role="main">
8181
<div className="preview-console__header">
8282
<h2 className="preview-console__header-title">Console</h2>
8383
<div className="preview-console__header-buttons">

client/modules/IDE/components/CopyableInput.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class CopyableInput extends React.Component {
7070
rel="noopener noreferrer"
7171
href={value}
7272
className="copyable-input__preview"
73-
title={`open ${label.toLowerCase()} view in new tab`}
7473
>
7574
<InlineSVG src={shareUrl} alt={`open ${label} view in new tab`} />
7675
</a>

client/modules/IDE/components/Editor.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ class Editor extends React.Component {
312312

313313
return (
314314
<section
315-
title="code editor"
316315
role="main"
317316
className={editorSectionClass}
318317
>

client/modules/IDE/components/HTTPSModal.jsx

Lines changed: 0 additions & 24 deletions
This file was deleted.

client/modules/IDE/components/Preferences.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Preferences extends React.Component {
9292
const beep = new Audio(beepUrl);
9393

9494
return (
95-
<section className="preferences" title="preference-menu">
95+
<section className="preferences">
9696
<Helmet>
9797
<title>p5.js Web Editor | Preferences</title>
9898
</Helmet>

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ class PreviewFrame extends React.Component {
360360
aria-label="sketch output"
361361
role="main"
362362
frameBorder="0"
363-
title="sketch output"
363+
title="sketch preview"
364364
ref={(element) => { this.iframeElement = element; }}
365365
sandbox="allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals"
366366
/>

client/modules/IDE/pages/IDEView.jsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import NewFolderModal from '../components/NewFolderModal';
1515
import ShareModal from '../components/ShareModal';
1616
import KeyboardShortcutModal from '../components/KeyboardShortcutModal';
1717
import ErrorModal from '../components/ErrorModal';
18-
import HTTPSModal from '../components/HTTPSModal';
1918
import Nav from '../../../components/Nav';
2019
import Console from '../components/Console';
2120
import Toast from '../components/Toast';
@@ -197,7 +196,6 @@ class IDEView extends React.Component {
197196
<Toolbar />
198197
{this.props.ide.preferencesIsVisible &&
199198
<Overlay
200-
title="Settings"
201199
ariaLabel="settings"
202200
closeOverlay={this.props.closePreferences}
203201
>
@@ -397,7 +395,6 @@ class IDEView extends React.Component {
397395
{ this.props.location.pathname === '/about' &&
398396
<Overlay
399397
previousPath={this.props.ide.previousPath}
400-
title="Welcome"
401398
ariaLabel="about"
402399
>
403400
<About previousPath={this.props.ide.previousPath} />
@@ -406,15 +403,13 @@ class IDEView extends React.Component {
406403
{ this.props.location.pathname === '/feedback' &&
407404
<Overlay
408405
previousPath={this.props.ide.previousPath}
409-
title="Submit Feedback"
410406
ariaLabel="submit-feedback"
411407
>
412408
<Feedback previousPath={this.props.ide.previousPath} />
413409
</Overlay>
414410
}
415411
{ this.props.ide.shareModalVisible &&
416412
<Overlay
417-
title="Share This Sketch"
418413
ariaLabel="share"
419414
closeOverlay={this.props.closeShareModal}
420415
>
@@ -427,7 +422,6 @@ class IDEView extends React.Component {
427422
}
428423
{ this.props.ide.keyboardShortcutVisible &&
429424
<Overlay
430-
title="Keyboard Shortcuts"
431425
ariaLabel="keyboard shortcuts"
432426
closeOverlay={this.props.closeKeyboardShortcutModal}
433427
>
@@ -436,7 +430,6 @@ class IDEView extends React.Component {
436430
}
437431
{ this.props.ide.errorType &&
438432
<Overlay
439-
title="Error"
440433
ariaLabel="error"
441434
closeOverlay={this.props.hideErrorModal}
442435
>
@@ -446,14 +439,6 @@ class IDEView extends React.Component {
446439
/>
447440
</Overlay>
448441
}
449-
{ this.props.ide.helpType &&
450-
<Overlay
451-
title="Serve over HTTPS"
452-
closeOverlay={this.props.hideHelpModal}
453-
>
454-
<HTTPSModal />
455-
</Overlay>
456-
}
457442
</div>
458443
);
459444
}
@@ -499,7 +484,6 @@ IDEView.propTypes = {
499484
previousPath: PropTypes.string.isRequired,
500485
justOpenedProject: PropTypes.bool.isRequired,
501486
errorType: PropTypes.string,
502-
helpType: PropTypes.string,
503487
runtimeErrorWarningVisible: PropTypes.bool.isRequired,
504488
}).isRequired,
505489
stopSketch: PropTypes.func.isRequired,
@@ -600,7 +584,6 @@ IDEView.propTypes = {
600584
hideErrorModal: PropTypes.func.isRequired,
601585
clearPersistedState: PropTypes.func.isRequired,
602586
persistState: PropTypes.func.isRequired,
603-
hideHelpModal: PropTypes.func.isRequired,
604587
showRuntimeErrorWarning: PropTypes.func.isRequired,
605588
hideRuntimeErrorWarning: PropTypes.func.isRequired,
606589
startSketch: PropTypes.func.isRequired,

client/modules/IDE/reducers/ide.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ const ide = (state = initialState, action) => {
102102
return Object.assign({}, state, { errorType: action.modalType });
103103
case ActionTypes.HIDE_ERROR_MODAL:
104104
return Object.assign({}, state, { errorType: undefined });
105-
case ActionTypes.SHOW_HELP_MODAL:
106-
return Object.assign({}, state, { helpType: action.helpType });
107-
case ActionTypes.HIDE_HELP_MODAL:
108-
return Object.assign({}, state, { helpType: undefined });
109105
case ActionTypes.HIDE_RUNTIME_ERROR_WARNING:
110106
return Object.assign({}, state, { runtimeErrorWarningVisible: false });
111107
case ActionTypes.SHOW_RUNTIME_ERROR_WARNING:

0 commit comments

Comments
 (0)