File | Date | Author | Commit |
---|---|---|---|
build | 2018-02-13 |
![]() |
[16de68] updated |
docs-src | 2018-02-24 |
![]() |
[87c415] updated |
locale | 2018-02-21 |
![]() |
[b85107] clean-up |
src | 2018-02-24 |
![]() |
[438ce1] change outline style |
.editorconfig | 2017-07-09 |
![]() |
[6c7b41] add .editorconfig |
.eslintignore | 2018-01-27 |
![]() |
[e3564f] create .eslintignore |
.eslintrc.js | 2018-01-27 |
![]() |
[c22316] create .eslintrc.js |
.framevuerkrc.json | 2018-02-03 |
![]() |
[714507] remove config-name |
.gitignore | 2017-12-10 |
![]() |
[f9c8cf] add package-lock.json and yarn.lock |
.npmignore | 2018-01-30 |
![]() |
[6ce252] add public path |
.postcssrc.js | 2018-01-27 |
![]() |
[307893] create .postcssrc.js |
.stylelintrc.json | 2018-01-27 |
![]() |
[695a60] create .stylelintrc.json |
LICENSE | 2018-02-20 |
![]() |
[4749b7] create license |
README.md | 2018-02-20 |
![]() |
[cd544a] add license badge |
package.json | 2018-02-24 |
![]() |
[c90135] version++ |
prepublish.sh | 2018-02-03 |
![]() |
[9d0c78] updated |
Responsive, Multi Language, Both Direction Support and Configurable UI Framework based on Vue.js.
First at all, you should install Framevuerk
and of course Vue
from terminal.
npm install vue --save
npm install framevuerk --save
You can also install these, just if you want active touch actions support, fvDatepicker
jalaali dates supoort and icons.
npm install idate --save
npm install hammerjs --save
npm install font-awesome --save
And just follow the example and use it! (commonjs
syntax and require
also available)
// Vue package
import Vue from 'vue'
// Framevuerk main js file
import Framevuerk from 'framevuerk/dist/framevuerk.js'
// If you handle styles with webpack, import this. Else you can include this via <link rel="stylesheet">
import 'framevuerk/dist/framevuerk.css'
// IDate package, just if you want support jalaali dates for fvDatepicker
import IDate from 'idate'
Framevuerk.use('date', IDate)
// Hammer package, just if you want active touch actions support
import Hammer from 'hammerjs'
Framevuerk.use('hammer', Hammer)
// Font-Awesome icons, just if you want active icons
// If you handle styles with webpack, import this. Else you can include this via <link rel="stylesheet">
import 'font-awesome/css/font-awesome.css'
// Active Framevuerk...
Vue.use(Framevuerk)
// And finally, Initializing app
const app = new Vue({
el: "#app"
});"
Finally you need to create your template just like this.
<html>
<head>
<link rel="stylesheet" href="path/to/your/app.css"/>
</head>
<body>
<fv-main id="app">
<!-- Your Content -->
</fv-main>
<script src="path/to/your/app.js"></script>
</body>
</html>
Framevuerk can have different language, direction, and colors based on the user's taste. To setup your custom version, create a file called .framevuerkrc.js
in root of your project and put these on:
module.export = {
// config name
'config-name': 'foobar',
// your locale and direction.
locale: 'en', // or 'fa'
direction: 'ltr', // or 'rtl'
// theme colors:
'primary-color': '#41b883',
'danger-color': '#dd4b39',
'warning-color': '#ef8f00',
'info-color': '#14b0cf',
'bg-color': '#f9f9f9',
// base padding size
padding: '15px',
// base animation speed
'transition-speed': '0.35s',
// base border radius applied to buttons, inputs and etc.
'border-radius': '4px',
// base shadow size applied to header, footer, form elements and etc.
'shadow-size': '3px'
}
And output files goes to ./node_modules/framevuerk/dist
directory:
You can also use .framevuerkrc.json
, .framevuerkrc
or framevuerk
key inside your package.json
to pass this variables to Framevuerk!
Framevuerk apply these config on before every install or by this cli command:
framevuerk build lib
# or
./node_modules/.bin/framevuerk build lib
You are now config your app to use Framevuerk
! Let's go to use our components:
Full Documention and Demo