Skip to content

Commit 7a71c75

Browse files
authored
Merge branch 'develop' into feature/dynamic-paths
2 parents 8f9ddb5 + 01dca7f commit 7a71c75

25 files changed

+27355
-59942
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
with:
2424
ref: release
2525
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v1
26+
uses: docker/setup-buildx-action@v2
27+
with:
28+
platforms: linux/amd64,linux/arm64
2729
- name: Login to Docker Hub
2830
uses: docker/login-action@v1
2931
with:

client/components/Nav.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class Nav extends React.PureComponent {
3030
super(props);
3131
this.handleSave = this.handleSave.bind(this);
3232
this.handleNew = this.handleNew.bind(this);
33+
this.handleDuplicate = this.handleDuplicate.bind(this);
3334
this.handleShare = this.handleShare.bind(this);
3435
this.handleDownload = this.handleDownload.bind(this);
3536
this.handleLangSelection = this.handleLangSelection.bind(this);
@@ -56,6 +57,10 @@ class Nav extends React.PureComponent {
5657
}
5758
}
5859

60+
handleDuplicate() {
61+
this.props.cloneProject();
62+
}
63+
5964
handleLangSelection(event) {
6065
this.props.setLanguage(event.target.value);
6166
this.props.showToast(1500);
@@ -132,7 +137,7 @@ class Nav extends React.PureComponent {
132137
</NavMenuItem>
133138
<NavMenuItem
134139
hideIf={!this.props.project.id || !this.props.user.authenticated}
135-
onClick={this.props.cloneProject}
140+
onClick={this.handleDuplicate}
136141
>
137142
{this.props.t('Nav.File.Duplicate')}
138143
</NavMenuItem>

client/modules/IDE/components/Editor.jsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ class Editor extends React.Component {
159159
[`${metaKey}-Enter`]: () => null,
160160
[`Shift-${metaKey}-Enter`]: () => null,
161161
[`${metaKey}-F`]: 'findPersistent',
162+
[`Shift-${metaKey}-F`]: this.tidyCode,
162163
[`${metaKey}-G`]: 'findPersistentNext',
163164
[`Shift-${metaKey}-G`]: 'findPersistentPrev',
164165
[replaceCommand]: 'replace',
@@ -194,16 +195,6 @@ class Editor extends React.Component {
194195
});
195196

196197
this._cm.on('keydown', (_cm, e) => {
197-
if (
198-
((metaKey === 'Cmd' && e.metaKey) ||
199-
(metaKey === 'Ctrl' && e.ctrlKey)) &&
200-
e.shiftKey &&
201-
e.key === 'f'
202-
) {
203-
e.preventDefault();
204-
this.tidyCode();
205-
}
206-
207198
// Show hint
208199
const mode = this._cm.getOption('mode');
209200
if (/^[a-z]$/i.test(e.key) && (mode === 'css' || mode === 'javascript')) {

client/modules/IDE/reducers/preferences.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const initialState = {
1212
autorefresh: false,
1313
language: 'en-US',
1414
autocloseBracketsQuotes: true,
15-
autocompleteHinter: true
15+
autocompleteHinter: false
1616
};
1717

1818
const preferences = (state = initialState, action) => {

client/styles/abstracts/_variables.scss

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@ $base-font-size: 12;
33
//colors
44
$p5js-pink: #ed225d;
55
$p5js-pink-opacity: #ed225d80;
6-
$processing-blue: #007BBB;
76
$p5js-active-pink: #f10046;
87
$white: #fff;
98
$black: #000;
109
$yellow: #F5DC23;
11-
$orange: #ffa500;
12-
$red: #ff0000;
13-
$lightsteelblue: #B0C4DE;
1410
$dodgerblue: #1E90FF;
15-
// $icon-hover-color: #333;
1611
$p5-contrast-pink: #FFA9D9;
1712

18-
$border-color: #B5B5B5;
1913
$outline-color: #0F9DD7;
2014

2115
// Grayscale values
@@ -43,7 +37,6 @@ $themes: (
4337
primary-text-color: $dark,
4438
secondary-text-color: $medium-dark,
4539
inactive-text-color: $middle-dark,
46-
dropzone-text-color: $dark,
4740
modal-button-color: $dark,
4841
background-color: $lighter,
4942
button-background-color: $light,
@@ -67,15 +60,10 @@ $themes: (
6760
console-background-color: $light,
6861
console-input-background-color: $lightest,
6962
console-color: $darker,
70-
console-logged-times-color: $lightest,
7163
console-arrow-color: $middle-gray,
7264
console-active-arrow-color: #0071AD,
7365
console-header-background-color: $medium-light,
7466
console-header-color: $darker,
75-
console-info-background-color: #5276B7,
76-
console-warn-background-color: #996B00,
77-
console-debug-background-color: #0071AD,
78-
console-error-background-color: #D11518,
7967
ide-border-color: $medium-light,
8068
editor-gutter-color: $lighter,
8169
file-hover-color: $light,
@@ -99,9 +87,6 @@ $themes: (
9987
codefold-icon-open: url("../images/triangle-arrow-down.svg?byUrl"),
10088
codefold-icon-closed: url("../images/triangle-arrow-right.svg?byUrl"),
10189

102-
primary-button-color: $lightest,
103-
primary-button-background-color: $p5js-pink,
104-
10590
table-button-color: $lightest,
10691
table-button-background-color: $middle-gray,
10792
table-button-active-color: $lightest,
@@ -146,7 +131,6 @@ $themes: (
146131
logo-background-color: $lightest,
147132
heavy-text-color: $lightest,
148133
primary-text-color: $lightest,
149-
dropzone-text-color: $black,
150134
modal-button-color: $lightest,
151135
secondary-text-color: $medium-light,
152136
inactive-text-color: $middle-light,
@@ -172,15 +156,10 @@ $themes: (
172156
console-background-color: $dark,
173157
console-input-background-color: $darker,
174158
console-color: $lightest,
175-
console-logged-times-color: $dark,
176159
console-arrow-color: $medium-light,
177160
console-active-arrow-color: #097BB3,
178161
console-header-background-color: $medium-dark,
179162
console-header-color: $lightest,
180-
console-info-background-color: #5276B7,
181-
console-warn-background-color: #966C08,
182-
console-error-background-color: #DD3134,
183-
console-debug-background-color: #097BB3,
184163
ide-border-color: $middle-dark,
185164
editor-gutter-color: $darker,
186165
file-hover-color: $dark,
@@ -204,9 +183,6 @@ $themes: (
204183
codefold-icon-open: url("../images/triangle-arrow-down-white.svg?byUrl"),
205184
codefold-icon-closed: url("../images/triangle-arrow-right-white.svg?byUrl"),
206185

207-
primary-button-color: $lightest,
208-
primary-button-background-color: $p5js-pink,
209-
210186
table-button-color: $lightest,
211187
table-button-background-color: $middle-gray,
212188
table-button-active-color: $lightest,
@@ -249,7 +225,6 @@ $themes: (
249225
logo-background-color: $darker,
250226
heavy-text-color: $yellow,
251227
primary-text-color: $lightest,
252-
dropzone-text-color: $black,
253228
modal-button-color: $dark,
254229
secondary-text-color: $lighter,
255230
inactive-text-color: $light,
@@ -275,15 +250,10 @@ $themes: (
275250
console-background-color: $dark,
276251
console-input-background-color: $darker,
277252
console-color: $lightest,
278-
console-logged-times-color: $darker,
279253
console-arrow-color: $lightest,
280254
console-active-arrow-color: $dodgerblue,
281255
console-header-background-color: $medium-dark,
282256
console-header-color: $lightest,
283-
console-info-background-color: $lightsteelblue,
284-
console-warn-background-color: $orange,
285-
console-debug-background-color: $dodgerblue,
286-
console-error-background-color: $red,
287257
ide-border-color: $middle-dark,
288258
editor-gutter-color: $darker,
289259
file-hover-color: $dark,
@@ -307,9 +277,6 @@ $themes: (
307277
codefold-icon-open: url("../images/triangle-arrow-down-white.svg?byUrl"),
308278
codefold-icon-closed: url("../images/triangle-arrow-right-white.svg?byUrl"),
309279

310-
primary-button-color: $lightest,
311-
primary-button-background-color: $p5js-pink,
312-
313280
table-button-color: $dark,
314281
table-button-background-color: $middle-gray,
315282
table-button-active-color: $dark,
@@ -352,13 +319,3 @@ $themes: (
352319
$toast-background-color: $medium-dark;
353320
$toast-text-color: $lightest;
354321

355-
$light-console-error-color: #D11518;
356-
$light-console-warn-color: #FAAF00;
357-
$light-console-debug-color: #0071AD;
358-
359-
$dark-console-error-color: #DF3A3D;
360-
$dark-console-warn-color: #F5BC38;
361-
$dark-console-debug-color: #0C99E2;
362-
363-
$about-play-background-color: rgba(255, 255, 255, 0.7);
364-
$about-button-border-color: rgba(151, 151, 151, 0.7);

client/styles/components/_about.scss

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,6 @@
66
}
77
}
88

9-
// hello p5 video link button css
10-
11-
// .about__play-video {
12-
// padding-top: #{9 / $base-font-size}rem;
13-
// padding-left: #{5 / $base-font-size}rem;
14-
// }
15-
16-
// .about__play-video-button {
17-
// @include themify() {
18-
// @extend %toolbar-button;
19-
// width: #{32 / $base-font-size}rem;
20-
// height: #{32 / $base-font-size}rem;
21-
// line-height: #{34 / $base-font-size}rem;
22-
// border-radius: #{24 / $base-font-size}rem;
23-
// background-color: $about-play-background-color;
24-
// border: solid 0.5px $about-button-border-color;
25-
// &:hover {
26-
// border-color: getThemifyVariable('button-background-hover-color');
27-
// }
28-
// }
29-
// padding-left: 2px;
30-
// margin-right: #{9 / $base-font-size}rem;
31-
// svg {
32-
// width: #{11 / $base-font-size}rem;
33-
// height: #{11 / $base-font-size}rem;
34-
// margin-left: #{1 / $base-font-size}rem;
35-
// }
36-
// }
37-
389
.about__content {
3910
display: flex;
4011
flex-direction: row;
@@ -105,12 +76,3 @@
10576
.about__footer-list {
10677
padding-top: #{12 / $base-font-size}rem;
10778
}
108-
109-
.about__ok-button {
110-
@include themify() {
111-
@extend %button;
112-
padding: #{7 / $base-font-size}rem #{13 / $base-font-size}rem;
113-
font-size: #{16 / $base-font-size}rem;
114-
border: #{0.5 / $base-font-size}rem solid $toast-background-color;
115-
}
116-
}

client/styles/components/_collection-popover.scss

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

client/styles/components/_collection.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
.collection-add-sketch {
8888
min-width: #{600 / $base-font-size}rem;
89-
overflow: scroll;
89+
overflow: auto;
9090
}
9191

9292
.collection-share {

client/styles/components/_console.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
font-weight: normal;
3535
}
3636

37-
.preview-console__icon {
38-
padding-right: #{20 / $base-font-size}rem;
39-
}
40-
4137
.preview-console__messages {
4238
display: flex;
4339
flex: 1;

client/styles/components/_copyable-input.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
position: relative;
33
}
44

5-
.copyable-input__tooltip {
6-
position: absolute;
7-
top: 0;
8-
left: 0;
9-
bottom: 0;
10-
right: 0;
11-
}
12-
135
.copyable-input__value {
146
width: 100%;
157
font-size: #{16 / $base-font-size}rem;

0 commit comments

Comments
 (0)