Sha256: dc8e5aa7d9f5f3c8d95435f7bcd0d2e1bbc634312f9e9488b9c65e4d5e59cee8

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

Sandbox.Application = Luca.Application.extend
  name: 'sandbox_application'
  el: '#viewport'
  fluid: true
  topNav:'top_navigation'

  useKeyRouter: true

  keyEvents:
    meta:
      forwardslash: "developmentConsole"

  components:[
    ctype: 'controller'
    name: 'pages'
    components:[
      name: "main"
      ctype: "panel"
      bodyTemplate: 'main'
    ,
      name :"class_browser"
      ctype: "class_browser"
    ,
      name: "component_tester"
      ctype: "component_tester"
    ]
  ]

  initialize: (@options={})->
    Luca.Application::initialize.apply @, arguments
    @router = new Sandbox.Router(app: @)

  developmentConsole: ()->
    @developmentConsole = Luca "coffeescript-console", ()->
      new Luca.tools.DevelopmentConsole(name:"coffeescript-console")

    unless @consoleContainerAppended
      container = @make("div",{id:"devtools-console-wrapper",class:"devtools-console-container modal",style:"width:1000px"}, @developmentConsole.el)
      $('body').append( container )
      @consoleContainerAppended = true
      @developmentConsole.render()

    $('#devtools-console-wrapper').modal(backdrop:false,show:true)

  afterRender: ()->
    @_super("afterRender", @, arguments)

$ do ->
  (window || global).SandboxApp = new Sandbox.Application()
  SandboxApp.boot()
  prettyPrint()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
luca-0.9.1 assets/javascripts/sandbox/application.coffee