-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66f08c1
commit fccbb34
Showing
25 changed files
with
3,588 additions
and
5,419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Templates | ||
|
||
This directory contains templates that can be imported into Panthora to bootstrap asset types and tags easily. | ||
|
||
## Examples | ||
|
||
1.[Book Library](./book-library.json) - The book library described in the [example Use-Case](../usage/example-home-library.md) | ||
|
||
## Writing Templates | ||
|
||
Refer to the [Template Guide](../usage/templates.md) for more information. | ||
|
||
## Contribute | ||
|
||
Please open Pull Requests that add more examples to showcase what you do with Panthora! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"$schema": "../../schemas/import-0.2.0.schema.json", | ||
"name": "Book Library", | ||
"version": "1.0", | ||
"description": "Use Panthora as your book library.", | ||
"author": "Panthora", | ||
"tags": [ | ||
{ | ||
"id": "Genre", | ||
"name": "Genre", | ||
"children": [ | ||
{ "id": "Fiction", "name": "Fiction", "children": [] }, | ||
{ "id": "Non-Fiction", "name": "Non-Fiction", "children": [] }, | ||
{ "id": "Mystery", "name": "Mystery", "children": [] }, | ||
{ | ||
"id": "Science Fiction", | ||
"name": "Science Fiction", | ||
"children": [ | ||
{ "id": "Dystopian", "name": "Dystopian", "children": [] }, | ||
{ "id": "Space Opera", "name": "Space Opera", "children": [] } | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "Location", | ||
"name": "Location", | ||
"children": [ | ||
{ "id": "Living Room", "name": "Living Room", "children": [] }, | ||
{ "id": "Bedroom", "name": "Bedroom", "children": [] }, | ||
{ "id": "Study", "name": "Study", "children": [] } | ||
] | ||
}, | ||
{ | ||
"id": "Reading Status", | ||
"name": "Reading Status", | ||
"children": [ | ||
{ "id": "Read", "name": "Read", "children": [] }, | ||
{ "id": "Unread", "name": "Unread", "children": [] }, | ||
{ "id": "Reading", "name": "Reading", "children": [] } | ||
] | ||
}, | ||
{ | ||
"id": "Loan Status", | ||
"name": "Loan Status", | ||
"children": [ | ||
{ "id": "Available", "name": "Available", "children": [] }, | ||
{ "id": "Borrowed", "name": "Borrowed", "children": [] } | ||
] | ||
} | ||
], | ||
"assetTypes": [ | ||
{ | ||
"name": "Book", | ||
"fields": [ | ||
{ | ||
"type": "STRING", | ||
"name": "Title", | ||
"inputRequired": true, | ||
"showInTable": true | ||
}, | ||
{ | ||
"type": "STRING", | ||
"name": "Author", | ||
"inputRequired": true, | ||
"showInTable": true | ||
}, | ||
{ | ||
"type": "STRING", | ||
"name": "ISBN", | ||
"inputRequired": false, | ||
"showInTable": false | ||
}, | ||
{ | ||
"type": "TAG", | ||
"name": "Genre", | ||
"parentTagId": "Genre", | ||
"inputMin": 1, | ||
"inputRequired": true, | ||
"showInTable": true | ||
}, | ||
{ | ||
"type": "TAG", | ||
"name": "Location", | ||
"parentTagId": "Location", | ||
"inputMax": 1, | ||
"inputRequired": false, | ||
"showInTable": false | ||
}, | ||
{ | ||
"type": "TAG", | ||
"name": "Reading Status", | ||
"parentTagId": "Reading Status", | ||
"inputMax": 1, | ||
"inputMin": 1, | ||
"inputRequired": true, | ||
"showInTable": true | ||
}, | ||
{ | ||
"type": "TAG", | ||
"name": "Loan Status", | ||
"parentTagId": "Loan Status", | ||
"inputMax": 1, | ||
"inputMin": 1, | ||
"inputRequired": true, | ||
"showInTable": false | ||
}, | ||
{ | ||
"type": "STRING", | ||
"name": "Borrower", | ||
"inputRequired": false, | ||
"showInTable": false | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Templates | ||
|
||
Templates are specialized JSON formats that define the structure of asset types and tags. These templates enable the sharing of Panthora use-case structures in a standardized manner, facilitating collaboration and reuse. | ||
|
||
## Writing a Template | ||
|
||
Templates are crafted in JSON format. To begin, create a new JSON file, such as `book-library.json`, with the following structure: | ||
|
||
```JSON | ||
{ | ||
"$schema": "../../schemas/import-0.2.0.schema.json", | ||
"name": "Book Library", | ||
"version": "1.0", | ||
"description": "A concise description of the template's purpose.", | ||
"author": "Your Name", | ||
"tags": [], | ||
"assetTypes": [] | ||
} | ||
``` | ||
|
||
Utilizing an editor like [VSCode](https://code.visualstudio.com/) enhances the experience by offering code completion guided by the `$schema`, aiding in the accurate development of the template. | ||
|
||
To populate the template, add tags and asset types as needed. Refer to the [example templates for inspiration](../templates/) and guidance on potential configurations. | ||
|
||
## Leveraging AI for Panthora Structure Generation | ||
|
||
For those seeking a more streamlined approach, the AI-powered generator simplifies the template creation process. By providing a brief description of the intended Panthora use-case, the AI generates a bespoke template that can be directly imported into Panthora, eliminating the need for manual JSON composition. | ||
|
||
Access the AI generator here: [Panthora AI](https://chat.openai.com/g/g-3bQ9bDq9a-panthora) | ||
|
||
## Importing Template | ||
|
||
To integrate a template into Panthora, follow these steps: | ||
|
||
1. Open Panthora. | ||
2. Press <kbd>Command</kbd> + <kbd>K</kbd> (or <kbd>Ctrl</kbd> + <kbd>K</kbd> on Windows) to open the command palette. | ||
3. Type `import` and select `Import Template`. | ||
4. Insert the JSON of your template and select `Import` to complete the process. | ||
|
||
## Contribute | ||
|
||
Please open Pull Requests that add more examples to showcase what you do with Panthora! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.