timtoo / randomly-die Goto Github PK
View Code? Open in Web Editor NEWA handy random number generator with many modes, and a fast-to-use UI
A handy random number generator with many modes, and a fast-to-use UI
Are there still vestiges remaining?
The arrows on the default MUI text number input is hard to operate on a phone screen.
A custom component with icon buttons for down/up (or -/+) on either side might be better.
(-)___(+)
It tries to show up when you activate the dropdown. source code shows it is attached to the options, instead of the select control itself. Why?
new numbers automatically generate every x seconds
Maybe a control panel display with speed adjustment,
Zero mode should probably be unchecked if you manually increase min from zero.
Either that or unchecking it when it's not zero shouldn't reset min to 1.
last roll type should update URL with the die string so it can be bookmarked, and links to rolls can be used.
Specifically I was thinking the Yahtzee reference in the tooltip could link to a 5d6 roll.
Thought it was going to be easy to turn this into a offline PWA...
And possibly this would be the default screen when app starts
This project, besides really wanting a more convenient random number generator for myself, was an excuse to learn React. It turns out I really do not like or enjoy React. Some interesting ideas, but feels to me like a bunch of hacks trying to fix (radically fix!) older bad decisions. So it seems to go in the javascript world. But I've heard vue.js is similar but better thought out. I've been looking it over and it looks promising. Then I learned about the quasar framework on top of vue.js and it seems interesting both for its material design controls, and it's ability to generate non-web apps out of the box. So, I'm thinking I might try to port this toy in that direction...
Need persistence first. Then a page to view mode definitions. Then exporting and importing (for external editing). Then in-app editing.
somehow the update to die.min is not getting to the InputNumber control
why not?
Could pre-populate it with some stuff which would act as a hint as to how to use the console maybe also.
For example a 3d6 should have a range of 3-18, rather than 1-6.
The current colour scheme isn't so much what I wanted, but what I ended up with. Would be good if there was a light mode option, at least.
I purposefully didn't want to change the die min/max on mode changes; but now with modes like yes/no and notes, it is really confusing if the min/max aren't set to one of the presets.
So probably should have default values for each mode and force them on mode change.
Could be smarter and check if current dice is some preset first.
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.