Permalink
Browse files

much better structure

  • Loading branch information...
kristianmandrup committed Jun 22, 2012
1 parent 92bf0f4 commit bdf2d20b448f14da43ef69c736d3ae48f7ae8db4
Showing with 91,097 additions and 274 deletions.
  1. +3,234 −0 www/app/geo/data/africa/countries.kml
  2. BIN www/app/geo/data/brazilstateborders.zip
  3. BIN www/app/geo/data/country_borders.zip
  4. +3,670 −0 www/app/geo/data/denmark/allekommuner.kml
  5. BIN www/app/geo/data/denmark/allekommunerkmlformat.zip
  6. BIN www/app/geo/data/englandprovinceborders.zip
  7. +822 −0 www/app/geo/data/europe.kml
  8. BIN www/app/geo/data/germanyprovinceborders.zip
  9. BIN www/app/geo/data/italyprovince_borders.zip
  10. BIN www/app/geo/data/us_states_borders.zip
  11. +82,203 −0 www/app/geo/data/usa/counties.kml
  12. +75 −0 www/app/geo/load_kml_data.js
  13. BIN www/app/geo/proj4js.zip
  14. +0 −9 www/app/view/Home.js
  15. +12 −0 www/app/view/home/about/costs/Content.js
  16. +18 −0 www/app/view/home/about/costs/Page.js
  17. +12 −0 www/app/view/home/about/faq/Content.js
  18. +18 −0 www/app/view/home/about/faq/Page.js
  19. +12 −0 www/app/view/home/about/follow/Content.js
  20. +18 −0 www/app/view/home/about/follow/Page.js
  21. +0 −32 www/app/view/mail/NavBar.js
  22. +22 −0 www/app/view/mail/TopBar.js
  23. +15 −0 www/app/view/mail/account/Content.js
  24. +18 −0 www/app/view/mail/account/NavBar.js
  25. +18 −0 www/app/view/mail/account/Page.js
  26. +15 −0 www/app/view/mail/inbox/Content.js
  27. +20 −31 www/app/view/mail/inbox/NavBar.js
  28. +18 −0 www/app/view/mail/inbox/Page.js
  29. +15 −0 www/app/view/mail/inbox/reply/Content.js
  30. +24 −0 www/app/view/mail/inbox/reply/NavBar.js
  31. +18 −0 www/app/view/mail/inbox/reply/Page.js
  32. +15 −0 www/app/view/mail/sentbox/Content.js
  33. +20 −31 www/app/view/mail/sentbox/NavBar.js
  34. +18 −0 www/app/view/mail/sentbox/Page.js
  35. +15 −0 www/app/view/mail/trashbox/Content.js
  36. +20 −31 www/app/view/mail/trashbox/NavBar.js
  37. +18 −0 www/app/view/mail/trashbox/Page.js
  38. +15 −0 www/app/view/mail/type/Content.js
  39. +18 −0 www/app/view/mail/type/NavBar.js
  40. +18 −0 www/app/view/mail/type/Page.js
  41. 0 www/app/view/{ → nav}/button/Home.js
  42. +8 −0 www/app/view/nav/button/mail/Inbox.js
  43. +31 −0 www/app/view/properties/NavBar.js
  44. +2 −4 www/app/view/properties/list/Item.js
  45. +0 −31 www/app/view/properties/list/NavBar.js
  46. +1 −1 www/app/view/properties/list/Page.js
  47. +1 −1 www/app/view/properties/map/Content.js
  48. +18 −0 www/app/view/properties/map/Page.js
  49. +15 −0 www/app/view/properties/map/quickview/Overlay.js
  50. 0 www/app/view/property/Overview.js
  51. +18 −0 www/app/view/property/Page.js
  52. 0 www/app/view/property/details/Costs.js
  53. 0 www/app/view/property/details/Description.js
  54. 0 www/app/view/property/details/Location.js
  55. +0 −1 www/app/view/property/details/NavBar.js
  56. 0 www/app/view/{mail/MailSystem.js → property/edit/Content.js}
  57. 0 www/app/view/{search/property → property/edit}/NavBar.js
  58. 0 www/app/view/{mail/ReadMail.js → property/edit/Page.js}
  59. +35 −0 www/app/view/property/edit/details/NavBar.js
  60. +19 −0 www/app/view/property/edit/details/TopBar.js
  61. +15 −0 www/app/view/property/edit/details/contact_info/Content.js
  62. +18 −0 www/app/view/property/edit/details/contact_info/Page.js
  63. +15 −0 www/app/view/property/edit/details/description/Content.js
  64. +18 −0 www/app/view/property/edit/details/description/Page.js
  65. +15 −0 www/app/view/property/edit/details/location/Content.js
  66. +18 −0 www/app/view/property/edit/details/location/Page.js
  67. +15 −0 www/app/view/property/edit/details/period/Content.js
  68. +18 −0 www/app/view/property/edit/details/period/Page.js
  69. +15 −0 www/app/view/property/edit/details/photo_upload/Content.js
  70. +18 −0 www/app/view/property/edit/details/photo_upload/Page.js
  71. +15 −0 www/app/view/property/edit/more/details/costs/Content.js
  72. +18 −0 www/app/view/property/edit/more/details/costs/Page.js
  73. +18 −0 www/app/view/registration/landlord/register/Content.js
  74. +1 −1 www/app/view/registration/landlord/register/NavBar.js
  75. +2 −2 www/app/view/registration/landlord/why_us/Content.js
  76. +1 −1 www/app/view/registration/landlord/why_us/NavBar.js
  77. +18 −0 www/app/view/registration/tenant/register/Content.js
  78. +25 −0 www/app/view/registration/tenant/register/NavBar.js
  79. +18 −0 www/app/view/registration/tenant/register/Page.js
  80. +15 −0 www/app/view/registration/tenant/why_us/Content.js
  81. +18 −0 www/app/view/registration/tenant/why_us/NavBar.js
  82. +18 −0 www/app/view/registration/tenant/why_us/Page.js
  83. 0 www/app/view/search/agents/AgentList.js
  84. +15 −0 www/app/view/search/agents/Content.js
  85. +18 −0 www/app/view/search/agents/Page.js
  86. +15 −0 www/app/view/search/favorites/Content.js
  87. +19 −0 www/app/view/search/favorites/Page.js
  88. +15 −0 www/app/view/search/history/Content.js
  89. 0 www/app/view/search/history/CriteriaList.js
  90. +18 −0 www/app/view/search/history/Page.js
  91. 0 www/app/view/search/properties/ResultList.js
  92. 0 www/app/view/search/properties/ResultMap.js
  93. 0 www/app/view/session/Login.js
  94. +21 −0 www/app/view/settings/Content.js
  95. +25 −0 www/app/view/settings/Navbar.js
  96. +18 −0 www/app/view/settings/Page.js
  97. +19 −0 www/app/view/settings/TopBar.js
  98. 0 www/app/view/{mail/inbox/ReplyMail.js → settings/account/Content.js}
  99. 0 www/app/view/{preferences/Currencies.js → settings/account/Page.js}
  100. 0 www/app/view/{preferences/Languages.js → settings/currency/List.js}
  101. 0 www/app/view/{preferences/Navbar.js → settings/language/List.js}
  102. +0 −32 www/app/view/tenant/bottombar/Home.js
  103. +0 −33 www/app/view/tenant/bottombar/List.js
  104. +0 −33 www/app/view/tenant/bottombar/Map.js

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,75 @@
+// http://indiemaps.com/blog/2010/06/interactive-mapping-with-html5-javascript-and-canvas/
+
+// http://finder.geocommons.com/
+$.get( "data/kml/generalized_african_countries.kml", function( xml ) {
+ var features = new Array();
+ $( xml ).find( 'Placemark' ).each( function() {
+ var rings = new Array();
+ $( this ).find( 'outerBoundaryIs' ).each( function() {
+ var ring = new Array();
+ var coordsText = $( this ).find( 'coordinates' ).text();
+ var coordStrings = coordsText.split( ' ' );
+ for ( var coordText in coordStrings ) {
+ var coordinate = new Array();
+ var coordSplit = coordStrings[ coordText ].split( ',' );
+ for ( var coordInd in coordSplit ) coordinate.push( Number( coordSplit[ coordInd ] ) );
+ ring.push( coordinate );
+ }
+ rings.push( ring );
+ } );
+ features.push( rings );
+ } );
+
+ /* feature coordinates all loaded -- now do something with them */
+
+} );
+
+
+Proj4js.defs[ 'albersEqualArea_Africa' ] = '+title= albers_AFR\
+ +proj=aea\
+ +lat_1=20\
+ +lat_2=-23\
+ +lat_0=0\
+ +lon_0=25\
+ +x_0=0\
+ +y_0=0\
+ +ellps=WGS84\
+ +datum=WGS84\
+ +units=m\
+ +no_defs';
+var source = new Proj4js.Proj( 'WGS:84' );
+var dest = new Proj4js.Proj( 'albersEqualArea_Africa' );
+
+
+// And thereafter you can call
+
+Proj4js.transform( source, dest, pt );
+
+// ...
+
+function drawPolygonFeatures( features, minX, maxX, minY, maxY )
+{
+ var c_canvas = document.getElementById( "map" );
+ var context = c_canvas.getContext("2d");
+ var multiFactor = Math.min( c_canvas.width / ( maxX - minX ), c_canvas.height / ( maxY - minY ) );
+ var x = 0; var y = 0;
+ for ( var featureNum in features ) {
+ for ( var ringNum in features[ featureNum ] ) {
+ var ring = features[ featureNum ][ ringNum ];
+ context.moveTo( ( ring[ 0 ][ 0 ] - minX ) * multiFactor, c_canvas.height - ( ring[ 0 ][ 1 ] - minY ) * multiFactor );
+ for ( var coordNum = 1; coordNum < ring.length; coordNum++ ) {
+ x = ( ring[ coordNum ][ 0 ] - minX ) * multiFactor;
+ y = c_canvas.height - ( ring[ coordNum ][ 1 ] - minY ) * multiFactor;
+ context.lineTo( x, y );
+ }
+ }
+ }
+ context.shadowOffsetX = context.shadowOffsetY = 3;
+ context.shadowBlur = 4;
+ context.shadowColor = 'rgba(0, 0, 0, 0.5)';
+ context.fillStyle = "#0099cc";
+ context.fill();
+ context.shadowOffsetX = context.shadowOffsetY = context.shadowBlur = 0;
+ context.strokeStyle = "#fff";
+ context.stroke();
+}
View
Binary file not shown.
View
@@ -1,9 +0,0 @@
-Ext.define("FriendlyRent.view.Home", {
- extend: 'Ext.Panel',
- alias: 'widget.home',
-
- config: {
- items: [
- ]
- }
-});
@@ -0,0 +1,12 @@
+Ext.define('FriendlyRent.view.home.about.costs.Content', {
+ extend: 'Ext.Panel',
+ alias: 'widget.home.about.costs.content',
+ config: {
+ layout: 'vbox',
+ items: [{
+ {
+ html: 'How much does it cost?'
+ }
+ }]
+ }
+});
@@ -0,0 +1,18 @@
+Ext.define('FriendlyRent.view.home.about.costs.Page', {
+ extend: 'Ext.Panel',
+ alias: 'widget.home.about.costs.page',
+ config: {
+ layout: 'vbox'
+ },
+ items: [
+ {
+ xtype 'home.about.topbar'
+ },
+ {
+ xtype 'home.about.costs.content'
+ },
+ {
+ xtype 'home.about.navbar'
+ }
+ }
+});
@@ -0,0 +1,12 @@
+Ext.define('FriendlyRent.view.home.about.costs.Content', {
+ extend: 'Ext.Panel',
+ alias: 'widget.home.about.costs.content',
+ config: {
+ layout: 'vbox',
+ items: [{
+ {
+ html: 'FAQ'
+ }
+ }]
+ }
+});
@@ -0,0 +1,18 @@
+Ext.define('FriendlyRent.view.home.about.faq.Page', {
+ extend: 'Ext.Panel',
+ alias: 'widget.home.about.faq.page',
+ config: {
+ layout: 'vbox'
+ },
+ items: [
+ {
+ xtype 'home.about.topbar'
+ },
+ {
+ xtype 'home.about.faq.content'
+ },
+ {
+ xtype 'home.about.navbar'
+ }
+ }
+});
@@ -0,0 +1,12 @@
+Ext.define('FriendlyRent.view.home.about.follow.Content', {
+ extend: 'Ext.Panel',
+ alias: 'widget.home.about.follow.content',
+ config: {
+ layout: 'vbox',
+ items: [{
+ {
+ html: 'Follow'
+ }
+ }]
+ }
+});
@@ -0,0 +1,18 @@
+Ext.define('FriendlyRent.view.home.about.follow.Page', {
+ extend: 'Ext.Panel',
+ alias: 'widget.home.about.follow.page',
+ config: {
+ layout: 'vbox'
+ },
+ items: [
+ {
+ xtype 'home.about.topbar'
+ },
+ {
+ xtype 'home.about.follow.content'
+ },
+ {
+ xtype 'home.about.navbar'
+ }
+ }
+});
@@ -1,32 +0,0 @@
-Ext.define("FriendlyRent.view.bottombar.List", {
- extend: 'Ext.tab.Panel',
- alias: "widget.bottombar.list",
- config: {
- tabBarPosition: 'bottom',
- defaults: {
- html: 'text',
- styleHtmlContent: true
- },
- layout: {
- pack: 'center',
- animation: {type: 'slide', duration: 500 }
- },
- items: [
- {
- iconCls: 'home'
- },
- {
- iconCls: 'compose' // type
- },
- {
- iconCls: 'action' // inbox
- },
- {
- iconCls: 'action' // sentbox
- },
- {
- iconCls: 'action' // trashbox
- }
- ]
- }
-});
@@ -0,0 +1,22 @@
+Ext.define("FriendlyRent.view.mail.TopBar", {
+ extend: 'Ext.Panel',
+ alias: "widget.mail.topbar",
+ config: {
+ tabBarPosition: 'top',
+ defaults: {
+ html: 'text',
+ styleHtmlContent: true
+ },
+ layout: {
+ pack: 'center',
+ },
+ items: [
+ {
+ xtype: 'backBtn'
+ },
+ {
+ xtype: 'orderBtn'
+ }
+ ]
+ }
+});
@@ -0,0 +1,15 @@
+Ext.define('FriendlyRent.view.mail.account.Content', {
+ extend: 'Ext.Panel',
+ alias: 'widget.mail.account.content',
+ config: {
+ layout: 'vbar',
+ items: [
+ {
+ html: 'Choose email account'
+ },
+ {
+ html: 'Tenant or Landlord'
+ }
+ ]
+ }
+});
@@ -0,0 +1,18 @@
+Ext.define("FriendlyRent.view.mail.account.NavBar", {
+ extend: 'Ext.tab.Panel',
+ alias: "registration.mail.account.navbar",
+ config: {
+ tabBarPosition: 'bottom',
+ layout: {
+ pack: 'center',
+ },
+ items: [
+ {
+ xtype: 'mailMenuBtn'
+ },
+ {
+ xtype: 'accountBtn'
+ }
+ ]
+ }
+});
@@ -0,0 +1,18 @@
+Ext.define('FriendlyRent.view.mail.account.Page', {
+ extend: 'Ext.Panel',
+ alias: 'widget.mail.account.page',
+ config: {
+ layout: 'vbox'
+ },
+ items: [
+ {
+ xtype 'mail.topbar'
+ },
+ {
+ xtype 'mail.account.content'
+ },
+ {
+ xtype 'mail.account.navbar'
+ }
+ }
+});
@@ -0,0 +1,15 @@
+Ext.define('FriendlyRent.view.mail.inbox.Content', {
+ extend: 'Ext.Panel',
+ alias: 'widget.mail.inbox.content',
+ config: {
+ layout: 'vbar',
+ items: [
+ {
+ html: 'Inbox'
+ },
+ {
+ html: 'received mail'
+ }
+ ]
+ }
+});
@@ -1,32 +1,21 @@
-Ext.define("FriendlyRent.view.bottombar.List", {
- extend: 'Ext.tab.Panel',
- alias: "widget.bottombar.list",
- config: {
- tabBarPosition: 'bottom',
- defaults: {
- html: 'text',
- styleHtmlContent: true
- },
- layout: {
- pack: 'center',
- animation: {type: 'slide', duration: 500 }
- },
- items: [
- {
- iconCls: 'home'
- },
- {
- iconCls: 'compose' // type
- },
- {
- iconCls: 'action' // inbox
- },
- {
- iconCls: 'action' // sentbox
- },
- {
- iconCls: 'action' // trashbox
- }
- ]
- }
+Ext.define("FriendlyRent.view.mail.inbox.NavBar", {
+ extend: 'Ext.tab.Panel',
+ alias: "mail.inbox.navbar",
+ config: {
+ tabBarPosition: 'bottom',
+ layout: {
+ pack: 'center',
+ },
+ items: [
+ {
+ xtype: 'mailMenuBtn'
+ },
+ {
+ xtype: 'typeBtn'
+ },
+ {
+ xtype: 'inboxBtn'
+ }
+ ]
+ }
});
@@ -0,0 +1,18 @@
+Ext.define('FriendlyRent.view.mail.inbox.Page', {
+ extend: 'Ext.Panel',
+ alias: 'widget.mail.inbox.page',
+ config: {
+ layout: 'vbox'
+ },
+ items: [
+ {
+ xtype 'mail.topbar'
+ },
+ {
+ xtype 'mail.inbox.content'
+ },
+ {
+ xtype 'mail.inbox.navbar'
+ }
+ }
+});
Oops, something went wrong.

0 comments on commit bdf2d20

Please sign in to comment.