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

@oasis-games/front-components-snk

v1.0.12

Published

A simple Vue components for page login and footer.

Readme

front-components-snk

A simple Vue components for page login and footer.

Building manually

After checking out the repo, install dependencies:

npm install @oasis-games/front-components-snk

Then build a minified, distributable JS file:

npm run build

Example Usage In Vue Project

Vue Global registration:

import Fcdg from @oasis-games/front-components-snk
Vue.use(Fcdg)

<template>
   <fcdg-login-reg
            :options="loginRegConfig"
            :dialog-visible="dialogVisible"
            @close="close"
            @loginCallBack="loginCallBack"
   ></fcdg-login-reg>
     <fcdg-footer :options="footerConfig">
        <template #img1> //slot
          <img class="ip-logo" src="../assets/mo/game/iPocket.png" alt="" />
        </template>
        <template #img2>//slot
          <img class="snk-logo" src="../assets/mo/game/snk.png" alt="" />
        </template>
        <template #link1>//slot link1-link4
          <a href="......."></a>
        </template>
      </fcdg-footer>
</template>

<script>
export default {
   name: "app",
   data() {
        return {
            footerConfig: {
                lang: "tw",
                defaultIcon: true,
                link: true
            },

            loginRegConfig: {
                lang: "en",
                appId: "1756171161203882",
                client: "mtest5xen",
                isDebug: true,
                cookieUser: "damo_user",
                cookieRefresh: true,
                domain: ".damo.games",
                googleClientId: "",
                loginQr: false,
                showChangeType: false,
                styleConfig: {
                    showTopLine: false,
                    showBottomLine: false,
                    mainColor: "red",
                    logboxStyle: {
                        // backgroundImage: "url(" + img + ")",
                        borderRadius: 0
                    }
                },
                insConfig: {
                    insId: "2766481293653457",
                    insRequestOrigin: "http://localhost:8080"
                }
            },
            dialogVisible: false
        };
    },
   methods: {
        close(dialogVisible) {
            this.dialogVisible = dialogVisible;
        },
        loginCallBack(e) {
            console.log(e);
            this.dialogVisible = false;
        }
    }
};
</script>

footer Attributes

| 属性 | 类型 | 说明 | 默认值 | | :---------- | :------ | :------------------------ | :----- | | lang | string | 语言包 | en | | defaultIcon | boolean | 是否展示标底 icon,可替换 | true | | link | boolean | 是否展示标底链接,可替换 | true |

Login Attributes

| 属性 | 类型 | 说明 | 默认值 | | :------------- | :------ | :----------------------------------------------------------- | :----------------- | | lang | string | 语言包 | en | | appId | string | faceBook 登录方式所需 应用的 id | | | client | string | 接入的游戏 | | | isDebug | boolean | 测试/线上环境 | false | | cookieUser | string | 自定义登录用户 cookie 名 | | | cookieRefresh | boolean | 是否启用 cookie 过期刷新机制、该参数依赖 cookieUser 是否设置 | false | | domain | string | cookie 根域 | | | dialogVisible | boolean | 登录框显隐 | | | loginQr | boolean | 是否启用扫码登录 | false | | googleClientId | string | google 登录方式所需 client 的 id | 预配置的 client id | | styleConfig | object | 登录框自定义样式 | - | |

Login Events

| 事件名 | 说明 | 参数 | | :------------ | :----------------------------- | :------------ | | close | 用户关闭登录插件时所触发的事件 | dialogVisible | | loginCallBack | 用户登录成功时所触发的事件 | e |