File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,34 @@ Sample config.json (same data as saved in localStorage of the browser).
6666 "protocol" : " https" ,
6767 "path" : " " ,
6868 "tls" : true
69- }
69+ },
70+ "history" : [
71+ {
72+ "apiKey" : " abc" ,
73+ "node" : {
74+ "host" : " anotherhost" ,
75+ "port" : " 80" ,
76+ "protocol" : " http" ,
77+ "path" : " " ,
78+ "tls" : false
79+ }
80+ },
81+ {
82+ "apiKey" : " def" ,
83+ "node" : {
84+ "host" : " yetanotherhost" ,
85+ "port" : " 8080" ,
86+ "protocol" : " http" ,
87+ "path" : " " ,
88+ "tls" : true
89+ }
90+ }
91+ ]
7092}
7193```
7294
95+ The ` history ` is used to populate the client history to act as bookmarks.
96+
7397### Desktop
7498
7599With the desktop application everything except instant search will work without cors.
Original file line number Diff line number Diff line change 11{
22 "name" : " typesense-dashboard" ,
3- "version" : " 2.0.2 " ,
3+ "version" : " 2.0.3 " ,
44 "description" : " A Typesense Dashboard to manage and browse collections." ,
55 "productName" : " Typesense-Dashboard" ,
66 "author" : " Boris Fritscher <boris@fritscher.ch>" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineBoot } from '#q-app/wrappers';
22import axios from 'axios' ;
33import { Platform } from 'quasar' ;
44import { useNodeStore } from 'src/stores/node' ;
5+ import type { NodeLoginDataInterface } from 'src/stores/node' ;
56
67export default defineBoot ( ( { store } ) => {
78 if ( Platform . is . electron ) {
@@ -12,5 +13,13 @@ export default defineBoot(({ store }) => {
1213 if ( response . data && response . data . apiKey ) {
1314 nodeStore . login ( response . data ) ;
1415 }
16+ if ( response . data && response . data . history ) {
17+ response . data . history . forEach ( ( historyItem : NodeLoginDataInterface ) => {
18+ const historyJson = JSON . stringify ( historyItem ) ;
19+ if ( ! nodeStore . loginHistory . includes ( historyJson ) ) {
20+ nodeStore . loginHistory . push ( historyJson ) ;
21+ }
22+ } ) ;
23+ }
1524 } ) ;
1625} ) ;
You can’t perform that action at this time.
0 commit comments