0.4.98 • Published 3 years ago

vue-nxp-notifications-ui-plugin v0.4.98

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

NXP Notification UI Plugin

  • Nxp-Notifications-Ui-Plugin is a vueJs plugin for managing institution Notification settings.

Requirements

  • Nxp UI Plugin.
npm i vue-nxp-plugin

Configuration

  • add the following line to your hosts file to trust notification Certificate.
3.22.52.234 notifications-transvers-integration.app.dev.s2m.ma

Installation

  • via npm, latest version.
npm i vue-nxp-notifications-ui-plugin
  • via package.json with specific version (integration Deployments).
"vue-nxp-notifications-ui-plugin" : "0.5.26",

NB :

Add following code to your package.json in order to download the plugin from nexus repository.
"publishConfig": {
"registry": "https://artifact-repos.dev.s2m.ma/repository/npm-hosted/",
},
  • via package.json with specific version (local Developments).
"vue-nxp-notifications-ui-plugin" : "0.4.98",

Settings

  • After Installing the Plugin, Use it globally in your main.js file.
import NotificationConfigurationPlugin from 'vue-nxp-notifications-ui-plugin/dist/nxp-notifications-ui-plugin.common';
import 'vue-nxp-notifications-ui-plugin/dist/nxp-notifications-ui-plugin.css';

Vue.use(NotificationConfigurationPlugin,{ 'notificationUrl': process.env.VUE_APP_ITSP_NOTIFICATION_URL, 'parametersInstitutionExistenceUrl': process.env.VUE_APP_ITSP_PARAMETERS_MICROSERVICE_CHECK_INSTITUTION_EXISTENCE, 'parametersConfigurationUsageUrl': process.env.VUE_APP_ITSP_PARAMETERS_MICROSERVICE_CHECK_CONFIGURATION_USAGE});

- With :

  • VUE_APP_ITSP_NOTIFICATION_URL is an environment variable in .env and .env.production files which is the notification Microservice url.

  • VUE_APP_ITSP_PARAMETERS_MICROSERVICE_CHECK_INSTITUTION_EXISTENCE is an environment variable in .env and .env.production files which is the api url for check-institution-existence (the api returns true if the institution exists by institution Id before creating or updating the configuraiton).

  • VUE_APP_ITSP_PARAMETERS_MICROSERVICE_CHECK_CONFIGURATION_USAGE is an environment variable in .env and .env.production files which is the api url for check-configuration-usage (the api returns true if the configuration is used in an entity before delete action).

So in your Institution MicroService you have to implement two Apis, example :

@PostMapping("/exists")
public ResponseEntity<Boolean> existsByInsId(@RequestBody String operationData) {
    return new ResponseEntity<>(this.institutionService.existsByInsId(operationData), HttpStatus.OK);
}

@PostMapping("check-usage")
public ResponseEntity<Boolean> existsByNotificationConfigurationName(@RequestBody String operationData) {
    return new ResponseEntity<>(this.binService.existsByNotificationConfigurationName(operationData),
            HttpStatus.OK);
}
  • finally, in your i18n file plug notification plugin i18n variable:
setTimeout(()=>{
    your_messages.en = {...Vue.prototype.$notification_messages.en ,...your_messages.en}
    your_messages.fr = {...Vue.prototype.$notification_messages.fr ,...your_messages.fr}
},0)
  • with Vue.prototype.$notification_messages is a global variable coming from notifications plugin.

Props

  • institution : Object.

Events

  • close : when the user clicks on Close Button.

Usage

  • You can simply import The base Component as follows :
<template>
  <div>
    <nxp-notification-configuration :institution="institution"/>
  </div>
</template>

<script>
export default {
  name :'test',
  data(){
    return {
      institution : {
        institutionId :'000001',
        institutionName : 'BMCE Bank'
      }
    }
  }
}
</script>
0.4.97

3 years ago

0.4.98

3 years ago

0.4.96

3 years ago

0.4.95

3 years ago

0.4.93

3 years ago

0.4.94

3 years ago

0.4.91

3 years ago

0.4.92

3 years ago

0.4.90

3 years ago

0.4.86

3 years ago

