Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfroese committed May 1, 2012
1 parent f6a03e9 commit 4c6bd4b
Show file tree
Hide file tree
Showing 1,256 changed files with 300,868 additions and 0 deletions.
26 changes: 26 additions & 0 deletions 404.html
@@ -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>
26 changes: 26 additions & 0 deletions 422.html
@@ -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>
26 changes: 26 additions & 0 deletions 500.html
@@ -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>
1 change: 1 addition & 0 deletions app
1 change: 1 addition & 0 deletions app.js
1 change: 1 addition & 0 deletions app.json
Empty file added favicon.ico
Empty file.
1 change: 1 addition & 0 deletions resources
5 changes: 5 additions & 0 deletions robots.txt
@@ -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: /
1 change: 1 addition & 0 deletions sdk
101 changes: 101 additions & 0 deletions sencha/app.js
@@ -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();
}
}
112 changes: 112 additions & 0 deletions sencha/app.json
@@ -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"
}

0 comments on commit 4c6bd4b

Please sign in to comment.