Skip to content

Commit 24521c7

Browse files
committed
fix CI
1 parent 6eda33d commit 24521c7

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

.github/workflows/index-latest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
- name: Add rust analyzer
3232
run: rustup component add rust-analyzer
3333
- 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

frontend/src/pages/IndexPage.vue

+23-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="q-pa-md q-col-gutter-sm items-stretch">
44
<div class="row justify-evenly">
55
<div class="col-8">
6-
<h2>Source Code Search</h2>
6+
<h2>Semantic Code Search</h2>
77
</div>
88
</div>
99

@@ -37,6 +37,17 @@
3737
</q-list>
3838
</div>
3939
</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+
4051
<div class="row justify-evenly">
4152
<div class="col-10">
4253
<q-list class="q-pa-xs q-margin-md" separator>
@@ -60,7 +71,7 @@
6071
</div>
6172
</div>
6273
</div>
63-
</q-page>
74+
</q-page>
6475
</template>
6576

6677
<script>
@@ -96,16 +107,25 @@ export default defineComponent({
96107
data: () => ({
97108
query: "",
98109
loading: false,
99-
results: fakeData,
110+
results: [],
100111
showResults: true,
101112
showQuickResults: false,
113+
examples: [
114+
"cardinality of should request",
115+
"geo condition filter",
116+
"flush WAL"
117+
]
102118
}),
103119
104120
created() {
105121
// hljs.highlightAll();
106122
},
107123
108124
methods: {
125+
async useSample(sample) {
126+
this.query = sample;
127+
await this.search();
128+
},
109129
async search() {
110130
try {
111131
this.loading = true;

frontend/src/router/routes.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const routes = [
44
path: '/',
55
component: () => import('layouts/MainLayout.vue'),
66
children: [
7-
{ path: '', component: () => import('pages/IndexPage.vue') }
7+
{ path: '', component: () => import('pages/IndexPage.vue') },
8+
{ path: 'about', component: () => import('src/pages/AboutPage.vue') },
89
]
910
},
1011

0 commit comments

Comments
 (0)