2.4.10 • Published 12 days ago

@hulkapps/app-manager-vue v2.4.10

Weekly downloads
-
License
-
Repository
-
Last release
12 days ago

App Manager Vue SDK

Installation

You can install the package via npm:

npm i @hulkapps/app-manager-vue

Register

import Vue from 'vue';
import AppManager from '@hulkapps/app-manager-vue';

Vue.use(AppManager);

Usage

<Banners type="header" @handleBannerClose="handleBannerClose" :translations="translations"/>
<Banners type="footer" @handleBannerClose="handleBannerClose" :translations="translations"/>
<AppManagerPlan @handlePlanSelect="handlePlanSelectListener" @handlePlanBannerClose="handleBannerClose" :shop_domain="shop_domain" :translations="translations"/>
<AppManagerSliderPlan @handlePlanSelect="handlePlanSelectListener" @handlePlanBannerClose="handleBannerClose" :shop_domain="shop_domain" :translations="translations"/>

The AppManagerPlan component requires a Shop Domain

Non-Vue App usage

<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@hulkapps/app-manager-vue@2.0.3/dist/app-manager-vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/regenerator-runtime@0.13.9/runtime.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/@hulkapps/app-manager-vue@2.0.3/dist/hulkapps-app-manager.css" rel="stylesheet">

<div id="app" class="app-manager">
    <Banners type="header"  @handleBannerClose="handleBannerClose"/>
    <app-manager-plan  @handle-plan-select="handlePlanSelectListener" @handlePlanBannerClose="handleBannerClose" :translations="translations" shop_domain="<%= @store.shopify_domain %>" />
</div>

<script>
    Vue.use(AppManagerVue, {baseUrl: '<%= ENV['volume_domain'] %>'})
    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!',
            domain: '<%= @store.shopify_domain %>'
        }
    })
</script>

A handlePlanSelect event is emitted when the user continues without selecting a plan.

handlePlanSelectListener(payload) {

  if (payload.choose_later && payload.choose_later === true) {
    //handle choose_later
  }
    
 if (payload.free_plan && payload.free_plan === true) {
         //handle free_plan selection
       }
}

A handleBannerClose event is emitted when the user closed banner.

handleBannerClose(payload) {

    //handle close event
}

License

The MIT License (MIT). Please see License File for more information.

2.4.10

12 days ago

2.4.9

19 days ago

2.4.7

2 months ago

2.4.6

2 months ago

2.4.8

2 months ago

2.4.5

2 months ago

2.4.4

2 months ago

2.4.3

2 months ago

2.4.2

3 months ago

2.4.1

3 months ago

2.4.0

5 months ago

2.3.1

10 months ago

2.3.4

7 months ago

2.3.3

9 months ago

2.3.6

7 months ago

2.3.5

7 months ago

2.3.7

6 months ago

2.3.0

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

2 years ago

2.2.5

2 years ago

2.1.2

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.2.3

2 years ago

2.1.4

2 years ago

2.0.5

2 years ago

2.2.2

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.0.7

2 years ago

2.2.4

2 years ago

2.1.5

2 years ago

2.0.6

2 years ago

2.1.8

2 years ago

2.0.9

2 years ago

2.1.7

2 years ago

2.0.8

2 years ago

2.1.0

2 years ago

2.1.9

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago