Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/project-trans/suggestionbox
https://github.com/project-trans/suggestionbox
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/project-trans/suggestionbox
- Owner: project-trans
- License: mit
- Created: 2024-02-06T07:54:56.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T15:21:45.000Z (28 days ago)
- Last Synced: 2024-10-19T08:12:15.084Z (28 days ago)
- Language: Vue
- Size: 319 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```