1 // ==========================================================================
  2 // Project:   SproutCore Test Runner
  3 // Copyright: ©2006-2011 Strobe Inc. and contributors.
  4 //            Portions ©2008-2011 Apple Inc. All rights reserved.
  5 // License:   Licensed under MIT license (see license.js)
  6 // ==========================================================================
  7 /*global Welcome */
  8 
  9 /**
 10 
 11   The Welcome app is displayed when you load the root URL and the dev server
 12   is visible.  It will fetch the list of targets from the server and list
 13   them.
 14 
 15   @extends SC.Object
 16 */
 17 Welcome = SC.Object.create(
 18   /** @scope Welcome.prototype */ {
 19 
 20   NAMESPACE: 'Welcome',
 21   VERSION: '1.0.0',
 22 
 23   store: SC.Store.create().from('CoreTools.DataSource'),
 24 
 25   displayTitle: function () {
 26     var hostname = (window.location.hostname || 'localhost').toString();
 27     return hostname.match(/sproutcore\.com/) ? "SproutCore Demos".loc() : "SproutCore Developer Tools";
 28   }.property().cacheable()
 29 
 30 });
 31