1.1.0 • Published 17 days ago

@ezpaarse-project/ezreeport-vue v1.1.0

Weekly downloads
-
License
CeCILL
Repository
github
Last release
17 days ago

@ezpaarse-project/ezreeport-vue

Vue components used to interact with ezREEPORT API

Requirements

  • vue@^2.7 (npm)
  • vue-i18n@^8.28 (npm)
  • vuetify@^2.6 (npm)
  • @mdi/font@^7 (npm)

Install

npm i --save @ezpaarse-project/ezreeport-vue

Webpack

You may need to add this in your webpack.config.js|ts (see vuetify issue for more info) :

const path = require('path');

module.exports = {
  resolve: {
    alias: {
      'vue$': path.resolve(__dirname, 'node_modules/vue/dist/vue.runtime.esm.js'),
      '^vuetify': path.resolve(__dirname, 'node_modules/vuetify'),
    }
  }
}

Vite (untested)

Similar to webpack, you may need to add this in your vite.config.js|ts (see vuetify issue for more info) :

export default defineConfig({
  resolve: {
    alias: {
      vue: 'vue/dist/vue.runtime.esm.js',
    },
  },
});

Nuxt2

You can use nuxt modules like @nuxtjs/vuetify@^1.12.3 (npm) and @nuxtjs/i18n@^7.3.1 (npm) instead of raw dependencies.

Add plugin and webpack config into nuxt.config.js|ts :

// nuxt.config.js|ts
export default {
  plugins: [
    '~/plugins/ezreeport-vue2.ts', // TODO: change path to your plugin file
  ],

  buildModules: [
    '@nuxtjs/vuetify',
  ],

  modules: [
    '@nuxtjs/i18n',
  ],

  extend(config, ctx) {
    // Since Nuxt2 is using webpack, we need to "patch" module resolution
    // https://github.com/vuetifyjs/vuetify/discussions/4068#discussioncomment-24984
    config.resolve.alias.vue$ = path.resolve(__dirname, 'node_modules/vue/dist/vue.runtime.esm.js');
    config.resolve.alias['^vuetify'] = path.resolve(__dirname, 'node_modules/vuetify');
  },
}

First Usage

You will need to wrap your app with the <ezr-provider> and give some parameters :

<template>
  <ezr-provider
    api-url="https://url-to-ezreeport.api/"
  >
    <ezr-status-list />
  </ezr-provider>
</template>

Documentation / Dev

Since many components directly use ezREEPORT's API, you must run a working ezREEPORT in order to start/generate documentation.

Manually (or dev)

Create a .env.local and overrides env vars :

  • VITE_AUTH_TOKEN: Used to login
  • VITE_REPORT_API: Used to fetch data, etc.
  • VITE_NAMESPACES_LOGO_URL: Used to show namespaces logos

Then run

npm run build:docs
# or npm run dev

Finally run an http server over newly created storybook-static.

Docker

A the root of this monorepo, there's a Dockerfile.vuedoc that you can use to generate a static version of the documentation.

The dockerfile accept 3 arguments :

  • AUTH_TOKEN: Used to login
  • REPORT_API: Used to fetch data, etc.
  • LOGO_URL: Used to show namespaces logos

Example :

docker build \
  -f "Dockerfile.vuedoc" \
  -t ezreeport-vuedoc:latest \
  --build-arg AUTH_TOKEN="MySecretTokenGeneratedByEzReeport" \
  --build-arg REPORT_API="https://url-to-ezreeport.dev/api/" \
  --build-arg LOGO_URL="https://url-to-your-apps.dev/namespaces/logos" \
  .

Once built, you can start the documentation by running (8888 is just the port on the host machine, you can change it to whatever you want) :

docker run -p 8888:80 ezreeport-vuedoc:latest
1.1.0

17 days ago

1.1.0-rc.1

30 days ago

1.1.0-beta.1

1 month ago

1.0.0

3 months ago

1.0.0-beta.33

3 months ago

1.0.0-beta.34

3 months ago

1.0.0-beta.31

4 months ago

1.0.0-beta.32

4 months ago

1.0.0-beta.30

4 months ago

1.0.0-rc.1

5 months ago

1.0.0-beta.22

8 months ago

1.0.0-beta.23

7 months ago

1.0.0-beta.20

9 months ago

1.0.0-beta.21

9 months ago

1.0.0-beta.28

7 months ago

1.0.0-beta.29

5 months ago

1.0.0-beta.26

7 months ago

1.0.0-beta.27

7 months ago

1.0.0-beta.24

7 months ago

1.0.0-beta.25

7 months ago

1.0.0-beta.19

9 months ago

1.0.0-beta.17

10 months ago

1.0.0-beta.18

9 months ago

1.0.0-beta.15

10 months ago

1.0.0-beta.16

10 months ago

1.0.0-beta.13

10 months ago

1.0.0-beta.14

10 months ago

1.0.0-beta.12

11 months ago

1.0.0-beta.11

11 months ago

1.0.0-beta.10

11 months ago

1.0.0-beta.9

12 months ago

1.0.0-beta.8

12 months ago

1.0.0-beta.7

12 months ago

1.0.0-beta.6

12 months ago

1.0.0-beta.5

12 months ago

1.0.0-beta.3

1 year ago

1.0.0-beta.2

1 year ago

1.0.0-beta.0

1 year ago

1.0.0-beta.1.1

1 year ago

1.0.0-beta.1.0

1 year ago

1.0.0-beta.1

1 year ago

1.0.0-beta.4.2

1 year ago

1.0.0-beta.4.1

1 year ago

1.0.0-beta.4

1 year ago