Skip to content

Commit

Permalink
Jet Studio
Browse files Browse the repository at this point in the history
------------
* Logging in is no longer required when working on localhost
  • Loading branch information
mirekmarek committed Nov 21, 2024
1 parent d4d1bc8 commit 03f7880
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 4 additions & 0 deletions _tools/studio/application/Modules/AccessControl/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class Main extends JetStudio_Module implements JetStudio_Module_Service_AccessCo

public function handleAccessControl(): void
{
if( $_SERVER['REMOTE_ADDR']=='127.0.0.1' || '::1' ) {
return;
}

$session = $this->getSession();
$key = $this->readKey();
if( !$key ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<?php

namespace JetStudio;

use Jet\UI_messages;

?>
<br/><br/><br/><br/><br/>
<?php
foreach( UI_messages::get() as $message ):
$message->setCloseable( false );
echo $message;
endforeach;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use Jet\UI_icon;
<?php foreach( JetStudio::getModuleManifests() as $m ):
if($m->getUrlPathPart()):
?>
<div class="card" style="padding: 10px;margin: 20px;text-align: center;">
<div class="card shadow" style="padding: 10px;margin: 20px;text-align: center;">
<div style="margin: 10px;"><a href="<?=$m->getURL()?>" style="color: black"><?= UI::icon( $m->getIcon() )->setSize( UI_icon::SIZE_EXTRA_LARGE ) ?></a></div>
<a href="<?=$m->getURL()?>"><?= $m->getLabelTranslated() ?></a>
</div>
Expand Down
8 changes: 2 additions & 6 deletions _tools/studio/application/layouts/login.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,8 @@ use Jet\UI;
</nav>


<div class="container" style="margin-top: 50px;">
<div class="row align-items-center">
<div class="col-12 justify-content-center">
<jet_layout_main_position/>
</div>
</div>
<div style="justify-content: center;display: grid;grid-template-columns: 500px;grid-template-rows: calc(100vh - 180px);align-items: center">
<jet_layout_main_position/>
</div>


Expand Down

0 comments on commit 03f7880

Please sign in to comment.