Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
194dc906
Commit
194dc906
authored
Nov 14, 2018
by
Paul Kaplan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing extensions and images
parent
476578cf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
12 deletions
+53
-12
src/lib/extensions.js
src/lib/extensions.js
+12
-9
src/views/preview/l10n.json
src/views/preview/l10n.json
+2
-2
src/views/preview/preview.jsx
src/views/preview/preview.jsx
+4
-1
static/svgs/project/extension-ev3.svg
static/svgs/project/extension-ev3.svg
+23
-0
static/svgs/project/extension-text2speech.svg
static/svgs/project/extension-text2speech.svg
+12
-0
No files found.
src/lib/extensions.js
View file @
194dc906
...
...
@@ -12,24 +12,27 @@ const EXTENSION_INFO = {
l10nId
:
'
project.penExtensionChip
'
,
icon
:
'
extension-pen.svg
'
},
speak
:
{
name
:
'
Amazon Polly
'
videoSensing
:
{
l10nId
:
'
project.videoMotionChip
'
,
icon
:
'
extension-videosensing.svg
'
},
speech
:
{
l10nId
:
'
project.speechExtensionChip
'
text2speech
:
{
l10nId
:
'
project.text2SpeechChip
'
,
icon
:
'
extension-text2speech.svg
'
},
translate
:
{
l10nId
:
'
project.translate
Extension
Chip
'
,
l10nId
:
'
project.translateChip
'
,
icon
:
'
extension-translate.svg
'
},
videoSensing
:
{
l10nId
:
'
project.videoMotionChip
'
,
icon
:
'
extension-videomotion.svg
'
},
wedo2
:
{
name
:
'
LEGO WeDo 2.0
'
,
icon
:
'
extension-wedo2.svg
'
,
hasStatus
:
true
},
ev3
:
{
name
:
'
LEGO MINDSTORMS EV3
'
,
icon
:
'
extension-ev3.svg
'
,
hasStatus
:
true
}
};
...
...
src/views/preview/l10n.json
View file @
194dc906
...
...
@@ -5,8 +5,8 @@
"project.titleMaxLength"
:
"Title is too long"
,
"project.musicExtensionChip"
:
"Music"
,
"project.penExtensionChip"
:
"Pen"
,
"project.
speechExtensionChip"
:
"Google
Speech"
,
"project.translate
ExtensionChip"
:
"Google
Translate"
,
"project.
text2SpeechChip"
:
"Text to
Speech"
,
"project.translate
Chip"
:
"
Translate"
,
"project.videoMotionChip"
:
"Video Motion"
,
"project.needsConnection"
:
"Needs Connection"
,
"project.comments.header"
:
"Comments"
,
...
...
src/views/preview/preview.jsx
View file @
194dc906
...
...
@@ -194,7 +194,10 @@ class Preview extends React.Component {
const
extensionSet
=
new
Set
();
if
(
projectData
[
0
].
extensions
)
{
projectData
[
0
].
extensions
.
forEach
(
extension
=>
{
extensionSet
.
add
(
EXTENSION_INFO
[
extension
]);
const
extensionInfo
=
EXTENSION_INFO
[
extension
];
if
(
extensionInfo
)
{
extensionSet
.
add
(
extensionInfo
);
}
});
}
this
.
setState
({
...
...
static/svgs/project/extension-ev3.svg
0 → 100644
View file @
194dc906
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"40px"
height=
"40px"
viewBox=
"0 0 40 40"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
<title>
ev3-block-icon
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"ev3-block-icon"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"ev3"
transform=
"translate(5.500000, 3.500000)"
fill-rule=
"nonzero"
>
<rect
id=
"Rectangle-path"
stroke=
"#7C87A5"
fill=
"#FFFFFF"
stroke-linecap=
"round"
stroke-linejoin=
"round"
x=
"0.5"
y=
"3.59"
width=
"28"
height=
"25.81"
rx=
"1"
></rect>
<rect
id=
"Rectangle-path"
stroke=
"#7C87A5"
fill=
"#E6E7E8"
stroke-linecap=
"round"
stroke-linejoin=
"round"
x=
"2.5"
y=
"0.5"
width=
"24"
height=
"32"
rx=
"1"
></rect>
<rect
id=
"Rectangle-path"
stroke=
"#7C87A5"
fill=
"#FFFFFF"
stroke-linecap=
"round"
stroke-linejoin=
"round"
x=
"2.5"
y=
"14.5"
width=
"24"
height=
"13"
></rect>
<path
d=
"M14.5,10.5 L14.5,14.5"
id=
"Shape"
stroke=
"#7C87A5"
fill=
"#E6E7E8"
stroke-linecap=
"round"
stroke-linejoin=
"round"
></path>
<rect
id=
"Rectangle-path"
fill=
"#414757"
x=
"4.5"
y=
"2.5"
width=
"20"
height=
"10"
rx=
"1"
></rect>
<rect
id=
"Rectangle-path"
fill=
"#7C87A5"
opacity=
"0.5"
x=
"13.5"
y=
"20.13"
width=
"2"
height=
"2"
rx=
"0.5"
></rect>
<path
d=
"M9.06,20.13 L10.56,20.13 C10.8361424,20.13 11.06,20.3538576 11.06,20.63 L11.06,21.63 C11.06,21.9061424 10.8361424,22.13 10.56,22.13 L9.06,22.13 C8.50771525,22.13 8.06,21.6822847 8.06,21.13 C8.06,20.5777153 8.50771525,20.13 9.06,20.13 Z"
id=
"Shape"
fill=
"#7C87A5"
opacity=
"0.5"
></path>
<path
d=
"M18.91,20.13 L20.42,20.13 C20.6961424,20.13 20.92,20.3538576 20.92,20.63 L20.92,21.63 C20.92,21.9061424 20.6961424,22.13 20.42,22.13 L18.92,22.13 C18.3677153,22.13 17.92,21.6822847 17.92,21.13 C17.9199726,20.581597 18.3616245,20.135484 18.91,20.13 Z"
id=
"Shape"
fill=
"#7C87A5"
opacity=
"0.5"
transform=
"translate(19.420000, 21.130000) rotate(-180.000000) translate(-19.420000, -21.130000) "
></path>
<path
d=
"M8.23,17.5 L5,17.5 C4.72385763,17.5 4.5,17.2761424 4.5,17 L4.5,14.5 L10.5,14.5 L8.65,17.28 C8.55466961,17.4179082 8.39765006,17.5001566 8.23,17.5 Z"
id=
"Shape"
fill=
"#7C87A5"
opacity=
"0.5"
></path>
<path
d=
"M18.15,18.85 L17.65,19.35 C17.5523416,19.4440756 17.4980339,19.5744142 17.5,19.71 L17.5,20 C17.5,20.2761424 17.2761424,20.5 17,20.5 L16.5,20.5 C16.2238576,20.5 16,20.2761424 16,20 C16,19.7238576 15.7761424,19.5 15.5,19.5 L13.5,19.5 C13.2238576,19.5 13,19.7238576 13,20 C13,20.2761424 12.7761424,20.5 12.5,20.5 L12,20.5 C11.7238576,20.5 11.5,20.2761424 11.5,20 L11.5,19.71 C11.5019661,19.5744142 11.4476584,19.4440756 11.35,19.35 L10.85,18.85 C10.6582167,18.6521863 10.6582167,18.3378137 10.85,18.14 L12.36,16.65 C12.4502803,16.5528617 12.5773961,16.4983835 12.71,16.5 L16.29,16.5 C16.4226039,16.4983835 16.5497197,16.5528617 16.64,16.65 L18.15,18.14 C18.3417833,18.3378137 18.3417833,18.6521863 18.15,18.85 Z"
id=
"Shape"
fill=
"#7C87A5"
opacity=
"0.5"
></path>
<path
d=
"M10.85,23.45 L11.35,22.95 C11.4476584,22.8559244 11.5019661,22.7255858 11.5,22.59 L11.5,22.3 C11.5,22.0238576 11.7238576,21.8 12,21.8 L12.5,21.8 C12.7761424,21.8 13,22.0238576 13,22.3 C13,22.5761424 13.2238576,22.8 13.5,22.8 L15.5,22.8 C15.7761424,22.8 16,22.5761424 16,22.3 C16,22.0238576 16.2238576,21.8 16.5,21.8 L17,21.8 C17.2761424,21.8 17.5,22.0238576 17.5,22.3 L17.5,22.59 C17.4980339,22.7255858 17.5523416,22.8559244 17.65,22.95 L18.15,23.45 C18.3405714,23.6444218 18.3405714,23.9555782 18.15,24.15 L16.64,25.65 C16.5497197,25.7471383 16.4226039,25.8016165 16.29,25.8 L12.71,25.8 C12.5773961,25.8016165 12.4502803,25.7471383 12.36,25.65 L10.85,24.15 C10.6594286,23.9555782 10.6594286,23.6444218 10.85,23.45 Z"
id=
"Shape"
fill=
"#7C87A5"
opacity=
"0.5"
></path>
<path
d=
"M21.5,27.5 L26.5,27.5 L26.5,31.5 C26.5,32.0522847 26.0522847,32.5 25.5,32.5 L21.5,32.5 L21.5,27.5 Z"
id=
"Shape"
stroke=
"#CC4C23"
fill=
"#F15A29"
stroke-linecap=
"round"
stroke-linejoin=
"round"
></path>
</g>
</g>
</svg>
\ No newline at end of file
static/svgs/project/extension-text2speech.svg
0 → 100644
View file @
194dc906
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"40px"
height=
"40px"
viewBox=
"0 0 40 40"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch -->
<title>
Extensions/Software/Text-to-Speech-Block
</title>
<desc>
Created with Sketch.
</desc>
<g
id=
"Extensions/Software/Text-to-Speech-Block"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
stroke-opacity=
"0.15"
>
<g
id=
"text2speech"
transform=
"translate(4.000000, 4.000000)"
fill-rule=
"nonzero"
stroke=
"#000000"
>
<path
d=
"M11.5,17.6693435 C11.5,16.6539269 10.0060145,16.0844274 9.11256024,16.8883 L6.41256024,19.050714 C5.39346755,19.8668994 4.07497351,20.3317575 2.7,20.3317575 L2.3,20.3317575 C1.26519233,20.3317575 0.5,21.0212003 0.5,21.904071 L0.5,26.1387986 C0.5,27.0216693 1.26519233,27.711112 2.3,27.711112 L2.7,27.711112 C4.15755682,27.711112 5.45372322,28.1335271 6.51972098,28.998 L9.11840293,31.1593216 C10.0261855,31.9090793 11.5,31.3472689 11.5,30.2834255 L11.5,17.6693435 Z"
id=
"speaker"
fill=
"#4D4D4D"
></path>
<path
d=
"M21.6436066,16.5 C19.9770099,18.4370234 17.1050275,19.9285714 15.6666667,19.9285714 C15.5126397,19.9285714 15.3166292,19.895903 15.1097265,19.7924517 C14.7376039,19.6063904 14.5,19.2499846 14.5,18.7619048 C14.5,18.6568041 14.5170555,18.5545076 14.5494467,18.4540844 C14.6257545,18.2175063 15.1735721,17.467531 15.2772071,17.2809881 C15.5463526,16.7965261 15.739025,16.2063561 15.8432891,15.4160034 C13.1897005,13.9268369 11.5,11.1139668 11.5,8 C11.5,3.30557963 15.3055796,-0.5 20,-0.5 L24,-0.5 C28.6944204,-0.5 32.5,3.30557963 32.5,8 C32.5,12.6944204 28.6944204,16.5 24,16.5 L21.6436066,16.5 Z"
id=
"speech"
fill=
"#FFFFFF"
></path>
</g>
</g>
</svg>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment