Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/project-trans/suggestionbox


https://github.com/project-trans/suggestionbox

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# Suggestion box

Suggestion box for Project Trans's website.

## Usage

```bash
# 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:

```vue

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

```

In `uno.config.ts`:

```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

```bash
corepack enable
```

### Install dependencies

```bash
pnpm install
```

### Start UI development server

```bash
pnpm dev
```

### Start Cloudflare Pages Functions development server

```bash
pnpm -F server dev
```