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
b993b274
Commit
b993b274
authored
Dec 13, 2018
by
Eric Rosenbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename function and prop
parent
c1e5b05a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/views/ideas/ideas.jsx
src/views/ideas/ideas.jsx
+4
-4
src/views/ideas/ttt.json
src/views/ideas/ttt.json
+6
-6
No files found.
src/views/ideas/ideas.jsx
View file @
b993b274
...
...
@@ -25,7 +25,7 @@ class Ideas extends React.Component {
bindAll
(
this
,
[
'
handleShowTTTModal
'
,
'
handleHideTTTModal
'
,
'
renderT
TTT
iles
'
'
renderTiles
'
]);
this
.
state
=
{
currentTile
:
Tiles
[
0
],
...
...
@@ -44,10 +44,10 @@ class Ideas extends React.Component {
TTTModalOpen
:
false
});
}
renderT
TTT
iles
()
{
renderTiles
()
{
return
Tiles
.
map
((
tile
,
key
)
=>
{
const
translatedTile
=
{
tutorialUrl
:
`/projects/editor/?tutorial=
${
tile
.
tutorial
Id
}
`
,
tutorialUrl
:
`/projects/editor/?tutorial=
${
tile
.
tutorial
Url
}
`
,
modalImage
:
tile
.
modalImage
,
description
:
this
.
props
.
intl
.
formatMessage
({
id
:
tile
.
description
}),
guideUrl
:
this
.
props
.
intl
.
formatMessage
({
id
:
tile
.
guideUrl
}),
...
...
@@ -123,7 +123,7 @@ class Ideas extends React.Component {
</
p
>
</
div
>
<
MasonryGrid
>
{
this
.
renderT
TTT
iles
()
}
{
this
.
renderTiles
()
}
</
MasonryGrid
>
<
TTTModal
isOpen=
{
this
.
state
.
TTTModalOpen
}
...
...
src/views/ideas/ttt.json
View file @
b993b274
...
...
@@ -4,7 +4,7 @@
"description"
:
"ideas.animateANameDescription"
,
"thumbImage"
:
"/images/ideas/activities/animate-a-name-thumb.jpg"
,
"modalImage"
:
"/images/ideas/activities/animate-a-name-modal.jpg"
,
"tutorial
Id
"
:
"name"
,
"tutorial
Url
"
:
"name"
,
"cardsUrl"
:
"cards.nameCardsLink"
,
"guideUrl"
:
"guides.nameGuideLink"
},
...
...
@@ -13,7 +13,7 @@
"description"
:
"ideas.animateACharacterDescription"
,
"thumbImage"
:
"/images/ideas/activities/animate-a-character-thumb.jpg"
,
"modalImage"
:
"/images/ideas/activities/animate-a-character-modal.jpg"
,
"tutorial
Id
"
:
"animate-a-character"
,
"tutorial
Url
"
:
"animate-a-character"
,
"cardsUrl"
:
"cards.animateCardsLink"
,
"guideUrl"
:
"guides.animateGuideLink"
},
...
...
@@ -22,7 +22,7 @@
"description"
:
"ideas.makeMusicDescription"
,
"thumbImage"
:
"/images/ideas/activities/make-music-thumb.jpg"
,
"modalImage"
:
"/images/ideas/activities/make-music-modal.jpg"
,
"tutorial
Id
"
:
"music"
,
"tutorial
Url
"
:
"music"
,
"cardsUrl"
:
"cards.musicCardsLink"
,
"guideUrl"
:
"guides.musicGuideLink"
},
...
...
@@ -31,7 +31,7 @@
"description"
:
"ideas.createAStoryDescription"
,
"thumbImage"
:
"/images/ideas/activities/create-a-story-thumb.jpg"
,
"modalImage"
:
"/images/ideas/activities/create-a-story-modal.jpg"
,
"tutorial
Id
"
:
"tell-a-story"
,
"tutorial
Url
"
:
"tell-a-story"
,
"cardsUrl"
:
"cards.storyCardsLink"
,
"guideUrl"
:
"guides.storyGuideLink"
},
...
...
@@ -40,7 +40,7 @@
"description"
:
"ideas.chaseGameDescription"
,
"thumbImage"
:
"/images/ideas/activities/chase-game-thumb.jpg"
,
"modalImage"
:
"/images/ideas/activities/chase-game-modal.jpg"
,
"tutorial
Id
"
:
"chase-game"
,
"tutorial
Url
"
:
"chase-game"
,
"cardsUrl"
:
"cards.chaseCardsLink"
,
"guideUrl"
:
"guides.chaseGuideLink"
},
...
...
@@ -49,7 +49,7 @@
"description"
:
"ideas.videoSensingDescription"
,
"thumbImage"
:
"/images/ideas/activities/video-sensing-thumb.jpg"
,
"modalImage"
:
"/images/ideas/activities/video-sensing-modal.jpg"
,
"tutorial
Id
"
:
"video-sensing"
,
"tutorial
Url
"
:
"video-sensing"
,
"cardsUrl"
:
"cards.videoCardsLink"
,
"guideUrl"
:
"guides.videoGuideLink"
}
...
...
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