GithubHelp home page GithubHelp logo

orionjs / orioncms-examples Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 26.0 244 KB

Example webapp made with orion

Home Page: http://orion-example.meteor.com

HTML 14.67% JavaScript 78.95% CSS 5.46% CoffeeScript 0.93%

orioncms-examples's People

Contributors

avishaan avatar mraak avatar nicolaslopezj avatar rwatts3 avatar sokki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

orioncms-examples's Issues

Example blog - users not able to update any of the attributes in the post

Community users are able to create/delete (their own) posts, however they are not able to update any of the attributes of the post. Is it a bug or a feature?

According to orion/roles/community.js, users should be able to update any attribute other than createdBy

/**
 * Users can update posts
 */
CommunityRole.allow('collections.posts.update', function(userId, doc, fields, modifier) {
  return doc.createdBy === userId; // Will be allowed to edit his own posts
});

/**
 * Users can't change the createdBy attribute
 */
CommunityRole.deny('collections.posts.update', function(userId, doc, fields, modifier) {
  return !_.contains(fields, 'userId');
});

Issues with AWS uploading

There seems to be an error getting introduced in the s3 file upload after updating to the latest version. I am getting the following error:

XMLHttpRequest cannot load https://s3.amazonaws.com/s3orionss. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8290' is therefore not allowed access. 

This was working properly before the upgrade. Any suggestions?

How to use dictionary in head.html

By default, there is a empty <title></title> in front of the head.html title tag. So there is no page title occurs. I wonder how does the empty title tag occur?

And if I use {{dict 'siteTitle' 'xxx'}}, the head.html displays it directly without processing it.

How to define siteTitle and siteDesc dictionaries in head.html? Thanks!

Language admin interface

Heya,
Nice project !

