Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
Liman MYS - Çekirdek
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
liman
Liman MYS - Çekirdek
Commits
77652b94
Kaydet (Commit)
77652b94
authored
May 18, 2020
tarafından
mertcelen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Extension developer mode toggle moved to .env
üst
deb65a7a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
.env.example
.env.example
+2
-1
RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
+1
-1
liman.php
config/liman.php
+0
-1
manager.blade.php
resources/views/extension_pages/manager.blade.php
+4
-4
console.php
routes/console.php
+1
-1
No files found.
.env.example
Dosyayı görüntüle @
77652b94
...
...
@@ -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
app/Providers/RouteServiceProvider.php
Dosyayı görüntüle @
77652b94
...
...
@@ -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
();
}
}
...
...
config/liman.php
Dosyayı görüntüle @
77652b94
...
...
@@ -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"
...
...
resources/views/extension_pages/manager.blade.php
Dosyayı görüntüle @
77652b94
...
...
@@ -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
...
...
routes/console.php
Dosyayı görüntüle @
77652b94
...
...
@@ -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."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment