Skip to content

Commit

Permalink
Added build js files
Browse files Browse the repository at this point in the history
  • Loading branch information
chicagoduane committed Apr 12, 2011
1 parent 31a2a5b commit c2f0e4f
Show file tree
Hide file tree
Showing 6 changed files with 258 additions and 73 deletions.
2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Dependencies:

npm install qs
npm install mime
npm install connect
npm install express
npm install optparse # (for kaffeine)
145 changes: 145 additions & 0 deletions build/client/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
new Ext.Application({
name: 'Shopperpedia',

launch: function() {
return this.viewport = new Ext.Panel({
fullscreen: true,

id : 'mainPanel',
layout : 'card',
items : [
{
xtype : 'carousel',
defaults : {
cls : 'card'
},
items: [
{
title: 'Tab 1',
html: 'Card 1'
},
{
title: 'Tab 2',
html: 'Card 2'
},
{
title: 'Tab 3',
html: 'Card 3'
}
]
}
]
});
}
});

/*
new Ext.Application({
name: 'Shopperpedia',
launch: function() {
this.viewport = new Ext.Panel({
fullscreen: true,
id : 'mainPanel',
layout: 'card',
items : [
{
xtype: 'carousel',
defaults: {
cls: 'card'
},
items: [
{
html: ''
},
{
title: 'Tab 2',
html: '2'
},
{
title: 'Tab 3',
html: '3'
}
]
}
]
});
}
});
new Ext.Application({
launch: function() {
var formBase = {
scroll: 'vertical',
url : 'postUser.php',
standardSubmit : false,
items: [{
xtype: 'fieldset',
title: 'Personal Info',
// instructions: 'Please enter the information above.',
defaults: {
required: true,
labelAlign: 'left',
labelWidth: '40%'
},
items: [
{
xtype: 'textfield',
name : 'name',
label: 'Name',
useClearIcon: true,
autoCapitalize : true
},
{
xtype: 'textfield',
name : 'email',
label: 'Email',
useClearIcon: true,
autoCapitalize : false
}
]
},
{
xtype: 'button',
text: 'Next',
// align: 'right',
width: '50%',
ui: 'forward',
handler: function() {
if(formBase.user){
form.updateRecord(formBase.user, true);
}
form.submit({
waitMsg : {message:'Submitting', cls : 'demos-loading'}
});
}
}],
}
if (Ext.is.Phone) {
formBase.fullscreen = true;
} else {
Ext.apply(formBase, {
autoRender: true,
floating: true,
modal: true,
centered: true,
hideOnMaskTap: false,
height: 385,
width: 480
});
}
form = new Ext.form.FormPanel(formBase);
form.show();
var carousel1 = new Ext.Carousel();
carousel1.show();
}
});
*/
37 changes: 37 additions & 0 deletions build/server/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
var express, app; express = require('express')

app = express.createServer(
express.logger()
)

app.use('/js/client', express.static(__dirname + '/../client'))
app.use('/', express.static(__dirname + '/../../public'))

app.get('/test', function(req, res){
return res.send('Test U out');
})

app.listen(8001)

//
//
// connect = require('connect')
// http = require('http')
//
// callback = (req, res) {
// res.writeHead(200, {'Content-Type': 'text/html'});
// res.write('test')
// res.end()
// }
//
// console.log(__dirname + '/public')
//
// server = connect()
// server.use('/public', connect.static(__dirname + '/../public'))
// server.use('/test', callback)
// // server.use(require('browserify')({
// // base : __dirname + '/js',
// // mount : '/browserify.js',
// // }));
//
// server.listen(8001)
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Shopperpedia</title>

<script src="js/sencha-touch.js" type="text/javascript"></script>
<script src="js/application.js" type="text/javascript"></script>
<script src="js/client/app.js" type="text/javascript"></script>
<link href="css/sencha-touch.css" rel="stylesheet" type="text/css" />

</head>
Expand Down
139 changes: 70 additions & 69 deletions src/client/app.k
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ new Ext.Application({
},
items: [
{
html: ''
title: 'Tab 1',
html: 'Card 1'
},
{
title: 'Tab 2',
html: '2'
html: 'Card 2'
},
{
title: 'Tab 3',
html: '3'
html: 'Card 3'
}
]
}
Expand Down Expand Up @@ -71,73 +72,73 @@ new Ext.Application({
new Ext.Application({
launch: function() {

// var formBase = {
// scroll: 'vertical',
// url : 'postUser.php',
// standardSubmit : false,
// items: [{
// xtype: 'fieldset',
// title: 'Personal Info',
// // instructions: 'Please enter the information above.',
// defaults: {
// required: true,
// labelAlign: 'left',
// labelWidth: '40%'
// },
// items: [
// {
// xtype: 'textfield',
// name : 'name',
// label: 'Name',
// useClearIcon: true,
// autoCapitalize : true
// },
// {
// xtype: 'textfield',
// name : 'email',
// label: 'Email',
// useClearIcon: true,
// autoCapitalize : false
// }
// ]
// },
// {
// xtype: 'button',
// text: 'Next',
// // align: 'right',
// width: '50%',
// ui: 'forward',
// handler: function() {
// if(formBase.user){
// form.updateRecord(formBase.user, true);
// }
// form.submit({
// waitMsg : {message:'Submitting', cls : 'demos-loading'}
// });
// }
// }],
// }
//
// if (Ext.is.Phone) {
// formBase.fullscreen = true;
// } else {
// Ext.apply(formBase, {
// autoRender: true,
// floating: true,
// modal: true,
// centered: true,
// hideOnMaskTap: false,
// height: 385,
// width: 480
// });
// }
//
// form = new Ext.form.FormPanel(formBase);
// form.show();
var formBase = {
scroll: 'vertical',
url : 'postUser.php',
standardSubmit : false,
items: [{
xtype: 'fieldset',
title: 'Personal Info',
// instructions: 'Please enter the information above.',
defaults: {
required: true,
labelAlign: 'left',
labelWidth: '40%'
},
items: [
{
xtype: 'textfield',
name : 'name',
label: 'Name',
useClearIcon: true,
autoCapitalize : true
},
{
xtype: 'textfield',
name : 'email',
label: 'Email',
useClearIcon: true,
autoCapitalize : false
}
]
},
{
xtype: 'button',
text: 'Next',
// align: 'right',
width: '50%',
ui: 'forward',
handler: function() {
if(formBase.user){
form.updateRecord(formBase.user, true);
}
form.submit({
waitMsg : {message:'Submitting', cls : 'demos-loading'}
});
}
}],
}

if (Ext.is.Phone) {
formBase.fullscreen = true;
} else {
Ext.apply(formBase, {
autoRender: true,
floating: true,
modal: true,
centered: true,
hideOnMaskTap: false,
height: 385,
width: 480
});
}

form = new Ext.form.FormPanel(formBase);
form.show();

// var carousel1 = new Ext.Carousel();
//
// carousel1.show();
var carousel1 = new Ext.Carousel();

carousel1.show();
}
});

Expand Down
6 changes: 4 additions & 2 deletions src/server/app.k
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
express = require('express')

app = express.createServer(
express.logger(),
express.static(__dirname + '/../public')
express.logger()
)

app.use('/js/client', express.static(__dirname + '/../client'))
app.use('/', express.static(__dirname + '/../../public'))

app.get('/test', (req, res){
res.send('Test U out');
})
Expand Down

0 comments on commit c2f0e4f

Please sign in to comment.