Compare commits

...

2 commits

Author SHA1 Message Date
e14e1c8b83 make table responsive 2023-03-13 16:13:25 +01:00
3609e60f19 add csv & json agate source 2023-03-12 23:50:11 +01:00
6 changed files with 13830 additions and 95 deletions

View file

@ -123,30 +123,33 @@
}
.flickity-button {
background: #588597;
}
}
/* Spells */
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
}
.list-col{
flex-grow: 2;
min-width: 600px;
.list-col {
width: 75%;
float: left;
}
.view-col {
flex-grow: 1;
width: 25%;
float: left;
}
@media screen and (min-width: 768px) {
.list-col {
margin-right: 1%;
}
@media screen and (max-width: 768px) {
.list-col,
.view-col {
max-width: 600px;
width: 100%;
float: none;
}
.list-col{
zoom:70%
};
}
.w2ui-grid-data {
@ -158,5 +161,4 @@
white-space: break-spaces;
}
.w2ui-grid .w2ui-grid-body table {
}

13430
data/spells/csvjson.json Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,3 @@
{ "GRI-fr": "spells-grimoire-fr.json"
{ "GRI1-fr": "spells-grimoire-fr.json",
"GRI1-en":"spells-grimoire-en.json"
}

View file

@ -1,64 +0,0 @@
{ "spell": [ {
                        "name": "Acid Splash",
                        "source": "PHB",
                        "page": 211,
                        "srd": true,
                        "basicRules": true,
                        "level": 0,
                        "school": "C",
                        "time": [
                                {
                                        "number": 1,
                                        "unit": "action"
                                }
                        ],
                        "range": {
                                "type": "point",
                                "distance": {
                                        "type": "feet",
                                        "amount": 60
                                }
                        },
                        "components": {
                                "v": true,
                                "s": true
                        },
                        "duration": [
                                {
                                        "type": "instant"
                                }
                        ],
                        "entries": [
                                "You hurl a bubble of acid. Choose one creature you can see within range, or choose two creatures you can see within range that are within 5 feet of each other. A target must succeed on a Dexterity saving throw or take {@damage 1d6} acid damage.",
                                "This spell's damage increases by {@dice 1d6} when you reach 5th level ({@damage 2d6}), 11th level ({@damage 3d6}), and 17th level ({@damage 4d6})."
                        ],
                        "scalingLevelDice": {
                                "label": "acid damage",
                                "scaling": {
                                        "1": "1d6",
                                        "5": "2d6",
                                        "11": "3d6",
                                        "17": "4d6"
                                }
                        },
                        "damageInflict": [
                                "acid"
                        ],
                        "savingThrow": [
                                "dexterity"
                        ],
                        "miscTags": [
                                "SCL",
                                "SGT"
                        ],
                        "areaTags": [
                                "ST",
                                "MT"
                        ]
                },
}
]
}

View file

@ -38,11 +38,10 @@ fetch(jsonsource)
searchable: { operator: "contains" },
},
{
field: "desc",
text: "Description",
size: "500%",
style: "test",
resizable: true,
field: "source",
text: "Source",
sortable: true,
tooltip: "Which book is this from ?",
searchable: { operator: "contains" },
render(record, extra) {
return (
@ -52,13 +51,6 @@ fetch(jsonsource)
);
},
},
{
field: "source",
text: "Source",
sortable: true,
tooltip: "Which book is this from ?",
searchable: { operator: "contains" },
},
{ field: "page", text: "Page", sortable: true },
{ field: "level", text: "Level", sortable: true, size: 65 },
{ field: "school", text: "School", sortable: true },