Giter Club home page Giter Club logo

ehni / fundamental-vue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sap/fundamental-vue

0.0 1.0 0.0 39.98 MB

Vue.js components implementation of Fundamental Library Styles guidelines. The library is aiming to provide a Vue.js implementation of the components designed in Fundamental Library Styles.

Home Page: https://sap.github.io/fundamental-vue

License: Other

JavaScript 38.89% Vue 59.32% Shell 0.43% HTML 0.50% CSS 0.22% TypeScript 0.17% SCSS 0.47%

fundamental-vue's Introduction

Fundamental Vue

npm version Minified Size Minzipped Size Build Status Coverage Status Slack REUSE status

Description

The fundamental-vue library is a set of Vue.js components built using Fundamental Library Styles.

Fundamental Library for Vue is behind the latest Fundamental Library Styles and is open for contributors.

API Reference

See Component Documentation for examples and API details.

Requirements

To download and use Fundamental Vue library, you first need to install the node package manager. https://www.npmjs.com/get-npm

Some prior knowledge of Vue is required for using this library.

Getting started

Fundamental Vue in 5 Minutes or less

Paste the following snippet in your <head>-tag:

<link
    rel="stylesheet"
    href="https://unpkg.com/fiori-fundamentals@latest/dist/fiori-fundamentals.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/fundamental-vue@latest/dist/FundamentalVue.umd.js"></script>

Then you can use Fundamental Vue like this:

<div id="app">
  <fd-popover v-fd-margin:large placement="bottom-start" with-arrow>
    <h1 v-fd-margin:large>
      ๐Ÿš€ Hello Fundamental Vue ๐Ÿš€
    </h1>
    <template #control="{toggle}">
      <fd-button @click="toggle">Show Popover</fd-button>
    </template>
  </fd-popover>
</div>

<script>new Vue({ el: '#app' })</script>

When using Fundamental Vue via a <script>-tag you don't have to install it manually by calling Vue.use(FundamentalVue). This is done for you automatically. You can disable the automatic installation by setting window.__FD_AUTO_INSTALL_DISABLED_KEY__ to true early on.

If you are targeting IE 11 you have to include the IE-compatible build of Fiori Fundamentals:

<link rel="stylesheet" type="text/css" href="https://unpkg.com/fiori-fundamentals@latest/dist/fiori-fundamentals-ie11.min.css">

How to install Fundamental Vue via NPM is described below.

Install

To download and use this library, you first need to install the node package manager - npm.

  1. Install Fundamental Vue

    NPM

    $ npm install --save fundamental-vue

    After installing, you will need to import fundamental-vue and make it available to your Vue application. These instructions assume the usage of Vue CLI to scaffold your project.

    In your project's main.js:

    import FundamentalVue from 'fundamental-vue';
    Vue.use(FundamentalVue);
    // โ€ฆ

    Fundamental Vue does not include the Fundamental Library Styles which is required for styling.

  2. Install Fundamental Library Styles

    The quickest way to get Fundamental Library Styles styling for your components is to include the compiled and minified Fundamental Library Styles with the following CDN link in your public index.html file:

    <link rel="stylesheet" type="text/css" href="https://unpkg.com/fiori-fundamentals@latest/dist/fundamental-styles.min.css">

    However, installing the Fundamental Library Styles with npm (recommended) will give you the flexibility to use individual components and enable advanced customisation options. In this case, you do not need the CDN link as this method uses the SASS/SCSS source.

    To install the Fundamental Library Styles source:

    $ npm install --save fundamental-styles

    The following assumes the usage of a module bundler such as webpack. To compile Fiori Fundamentals SASS/SCSS to CSS, two additional packages are required for your bundling process - sass-loader and node-sass. To install these packages as development dependencies:

    $ npm install sass-loader node-sass --save-dev

    Loading the SCSS and running your project at this point will result in errors relating to the path configuration for icons and fonts. This is a known issue.

    You can now use the Documentation to browse the components currently available with Fundamental Vue.

    To use a Fundamental Vue component, paste the desired code snippet from the Playground and configure it as necessary:

    <fd-alert dismissible>
        Happy building! ๐Ÿš€
    </fd-alert>

Versioning

The fundamental-vue library follows Semantic Versioning. These components strictly adhere to the [MAJOR].[MINOR].[PATCH] numbering system (also known as [BREAKING].[FEATURE].[FIX]).

Merges to the master branch will be published as a prerelease. Prereleases will include an rc version (e.g. [MAJOR].[MINOR].[PATCH]-rc.[RC]).

Known Issues

Please see Issues.

Developer Guide

Interested in contributing to this Fundamental Vue? See the Developer Guide.

Testing Guide

See the Testing Guide.

Support

If you encounter an issue, you can create a ticket

Contributing

If you want to contribute, please check the Developer Guide documentation for contribution guidelines.

Check out this guide on building a new component for the library and creating the necessary documentation for your new component.

Similar Projects

fundamental-vue's People

Contributors

albrechtjohannes avatar christiankienle avatar codesofra avatar damianlion avatar dandashino avatar deepshikha02 avatar dependabot-preview[bot] avatar dependabot[bot] avatar droshev avatar fundamental-bot avatar greg-a-smith avatar innaatanasova avatar jbadan avatar jonathanbaker7 avatar kzai avatar mattl75 avatar pierrefritsch avatar scottheron avatar sebastianoe avatar suwarnoong avatar xujing-shen avatar

Watchers

 avatar

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.