File tree 3 files changed +26
-5
lines changed
3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 31
31
- name : Add rust analyzer
32
32
run : rustup component add rust-analyzer
33
33
- name : Run indexing
34
- run : QDRANT_URL=${{ secrets.QDRANT_URL }} QDRANT_API_KEY=${{ secrets.QDRANT_API_KEY }} bash -x tools/index_qdrant .sh
34
+ run : QDRANT_URL=${{ secrets.QDRANT_URL }} QDRANT_API_KEY=${{ secrets.QDRANT_API_KEY }} bash -x tools/download_and_index .sh
Original file line number Diff line number Diff line change 3
3
<div class =" q-pa-md q-col-gutter-sm items-stretch" >
4
4
<div class =" row justify-evenly" >
5
5
<div class =" col-8" >
6
- <h2 >Source Code Search</h2 >
6
+ <h2 >Semantic Code Search</h2 >
7
7
</div >
8
8
</div >
9
9
37
37
</q-list >
38
38
</div >
39
39
</div >
40
+ <div class =" row justify-evenly" >
41
+ <div class =" col-10" >
42
+ Try this:
43
+ <q-chip v-for =" example in examples" v-bind:key =" example" square clickable @click =" useSample(example)"
44
+ color =" primary" text-color =" primary" icon =" input" outline >
45
+ {{ example }}
46
+ </q-chip >
47
+ </div >
48
+ </div >
49
+
50
+
40
51
<div class =" row justify-evenly" >
41
52
<div class =" col-10" >
42
53
<q-list class =" q-pa-xs q-margin-md" separator >
60
71
</div >
61
72
</div >
62
73
</div >
63
- </q-page >
74
+ </q-page >
64
75
</template >
65
76
66
77
<script >
@@ -96,16 +107,25 @@ export default defineComponent({
96
107
data : () => ({
97
108
query: " " ,
98
109
loading: false ,
99
- results: fakeData ,
110
+ results: [] ,
100
111
showResults: true ,
101
112
showQuickResults: false ,
113
+ examples: [
114
+ " cardinality of should request" ,
115
+ " geo condition filter" ,
116
+ " flush WAL"
117
+ ]
102
118
}),
103
119
104
120
created () {
105
121
// hljs.highlightAll();
106
122
},
107
123
108
124
methods: {
125
+ async useSample (sample ) {
126
+ this .query = sample;
127
+ await this .search ();
128
+ },
109
129
async search () {
110
130
try {
111
131
this .loading = true ;
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ const routes = [
4
4
path : '/' ,
5
5
component : ( ) => import ( 'layouts/MainLayout.vue' ) ,
6
6
children : [
7
- { path : '' , component : ( ) => import ( 'pages/IndexPage.vue' ) }
7
+ { path : '' , component : ( ) => import ( 'pages/IndexPage.vue' ) } ,
8
+ { path : 'about' , component : ( ) => import ( 'src/pages/AboutPage.vue' ) } ,
8
9
]
9
10
} ,
10
11
You can’t perform that action at this time.
0 commit comments