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

@blueking/log-search

v0.0.9-beta.1

Published

蓝鲸日志检索

Downloads

36

Readme

蓝鲸日志检索组件

支持 Vue2/Vue3 版本 无差别使用

安装

npm i @blueking/log-search

使用

  • vue3框架下使用
<template>
  <div class="app">
    <log-search
      :show-auto-query="true"
      :service-config="serviceConfig"
    />
  </div>
</template>
<script setup lang="ts">
import LogSearch from '@blueking/log-search';
// 如果项目没有安装bkui-vue, dayjs 则可使用全量版本
// import LogSearch from '@blueking/log-search/vue3';

import '@blueking/log-search/dist/vue3-light.css';

import Service from './service'

const serviceConfig = {
  fetchIndexSetList: Service.fetchIndexSetList,
  ...
}
</script>
  • vue2框架下使用
<template>
  <div class="hello">
    <LogSearch
      :show-auto-query="true"
      :service-config="serviceConfig"
    />
  </div>
</template>

<script>
import LogSearch from '@blueking/log-search/vue2'
import '@blueking/log-search/dist/vue2-light.css'
export default {
  data(){
      return {
        serviceConfig: {
          fetchIndexSetList: Service.fetchIndexSetList,
          ...
        }
    }
  },
  components: {
    LogSearch
  },
}
</script>

属性列表

| 属性名 | 描述 | 属性类型 | 默认值 | | ------------------- | ------------------------- | --------- | ------ | | showAutoQuery | 是否展示自动/手动查询配置 | boolean | false | | showChartPanel | 是否展示趋势图 | boolean | true | | showStatisticsPanel | 是否展示字段统计 | boolean | true | | | | serviceConfig | 数据源配置 | Object | |

数据源配置列表

| 数据源名称 | 参数类型 | 描述 | | --------------------------- | ----------------------- | ---------------------------- | | fetchIndexSetList | () => Promise.resolve() | 索引集列表 | | fetchSearchConditions | () => Promise.resolve() | 查询条件 | | fetchSearchConditionOptions | () => Promise.resolve() | 查询条件候选值 | | fetchSearchHistory | () => Promise.resolve() | 历史查询 | | fetchQueryStringInspect | () => Promise.resolve() | 检索语句语法检测 | | fetchUserSettings | () => Promise.resolve() | 用户配置 | | updateUserSettings | () => Promise.resolve() | 保存用户配置 | | fetchLogSearch | () => Promise.resolve() | 表格查询 | | fetchLogBarChart | () => Promise.resolve() | 趋势图查询 | | fetchLogFields | () => Promise.resolve() | 表格字段 | | fetchFieldsSettings | () => Promise.resolve() | 用户使用的表格字段配置 | | createFieldSettings | () => Promise.resolve() | 新增表格字段配置 | | updateFieldSettings | () => Promise.resolve() | 保存表格字段配置 | | updateUseFieldSettings | () => Promise.resolve() | 更新用户当前使用表格字段配置 | | deleteFieldSettings | () => Promise.resolve() | 删除表格字段配置 | | exportLog | () => Promise.resolve() | 日志下载 | | fetchLogContext | () => Promise.resolve() | 上下文 | | fetchRealTimeLog | () => Promise.resolve() | 实时日志 |