Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pd-giz-dave committed Mar 1, 2024
1 parent f28e50f commit f23cacf
Show file tree
Hide file tree
Showing 6 changed files with 260 additions and 2 deletions.
47 changes: 47 additions & 0 deletions App/js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// The default code is a module class (inherited from xui.Module)
// Ensure that all the value of "key/value pair" does not refer to external variables
xui.Class('App', 'xui.Module',{
Instance:{
// Dependency classes
Dependencies:[],
// Required modules
Required:[],

// To initialize properties
properties : {},

// To initialize instance(e.g. properties)
initialize : function(){
},

// To initialize internal components (mostly UI controls)
// *** If you're not a skilled, dont modify this function manually ***
iniComponents : function(){
// [[Code created by CrossUI RAD Studio
var host=this, children=[], append=function(child){children.push(child.get(0));};

return children;
// ]]Code created by CrossUI RAD Studio
},

// Give a chance to determine which UI controls will be appended to parent container
customAppend : function(parent, subId, left, top){
// "return false" will cause all the internal UI controls will be added to the parent panel
return false;
}
/*,
// To determine how properties affects this module
propSetAction : function(prop){
},
// To set all node's style in this modlue
customStyle:{}
},
//To customize the default properties and event handlers
Static:{
$DataModel:{
},
$EventHandlers:{
}
*/
}
});
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# CrossUI-MyCrossUI
This is a codeless programming project created by CrossUI GitHub
## CrossUI-MyCrossUI
Web app url : https://pd-giz-dave.github.io/CrossUI-MyCrossUI

This project was created by CrossUI No-Code App Builder: https://crossui.com/RADGithub

Based on template: https://linb.github.io/CrossUI_Assets/assets/projects/Simple/xui_project_tpl_Empty

Click [here](https://crossui.com/RADGithub/#!from=github&owner=pd-giz-dave&repo=CrossUI-MyCrossUI) to edit this web app in CrossUI No-Code App Builder

<i>Powered by [CrossUI](https://crossui.com)</i>
53 changes: 53 additions & 0 deletions debug.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="keywords" content="GUI design,GUI builder,web UI,RAD,RIA,development tool,multi-platform,cross-platform,web app" />
<meta name="description" content="Powered by CrossUI Front-End Builder - Create Interactive Front-End Without Coding" />
<meta name="copyright" content="[email protected]" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1,
width=device-width, height=device-height" />
<meta http-equiv="no-cache">
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="content-type" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="-1"/>
<!--link rel="stylesheet" type="text/css" href="CSS/default.css" /-->
<title>Powered by CrossUI Front-End Builder</title>
</head>
<body>
<div id="loading" style="position:fixed;width:100%;text-align:center;">
<img id="loadingimg" alt="Loading..." title="Loading..." src="//www.crossui.com/libs/2.0/loading.gif" />
</div>
</body>
</html>

<script type="text/javascript">
if(/#.*touch\=(1|true)/.test(location.href)){
window.xui_ini={fakeTouch:1};
document.body.className +=" xui-cursor-touch";
}
</script>
<script type="text/javascript" src="//www.crossui.com/libs/2.0/js/xui-debug.js"></script>
<script type="text/javascript" src="xuiconf.js"></script>
<script type="text/javascript">
var args = xui.getUrlParams(),
onEnd = function(){xui('loading').remove();};
if(args&&args.ficdn){
xui.ini.$FontIconsCDN=args.ficdn;
}
if(args&&args.cls){
xui.launch(args.cls, onEnd, args && args.lang||'', args && args.theme||'');
document.title += " [" + args.cls + "]";
}else{
xui.launch('App/js/index.js', onEnd, args && args.lang||'', args && args.theme||'');
}
/*
window.onerror = function(sMsg,sUrl,sLine){
alert('>>' + sMsg+' at File: '+ sUrl + ' ( line ' + sLine + ' ).');
}
*/
</script>
32 changes: 32 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="keywords" content="GUI design,GUI builder,web UI,RAD,RIA,development tool,multi-platform,cross-platform,web app" />
<meta name="description" content="Powered by CrossUI Front-End Builder - Create Interactive Front-End Without Coding" />
<meta name="copyright" content="[email protected]" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1,
width=device-width, height=device-height" />
<meta http-equiv="no-cache">
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="content-type" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="-1"/>
<!--link rel="stylesheet" type="text/css" href="CSS/default.css" /-->
<title>Powered by CrossUI Front-End Builder</title>
</head>
<body>
<div id="loading" style="position:fixed;width:100%;text-align:center;">
<img id="loadingimg" alt="Loading..." title="Loading..." src="//www.crossui.com/libs/2.0/loading.gif" />
</div>
</body>
</html>
<script type="text/javascript" src="//www.crossui.com/libs/2.0/js/xui-all.js"></script>
<script type="text/javascript" src="xuiconf.js"></script>
<script type="text/javascript">
if(typeof(xui)!=="undefined") xui.launch(xui.getUrlParams().cls||'App/js/index.js', function(){xui('loading').remove()});
else document.write("Can not find CrossUI library, please check it!");
</script>
Binary file added snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
118 changes: 118 additions & 0 deletions xuiconf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@

/*Do not modify {// [[*... // ]]*} pattern manually*/

// [[Gobal Code
(function(){
// //xui.stringify(new Date) => "2017-10-21T12:53:43.522+0800"
// xui.setDateFormat('gmt');

}());
// ]]Gobal Code


// [[Page Appearance
xui.ini.$PageAppearance = {
// "theme": "moonify",
// "background":{
// "background-color": "#FFFFFF",
// "background-image": "",
// "background-repeat": "",
// "background-position": "",
// "background-attachment": ""
// }
};
// ]]Page Appearance

// To set Font Icons CDN
// [[Font Icons CDN
xui.ini.$FontIconsCDN ={
"fontawesome":{
"href":"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css",
"integrity":"sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN",
"crossorigin":"anonymous",
"disabled":true
}
};
// ]]Font Icons CDN

// To set default prop to all xui.UI instances
// [[Default Prop
xui.ini.$DefaultProp={
"dirtyMark": false,
"xui.UI.Dialog":{
"minBtn": false
}
};
// ]]Default Prop

// [[Global Functions
xui.$cache.functions = {
"$APICaller:beforeData":{
"desc":"exception handler",
"params":[
{
"id":"rspData",
"type":"Hash",
"desc":""
}
],
"actions":[
{
"desc":"if returns exception",
"type":"other",
"target":"msg",
"args":[
"API returns exception",
"{args[0].error.message}"
],
"method":"alert",
"conditions":[
{
"left":"{args[0].error}",
"symbol":"non-empty",
"right":""
}
],
"timeout":0,
"onOK":2
}
]
},
"$APICaller:onError":{
"desc":"error handler",
"params":[
{
"id":"rspData",
"type":"Hash",
"desc":""
}
],
"actions":[
{
"desc":"if API raises error",
"type":"other",
"target":"msg",
"args":[
"API raises error",
"{args[0]}"
],
"method":"alert",
"onOK":2,
"timeout":0
}
]
}
};
// ]]Global Functions

// [[Global Data
xui.$cache.data = {
"$DATE_FORMAT":"gmt"
};
// ]]Global Data


// [[Constant Data
xui.constant = {
};
// ]]Constant Data

0 comments on commit f23cacf

Please sign in to comment.