Permalink
Browse files

initial commit

  • Loading branch information...
1 parent f6a03e9 commit 4c6bd4ba2b6f706601bcbba82ba0e2bafa6d0d45 @gregfroese gregfroese committed May 1, 2012
Showing 1,256 changed files with 300,868 additions and 0 deletions.
View
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>The page you were looking for doesn't exist (404)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/404.html -->
+ <div class="dialog">
+ <h1>The page you were looking for doesn't exist.</h1>
+ <p>You may have mistyped the address or the page may have moved.</p>
+ </div>
+</body>
+</html>
View
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>The change you wanted was rejected (422)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/422.html -->
+ <div class="dialog">
+ <h1>The change you wanted was rejected.</h1>
+ <p>Maybe you tried to change something you didn't have access to.</p>
+ </div>
+</body>
+</html>
View
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>We're sorry, but something went wrong (500)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/500.html -->
+ <div class="dialog">
+ <h1>We're sorry, but something went wrong.</h1>
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
+ </div>
+</body>
+</html>
View
1 app
View
1 app.js
View
View
No changes.
View
View
@@ -0,0 +1,5 @@
+# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
+#
+# To ban all spiders from the entire site uncomment the next two lines:
+# User-Agent: *
+# Disallow: /
View
1 sdk
View
@@ -0,0 +1,101 @@
+var rootPanel;
+
+//<debug>
+Ext.Loader.setPath({
+ 'Ext': 'sdk/src'
+});
+//</debug>
+
+
+Ext.application({
+ name: 'TwitterExample',
+
+ controllers: [],
+ views: [],
+ stores: [],
+ models: [],
+
+ requires: [
+ 'Ext.MessageBox'
+ ],
+
+ icon: {
+ 57: 'resources/icons/Icon.png',
+ 72: 'resources/icons/Icon~ipad.png',
+ 114: 'resources/icons/Icon@2x.png',
+ 144: 'resources/icons/Icon~ipad@2x.png'
+ },
+
+ phoneStartupScreen: 'resources/loading/Homescreen.jpg',
+ tabletStartupScreen: 'resources/loading/Homescreen~ipad.jpg',
+
+ launch: function() {
+
+ // Destroy the #appLoadingIndicator element
+ Ext.fly('appLoadingIndicator').destroy();
+
+ var button = Ext.create('Ext.Button', {
+ text: 'Button',
+ handler: function() {
+ console.log("click!");
+ },
+ });
+
+ // Initialize the main view
+ rootPanel = Ext.Viewport.add({
+ xtype: "container",
+ padding: 10,
+ items: [{
+ xtype: "panel",
+ html: "login with twitter example<br /><span id='login'></span>",
+ }]
+ });
+ },
+
+ onUpdated: function() {
+ Ext.Msg.confirm(
+ "Application Update",
+ "This application has just successfully been updated to the latest version. Reload now?",
+ function() {
+ window.location.reload();
+ }
+ );
+ },
+});
+
+function addLogoutButton() {
+ console.log("addLogoutButton");
+ rootPanel.add(
+ {
+ xtype: "button",
+ id: "logoutButton",
+ text: "logout of twitter",
+ handler: function() {
+ twttr.anywhere.signOut();
+ },
+ }
+ );
+}
+
+function processLogin(user) {
+ addLogoutButton();
+};
+
+function processLogout() {
+ var items = rootPanel.getItems();
+ console.log(items);
+ for(i=0; i<items.items.length; i++) {
+ id = items.items[i].getId();
+ console.log(id);
+ if(id=="logoutButton") {
+ rootPanel.remove(items.items[i], true);
+ }
+ }
+};
+
+function initializeAuth(T) {
+ console.log("initialize auth");
+ if(T.isConnected()) {
+ addLogoutButton();
+ }
+}
View
@@ -0,0 +1,112 @@
+{
+ /**
+ * The application's namespace, used by Sencha Command to generate classes
+ */
+ "name": "Twitter Example",
+
+ /**
+ * List of all JavaScript assets in the right execution order.
+ * Each item is an object with the following format:
+ * {
+ * "path": "path/to/script.js" // Relative path to this app.json file
+ * "update": "delta" // (Optional)
+ * // - If not specified, this file will only be loaded once, and
+ * // cached inside localStorage until this value is changed.
+ * // - "delta" to enable over-the-air delta update for this file
+ * // - "full" means full update will be made when this file changes
+ *
+ * }
+ */
+ "js": [
+ {
+ "path": "sdk/sencha-touch.js"
+ },
+ {
+ "path": "app.js",
+ "update": "delta"
+ }
+ ],
+
+ /**
+ * List of all CSS assets in the right inclusion order.
+ * Each item is an object with the following format:
+ * {
+ * "path": "path/to/item.css" // Relative path to this app.json file
+ * "update": "delta" // (Optional)
+ * // - If not specified, this file will only be loaded once, and
+ * // cached inside localStorage until this value is changed to either one below
+ * // - "delta" to enable over-the-air delta update for this file
+ * // - "full" means full update will be made when this file changes
+ *
+ * }
+ */
+ "css": [
+ {
+ "path": "resources/css/app.css",
+ "update": "delta"
+ }
+ ],
+
+ /**
+ * Used to automatically generate cache.manifest (HTML 5 application cache manifest) file when you build
+ */
+ "appCache": {
+ /**
+ * List of items in the CACHE MANIFEST section
+ */
+ "cache": [
+ "index.html"
+ ],
+ /**
+ * List of items in the NETWORK section
+ */
+ "network": [
+ "*"
+ ],
+ /**
+ * List of items in the FALLBACK section
+ */
+ "fallback": []
+ },
+
+ /**
+ * Extra resources to be copied along when build
+ */
+ "extras": [
+ "resources/images",
+ "resources/icons",
+ "resources/loading"
+ ],
+
+ /**
+ * Directory path to store all previous production builds. Note that the content generated inside this directory
+ * must be kept intact for proper generation of delta between updates
+ */
+ "archivePath": "archive",
+
+ /**
+ * Default paths to build this application to for each environment
+ */
+ "buildPaths": {
+ "testing": "build/testing",
+ "production": "build/production",
+ "package": "build/package",
+ "native": "build/native"
+ },
+
+ /**
+ * Build options
+ */
+ "buildOptions": {
+ "product": "touch",
+ "minVersion": 3,
+ "debug": false,
+ "logger": "no"
+ },
+
+ /**
+ * Uniquely generated id for this application, used as prefix for localStorage keys.
+ * Normally you should never change this value.
+ */
+ "id": "104a18e0-8715-11e1-8d30-a9f27c64bc7d"
+}
Oops, something went wrong.

0 comments on commit 4c6bd4b

Please sign in to comment.