File tree Expand file tree Collapse file tree 1 file changed +34
-28
lines changed
assets/components/LogViewer Expand file tree Collapse file tree 1 file changed +34
-28
lines changed Original file line number Diff line number Diff line change 2222 </div >
2323 </label >
2424 </section >
25- <table class =" table table-zebra table-pin-rows table-md" v-if =" !evaluating && isReady" >
26- <thead >
27- <tr >
28- <th v-for =" column in columns" :key =" column" >{{ column }}</th >
29- </tr >
30- </thead >
31- <tbody >
32- <tr v-for =" row in page" :key =" row" >
33- <td v-for =" column in columns" :key =" column" >{{ row[column] }}</td >
34- </tr >
35- </tbody >
36- </table >
37- <table class =" table table-md animate-pulse" v-else >
38- <thead >
39- <tr >
40- <th v-for =" _ in 3" >
41- <div class =" h-4 w-20 animate-pulse bg-base-content/50 opacity-50" ></div >
42- </th >
43- </tr >
44- </thead >
45- <tbody >
46- <tr v-for =" _ in 9" >
47- <td v-for =" _ in 3" >
48- <div class =" h-4 w-20 bg-base-content/50 opacity-20" ></div >
49- </td >
50- </tr >
51- </tbody >
52- </table >
25+
26+ <DefineTable >
27+ <table class =" table table-zebra table-pin-rows table-md" v-if =" !evaluating && isReady" >
28+ <thead >
29+ <tr >
30+ <th v-for =" column in columns" :key =" column" >{{ column }}</th >
31+ </tr >
32+ </thead >
33+ <tbody >
34+ <tr v-for =" row in page" :key =" row" >
35+ <td v-for =" column in columns" :key =" column" >{{ row[column] }}</td >
36+ </tr >
37+ </tbody >
38+ </table >
39+ <table class =" table table-md animate-pulse" v-else >
40+ <thead >
41+ <tr >
42+ <th v-for =" _ in 3" >
43+ <div class =" h-4 w-20 animate-pulse bg-base-content/50 opacity-50" ></div >
44+ </th >
45+ </tr >
46+ </thead >
47+ <tbody >
48+ <tr v-for =" _ in 9" >
49+ <td v-for =" _ in 3" >
50+ <div class =" h-4 w-20 bg-base-content/50 opacity-20" ></div >
51+ </td >
52+ </tr >
53+ </tbody >
54+ </table >
55+ </DefineTable >
56+ <UseTable />
5357 </div >
5458 </aside >
5559</template >
@@ -63,6 +67,8 @@ const debouncedQuery = debouncedRef(query, 500);
6367const evaluating = ref (false );
6468const pageLimit = 1000 ;
6569
70+ const [DefineTable, UseTable] = createReusableTemplate ();
71+
6672const url = withBase (
6773 ` /api/hosts/${container .host }/containers/${container .id }/logs?stdout=1&stderr=1&everything&jsonOnly ` ,
6874);
You can’t perform that action at this time.
0 commit comments