Skip to content

Commit ba00f7f

Browse files
committed
Merge master
2 parents ba92e01 + a47245b commit ba00f7f

File tree

172 files changed

+9401
-2005
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+9401
-2005
lines changed

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
API_URL=/api
1+
API_URL=/editor
22
AWS_ACCESS_KEY=<your-aws-access-key>
33
AWS_REGION=<your-aws-region>
44
AWS_SECRET_KEY=<your-aws-secret-key>
@@ -23,3 +23,5 @@ PORT=8000
2323
S3_BUCKET=<your-s3-bucket>
2424
S3_BUCKET_URL_BASE=<alt-for-s3-url>
2525
SESSION_SECRET=whatever_you_want_this_to_be_it_only_matters_for_production
26+
UI_ACCESS_TOKEN_ENABLED=false
27+
UPLOAD_LIMIT=250000000

.github/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ newIssueWelcomeComment: >
1010

1111
# Comment to be posted to on PRs from first time contributors in your repository
1212
newPRWelcomeComment: >
13-
🎉 Thanks for opening this pull request! Please check out our [contributing guidelines](https://github.com/processing/p5.js-web-editor/blob/master/CONTRIBUTING.md) if you haven't already.
13+
🎉 Thanks for opening this pull request! Please check out our [contributing guidelines](https://github.com/processing/p5.js-web-editor/blob/master/.github/CONTRIBUTING.md) if you haven't already.
1414
1515
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
1616

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12.16.1

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: required
22
language: node_js
33
node_js:
4-
- "11.15.0"
4+
- "12.16.1"
55

66
cache:
77
directories:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:10.15.0 as base
1+
FROM node:12.16.1 as base
22
ENV APP_HOME=/usr/src/app \
33
TERM=xterm
44
RUN mkdir -p $APP_HOME

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"env": {
1818
"API_URL": {
19-
"value": "/api"
19+
"value": "/editor"
2020
},
2121
"AWS_ACCESS_KEY": {
2222
"description": "AWS Access Key",

client/components/AddRemoveButton.jsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
import InlineSVG from 'react-inlinesvg';
4+
5+
const addIcon = require('../images/plus.svg');
6+
const removeIcon = require('../images/minus.svg');
7+
8+
const AddRemoveButton = ({ type, onClick }) => {
9+
const alt = type === 'add' ? 'add to collection' : 'remove from collection';
10+
const icon = type === 'add' ? addIcon : removeIcon;
11+
12+
return (
13+
<button className="overlay__close-button" onClick={onClick}>
14+
<InlineSVG src={icon} alt={alt} />
15+
</button>
16+
);
17+
};
18+
19+
AddRemoveButton.propTypes = {
20+
type: PropTypes.oneOf(['add', 'remove']).isRequired,
21+
onClick: PropTypes.func.isRequired,
22+
};
23+
24+
export default AddRemoveButton;

0 commit comments

Comments
 (0)