magenizr / october_envbar Goto Github PK
View Code? Open in Web Editor NEWEnvbar allows you to differentiate between environments by adding a custom colored bar above the top navigation.
License: MIT License
Envbar allows you to differentiate between environments by adding a custom colored bar above the top navigation.
License: MIT License
I have this issue sometime when i logout :
Call to a member function isSuperUser() on null
~/plugins/magenizr/envbar/models/Settings.php line 145
With this quick fix it's OK
private function checkPermissions()
{
if (!$this->enabled) {
return false;
}
if ($this->superuser) {
$backendUser = BackendAuth::getUser();
if ($backendUser) {
if (!$backendUser->isSuperUser) {
return false;
}
}
}
if (!$this->getEnv()) {
return false;
}
return true;
}
Line 36 in 61f3421
You can use Author.Plugin as the second argument to addAsset() which will automatically use the latest version number of the provided plugin. (@bennothommo could you add that to the docs? I don't think we have that behavior documented anywhere that references the System\Traits\AssetMaker)
If I temporarily change env on my local system just to check if the colors change, they don't.
I have to disable and enable to see the color change everytime I change the environment.
Maybe the plugin checks the env only on certain events instead of on every page load.
After install I get 404 for file /storage/temp/magenizr.envbar.style.css?1.0.1
.
When I put /storage/temp
folder in .htaccess, it works:
RewriteCond %{REQUEST_FILENAME} !/storage/temp/.*
Maybe move the file to /storage/temp/public
folder which is allowed by default in OctoberCMS .htaccess file?
Or maybe I am missing something?
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.