Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@project-trans/suggestion-box

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@project-trans/suggestion-box

Suggestion box for Project Trans

  • 0.4.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Suggestion box

Suggestion box for Project Trans's website.

Usage

# Or npm, yarn, bun, etc.
pnpm add @project-trans/suggestion-box
pnpm add @iconify-json/octicon -D # Suggestion Box uses octicon.

In your Vue component:

<template>
  <SuggestionBox
    target-url="https://example.com"
    contact-content-placeholder="联系方式占位符"
    text-content-placeholder="文本内容占位符"
    attach-image-button-text="附加图片按钮文案"
    send-button-text="发送按钮文案"
    sending-button-text="发送中按钮文案"
    sent-success-button-text="发送成功按钮文案"
    sent-failed-button-text="发送失败按钮文案"
  />
</template>

<script>
import SuggestionBox from '@project-trans/suggestion-box';
import '@project-trans/suggestion-box/dist/style.css';
</script>

In uno.config.ts:

import { defineConfig, presetUno, presetIcons } from 'unocss';

export default defineConfig({
  // ...
  content: {
    pipeline: {
      include: [
        // Default match pattern of UnoCSS
        /\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
        // Match suggestion-box
        /.*pjts-suggestion-box.*\.js/,
      ],
    },
  },
  presets: [
    // SuggestionBox uses presetUno
    presetUno(),
    // SuggestionBox uses presetIcons
    presetIcons(),
  ],
});

Development

corepack enable

Install dependencies

pnpm install

Start UI development server

pnpm dev

Start Cloudflare Pages Functions development server

pnpm -F server dev

FAQs

Package last updated on 18 Oct 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc