Просмотр исходного кода

hi meteor, you're... interesting?

Lucas Stadler лет назад: 11
Родитель
Сommit
c5d704a9b8

+ 5 - 0
js/eponymous_pony/.meteor/.finished-upgraders

@ -0,0 +1,5 @@
1
# This file contains information which helps Meteor properly upgrade your
2
# app when you run 'meteor update'. You should check it into version control
3
# with your project.
4
5
notices-for-0.9.0

+ 1 - 0
js/eponymous_pony/.meteor/.gitignore

@ -0,0 +1 @@
1
local

+ 7 - 0
js/eponymous_pony/.meteor/.id

@ -0,0 +1,7 @@
1
# This file contains a token that is unique to your project.
2
# Check it into your repository along with the rest of this directory.
3
# It can be used for purposes such as:
4
#   - ensuring you don't accidentally deploy one app on top of another
5
#   - providing package authors with aggregated statistics
6
7
16x1fcd132ra3b7g3brn

+ 8 - 0
js/eponymous_pony/.meteor/packages

@ -0,0 +1,8 @@
1
# Meteor packages used by this project, one per line.
2
#
3
# 'meteor add' and 'meteor remove' will edit this file for you,
4
# but you can also edit it by hand.
5
6
standard-app-packages
7
autopublish
8
insecure

+ 1 - 0
js/eponymous_pony/.meteor/release

@ -0,0 +1 @@
1
METEOR@0.9.0.1

+ 41 - 0
js/eponymous_pony/.meteor/versions

@ -0,0 +1,41 @@
1
application-configuration@1.0.0
2
autopublish@1.0.0
3
autoupdate@1.0.5
4
binary-heap@1.0.0
5
blaze-tools@1.0.0
6
blaze@1.0.3
7
callback-hook@1.0.0
8
check@1.0.0
9
ctl-helper@1.0.2
10
ctl@1.0.0
11
deps@1.0.1
12
ejson@1.0.0
13
follower-livedata@1.0.0
14
geojson-utils@1.0.0
15
html-tools@1.0.0
16
htmljs@1.0.0
17
id-map@1.0.0
18
insecure@1.0.0
19
jquery@1.0.0
20
json@1.0.0
21
livedata@1.0.7
22
logging@1.0.2
23
meteor@1.0.2
24
minifiers@1.0.2
25
minimongo@1.0.1
26
mongo-livedata@1.0.3
27
observe-sequence@1.0.1
28
ordered-dict@1.0.0
29
random@1.0.0
30
reactive-dict@1.0.0
31
reload@1.0.0
32
retry@1.0.0
33
routepolicy@1.0.0
34
session@1.0.0
35
spacebars-compiler@1.0.1
36
spacebars@1.0.0
37
standard-app-packages@1.0.0
38
templating@1.0.4
39
ui@1.0.0
40
underscore@1.0.0
41
webapp@1.0.2

+ 18 - 0
js/eponymous_pony/index.html

@ -0,0 +1,18 @@
1
<head>
2
  <title>eponymous_pony: Usernames as a Service</title>
3
</head>
4
5
<body>
6
  <h1>Usernames as a Service</h1>
7
8
  {{> names}}
9
</body>
10
11
<template name="names">
12
  <ul>
13
  	{{#each names}}
14
  	  <li>{{name}}</li>
15
  	{{/each}}
16
	</ul>
17
	<label>Add name: </label><input type="text" />
18
</template>

+ 18 - 0
js/eponymous_pony/main.js

@ -0,0 +1,18 @@
1
Names = new Meteor.Collection("names");
2
3
if (Meteor.isClient) {
4
  Template.names.helpers({
5
    names: function() {
6
      return Names.find({}).fetch();
7
    }
8
  });
9
10
  Template.names.events({
11
    'keypress input': function(event) {
12
      if (event.key == "Enter") {
13
        Names.insert({name: event.currentTarget.value});
14
        event.currentTarget.value = "";
15
      }
16
    }
17
  });
18
}