forked from koehlma/pygrooveshark
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maximilian Köhl
committed
Feb 13, 2012
1 parent
4d2d8e8
commit a5e489d
Showing
4,613 changed files
with
1,440,394 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Ext.application({ | ||
name: 'FreeGroove', | ||
launch: function() { | ||
Ext.create('Ext.container.Viewport', { | ||
layout: 'border', | ||
items: [ | ||
{ | ||
region : 'north', | ||
title: 'FreeGroove', | ||
html : 'Hello! Welcome to FreeGroove.', | ||
height : 100, | ||
width : 100 | ||
}, { | ||
region : 'center', | ||
title: 'FreeGroove', | ||
html : 'Hello! Welcome to FreeGroove.', | ||
height : 100, | ||
width : 100 | ||
} | ||
] | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
This file is part of Ext JS 4 | ||
Copyright (c) 2011 Sencha Inc | ||
Contact: http://www.sencha.com/contact | ||
GNU General Public License Usage | ||
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. | ||
If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. | ||
*/ | ||
/** | ||
* Load the library located at the same path with this file | ||
* | ||
* Will automatically load ext-all-debug.js if any of these conditions is true: | ||
* - Current hostname is localhost | ||
* - Current hostname is an IP v4 address | ||
* - Current protocol is "file:" | ||
* | ||
* Will load ext-all.js (minified) otherwise | ||
*/ | ||
(function() { | ||
|
||
var scripts = document.getElementsByTagName('script'), | ||
localhostTests = [ | ||
/^localhost$/, | ||
/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:\d{1,5})?\b/ // IP v4 | ||
], | ||
host = window.location.hostname, | ||
isDevelopment = null, | ||
queryString = window.location.search, | ||
test, path, i, ln, scriptSrc, match; | ||
|
||
for (i = 0, ln = scripts.length; i < ln; i++) { | ||
scriptSrc = scripts[i].src; | ||
|
||
match = scriptSrc.match(/bootstrap\.js$/); | ||
|
||
if (match) { | ||
path = scriptSrc.substring(0, scriptSrc.length - match[0].length); | ||
break; | ||
} | ||
} | ||
|
||
if (queryString.match('(\\?|&)debug') !== null) { | ||
isDevelopment = true; | ||
} | ||
else if (queryString.match('(\\?|&)nodebug') !== null) { | ||
isDevelopment = false; | ||
} | ||
|
||
if (isDevelopment === null) { | ||
for (i = 0, ln = localhostTests.length; i < ln; i++) { | ||
test = localhostTests[i]; | ||
|
||
if (host.search(test) !== -1) { | ||
isDevelopment = true; | ||
break; | ||
} | ||
} | ||
} | ||
|
||
if (isDevelopment === null && window.location.protocol === 'file:') { | ||
isDevelopment = true; | ||
} | ||
|
||
document.write('<script type="text/javascript" src="' + path + 'ext-all' + ((isDevelopment) ? '-debug' : '') + '.js"></script>'); | ||
|
||
})(); | ||
|
Oops, something went wrong.