benttranberg / explorebolero Goto Github PK
View Code? Open in Web Editor NEWExploring possibilities in Bolero for F#
Exploring possibilities in Bolero for F#
There are issue reports explaining details about this, but I don't have time to retrace my research right now. The workaround is simply not to upgrade beyond Bulma 0.7.4 until somebody produces a fix somewhere, and preferably in Bulma itself so that the fix is backwards compatible with even slightly old Edge browsers due to machines not being online and updated.
This requires some code that I have elsewhere and will port. The code will toggle active on navbar and menu.
I don't know for sure if the wrapper for the NodaTimePicker is implemented correctly and used correctly.
When upgrading from preview-7 to preview-9, there was one problematic change that I finally found a solution to by simply googling and experimenting a lot, but without really understanding more than a tiny fraction of what's going on. That change was with how OnSelected is used. Is the solution I arrived at the correct one?
Dotting at OnSelected reveals an OnSelected.InvokeAsync, and I'm wondering why that isn't part of the solution I arrived at. Should it be?
I like the Bulmaswatch Spacelab theme. Specifically the buttons. Also for a dark theme, Nuclear is cool.
https://jenil.github.io/bulmaswatch/spacelab/
https://jenil.github.io/bulmaswatch/nuclear/
When this is done, it must be done with v 0.7.4, which unfortunately is not tagged, so it's a bit bothersome to get the files needed.
I have fixed this in my business application. Will port the fix soon, but other issues come first.
Use Bulma Hero in combination with Bulma navbar, as explained in the documentation for Bulma Hero. Looks like this will give better control of the overall top level layout, including an alternative for a footer.
I have code for this elsewhere that will be ported.
There are currently only the Tweet and Download buttons originally in the Bulma demo snippet. I have code elsewhere for Login that needs porting, but no code for registering.
ExploreBolero uses PageModel for pages that are siblings.
I'm thinking that these pages can be handled by a subrouter of the main router. This is explained somewhere - an issue in Bolero, or somewhere else.
Also, in Main.fs there are currently cases in a number of places - in update, in defaultModel, in menuItem, in .Menu and in .Body - and these can perhaps also be collapsed into something, in order to move closer to single point of responsibility.
What then is the way forward? Should all of this be wrapped by a single submodel for maximum cleanliness, or should it be done in the main model? Should part of it be done in the main model first, and then moved to a wrapping submodel?
The books model is also one of those sibling pages, but was not handled by the old page model system, and so is not yet moved into the new system either. Will do.
The home page is one of the sibling pages, but not included in the PageModel based stuff. Should it be?
The application seems to get slower for each submodel added.
Compare this
https://github.com/BentTranberg/ExploreBolero/blob/master/ExploreBolero.Client/Main/Main.fs
with this
https://github.com/elmish/Elmish.WPF/blob/master/src/Samples/SubModelOpt/Program.fs
I'm thinking that all the submodels in Main.fs will cause a lot of traversing, and perhaps they should be option, and None when not displayed.
Or maybe all the page submodels should not even be there. Maybe there should only be one page submodel in the main model, which fans out with the help of a DU or class hierarchy or something.
Maybe the similar looking match cases for the submodels can be removed from Main.fs. Any deviation can perhaps be handled in an override with call to base, or some other equivalent functional solution can be made.
Try out and see if such a change will make the application react faster. Just make the first attempt simple, with option and None.
Do I really have to go through the pain of modifying Bulma variables in order to achieve this? Perhaps I'll ask for a feature request in the Bulma repo, unless an easy solution can be found. Lots of other people struggle with the same issue, so a feature request definitely has a chance to be accepted.
I haven't succeeded in getting Bulma Extensions DatePicker to work. Instructions on use is on the following page.
https://creativebulma.net/product/calendar/demo
There are steps on that page which doesn't seem relevant to my use. I only include the css and js files in index.html.
Perhaps I failed to understand what I need to do with the javascript snippets found on that page. I can't even get the component to replace the browser's built in date picker.
I have added the javascript that I think is needed, in this file: https://github.com/BentTranberg/ExploreBolero/blob/master/ExploreBolero.Client/Dates/dates.html
I have also tried to put that javascript elsewhere, to no avail.
The relevant changes are in this commit : 56ee01a
Apparently this new feature in Bolero 0.9 can replace much of the boilerplate code related to the submodels.
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.