open-index/open-npm huggingface dataset:
npm package: @shan1iu/smartweb3
Description: A collection of components used in SmartWeb 3.0
Author: shan1iu
Latest version: 0.0.0-alpha.4

# SmartWeb3 组件库

## 安装依赖

```bash
npm install @shan1iu/smartweb3
```

## 使用

```javascript
<template>
  <LoginForm />
</template>

<script setup lang="ts">
  import LoginForm from '@shan1iu/smartweb3/loginForm'
  import '@shan1iu/smartweb3/loginForm/style.css'
</script>
```

## 组件说明

> LoginForm（登录框组件）

- 属性 

| 属性 | 说明 | 类型 | 默认值 |
| ----- | ----- | ----- | ----- |
| has-reset-button | 是否显示重置按钮 | boolean | true |
| is-security | 是否开启等保(需后端配合) | boolean | true |
| base-url | 接口baseUrl | string | http://172.16.11.137:3002/api |
| captcha-api-url | 获取验证码接口(需传入完整的接口地址) | string | - |
| login-api-url | 登录接口(需传入完整的接口地址) | string | - |
| logout-api-url | 退出登录接口(需传入完整的接口地址) | string | - |
| logout-beacon-api-url | 通过sendBeacon退出登录接口(需传入完整的接口地址) | string | - |
| logout-beacon-api-url | 通过sendBeacon退出登录接口(需传入完整的接口地址) | string | - |
| poll-offline-status-api-url | 问询下线接口(需传入完整的接口地址) | string | - |
| poll-offline-status-api-url | 问询下线接口(需传入完整的接口地址) | string | - |
| update-password-api-url | 更新密码接口(需传入完整的接口地址) | string | - |
| pub-key | 加密公钥 | string | - |
| is-debug | 是否调试模式(打印相关信息) | false | false |
| polling-count | 问询次数(-1的时候为没有次数限制)(此配置与系统配置的对应, 1秒请求一次) | number | 5 |

- 插槽

| 插槽名 | 说明 |
| ----- | ----- |
| header | 自定义登录框的头部内容 |

- 事件

| 事件名 | 说明 | 参数 |
| ----- | ----- | ----- |
| on-success | 登录成功后的回调 | 登录信息（用户信息, token等） |

<hr />
npm package: @shane_il/css-boilerplate-generator
Description: Generates a simple CSS boilerplate file with id's and classes from a given .html file
Author: Shane Goodson
Latest version: 1.0.1

# CSS Boilerplate Generator #

This CLI module creates a basic .css boilerplate file from a given .html file with all the classes and id's found in the html file.
To run it from the cli run:

```
npx @shane_il/create-css-boilerplate {input file path} {output file path}
```

Currently the script only takes these two arguments and outputs the css file relative to the folder it's being run from. It also adds some default css selectors to the file

The default selectors array is 
```
[
    'html, body',
    'body',
    '*'
]
```
    
My next step is to take an optional array of default selectors as an argument that will override the above default. 

This was mainly made for the specific use case where I needed an empty css file with all the classes from an html page and I figured it would be a good opportunity to learn how to make an npm cli module with node. I'll slowly add options to make this as generic and useful as possible.