Compare commits
2
Commits
5d146aaf3f
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0b6c23068 | ||
|
|
8f7b9a1a87 |
@@ -15,6 +15,9 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
@@ -25,9 +28,10 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and Push Docker image -- finn-board
|
- name: Build and push multi-arch Docker image
|
||||||
uses: docker/build-push-action@675965c0e16f1a0f94ecafff969d8c966f92c17b
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: git.joshuacoles.me/joshuacoles/obsidian-note-finder:latest
|
tags: git.joshuacoles.me/${{ github.repository }}:${{ github.sha }},git.joshuacoles.me/${{ github.repository }}:latest
|
||||||
|
|||||||
+2
-2
@@ -33,7 +33,7 @@ export function OmnisearchSelect({setSelected}: {
|
|||||||
initialData: [],
|
initialData: [],
|
||||||
refetchInterval: false,
|
refetchInterval: false,
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const response = await fetch("http://localhost:9002/metadata")
|
const response = await fetch("/metadata")
|
||||||
const fullData: any[] = await response.json();
|
const fullData: any[] = await response.json();
|
||||||
return fullData;
|
return fullData;
|
||||||
},
|
},
|
||||||
@@ -49,7 +49,7 @@ export function OmnisearchSelect({setSelected}: {
|
|||||||
if (query === '') {
|
if (query === '') {
|
||||||
return [];
|
return [];
|
||||||
} else {
|
} else {
|
||||||
const response = await fetch(`http://localhost:9002/search?q=${query}`)
|
const response = await fetch(`/search?q=${query}`)
|
||||||
const fullData: ResultNoteApi[] = await response.json();
|
const fullData: ResultNoteApi[] = await response.json();
|
||||||
|
|
||||||
return fullData;
|
return fullData;
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ export function NaiveSelect({setSelected}: {
|
|||||||
queryKey: ['obsidian-metadata'],
|
queryKey: ['obsidian-metadata'],
|
||||||
initialData: [],
|
initialData: [],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const response = await fetch("http://localhost:9002/metadata")
|
const response = await fetch("/metadata")
|
||||||
const fullData: any[] = await response.json();
|
const fullData: any[] = await response.json();
|
||||||
|
|
||||||
return R.sortBy(v => -(v.data.backlinks?.length ?? 0), fullData.map(md => ({
|
return R.sortBy(v => -(v.data.backlinks?.length ?? 0), fullData.map(md => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user