Code Monkey home page Code Monkey logo

muon's People

Contributors

kreees avatar lavn avatar prikha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

schetnev

muon's Issues

small snag with int.'s

Hello and Thank You! This is an amazing project!

When exploring it, I did run into one very minor snag.

running ./bin/init.js some_project

throws:
...
Creating: /client/packages/application/tr/default/action/
Creating: /client/packages/application/tr/ru/action/

fs.js:427
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory '/.../muonjs/mui_test/client/packages/application/views/layout/page/start/start.jade'
    at Object.fs.openSync (fs.js:427:18)
    at Object.fs.writeFileSync (fs.js:966:15)
    at fs_ext.traverse_dir.complete (/.../muonjs/bin/init.js:115:8)
    at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:41:17)
    at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
    at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
    at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
    at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
    at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
    at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)

a resolution (to the thrown error, at least):

in bin/init.js
    add "/client/packages/application/views/layout/page/start/" to array dir
    add "/client/packages/application/tr/#{lang}/layout/page/start/" to array tr_dir

hasMany assocations do not work if provided as object

This works as it should and reflects a has_many association on the model class.

// models/user.js
module.exports = {
    attributes: {
        "nick": "text"
    },
    hasMany: {
        projects: "project"
    }
}

However this does not work as it should.

// models/user.js
module.exports = {
    attributes: {
        "nick": "text"
    },
    hasMany: {
        projects: {
            type: "project"
        }
    }
}

as m.models.user.hasManyRelations returns blank object.

LICENSE?

you must include license text for MIT license

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.