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

gsvtable

v1.0.3

Published

it's a ui component to show gsv data

Downloads

5

Readme

GSV Table Component

This is a table component for parsing and displaying GSV data. It depends on echart and arco libraries. To use it, make sure to install these two libraries first.

# Download echarts and arco
npm install --save-dev @arco-design/web-vue
npm install echarts --save

Installation

After installing the required dependencies, you need to register the Arco component library in your main.ts:

import { createApp } from "vue";
import ArcoVue from "@arco-design/web-vue";
import "@arco-design/web-vue/dist/arco.css";
import "./style.css";
import App from "./App.vue";

const app = createApp(App);
app.use(ArcoVue);
app.mount("#app");

Usage

Once registered, you can use the GsvTable component where needed:

<script setup lang="ts">
import { GsvTable } from "gsvtable";
import { ref } from "vue";

const Data = ref([
  "$GNGGA,000048.00,5006.63590048,N,01433.38754186,E,1,16,1.1,221.4358,M,44.6136,M,,*71",
  "$GNZDA,000048.00,28,08,2024,,*72",
  "$GNRMC,000048.00,A,5006.63590048,N,01433.38754186,E,15.440,169.3,280824,4.3,E,A,C*73",
  "$GPGSV,1,1,04,18,15,182,46,20,16,080,46,25,66,106,46,29,81,228,46,1*61",
  "$GPGSV,1,1,01,25,66,106,53,8*5A",
  "$GLGSV,1,1,02,80,65,323,56,82,55,188,56,1*78",
  "$GBGSV,2,1,06,03,24,201,53,05,28,206,53,09,43,134,53,20,31,080,53,1*7E",
  "$GBGSV,2,2,06,19,75,305,53,25,56,200,53,1*7A",
  "$GBGSV,1,1,03,20,31,080,42,19,75,305,42,25,56,200,42,3*43",
  "$GBGSV,1,1,03,20,31,080,51,19,75,305,51,25,56,200,51,5*47",
  "$GAGSV,1,1,04,13,33,164,52,15,52,090,52,19,17,260,52,21,59,295,52,1*71",
  "$GAGSV,1,1,03,13,33,164,40,19,17,260,40,21,59,295,40,2*4B",
  "$GAGSV,1,1,04,27,61,100,46,13,33,164,46,15,52,090,46,21,59,295,46,7*7E",
]);

const changeData = () => {
  Data.value = [
    "$GNGGA,000013.00,5006.74223416,N,01433.39769189,E,1,16,0.8,228.6490,M,44.6103,M,,*7F",
    "$GNZDA,000013.00,28,08,2024,,*7C",
    "$GNRMC,000013.00,A,5006.74223416,N,01433.39769189,E,8.326,261.7,280824,4.3,E,A,C*4F",
    "$GPGSV,1,1,02,25,67,106,46,26,17,293,46,1*6D",
    "$GLGSV,1,1,02,82,54,188,56,80,65,323,57,1*78",
    "$GBGSV,2,1,06,03,24,201,53,05,28,206,54,09,43,134,53,20,31,080,54,1*7E",
    "$GBGSV,2,2,06,25,56,200,53,19,75,304,53,1*7B",
    "$GBGSV,1,1,02,20,31,080,43,25,56,200,43,3*78",
    "$GBGSV,1,1,03,20,31,080,48,25,56,200,48,19,75,304,48,5*4E",
    "$GAGSV,2,1,06,21,59,294,50,27,62,099,50,34,19,037,50,13,33,164,50,1*7B",
    "$GAGSV,2,2,06,15,51,090,50,19,17,260,50,1*70",
    "$GAGSV,2,1,06,21,59,294,37,27,62,099,37,34,19,037,36,13,33,164,37,2*79",
    "$GAGSV,2,2,06,15,51,090,37,19,17,260,37,2*73",
    "$GAGSV,2,1,06,21,59,294,46,27,62,099,46,34,19,037,46,13,33,164,46,7*7D",
    "$GAGSV,2,2,06,15,51,090,46,19,17,260,46,7*76",
  ];
};
</script>

<template>
  <GsvTable :GSVData="Data" />
  <button @click="changeData">Change Data Value</button>
</template>

<style scoped></style>

Now, you can use the component in your project.