Giter VIP home page Giter VIP logo

foam's People

Contributors

adamvy avatar adamvy-google avatar agrieve avatar arthurhsu avatar bruthig avatar bshepherdson avatar freshp86 avatar honr avatar jacksonic avatar javayu avatar jlhughes avatar jpchase avatar kgrgreer avatar lifebeyondfife avatar mcarcaso avatar mdittmer avatar mthiesse avatar yuriy-tolstoguzov avatar zainafzal08 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  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  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  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  avatar  avatar  avatar

foam's Issues

Code review request

From [email protected] on October 16, 2013 11:32:57

Branch name: detab Purpose of code changes on this branch: Run fixjsstyle --strict and expand on scripts to remove all tab chars and make sure the formatting of JS code is consistent.

There are still some files not fixed because I have no idea how to fix that without breaking them.

When reviewing my code changes, please focus on the correctness. I've run the demos/test.html and demos/dao.html, also the crbug and tomail. I had not tried Saturn Mail. After the review, I'll merge this branch into: /trunk

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=21

cannot load foam from a subdirectory

From [email protected] on March 31, 2013 10:19:59

What steps will reproduce the problem? 1. put foam in a subdirectory, e.g. "foam"
2. try to load foam from an html using <script language="javascript" src="foam/bootFOAM.js"></script>. 3. What is the expected output? What do you see instead? Failed to load resource file:///C:/Users/psperneac/Documents/gschoolmap/FOAMmodels.js
Uncaught ReferenceError: GLOBAL is not defined schools.html:10
Failed to load resource file:///C:/Users/psperneac/Documents/gschoolmap/bootFOAMMain.js

happens here:
document.writeln('<script type="text/javascript" src="FOAMmodels.js"></script>\n');
document.writeln('<script type="text/javascript" src="bootFOAMMain.js"></script>\n'); What version of the product are you using? On what operating system? chrome on windows 7 Please provide any additional information below. You can get the locatio using something like this:
var jsFileLocation = $('script[src*=bootFOAM]').attr('src'); // the js file path
jsFileLocation = jsFileLocation.replace('bootFOAM.js', '');

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=20

Support static/class properties.

From [email protected] on October 22, 2013 10:59:25

Currently, all properties are stored as instance variables, but we need to add support for static/class properties.

This could be done by specifying the allocation-scope of the property as either instance (the default) or static. Everything would work exactly as it is now, except that static properties would be stored in a map named static_ stored in the prototype, instead of the instance_ map in the object itself.

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=26

Bug in JavaSource generation

From [email protected] on October 21, 2013 17:52:30

DAO.javaSource()

public interface DAO
extends Sink
{
void find(Predicate|Object key, Sink sink);
void removeAll(Object options);
void select(SinkI sink, Object options);
void pipe(Sink sink, Object options);
void listen(Sink sink, Object options);
void unlisten(Sink sink);
void where(Predicate query);
void limit(Integer count);
void skip(Integer skip);
void orderBy(Comparator comparators);
}

which is not right. Some of the functions have return values.

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=25

Scope hostility in code

From [email protected] on October 22, 2013 15:00:27

Currently all models must be defined as global scope, e.g.

Model.create({
model_: 'Model',
name: 'MyModel',
...
});

If I want to have MyModel to be under a namespace, say cr.app.music.data.MyModel, that won't work. There are certain places in the FOAM code that is hostile to namespace scopes. For example, mm5Misc.js:140

defaultValueFn: function() { return GLOBAL[this.relatedModel].plural; }

The GLOBAL does have the relatedModel (cr.app.music.data.MyModel), but JavaScript won't allow one to access that thing as GLOBAL['cr.app.music.data.MyModel']. It accepts either cr.app.music.data.MyModel, or GLOBAL['cr']['app']['music']['data']['MyModel'].

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=29

Model CSS

From [email protected] on October 23, 2013 10:27:27

Standard/default CSS should be included in View Models. Components should not depend on external CSS files for proper function. FOAM's view components need to be completely self-contained, otherwise they're not really components. I should be able to give you a component that you can drop into your system by adding the Model to your ModelDAO and then it should work. It shouldn't require you to then go and add CSS somewhere as well. In order for the component to be entirely self-contained, it needs to come with the necessary CSS and have a mechanism to install it in a way that doesn't conflict with any other component, including other instances of the same component type. Components should no more pollute the global CSS space, than they should the global JS namespace. Once a component is installed, if some designer wants to provide new styling to customize the appearance, I'm perfectly happy with that. I think that we should separate the CSS and the HTML, but that, just like everything else, they should both be stored in the Model. Then, if someone wants to customize them, FOAM should give them lots of methods of doing so, including the use of CSS files (but subclassing, decoration, editing the Model directly, bundles, ContextFactories, etc. would work also).

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=30

FOAM Source Tree Reorg

From [email protected] on November 06, 2013 09:07:38

Restructure the FOAM source code tree:

core
experimental
tools
apps
saturn
crbug
...
demos
docs
tests

core = equivalent of current root directory
tools = /tools now
apps = /apps now
demos = /demos now
tests = /*_test.js all current testing files with '_test' removed
docs = just doc.txt and TODO for now

I may also introduce sub-directories under core for things like:

dao - DAO + mLang code
view - (HTML) View code
cview - Canvas View code

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=37

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.