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

ssv-vue3-sdk

v1.0.38

Published

``` npm install ssv-vue3-sdk --save ```

Downloads

98

Readme

Installation

npm install ssv-vue3-sdk --save

Getting started

Step1 引入&初始化 main

import { createApp } from 'vue'
import App from './App.vue'

import 'ssv-vue3-sdk/dist/style.css';
import ssvPlugin from 'ssv-vue3-sdk';

// env对应接口说明:
// 'master' => 线上域名 https://api.em.xx.com
// 'test'   => 测试域名 https://apitest.em.xx.com

createApp(App).use(ssvPlugin, { env: 'master', }).mount('#app')

Step2 业务代码引入组件

<script setup>
const onLoginSuccess = data => {
  // sdk登录后返回的数据 示例:
  // let data = {
  //   tenantInfo: {
  //     tenant_id: 'bcxxx',
  //     tenant_name: '测试部门',
  //     roles: [1],
  //     platform: 2,
  //   },
  //   tokenInfo: {
  //     expires_in: 1676040486,
  //     access_token: '',
  //     refresh_token: '',
  //     uid: '1xxx'
  //   },
  // }
  // 说明:
  // 登陆态 access_token
  // 平台标识 platform
  // 用户标识 uid
  console.log('onLoginSuccess:', data);
  console.log(data.tenantInfo);
  console.log(data.tokenInfo);
};
// id(string) 账号  必填
// pwd(string) 密码  必填
// login_type(int) 账号参数:账号密码 1 ,手机号 2  必填
// platform(int) 平台参数:试点 1,机构 2  必填
const loginParams = {
  // 账号
  id: 'test_op***',
  // 密码
  pwd: '7Z****',
  // 账号密码1,手机号2(不支持)
  login_type: 1,
  // 平台参数:试点 1,机构 2
  platform: 1,
}
</script>
<template>
  <div>
    <Ssv @login="onLoginScuess" :init="loginParams" />
  </div>
</template>

Changelog

All notable changes to this project will be documented in this file.

[Unreleased]

Added

Fixed

[1.0.13] - 2023-02-21

Added

  • 支持API密码登录
  • 若干问题修复

[1.0.13] - 2023-02-14

Added

  • 内置登录参数
  • 若干问题修复

[1.0.1] - 2023-02-03

Changed

  • 修改返回message错误的问题.
  • 修复code获取异常的bug.

[1.0.0] - 2023-02-01

Added

  • 应急SAAS登录SDK,封装登录逻辑.