Skip to content
Snippets Groups Projects
Commit b2165b10 authored by e3315u's avatar e3315u
Browse files

Premier commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 375 additions and 0 deletions
# .gitignore template for skeleton-based apps
/compiled
/qx_packages
.package-cache.json
{
"$schema": "https://qooxdoo.org/schema/Manifest-2-0-0.json",
"info" :
{
"name" : "Pqooxdoo",
"summary" : "",
"description" : "",
"homepage" : "",
"license" : "MIT license",
"authors" : [
{
"name": "",
"email": ""
}
],
"version" : "1.0.0"
},
"provides" :
{
"namespace" : "Pqooxdoo",
"encoding" : "utf-8",
"class" : "source/class",
"resource" : "source/resource",
"translation" : "source/translation"
},
"requires": {
"@qooxdoo/framework": "^7.7.2"
}
}
{
"$schema": "https://qooxdoo.org/schema/compile-1-0-0.json",
"targets": [
{
"type": "source",
"outputPath": "compiled/source",
"bundle": {
"include": "qx.*"
}
},
{
"type": "build",
"outputPath": "compiled/build"
}
],
"defaultTarget": "source",
"locales": ["en"],
"environment": {
"qx.icontheme": "Tango"
},
"applications": [
{
"class": "Pqooxdoo.Application",
"theme": "Pqooxdoo.theme.Theme",
"name": "Pqooxdoo",
"bootPath": "source/boot"
}
]
}
# Pqooxdoo
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- Setup the viewport for mobile and desktop environments -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
<!-- Configure linking of this application to the home screen of mobile devices -->
<meta name="apple-mobile-web-app-title" content="Pqooxdoo"/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="default"/>
<meta name="msapplication-tap-highlight" content="no"/>
<link rel="apple-touch-icon" href="${resourcePath}Pqooxdoo/app.png"/>
<link rel="icon" sizes="192x192" href="${resourcePath}Pqooxdoo/app.png">
<!-- Disable chrome translation requests and automatic phone number linking -->
<meta name="google" value="notranslate"/>
<meta name="format-detection" content="telephone=no"/>
<!-- Shortcut icon setup -->
<link rel="shortcut icon" type="image/png" href="${resourcePath}Pqooxdoo/favicon.png"/>
<link rel="mask-icon" href="${resourcePath}Pqooxdoo/favicon.png"/>
<style>
body {
padding: 0px;
margin: 0px;
width: 100%;
height: 100%;
position: fixed;
-webkit-touch-callout: none !important;
overflow: hidden;
}
</style>
<title>Pqooxdoo</title>
<noscript>
<meta http-equiv="refresh" content="0; url=${appPath}nojs.html"/>
</noscript>
${preBootJs}
<script type="text/javascript" src="${appPath}index.js"></script>
</head>
<body>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pqooxdoo - JavaScript is disabled</title>
<script>
window.location = "index.html";
</script>
</head>
<body style='padding: 0px; margin: 0px; width: 100%; height: 100%;'>
<div id="splash" style='height: 100%; width: 100%; top: 0px; bottom: 0px; position: absolute; background-color: #383838;'>
<div style='position: absolute; top: 35%; width: 100%; text-align: center'>
<div style='color:#FFF; font-family:Arial; font-size:14px; font-weight:bold'>
<div style="text-align:center; display:inline-block;font-weight:normal">
<img src='js_256x256.png' width="64" height="64" style="padding-bottom:10px">
<br/>
<br/>
This application requires JavaScript. Please enable it and reload this page.
</div>
</div>
</div>
</div>
</body>
</html>
/* ************************************************************************
Copyright: 2025
License: MIT license
Authors:
************************************************************************ */
/**
* This is the main application class of "Pqooxdoo"
*
* @asset(Pqooxdoo/*)
*/
qx.Class.define("Pqooxdoo.Application",
{
extend : qx.application.Standalone,
/*
*****************************************************************************
MEMBERS
*****************************************************************************
*/
members :
{
/**
* This method contains the initial application code and gets called
* during startup of the application
*
* @lint ignoreDeprecated(alert)
*/
main()
{
// Call super class
super.main();
// Enable logging in debug variant
if (qx.core.Environment.get("qx.debug"))
{
// support native logging capabilities, e.g. Firebug for Firefox
qx.log.appender.Native;
// support additional cross-browser console. Press F7 to toggle visibility
qx.log.appender.Console;
}
/*
-------------------------------------------------------------------------
Below is your actual application code...
-------------------------------------------------------------------------
*/
// Create a button
const button1 = new qx.ui.form.Button("Click me", "Pqooxdoo/test.png");
// Document is the application root
const doc = this.getRoot();
// Add button to document at fixed coordinates
doc.add(button1, {left: 100, top: 50});
// Add an event listener
button1.addListener("execute", function() {
/* eslint no-alert: "off" */
alert("Hello World!");
});
}
}
});
/** <h3> Pqooxdoo API Documentation </h3>
*
* Replace this text with an appropriate overview and introduction to your
* application.
*
*/
/* ************************************************************************
Copyright: 2025
License: MIT license
Authors:
************************************************************************ */
/**
* This class demonstrates how to define unit tests for your application.
*
* Execute <code>qx test</code> to generate a testrunner application
* and open it from <tt>test/index.html</tt>
*
* The methods that contain the tests are instance methods with a
* <code>test</code> prefix. You can create an arbitrary number of test
* classes like this one. They can be organized in a regular class hierarchy,
* i.e. using deeper namespaces and a corresponding file structure within the
* <tt>test</tt> folder.
*/
qx.Class.define("Pqooxdoo.test.DemoTest",
{
extend : qx.dev.unit.TestCase,
members :
{
/*
---------------------------------------------------------------------------
TESTS
---------------------------------------------------------------------------
*/
/**
* Here are some simple tests
*/
testSimple()
{
this.assertEquals(4, 3+1, "This should never fail!");
this.assertFalse(false, "Can false be true?!");
},
/**
* Here are some more advanced tests
*/
testAdvanced()
{
let a = 3;
let b = a;
this.assertIdentical(a, b, "A rose by any other name is still a rose");
this.assertInRange(3, 1, 10, "You must be kidding, 3 can never be outside [1,10]!");
}
}
});
/* ************************************************************************
Copyright: 2025
License: MIT license
Authors:
************************************************************************ */
qx.Theme.define("Pqooxdoo.theme.Appearance",
{
extend : qx.theme.indigo.Appearance,
appearances :
{
}
});
\ No newline at end of file
/* ************************************************************************
Copyright: 2025
License: MIT license
Authors:
************************************************************************ */
qx.Theme.define("Pqooxdoo.theme.Color",
{
extend : qx.theme.indigo.Color,
colors :
{
}
});
\ No newline at end of file
/* ************************************************************************
Copyright: 2025
License: MIT license
Authors:
************************************************************************ */
qx.Theme.define("Pqooxdoo.theme.Decoration",
{
extend : qx.theme.indigo.Decoration,
decorations :
{
}
});
\ No newline at end of file
/* ************************************************************************
Copyright: 2025
License: MIT license
Authors:
************************************************************************ */
qx.Theme.define("Pqooxdoo.theme.Font",
{
extend : qx.theme.indigo.Font,
fonts :
{
}
});
\ No newline at end of file
/* ************************************************************************
Copyright: 2025
License: MIT license
Authors:
************************************************************************ */
qx.Theme.define("Pqooxdoo.theme.Theme",
{
meta :
{
color : Pqooxdoo.theme.Color,
decoration : Pqooxdoo.theme.Decoration,
font : Pqooxdoo.theme.Font,
icon : qx.theme.icon.Tango,
appearance : Pqooxdoo.theme.Appearance
}
});
\ No newline at end of file
source/resource/Pqooxdoo/app.png

4.42 KiB

source/resource/Pqooxdoo/favicon.png

1.45 KiB

source/resource/Pqooxdoo/js_256x256.png

2.88 KiB

source/resource/Pqooxdoo/test.png

2.42 KiB

This directory will contain translation (.po) files once you have compiled your application.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment