-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ed842e4
Showing
30 changed files
with
585 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 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 | ||
0.9.4-platform-file | ||
notices-for-facebook-graph-api-2 | ||
1.2.0-standard-minifiers-package | ||
1.2.0-meteor-platform-split | ||
1.2.0-cordova-changes | ||
1.2.0-breaking-changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
1b92aag1u3iypp1fox5d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Meteor packages used by this project, one per line. | ||
# Check this file (and the other files in this directory) into your repository. | ||
# | ||
# 'meteor add' and 'meteor remove' will edit this file for you, | ||
# but you can also edit it by hand. | ||
|
||
meteor-base # Packages every Meteor app needs to have | ||
mobile-experience # Packages for a great mobile UX | ||
mongo # The database Meteor supports right now | ||
blaze-html-templates # Compile .html files into Meteor Blaze views | ||
session # Client-side reactive dictionary for your app | ||
jquery # Helpful client-side library | ||
tracker # Meteor's client-side reactive programming library | ||
|
||
standard-minifiers # JS/CSS minifiers run for production mode | ||
es5-shim # ECMAScript 5 compatibility for older browsers. | ||
ecmascript # Enable ECMAScript2015+ syntax in app code | ||
|
||
## Orion | ||
orionjs:core | ||
orionjs:pages | ||
|
||
## Styles | ||
twbs:bootstrap | ||
fortawesome:fontawesome | ||
orionjs:bootstrap | ||
|
||
## Router | ||
kadira:flow-router | ||
kadira:blaze-layout | ||
|
||
## Files | ||
orionjs:filesystem | ||
vsivsi:orion-file-collection | ||
orionjs:file-attribute | ||
orionjs:image-attribute | ||
|
||
## Editor | ||
orionjs:summernote | ||
|
||
## i18n | ||
loongmxbt:orion-lang-zh-cn | ||
|
||
## Test | ||
msavin:mongol | ||
|
||
## Export | ||
nicolaslopezj:orion-exporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
server | ||
browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Orion Kickstarter | ||
|
||
## seeds.js | ||
创建默认用户,其中管理员用户密码为 | ||
[email protected] | ||
admin123 | ||
|
||
## posts功能 | ||
添加修改删除post,并赋予相应权限 | ||
|
||
## i18n中文 | ||
orion自带翻译 | ||
|
||
## TODO | ||
页面模板 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FlowRouter.route('/', { | ||
name: "home", | ||
action: function() { | ||
BlazeLayout.render("mainLayout", {content: "home"}); | ||
} | ||
}); | ||
|
||
FlowRouter.route('/posts/:postId', { | ||
name: "postItem", | ||
action: function() { | ||
BlazeLayout.render("mainLayout", {content: "postItem"}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template name="home"> | ||
|
||
<div class="container"> | ||
|
||
<h1>{{dict 'site.desc'}}</h1> | ||
|
||
<hr> | ||
|
||
{{> postsList}} | ||
|
||
</div> | ||
|
||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template name="mainLayout"> | ||
{{> header}} | ||
<div class="container"> | ||
{{> Template.dynamic template=content}} | ||
</div> | ||
{{> footer}} | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<template name="sidenavLayout"> | ||
|
||
|
||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template name="pagesDefault"> | ||
{{> header}} | ||
<div class="container"> | ||
<h1 class="title">{{ title }}</h1> | ||
<div class="content"> | ||
{{{ content }}} | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template name="notFound"> | ||
{{> header}} | ||
<div class="container"> | ||
<h1>404 not found!</h1> | ||
<p>Page not found! Go to <a href="/">home page</a>.</p> | ||
</div> | ||
{{> footer}} | ||
|
||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template name="pagesSimple"> | ||
<h1 class="title">{{ title }}</h1> | ||
<div class="content"> | ||
{{{ content }}} | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template name="footer"> | ||
<footer class="footer"> | ||
<hr> | ||
<div class="container"> | ||
<p class="text-muted">Orion CMS</p> | ||
</div> | ||
</footer> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<template name="header"> | ||
<nav class="navbar navbar-inverse"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="/">{{ app_name }}</a> | ||
</div> | ||
<div id="navbar" class="collapse navbar-collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li><a href="/about">About</a></li> | ||
<li><a href="/contact">Contact</a></li> | ||
{{#if currentUser}} | ||
<li><a href="/admin">{{currentUser.profile.name}}</a></li> | ||
{{else}} | ||
<li><a href="/admin">Login</a></li> | ||
{{/if}} | ||
</ul> | ||
</div> | ||
<!--/.nav-collapse --> | ||
</div> | ||
</nav> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Template.header.helpers({ | ||
app_name: function() { | ||
return orion.config.get('APP_NAME'); | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template name="postItem"> | ||
<div class="container"> | ||
<header> | ||
<h1>Post Page</h1> | ||
<a href="/">Back</a> | ||
</header> | ||
|
||
{{#if Template.subscriptionsReady}} | ||
{{#with post}} | ||
<h3>{{title}}</h3> | ||
<img src="{{image.url}}" width="640px"> | ||
<br> | ||
{{{body}}} | ||
{{/with}} | ||
{{else}} | ||
<p>Loading...</p> | ||
{{/if}} | ||
|
||
<hr> | ||
|
||
<footer> | ||
<p>Orion Blog</p> | ||
</footer> | ||
</div> | ||
|
||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Template.postItem.onCreated(function() { | ||
var self = this; | ||
var postId = FlowRouter.getParam('postId'); | ||
self.autorun(function() { | ||
self.subscribe('postById', postId); | ||
}); | ||
}); | ||
|
||
Template.postItem.helpers({ | ||
post: function() { | ||
var postId = FlowRouter.getParam('postId'); | ||
var post = Posts.findOne({_id: postId}) || {}; | ||
return post; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template name="postsList"> | ||
{{#each posts}} | ||
<h1><a href="{{pathForPost}}">{{title}}</a></h1> | ||
<img src="{{image.url}}" width="640px"> | ||
{{/each}} | ||
</template> |
Oops, something went wrong.