npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mv-template/toyota

v0.0.15

Published

``` yarn add mv-template-page or npm i mv-template-page ```

Downloads

5

Readme

MV Template Page

Installation

yarn add @mv-template/[project_name]
or
npm i @mv-template/[project_name]

Example

<template>
  <mv-template
    :title="title"
    :dashboard-ids="dashboardIds"
    :token="configToken"
    :is-dark="isDark"
    :filters.sync="filters"
    :update-filters.sync="updateFilters"
    :code="code"
    :links="links"
    :additional="additional"
  />
</template>
<script>
import MvTemplate from 'mv-template'
import 'mv-template/dist/mv-template-page.css'

export default {
  components: {
    MvTemplate,
  },
  data() {
    return {
      title: 'Dev Testing',
      configToken: `Bearer ${localStorage.getItem('accessToken')}`,
      isDark: false,
      dashboardIds: [
        {
          title: 'Summary',
          id: '60dad4302722b900132f807e',
        },
        {
          title: 'Analytics',
          id: '60ebc0914a0a130012db902b',
        },
      ],
      filters: [
        {
          name: 'Filter-1',
          operator: '=',
          property: 'group_exams_gender',
          propertyType: 'string',
          value: 'male',
          widgets: ['60c18c69c65520001422e662'],
          _id: '60c61f3a471c96001211a619',
        },
      ],
      updateFilters: [
        {
          name: 'Filter-1',
          value: 'male',
          operator: '=',
        },
      ],
      code: 'PAGE-DevTest',
      links: [
        'http://metabase.machinevision.global:3009/public/dashboard/fa6e40b6-3b72-4ed6-a1aa-a86a93da1f74',
        'http://metabase.machinevision.global:3009/public/dashboard/f69f02da-4910-433e-94d7-2b1b48418f17',
      ],
      additional: {
        linkHeights: [2200, 1650],
        orders: [
          {
            type: 'DASHBOARD',
            order: 1,
          },
          {
            type: 'URL',
            order: 2,
          },
        ],
        baseUrl: 'https://backbone.machinevision.global/data-core/api/plants/',
        logo: 'https://backbone.machinevision.global/file-storage/api/static/image_1624852365272.png',
      },
    },
  },
}
</script>

Create New Branch

  1. Create new local branch from 'boilerplate'
  2. Branch name represent your project name
  3. Edit project name in file 'package.json'
"name": "@mv-template/[your_project_name]",

Add New Page

  1. Create new folder under 'components' folder using this format 'page-[code]'
  2. Create 'MainComponent.vue' into component folder that you have already created. If you want to create other component for your new page, make sure it registered in this 'MainComponent.vue'
  3. 'MainComponent.vue' must have this props:
    • title
    • token
    • dashboardIds
    • isDark
    • filters
    • updateFilters
    • additional
  4. Import your 'MainComponent.vue' into 'MVTemplate.vue' and create new code for your new component
  5. Register your new code in MES Admin ('Template Setting' menu) and fill additional properties (optional)