From e00959a885d07b884cff5c6cb4908eb8c8ed3ad2 Mon Sep 17 00:00:00 2001 From: Darredevil Date: Thu, 26 Jun 2014 02:09:25 +0300 Subject: [PATCH 1/2] Added joke tip --- app/templates/play/level/level_loading.jade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/play/level/level_loading.jade b/app/templates/play/level/level_loading.jade index 9cfc3622d..89e652a00 100644 --- a/app/templates/play/level/level_loading.jade +++ b/app/templates/play/level/level_loading.jade @@ -25,6 +25,7 @@ strong.tip(data-i18n='play_level.tip_impossible') It always seems impossible until it's done. - Nelson Mandela strong.tip.rare(data-i18n='play_level.tip_baby_coders') In the future, even babies will be Archmages. + strong.tip.rare(data-i18n='play_level.tip_joke') Q: How many programmers does it take to change a light bulb? A: None, it's a hardware problem. strong.tip.rare(data-i18n='play_level.tip_morale_improves') Loading will continue until morale improves. strong.tip.rare(data-i18n='play_level.tip_all_species') We believe in equal opportunities to learn programming for all species. strong.tip.rare(data-i18n='play_level.tip_reticulating') Reticulating spines. @@ -42,4 +43,4 @@ span= me.get('name') || 'Anoner' .errors - \ No newline at end of file + From 4309bfbe672bac3f4289812d8ec6aba5cff8f709 Mon Sep 17 00:00:00 2001 From: Darredevil Date: Wed, 9 Jul 2014 23:01:53 +0300 Subject: [PATCH 2/2] new Documentation page --- app/styles/docs/components.sass | 30 ++++++++++++++++++++++++++- app/templates/docs/components.jade | 23 +++++++++++++++++--- app/views/docs/components_view.coffee | 1 + 3 files changed, 50 insertions(+), 4 deletions(-) diff --git a/app/styles/docs/components.sass b/app/styles/docs/components.sass index 177b11a39..63146250d 100644 --- a/app/styles/docs/components.sass +++ b/app/styles/docs/components.sass @@ -1,2 +1,30 @@ #docs-components-view - color: saddlebrown \ No newline at end of file + color: saddlebrown + +.main + position : relative + + .left + bottom: 10em + left: 10em + overflow-y: scroll + overflow-x: hidden + position: fixed + top: 5em + white-space: nowrap + width: 20% + -webkit-overflow-scrolling: touch + + .right + left: 28em + bottom: 10em + position: fixed + overflow-y: scroll + overflow-x: hidden + right: 10em + top: 5em + //width: 80% + -webkit-overflow-scrolling: touch + + .specialList + list-style-type: none \ No newline at end of file diff --git a/app/templates/docs/components.jade b/app/templates/docs/components.jade index 20c3afb27..ceb0b5d72 100644 --- a/app/templates/docs/components.jade +++ b/app/templates/docs/components.jade @@ -1,6 +1,23 @@ extends /templates/base + block content - ul - for component in components - li= component.get('name') \ No newline at end of file + div.main + div.left + ul + for component in components + li= component.get('name') + ul + each doc in component.attributes.propertyDocumentation + a(href="##{component.get('name')}#{doc.name}") + li + | #{doc.name} + + div.right + ul + for component in components + each doc in component.attributes.propertyDocumentation + li(id="#{component.get('name')}#{doc.name}") + | #{doc.name} + ul.specialList + li=doc.description diff --git a/app/views/docs/components_view.coffee b/app/views/docs/components_view.coffee index f80decee3..14f942e44 100644 --- a/app/views/docs/components_view.coffee +++ b/app/views/docs/components_view.coffee @@ -18,6 +18,7 @@ module.exports = class UnnamedView extends RootView onLoaded: -> console.log 'we have the components...', (c.get('name') for c in @componentDocs.models) + console.log 'we have the attributes...', (c.attributes for c in @componentDocs.models) super() getRenderData: ->