Its used to run tests every time a pull request is submitted if the test passes that means the pull request will not interfere with the rest of your code, CodeCov is used to determine how much of your project is being test. The higher percentage the better. So if your project fails you can locate the error with the tests meaning Travis will tell you what part of your code is failing without downloading the whole project to your computer and hand testing them yourself.Didn't know what that was untill now, thanks for the suggestion i'll definitely be looking into it
Great to see this being picked up again. Surely one of the most promising things we've had here.
You tha man. I love following this progression. Can't wait for more updates.
Cheers guys thank you so much.
Any suggestions on a simple barebone lightweight admin panel theme? Currently usingYou must be registered for see linksas a base, has to be mobile friendly.
I want to avoid themes that rely on view/js libraries, something simple with maybe 3 css & >3 js requests max. I chose the theme above because it just uses jquery and bootstrap.
I might just stick with the theme above though, it's really light and serves as a good starting point for what i need. i can do all the styling myself.
@griimnak drop me a PM I got a React template you can use.If you really want something lightweight, get a React.js theme and not jQuery. jQuery is much more intense and takes more time rendering due to all the work done in the DOM. React.js is, as far as I remember from tests, almost two times as fast as jQuery based themes.
If you really want something lightweight, get a React.js theme and not jQuery. jQuery is much more intense and takes more time rendering due to all the work done in the DOM. React.js is, as far as I remember from tests, almost two times as fast as jQuery based themes.
Thank you for the info, I'm really outdated on frontend, i was still tkinking jquery is the go-to lol.@griimnak drop me a PM I got a React template you can use.
The codebase is not exactly clean or up to date, but for your purpose it's fine and there follows a documentation which explains all the components and elements available etc.
You must be registered for see links
Thing is React will be handling all routing so you don't have to do it through Python, but all you gotta do is point every entrance ('/admin/*') to a index.html file requiring the initial bundled React file.
You can use them both, sodium acts as a wrapper. If you prefer one i would go with sodium as sodium is a modern cryptography library that offers authenticated encryption, high-speed elliptic curve cryptography, and much more. Unlike other cryptography standards (which are a potluck of cryptography primitives; i.e. WebCrypto), sodium is comprised of carefully selected algorithms implemented by security experts to avoid side-channel vulnerabilities.Is it better thanYou must be registered for see links?
Damn, you have a whole 4 n1ggersCommitted changes (Jan, 4, 2018)
Big performance improvements. (benchmarks below)
Before and after:
- Improved config reader (see
You must be registered for see links)
Before and after:
- Improved mysql performance (~30%) (see
You must be registered for see links)- Implemented persistent mysql connection instead of per request.
Before and after:
- Improved controllers and models to fit their roles more accurately (see
You must be registered for see links)
Controllers:
Models:
Benchmarks:
MySQL per request vs persistent
Load times after commit compared to old source:
BEFORE:
AFTER:
Removing frontend js libraries
And I think I mad my mind on the admin template. I'm not gonna use jquery or react, i'm gonna go vanilla js
Flask actually plays really well with react, it'd be a wicked idea but not suitable for what i want to achieve, it's too many libraries and kinda goes against the philosophy of trinity.
(sources:You must be registered for see linksYou must be registered for see linksYou must be registered for see links)
Why?
Because it's too much libraries. I don't want to require my user to have to install npm yarn etc. Even jQuery is gonna go, we're going vanilla in this bih.
Started new admin design. Inspired byYou must be registered for see links, completely scratch vanilla js no libraries.
Fully responsive thanks to css3 flex
You could write the JS like you would do in React, first render, actions for http server requests (ajax), components if you're handling CSS, events and so on, and maybe a way to wrap them all into having the user object etc like dependency injection.
Threw up a youtube video of the admin theme's current state, i'm actually somewhat proud.
Looking rather clean if I was to say so myself
here's a look at the vanilla js behind it:
console.log is only debugging purpose, it'll be removed later on.
to use react you have to do routing on the client though don't you? i wanna keep the routing in flask, basically only using javascript for dom manipulationYou could write the JS like you would do in React, first render, actions for http server requests (ajax), components if you're handling CSS, events and so on, and maybe a way to wrap them all into having the user object etc like dependency injection.
Could make the coding structure look way more neat, since I assume you're gonna have a lot vanilla JS.
Then you could use a bundler like Webpack to have ES6.
Just a thought
If you want I could help you out
I'm not talking about routing. Just how the coding structure is in React / Redux and OOP in general e.g like many does it in PHPto use react you have to do routing on the client though don't you? i wanna keep the routing in flask, basically only using javascript for dom manipulation