Wiki source code of AI Prompt Database
Last modified by RPG Research Xwiki Documents Administrator on 2023/09/27 23:00
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{velocity}} |
| 2 | #set ($columnsProperties = { | ||
| 3 | 'doc.title': {"displayName":"Title","link":"view"}, | ||
| 4 | 'longText1': {"filterable":false,"sortable":false,"html":true}, | ||
| 5 | 'sysPrompt': {"filterable":false,"sortable":false,"html":true}, | ||
| 6 | 'userPrompt': {"filterable":false,"sortable":false,"html":true}, | ||
| 7 | 'shortText1': {}, | ||
| 8 | 'boolean1': {}, | ||
| 9 | 'default': {}, | ||
| 10 | '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]} | ||
| 11 | }) | ||
| 12 | #set ($options = { | ||
| 13 | 'className': 'AI.PromptDB.Code.PromptDBClass', | ||
| 14 | 'translationPrefix': 'promptdb.livetable.', | ||
| 15 | 'tagCloud': true, | ||
| 16 | 'rowCount': 15, | ||
| 17 | 'maxPages': 10, | ||
| 18 | 'selectedColumn': 'doc.title', | ||
| 19 | 'defaultOrder': 'asc' | ||
| 20 | }) | ||
| 21 | #set ($columns = ['doc.title', 'longText1', 'sysPrompt', 'userPrompt', 'shortText1', 'boolean1', 'default', '_actions']) | ||
| 22 | #livetable('promptdb' $columns $columnsProperties $options) | ||
| 23 | {{/velocity}} |