Skip to content

Commit 92b9e26

Browse files
committed
refactor(dnd): items path
1 parent 38d4827 commit 92b9e26

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

public/stories/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public/stories/
1313
├── characters.piml
1414
├── places.piml
1515
├── MarkdownExample.md
16-
├── _items_/
16+
├── meta-items/
1717
│ ├── items.piml
1818
│ ├── [item-image].png
1919
│ └── ...
@@ -27,7 +27,7 @@ public/stories/
2727
* `books.piml`: This PIML file serves as the main index for all story books and their respective episodes.
2828
* `characters.piml`: This PIML file contains the definitions for all characters (Dramatis Personae).
2929
* `places.piml`: This PIML file contains the definitions for all places and locations (The Atlas).
30-
* `_items_/`: Contains item definitions and their respective images.
30+
* `meta-items/`: Contains item definitions and their respective images.
3131
* `items.piml`: Definitions for artifacts and tools (The Armory).
3232
* `[book-directory-name]/`: Each book's individual episode content files are stored in their own dedicated subdirectories.
3333
* `episodeX.txt`: These are plain text files containing the actual narrative content for each episode.
@@ -136,7 +136,7 @@ The `books.piml` file is a PIML document that, when parsed, results in an object
136136
* `description` (String): Description of the atmosphere.
137137
* `status` (String): Current status (e.g., Active, Destroyed).
138138

139-
## Item Structure (_items_/items.piml)
139+
## Item Structure (meta-items/items.piml)
140140

141141
```piml
142142
(items)
@@ -146,7 +146,7 @@ The `books.piml` file is a PIML document that, when parsed, results in an object
146146
(book) The Tales of Doctor Blade
147147
(description) A pearlescent grey mist...
148148
(owner) Doctor Blade
149-
(image) /stories/_items_/alilberry_extract.png
149+
(image) /stories/meta-items/alilberry_extract.png
150150
```
151151

152152
### Item Object Properties:
@@ -156,4 +156,4 @@ The `books.piml` file is a PIML document that, when parsed, results in an object
156156
* `book` (String): The book where it first appears.
157157
* `description` (String): Detailed description of the item.
158158
* `owner` (String): The character or entity that owns the item.
159-
* `image` (String, Optional): Relative path to the item's image file.
159+
* `image` (String, Optional): Relative path to the item's image file.
File renamed without changes.
File renamed without changes.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,47 @@
55
(book) The Tales of Doctor Blade
66
(description) A pearlescent grey mist derived from a rare herb, processed through dwarven glass and sung over by a mute bard. One drop cures; two drops kill.
77
(owner) Doctor Blade
8-
(image) /stories/_items_/alilberry_extract.png
8+
(image) /stories/meta-items/alilberry_extract.png
99

1010
> (item)
1111
(name) Soul of Viyu
1212
(type) Artifact
1313
(book) The Broken Path
1414
(description) A fragment of an ancient soul, pulsating with a faint, rhythmic light. It whispers to those who hold it, promising power at a terrible cost.
1515
(owner) Unknown
16-
(image) /stories/_items_/soul_of_viyu.png
16+
(image) /stories/meta-items/soul_of_viyu.png
1717

1818
> (item)
1919
(name) Dark Green Beret
2020
(type) Military Apparel
2121
(book) The Sins of Glareach
2222
(description) A wool beret with twenty-two silver stars stitched into the side by Lenia. It is the only thing Lorhud Krauper has left from his daughter, and he never takes it off.
2323
(owner) Lorhud Krauper
24-
(image) /stories/_items_/beret_of_lorhud_krauper.png
24+
(image) /stories/meta-items/beret_of_lorhud_krauper.png
2525

2626
> (item)
2727
(name) Chronometer of Ash
2828
(type) Tool / Artifact
2929
(book) The Chronomancer's Dust
3030
(description) A brass sphere powered by the ash of Glareach. It allows the user to relive exactly one hour of their past. The glass is unbreakable, ensuring the user can only observe, never intervene.
3131
(owner) Klaude Barral
32-
(image) /stories/_items_/the_chronometer.png
32+
(image) /stories/meta-items/the_chronometer.png
3333

3434
> (item)
3535
(name) Valeth's Notebook
3636
(type) Journal
3737
(book) The Diplomat's Journal
3838
(description) A navy blue notebook with a single silver star on the cover. It contains the observations of a diplomat who sees too much, documenting the rot at the heart of Thornus. Recently stolen by Nex Orlong outside the Kosnak Estate.
3939
(owner) Nex Orlong (Current Holder) / Valeth Vanceshire (Original Owner)
40-
(image) /stories/_items_/valeth_notebook.png
40+
(image) /stories/meta-items/valeth_notebook.png
4141

4242
> (item)
4343
(name) Touch of Rose
4444
(type) Disease / Mark
4545
(book) The Petals of Predymesh
4646
(description) A devastating affliction that manifests as a crimson rose-leaf mark on the forehead. It slowly drains the victim's motor functions and speech, eventually leaving them in a vegetative state. Its only known cure is a rare drop of Alilberry.
4747
(owner) Pellera Orlong (Afflicted)
48-
(image) /stories/_items_/touch_of_rose.png
48+
(image) /stories/meta-items/touch_of_rose.png
4949

5050
> (item)
5151
(name) Government Medal for Science
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/AnimatedRoutes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const AnimatedRoutes = ({
166166
const location = useLocation();
167167

168168
return (
169-
<AnimatePresence>
169+
<AnimatePresence mode="wait">
170170
<Routes location={location} key={location.pathname}>
171171
<Route
172172
path="/"

src/pages/dnd/DndItemsPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function DndItemsPage() {
3030
useEffect(() => {
3131
const fetchData = async () => {
3232
try {
33-
const response = await fetch(`${process.env.PUBLIC_URL}/stories/_items_/items.piml`);
33+
const response = await fetch(`${process.env.PUBLIC_URL}/stories/meta-items/items.piml`);
3434

3535
if (response.ok) {
3636
const text = await response.text();

0 commit comments

Comments
 (0)