Skip to content

Commit 4649387

Browse files
committed
feat: dashboard id or uname
1 parent 7a29be3 commit 4649387

File tree

5 files changed

+63
-13
lines changed

5 files changed

+63
-13
lines changed

locales/default.pot

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: BEdita 4 \n"
4-
"POT-Creation-Date: 2023-12-15 11:11:26 \n"
4+
"POT-Creation-Date: 2024-02-26 14:54:49 \n"
55
"MIME-Version: 1.0 \n"
66
"Content-Transfer-Encoding: 8bit \n"
77
"Language-Team: BEdita I18N & I10N Team \n"
@@ -355,6 +355,12 @@ msgstr ""
355355
msgid "History"
356356
msgstr ""
357357

358+
msgid "ID"
359+
msgstr ""
360+
361+
msgid "ID or uname"
362+
msgstr ""
363+
358364
msgid "Id"
359365
msgstr ""
360366

@@ -763,9 +769,6 @@ msgstr ""
763769
msgid "Temporary folder missing"
764770
msgstr ""
765771

766-
msgid "The main language is"
767-
msgstr ""
768-
769772
msgid "The thumbnail is not available"
770773
msgstr ""
771774

@@ -1070,6 +1073,9 @@ msgstr ""
10701073
msgid "There are unsaved changes, are you sure you want to leave page?"
10711074
msgstr ""
10721075

1076+
msgid "Add placeholder"
1077+
msgstr ""
1078+
10731079
#, javascript-format
10741080
msgid "Do you confirm the deletion of ${ number } item from the trash?"
10751081
msgstr ""
@@ -1179,6 +1185,9 @@ msgstr ""
11791185
msgid "Items"
11801186
msgstr ""
11811187

1188+
msgid "NULL"
1189+
msgstr ""
1190+
11821191
msgid "Search text too short. Minimum length is 3. Retry"
11831192
msgstr ""
11841193

@@ -1365,6 +1374,9 @@ msgstr ""
13651374
msgid "add new"
13661375
msgstr ""
13671376

1377+
msgid "The main language is"
1378+
msgstr ""
1379+
13681380
msgid "Completed on"
13691381
msgstr ""
13701382

locales/en_US/default.po

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: BEdita Manager \n"
4-
"POT-Creation-Date: 2023-12-15 11:11:26 \n"
4+
"POT-Creation-Date: 2024-02-26 14:54:49 \n"
55
"PO-Revision-Date: \n"
66
"Last-Translator: \n"
77
"Language-Team: BEdita I18N & I10N Team \n"
@@ -358,6 +358,12 @@ msgstr ""
358358
msgid "History"
359359
msgstr ""
360360

361+
msgid "ID"
362+
msgstr ""
363+
364+
msgid "ID or uname"
365+
msgstr ""
366+
361367
msgid "Id"
362368
msgstr ""
363369

@@ -766,9 +772,6 @@ msgstr ""
766772
msgid "Temporary folder missing"
767773
msgstr ""
768774

769-
msgid "The main language is"
770-
msgstr ""
771-
772775
msgid "The thumbnail is not available"
773776
msgstr ""
774777

@@ -1073,6 +1076,9 @@ msgstr ""
10731076
msgid "There are unsaved changes, are you sure you want to leave page?"
10741077
msgstr ""
10751078

1079+
msgid "Add placeholder"
1080+
msgstr ""
1081+
10761082
#, javascript-format
10771083
msgid "Do you confirm the deletion of ${ number } item from the trash?"
10781084
msgstr ""
@@ -1182,6 +1188,9 @@ msgstr ""
11821188
msgid "Items"
11831189
msgstr ""
11841190

1191+
msgid "NULL"
1192+
msgstr ""
1193+
11851194
msgid "Search text too short. Minimum length is 3. Retry"
11861195
msgstr ""
11871196

@@ -1368,6 +1377,9 @@ msgstr ""
13681377
msgid "add new"
13691378
msgstr ""
13701379

1380+
msgid "The main language is"
1381+
msgstr ""
1382+
13711383
msgid "Completed on"
13721384
msgstr ""
13731385

locales/it_IT/default.po

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: BEdita Manager \n"
4-
"POT-Creation-Date: 2023-12-15 11:11:26 \n"
4+
"POT-Creation-Date: 2024-02-26 14:54:49 \n"
55
"PO-Revision-Date: \n"
66
"Last-Translator: \n"
77
"Language-Team: BEdita I18N & I10N Team \n"
@@ -360,6 +360,12 @@ msgstr "Nascosto"
360360
msgid "History"
361361
msgstr "Cronologia modifiche"
362362

363+
msgid "ID"
364+
msgstr ""
365+
366+
msgid "ID or uname"
367+
msgstr "ID o nome univoco"
368+
363369
msgid "Id"
364370
msgstr ""
365371

@@ -771,9 +777,6 @@ msgstr "Tag"
771777
msgid "Temporary folder missing"
772778
msgstr "Cartella temporanea mancante"
773779

774-
msgid "The main language is"
775-
msgstr "La lingua principale è"
776-
777780
msgid "The thumbnail is not available"
778781
msgstr "La miniatura non è disponibile"
779782

@@ -1079,6 +1082,9 @@ msgstr "sì, prosegui"
10791082
msgid "There are unsaved changes, are you sure you want to leave page?"
10801083
msgstr "Ci sono delle modifiche non salvate, vuoi comunque lasciare la pagina?"
10811084

1085+
msgid "Add placeholder"
1086+
msgstr "Aggiungi placeholder"
1087+
10821088
#, javascript-format
10831089
msgid "Do you confirm the deletion of ${ number } item from the trash?"
10841090
msgstr "Confermi la cancellazione di ${ number } elementi dal cestino?"
@@ -1194,6 +1200,9 @@ msgstr "Invia mail a"
11941200
msgid "Items"
11951201
msgstr "Elementi"
11961202

1203+
msgid "NULL"
1204+
msgstr ""
1205+
11971206
msgid "Search text too short. Minimum length is 3. Retry"
11981207
msgstr "Testo troppo breve. Lunghezza minima 3 caratteri. Riprova"
11991208

@@ -1380,6 +1389,9 @@ msgstr ""
13801389
msgid "add new"
13811390
msgstr "aggiungi nuovo"
13821391

1392+
msgid "The main language is"
1393+
msgstr "La lingua principale è"
1394+
13831395
msgid "Completed on"
13841396
msgstr "Completato il"
13851397

resources/js/app/pages/dashboard/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default {
1414

1515
data() {
1616
return {
17+
searchId: '',
1718
searchString: '',
1819
};
1920
},
@@ -38,7 +39,12 @@ export default {
3839
break;
3940
}
4041
},
41-
42+
goToID() {
43+
if (!this.searchId) {
44+
return;
45+
}
46+
window.location.href = `${BEDITA.base}/view/${this.searchId}`;
47+
},
4248
searchObjects() {
4349
if (this.searchString) {
4450
this.$refs.searchSubmit.classList.add('is-loading-spinner');

templates/Pages/Dashboard/index.twig

+8
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,15 @@
7070
{{ __('Search') }}
7171
</button>
7272
</nav>
73+
</section>
7374

75+
<section class="dashboard-section">
76+
<div>
77+
<input type="text" placeholder="{{ __('ID or uname') }}" v-model="searchId">
78+
<button @click.prevent="goToID()" :disabled="!searchId">
79+
{{ __('ID') }}
80+
</button>
81+
</div>
7482
</section>
7583

7684
<div class="dashboard-area">

0 commit comments

Comments
 (0)