Code Monkey home page Code Monkey logo

novicell-frontend's People

Contributors

adampnielsen avatar ankeris avatar bjornnyborg avatar dan9boi avatar dependabot[bot] avatar emilankersen avatar emilbbusch avatar emilras avatar greenkeeper[bot] avatar heense avatar henrikschytze avatar hesselberg avatar jhavmoeller avatar korfitz avatar magnify avatar marklonquist avatar misterwinther avatar mkandersen avatar msoelvsteen avatar nesuarg avatar ottzen avatar ramiejleh avatar sebimoe avatar sergismj avatar shp-novicell avatar simoneldevig avatar sorena avatar soreng avatar tbb2 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

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

novicell-frontend's Issues

Flexbox doesn't work on iOS

When using flexbox in the stylesheet, it is not getting the correct prefixing. This should be handled by "autoprefix" but it's not...

SVG bundles

Make it possible to make multiple SVG sprites, as bundles, eg. for use in CMS backends.
I guess all that needs to be done, is renaming the sprite outputname to the name of the bundle. Find a renaming module and do something like:

.pipe(...)
.pipe(rename(b.name + '.svg'))
.pipe(gulp.dest(config.iconsDist));

icons.json is not being generated

icons.json is not being generated, after variables is made in the config file. Something is wrong with it. I can cosole.log the object of the icons and the path, but it doesn't work.

Please fix!

Lazyload google maps

Insert a google static maps, and then embed a "real" google map when clicking on the image from static maps.
Remember to update the docs.

Focalpoint image errors

Does not take the parent width, is data-parent is set and it doesn't take the full height of the parent.

Change the way how variables are declared

var novicell = novicell || {};

This is cool, and make sense to me, but after this, we declare the new var like this:

example:

novicell.lazyload = novicell.lazyload || function () {}();

I think is better, and make more sense to me declare the var like this:

novicell.lazyload = function () {}();

The other way, for me, is a little bit "antipattern" and it does not make sense because this declaration is for avoiding "override" when you create a function in javascript, but this way to code must be used for the users that use the package, not by the package, maybe with a little part of code you can understand me:

var novicell = novicell || {};
novicell.package = novicell.package || function() {

    function foo() {
        return "bar";
    }

    return {
        foo: foo
    };
}();

novicell.package = function() {};
console.log(novicell.package.foo());

You can test it on: https://jsfiddle.net/odp1do49/1/

If the user using the package create a function with the same name this will override the function even if it's written this way: novicell.package = novicell.package || function() {}();, and that's because for me not make sense write the function in this way on the package.

Regards :)

When (npm) installing the packages under node v7.1.0 warnings are given

the following warnings are issued when executing npm install on a "blank" machine:

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g

The dependency-tree for graceful-fs is:

+-- [email protected]
| -- [email protected]
| +-- [email protected]
| | -- [email protected]
| | -- [email protected]
| | -- [email protected]
| | -- [email protected]
| -- [email protected]
+-- [email protected]
| -- [email protected]
-- [email protected]
-- [email protected]

Specific gutters on different breakpoints

Had a chat with @KimDolleris about adding specific gutters on different breakpoints. Say on a tablet we want a gutter on 30px, but on desktop we want it to be 40px.

mixins.grid.less:22

// Generate the extra small columns
.make-xs--column(@columns) {
    position: relative;
    float: left;
    width: percentage((@columns / @grid-columns));
    min-height: 1px;
    padding-left:  (@gutter / 2);
    padding-right: (@gutter / 2);
}

Looking at the above code, I guess we could add various variables for the gutter, so, maybe something like @xs-gutter, and so on for each breakpoint. By default they should all reference the main @gutter, but this does give each project the possibility of adding different gutters.

Thoughts? Let's discuss!

Font loading

Make standard async font loading pattern, as novicell.font.js or whatever.

Remove bower

Hi,

I think nowadays bower is kind of obsolete as you can find all your frontend packages on npm.
So I propose we get rid of bower. The advantage is one tool less which means less config.

What do you think?

Cheers,
Cristhian.

Remove gulp-sass

This package is the default foundation for Novicell Projects.
In Novicell we always use LESScss, and I see no reason why this package should support SASS / SCSS when we do not use it.

Cleanup themes task

Remove the task it self, and make the styles task seperate each file in the bundle. Get the name of the minified file from the original file, like the themes task does, right now.

Flexbox grid

Look into flexboxgrid.com and make new cool grid using flexbox and all it's goodness 💪

Add a way to force height to the image in lazy load responsive

I don't know if I miss something but sometimes I have problems with the height on the images with this plugin, the problem was that there is not a way to force the height of the image and crop it. To solve this I modified the plugin to be able to do this, If you interested in this change I can do a pull request.

Rebuild node-sass

Every time npm is installed through visual studio , when we run gulp through git bash afterwards it requires to rebuild node-sass

Icons can't change fill

We have a problem with icons that have inline "fill", can't have their "fill" overritten by CSS.
Therefore we need to remove the inline "fill"-attribute on all svg's before adding them to the sprite.

The problem is similar to this: svg-sprite/svg-sprite#121

Please fix :)

Split JS plugins into separate repos

Split all js plugins into separate repos to make easier maintenance and separation of concerns. This is also for not bloating this repository with files not necessarily being used on all projects.

We can then load the the scripts through NPM and extend them via the new syntax mentioned #111.
Make sure the change the scripts to the new syntax, when moving into seperate repos.

Look at srcset

Look at srcset, and figure out if it could replace the focalpoint image, and make a remarkable simpler js method to lazyload images.
At the time of writing this, IE11 is the only broser which is not supporting the srcset, but maybe this could be fixed with a polyfill. IE11 is at 9.4% market share in Denmark.

http://caniuse.com/#search=srcset

File not found-error

Would be great if Gulp could throw an error, if there is a reference to a file, that doesn't exist. This would make it far easier to debug typos in filename inside Gulp bundles.

Example:

 {
                name: "master",
                scripts: [
                    ...
                    projectPath + "scripts/components/nobicell.cookieinfo.js",
                    ...

Error: something something, nobicell is not defined.

Remove typescript

Remove typescript task from the project, as we haven't yet used it, and are probably never going to.
@Novicell/team-contributers @marklonquist

No need for vendorprefix mixins

We have a collection of vendor-prefix-mixins, but we also have autoprefixer, which does the trick aswell.
Maybe we should remove the mixins.

Flex grid

Skal vi ikke lave vores "bootstrap"-grid om til at køre med flex-box!?

50% of the source code for the grid isn't used?

While creating a grid based off on the grid in novicell-frontend, I found out that about 50% of the source code isn't even used.

Perhaps we should look into cleaning it, while we're also looking at using the flexbox grid in #40 ?

Icons task fails on first run-through

When you clone a clean install of the frontend package, you get the following error when running gulp. I'm guessing we need to make sure, it doesn't depend on the icons folder in the dist folder?

{ Error: ENOENT: no such file or directory, mkdir './dist/icons/'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:922:18)
    at writeFile (/Users/larshesselberg/Arbejde/Beneath/Kunder/Kilroy/00000 KILROY - Brand Portal 2016-2018/Benns Frontend/gulp/tasks/icons.js:20:16)
    at genereateIconJsonLibrary (/Users/larshesselberg/Arbejde/Beneath/Kunder/Kilroy/00000 KILROY - Brand Portal 2016-2018/Benns Frontend/gulp/tasks/icons.js:66:9)
    at FSReqWrap.oncomplete (fs.js:123:15)
  errno: -2,
  code: 'ENOENT',
  syscall: 'mkdir',
  path: './dist/icons/' }

Remove inline fill and stroke

When exporting SVG's from Sketch, we get a lot of bloat including inline fill and stroke attributes on the elements. This prevents us from overriding through CSS.

We need to get GULP to remove the inline elements per bundle, so that you can have a bundle of eg. flags that always should keep their fill and stroke.

Maybe this gulp plugin can help:
https://www.npmjs.com/package/remove-svg-properties

Example of a Sketch exported SVG icon:
arrow.zip

Split framework from build setup

Divide the frontend framework (scripts and less) from the gulp build setup.
These two things does not directly depend on each other, and should be in separate repos, for easier maintenance.
If we do this, it could be possible to update the gulp build setup separately from the project files like, less components and so on.

Cleanup input / forms styling

This needs a good cleanup, including variables, variable names and so on.

Remember to make great documentation, and examples (in the examples folder).

Make examples great again

Make the examples work, when just copying the files from the examples folder into the root folder.

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.