Kaydet (Commit) 77652b94 authored tarafından mertcelen's avatar mertcelen

Extension developer mode toggle moved to .env

üst deb65a7a
......@@ -7,5 +7,5 @@ APP_NOTIFICATION_EMAIL=admin@liman.dev
LOG_LEVEL=debug
LOG_PATH=/liman/logs/liman.log
EXTENSION_DEVELOPER_MODE=false
QUEUE_DRIVER=database
\ No newline at end of file
......@@ -39,7 +39,7 @@ class RouteServiceProvider extends ServiceProvider
$this->mapWebRoutes();
if (config('liman.extension_developer_mode') == true) {
if (env('EXTENSION_DEVELOPER_MODE') == true) {
$this->mapExtensionDeveloperRoutes();
}
}
......
......@@ -3,7 +3,6 @@
return [
"server_connection_timeout" => 5000, //ms
"user_widget_count" => 10,
"extension_developer_mode" => true,
"nav_extension_hide_count" => 10,
"widget_refresh_time" => 30000, //ms
"brand" => "Havelsan © 2020"
......
......@@ -26,7 +26,7 @@
"target_id" => "extensionUpload",
"text" => "Yükle"
])
@if(config('liman.extension_developer_mode') == true)
@if(env('EXTENSION_DEVELOPER_MODE') == true)
@include('modal-button',[
"class" => "btn-secondary",
"target_id" => "extensionExport",
......@@ -63,7 +63,7 @@
"icon" => " context-menu-icon-delete"
]
],
"onclick" => config('liman.extension_developer_mode') ? "details" : ""
"onclick" => env('EXTENSION_DEVELOPER_MODE') ? "details" : ""
])
</div>
</div>
......@@ -90,7 +90,7 @@
],
"submit_text" => "Yükle"
])
@if(config('liman.extension_developer_mode') == true)
@if(env('EXTENSION_DEVELOPER_MODE') == true)
<?php
$input_extensions = [];
foreach(extensions() as $extension){
......@@ -192,7 +192,7 @@
}
}
@if(config('liman.extension_developer_mode') == true)
@if(env('EXTENSION_DEVELOPER_MODE') == true)
function details(element){
let extension_id = element.querySelector('#extension_id').innerHTML;
window.location.href = "/eklentiler/" + extension_id
......
......@@ -43,7 +43,7 @@ Artisan::command('administrator', function () {
})->describe('Create administrator account to use');
Artisan::command('scan:translations', function () {
if (config('liman.extension_developer_mode') != true) {
if (env('EXTENSION_DEVELOPER_MODE') != true) {
return $this->error(
"You need to open extension developer mode for use this function."
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment