mirror of
https://github.com/fazo96/markcloud.git
synced 2025-04-08 01:18:37 +02:00
first commit
This commit is contained in:
commit
8597cf0474
6
.meteor/.finished-upgraders
Normal file
6
.meteor/.finished-upgraders
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# This file contains information which helps Meteor properly upgrade your
|
||||||
|
# app when you run 'meteor update'. You should check it into version control
|
||||||
|
# with your project.
|
||||||
|
|
||||||
|
notices-for-0.9.0
|
||||||
|
notices-for-0.9.1
|
1
.meteor/.gitignore
vendored
Normal file
1
.meteor/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
local
|
7
.meteor/.id
Normal file
7
.meteor/.id
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# This file contains a token that is unique to your project.
|
||||||
|
# Check it into your repository along with the rest of this directory.
|
||||||
|
# It can be used for purposes such as:
|
||||||
|
# - ensuring you don't accidentally deploy one app on top of another
|
||||||
|
# - providing package authors with aggregated statistics
|
||||||
|
|
||||||
|
1eewyy1lfcn2i1i4ezvt
|
1
.meteor/cordova-plugins
Normal file
1
.meteor/cordova-plugins
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
14
.meteor/packages
Normal file
14
.meteor/packages
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Meteor packages used by this project, one per line.
|
||||||
|
#
|
||||||
|
# 'meteor add' and 'meteor remove' will edit this file for you,
|
||||||
|
# but you can also edit it by hand.
|
||||||
|
|
||||||
|
meteor-platform
|
||||||
|
autopublish
|
||||||
|
insecure
|
||||||
|
iron:router
|
||||||
|
mizzao:bootstrap-3
|
||||||
|
coffeescript
|
||||||
|
less
|
||||||
|
perak:markdown
|
||||||
|
|
1
.meteor/release
Normal file
1
.meteor/release
Normal file
@ -0,0 +1 @@
|
|||||||
|
METEOR@0.9.3.1
|
59
.meteor/versions
Normal file
59
.meteor/versions
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
application-configuration@1.0.2
|
||||||
|
autopublish@1.0.0
|
||||||
|
autoupdate@1.1.1
|
||||||
|
base64@1.0.0
|
||||||
|
binary-heap@1.0.0
|
||||||
|
blaze-tools@1.0.0
|
||||||
|
blaze@2.0.1
|
||||||
|
boilerplate-generator@1.0.0
|
||||||
|
callback-hook@1.0.0
|
||||||
|
check@1.0.1
|
||||||
|
coffeescript@1.0.3
|
||||||
|
ctl-helper@1.0.3
|
||||||
|
ctl@1.0.1
|
||||||
|
ddp@1.0.9
|
||||||
|
deps@1.0.4
|
||||||
|
ejson@1.0.3
|
||||||
|
fastclick@1.0.0
|
||||||
|
follower-livedata@1.0.1
|
||||||
|
geojson-utils@1.0.0
|
||||||
|
html-tools@1.0.1
|
||||||
|
htmljs@1.0.1
|
||||||
|
http@1.0.6
|
||||||
|
id-map@1.0.0
|
||||||
|
insecure@1.0.0
|
||||||
|
iron:core@0.3.4
|
||||||
|
iron:dynamic-template@0.4.1
|
||||||
|
iron:layout@0.4.1
|
||||||
|
iron:router@0.9.4
|
||||||
|
jquery@1.0.0
|
||||||
|
json@1.0.0
|
||||||
|
less@1.0.9
|
||||||
|
livedata@1.0.10
|
||||||
|
logging@1.0.3
|
||||||
|
meteor-platform@1.1.1
|
||||||
|
meteor@1.1.1
|
||||||
|
minifiers@1.1.0
|
||||||
|
minimongo@1.0.3
|
||||||
|
mizzao:bootstrap-3@3.2.0_1
|
||||||
|
mobile-status-bar@1.0.0
|
||||||
|
mongo@1.0.6
|
||||||
|
observe-sequence@1.0.2
|
||||||
|
ordered-dict@1.0.0
|
||||||
|
perak:markdown@1.0.4
|
||||||
|
random@1.0.0
|
||||||
|
reactive-dict@1.0.3
|
||||||
|
reactive-var@1.0.2
|
||||||
|
reload@1.1.0
|
||||||
|
retry@1.0.0
|
||||||
|
routepolicy@1.0.1
|
||||||
|
session@1.0.2
|
||||||
|
spacebars-compiler@1.0.2
|
||||||
|
spacebars@1.0.2
|
||||||
|
templating@1.0.7
|
||||||
|
tracker@1.0.2
|
||||||
|
ui@1.0.3
|
||||||
|
underscore@1.0.0
|
||||||
|
url@1.0.0
|
||||||
|
webapp-hashing@1.0.0
|
||||||
|
webapp@1.1.2
|
19
client/client.coffee
Normal file
19
client/client.coffee
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
docs = new Meteor.Collection 'docs'
|
||||||
|
|
||||||
|
Router.configure
|
||||||
|
layoutTemplate: 'layout'
|
||||||
|
|
||||||
|
Router.map ->
|
||||||
|
@route 'home', path: '/'
|
||||||
|
@route 'doc',
|
||||||
|
path: '/d/:_id'
|
||||||
|
waitOn: -> @docHandle = Meteor.subscribe 'doc', @params._id
|
||||||
|
data: -> docs.findOne @params._id
|
||||||
|
@route 'new'
|
||||||
|
|
||||||
|
Template.new.events
|
||||||
|
'click #new-btn': (e,t) ->
|
||||||
|
id = docs.insert
|
||||||
|
text: t.find('#editor').value
|
||||||
|
if id?
|
||||||
|
Router.go 'doc', _id: id
|
3
client/main.html
Normal file
3
client/main.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<head>
|
||||||
|
<title>MarkCloud</title>
|
||||||
|
</head>
|
0
client/style.less
Normal file
0
client/style.less
Normal file
20
client/templates.html
Normal file
20
client/templates.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<template name="layout">
|
||||||
|
<div class="container">
|
||||||
|
<h1>MarkCloud</h1>
|
||||||
|
<hr>
|
||||||
|
{{> yield}}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template name="home">
|
||||||
|
test
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template name="new">
|
||||||
|
<textarea id="editor" class="form-control"></textarea>
|
||||||
|
<button id="new-btn" class="btn btn-primary">submit</button>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template name="doc">
|
||||||
|
{{#markdown}} {{text}} {{/markdown}}
|
||||||
|
</template>
|
3
server/server.coffee
Normal file
3
server/server.coffee
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
docs = new Meteor.Collection 'docs'
|
||||||
|
|
||||||
|
Meteor.publish 'doc', (id) -> docs.find _id: id
|
Loading…
Reference in New Issue
Block a user