New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@foxone/talkee

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxone/talkee

Talkee components

latest
npmnpm
Version
4.0.1
Version published
Maintainers
4
Created
Source

Talkee

Here is description

Usage

Use in Vue project

Talkee is build with Vue3, Vuetify, @foxone/uikit, @foxone/mixin-passport, if you use these freamwork by coincidence, you can use Talkee easily.

install

// create app use vite
// yarn create vite my-vue-app --template vue

yarn add @foxone/talkee @foxone/uikit @foxone/icons @foxone/mixin-passport@1 vuetify

import

import { createApp } from "vue";
// import other dependcies
import { createVuetify } from "vuetify";
import UIKit from "@foxone/uikit";
import { usePresets } from "@foxone/uikit/presets";
import Passport from "@foxone/mixin-passport";
import Talkee from "@foxone";

import "@foxone/talkee/dist/style.css";

const vuetify = createVuetify(
  usePresets({
    // overwrite vuetify options
    locale: {
      messages: { ...Talkee.locales },
    },
    s,
  })
);

// use dependcies
app.use(vuetify);
app.use(UIKit);
app.use(Passport);
app.use(Talkee);

Usage

// .vue
<template>
  <Talkee v-bind='args' />
</template>

<script lang="ts" setup>
const args = {
  apiBase: "",
  slug: "",
  siteId: "",
  clientId: "",
}
</script>

Use via scripts

Demo

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- insert styles -->
    <link
      href="https://cdn.jsdelivr.net/npm/@foxone/talkee@2.0.0/dist/style.css"
      rel="stylesheet"
    />
    <title>Talkee UMD Demo</title>
  </head>
  <body>
    <!-- insert scripts -->
    <script src="https://cdn.jsdelivr.net/npm/vue@3.2.45/dist/vue.global.prod.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@foxone/talkee@2.0.0/dist/index.umd.js"></script>

    <script>
      /**
       * options: {
       *  showLink?: boolean // show hash link or not
       *  apiBase?: string;
       *  slug?: string;
       *  siteId?: string;
       *  clientId?: string; // Mixin OAuth ClientID
       *  vuetifyOptions?: VuetifyOptions; // options to covert vuetify default options
       *  container?: string; // Selector that Talkee append to
       *  locale?: string; // en, ja, zhHans, zhHant
       *  passport?: PassportOptions;
       *  auth?: AuthMethodGlobalOptions;
       *  toast?: ToastGlobalOptions;
       * }
       */
      Talkee.show({
        apiBase: "https://talkee-api.mixin.fan/api",
        slug: "7000103488-course-2367",
        siteId: "2",
        clientId: "61504be8-a9da-477d-9e18-448ac3780919",
      });
    </script>
  </body>
</html>

FAQs

Package last updated on 19 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts