Skip to content

Commit ed88fd6

Browse files
authored
Merge branch 'develop' into piyush/fix-semantic-HTML
2 parents e24f5f9 + 6086513 commit ed88fd6

File tree

7 files changed

+7
-52
lines changed

7 files changed

+7
-52
lines changed

client/modules/IDE/pages/IDEView.jsx

-32
Original file line numberDiff line numberDiff line change
@@ -87,37 +87,6 @@ function WarnIfUnsavedChanges() {
8787
);
8888
}
8989

90-
function Banner() {
91-
// temporary banner to display funding opportunities
92-
const [textObj, setTextObj] = useState({});
93-
94-
useEffect(() => {
95-
const grant1 = {
96-
copy:
97-
'Learn to make art with AI with the Social Software High School Summer Institute. Apply by June 1!',
98-
url: 'https://summer.ucla.edu/program/social-software-summer-institute/'
99-
};
100-
101-
const grant2 = {
102-
copy:
103-
'Join us in contributing to p5.js——receive a $10,000 opportunity to grow within the contributor community!',
104-
url: 'https://processingfoundation.org/grants'
105-
};
106-
107-
const allMessages = [grant1, grant2];
108-
const randomIndex = Math.floor(Math.random() * allMessages.length);
109-
const randomMessage = allMessages[randomIndex];
110-
111-
setTextObj(randomMessage);
112-
}, []);
113-
114-
return (
115-
<div className="banner">
116-
<a href={textObj.url}>{textObj.copy}</a>
117-
</div>
118-
);
119-
}
120-
12190
export const CmControllerContext = React.createContext({});
12291

12392
const IDEView = () => {
@@ -201,7 +170,6 @@ const IDEView = () => {
201170
<Helmet>
202171
<title>{getTitle(project)}</title>
203172
</Helmet>
204-
<Banner />
205173
<IDEKeyHandlers getContent={() => cmRef.current?.getContent()} />
206174
<WarnIfUnsavedChanges />
207175
<Toast />

client/styles/layout/_ide.scss

-13
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@
1616
width: 100%;
1717
}
1818

19-
.banner {
20-
width: 100%;
21-
min-height: 2.2rem;
22-
text-align: center;
23-
padding: 0.5rem;
24-
font-weight: bold;
25-
border-bottom: 1px dashed #A6A6A6;
26-
27-
@media (max-width: 770px) {
28-
min-height: 3.3rem;
29-
}
30-
}
31-
3219
.sidebar {
3320
width: 100%;
3421
height: 100%;

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p5.js-web-editor",
3-
"version": "2.12.12",
3+
"version": "2.12.13",
44
"description": "The web editor for p5.js.",
55
"scripts": {
66
"clean": "rimraf dist",

server/domain-objects/createDefaultFiles.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ function draw() {
99
export const defaultHTML = `<!DOCTYPE html>
1010
<html lang="en">
1111
<head>
12-
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.3/p5.js"></script>
13-
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.3/addons/p5.sound.min.js"></script>
12+
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.4/p5.js"></script>
13+
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.4/addons/p5.sound.min.js"></script>
1414
<link rel="stylesheet" type="text/css" href="style.css">
1515
<meta charset="utf-8" />
1616

translations/locales/hi/translations.json

-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
"PrivacyPolicy": "गोपनीयता नीति",
110110
"TermsOfUse": "उपयोग की शर्तें",
111111
"CodeOfConduct": "आचार संहिता"
112-
"WebEditor": "वेब एडिटर"
113112
},
114113
"Toast": {
115114
"OpenedNewSketch": "नया स्केच खोला",

translations/locales/ja/translations.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@
358358
"Description": "ユーザー登録",
359359
"Or": "もしくは",
360360
"AlreadyHave": "既にアカウントをお持ちですか?",
361-
"Login": "ログイン"
361+
"Login": "ログイン",
362+
"Warning": "アカウント作成をすると、p5.js エディターの <0>利用規約</0> と <1>プライバシー ポリシー</1> に同意したことになります。"
362363
},
363364
"EmailVerificationView": {
364365
"Title": "p5.js ウェブエディター | メールアドレス認証",

0 commit comments

Comments
 (0)