forked from Edirom/Edirom-Online
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3,207 changed files
with
2,429,225 additions
and
162,436 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 was deleted.
Oops, something went wrong.
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,79 @@ | ||
/*! | ||
* Ext JS Library 4.0 | ||
* Copyright(c) 2006-2011 Sencha Inc. | ||
* [email protected] | ||
* http://www.sencha.com/license | ||
*/ | ||
|
||
/** | ||
* @class Ext.ux.desktop.Wallpaper | ||
* @extends Ext.Component | ||
* <p>This component renders an image that stretches to fill the component.</p> | ||
*/ | ||
Ext.define('Ext.ux.desktop.Wallpaper', { | ||
extend: 'Ext.Component', | ||
|
||
alias: 'widget.wallpaper', | ||
|
||
cls: 'ux-wallpaper', | ||
html: '<img src="'+Ext.BLANK_IMAGE_URL+'">', | ||
|
||
stretch: false, | ||
wallpaper: null, | ||
stateful : true, | ||
stateId : 'desk-wallpaper', | ||
|
||
afterRender: function () { | ||
var me = this; | ||
me.callParent(); | ||
me.setWallpaper(me.wallpaper, me.stretch); | ||
}, | ||
|
||
applyState: function () { | ||
var me = this, old = me.wallpaper; | ||
me.callParent(arguments); | ||
if (old != me.wallpaper) { | ||
me.setWallpaper(me.wallpaper); | ||
} | ||
}, | ||
|
||
getState: function () { | ||
return this.wallpaper && { wallpaper: this.wallpaper }; | ||
}, | ||
|
||
setWallpaper: function (wallpaper, stretch) { | ||
var me = this, imgEl, bkgnd; | ||
|
||
me.stretch = (stretch !== false); | ||
me.wallpaper = wallpaper; | ||
|
||
if (me.rendered) { | ||
imgEl = me.el.dom.firstChild; | ||
|
||
if (!wallpaper || wallpaper == Ext.BLANK_IMAGE_URL) { | ||
Ext.fly(imgEl).hide(); | ||
} else if (me.stretch) { | ||
imgEl.src = wallpaper; | ||
|
||
me.el.removeCls('ux-wallpaper-tiled'); | ||
Ext.fly(imgEl).setStyle({ | ||
width: '100%', | ||
height: '100%' | ||
}).show(); | ||
} else { | ||
Ext.fly(imgEl).hide(); | ||
|
||
bkgnd = 'url('+wallpaper+')'; | ||
me.el.addCls('ux-wallpaper-tiled'); | ||
} | ||
|
||
me.el.setStyle({ | ||
backgroundImage: bkgnd || '' | ||
}); | ||
if(me.stateful) { | ||
me.saveState(); | ||
} | ||
} | ||
return me; | ||
} | ||
}); |
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,77 @@ | ||
/* | ||
This file is part of Ext JS 4.2 | ||
Copyright (c) 2011-2013 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. | ||
Build date: 2013-05-16 14:36:50 (f9be68accb407158ba2b1be2c226a6ce1f649314) | ||
*/ | ||
/** | ||
* Load the library located at the same path with this file | ||
* | ||
* Will automatically load ext-all-dev.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" charset="UTF-8" src="' + | ||
path + 'ext-all' + (isDevelopment ? '-dev' : '') + '.js"></script>'); | ||
})(); |
Oops, something went wrong.