-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add title search (TT-1560) (#5)
Bruker tittelindeks fra bikube til søk. Ruter til ny side vha. tittel-id. Litt småtjafs: * Grunnet [en irriterende bug i Autocomplete-komponenten i v2.3.x](heroui-inc/heroui#2849) i NextUI har jeg brukt v2.2.10 * Følgende måtte jeg legge til `allowsEmptyCollection={false}` og `onKeyDown={e => { if ('continuePropagation' in e) { e.continuePropagation(); } }}` for å unngå error-spam i console Når buggen er fikset kan vi nok fint oppgradere igjen og fjerne de ekstra propertiene som ble lagt på her.
- Loading branch information
1 parent
6fa098f
commit fbd9626
Showing
22 changed files
with
3,893 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BASE_PATH=/hugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BASE_PATH=/hugin | ||
CATALOGUE_API_PATH=http://localhost:8087/bikube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,22 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
## Hugin | ||
|
||
## Getting Started | ||
|
||
First, run the development server: | ||
Hugin er en applikasjon for fysisk mottak av aviser. | ||
|
||
### Lokalt oppsett | ||
For å kjøre lokalt må du sette de nødvendige miljøvariablene: | ||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
# or | ||
bun dev | ||
cp .env.example .env.local | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
| Variabelnavn | Standardverdi | Beskrivelse | | ||
|--------------------|------------------------------|----------------------------------------------------------------------------------------------------------------------| | ||
| BASE_PATH | /hugin | Base path for applikasjonen | | ||
| CATALOGUE_API_PATH | http://localhost:8087/bikube | Sti til [katalog APIet ](https://github.com/NationalLibraryOfNorway/bikube)<br/>Må starte med http:// eller https:// | | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
|
||
## Deploy on Vercel | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. | ||
Deretter kan du kjøre følgende kommandoer: | ||
```bash | ||
npm install | ||
npm run dev | ||
``` | ||
Applikasjonen finner du nå i nettleseren på [http://localhost:3000/hugin](http://localhost:3000/hugin). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.