Skip to content

Commit

Permalink
Merge pull request #7 from exsurgo/master
Browse files Browse the repository at this point in the history
Adding additional requires.   Fixing car listings template.  Clean-up.
  • Loading branch information
lojjic committed Nov 11, 2013
2 parents 816dbf8 + ffa13b3 commit d655cca
Show file tree
Hide file tree
Showing 35 changed files with 392 additions and 221 deletions.
4 changes: 4 additions & 0 deletions ext42/Basic/CascadingSelect/app.js
Expand Up @@ -20,6 +20,10 @@ Ext.Loader.setConfig({




Ext.application({ Ext.application({

requires: [
'Ext.window.MessageBox'
],
models: [ models: [
'Car' 'Car'
], ],
Expand Down
3 changes: 3 additions & 0 deletions ext42/Basic/CascadingSelect/metadata/Application
Expand Up @@ -13,6 +13,9 @@
"Car" "Car"
], ],
"name": "CascadingSelect", "name": "CascadingSelect",
"requires": [
"Ext.window.MessageBox"
],
"stores": [ "stores": [
"Cars" "Cars"
], ],
Expand Down
4 changes: 4 additions & 0 deletions ext42/Basic/CountdownTimer/app.js
Expand Up @@ -20,6 +20,10 @@ Ext.Loader.setConfig({




Ext.application({ Ext.application({

requires: [
'Ext.window.MessageBox'
],
views: [ views: [
'MainViewport' 'MainViewport'
], ],
Expand Down
3 changes: 3 additions & 0 deletions ext42/Basic/CountdownTimer/metadata/Application
Expand Up @@ -10,6 +10,9 @@
"Countdown" "Countdown"
], ],
"name": "MyApp", "name": "MyApp",
"requires": [
"Ext.window.MessageBox"
],
"views": [ "views": [
"MainViewport" "MainViewport"
] ]
Expand Down
4 changes: 4 additions & 0 deletions ext42/Basic/LoginRegister/app.js
Expand Up @@ -20,6 +20,10 @@ Ext.Loader.setConfig({




Ext.application({ Ext.application({

requires: [
'Ext.window.MessageBox'
],
views: [ views: [
'MainView', 'MainView',
'LoginForm', 'LoginForm',
Expand Down
3 changes: 3 additions & 0 deletions ext42/Basic/LoginRegister/metadata/Application
Expand Up @@ -10,6 +10,9 @@
"Account" "Account"
], ],
"name": "MyApp", "name": "MyApp",
"requires": [
"Ext.window.MessageBox"
],
"views": [ "views": [
"MainView", "MainView",
"LoginForm", "LoginForm",
Expand Down
4 changes: 4 additions & 0 deletions ext42/Basic/RightToLeft/app.js
Expand Up @@ -20,6 +20,10 @@ Ext.Loader.setConfig({




Ext.application({ Ext.application({

requires: [
'Ext.rtl.*'
],
stores: [ stores: [
'Records' 'Records'
], ],
Expand Down
4 changes: 4 additions & 0 deletions ext42/StarterApps/CRUD/app.js
Expand Up @@ -20,6 +20,10 @@ Ext.Loader.setConfig({




Ext.application({ Ext.application({

requires: [
'Ext.window.MessageBox'
],
models: [ models: [
'Record' 'Record'
], ],
Expand Down
2 changes: 1 addition & 1 deletion ext42/StarterApps/CRUD/app/controller/Records.js
Expand Up @@ -139,7 +139,7 @@ Ext.define('MyApp.controller.Records', {
var me = this; var me = this;


// Confirm this delete // Confirm this delete
Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete this record?', function(btn) { Ext.Msg.confirm('Confirm', 'Are you sure you want to delete this record?', function(btn) {


// User confirmed yes // User confirmed yes
if (btn == 'yes') { if (btn == 'yes') {
Expand Down
3 changes: 3 additions & 0 deletions ext42/StarterApps/CRUD/metadata/Application
Expand Up @@ -13,6 +13,9 @@
"Record" "Record"
], ],
"name": "MyApp", "name": "MyApp",
"requires": [
"Ext.window.MessageBox"
],
"stores": [ "stores": [
"Records" "Records"
], ],
Expand Down
2 changes: 1 addition & 1 deletion ext42/StarterApps/CRUD/metadata/controller/Records
Expand Up @@ -220,7 +220,7 @@
"var me = this;\r", "var me = this;\r",
"\r", "\r",
"// Confirm this delete\r", "// Confirm this delete\r",
"Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete this record?', function(btn) {\r", "Ext.Msg.confirm('Confirm', 'Are you sure you want to delete this record?', function(btn) {\r",
"\r", "\r",
" // User confirmed yes\r", " // User confirmed yes\r",
" if (btn == 'yes') {\r", " if (btn == 'yes') {\r",
Expand Down
177 changes: 169 additions & 8 deletions ext42/StarterApps/CarListings/app/store/CarDataStore.js
Expand Up @@ -18,8 +18,7 @@ Ext.define('MyApp.store.CarDataStore', {


requires: [ requires: [
'MyApp.model.CarData', 'MyApp.model.CarData',
'Ext.data.proxy.Ajax', 'Ext.data.proxy.Memory'
'Ext.data.reader.Json'
], ],


constructor: function(cfg) { constructor: function(cfg) {
Expand All @@ -30,12 +29,174 @@ Ext.define('MyApp.store.CarDataStore', {
model: 'MyApp.model.CarData', model: 'MyApp.model.CarData',
storeId: 'MyJsonStore', storeId: 'MyJsonStore',
proxy: { proxy: {
type: 'ajax', type: 'memory',
url: 'data/cars.json', data: [
reader: { {
type: 'json', img: '2004_Porsche_911_Carrera_type_997.jpg',
root: 'data' manufacturer: 'Porsche',
} model: '911',
price: 135000,
quality: [
{
name: 'overall',
rating: 1
},
{
name: 'mechanical',
rating: 4
},
{
name: 'powertrain',
rating: 2
},
{
name: 'body',
rating: 4
},
{
name: 'interior',
rating: 3
},
{
name: 'accessories',
rating: 2
}
],
wiki: 'http://en.wikipedia.org/wiki/Porsche_997'
},
{
img: '250px-Nissan_GT-R.jpg',
manufacturer: 'Nissan',
model: 'GT-R',
price: 80000,
quality: [
{
name: 'overall',
rating: 2
},
{
name: 'mechanical',
rating: 3
},
{
name: 'powertrain',
rating: 5
},
{
name: 'body',
rating: 4
},
{
name: 'interior',
rating: 2
},
{
name: 'accessories',
rating: 2
}
],
wiki: 'http://en.wikipedia.org/wiki/Nissan_Gt-r'
},
{
img: '250px-BMW_M3_E92.jpg',
manufacturer: 'BMW',
model: 'M3',
price: 60500,
quality: [
{
name: 'overall',
rating: 3
},
{
name: 'mechanical',
rating: 5
},
{
name: 'powertrain',
rating: 3
},
{
name: 'body',
rating: 4
},
{
name: 'interior',
rating: 5
},
{
name: 'accessories',
rating: 3
}
],
wiki: 'http://en.wikipedia.org/wiki/Bmw_m3'
},
{
img: '250px-Audi_S5.jpg',
manufacturer: 'Audi',
model: 'S5',
price: 53000,
quality: [
{
name: 'overall',
rating: 4
},
{
name: 'mechanical',
rating: 1
},
{
name: 'powertrain',
rating: 1
},
{
name: 'body',
rating: 4
},
{
name: 'interior',
rating: 1
},
{
name: 'accessories',
rating: 5
}
],
wiki: 'http://en.wikipedia.org/wiki/Audi_S5#Audi_S5'
},
{
img: '250px-2007_Audi_TT_Coupe.jpg',
manufacturer: 'Audi',
model: 'TT',
price: 40000,
quality: [
{
name: 'overall',
rating: 5
},
{
name: 'mechanical',
rating: 2
},
{
name: 'powertrain',
rating: 2
},
{
name: 'body',
rating: 3
},
{
name: 'interior',
rating: 4
},
{
name: 'accessories',
rating: 1
}
],
wiki: 'http://en.wikipedia.org/wiki/Audi_TT'
}
]
} }
}, cfg)]); }, cfg)]);
} }
Expand Down
19 changes: 0 additions & 19 deletions ext42/StarterApps/CarListings/app/view/Viewport.js

This file was deleted.

0 comments on commit d655cca

Please sign in to comment.