Permalink
Browse files

Adding additional requires. Fixing car listings template. Clean-up.

  • Loading branch information...
1 parent 816dbf8 commit ffa13b3e1f650bd8e312c8dabed0a9261a27b51f @exsurgo exsurgo committed Nov 11, 2013
Showing with 392 additions and 221 deletions.
  1. +4 −0 ext42/Basic/CascadingSelect/app.js
  2. +3 −0 ext42/Basic/CascadingSelect/metadata/Application
  3. +4 −0 ext42/Basic/CountdownTimer/app.js
  4. +3 −0 ext42/Basic/CountdownTimer/metadata/Application
  5. +4 −0 ext42/Basic/LoginRegister/app.js
  6. +3 −0 ext42/Basic/LoginRegister/metadata/Application
  7. +4 −0 ext42/Basic/RightToLeft/app.js
  8. +4 −0 ext42/StarterApps/CRUD/app.js
  9. +1 −1 ext42/StarterApps/CRUD/app/controller/Records.js
  10. +3 −0 ext42/StarterApps/CRUD/metadata/Application
  11. +1 −1 ext42/StarterApps/CRUD/metadata/controller/Records
  12. +169 −8 ext42/StarterApps/CarListings/app/store/CarDataStore.js
  13. +0 −19 ext42/StarterApps/CarListings/app/view/Viewport.js
  14. +0 −130 ext42/StarterApps/CarListings/data/cars.json
  15. +132 −17 ext42/StarterApps/CarListings/metadata/store/CarDataStore
  16. +4 −0 ext42/StarterApps/TaskList/app.js
  17. +1 −1 ext42/StarterApps/TaskList/app/controller/Tasks.js
  18. +3 −0 ext42/StarterApps/TaskList/metadata/Application
  19. +1 −1 ext42/StarterApps/TaskList/metadata/controller/Tasks
  20. +2 −2 touch22/Basic/LoginRegister/app/controller/Account.js
  21. +2 −2 touch22/Basic/LoginRegister/metadata/controller/Account
  22. +4 −0 touch22/StarterApps/FeedViewer/app.js
  23. +3 −0 touch22/StarterApps/FeedViewer/metadata/Application
  24. +1 −2 touch22/StarterApps/LocationManager/app/controller/Locations.js
  25. +1 −2 touch22/StarterApps/LocationManager/metadata/controller/Locations
  26. +2 −3 touch22/StarterApps/TaskList/app/controller/Tasks.js
  27. +2 −3 touch22/StarterApps/TaskList/metadata/controller/Tasks
  28. +2 −2 touch23/Basic/LoginRegister/app/controller/Account.js
  29. +2 −2 touch23/Basic/LoginRegister/metadata/controller/Account
  30. +3 −0 touch23/StarterApps/FeedViewer/app.js
  31. +3 −0 touch23/StarterApps/FeedViewer/metadata/Application
  32. +1 −2 touch23/StarterApps/LocationManager/app/controller/Locations.js
  33. +1 −2 touch23/StarterApps/LocationManager/metadata/controller/Locations
  34. +2 −3 touch23/StarterApps/TaskList/app/controller/Tasks.js
  35. +17 −18 touch23/StarterApps/TaskList/metadata/controller/Tasks
@@ -20,6 +20,10 @@ Ext.Loader.setConfig({
Ext.application({
+
+ requires: [
+ 'Ext.window.MessageBox'
+ ],
models: [
'Car'
],
@@ -13,6 +13,9 @@
"Car"
],
"name": "CascadingSelect",
+ "requires": [
+ "Ext.window.MessageBox"
+ ],
"stores": [
"Cars"
],
@@ -20,6 +20,10 @@ Ext.Loader.setConfig({
Ext.application({
+
+ requires: [
+ 'Ext.window.MessageBox'
+ ],
views: [
'MainViewport'
],
@@ -10,6 +10,9 @@
"Countdown"
],
"name": "MyApp",
+ "requires": [
+ "Ext.window.MessageBox"
+ ],
"views": [
"MainViewport"
]
@@ -20,6 +20,10 @@ Ext.Loader.setConfig({
Ext.application({
+
+ requires: [
+ 'Ext.window.MessageBox'
+ ],
views: [
'MainView',
'LoginForm',
@@ -10,6 +10,9 @@
"Account"
],
"name": "MyApp",
+ "requires": [
+ "Ext.window.MessageBox"
+ ],
"views": [
"MainView",
"LoginForm",
@@ -20,6 +20,10 @@ Ext.Loader.setConfig({
Ext.application({
+
+ requires: [
+ 'Ext.rtl.*'
+ ],
stores: [
'Records'
],
@@ -20,6 +20,10 @@ Ext.Loader.setConfig({
Ext.application({
+
+ requires: [
+ 'Ext.window.MessageBox'
+ ],
models: [
'Record'
],
@@ -139,7 +139,7 @@ Ext.define('MyApp.controller.Records', {
var me = this;
// 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
if (btn == 'yes') {
@@ -13,6 +13,9 @@
"Record"
],
"name": "MyApp",
+ "requires": [
+ "Ext.window.MessageBox"
+ ],
"stores": [
"Records"
],
@@ -220,7 +220,7 @@
"var me = this;\r",
"\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",
" // User confirmed yes\r",
" if (btn == 'yes') {\r",
@@ -18,8 +18,7 @@ Ext.define('MyApp.store.CarDataStore', {
requires: [
'MyApp.model.CarData',
- 'Ext.data.proxy.Ajax',
- 'Ext.data.reader.Json'
+ 'Ext.data.proxy.Memory'
],
constructor: function(cfg) {
@@ -30,12 +29,174 @@ Ext.define('MyApp.store.CarDataStore', {
model: 'MyApp.model.CarData',
storeId: 'MyJsonStore',
proxy: {
- type: 'ajax',
- url: 'data/cars.json',
- reader: {
- type: 'json',
- root: 'data'
- }
+ type: 'memory',
+ data: [
+ {
+ img: '2004_Porsche_911_Carrera_type_997.jpg',
+ 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)]);
}
@@ -1,19 +0,0 @@
-/*
- * File: app/view/Viewport.js
- *
- * This file was generated by Sencha Architect version 2.2.0.
- * http://www.sencha.com/products/architect/
- *
- * This file requires use of the Ext JS 4.1.x library, under independent license.
- * License of Sencha Architect does not include license for Ext JS 4.1.x. For more
- * details see http://www.sencha.com/license or contact license@sencha.com.
- *
- * This file will be auto-generated each and everytime you save your project.
- *
- * Do NOT hand edit this file.
- */
-
-Ext.define('MyApp.view.Viewport', {
- extend: 'MyApp.view.CarListings',
- renderTo: Ext.getBody()
-});
Oops, something went wrong.

0 comments on commit ffa13b3

Please sign in to comment.