A question how do I change the language of the admin interface. Unformtunately my spanish is not existent :(

Cheerz,
Guby

Error while inserting image to post in example blog.

Hello,
I just clone this repo and run blog example. When I create a post and insert image then it gives me the following error at client side ->

Uncaught errorClass {error: "unauthorized", reason: "The user has no permission to perform this action", details: undefined, message: "The user has no permission to perform this action [unauthorized]", errorType: "Meteor.Error"โ€ฆ}

Any solution for this issue ?
Thanks.

Error while simply clone and then run blog example

Hello,
I simply clone this repo and run the blog example. I got the following error at client side ->

Exception in callback of async function: Error: Handler with name 'hookWithOptions' already exists.
    at MiddlewareStack._create (http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:198:13)
    at MiddlewareStack.push (http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:214:22)
    at http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:232:12
    at Array.forEach (native)
    at Function._.each._.forEach (http://localhost:8888/packages/underscore.js?46eaedbdeb6e71c82af1b16f51c7da4127d6f285:149:11)
    at MiddlewareStack.append (http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:228:5)
    at http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:234:19
    at Array.forEach (native)
    at Function._.each._.forEach (http://localhost:8888/packages/underscore.js?46eaedbdeb6e71c82af1b16f51c7da4127d6f285:149:11)
    at MiddlewareStack.append (http://localhost:8888/packages/iron_middleware-stack.js?3370bd57ef7b310cca3f5dddb11b77fafdcfc1eb:228:5)

Any clue/solution for this issue.
Thanks.

Error: aws "key" required

Cool project! Really looking forward to checking it out. When I run meteor on this project I get following error though

[[[[[ ~/Projects/meteorjs/apps/orion-blog ]]]]]

=> Started proxy.
=> Started MongoDB.
W20141125-12:22:01.820(1)? (STDERR)
W20141125-12:22:01.891(1)? (STDERR) /Users/Matteo/.meteor/packages/meteor-tool/.1.0.35.7nk0j7++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
W20141125-12:22:01.891(1)? (STDERR)                         throw(ex);
W20141125-12:22:01.891(1)? (STDERR)                               ^
W20141125-12:22:01.891(1)? (STDERR) Error: aws "key" required
W20141125-12:22:01.892(1)? (STDERR)     at new Client (/Users/Matteo/.meteor/packages/lepozepo:s3/.4.1.1.1jy4h0z++os+web.browser+web.cordova/npm/node_modules/knox/lib/client.js:176:27)
W20141125-12:22:01.892(1)? (STDERR)     at Function.exports.createClient (/Users/Matteo/.meteor/packages/lepozepo:s3/.4.1.1.1jy4h0z++os+web.browser+web.cordova/npm/node_modules/knox/lib/client.js:894:10)
W20141125-12:22:01.892(1)? (STDERR)     at __coffeescriptShare (packages/lepozepo:s3/server/startup.coffee:24:16)
W20141125-12:22:01.892(1)? (STDERR)     at /Users/Matteo/Projects/meteorjs/apps/orion-blog/.meteor/local/build/programs/server/boot.js:175:5
=> Exited with code: 8
W20141125-12:22:07.210(1)? (STDERR)

Example blog with posts and comments

Could you please give a detailed example blog having comments related to a post?

The comments_list and comment_create templates are at front-end in post page, and I can also see the comments I submitted at admin panel -> comments entity -> index page.

Another problem is that for different entities, such as posts and resources, I want to have a unified comments functionality related to them, how can I do that? And can you give an example for that? Thanks a lot!

How to update and delete pages

Hello There,
I just clone your standard example and run it on my system. I have a question regarding How to update and delete pages ?
In my sample app, I also created pages but I am not able to update and delete those pages.
So please give me solution for this issue.
Thanks.

error: Potentially incompatible change required to top-level dependency

% meteor update
This project is already at Meteor 1.2.1, the latest release.
=> Errors while upgrading packages:           

While selecting package versions:
error: Potentially incompatible change required to top-level dependency: orionjs:core 1.6.0, was 1.7.0.
Constraints on package "orionjs:core":
* orionjs:[email protected] <- orionjs:bootstrap 1.6.0
* orionjs:[email protected] <- vsivsi:orion-file-collection 0.2.2

Potentially incompatible change required to top-level dependency: orionjs:bootstrap 1.6.0, was 1.7.0.
Constraints on package "orionjs:bootstrap":

Potentially incompatible change required to top-level dependency: orionjs:filesystem 1.6.0, was 1.7.0.
Constraints on package "orionjs:filesystem":
* orionjs:[email protected] <- vsivsi:orion-file-collection 0.2.2
* orionjs:[email protected] <- orionjs:summernote 1.6.0
* orionjs:[email protected] <- orionjs:froala 1.6.0
* orionjs:[email protected] <- orionjs:image-attribute 1.6.0

Potentially incompatible change required to top-level dependency: orionjs:summernote 1.6.0, was 1.7.0.
Constraints on package "orionjs:summernote":

Potentially incompatible change required to top-level dependency: orionjs:froala 1.6.0, was 1.7.0.
Constraints on package "orionjs:froala":

Potentially incompatible change required to top-level dependency: orionjs:image-attribute 1.6.0, was 1.7.0.
Constraints on package "orionjs:image-attribute":

Potentially incompatible change required to top-level dependency: orionjs:relationships 1.6.0, was 1.7.0.
Constraints on package "orionjs:relationships":

Potentially incompatible change required to top-level dependency: orionjs:lang-es 1.6.0, was 1.7.0.
Constraints on package "orionjs:lang-es":

To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.

Launching as suggested :
% meteor --allow-incompatible-update
downgrades orionjs to 1.6.0 :(

meteor --allow-incompatible-update
[[[[[ ~/dev/meteor/orionjs-examples/blog ]]]]]

=> Started proxy.                             
=> Started MongoDB.                           

Changes to your project's package version selections:

orionjs:accounts         downgraded from 1.7.0 to 1.6.0
orionjs:attributes       downgraded from 1.7.0 to 1.6.0
orionjs:base             downgraded from 1.7.0 to 1.6.0
orionjs:bootstrap        downgraded from 1.7.0 to 1.6.0
orionjs:collections      downgraded from 1.7.0 to 1.6.0
orionjs:config           downgraded from 1.7.0 to 1.6.0
orionjs:core             downgraded from 1.7.0 to 1.6.0
orionjs:dictionary       downgraded from 1.7.0 to 1.6.0
orionjs:filesystem       downgraded from 1.7.0 to 1.6.0
orionjs:froala           downgraded from 1.7.0 to 1.6.0
orionjs:image-attribute  downgraded from 1.7.0 to 1.6.0
orionjs:lang-en          downgraded from 1.7.0 to 1.6.0
orionjs:lang-es          downgraded from 1.7.0 to 1.6.0
orionjs:relationships    downgraded from 1.7.0 to 1.6.0
orionjs:summernote       downgraded from 1.7.0 to 1.6.0

I20151121-17:37:36.542(1)? Orion config initialized
I20151121-17:37:36.544(1)? Orion dictionary initialized
=> Started your app.

=> App running at: http://localhost:3000/

Where does this error come from ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.