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 🙏

© 2026 – Pkg Stats / Ryan Hefner

enniot-hotspot-conf

v0.0.4

Published

"fix:修复一些校验问题"

Readme

目录结构

── enniot-wan-conf
    ├── Hotspot.vue
    ├── README.md
    ├── mobileHotspot.schema.json
    ├── mobileHotspotDefaultValue.json
    └── package.json

Props

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ---- | ------------------------------------------------------------ | ------ | ------ | ------ | | data | 用于将后台读取以及手动输入的数据填入 form 组件;设置默认值; | object | — | — |

Data

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | -------------- | -------- | ------ | ------ | ------ | | wifi_name | 网络名称 | string | — | — | | wifi_password | 网络密码 | string | — | — | | frequency_band | 网络频段 | string | — | — |

网络频段为固定的 select 下拉框,只有 2.4G 和 5G 这两个选项,目前是前端固定的显示字段,不参与与后端的数据交互。

Usage

<template>
  <el-row
    :gutter="20"
    class="page-box"
  >
    <el-col>
      <Breadcrumb
        :breadcrumbs="[{
          label: '移动热点',
        }]"
      />
    </el-col>
    <el-col>
      <el-card class="grid-card">
        <el-button
          type="primary"
          icon="el-icon-check"
          style="float:right"
          @click="onSubmit"
        >
          提交
        </el-button>
        <Hotspot :data="this.hotspotData" style="width: 40%" />
      </el-card>
    </el-col>
  </el-row>
</template>

<script>
import Breadcrumb from '@/component/breadcrumb.vue';
import baseUrl from '@/service/api';
import hotspotDefaultValue from './mobileHotspotDefaultValue.json'; 
import Hotspot from './Hotspot.vue'

export default {
  components: {
    Breadcrumb,
    Hotspot,
  },
  data() {
    return {
      hotspotData: hotspotDefaultValue,
    };
  },
  async created() {
    await this.fetchData();
  },
  methods: {
    async onSubmit() {
      const api = `${baseUrl}/hotspot`;
      delete this.hotspotData.frequency_band;
      console.log("hospotData:", this.hotspotData)
      const res = await this.$api.post(api, this.hospotData);
    },
    async fetchData() {
      const api = `${baseUrl}/hotspot`;
      const res = await this.$api.get(api);
      this.hotspotData = res;
      this.hotspotData.frequency_band = '2.4G';
    },
  },
};
</script>

其中 $api 中封装的有 get、post、patch、put、delete 五种请求。