0.4.87

3 years ago

0.4.84

3 years ago

0.4.85

3 years ago

0.4.82

3 years ago

0.4.83

3 years ago

0.4.80

3 years ago

0.4.81

3 years ago

0.4.88

3 years ago

0.4.89

3 years ago

0.4.79

3 years ago

0.4.78

3 years ago

0.4.77

3 years ago

0.4.42

3 years ago

0.4.43

3 years ago

0.4.40

3 years ago

0.4.41

3 years ago

0.4.48

3 years ago

0.4.46

3 years ago

0.4.47

3 years ago

0.4.44

3 years ago

0.4.45

3 years ago

0.4.31

3 years ago

0.4.32

3 years ago

0.4.30

3 years ago

0.4.39

3 years ago

0.4.37

3 years ago

0.4.38

3 years ago

0.4.35

3 years ago

0.4.36

3 years ago

0.4.33

3 years ago

0.4.34

3 years ago

0.4.28

3 years ago

0.4.29

3 years ago

0.4.26

3 years ago

0.4.27

3 years ago

0.4.24

3 years ago

0.4.25

3 years ago

0.4.22

3 years ago

0.4.23

3 years ago

0.4.75

3 years ago

0.4.76

3 years ago

0.4.73

3 years ago

0.4.74

3 years ago

0.4.71

3 years ago

0.4.72

3 years ago

0.4.70

3 years ago

0.4.64

3 years ago

0.4.65

3 years ago

0.4.62

3 years ago

0.4.63

3 years ago

0.4.60

3 years ago

0.4.61

3 years ago

0.4.68

3 years ago

0.4.69

3 years ago

0.4.66

3 years ago

0.4.67

3 years ago

0.4.53

3 years ago

0.4.54

3 years ago

0.4.51

3 years ago

0.4.52

3 years ago

0.4.50

3 years ago

0.4.59

3 years ago

0.4.57

3 years ago

0.4.58

3 years ago

0.4.55

3 years ago

0.4.56

3 years ago

0.4.151

3 years ago

0.4.150

3 years ago

0.4.21

4 years ago

0.4.20

4 years ago

0.4.19

4 years ago

0.4.10

4 years ago

0.4.17

4 years ago

0.4.18

4 years ago

0.4.15

4 years ago

0.4.16

4 years ago

0.4.13

4 years ago

0.4.14

4 years ago

0.4.11

4 years ago

0.4.12

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.5

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.1

4 years ago

0.4.2

4 years ago

0.3.5

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.0.40

4 years ago

0.0.41

4 years ago

0.0.42

4 years ago

0.0.43

4 years ago

0.0.44

4 years ago

0.0.45

4 years ago

0.0.46

4 years ago

0.0.47

4 years ago

0.0.80

4 years ago

0.0.37

4 years ago

0.0.38

4 years ago

0.0.39

4 years ago

0.0.73

4 years ago

0.0.74

4 years ago

0.0.30

4 years ago

0.0.75

4 years ago

0.0.31

4 years ago

0.0.76

4 years ago

0.0.32

4 years ago

0.0.77

4 years ago

0.0.33

4 years ago

0.0.78

4 years ago

0.0.34

4 years ago

0.0.35

4 years ago

0.0.36

4 years ago

0.0.70

4 years ago

0.0.71

4 years ago

0.0.72

4 years ago

0.1.0

4 years ago

0.0.26

4 years ago

0.0.27

4 years ago

0.0.28

4 years ago

0.0.29

4 years ago

0.0.20

4 years ago

0.0.21

4 years ago

0.0.22

4 years ago

0.0.23

4 years ago

0.0.24

4 years ago

0.0.25

4 years ago

0.0.51

4 years ago

0.0.52

4 years ago

0.0.53

4 years ago

0.0.54

4 years ago

0.0.10

4 years ago

0.0.55

4 years ago

0.0.11

4 years ago

0.0.56

4 years ago

0.0.90

4 years ago

0.0.91

4 years ago

0.0.92

4 years ago

0.0.93

4 years ago

0.0.50

4 years ago

0.0.48

4 years ago

0.0.9

4 years ago

0.0.49

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago