doriongilmore / mtggenerator Goto Github PK
View Code? Open in Web Editor NEWThis app brings together several tools to easily create Magic decks.
Home Page: http://doriongilmore.fr/mtgBuilder/
License: MIT License
This app brings together several tools to easily create Magic decks.
Home Page: http://doriongilmore.fr/mtgBuilder/
License: MIT License
Describe the bug
Close Info popup should display search form again
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Search form should come back once Info popup is closed.
Additional context
In console, following error :
Error in callback for watcher "modalName": "Error: Opening a modal when animating"
All symbols (mana, tap, etc.) are saved as {something}, they are processed and displayed correctly everywhere else in the app, but not in the oracle text.
Describe the wanted format
Qte Name (set) ArenaId
Additional context
https://magic.wizards.com/fr/mtgarena
Export example:
Deck
2 Riddlemaster Sphinx (ANB) 31
2 Soulblade Djinn (ANB) 34
3 Warden of Evos Isle (ANB) 38
2 Wall of Runes (ANB) 37
2 Sworn Guardian (ANB) 35
3 Waterkin Shaman (ANB) 39
3 Cloudkin Seer (ANB) 25
2 Octoprophet (ANB) 29
2 Windstorm Drake (ANB) 42
3 Unsummon (ANB) 36
2 Glint (ANB) 28
2 Winged Words (ANB) 43
3 Waterknot (ANB) 40
1 Sleep (ANB) 33
25 Island (ANB) 113
1 Overflowing Insight (ANB) 30
1 Windreader Sphinx (ANB) 41
1 Frilled Sea Serpent (ANB) 27
Sideboard
4 Zephyr Gull (ANB) 44
3 Armored Whirl Turtle (ANB) 24
2 River's Favor (ANB) 32
"easily" achieved with bootstrap-vue, some refacto is needed :
Modals, personal Icons and Button components now obsolete, better handled by boostrap, list to update :
Describe the solution you'd like
With bootstrap a "deck row" now looks like this :
It's quite easy to add an image at the top of these boxes, would be nice to display card art of user choice.
Since we use scryfall API, a lot of work is already done : https://scryfall.com/docs/api/images
"art_crop" property is exactly what we need, we will also need the "artist" property as stated in guidelines : "List the artist name and copyright elsewhere in the same interface presenting the art crop"
Additional context
Render on Untap.in : In our case the artist could be displayed in the badge instead of the deck price
Describe the solution you'd like
A page (home page ?) containing the following:
Is your feature request related to a problem? Please describe.
Drag and Drop can be difficult on mobile devices (more details in #23)
The Performance Graph can be implemented in many different ways and the actual one maybe is not the best (see #10)
Some parts of the settings proposed here are no solution to these problems, just nice settings to have.
Describe the solution you'd like
User should have some personnalisation choice implemented in :
Anticipate that some settings may remain "global", like import/export format and favorite choices.
Also note that some "conditional configuration" should be available in global settings even if deactivated in order to have the template available in case it's activated for one deck. When user deactivates this kind of config (in global config), a toast message should explain the user why the rest of this config is still configurable.
(For example, "Type List Priority" is conditionned by "group by card type" config)
In order to remove drag and drop in Deck Edition, card list will be sorted automatically :
The perf graph can be configured in many different ways as we can see in this document
Formats for Import/Export are actually hardcoded, user could create one himself :
Favorite choices should be available for :
Finally user should be able to save this configuration into a (json?) file.
Is your feature request related to a problem? Please describe.
Most Magic sites have three dispositions to display card results during a search, the basic row actually implemented is not the favorite choice of every user.
Describe the solution you'd like
The performance graph is inspired by https://github.com/lwardlegit/mtgbuild/blob/master/src/App.js#L71
I search in the oracle text for some keywords (see 'search' key) to increment a counter for each performance stat (see 'key' key)
Here is my search map at the moment, note that RegExp are supported :
This list can be improved, by changing any of them or adding new searches or new key performances, feel free to comment so we can discuss about it.
Example: Abzan Beastmaster has the following oracle text:
At the beginning of your upkeep, draw a card if you control the creature with the greatest toughness or tied for the greatest toughness.
This card will increment performances 'process' and 'draw' because it matches 'at the beginning of' and 'draw'
up-to-date version is stats.functionalities
It should be easy to
Describe the bug
The button to print a deck doesn't work anymore.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The print action should be executed.
Desktop (please complete the following information):
Additional context
Log in console
Access to image at 'https://img.scryfall.com/cards/large/front/2/3/2398892d-28e9-4009-81ec-0d544af79d2b.jpg?1562902119' from origin 'http://localhost:4000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Is your feature request related to a problem? Please describe.
Drag and Drop can be difficult on mobile devices, especially when the scroll is available or user has big fingers
Describe the solution you'd like
Describe alternatives you've considered
Is your feature request related to a problem? Please describe.
If we only want to search for cards, we have to go to Deck Creation, it's like Windows, we need to click on Start to power off the computer ๐
Describe the solution you'd like
exploit most of mtg-sdk-javascript
get inspiration from http://www.magiccorporation.com/gathering-cartes-search.html
When saving a deck, we should
Several interesting stats, can be implemented separatly
doc to generate graphs https://www.chartjs.org/
Import : Allow to choose a text file to import
Export : Allow to export a text file
several formats should be supported
should create a pdf document, ready to print, containing the whole deck in good format
there should be a checkbox to remove certain cards (like basic lands by default ?)
PDF can be generated by http://pdfkit.org/
discussion and more possible libraries in https://stackoverflow.com/questions/742271/generating-pdf-files-with-javascript
Describe the solution you'd like
Some more information can be useful to add :
The size of this info is too variable (depending on the colors in the deck) so a new tab called "More stats" could be necessary
If not, in order to display more info in the same place, one of the graph can be replaced by a basic table, Type Repartition graph seems to be the most appropriate.
Describe the solution you'd like
A page containing the following :
If no game in place :
If game started
This page should have three parts :
and contain following features :
*reminder about printing config
Real cards have a 3mm border, on internet, image do not always have a border, and it is not always complete, in vb macro 4 values were accepted to adapt size of the image, from 0 for 0mm border (none), to 3 for 3mm border (complete one).
The plan here is to have a similar choice with an additionnal value: don't print. Also it will be simpler to make the choice more explicit than vb macro
This choice would default to "complete border" for all cards except basic lands where it would default to "don't print". If not mistaken with this api almost all cards have complete borders so this choice probably won't be updated often.
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.