adam-thomas / imperial-painter Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Currently, CardListReload
calls the import_cards
management command using call_command
, which seems off. A module to store the bulk of the importing code, which could then also be separately tested from the management command, would be a good refactor. Probably also a good opportunity to re-layout some of the code.
Rather than have to copy out a card multiple times in an Excel spreadsheet, let's add an optional quantity
field/column that will cause Painter to display that number of the card.
Currently, printing requires some faff:
An import is a bit useless without a way to use it!
make paint
.Just in case something messes up, the importer should check the layout of the imported Excel file and provide good error output if something fails.
This is also the place to add fallbacks for behaviour I want to allow.
Potential failure cases:
tablib
probably has that covered already.)This will probably be done fully or partially as part of #5.
Some in-game entities might have two or more cards associated with them, such as Warmachine's double-sided unit cards with the full rules on the back. I can support that by allowing multiple entries (comma-separated?) in the Template column and rendering both, next to each other.
From #9:
/?load=filename,filename2
- Refresh using the filenames supplied. (This can be a separate issue.)Adding the ability to specify which filenames were being loaded from would be very useful. This way, you can avoid using the management command altogether if you like.
em
and CSS element sizing in general.card_display.html
.import_laundry.py
to the project it was intended for.Multiple worksheets for multiple card types (with potentially different header rows) seem useful, so let's add that.
Currently, it's a bit of a faff to get Painter up and running on a new machine. A compiled form that only required CSVs and custom templates - whether running locally via Python, or deployed somewhere online - would be much more useful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.