contact-form/

directory
v0.0.0-...-d885e2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2020 License: AGPL-3.0

README

Contact Form

Contact form module for Rapido

Installation

Using yarn

yarn add contact-form

Using npm

npm i --save contact-form

Demo and Docs

npm run serve

Usage

ES6 Modules / CommonJS
import ContactForm from 'contact-form';
import 'contact-form/dist/contact-form.min.css';

Vue.component('contact-form', ContactForm);
<contact-form text="Hello World!"></contact-form>
UMD
<contact-form text="Hello World!"></contact-form>

<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/umd/contact-form.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./dist/umd/contact-form.min.css">

<script type="text/javascript">
  Vue.component('contact-form', window.ContactForm.default);
</script>

Build

Build configuration is located in the poi.config.js file, to build just run: npm run build, it will build to cjs and umd directories.

Build the extension as a Go plugin (.so file) :

go build -buildmode=plugin -o $GOPATH/src/Rapido/extension/communication/razorcms/contact-form/models/obj.so $GOPATH/src/Rapido/extension/communication/razorcms/contact-form/models/main.go

Tests

This template uses Karma with Chai by default, you can change test settings in poi.config.js

npm run test npm run test:watch npm run test:cov

License

Contact Form is Free and Open Source Software. You can redistribute it and/or modify it under the terms of the GNU Affero General Public License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL