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

vue-login-bryan

v1.1.2

Published

login component made by Vue component

Downloads

4

Readme

vue-kakao-login

VueJS 컴포넌트로 만든 카카오 로그인 서비스입니다.

설치

npm install --save vue-kakao-login

사용

<template>
  <div id="app">
    <KakaoLogin
      api-key="<api-key>"
      image="kakao_login_btn_large"
      :on-success=onSuccess
      :on-failure=onFailure
      />
  </div>
</template>

<script>
import KakaoLogin from 'vue-kakao-login'

let onSuccess = (data) => {
  console.log(data)
  console.log("success")
}
let onFailure = (data) => {
  console.log(data)
  console.log("failure")
}

export default {
  name: 'App',
  components: {
    KakaoLogin
  },
  methods: {
    onSuccess,
    onFailure
  }
}
</script>

<style>
</style>

props

  • api-key (필수) [string] - 카카오 API Key입니다.
  • on-success(필수) [function] - 로그인 성공 시의 콜백 함수입니다.
  • on-failure(필수) [function] - 로그인 실패 시의 콜백 함수입니다.
  • language [string] - 언어를 설정합니다 (kr, en). 기본값: kr
  • image [string] - 카카오에서 제공하는 로그인 버튼 이미지 종류를 선택합니다. 다음과 같은 이미지들이 있습니다:
    • kakao_account_login_btn_large_narrow_ov
    • kakao_account_login_btn_large_narrow
    • kakao_account_login_btn_large_wide_ov
    • kakao_account_login_btn_large_wide
    • kakao_account_login_btn_medium_wide_ov
    • kakao_account_login_btn_medium_wide
    • kakao_account_login_btn_medium_narrow_ov
    • kakao_account_login_btn_medium_narrow
    • kakao_login_btn_large_ov
    • kakao_login_btn_large
    • kakao_login_btn_medium_ov
    • kakao_login_btn_medium
    • kakao_login_btn_small_ov
    • kakao_login_btn_small
    • 기본값: kakao_account_login_btn_medium_wide
  • componentStyle [object] - 우편번호 검색창에 미리 표시할 검색어입니다. 기본값: null
  • script-url [string] - 컴포넌트에서 사용할 카카오 API 주소입니다. 기본값: 'https://developers.kakao.com/sdk/js/kakao.min.js'
  • error-message [string] - 로드되지 않을 때 나타낼 에러 메시지입니다. 기본값: 현재 카카오 로그인 서비스를 이용할 수 없습니다. 잠시 후 다시 시도해주세요.

안내

vue-kakao-login는 Daum 우편번호 서비스와 독립적으로 제작된 패키지입니다. VueJS환경에서 발생하는 vue-kakao-login의 버그는 패키지 레포지터리의 이슈트래커에 말씀해주세요.