Permalink
Browse files

Scaffolding this shit

  • Loading branch information...
1 parent 99dd312 commit 05c5fbfeb20642512bd293489aca63fd6fad31d6 @oliversong committed Oct 5, 2013
No changes.
No changes.
@@ -0,0 +1,15 @@
+Meteor.Router.add
+ '/': (->
+ return 'landingPage'
+ )
+ '/boxes/:_id':
+ to: 'boxPage'
+ and: (id)->
+ Session.set 'currentBoxId', id
+
+Meteor.Router.filters
+ 'clearErrors': (page)->
+ Meteor.Errors.clear()
+ return page
+
+Meteor.Router.filter('clearErrors')
View
@@ -0,0 +1,6 @@
+@boxesHandle = Meteor.subscribe 'boxes'
+
+Meteor.subscribe 'notifications'
+
+Deps.autorun ()->
+ console.log 'There are ' + Boxes.find().count() + ' boxes'
View
@@ -0,0 +1,12 @@
+<head>
+ <title>OneTimeBox</title>
+</head>
+<body>
+ <div class="container">
+ {{> header}}
+ {{> meteorErrors}}
+ <div id="main" class="row-fluid">
+ {{renderPage}}
+ </div>
+ </div>
+</body>
@@ -0,0 +1,3 @@
+.shwat {
+ color: black;
+}
@@ -0,0 +1,3 @@
+.shwat{
+ color: black;
+}
@@ -0,0 +1,3 @@
+<template name="accessDenied">
+ <div class="alert alert-error">You can't get here! Please log in.</div>
+</template>
No changes.
@@ -0,0 +1,13 @@
+<template name="header">
+ <header class="navbar">
+ <div class="navbar-inner">
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </a>
+ <a class="brand" href="{{homePage}}">OneTimeBox<span class="beta">beta</span></a>
+ </div>
+ </header>
+</template>
+
@@ -0,0 +1,3 @@
+<template name='loading'>
+ {{>spinner}}
+</template>
No changes.
No changes.
No changes.
@@ -0,0 +1,16 @@
+<template name="landingPage">
+<div class="hero-unit">
+ <h1>One Time Pad</h1>
+ <p>Easily upload and share single-use folders that stay in sync live</p>
+ <p>
+ <a class="btn btn-primary btn-large">
+ Create an OTB
+ </a>
+ </p>
+</div>
+
+<div class="span12">
+ <h2>What is OneTimeBox?</h2>
+ <p>Etherpad for Dropbox</p>
+</div>
+</template>
View
@@ -0,0 +1 @@
+@Boxes = new Meteor.Collection('boxes')
@@ -0,0 +1 @@
+@Notifications = new Meteor.Collection('notifications')
View
No changes.
View
@@ -1 +0,0 @@
-/* CSS declarations go here */
View
@@ -1,13 +0,0 @@
-<head>
- <title>onetimebox</title>
-</head>
-
-<body>
- {{> hello}}
-</body>
-
-<template name="hello">
- <h1>Hello World!</h1>
- {{greeting}}
- <input type="button" value="Click" />
-</template>
View
@@ -1,19 +0,0 @@
-if (Meteor.isClient) {
- Template.hello.greeting = function () {
- return "Welcome to onetimebox.";
- };
-
- Template.hello.events({
- 'click input' : function () {
- // template data, if any, is available in 'this'
- if (typeof console !== 'undefined')
- console.log("You pressed the button");
- }
- });
-}
-
-if (Meteor.isServer) {
- Meteor.startup(function () {
- // code to run on server at startup
- });
-}
No changes.

0 comments on commit 05c5fbf

Please sign in to comment.