Git Product home page Git Product logo

themes-gnap's People

Contributors

arned avatar dyonysos avatar sroosen avatar vincentsels avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

themes-gnap's Issues

Sidebar should render hrefs when it can

Currently the sidebar only renders ng-click to a select() method. This is done because the developer can do some interaction when he registers a click on a sidebar menu item.

We should detect if a state is registered (and no click), then we should add a ui-sref to it.

Document possible APIs

Document how the APIs work, so people from the backend can implement them in parallel

  • Translation
  • Languages

Tooltip colors are missing

Normally the tooltips have a color, but now they are all black. Probably some css is wrong because we append them to body.

Detect Accept-Language headers

Currently when a user visits the site, we determine the default language by checking and window navigator language.

This is better than just hard coding a default, since it checks at the language of the browser, which probably is the same as the language of the user.

However, this is not always the case. But since we don't have access to accept headers in javascript, this information has to come from the server.

Thus we should provide a facility to set the language programmatically, but only on first load.

Allow HTML minification

Run HTML minifier and see if the UI looks the same (no dependencies on newline whitespaces)

Don't depend on Ace JS

Try to not depend on layout.js, ace.js and ace-extra.js for the Angular things. Since these files are mostly jQuery orchestration which we should now do in directives etc

Please update bootbox.js library

bootbox.js version that we have now allows only textbox as input in a prompt.

We need to have the latest version to be able to add a select or other input.

Thanks.

Fix datepicker picker

  • Layout of datepicker and daterange picker is broken
  • Logic of daterange picker differs from plain

Icon - fontawesome

Can you please update the theme to be able to have the new fontawesome icons

Thanks

Fix template paths

Currently the template paths of the directives go to 'js/....'

When they are installed, they end up in 'vendor/gnap.../js/....', giving a 404

We should fix this

  • Put the correct full template in the directive
  • Use some mechanism like bootstrap ui which has templates in code

Dealing with UTF-8

Currently, we serve .json files with translations. These files can contain characters such as ร€, which should be saved as UTF-8 to work properly in the theme.

For some users, this is actually quite a big step (perhaps one that we can resolve with just having a yo translation generator). Some people will see their characters come out as question marks, and will try to replace them with html entities, requiring them to abandon the translate filter and use the directive, or have ng-bind-html everywhere (possibly unwanted)

Are there other things that can help us?

Most user friendly practice would be to let the user type in special characters without worrying, and then we somehow always interpret those files as UTF-8, or we let the server serve them with UTF-8 charset defined on it (always without BOM anyway)

Clean up examples

Go over all examples and check for info that can be removed (classes, ids)
Also have a look at indenting to make them consistent (4 spaces)

Sidebar directive is broken

The sidebar directive uses a controller that accepts a $scope. During minification this scope is renamed which causes the directive to raise an error.

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.