Skip to content
Browse files

Remove svn files and clean up directories.

  • Loading branch information...
1 parent e0e69cb commit 6b054ac6ebc6cb202163ae2a012ddc3ba7c3404f @jbueza committed Dec 23, 2011
Showing with 0 additions and 1,531 deletions.
  1. +0 −5 History.md
  2. +0 −5 Makefile
  3. +0 −11 lib/.svn/all-wcprops
  4. +0 −62 lib/.svn/entries
  5. +0 −131 lib/.svn/text-base/Shorteh.js.svn-base
  6. +0 −5 logs/.svn/all-wcprops
  7. +0 −28 logs/.svn/entries
  8. +0 −11 public/.svn/all-wcprops
  9. +0 −71 public/.svn/entries
  10. +0 −5 public/.svn/prop-base/favicon.ico.svn-base
  11. BIN public/.svn/text-base/favicon.ico.svn-base
  12. +0 −17 public/images/.svn/all-wcprops
  13. +0 −96 public/images/.svn/entries
  14. +0 −5 public/images/.svn/prop-base/ball.png.svn-base
  15. +0 −5 public/images/.svn/prop-base/logo-resaas.png.svn-base
  16. BIN public/images/.svn/text-base/ball.png.svn-base
  17. BIN public/images/.svn/text-base/logo-resaas.png.svn-base
  18. BIN public/images/ball.png
  19. +0 −11 public/javascripts/.svn/all-wcprops
  20. +0 −68 public/javascripts/.svn/entries
  21. +0 −10 public/javascripts/.svn/text-base/shorteh.config.js.svn-base
  22. +0 −11 public/javascripts/shorteh/.svn/all-wcprops
  23. +0 −74 public/javascripts/shorteh/.svn/entries
  24. +0 −4 public/javascripts/shorteh/.svn/text-base/SiteMap.js.svn-base
  25. +0 −11 public/javascripts/shorteh/behavior/.svn/all-wcprops
  26. +0 −62 public/javascripts/shorteh/behavior/.svn/entries
  27. +0 −151 public/javascripts/shorteh/behavior/.svn/text-base/BallsBehavior.js.svn-base
  28. +0 −11 public/javascripts/shorteh/command/.svn/all-wcprops
  29. +0 −62 public/javascripts/shorteh/command/.svn/entries
  30. +0 −16 public/javascripts/shorteh/command/.svn/text-base/ShortenURLCommand.js.svn-base
  31. +0 −11 public/javascripts/shorteh/controller/.svn/all-wcprops
  32. +0 −62 public/javascripts/shorteh/controller/.svn/entries
  33. +0 −17 public/javascripts/shorteh/controller/.svn/text-base/FormController.js.svn-base
  34. +0 −11 public/javascripts/shorteh/service/.svn/all-wcprops
  35. +0 −62 public/javascripts/shorteh/service/.svn/entries
  36. +0 −14 public/javascripts/shorteh/service/.svn/text-base/Locator.js.svn-base
  37. +0 −11 public/stylesheets/.svn/all-wcprops
  38. +0 −62 public/stylesheets/.svn/entries
  39. +0 −186 public/stylesheets/.svn/text-base/style.css.svn-base
  40. +0 −17 views/.svn/all-wcprops
  41. +0 −96 views/.svn/entries
  42. +0 −10 views/.svn/text-base/index.jade.svn-base
  43. +0 −24 views/.svn/text-base/layout.jade.svn-base
