Skip to content

Commit c515edf

Browse files
author
Andrey Helldar
authored
Merge pull request #35 from EgoistDeveloper/main
General UI improvements
2 parents e9b9836 + 65b2aa2 commit c515edf

File tree

11 files changed

+340
-6
lines changed

11 files changed

+340
-6
lines changed

config/pretty-routes.php

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,32 @@
6969

7070
'color_scheme' => 'auto',
7171

72+
/*
73+
* Apply color theme when idle time or active.
74+
*
75+
* If your browser theme following any specific condition (os, time etc.) helps to auto theme switch.
76+
*
77+
* 1000 ms = 1 seconds
78+
*
79+
* This option depends to "color_scheme" and works only with "auto"
80+
*
81+
* By default, 1000 and accepts only integer values.
82+
*/
83+
84+
'color_scheme_idle_time' => 1000,
85+
86+
/*
87+
* Auto reload table contents when return back.
88+
*
89+
* 1000 ms = 1 seconds
90+
*
91+
* 0 = disabled
92+
*
93+
* By default, 10000 and accepts only integer values.
94+
*/
95+
96+
'table_reload_idle_time' => 10000,
97+
7298
/*
7399
* If routes are not separated by a domain, this column is hidden from display by default.
74100
*
@@ -88,4 +114,41 @@
88114
*/
89115

90116
'locale_force' => false,
117+
118+
/*
119+
* Enable open link in new tab.
120+
*
121+
* Useful for manual testing or visual checks.
122+
*
123+
* This option related with "dummy_variable_prefix"
124+
*/
125+
126+
'show_path_link' => true,
127+
128+
/*
129+
* Laravel stores variable names with curly bracktes, this option replaces "prefix" and "variable name".
130+
* So we can prevent url encode when browsing and we can get readable urls
131+
*
132+
* For example
133+
* before admin/line/lines/{line_id} => admin/line/lines/%7Bline_id%7D
134+
* after: admin/line/lines/{line_id} => admin/line/lines/param_line_id
135+
*
136+
* This option depends to "show_path_link"
137+
*/
138+
139+
'dummy_variable_prefix' => 'param_',
140+
141+
/*
142+
* Click and copy to clipboard "path" and "name" text.
143+
*/
144+
145+
'click_and_copy' => true,
146+
147+
/*
148+
* Double click and copy to clipboard "path" and "name" text.
149+
*
150+
* This option overwrites "click_and_copy" option.
151+
*/
152+
153+
'double_click_and_copy' => true,
91154
];

resources/lang/en/info.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
'api' => 'Api',
77
'cleaningRoutes' => 'Clear route cache',
88
'deprecated' => 'Deprecated',
9+
'dismiss' => 'Dismiss',
910
'domain' => 'Domain',
11+
'error' => 'Error',
1012
'itemsPerPageAllText' => 'All',
1113
'itemsPerPageText' => 'Routes per page',
14+
'loadedOnActive' => 'Reloaded after idle',
1215
'loading' => 'Loading... Please wait...',
1316
'methods' => 'Methods',
1417
'middlewares' => 'Middlewares',
@@ -21,10 +24,15 @@
2124
'openGitHub' => 'Open the project page on GitHub',
2225
'pageText' => '{0}-{1} of {2}',
2326
'path' => 'Path',
27+
'printData' => 'Print Data',
2428
'priority' => 'Priority',
2529
'refreshRoutes' => 'Refresh the list of routes',
30+
'reload' => 'Reload',
2631
'search' => 'Search',
2732
'show' => 'Show',
33+
'showMessage' => 'Show Message',
34+
'textCopied' => 'Text copied',
35+
'textNotCopy' => 'Text not copy',
2836
'title' => 'Routes',
2937
'types' => 'Route types',
3038
'web' => 'Web',

resources/lang/fr/info.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
'api' => 'Api',
77
'cleaningRoutes' => 'Effacer le cache des routes',
88
'deprecated' => 'Obsolète',
9+
'dismiss' => 'Dismiss',
910
'domain' => 'Domaine',
11+
'error' => 'Error',
1012
'itemsPerPageAllText' => 'Tout',
1113
'itemsPerPageText' => 'Routes par page',
14+
'loadedOnActive' => 'Reloaded after idle',
1215
'loading' => 'Chargement, veuillez patienter ...',
1316
'methods' => 'Méthodes',
1417
'middlewares' => 'Middlewares',
@@ -21,10 +24,15 @@
2124
'openGitHub' => 'Ouvrir la page du projet sur GitHub',
2225
'pageText' => '{0}-{1} sur {2}',
2326
'path' => 'Chemin',
27+
'printData' => 'Print Data',
2428
'priority' => 'Priorité',
2529
'refreshRoutes' => 'Actualiser la liste des routes',
30+
'reload' => 'Reload',
2631
'search' => 'Chercher',
2732
'show' => 'Voir',
33+
'showMessage' => 'Show Message',
34+
'textCopied' => 'Text copied',
35+
'textNotCopy' => 'Text not copy',
2836
'title' => 'Routes',
2937
'types' => 'Types de routes',
3038
'web' => 'Web',

