Skip to content

some jquery plugins extended by one core library called jquery plugin manager.

Notifications You must be signed in to change notification settings

thzt/web.frontend.component

Repository files navigation

web.frontend.component

Big picture

Here are some commonly used web-frontend components.

In /library directory, there are some pure javascript libs.

In /jqueryplugin directory, there are some plugins based on jquery.

Dependency

About "underscore", it is a library provided some functional-style methods,

some operations on set would be simplified by using it.

About "/bootstrap" "/bootstrap-datetimepicker" "/jquerymobile" "/webuploader",

only a few libs depend on them, I write xxx-wrapper to encapsulate them.

such as modalwrapper encapsulated bootstrap modaldialog,

datepickerwrapper capsulated datetimepicker.

Why do I create these wrappers, you can see chinese blog:

设计的连续性

Modularization

Dealing with each lib, I put all its utilities in one folder.

Most of libs, I create test-xxx.html to show the use-case of them separately.

More about jquery plugins

As you see, there would be so many jqueryplugins in real world project.

So I create a library to manage them: pluginmanager

Therefore I can write plugins in an uniform way.

For more details, you can see testpluginmanager.html in its own folder,

or chinese blogs:

jQuery插件的把玩方式

More about design

other related blog about the art of design are as follow:

封装的内涵

设计的正交性

可替换的设计策略

抽象的层次

消除重复与可复用相距多远

About

some jquery plugins extended by one core library called jquery plugin manager.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published