112 lines
3.2 KiB
Markdown
112 lines
3.2 KiB
Markdown
# Selly App Configuration
|
|
|
|
This page explains all configuration options for the Selly (Marketplace) app in codem-phone.
|
|
|
|
---
|
|
|
|
## Categories
|
|
|
|
```lua
|
|
Categories = {
|
|
{
|
|
name = 'all',
|
|
label = 'selly.categories.all',
|
|
homecategorydeactiveicon = 'selly/all.svg',
|
|
homecategoryactiveicon = 'selly/allactive.svg',
|
|
},
|
|
{
|
|
name = 'ads',
|
|
label = 'selly.categories.ads',
|
|
color = '#A06499',
|
|
homecategorydeactiveicon = 'selly/ads.svg',
|
|
homecategoryactiveicon = 'selly/adsactive.svg',
|
|
newposticon = 'selly/adsactive.svg',
|
|
},
|
|
{
|
|
name = 'vehicles',
|
|
label = 'selly.categories.vehicles',
|
|
color = '#A06464',
|
|
homecategorydeactiveicon = 'selly/vehicles.svg',
|
|
homecategoryactiveicon = 'selly/vehiclesactive.svg',
|
|
newposticon = 'selly/vehiclesactive.svg',
|
|
},
|
|
{
|
|
name = 'items',
|
|
label = 'selly.categories.items',
|
|
color = '#A09264',
|
|
homecategorydeactiveicon = 'selly/items.svg',
|
|
homecategoryactiveicon = 'selly/itemsactive.svg',
|
|
newposticon = 'selly/itemsactive.svg',
|
|
},
|
|
{
|
|
name = 'houses',
|
|
label = 'selly.categories.houses',
|
|
color = '#64A071',
|
|
homecategorydeactiveicon = 'selly/houses.svg',
|
|
homecategoryactiveicon = 'selly/housesactive.svg',
|
|
newposticon = 'selly/housesactive.svg',
|
|
},
|
|
}
|
|
```
|
|
|
|
| Parameter | Type | Description |
|
|
|-----------|------|-------------|
|
|
| `name` | string | Unique category identifier |
|
|
| `label` | string | Locale key for category name |
|
|
| `color` | string | Category color (hex code) |
|
|
| `homecategorydeactiveicon` | string | Icon path when category is not selected |
|
|
| `homecategoryactiveicon` | string | Icon path when category is selected |
|
|
| `newposticon` | string | Icon displayed when creating new post |
|
|
|
|
### Default Categories
|
|
|
|
| Name | Color | Description |
|
|
|------|-------|-------------|
|
|
| `all` | - | Shows all listings |
|
|
| `ads` | `#A06499` | General advertisements |
|
|
| `vehicles` | `#A06464` | Vehicle sales |
|
|
| `items` | `#A09264` | Item sales |
|
|
| `houses` | `#64A071` | House/property sales |
|
|
|
|
---
|
|
|
|
## Blacklist Filter
|
|
|
|
```lua
|
|
EnableBlackWord = true
|
|
BlackWordDebug = false
|
|
```
|
|
|
|
| Parameter | Type | Default | Description |
|
|
|-----------|------|---------|-------------|
|
|
| `EnableBlackWord` | boolean | `true` | Enable blacklisted word filter (censors prohibited words) |
|
|
| `BlackWordDebug` | boolean | `false` | Debug mode for blacklist filter (logs filtered words to console) |
|
|
|
|
---
|
|
|
|
## Auto Delete Settings
|
|
|
|
```lua
|
|
AutoDeleteEnabled = true
|
|
AutoDeleteDays = 10
|
|
```
|
|
|
|
| Parameter | Type | Default | Description |
|
|
|-----------|------|---------|-------------|
|
|
| `AutoDeleteEnabled` | boolean | `true` | Enable automatic post deletion |
|
|
| `AutoDeleteDays` | number | `10` | Days until posts are auto-deleted |
|
|
|
|
---
|
|
|
|
## Pricing
|
|
|
|
```lua
|
|
PostPrice = 100
|
|
PostTax = 0.05
|
|
```
|
|
|
|
| Parameter | Type | Default | Description |
|
|
|-----------|------|---------|-------------|
|
|
| `PostPrice` | number | `100` | Price to create a post/listing |
|
|
| `PostTax` | number | `0.05` | Tax rate for posting (0.05 = 5%) |
|