resources/lang/ru/info.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
'api' => 'Api',
77
'cleaningRoutes' => 'Очистить кэш роутов',
88
'deprecated' => 'Устаревшие',
9+
'dismiss' => 'Отклонено',
910
'domain' => 'Домен',
11+
'error' => 'Ошибка',
1012
'itemsPerPageAllText' => 'Все',
1113
'itemsPerPageText' => 'Записей на странице',
14+
'loadedOnActive' => 'Перезагружено после простоя',
1215
'loading' => 'Загрузка... Пожалуйста, подождите...',
1316
'methods' => 'Методы',
1417
'middlewares' => 'Мидлвари',
@@ -21,10 +24,15 @@
2124
'openGitHub' => 'Открыть страницу проекта в GitHub',
2225
'pageText' => '{0}-{1} из {2}',
2326
'path' => 'URI',
27+
'printData' => 'Данные для печати',
2428
'priority' => 'Приоритет',
2529
'refreshRoutes' => 'Обновить список маршрутов',
30+
'reload' => 'Перезагрузить',
2631
'search' => 'Поиск',
2732
'show' => 'Показать',
33+
'showMessage' => 'Показать сообщение',
34+
'textCopied' => 'Текст скопирован',
35+
'textNotCopy' => 'Текст не скопирован',
2836
'title' => 'Маршруты',
2937
'types' => 'Типы маршрутов',
3038
'web' => 'Web',

resources/lang/tr/info.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
return [
4+
'action' => 'Aksiyon',
5+
'all' => 'Hepsi',
6+
'api' => 'API',
7+
'cleaningRoutes' => 'Rota önbelleğini temizle ',
8+
'deprecated' => 'Kaldırıldı',
9+
'dismiss' => 'Reddet',
10+
'domain' => 'Alan Adı',
11+
'error' => 'Hata',
12+
'itemsPerPageAllText' => 'Hepsi',
13+
'itemsPerPageText' => 'Sayfa başına rota',
14+
'loadedOnActive' => 'Beklemeden sonra yeniden yüklendi',
15+
'loading' => 'Yükleniyor... Lütfen bekleyin...',
16+
'methods' => 'Metodlar',
17+
'middlewares' => 'Ara yazılımlar',
18+
'module' => 'Modül',
19+
'name' => 'İsim',
20+
'noDataText' => 'Veri yok',
21+
'noResultsText' => 'Eşleşen herhangi bir kayıt bulunamadı',
22+
'of' => 'arası',
23+
'only' => 'Sadece',
24+
'openGitHub' => 'GitHub\'da proje sayfasını görüntüle',
25+
'pageText' => '{0}-{1} of {2}',
26+
'path' => 'Yol',
27+
'printData' => 'Veriyi Yazdır',
28+
'priority' => 'Öncelik',
29+
'refreshRoutes' => 'Rota listesini güncelle',
30+
'reload' => 'Yeniden Yükle',
31+
'search' => 'Ara',
32+
'show' => 'Göster',
33+
'showMessage' => 'Mesajı Göster',
34+
'textCopied' => 'Metin kopyalandı',
35+
'textNotCopy' => 'Metin kopyalanamadı',
36+
'title' => 'Rotalar',
37+
'types' => 'Rota türleri',
38+
'web' => 'Web',
39+
'without' => 'Olmadan',
40+
];
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<v-row justify="center">
3+
<v-dialog v-model="dialog.isOpen" persistent scrollable max-width="750px">
4+
<v-card>
5+
<v-card-title class="headline" v-text="dialog.title"></v-card-title>
6+
7+
<v-card-text>
8+
<p v-text="dialog.message" v-if="dialog.messageVisible"></p>
9+
<pre v-text="dialog.dataDump" v-if="dialog.dataDumpVisible"></pre>
10+
</v-card-text>
11+
12+
<v-card-actions>
13+
<v-spacer></v-spacer>
14+
<v-btn color="light-blue darken-3" text @click="showDialogData" v-if="dialog.dataDump">
15+
<v-icon dense style="margin-right: 10px;">mdi-database-search</v-icon>
16+
<span v-text="dialog.printDataButton"></span>
17+
</v-btn>
18+
<v-btn color="teal darken-1" text @click="getRoutes">
19+
<v-icon dense style="margin-right: 10px;">mdi-refresh</v-icon>
20+
<span v-text="dialog.refreshButton"></span>
21+
</v-btn>
22+
<v-btn color="red lighten-1" text @click="dialog.isOpen = false">
23+
<v-icon dense style="margin-right: 10px;">mdi-close</v-icon>
24+
<span v-text="dialog.dismissButton"></span>
25+
</v-btn>
26+
</v-card-actions>
27+
</v-card>
28+
</v-dialog>
29+
</v-row>
30+
</template>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<div class="text-center">
3+
<v-snackbar v-model="snackbar.isOpen" :timeout="snackbar.timeout">
4+
<span v-text="snackbar.message"></span>
5+
6+
<template v-slot:action="{ attrs }">
7+
<v-btn color="blue" text v-bind="attrs" @click="snackbar.isOpen = false">
8+
<v-icon dense style="margin-right: 10px;">mdi-close</v-icon>
9+
</v-btn>
10+
</template>
11+
</v-snackbar>
12+
</div>
13+
</template>

resources/views/layout.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
<div id="app">
1717
@include('pretty-routes::vue')
18+
19+
@include('pretty-routes::components.dialog')
20+
@include('pretty-routes::components.snackbar')
1821
</div>
1922

2023
@include('pretty-routes::scripts')

0 commit comments

Comments
 (0)