View
5 History.md
@@ -1,5 +0,0 @@
-
-0.0.1 / 2010-01-03
-==================
-
- * Initial release
View
5 Makefile
@@ -1,5 +0,0 @@
-
-test:
- @echo "populate me"
-
-.PHONY: test
View
11 lib/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 58
-/svn/!svn/ver/1095/CP/trunk/source/RESAAS.UrlShortener/lib
-END
-Shorteh.js
-K 25
-svn:wc:ra_dav:version-url
-V 69
-/svn/!svn/ver/1095/CP/trunk/source/RESAAS.UrlShortener/lib/Shorteh.js
-END
View
62 lib/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/lib
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:48:36.366382Z
-1095
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-Shorteh.js
-file
-
-
-
-
-2011-09-11T05:47:59.000000Z
-8f3d8c0ae01b1b102f26e56d2d9c7d40
-2011-09-11T05:48:36.366382Z
-1095
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-3513
-
View
131 lib/.svn/text-base/Shorteh.js.svn-base
@@ -1,131 +0,0 @@
-
-/*!
- * Shorteh
- * Copyright(c) 2011 Jaime Bueza <jaime.bueza@resaas.com>
- * MIT Licensed
- */
-
-/**
- * Library version.
- */
-
-exports.version = '0.0.1';
-
-var redis = require('redis-node')
- , reds = require('reds')
- , redisClient = redis.createClient()
- , alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("")
- , base = alphabet.length
- , Shorteh = function() {};
-
-Shorteh.execute = function execute(params) {
- var url = params['params']['url']
- , message = function() {
- return JSON.stringify({ Code: 404, Message: "Unable to find URL."});
- }()
- , now = new Date().getTime()
- , self = this
- , guid = self.createGuid();
-
- if ( !url.length ) return params.response.end(message);
-
- //search the db for the URL
- //if it doesn't exist
- // create it, get its GUID and auto incremented id
- //encode the id, return it to the servicd layer
- //if it does exist
- //get its encoded value and return it to the service layer
-
- redisClient.hgetall(encodeURI(url), function(err, data) {
- if (!data) {
- //it doesn't exist
- redisClient.dbsize( function (err, numKeys) {
- //auto increment
- var id = numKeys + 1;
- var hash = self.encode(id);
-
-
- var data = {
- guid: guid,
- date: now,
- url: encodeURI(url),
- hash: hash,
- id: id
- };
-
- redisClient.hmset(encodeURI(url), data, function(err, status) {
- params.response.end(self.JSONResponse({ code: 1, url: "http://resa.as/" + data.hash }));
- });
- });
- } else {
- //it exists in the keystore, return its encoded value to the service layer
- params.response.end(self.JSONResponse({ code: 1, url: "http://resa.as/" + data.hash }));
- }
- });
-};
-
-Shorteh.metrics = function metrics(params) {
- console.log("CALLING METRICS!");
- //params.response.end(JSONResponse({ Code: 1, Message: ""}))
-
-};
-
-Shorteh.redirect = function redirect(params) {
- var hash = params.hash;
- redisClient.keys('*', function(err, keys) {
- keys.forEach(function(key, index) {
- redisClient.hgetall(key, function(err, data) {
- if (data && hash == data.hash) {
- params.response.redirect(data.url);
- }
- });
- });
- setTimeout(function() {
- params.response.redirect('/');
- }, 5000);
- });
-};
-
-/*
- * Function: JSONResponse
- * Provides an easy way of passing objects into it and returning a string representation
- * of the object.
- * @param members {Object}
- */
-Shorteh.JSONResponse = function JSONResponse(members) {
- return JSON.stringify(members);
-};
-
-/*
- * Function: encode
- * @param id - {Integer} - Passing in an integer will return a base62 (alphabetical) value
- */
-
-Shorteh.encode = function encode(id) {
- if (id == 0) return alphabet[0];
- var code = "";
- while (id > 0) {
- code += alphabet[id % base];
- id = parseInt(id / base, 10);
- }
- return code.split("").reverse().join("");
-};
-
-Shorteh.decode = function decode(code) {
- var i = 0;
-
- for ( var index = 0, len = code.length; index < len; index++) {
- var character = code[index];
- i = i * base + alphabet.indexOf(character);
- }
- return i;
-};
-
-Shorteh.createGuid = function createGuid() {
- var S4 = function() {
- return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
- };
- return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());
-};
-
-module.exports = Shorteh;
View
5 logs/.svn/all-wcprops
@@ -1,5 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 59
-/svn/!svn/ver/1090/CP/trunk/source/RESAAS.UrlShortener/logs
-END
View
28 logs/.svn/entries
@@ -1,28 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/logs
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T03:45:09.900503Z
-1090
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
View
11 public/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 61
-/svn/!svn/ver/1094/CP/trunk/source/RESAAS.UrlShortener/public
-END
-favicon.ico
-K 25
-svn:wc:ra_dav:version-url
-V 73
-/svn/!svn/ver/1091/CP/trunk/source/RESAAS.UrlShortener/public/favicon.ico
-END
View
71 public/.svn/entries
@@ -1,71 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:30:20.415132Z
-1094
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-images
-dir
-
-javascripts
-dir
-
-stylesheets
-dir
-
-favicon.ico
-file
-
-
-
-
-2011-08-28T07:58:37.000000Z
-d1b983ab61e7b66c24cc4ddf4bd1f191
-2011-09-11T04:23:02.712337Z
-1091
-jaime.bueza
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-1150
-
View
5 public/.svn/prop-base/favicon.ico.svn-base
@@ -1,5 +0,0 @@
-K 13
-svn:mime-type
-V 24
-application/octet-stream
-END
View
BIN public/.svn/text-base/favicon.ico.svn-base
Binary file not shown.
View
17 public/images/.svn/all-wcprops
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 68
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/public/images
-END
-logo-resaas.png
-K 25
-svn:wc:ra_dav:version-url
-V 84
-/svn/!svn/ver/1091/CP/trunk/source/RESAAS.UrlShortener/public/images/logo-resaas.png
-END
-ball.png
-K 25
-svn:wc:ra_dav:version-url
-V 77
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/public/images/ball.png
-END
View
96 public/images/.svn/entries
@@ -1,96 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public/images
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-logo-resaas.png
-file
-
-
-
-
-2011-08-28T07:58:26.000000Z
-fcb7eac8b65437e1260dc7d1d801ae9b
-2011-09-11T04:23:02.712337Z
-1091
-jaime.bueza
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-7973
-
-ball.png
-file
-
-
-
-
-2011-09-04T23:04:09.000000Z
-d9b2f9599b4c7b18010ad937667c39d2
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-3983
-
View
5 public/images/.svn/prop-base/ball.png.svn-base
@@ -1,5 +0,0 @@
-K 13
-svn:mime-type
-V 24
-application/octet-stream
-END
View
5 public/images/.svn/prop-base/logo-resaas.png.svn-base
@@ -1,5 +0,0 @@
-K 13
-svn:mime-type
-V 24
-application/octet-stream
-END
View
BIN public/images/.svn/text-base/ball.png.svn-base
Binary file not shown.
View
BIN public/images/.svn/text-base/logo-resaas.png.svn-base
Binary file not shown.
View
BIN public/images/ball.png
Deleted file not rendered
View
11 public/javascripts/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 73
-/svn/!svn/ver/1094/CP/trunk/source/RESAAS.UrlShortener/public/javascripts
-END
-shorteh.config.js
-K 25
-svn:wc:ra_dav:version-url
-V 91
-/svn/!svn/ver/1091/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh.config.js
-END
View
68 public/javascripts/.svn/entries
@@ -1,68 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public/javascripts
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:30:20.415132Z
-1094
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-dist
-dir
-
-shorteh.config.js
-file
-
-
-
-
-2011-09-11T04:06:28.000000Z
-3eb937137eeb2e15f6eb35ff67b02f71
-2011-09-11T04:23:02.712337Z
-1091
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-305
-
-shorteh
-dir
-
View
10 public/javascripts/.svn/text-base/shorteh.config.js.svn-base
@@ -1,10 +0,0 @@
-dojo.registerModulePath("shorteh", "../shorteh");
-dojo.require("shorteh.SiteMap");
-dojo.require("shorteh.service.Locator");
-
-dojo.addOnLoad(function() {
- var ctrlIniter = mojo.controller.Map.getInstance();
- ctrlIniter.setSiteMap(shorteh.SiteMap);
- ctrlIniter.mapControllers(window.location.href);
-});
-
View
11 public/javascripts/shorteh/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 81
-/svn/!svn/ver/1094/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh
-END
-SiteMap.js
-K 25
-svn:wc:ra_dav:version-url
-V 92
-/svn/!svn/ver/1091/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/SiteMap.js
-END
View
74 public/javascripts/shorteh/.svn/entries
@@ -1,74 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:30:20.415132Z
-1094
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-behavior
-dir
-
-service
-dir
-
-controller
-dir
-
-SiteMap.js
-file
-
-
-
-
-2011-09-11T04:10:23.000000Z
-d7e92ba587a5da25afc51b68456db3e6
-2011-09-11T04:23:02.712337Z
-1091
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-145
-
-command
-dir
-
View
4 public/javascripts/shorteh/.svn/text-base/SiteMap.js.svn-base
@@ -1,4 +0,0 @@
-dojo.provide("shorteh.SiteMap");
-shorteh.SiteMap = [
- { pattern: "form", controllers: [{ controller: "shorteh.controller.FormController" }] }
-];
View
11 public/javascripts/shorteh/behavior/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 90
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/behavior
-END
-BallsBehavior.js
-K 25
-svn:wc:ra_dav:version-url
-V 107
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/behavior/BallsBehavior.js
-END
View
62 public/javascripts/shorteh/behavior/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/behavior
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-BallsBehavior.js
-file
-
-
-
-
-2011-09-11T05:03:44.000000Z
-23498ab570e47892f75f6ceca437fb4d
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-3920
-
View
151 public/javascripts/shorteh/behavior/.svn/text-base/BallsBehavior.js.svn-base
@@ -1,151 +0,0 @@
-dojo.provide('shorteh.behavior.BallsBehavior');
-dojo.declare('shorteh.behavior.BallsBehavior', mojo.command.Behavior, {
-
- execute: function(requestObj) {
-
-
- if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
-
- var container, stats;
- var camera, scene, renderer, particles, geometry, material, i, h, color, colors = [], sprite, size, x, y, z;
- var mouseX = 0, mouseY = 0;
-
- var windowHalfX = window.innerWidth / 2;
- var windowHalfY = window.innerHeight / 2;
-
- init();
- animate();
-
- function init() {
-
- container = document.createElement( 'div' );
- container.className = 'ballslol'
- document.body.appendChild( container );
-
- camera = new THREE.Camera( 50, window.innerWidth / window.innerHeight, 1, 3000 );
- camera.position.z = 1400;
-
- scene = new THREE.Scene();
- scene.fog = new THREE.FogExp2( 0x000000, 0.0006 );
-
- geometry = new THREE.Geometry();
-
- sprite = THREE.ImageUtils.loadTexture( "/images/ball.png" );
-
- for ( i = 0; i < 5000; i++ ) {
-
- x = 2000 * Math.random() - 1000;
- y = 2000 * Math.random() - 1000;
- z = 2000 * Math.random() - 1000;
- vector = new THREE.Vector3( x, y, z );
- geometry.vertices.push( new THREE.Vertex( vector ) );
-
- colors[ i ] = new THREE.Color( 0xffffff );
- colors[ i ].setHSV( (x+1000)/2000, 1.0, 1.0 );
-
- }
-
- geometry.colors = colors;
-
- material = new THREE.ParticleBasicMaterial( { size: 85, map: sprite, vertexColors: true } );
- material.color.setHSV( 1.0, 0.2, 0.8 );
-
- particles = new THREE.ParticleSystem( geometry, material );
- particles.sortParticles = true;
- particles.updateMatrix();
- scene.addObject( particles );
-
-/*
- var light = new THREE.DirectionalLight( 0xffffff );
- light.position.x = 0;
- light.position.y = 0;
- light.position.z = 1;
- scene.addLight( light );*/
-
-
- renderer = new THREE.WebGLRenderer( { clearAlpha: 1 } );
- renderer.setSize( window.innerWidth, window.innerHeight );
- container.appendChild( renderer.domElement );
-
-/*
- stats = new Stats();
- stats.domElement.style.position = 'absolute';
- stats.domElement.style.top = '0px';
- container.appendChild( stats.domElement );*/
-
-
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
- document.addEventListener( 'touchstart', onDocumentTouchStart, false );
- document.addEventListener( 'touchmove', onDocumentTouchMove, false );
- window.addEventListener( 'resize', onWindowResize, false );
-
- }
-
- function onDocumentMouseMove( event ) {
-
- mouseX = event.clientX - windowHalfX;
- mouseY = event.clientY - windowHalfY;
-
- }
-
- function onDocumentTouchStart( event ) {
-
- if ( event.touches.length == 1 ) {
-
- event.preventDefault();
-
- mouseX = event.touches[ 0 ].pageX - windowHalfX;
- mouseY = event.touches[ 0 ].pageY - windowHalfY;
-
- }
- }
-
- function onDocumentTouchMove( event ) {
-
- if ( event.touches.length == 1 ) {
-
- event.preventDefault();
-
- mouseX = event.touches[ 0 ].pageX - windowHalfX;
- mouseY = event.touches[ 0 ].pageY - windowHalfY;
-
- }
-
- }
-
- function onWindowResize( event ) {
-
- camera.aspect = window.innerWidth / window.innerHeight;
- camera.updateProjectionMatrix();
-
- renderer.setSize( window.innerWidth, window.innerHeight );
-
- }
-
- //
-
- function animate() {
-
- requestAnimationFrame( animate );
-
- render();
- //stats.update();
-
- }
-
- function render() {
-
- var time = new Date().getTime() * 0.00005;
-
- camera.position.x += ( mouseX - camera.position.x ) * 0.05;
- camera.position.y += ( - mouseY - camera.position.y ) * 0.05;
-
- h = ( 360 * ( 1.0 + time ) % 360 ) / 360;
- material.color.setHSV( h, 0.8, 1.0 );
-
- renderer.render( scene, camera );
-
- }
- }
-});
-
View
11 public/javascripts/shorteh/command/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 89
-/svn/!svn/ver/1091/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/command
-END
-ShortenURLCommand.js
-K 25
-svn:wc:ra_dav:version-url
-V 110
-/svn/!svn/ver/1091/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/command/ShortenURLCommand.js
-END
View
62 public/javascripts/shorteh/command/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/command
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T04:23:02.712337Z
-1091
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-ShortenURLCommand.js
-file
-
-
-
-
-2011-09-11T04:16:13.000000Z
-23480e758b90eded89fb868b0bf7a9ee
-2011-09-11T04:23:02.712337Z
-1091
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-568
-
View
16 public/javascripts/shorteh/command/.svn/text-base/ShortenURLCommand.js.svn-base
@@ -1,16 +0,0 @@
-dojo.provide('shorteh.command.ShortenURLCommand');
-dojo.declare('shorteh.command.ShortenURLCommand', mojo.command.Command, {
- execute: function(requestObj) {
- shorteh.service.Locator.getInstance().getService("addShortenURL").invoke(requestObj.getParams(), this);
- },
- onResponse: function(data) {
- var node = mojo.queryFirst("div.output");
- var shortenedUrl = mojo.queryFirst("input", node);
- shortenedUrl.value = data.url;
-
- dojo.fadeIn({node: node }).play();
- shortenedUrl.focus();
- shortenedUrl.select();
- },
- onError: function(err) {}
-});
View
11 public/javascripts/shorteh/controller/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 92
-/svn/!svn/ver/1094/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/controller
-END
-FormController.js
-K 25
-svn:wc:ra_dav:version-url
-V 110
-/svn/!svn/ver/1094/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/controller/FormController.js
-END
View
62 public/javascripts/shorteh/controller/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/controller
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:30:20.415132Z
-1094
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-FormController.js
-file
-
-
-
-
-2011-09-11T05:09:18.000000Z
-415f72db2b596963980425198ec5d73b
-2011-09-11T05:30:20.415132Z
-1094
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-615
-
View
17 public/javascripts/shorteh/controller/.svn/text-base/FormController.js.svn-base
@@ -1,17 +0,0 @@
-dojo.provide("shorteh.controller.FormController");
-dojo.declare("shorteh.controller.FormController", mojo.controller.Controller, {
- addObservers: function() {
-
- this.addObserver(this.getContextElement(), "onsubmit", "ShortenURL", function(context) {
- return {
- url: mojo.queryFirst("input[type=url]", context).value
- };
- });
- //this.addObserver(this, "onInit", "Balls");
- },
- addCommands: function() {
- this.addCommand("ShortenURL", "shorteh.command.ShortenURLCommand");
- this.addCommand("Balls", "shorteh.behavior.BallsBehavior");
- },
- addIntercepts: function() { }
-});
View
11 public/javascripts/shorteh/service/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 89
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/service
-END
-Locator.js
-K 25
-svn:wc:ra_dav:version-url
-V 100
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/service/Locator.js
-END
View
62 public/javascripts/shorteh/service/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public/javascripts/shorteh/service
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-Locator.js
-file
-
-
-
-
-2011-09-11T05:04:55.000000Z
-551e9122ff183acafc8bae8e74cfc232
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-467
-
View
14 public/javascripts/shorteh/service/.svn/text-base/Locator.js.svn-base
@@ -1,14 +0,0 @@
-dojo.provide("shorteh.service.Locator");
-var __shortehServiceLocator = null;
-dojo.declare("shorteh.service.Locator", mojo.service.Locator, {
- addServices: function() {
- this.addService(new mojo.service.Service("addShortenURL", "api", { format: "json", cache: false}));
- }
-});
-
-shorteh.service.Locator.getInstance = function() {
- if (__shortehServiceLocator == null) {
- __shortehServiceLocator = new shorteh.service.Locator();
- }
- return __shortehServiceLocator;
-};
View
11 public/stylesheets/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 73
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/public/stylesheets
-END
-style.css
-K 25
-svn:wc:ra_dav:version-url
-V 83
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/public/stylesheets/style.css
-END
View
62 public/stylesheets/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/public/stylesheets
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-style.css
-file
-
-
-
-
-2011-09-11T05:03:25.000000Z
-54b4fa9e0f7ba01a835282cc562c1dcd
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-4040
-
View
186 public/stylesheets/.svn/text-base/style.css.svn-base
@@ -1,186 +0,0 @@
-body {
- font: 24px normal Helvetica, 'Open Sans Condensed', Helvetica, sans-serif;
- color: #000;
-}
-
-.button
-{
- display: inline-block;
- white-space: nowrap;
- background-color: #ccc;
- background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ccc));
- background-image: -webkit-linear-gradient(top, #eee, #ccc);
- background-image: -moz-linear-gradient(top, #eee, #ccc);
- background-image: -ms-linear-gradient(top, #eee, #ccc);
- background-image: -o-linear-gradient(top, #eee, #ccc);
- background-image: linear-gradient(top, #eee, #ccc);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#cccccc');
- border: 1px solid #777;
- padding: 0 1.5em;
- margin: 0.5em;
- font: bold 1em/2em Arial, Helvetica;
- text-decoration: none;
- color: #333;
- text-shadow: 0 1px 0 rgba(255,255,255,.8);
- -moz-border-radius: .2em;
- -webkit-border-radius: .2em;
- border-radius: .2em;
- -moz-box-shadow: 0 0 1px 1px rgba(255,255,255,.8) inset, 0 1px 0 rgba(0,0,0,.3);
- -webkit-box-shadow: 0 0 1px 1px rgba(255,255,255,.8) inset, 0 1px 0 rgba(0,0,0,.3);
- box-shadow: 0 0 1px 1px rgba(255,255,255,.8) inset, 0 1px 0 rgba(0,0,0,.3);
- cursor: pointer;
-}
-
-.button:hover
-{
- background-color: #ddd;
- background-image: -webkit-gradient(linear, left top, left bottom, from(#fafafa), to(#ddd));
- background-image: -webkit-linear-gradient(top, #fafafa, #ddd);
- background-image: -moz-linear-gradient(top, #fafafa, #ddd);
- background-image: -ms-linear-gradient(top, #fafafa, #ddd);
- background-image: -o-linear-gradient(top, #fafafa, #ddd);
- background-image: linear-gradient(top, #fafafa, #ddd);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#fafafa', EndColorStr='#dddddd');
-}
-
-.button:active
-{
- -moz-box-shadow: 0 0 4px 2px rgba(0,0,0,.3) inset;
- -webkit-box-shadow: 0 0 4px 2px rgba(0,0,0,.3) inset;
- box-shadow: 0 0 4px 2px rgba(0,0,0,.3) inset;
- position: relative;
- top: 1px;
-}
-
-.button:focus
-{
- outline: 0;
- background: #fafafa;
-}
-
-.button:before
-{
- background: #ccc;
- background: rgba(0,0,0,.1);
- float: left;
- width: 1em;
- text-align: center;
- font-size: 1.5em;
- margin: 0 1em 0 -1em;
- padding: 0 .2em;
- -moz-box-shadow: 1px 0 0 rgba(0,0,0,.5), 2px 0 0 rgba(255,255,255,.5);
- -webkit-box-shadow: 1px 0 0 rgba(0,0,0,.5), 2px 0 0 rgba(255,255,255,.5);
- box-shadow: 1px 0 0 rgba(0,0,0,.5), 2px 0 0 rgba(255,255,255,.5);
- -moz-border-radius: .15em 0 0 .15em;
- -webkit-border-radius: .15em 0 0 .15em;
- border-radius: .15em 0 0 .15em;
-}
-
-/* Hexadecimal entities for the icons */
-
-.add:before
-{
- content: "\271A";
-}
-
-.edit:before
-{
- content: "\270E";
-}
-
-.delete:before
-{
- content: "\2718";
-}
-
-.save:before
-{
- content: "\2714";
-}
-
-.email:before
-{
- content: "\2709";
-}
-
-.like:before
-{
- content: "\2764";
-}
-
-.next:before
-{
- content: "\279C";
-}
-
-.star:before
-{
- content: "\2605";
-}
-
-.spark:before
-{
- content: "\2737";
-}
-
-.play:before
-{
- content: "\25B6";
-}
-
-h1 {
- display: block;
- text-indent: -9999px;
- background: url(/images/logo-resaas.png) top center no-repeat;
-}
-
-a {
- color: #00B7FF;
-}
-
-body {
- text-align: center;
-}
-button {
- font-size: 16px;
- font-family: 'Open Sans Condensed', sans-serif;
-}
-form input, div.output input {
- font-size: 20px;
- padding: 10px;
- font-family: inherit;
- width: 500px;
-}
-
-footer {
- font-size: 14px;
-}
-
-div.links {
- display: table;
- width: 300px;
- margin: 0 auto;
-}
-div.links a {
- display: table-cell;
- width: 20%;
- text-align: center;
-}
-
-div.output {
- opacity: 0;
-}
-
-
-
-
-
-div.ballslol {
- position: absolute;
- z-index: -9999;
- width: 100%;
- height: 100%;
- top: 0px;
- left: 0px;
- opacity: 0.1;
-}
View
17 views/.svn/all-wcprops
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 60
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/views
-END
-layout.jade
-K 25
-svn:wc:ra_dav:version-url
-V 72
-/svn/!svn/ver/1093/CP/trunk/source/RESAAS.UrlShortener/views/layout.jade
-END
-index.jade
-K 25
-svn:wc:ra_dav:version-url
-V 71
-/svn/!svn/ver/1091/CP/trunk/source/RESAAS.UrlShortener/views/index.jade
-END
View
96 views/.svn/entries
@@ -1,96 +0,0 @@
-10
-
-dir
-1263
-https://resaas.jira.com/svn/CP/trunk/source/RESAAS.UrlShortener/views
-https://resaas.jira.com/svn
-
-
-
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ee9b0340-e8fc-4d76-9a68-d6a624e9d42a
-
-layout.jade
-file
-
-
-
-
-2011-09-11T05:04:23.000000Z
-578cf0d9cc100bf78080f836660e1918
-2011-09-11T05:06:13.154868Z
-1093
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-998
-
-index.jade
-file
-
-
-
-
-2011-09-11T04:12:42.000000Z
-9269de575f510d8d1d5458f4990f0e3f
-2011-09-11T04:23:02.712337Z
-1091
-jaime.bueza
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-311
-
View
10 views/.svn/text-base/index.jade.svn-base
@@ -1,10 +0,0 @@
-h1= title
-
-p Welcome to #{title} URL Shortener.
-
-form(action='/api', method='POST', onsubmit='return false;')
- input(type='url', name='url', placeholder='enter url to shorten', required=true)
- button(type='submit', class='button next submit') Shorten
-
-div.output
- input(type='url', name='output', value='')
View
24 views/.svn/text-base/layout.jade.svn-base
@@ -1,24 +0,0 @@
-!!!
-html
- head
- title Create really short URLs for sharing with your friends at RESA.AS
- link(rel='stylesheet', type='text/css', href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300')
- link(rel='stylesheet', href='/stylesheets/style.css')
-
- script(src='/javascripts/dist/modernizr.js')
- body!= body
- footer &copy; 2011 RESAAS. All Rights Reserved.
- div(class='links')
- a(href='http://resaas.com?ref=shortener') RESAAS
- a(href='http://resaas.com/about?ref=shortener') About
- a(href='http://resaas.com/team?ref=shortener') Team
- a(href='http://resaas.com/careeers?ref=shortener') Careers
- a(href='http://developer.resaas.com?ref=shortener') Developers
- script(src='/javascripts/dist/dojo.js')
- script(src='/javascripts/dist/mojo.js')
- script(src='/javascripts/shorteh.config.js')
- script(src='/javascripts/dist/Three.js')
- script(src='/javascripts/dist/Detector.js')
- script(src='/javascripts/dist/RequestAnimationFrame.js')
-
-

0 comments on commit 6b054ac

Please sign in to comment.
Something went wrong with that request. Please try again.