mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-26 09:08:05 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
4dc863f3b3
43 changed files with 73 additions and 72 deletions
|
@ -10,7 +10,7 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
for_beginners: "Новичкам"
|
for_beginners: "Новичкам"
|
||||||
multiplayer: "Мультиплеер" # Not currently shown on home page
|
multiplayer: "Мультиплеер" # Not currently shown on home page
|
||||||
for_developers: "Разработчикам" # Not currently shown on home page.
|
for_developers: "Разработчикам" # Not currently shown on home page.
|
||||||
# or_ipad: "Or download for iPad"
|
or_ipad: "Или скачайте на iPad"
|
||||||
|
|
||||||
nav:
|
nav:
|
||||||
play: "Уровни" # The top nav bar entry where players choose which levels to play
|
play: "Уровни" # The top nav bar entry where players choose which levels to play
|
||||||
|
@ -56,7 +56,7 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
confirm: "Подтвердить"
|
confirm: "Подтвердить"
|
||||||
owned: "Уже есть" # For items you own
|
owned: "Уже есть" # For items you own
|
||||||
locked: "Заблокировано"
|
locked: "Заблокировано"
|
||||||
# purchasable: "Purchasable" # For a hero you unlocked but haven't purchased
|
purchasable: "Можно купить" # For a hero you unlocked but haven't purchased
|
||||||
available: "Доступно"
|
available: "Доступно"
|
||||||
skills_granted: "Умение получено" # Property documentation details
|
skills_granted: "Умение получено" # Property documentation details
|
||||||
heroes: "Герои" # Tooltip on hero shop button from /play
|
heroes: "Герои" # Tooltip on hero shop button from /play
|
||||||
|
@ -209,8 +209,8 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
failing: "Неудача"
|
failing: "Неудача"
|
||||||
action_timeline: "График действий"
|
action_timeline: "График действий"
|
||||||
click_to_select: "Выберите персонажа, щёлкнув на нём"
|
click_to_select: "Выберите персонажа, щёлкнув на нём"
|
||||||
# control_bar_multiplayer: "Multiplayer"
|
control_bar_multiplayer: "Мультиплеер"
|
||||||
# control_bar_join_game: "Join Game"
|
control_bar_join_game: "Присоединиться"
|
||||||
reload: "Перезагрузить"
|
reload: "Перезагрузить"
|
||||||
reload_title: "Перезагрузить код полностью?"
|
reload_title: "Перезагрузить код полностью?"
|
||||||
reload_really: "Вы уверены, что хотите начать уровень сначала?"
|
reload_really: "Вы уверены, что хотите начать уровень сначала?"
|
||||||
|
@ -247,7 +247,7 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
tome_select_a_thang: "Выбрать кого-нибудь для "
|
tome_select_a_thang: "Выбрать кого-нибудь для "
|
||||||
tome_available_spells: "Доступные заклинания"
|
tome_available_spells: "Доступные заклинания"
|
||||||
tome_your_skills: "Ваши навыки"
|
tome_your_skills: "Ваши навыки"
|
||||||
# tome_help: "Help"
|
tome_help: "Помощь"
|
||||||
tome_current_method: "Текущий метод"
|
tome_current_method: "Текущий метод"
|
||||||
hud_continue_short: "Продолжить"
|
hud_continue_short: "Продолжить"
|
||||||
code_saved: "Код сохранен"
|
code_saved: "Код сохранен"
|
||||||
|
@ -324,12 +324,12 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
few_gems: "Немного самоцветов"
|
few_gems: "Немного самоцветов"
|
||||||
pile_gems: "Кучка самоцветов"
|
pile_gems: "Кучка самоцветов"
|
||||||
chest_gems: "Сундук с самоцветами"
|
chest_gems: "Сундук с самоцветами"
|
||||||
# purchasing: "Purchasing..."
|
purchasing: "Покупка..."
|
||||||
# declined: "Your card was declined"
|
declined: "Ваша карта отклонена"
|
||||||
# retrying: "Server error, retrying."
|
retrying: "Ошибка сервера, пробуем еще раз."
|
||||||
# prompt_title: "Not Enough Gems"
|
prompt_title: "Не хватает самоцветов"
|
||||||
# prompt_body: "Do you want to get more?"
|
prompt_body: "Хотите еще?"
|
||||||
# prompt_button: "Enter Shop"
|
prompt_button: "Войти в магазин"
|
||||||
|
|
||||||
choose_hero:
|
choose_hero:
|
||||||
choose_hero: "Выберите героя"
|
choose_hero: "Выберите героя"
|
||||||
|
@ -355,9 +355,9 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
range: "Зона" # As in "attack or visual range"
|
range: "Зона" # As in "attack or visual range"
|
||||||
blocks: "Блокирует" # As in "this shield blocks this much damage"
|
blocks: "Блокирует" # As in "this shield blocks this much damage"
|
||||||
skills: "Умения"
|
skills: "Умения"
|
||||||
# available_for_purchase: "Available for Purchase"
|
available_for_purchase: "Доступно для покупки"
|
||||||
# level_to_unlock: "Level to unlock:"
|
# level_to_unlock: "Level to unlock:"
|
||||||
# restricted_to_certain_heroes: "Only certain heroes can play this level."
|
restricted_to_certain_heroes: "Только определенные герои могут играть этот уровень."
|
||||||
|
|
||||||
# skill_docs:
|
# skill_docs:
|
||||||
# writable: "writable" # Hover over "attack" in Your Skills while playing a level to see most of this
|
# writable: "writable" # Hover over "attack" in Your Skills while playing a level to see most of this
|
||||||
|
@ -410,9 +410,9 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
why_codecombat: "Почему CodeCombat?"
|
why_codecombat: "Почему CodeCombat?"
|
||||||
why_paragraph_1: "Нужно научиться программировать? Вам не нужны уроки. Вам нужно написать много кода и прекрасно провести время, делая это."
|
why_paragraph_1: "Нужно научиться программировать? Вам не нужны уроки. Вам нужно написать много кода и прекрасно провести время, делая это."
|
||||||
why_paragraph_2_prefix: "Вот где программирование. Это должно быть весело. Не забавно, вроде"
|
why_paragraph_2_prefix: "Вот где программирование. Это должно быть весело. Не забавно, вроде"
|
||||||
why_paragraph_2_italic: "вау, значок,"
|
why_paragraph_2_italic: "\"вау, значок\","
|
||||||
why_paragraph_2_center: "а"
|
why_paragraph_2_center: "а"
|
||||||
why_paragraph_2_italic_caps: "НЕТ, МАМ, Я ДОЛЖЕН ПРОЙТИ УРОВЕНЬ!"
|
why_paragraph_2_italic_caps: "\"НЕТ, МАМ, Я ДОЛЖЕН ПРОЙТИ УРОВЕНЬ!\""
|
||||||
why_paragraph_2_suffix: "Вот, почему CodeCombat - мультиплеерная игра, а не курс уроков в игровой форме. Мы не остановимся, пока вы не потеряете голову - в данном случае, это хорошо."
|
why_paragraph_2_suffix: "Вот, почему CodeCombat - мультиплеерная игра, а не курс уроков в игровой форме. Мы не остановимся, пока вы не потеряете голову - в данном случае, это хорошо."
|
||||||
why_paragraph_3: "Если вы собираетесь увлечься какой-нибудь игрой, увлекитесь этой и станьте одним из волшебников века информационных технологий."
|
why_paragraph_3: "Если вы собираетесь увлечься какой-нибудь игрой, увлекитесь этой и станьте одним из волшебников века информационных технологий."
|
||||||
press_title: "Блогерам/Прессе"
|
press_title: "Блогерам/Прессе"
|
||||||
|
@ -777,8 +777,8 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
amount_achieved: "Количество"
|
amount_achieved: "Количество"
|
||||||
achievement: "Достижение"
|
achievement: "Достижение"
|
||||||
category_contributor: "Помощь"
|
category_contributor: "Помощь"
|
||||||
# category_ladder: "Ladder"
|
category_ladder: "Ладдер"
|
||||||
# category_level: "Level"
|
category_level: "Уровень"
|
||||||
category_miscellaneous: "Помощь"
|
category_miscellaneous: "Помощь"
|
||||||
category_levels: "Уровни"
|
category_levels: "Уровни"
|
||||||
category_undefined: "Неопределено"
|
category_undefined: "Неопределено"
|
||||||
|
@ -850,7 +850,7 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
|
||||||
# candidates: "Candidates"
|
# candidates: "Candidates"
|
||||||
# candidate_sessions: "Candidate Sessions"
|
# candidate_sessions: "Candidate Sessions"
|
||||||
user_remark: "Пользовательские поправки"
|
user_remark: "Пользовательские поправки"
|
||||||
# user_remarks: "User Remarks"
|
user_remarks: "Пользовательские поправки"
|
||||||
versions: "Версии"
|
versions: "Версии"
|
||||||
items: "Предметы"
|
items: "Предметы"
|
||||||
heroes: "Герои"
|
heroes: "Герои"
|
||||||
|
|
|
@ -82,4 +82,4 @@ block modal-footer
|
||||||
div.network-login
|
div.network-login
|
||||||
.gplus-login-button#gplus-login-button
|
.gplus-login-button#gplus-login-button
|
||||||
div#recover-account-wrapper
|
div#recover-account-wrapper
|
||||||
a(data-toggle="coco-modal", data-target="modal/RecoverModal", data-i18n="login.recover")#link-to-recover recover account
|
a(data-toggle="coco-modal", data-target="core/RecoverModal", data-i18n="login.recover")#link-to-recover recover account
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends /templates/modal/new_model
|
extends /templates/editor/modal/new-model-modal
|
||||||
|
|
||||||
block modal-body-content
|
block modal-body-content
|
||||||
form.form
|
form.form
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends /templates/modal/save_version
|
extends /templates/editor/modal/save-version-modal
|
||||||
|
|
||||||
block modal-body-content
|
block modal-body-content
|
||||||
h3= "Level: " + level.get('name') + " - " + (levelNeedsSave ? "Modified" : "Not Modified")
|
h3= "Level: " + level.get('name') + " - " + (levelNeedsSave ? "Modified" : "Not Modified")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
RootView = require 'views/core/RootView'
|
RootView = require 'views/core/RootView'
|
||||||
NewModelModal = require 'views/modal/NewModelModal'
|
NewModelModal = require 'views/editor/modal/NewModelModal'
|
||||||
template = require 'templates/common/search'
|
template = require 'templates/common/search-view'
|
||||||
app = require 'core/application'
|
app = require 'core/application'
|
||||||
|
|
||||||
class SearchCollection extends Backbone.Collection
|
class SearchCollection extends Backbone.Collection
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
ModalView = require 'views/core/ModalView'
|
ModalView = require 'views/core/ModalView'
|
||||||
template = require 'templates/modal/recover'
|
template = require 'templates/core/recover-modal'
|
||||||
forms = require 'core/forms'
|
forms = require 'core/forms'
|
||||||
{genericFailure} = require 'core/errors'
|
{genericFailure} = require 'core/errors'
|
||||||
|
|
|
@ -2,7 +2,7 @@ RootView = require 'views/core/RootView'
|
||||||
template = require 'templates/editor/achievement/edit'
|
template = require 'templates/editor/achievement/edit'
|
||||||
Achievement = require 'models/Achievement'
|
Achievement = require 'models/Achievement'
|
||||||
AchievementPopup = require 'views/core/AchievementPopup'
|
AchievementPopup = require 'views/core/AchievementPopup'
|
||||||
ConfirmModal = require 'views/modal/ConfirmModal'
|
ConfirmModal = require 'views/editor/modal/ConfirmModal'
|
||||||
errors = require 'core/errors'
|
errors = require 'core/errors'
|
||||||
app = require 'core/application'
|
app = require 'core/application'
|
||||||
nodes = require 'views/editor/level/treema_nodes'
|
nodes = require 'views/editor/level/treema_nodes'
|
||||||
|
|
|
@ -2,7 +2,7 @@ RootView = require 'views/core/RootView'
|
||||||
VersionHistoryView = require './ArticleVersionsModal'
|
VersionHistoryView = require './ArticleVersionsModal'
|
||||||
template = require 'templates/editor/article/edit'
|
template = require 'templates/editor/article/edit'
|
||||||
Article = require 'models/Article'
|
Article = require 'models/Article'
|
||||||
SaveVersionModal = require 'views/modal/SaveVersionModal'
|
SaveVersionModal = require 'views/editor/modal/SaveVersionModal'
|
||||||
PatchesView = require 'views/editor/PatchesView'
|
PatchesView = require 'views/editor/PatchesView'
|
||||||
require 'views/modal/RevertModal'
|
require 'views/modal/RevertModal'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VersionsModal = require 'views/modal/VersionsModal'
|
VersionsModal = require 'views/editor/modal/VersionsModal'
|
||||||
|
|
||||||
module.exports = class ArticleVersionsModal extends VersionsModal
|
module.exports = class ArticleVersionsModal extends VersionsModal
|
||||||
id: 'editor-article-versions-view'
|
id: 'editor-article-versions-view'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VersionsModal = require 'views/modal/VersionsModal'
|
VersionsModal = require 'views/editor/modal/VersionsModal'
|
||||||
|
|
||||||
module.exports = class ComponentVersionsModal extends VersionsModal
|
module.exports = class ComponentVersionsModal extends VersionsModal
|
||||||
id: 'editor-component-versions-view'
|
id: 'editor-component-versions-view'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
CocoView = require 'views/core/CocoView'
|
CocoView = require 'views/core/CocoView'
|
||||||
template = require 'templates/docs/components-documentation-view'
|
template = require 'templates/editor/docs/components-documentation-view'
|
||||||
CocoCollection = require 'collections/CocoCollection'
|
CocoCollection = require 'collections/CocoCollection'
|
||||||
LevelComponent = require 'models/LevelComponent'
|
LevelComponent = require 'models/LevelComponent'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
CocoView = require 'views/core/CocoView'
|
CocoView = require 'views/core/CocoView'
|
||||||
template = require 'templates/docs/systems-documentation-view'
|
template = require 'templates/editor/docs/systems-documentation-view'
|
||||||
CocoCollection = require 'collections/CocoCollection'
|
CocoCollection = require 'collections/CocoCollection'
|
||||||
LevelSystem = require 'models/LevelSystem'
|
LevelSystem = require 'models/LevelSystem'
|
||||||
|
|
|
@ -17,12 +17,12 @@ ComponentsTabView = require './components/ComponentsTabView'
|
||||||
SystemsTabView = require './systems/SystemsTabView'
|
SystemsTabView = require './systems/SystemsTabView'
|
||||||
SaveLevelModal = require './modals/SaveLevelModal'
|
SaveLevelModal = require './modals/SaveLevelModal'
|
||||||
ForkModal = require 'views/editor/ForkModal'
|
ForkModal = require 'views/editor/ForkModal'
|
||||||
SaveVersionModal = require 'views/modal/SaveVersionModal'
|
SaveVersionModal = require 'views/editor/modal/SaveVersionModal'
|
||||||
PatchesView = require 'views/editor/PatchesView'
|
PatchesView = require 'views/editor/PatchesView'
|
||||||
RelatedAchievementsView = require 'views/editor/level/RelatedAchievementsView'
|
RelatedAchievementsView = require 'views/editor/level/RelatedAchievementsView'
|
||||||
VersionHistoryView = require './modals/LevelVersionsModal'
|
VersionHistoryView = require './modals/LevelVersionsModal'
|
||||||
ComponentsDocumentationView = require 'views/docs/ComponentsDocumentationView'
|
ComponentsDocumentationView = require 'views/editor/docs/ComponentsDocumentationView'
|
||||||
SystemsDocumentationView = require 'views/docs/SystemsDocumentationView'
|
SystemsDocumentationView = require 'views/editor/docs/SystemsDocumentationView'
|
||||||
LevelFeedbackView = require 'views/editor/level/LevelFeedbackView'
|
LevelFeedbackView = require 'views/editor/level/LevelFeedbackView'
|
||||||
storage = require 'core/storage'
|
storage = require 'core/storage'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ template = require 'templates/editor/level/component/level-component-edit-view'
|
||||||
LevelComponent = require 'models/LevelComponent'
|
LevelComponent = require 'models/LevelComponent'
|
||||||
ComponentVersionsModal = require 'views/editor/component/ComponentVersionsModal'
|
ComponentVersionsModal = require 'views/editor/component/ComponentVersionsModal'
|
||||||
PatchesView = require 'views/editor/PatchesView'
|
PatchesView = require 'views/editor/PatchesView'
|
||||||
SaveVersionModal = require 'views/modal/SaveVersionModal'
|
SaveVersionModal = require 'views/editor/modal/SaveVersionModal'
|
||||||
|
|
||||||
module.exports = class LevelComponentEditView extends CocoView
|
module.exports = class LevelComponentEditView extends CocoView
|
||||||
id: 'level-component-edit-view'
|
id: 'level-component-edit-view'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VersionsModal = require 'views/modal/VersionsModal'
|
VersionsModal = require 'views/editor/modal/VersionsModal'
|
||||||
|
|
||||||
module.exports = class LevelVersionsModal extends VersionsModal
|
module.exports = class LevelVersionsModal extends VersionsModal
|
||||||
id: 'editor-level-versions-view'
|
id: 'editor-level-versions-view'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
NewModelModal = require 'views/modal/NewModelModal'
|
NewModelModal = require 'views/editor/modal/NewModelModal'
|
||||||
template = require 'templates/editor/level/modal/new-achievement'
|
template = require 'templates/editor/level/modal/new-achievement'
|
||||||
forms = require 'core/forms'
|
forms = require 'core/forms'
|
||||||
Achievement = require 'models/Achievement'
|
Achievement = require 'models/Achievement'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
SaveVersionModal = require 'views/modal/SaveVersionModal'
|
SaveVersionModal = require 'views/editor/modal/SaveVersionModal'
|
||||||
template = require 'templates/editor/level/save'
|
template = require 'templates/editor/level/save'
|
||||||
forms = require 'core/forms'
|
forms = require 'core/forms'
|
||||||
LevelComponent = require 'models/LevelComponent'
|
LevelComponent = require 'models/LevelComponent'
|
||||||
|
|
|
@ -3,7 +3,7 @@ template = require 'templates/editor/level/system/level-system-edit-view'
|
||||||
LevelSystem = require 'models/LevelSystem'
|
LevelSystem = require 'models/LevelSystem'
|
||||||
SystemVersionsModal = require 'views/editor/level/systems/SystemVersionsModal'
|
SystemVersionsModal = require 'views/editor/level/systems/SystemVersionsModal'
|
||||||
PatchesView = require 'views/editor/PatchesView'
|
PatchesView = require 'views/editor/PatchesView'
|
||||||
SaveVersionModal = require 'views/modal/SaveVersionModal'
|
SaveVersionModal = require 'views/editor/modal/SaveVersionModal'
|
||||||
|
|
||||||
module.exports = class LevelSystemEditView extends CocoView
|
module.exports = class LevelSystemEditView extends CocoView
|
||||||
id: 'level-system-edit-view'
|
id: 'level-system-edit-view'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VersionsModal = require 'views/modal/VersionsModal'
|
VersionsModal = require 'views/editor/modal/VersionsModal'
|
||||||
|
|
||||||
module.exports = class SystemVersionsModal extends VersionsModal
|
module.exports = class SystemVersionsModal extends VersionsModal
|
||||||
id: 'editor-system-versions-view'
|
id: 'editor-system-versions-view'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
ModalView = require '../core/ModalView'
|
ModalView = require '../../core/ModalView'
|
||||||
template = require 'templates/modal/confirm'
|
template = require 'templates/editor/modal/confirm-modal'
|
||||||
|
|
||||||
module.exports = class ConfirmModal extends ModalView
|
module.exports = class ConfirmModal extends ModalView
|
||||||
id: 'confirm-modal'
|
id: 'confirm-modal'
|
|
@ -1,5 +1,5 @@
|
||||||
ModalView = require 'views/core/ModalView'
|
ModalView = require 'views/core/ModalView'
|
||||||
template = require 'templates/modal/new_model'
|
template = require 'templates/editor/modal/new-model-modal'
|
||||||
forms = require 'core/forms'
|
forms = require 'core/forms'
|
||||||
|
|
||||||
module.exports = class NewModelModal extends ModalView
|
module.exports = class NewModelModal extends ModalView
|
|
@ -1,5 +1,5 @@
|
||||||
ModalView = require 'views/core/ModalView'
|
ModalView = require 'views/core/ModalView'
|
||||||
template = require 'templates/modal/save_version'
|
template = require 'templates/editor/modal/save-version-modal'
|
||||||
DeltaView = require 'views/editor/DeltaView'
|
DeltaView = require 'views/editor/DeltaView'
|
||||||
Patch = require 'models/Patch'
|
Patch = require 'models/Patch'
|
||||||
forms = require 'core/forms'
|
forms = require 'core/forms'
|
|
@ -1,5 +1,5 @@
|
||||||
ModalView = require 'views/core/ModalView'
|
ModalView = require 'views/core/ModalView'
|
||||||
template = require 'templates/modal/versions'
|
template = require 'templates/editor/modal/versions-modal'
|
||||||
DeltaView = require 'views/editor/DeltaView'
|
DeltaView = require 'views/editor/DeltaView'
|
||||||
PatchModal = require 'views/editor/PatchModal'
|
PatchModal = require 'views/editor/PatchModal'
|
||||||
nameLoader = require 'core/NameLoader'
|
nameLoader = require 'core/NameLoader'
|
|
@ -16,7 +16,7 @@ ThangTypeColorsTabView = require './ThangTypeColorsTabView'
|
||||||
PatchesView = require 'views/editor/PatchesView'
|
PatchesView = require 'views/editor/PatchesView'
|
||||||
ForkModal = require 'views/editor/ForkModal'
|
ForkModal = require 'views/editor/ForkModal'
|
||||||
VectorIconSetupModal = require 'views/editor/thang/VectorIconSetupModal'
|
VectorIconSetupModal = require 'views/editor/thang/VectorIconSetupModal'
|
||||||
SaveVersionModal = require 'views/modal/SaveVersionModal'
|
SaveVersionModal = require 'views/editor/modal/SaveVersionModal'
|
||||||
template = require 'templates/editor/thang/thang-type-edit-view'
|
template = require 'templates/editor/thang/thang-type-edit-view'
|
||||||
storage = require 'core/storage'
|
storage = require 'core/storage'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VersionsModal = require 'views/modal/VersionsModal'
|
VersionsModal = require 'views/editor/modal/VersionsModal'
|
||||||
|
|
||||||
module.exports = class ThangTypeVersionsModal extends VersionsModal
|
module.exports = class ThangTypeVersionsModal extends VersionsModal
|
||||||
id: 'editor-thang-versions-view'
|
id: 'editor-thang-versions-view'
|
||||||
|
|
|
@ -5,7 +5,7 @@ template = require 'templates/i18n/i18n-edit-model-view'
|
||||||
deltasLib = require 'core/deltas'
|
deltasLib = require 'core/deltas'
|
||||||
|
|
||||||
# in the template, but need to require to load them
|
# in the template, but need to require to load them
|
||||||
require 'modal/RevertModal'
|
require 'views/modal/RevertModal'
|
||||||
|
|
||||||
module.exports = class I18NEditModelView extends RootView
|
module.exports = class I18NEditModelView extends RootView
|
||||||
className: 'editor i18n-edit-model-view'
|
className: 'editor i18n-edit-model-view'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
ModalView = require 'views/core/ModalView'
|
ModalView = require 'views/core/ModalView'
|
||||||
template = require 'templates/modal/revert'
|
template = require 'templates/modal/revert-modal'
|
||||||
CocoModel = require 'models/CocoModel'
|
CocoModel = require 'models/CocoModel'
|
||||||
|
|
||||||
module.exports = class RevertModal extends ModalView
|
module.exports = class RevertModal extends ModalView
|
||||||
|
|
|
@ -220,6 +220,7 @@ module.exports = class WorldMapView extends RootView
|
||||||
return if @manuallyPositionedLevelInfoID and levelID isnt @manuallyPositionedLevelInfoID
|
return if @manuallyPositionedLevelInfoID and levelID isnt @manuallyPositionedLevelInfoID
|
||||||
@$el.find(".level-info-container[data-level-id='#{levelID}']").hide()
|
@$el.find(".level-info-container[data-level-id='#{levelID}']").hide()
|
||||||
@manuallyPositionedLevelInfoID = null
|
@manuallyPositionedLevelInfoID = null
|
||||||
|
@$levelInfo = null
|
||||||
|
|
||||||
onMouseMoveMap: (e) ->
|
onMouseMoveMap: (e) ->
|
||||||
return if application.isIPadApp
|
return if application.isIPadApp
|
||||||
|
|
|
@ -10,29 +10,6 @@ commonjsHeader = fs.readFileSync('node_modules/brunch/node_modules/commonjs-requ
|
||||||
regJoin = (s) -> new RegExp(s.replace(/\//, '[\\\/\\\\]'))
|
regJoin = (s) -> new RegExp(s.replace(/\//, '[\\\/\\\\]'))
|
||||||
|
|
||||||
|
|
||||||
#- Find all .coffee and .jade files in /app
|
|
||||||
|
|
||||||
dirStack = ['./app']
|
|
||||||
coffeeFiles = []
|
|
||||||
jadeFiles = []
|
|
||||||
|
|
||||||
while dirStack.length
|
|
||||||
dir = dirStack.pop()
|
|
||||||
contents = fs.readdirSync(dir)
|
|
||||||
for file in contents
|
|
||||||
fullPath = "#{dir}/#{file}"
|
|
||||||
stat = fs.statSync(fullPath)
|
|
||||||
if stat.isDirectory()
|
|
||||||
dirStack.push(fullPath)
|
|
||||||
else
|
|
||||||
if _.str.endsWith(file, '.coffee')
|
|
||||||
coffeeFiles.push(fullPath)
|
|
||||||
else if _.str.endsWith(file, '.jade')
|
|
||||||
jadeFiles.push(fullPath)
|
|
||||||
|
|
||||||
console.log "Got #{coffeeFiles.length} coffee files and #{jadeFiles.length} jade files."
|
|
||||||
|
|
||||||
|
|
||||||
#- Build the config
|
#- Build the config
|
||||||
|
|
||||||
exports.config =
|
exports.config =
|
||||||
|
@ -103,6 +80,8 @@ exports.config =
|
||||||
'javascripts/test-app.js': regJoin('^test/app/')
|
'javascripts/test-app.js': regJoin('^test/app/')
|
||||||
'javascripts/demo-app.js': regJoin('^test/demo/')
|
'javascripts/demo-app.js': regJoin('^test/demo/')
|
||||||
|
|
||||||
|
#- More output files are generated at the below
|
||||||
|
|
||||||
order:
|
order:
|
||||||
before: [
|
before: [
|
||||||
'bower_components/jquery/dist/jquery.js'
|
'bower_components/jquery/dist/jquery.js'
|
||||||
|
@ -180,6 +159,27 @@ exports.config =
|
||||||
defn = if path in needHeaders then commonjsHeader else ''
|
defn = if path in needHeaders then commonjsHeader else ''
|
||||||
return defn
|
return defn
|
||||||
|
|
||||||
|
|
||||||
|
#- Find all .coffee and .jade files in /app
|
||||||
|
|
||||||
|
dirStack = ['./app']
|
||||||
|
coffeeFiles = []
|
||||||
|
jadeFiles = []
|
||||||
|
|
||||||
|
while dirStack.length
|
||||||
|
dir = dirStack.pop()
|
||||||
|
contents = fs.readdirSync(dir)
|
||||||
|
for file in contents
|
||||||
|
fullPath = "#{dir}/#{file}"
|
||||||
|
stat = fs.statSync(fullPath)
|
||||||
|
if stat.isDirectory()
|
||||||
|
dirStack.push(fullPath)
|
||||||
|
else
|
||||||
|
if _.str.endsWith(file, '.coffee')
|
||||||
|
coffeeFiles.push(fullPath)
|
||||||
|
else if _.str.endsWith(file, '.jade')
|
||||||
|
jadeFiles.push(fullPath)
|
||||||
|
|
||||||
for file in coffeeFiles
|
for file in coffeeFiles
|
||||||
inputFile = file.replace('./app', 'app')
|
inputFile = file.replace('./app', 'app')
|
||||||
outputFile = file.replace('.coffee', '.js').replace('./app', 'javascripts/app')
|
outputFile = file.replace('.coffee', '.js').replace('./app', 'javascripts/app')
|
||||||
|
@ -200,4 +200,4 @@ for file in jadeFiles
|
||||||
exports.config.files.templates.joinTo[possibleViewFilePath] = inputFile
|
exports.config.files.templates.joinTo[possibleViewFilePath] = inputFile
|
||||||
numBundles += 1
|
numBundles += 1
|
||||||
|
|
||||||
console.log 'Bundled', numBundles, 'templates with their views.'
|
console.log "Got #{coffeeFiles.length} coffee files and #{jadeFiles.length} jade files (bundled #{numBundles} of them together)."
|
Loading…
Reference in a new issue