Initial commit
32
kz_cafe_admin/.classpath
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="var" path="VAADIN_DOWNLOAD/gwt-user/2.0.4/gwt-user.jar">
|
||||
<attributes>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="var" path="VAADIN_DOWNLOAD/gwt-dev/2.0.4/gwt-dev.jar">
|
||||
<attributes>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="jst.web"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/kz_cafe_core">
|
||||
<attributes>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/1_7_0_45">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="java"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="build/classes"/>
|
||||
</classpath>
|
||||
48
kz_cafe_admin/.project
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>kz_cafe_admin</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
<project>kz_cafe_core</project>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.vaadin.integration.eclipse.widgetsetBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.vaadin.integration.eclipse.addonStylesBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||
<nature>com.vaadin.integration.eclipse.widgetsetNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
12
kz_cafe_admin/.settings/.jsdtscope
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="WebContent"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
||||
<attributes>
|
||||
<attribute name="hide" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
||||
@@ -0,0 +1,7 @@
|
||||
com.vaadin.integration.eclipse.useLatestNightly=false
|
||||
com.vaadin.integration.eclipse.widgetsetBuildsSuspended=false
|
||||
com.vaadin.integration.eclipse.widgetsetCompilationEta=64294
|
||||
com.vaadin.integration.eclipse.widgetsetDirty=false
|
||||
com.vaadin.integration.eclipse.widgetsetStyle=PRETTY
|
||||
com.vaadin.integration.eclipse.widgetsetVerbose=true
|
||||
eclipse.preferences.version=1
|
||||
11
kz_cafe_admin/.settings/org.eclipse.jdt.core.prefs
Normal file
@@ -0,0 +1,11 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.7
|
||||
50
kz_cafe_admin/.settings/org.eclipse.wst.common.component
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="kz_cafe_admin">
|
||||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
|
||||
<dependent-module archiveName="kz_cafe_core.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/kz_cafe_core/kz_cafe_core">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="morphia-1.00-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/morphia-1.00-SNAPSHOT.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="log4j.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/log4j.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="commons-collections-3.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/commons-collections-3.1.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="sqlitejdbc-v056.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/sqlitejdbc-v056.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="mailapi.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/mailapi.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="jsr311-api-1.1.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/jsr311-api-1.1.1.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="mongo-2.6.3.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/mongo-2.6.3.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="jersey-client-1.5.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/jersey-client-1.5.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="jersey-core-1.5.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/jersey-core-1.5.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="jersey-server-1.5.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/jersey-server-1.5.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="commons-logging.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/commons-logging.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="jersey-json-1.5.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/jersey-json-1.5.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="asm-3.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/kz_cafe_core/lib/asm-3.1.jar">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="context-root" value="kz_cafe_admin"/>
|
||||
<property name="java-output-path" value="/kz_cafe_admin/build/classes"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<runtime name="Apache Tomcat v6.0"/>
|
||||
<fixed facet="wst.jsdt.web"/>
|
||||
<installed facet="jst.web" version="2.4"/>
|
||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||
<installed facet="com.vaadin.integration.eclipse.core" version="1.0"/>
|
||||
<installed facet="java" version="1.7"/>
|
||||
</faceted-project>
|
||||
@@ -0,0 +1 @@
|
||||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
||||
@@ -0,0 +1 @@
|
||||
Window
|
||||
3
kz_cafe_admin/WebContent/META-INF/MANIFEST.MF
Normal file
@@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Class-Path:
|
||||
|
||||
21
kz_cafe_admin/WebContent/VAADIN/custom.js
Normal file
@@ -0,0 +1,21 @@
|
||||
function __drawImage(img){
|
||||
foto1= new Image();
|
||||
foto1.src=(img);
|
||||
Controlla(img);
|
||||
}
|
||||
function Controlla(img){
|
||||
if((foto1.width!=0)&&(foto1.height!=0)){
|
||||
__viewFoto(img);
|
||||
}
|
||||
else{
|
||||
funzione="Controlla('"+img+"')";
|
||||
intervallo=setTimeout(funzione,20);
|
||||
}
|
||||
}
|
||||
function __viewFoto(img){
|
||||
largh=foto1.width+20;
|
||||
altez=foto1.height+20;
|
||||
stringa="width="+largh+",height="+altez;
|
||||
finestra=window.open(img,"",stringa);
|
||||
}
|
||||
|
||||
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/---.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/asc1.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/dollar1.png
Normal file
|
After Width: | Height: | Size: 973 B |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/dollar1_large.png
Normal file
|
After Width: | Height: | Size: 668 B |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/dollar2.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/dollar2_large.png
Normal file
|
After Width: | Height: | Size: 688 B |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/dollar3.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/dollar3_large.png
Normal file
|
After Width: | Height: | Size: 678 B |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/dsc1.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/enter.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/logo.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/star.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/star1.png
Normal file
|
After Width: | Height: | Size: 563 B |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/star2.png
Normal file
|
After Width: | Height: | Size: 859 B |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/star3.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/star4.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
kz_cafe_admin/WebContent/VAADIN/themes/custom/star5.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
241
kz_cafe_admin/WebContent/VAADIN/themes/custom/styles.css
Normal file
@@ -0,0 +1,241 @@
|
||||
@import url(../reindeer/styles.css);
|
||||
|
||||
|
||||
.v-table-cell-wrapper {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.v-button-link .v-button-caption{
|
||||
color: #D36060;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
line-height: inherit;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.v-nativebutton-link .v-nativebutton-caption{
|
||||
color: #D36060;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
line-height: inherit;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.v-panel-content > div {
|
||||
# background: transparent;
|
||||
}
|
||||
|
||||
.v-panel-content {
|
||||
# background-color: #F8F2D8;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.v-textfield{
|
||||
background-color: #FFF8EA;
|
||||
}
|
||||
|
||||
.v-window{
|
||||
# background-color: #F8F2D8;
|
||||
}
|
||||
|
||||
|
||||
#.v-textarea {
|
||||
# resize: none;
|
||||
#}
|
||||
|
||||
.no-textarea-resize{
|
||||
resize: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.panel-header{
|
||||
background-color: #F8F2D8;
|
||||
}
|
||||
|
||||
|
||||
.v-selected .v-table-cell-content .v-table-cell-wrapper .v-button-link .v-button-caption, .v-nativebutton-link .v-nativebutton-caption{
|
||||
color: #E41B23;
|
||||
font-color: #E41B23;
|
||||
}
|
||||
|
||||
#.v-filterselect .v-icon{
|
||||
# width:50px;
|
||||
# height:16px;
|
||||
#}
|
||||
|
||||
|
||||
#.v-table-row, .v-table-row-odd {
|
||||
# height: 24px;
|
||||
#}
|
||||
|
||||
|
||||
|
||||
/* Grid with grid! */
|
||||
.v-gridlayout-grid {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
|
||||
.v-gridlayout-grid > div {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid gray;
|
||||
}
|
||||
|
||||
.v-gridlayout-grid > div > div {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid gray;
|
||||
}
|
||||
|
||||
.v-gridlayout-grid > div > div > div {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.v-menubar {
|
||||
#text-align: center;
|
||||
#background: transparent;
|
||||
#border: none;
|
||||
#color: white;
|
||||
#text-shadow: none;
|
||||
font-size: 14px;
|
||||
font-weight:bold
|
||||
}
|
||||
|
||||
|
||||
.v-table tr.v-selected {
|
||||
background: #FFDDDD;
|
||||
color: #000000;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.v-table-body.focused{
|
||||
border-color: #999999;
|
||||
}
|
||||
|
||||
|
||||
.v-table-focus .v-table-cell-content{
|
||||
# border-style: solid;
|
||||
border-color: #E41B23;
|
||||
}
|
||||
|
||||
|
||||
.v-table-focus{
|
||||
border-color: #E41B23;
|
||||
}
|
||||
|
||||
|
||||
.v-table .v-selected .v-table-cell-content {
|
||||
border-right-color: #FF9999;
|
||||
}
|
||||
|
||||
.v-textfield-focus .v-textfield-content{
|
||||
border-color: #E41B23;
|
||||
}
|
||||
|
||||
.v-window-outerheader{
|
||||
background: #D40B13;
|
||||
}
|
||||
.v-window-header{
|
||||
background: #D40B13;
|
||||
}
|
||||
.v-window-closebox{
|
||||
# background: #E41B23;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.v-table-row.v-selected.v-table-focus{
|
||||
# color: #FF0000;
|
||||
# font-color: #FF0000;
|
||||
}
|
||||
|
||||
//.v-table-row-odd.v-selected.v-table-focus{
|
||||
// color: #00FF00;
|
||||
// font-color: #00FF00;
|
||||
//}
|
||||
|
||||
|
||||
.mybarmenu .v-menubar-menuitem-selected{
|
||||
background: #666666;
|
||||
# color: #000000;
|
||||
}
|
||||
|
||||
|
||||
.v-menubar-submenu .v-menubar-menuitem-selected{
|
||||
background: #D3D3D3;
|
||||
color: #000000;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.v-table-row-highlight-blocked{
|
||||
color: #E41B23;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.v-table-row-highlight-stressed{
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
.v-table-row-highlight-stressed .v-table-cell-content .v-table-cell-wrapper .v-button-link .v-button-caption{
|
||||
color: #E41B23;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
.v-table-row-highlight-gray{
|
||||
color: #999999;
|
||||
font-weight: normal;
|
||||
font-size: 12px;
|
||||
}
|
||||
.v-table-row-highlight-gray .v-table-cell-content .v-table-cell-wrapper .v-button-link .v-button-caption{
|
||||
color: #999999;
|
||||
font-weight: normal;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.red-background{
|
||||
background-color: #E41B23;
|
||||
}
|
||||
|
||||
.top-menu-current-item{
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #F0CAA6;
|
||||
padding-left: 20px;
|
||||
#padding-right: 20px;
|
||||
padding-top: 18px;
|
||||
#text-decoration: underline;
|
||||
white-space: nowrap;
|
||||
#font-family: Serif;
|
||||
font-style:italic;
|
||||
}
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 291 B |
|
After Width: | Height: | Size: 90 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 92 B |
|
After Width: | Height: | Size: 295 B |
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 43 B |
@@ -0,0 +1,333 @@
|
||||
<html>
|
||||
<head><script>
|
||||
var $wnd = parent;
|
||||
var $doc = $wnd.document;
|
||||
var $moduleName, $moduleBase, $entry
|
||||
,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null
|
||||
,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;
|
||||
// Lightweight metrics
|
||||
if ($stats) {
|
||||
var moduleFuncName = location.search.substr(1);
|
||||
var moduleFunc = $wnd[moduleFuncName];
|
||||
var moduleName = moduleFunc ? moduleFunc.moduleName : "unknown";
|
||||
$stats({moduleName:moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});
|
||||
}
|
||||
var $hostedHtmlVersion="2.0";
|
||||
|
||||
var gwtOnLoad;
|
||||
var $hosted = "localhost:9997";
|
||||
|
||||
function loadIframe(url) {
|
||||
var topDoc = window.top.document;
|
||||
|
||||
// create an iframe
|
||||
var iframeDiv = topDoc.createElement("div");
|
||||
iframeDiv.innerHTML = "<iframe scrolling=no frameborder=0 src='" + url + "'>";
|
||||
var iframe = iframeDiv.firstChild;
|
||||
|
||||
// mess with the iframe style a little
|
||||
var iframeStyle = iframe.style;
|
||||
iframeStyle.position = "absolute";
|
||||
iframeStyle.borderWidth = "0";
|
||||
iframeStyle.left = "0";
|
||||
iframeStyle.top = "0";
|
||||
iframeStyle.width = "100%";
|
||||
iframeStyle.backgroundColor = "#ffffff";
|
||||
iframeStyle.zIndex = "1";
|
||||
iframeStyle.height = "100%";
|
||||
|
||||
// update the top window's document's body's style
|
||||
var hostBodyStyle = window.top.document.body.style;
|
||||
hostBodyStyle.margin = "0";
|
||||
hostBodyStyle.height = iframeStyle.height;
|
||||
hostBodyStyle.overflow = "hidden";
|
||||
|
||||
// insert the iframe
|
||||
topDoc.body.insertBefore(iframe, topDoc.body.firstChild);
|
||||
}
|
||||
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
if (ua.indexOf("gecko") != -1) {
|
||||
// install eval wrapper on FF to avoid EvalError problem
|
||||
var __eval = window.eval;
|
||||
window.eval = function(s) {
|
||||
return __eval(s);
|
||||
}
|
||||
}
|
||||
if (ua.indexOf("chrome") != -1) {
|
||||
// work around __gwt_ObjectId appearing in JS objects
|
||||
var hop = Object.prototype.hasOwnProperty;
|
||||
Object.prototype.hasOwnProperty = function(prop) {
|
||||
return prop != "__gwt_ObjectId" && hop.call(this, prop);
|
||||
};
|
||||
}
|
||||
|
||||
// wrapper to call JS methods, which we need both to be able to supply a
|
||||
// different this for method lookup and to get the exception back
|
||||
function __gwt_jsInvoke(thisObj, methodName) {
|
||||
try {
|
||||
var args = Array.prototype.slice.call(arguments, 2);
|
||||
return [0, window[methodName].apply(thisObj, args)];
|
||||
} catch (e) {
|
||||
return [1, e];
|
||||
}
|
||||
}
|
||||
|
||||
var __gwt_javaInvokes = [];
|
||||
function __gwt_makeJavaInvoke(argCount) {
|
||||
return __gwt_javaInvokes[argCount] || __gwt_doMakeJavaInvoke(argCount);
|
||||
}
|
||||
|
||||
function __gwt_doMakeJavaInvoke(argCount) {
|
||||
// IE6 won't eval() anonymous functions except as r-values
|
||||
var argList = "";
|
||||
for (var i = 0; i < argCount; i++) {
|
||||
argList += ",p" + i;
|
||||
}
|
||||
var argListNoComma = argList.substring(1);
|
||||
|
||||
return eval(
|
||||
"__gwt_javaInvokes[" + argCount + "] =\n" +
|
||||
" function(thisObj, dispId" + argList + ") {\n" +
|
||||
" var result = __static(dispId, thisObj" + argList + ");\n" +
|
||||
" if (result[0]) {\n" +
|
||||
" throw result[1];\n" +
|
||||
" } else {\n" +
|
||||
" return result[1];\n" +
|
||||
" }\n" +
|
||||
" }\n"
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
* This is used to create tear-offs of Java methods. Each function corresponds
|
||||
* to exactly one dispId, and also embeds the argument count. We get the "this"
|
||||
* value from the context in which the function is being executed.
|
||||
* Function-object identity is preserved by caching in a sparse array.
|
||||
*/
|
||||
var __gwt_tearOffs = [];
|
||||
var __gwt_tearOffGenerators = [];
|
||||
function __gwt_makeTearOff(proxy, dispId, argCount) {
|
||||
return __gwt_tearOffs[dispId] || __gwt_doMakeTearOff(dispId, argCount);
|
||||
}
|
||||
|
||||
function __gwt_doMakeTearOff(dispId, argCount) {
|
||||
return __gwt_tearOffs[dispId] =
|
||||
(__gwt_tearOffGenerators[argCount] || __gwt_doMakeTearOffGenerator(argCount))(dispId);
|
||||
}
|
||||
|
||||
function __gwt_doMakeTearOffGenerator(argCount) {
|
||||
// IE6 won't eval() anonymous functions except as r-values
|
||||
var argList = "";
|
||||
for (var i = 0; i < argCount; i++) {
|
||||
argList += ",p" + i;
|
||||
}
|
||||
var argListNoComma = argList.substring(1);
|
||||
|
||||
return eval(
|
||||
"__gwt_tearOffGenerators[" + argCount + "] =\n" +
|
||||
" function(dispId) {\n" +
|
||||
" return function(" + argListNoComma + ") {\n" +
|
||||
" var result = __static(dispId, this" + argList + ");\n" +
|
||||
" if (result[0]) {\n" +
|
||||
" throw result[1];\n" +
|
||||
" } else {\n" +
|
||||
" return result[1];\n" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
" }\n"
|
||||
);
|
||||
}
|
||||
|
||||
function __gwt_makeResult(isException, result) {
|
||||
return [isException, result];
|
||||
}
|
||||
|
||||
function __gwt_disconnected() {
|
||||
// Prevent double-invocation.
|
||||
window.__gwt_disconnected = new Function();
|
||||
// Do it in a timeout so we can be sure we have a clean stack.
|
||||
window.setTimeout(__gwt_disconnected_impl, 1);
|
||||
}
|
||||
|
||||
function __gwt_disconnected_impl() {
|
||||
var topWin = window.top;
|
||||
var topDoc = topWin.document;
|
||||
var outer = topDoc.createElement("div");
|
||||
// Do not insert whitespace or outer.firstChild will get a text node.
|
||||
outer.innerHTML =
|
||||
'<div style="position:absolute;z-index:2147483646;left:0px;top:0px;right:0px;bottom:0px;filter:alpha(opacity=75);opacity:0.75;background-color:#000000;"></div>' +
|
||||
'<div style="position:absolute;z-index:2147483647;left:50px;top:50px;width:600px;color:#FFFFFF;font-family:verdana;">' +
|
||||
'<div style="font-size:30px;font-weight:bold;">GWT Code Server Disconnected</div>' +
|
||||
'<p style="font-size:15px;"> Most likely, you closed GWT development mode. Or you might have lost network connectivity. To fix this, try restarting GWT Development Mode and <a style="color: #FFFFFF; font-weight: bold;" href="javascript:location.reload()">REFRESH</a> this page.</p>' +
|
||||
'</div>'
|
||||
;
|
||||
topDoc.body.appendChild(outer);
|
||||
var glass = outer.firstChild;
|
||||
var glassStyle = glass.style;
|
||||
|
||||
// Scroll to the top and remove scrollbars.
|
||||
topWin.scrollTo(0, 0);
|
||||
if (topDoc.compatMode == "BackCompat") {
|
||||
topDoc.body.style["overflow"] = "hidden";
|
||||
} else {
|
||||
topDoc.documentElement.style["overflow"] = "hidden";
|
||||
}
|
||||
|
||||
// Steal focus.
|
||||
glass.focus();
|
||||
|
||||
if ((navigator.userAgent.indexOf("MSIE") >= 0) && (topDoc.compatMode == "BackCompat")) {
|
||||
// IE quirks mode doesn't support right/bottom, but does support this.
|
||||
glassStyle.width = "125%";
|
||||
glassStyle.height = "100%";
|
||||
} else if (navigator.userAgent.indexOf("MSIE 6") >= 0) {
|
||||
// IE6 doesn't have a real standards mode, so we have to use hacks.
|
||||
glassStyle.width = "125%"; // Get past scroll bar area.
|
||||
// Nasty CSS; onresize would be better but the outer window won't let us add a listener IE.
|
||||
glassStyle.setExpression("height", "document.documentElement.clientHeight");
|
||||
}
|
||||
}
|
||||
|
||||
function findPluginObject() {
|
||||
try {
|
||||
return document.getElementById('pluginObject');
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function findPluginEmbed() {
|
||||
try {
|
||||
return document.getElementById('pluginEmbed')
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function findPluginXPCOM() {
|
||||
try {
|
||||
return __gwt_HostedModePlugin;
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
gwtOnLoad = function(errFn, modName, modBase){
|
||||
$moduleName = modName;
|
||||
$moduleBase = modBase;
|
||||
|
||||
// Note that the order is important
|
||||
var pluginFinders = [
|
||||
findPluginXPCOM,
|
||||
findPluginObject,
|
||||
findPluginEmbed,
|
||||
];
|
||||
var topWin = window.top;
|
||||
var url = topWin.location.href;
|
||||
if (!topWin.__gwt_SessionID) {
|
||||
var ASCII_EXCLAMATION = 33;
|
||||
var ASCII_TILDE = 126;
|
||||
var chars = [];
|
||||
for (var i = 0; i < 16; ++i) {
|
||||
chars.push(Math.floor(ASCII_EXCLAMATION
|
||||
+ Math.random() * (ASCII_TILDE - ASCII_EXCLAMATION + 1)));
|
||||
}
|
||||
topWin.__gwt_SessionID = String.fromCharCode.apply(null, chars);
|
||||
}
|
||||
var plugin = null;
|
||||
for (var i = 0; i < pluginFinders.length; ++i) {
|
||||
try {
|
||||
var maybePlugin = pluginFinders[i]();
|
||||
if (maybePlugin != null && maybePlugin.init(window)) {
|
||||
plugin = maybePlugin;
|
||||
break;
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
if (!plugin) {
|
||||
// try searching for a v1 plugin for backwards compatibility
|
||||
var found = false;
|
||||
for (var i = 0; i < pluginFinders.length; ++i) {
|
||||
try {
|
||||
plugin = pluginFinders[i]();
|
||||
if (plugin != null && plugin.connect($hosted, $moduleName, window)) {
|
||||
return;
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
loadIframe("http://gwt.google.com/missing-plugin");
|
||||
} else {
|
||||
if (plugin.connect(url, topWin.__gwt_SessionID, $hosted, $moduleName,
|
||||
$hostedHtmlVersion)) {
|
||||
window.onUnload = function() {
|
||||
try {
|
||||
// wrap in try/catch since plugins are not required to supply this
|
||||
plugin.disconnect();
|
||||
} catch (e) {
|
||||
}
|
||||
};
|
||||
} else {
|
||||
if (errFn) {
|
||||
errFn(modName);
|
||||
} else {
|
||||
alert("Plugin failed to connect to hosted mode server at " + $hosted);
|
||||
loadIframe("http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.onunload = function() {
|
||||
};
|
||||
|
||||
// Lightweight metrics
|
||||
window.fireOnModuleLoadStart = function(className) {
|
||||
$stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'onModuleLoadStart', className:className});
|
||||
};
|
||||
|
||||
window.__gwt_module_id = 0;
|
||||
</script></head>
|
||||
<body>
|
||||
<font face='arial' size='-1'>This html file is for hosted mode support.</font>
|
||||
<script><!--
|
||||
// Lightweight metrics
|
||||
$stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'moduleEvalEnd'});
|
||||
|
||||
// OOPHM currently only supports IFrameLinker
|
||||
var query = parent.location.search;
|
||||
if (!findPluginXPCOM()) {
|
||||
document.write('<embed id="pluginEmbed" type="application/x-gwt-hosted-mode" width="10" height="10">');
|
||||
document.write('</embed>');
|
||||
document.write('<object id="pluginObject" CLASSID="CLSID:1D6156B6-002B-49E7-B5CA-C138FB843B4E">');
|
||||
document.write('</object>');
|
||||
}
|
||||
|
||||
// look for the old query parameter if we don't find the new one
|
||||
var idx = query.indexOf("gwt.codesvr=");
|
||||
if (idx >= 0) {
|
||||
idx += 12; // "gwt.codesvr=".length() == 12
|
||||
} else {
|
||||
idx = query.indexOf("gwt.hosted=");
|
||||
if (idx >= 0) {
|
||||
idx += 11; // "gwt.hosted=".length() == 11
|
||||
}
|
||||
}
|
||||
if (idx >= 0) {
|
||||
var amp = query.indexOf("&", idx);
|
||||
if (amp >= 0) {
|
||||
$hosted = query.substring(idx, amp);
|
||||
} else {
|
||||
$hosted = query.substring(idx);
|
||||
}
|
||||
|
||||
// According to RFC 3986, some of this component's characters (e.g., ':')
|
||||
// are reserved and *may* be escaped.
|
||||
$hosted = decodeURIComponent($hosted);
|
||||
}
|
||||
|
||||
query = window.location.search.substring(1);
|
||||
if (query && $wnd[query]) setTimeout($wnd[query].onScriptLoad, 1);
|
||||
--></script></body></html>
|
||||
@@ -0,0 +1,286 @@
|
||||
function kz_cafe_admin_widgetset_Kz_cafe_adminWidgetset(){
|
||||
var $wnd_0 = window, $doc_0 = document, $stats = $wnd_0.__gwtStatsEvent?function(a){
|
||||
return $wnd_0.__gwtStatsEvent(a);
|
||||
}
|
||||
:null, $sessionId_0 = $wnd_0.__gwtStatsSessionId?$wnd_0.__gwtStatsSessionId:null, scriptsDone, loadDone, bodyDone, base = '', metaProps = {}, values = [], providers = [], answers = [], onLoadErrorFunc, propertyErrorFunc;
|
||||
$stats && $stats({moduleName:'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', sessionId:$sessionId_0, subSystem:'startup', evtGroup:'bootstrap', millis:(new Date).getTime(), type:'begin'});
|
||||
if (!$wnd_0.__gwt_stylesLoaded) {
|
||||
$wnd_0.__gwt_stylesLoaded = {};
|
||||
}
|
||||
if (!$wnd_0.__gwt_scriptsLoaded) {
|
||||
$wnd_0.__gwt_scriptsLoaded = {};
|
||||
}
|
||||
function isHostedMode(){
|
||||
var result = false;
|
||||
try {
|
||||
var query = $wnd_0.location.search;
|
||||
return (query.indexOf('gwt.codesvr=') != -1 || (query.indexOf('gwt.hosted=') != -1 || $wnd_0.external && $wnd_0.external.gwtOnLoad)) && query.indexOf('gwt.hybrid') == -1;
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
isHostedMode = function(){
|
||||
return result;
|
||||
}
|
||||
;
|
||||
return result;
|
||||
}
|
||||
|
||||
function maybeStartModule(){
|
||||
if (scriptsDone && loadDone) {
|
||||
var iframe = $doc_0.getElementById('kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset');
|
||||
var frameWnd = iframe.contentWindow;
|
||||
if (isHostedMode()) {
|
||||
frameWnd.__gwt_getProperty = function(name_0){
|
||||
return computePropValue(name_0);
|
||||
}
|
||||
;
|
||||
}
|
||||
kz_cafe_admin_widgetset_Kz_cafe_adminWidgetset = null;
|
||||
frameWnd.gwtOnLoad(onLoadErrorFunc, 'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', base);
|
||||
$stats && $stats({moduleName:'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', sessionId:$sessionId_0, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date).getTime(), type:'end'});
|
||||
}
|
||||
}
|
||||
|
||||
function computeScriptBase(){
|
||||
var thisScript, markerId = '__gwt_marker_kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', markerScript;
|
||||
$doc_0.write('<script id="' + markerId + '"><\/script>');
|
||||
markerScript = $doc_0.getElementById(markerId);
|
||||
thisScript = markerScript && markerScript.previousSibling;
|
||||
while (thisScript && thisScript.tagName != 'SCRIPT') {
|
||||
thisScript = thisScript.previousSibling;
|
||||
}
|
||||
function getDirectoryOfFile(path){
|
||||
var hashIndex = path.lastIndexOf('#');
|
||||
if (hashIndex == -1) {
|
||||
hashIndex = path.length;
|
||||
}
|
||||
var queryIndex = path.indexOf('?');
|
||||
if (queryIndex == -1) {
|
||||
queryIndex = path.length;
|
||||
}
|
||||
var slashIndex = path.lastIndexOf('/', Math.min(queryIndex, hashIndex));
|
||||
return slashIndex >= 0?path.substring(0, slashIndex + 1):'';
|
||||
}
|
||||
|
||||
;
|
||||
if (thisScript && thisScript.src) {
|
||||
base = getDirectoryOfFile(thisScript.src);
|
||||
}
|
||||
if (base == '') {
|
||||
var baseElements = $doc_0.getElementsByTagName('base');
|
||||
if (baseElements.length > 0) {
|
||||
base = baseElements[baseElements.length - 1].href;
|
||||
}
|
||||
else {
|
||||
base = getDirectoryOfFile($doc_0.location.href);
|
||||
}
|
||||
}
|
||||
else if (base.match(/^\w+:\/\//)) {
|
||||
}
|
||||
else {
|
||||
var img = $doc_0.createElement('img');
|
||||
img.src = base + 'clear.cache.gif';
|
||||
base = getDirectoryOfFile(img.src);
|
||||
}
|
||||
if (markerScript) {
|
||||
markerScript.parentNode.removeChild(markerScript);
|
||||
}
|
||||
}
|
||||
|
||||
function processMetas(){
|
||||
var metas = document.getElementsByTagName('meta');
|
||||
for (var i = 0, n = metas.length; i < n; ++i) {
|
||||
var meta = metas[i], name_0 = meta.getAttribute('name'), content;
|
||||
if (name_0) {
|
||||
if (name_0 == 'gwt:property') {
|
||||
content = meta.getAttribute('content');
|
||||
if (content) {
|
||||
var value, eq = content.indexOf('=');
|
||||
if (eq >= 0) {
|
||||
name_0 = content.substring(0, eq);
|
||||
value = content.substring(eq + 1);
|
||||
}
|
||||
else {
|
||||
name_0 = content;
|
||||
value = '';
|
||||
}
|
||||
metaProps[name_0] = value;
|
||||
}
|
||||
}
|
||||
else if (name_0 == 'gwt:onPropertyErrorFn') {
|
||||
content = meta.getAttribute('content');
|
||||
if (content) {
|
||||
try {
|
||||
propertyErrorFunc = eval(content);
|
||||
}
|
||||
catch (e) {
|
||||
alert('Bad handler "' + content + '" for "gwt:onPropertyErrorFn"');
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (name_0 == 'gwt:onLoadErrorFn') {
|
||||
content = meta.getAttribute('content');
|
||||
if (content) {
|
||||
try {
|
||||
onLoadErrorFunc = eval(content);
|
||||
}
|
||||
catch (e) {
|
||||
alert('Bad handler "' + content + '" for "gwt:onLoadErrorFn"');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function unflattenKeylistIntoAnswers(propValArray, value){
|
||||
var answer = answers;
|
||||
for (var i = 0, n = propValArray.length - 1; i < n; ++i) {
|
||||
answer = answer[propValArray[i]] || (answer[propValArray[i]] = []);
|
||||
}
|
||||
answer[propValArray[n]] = value;
|
||||
}
|
||||
|
||||
function computePropValue(propName){
|
||||
var value = providers[propName](), allowedValuesMap = values[propName];
|
||||
if (value in allowedValuesMap) {
|
||||
return value;
|
||||
}
|
||||
var allowedValuesList = [];
|
||||
for (var k in allowedValuesMap) {
|
||||
allowedValuesList[allowedValuesMap[k]] = k;
|
||||
}
|
||||
if (propertyErrorFunc) {
|
||||
propertyErrorFunc(propName, allowedValuesList, value);
|
||||
}
|
||||
throw null;
|
||||
}
|
||||
|
||||
var frameInjected;
|
||||
function maybeInjectFrame(){
|
||||
if (!frameInjected) {
|
||||
frameInjected = true;
|
||||
var iframe = $doc_0.createElement('iframe');
|
||||
iframe.src = "javascript:''";
|
||||
iframe.id = 'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset';
|
||||
iframe.style.cssText = 'position:absolute;width:0;height:0;border:none';
|
||||
iframe.tabIndex = -1;
|
||||
$doc_0.body.appendChild(iframe);
|
||||
$stats && $stats({moduleName:'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', sessionId:$sessionId_0, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date).getTime(), type:'moduleRequested'});
|
||||
iframe.contentWindow.location.replace(base + initialHtml);
|
||||
}
|
||||
}
|
||||
|
||||
providers['user.agent'] = function(){
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var makeVersion = function(result){
|
||||
return parseInt(result[1]) * 1000 + parseInt(result[2]);
|
||||
}
|
||||
;
|
||||
if (ua.indexOf('opera') != -1) {
|
||||
return 'opera';
|
||||
}
|
||||
else if (ua.indexOf('webkit') != -1) {
|
||||
return 'safari';
|
||||
}
|
||||
else if (ua.indexOf('msie') != -1) {
|
||||
if (document.documentMode >= 8) {
|
||||
return 'ie8';
|
||||
}
|
||||
else {
|
||||
var result_0 = /msie ([0-9]+)\.([0-9]+)/.exec(ua);
|
||||
if (result_0 && result_0.length == 3) {
|
||||
var v = makeVersion(result_0);
|
||||
if (v >= 6000) {
|
||||
return 'ie6';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (ua.indexOf('gecko') != -1) {
|
||||
var result_0 = /rv:([0-9]+)\.([0-9]+)/.exec(ua);
|
||||
if (result_0 && result_0.length == 3) {
|
||||
if (makeVersion(result_0) >= 1008)
|
||||
return 'gecko1_8';
|
||||
}
|
||||
return 'gecko';
|
||||
}
|
||||
return 'unknown';
|
||||
}
|
||||
;
|
||||
values['user.agent'] = {gecko:0, gecko1_8:1, ie6:2, ie8:3, opera:4, safari:5};
|
||||
kz_cafe_admin_widgetset_Kz_cafe_adminWidgetset.onScriptLoad = function(){
|
||||
if (frameInjected) {
|
||||
loadDone = true;
|
||||
maybeStartModule();
|
||||
}
|
||||
}
|
||||
;
|
||||
kz_cafe_admin_widgetset_Kz_cafe_adminWidgetset.onInjectionDone = function(){
|
||||
scriptsDone = true;
|
||||
$stats && $stats({moduleName:'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', sessionId:$sessionId_0, subSystem:'startup', evtGroup:'loadExternalRefs', millis:(new Date).getTime(), type:'end'});
|
||||
maybeStartModule();
|
||||
}
|
||||
;
|
||||
computeScriptBase();
|
||||
var strongName;
|
||||
var initialHtml;
|
||||
if (isHostedMode()) {
|
||||
if ($wnd_0.external && ($wnd_0.external.initModule && $wnd_0.external.initModule('kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset'))) {
|
||||
$wnd_0.location.reload();
|
||||
return;
|
||||
}
|
||||
initialHtml = 'hosted.html?kz_cafe_admin_widgetset_Kz_cafe_adminWidgetset';
|
||||
strongName = '';
|
||||
}
|
||||
processMetas();
|
||||
$stats && $stats({moduleName:'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', sessionId:$sessionId_0, subSystem:'startup', evtGroup:'bootstrap', millis:(new Date).getTime(), type:'selectingPermutation'});
|
||||
if (!isHostedMode()) {
|
||||
try {
|
||||
unflattenKeylistIntoAnswers(['gecko1_8'], '0E4A90236CF270CEB092DA3A0C04EE42');
|
||||
unflattenKeylistIntoAnswers(['opera'], '18D9478B3B91AE53C32DCF36A0BFDE68');
|
||||
unflattenKeylistIntoAnswers(['safari'], '1B658A655FB4B9D48567BF6D69C5502D');
|
||||
unflattenKeylistIntoAnswers(['gecko'], '22043636B226340D240C4CAD1783D712');
|
||||
unflattenKeylistIntoAnswers(['ie6'], '85E795F03A349749527204C03B5B7931');
|
||||
unflattenKeylistIntoAnswers(['ie8'], 'E8DDCCF0BA295C565F623570519B1CF1');
|
||||
strongName = answers[computePropValue('user.agent')];
|
||||
initialHtml = strongName + '.cache.html';
|
||||
}
|
||||
catch (e) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
var onBodyDoneTimerId;
|
||||
function onBodyDone(){
|
||||
if (!bodyDone) {
|
||||
bodyDone = true;
|
||||
maybeStartModule();
|
||||
if ($doc_0.removeEventListener) {
|
||||
$doc_0.removeEventListener('DOMContentLoaded', onBodyDone, false);
|
||||
}
|
||||
if (onBodyDoneTimerId) {
|
||||
clearInterval(onBodyDoneTimerId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($doc_0.addEventListener) {
|
||||
$doc_0.addEventListener('DOMContentLoaded', function(){
|
||||
maybeInjectFrame();
|
||||
onBodyDone();
|
||||
}
|
||||
, false);
|
||||
}
|
||||
var onBodyDoneTimerId = setInterval(function(){
|
||||
if (/loaded|complete/.test($doc_0.readyState)) {
|
||||
maybeInjectFrame();
|
||||
onBodyDone();
|
||||
}
|
||||
}
|
||||
, 50);
|
||||
$stats && $stats({moduleName:'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', sessionId:$sessionId_0, subSystem:'startup', evtGroup:'bootstrap', millis:(new Date).getTime(), type:'end'});
|
||||
$stats && $stats({moduleName:'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset', sessionId:$sessionId_0, subSystem:'startup', evtGroup:'loadExternalRefs', millis:(new Date).getTime(), type:'begin'});
|
||||
$doc_0.write('<script defer="defer">kz_cafe_admin_widgetset_Kz_cafe_adminWidgetset.onInjectionDone(\'kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset\')<\/script>');
|
||||
}
|
||||
|
||||
kz_cafe_admin_widgetset_Kz_cafe_adminWidgetset();
|
||||
BIN
kz_cafe_admin/WebContent/WEB-INF/lib/icepush-0.2.1.jar
Normal file
BIN
kz_cafe_admin/WebContent/WEB-INF/lib/icepush-gwt.jar
Normal file
BIN
kz_cafe_admin/WebContent/WEB-INF/lib/icepush.jar
Normal file
BIN
kz_cafe_admin/WebContent/WEB-INF/lib/poi-3.9.jar
Normal file
BIN
kz_cafe_admin/WebContent/WEB-INF/lib/vaadin-6.4.9.jar
Normal file
38
kz_cafe_admin/WebContent/WEB-INF/web.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
||||
<display-name>kz_cafe_admin</display-name>
|
||||
<context-param>
|
||||
<description>
|
||||
Vaadin production mode</description>
|
||||
<param-name>productionMode</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
<servlet>
|
||||
<servlet-name>kz_cafe_admin</servlet-name>
|
||||
<servlet-class>kz.cafe.admin.MyApplicationServlet</servlet-class>
|
||||
<init-param>
|
||||
<description>
|
||||
Vaadin application class to start</description>
|
||||
<param-name>application</param-name>
|
||||
<param-value>kz.cafe.admin.AdminMain</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<description>
|
||||
Application widgetset</description>
|
||||
<param-name>widgetset</param-name>
|
||||
<param-value>kz.cafe.admin.widgetset.Kz_cafe_adminWidgetset</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>kz_cafe_admin</servlet-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
<welcome-file>default.html</welcome-file>
|
||||
<welcome-file>default.htm</welcome-file>
|
||||
<welcome-file>default.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||