Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ny teknisk plattform: MDX, Algolia-søk, og innlogging #158

Merged
merged 67 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift click to select a range
83890e9
feat: adds mdx support
mikaelbr Jan 4, 2022
a842ed4
feat: changes to manual mdx pages
mikaelbr Jan 5, 2022
1e1a4fd
feat: use mdx as part of pages
mikaelbr Jan 7, 2022
12ec55c
removes unused code
mikaelbr Jan 7, 2022
eed29be
feat: adds auto injection of layout
mikaelbr Jan 12, 2022
16a0420
fix: comment on module
mikaelbr Jan 12, 2022
22b2f5c
feat: adds ability to do getServerSideProps for mdx files
mikaelbr Jan 12, 2022
89dab69
fix: remove log statement
mikaelbr Jan 12, 2022
4590b55
feat: adds ability to optionally login
mikaelbr Jan 12, 2022
0c63dac
feat: adds departure component
mikaelbr Jan 12, 2022
39da009
adds component for departure group
mikaelbr Jan 14, 2022
0359768
removes unused variable
mikaelbr Jan 31, 2022
1f0c476
init searchyness
mikaelbr Feb 3, 2022
cc4c644
refactor to indexer module
mikaelbr Feb 7, 2022
1b2926f
adds tree tools and attribute handling
mikaelbr Feb 7, 2022
36a12ea
adds indexing
mikaelbr Feb 7, 2022
0ee9fd8
feat: adds gray matter to index and clear on system for reindexing
mikaelbr Feb 8, 2022
107f8a9
feat: adds initial search
mikaelbr Feb 8, 2022
81efeef
fix: adds spacing to text indexing
mikaelbr Feb 8, 2022
4648455
fix: makes h3 linkable
mikaelbr Feb 8, 2022
e1def6f
feat: adds gh actions for indexing
mikaelbr Feb 8, 2022
3902f33
fix: better gh action\
mikaelbr Feb 8, 2022
421424f
temp pr
mikaelbr Feb 8, 2022
d8b4d07
temp pr
mikaelbr Feb 8, 2022
4ce50ab
fix only index on master
mikaelbr Feb 8, 2022
4c80172
feat: adds refinements to search
mikaelbr Feb 14, 2022
92c6cd1
fix: remove duplication search
mikaelbr Feb 25, 2022
87298c4
fix: sort by with types
mikaelbr Feb 25, 2022
1c18f5b
feat: adds support for departure on graymatter level
mikaelbr Mar 14, 2022
37aafcb
changes bergen to mdx
mikaelbr Mar 14, 2022
667c509
moves signin to sidebar
mikaelbr Mar 14, 2022
b1f4b02
updates search input design and login inputs
mikaelbr Mar 15, 2022
78169cb
adds department tabbar style and uu
mikaelbr Mar 15, 2022
5ed6221
adds initial design for search page
mikaelbr Mar 15, 2022
7373bbd
adds specific department faktura email
mikaelbr Mar 15, 2022
11bf75b
removes test department tabbar
mikaelbr Mar 15, 2022
50704e7
adds bergen to metadata
mikaelbr Mar 15, 2022
b103eb3
removes unused imports
mikaelbr Mar 15, 2022
f3e201b
Update search-index/index.mjs
mikaelbr Mar 17, 2022
0aee885
fix: issue with encoded uri
mikaelbr Mar 28, 2022
e962223
feat: adds anchor tags to h2/h3
mikaelbr Mar 28, 2022
2d42d63
chore: removes old redirects
mikaelbr Mar 28, 2022
b896dbd
refactor: removes unused code
mikaelbr Mar 28, 2022
55b0d0d
refactor: renames meta to frontmatter
mikaelbr Mar 28, 2022
8f2517a
refactor: updates to use variant common prettier config
mikaelbr Mar 28, 2022
960a6f9
fix: remove reset button from search
mikaelbr Mar 28, 2022
34ba9bc
Merge branch 'main' into v3
mikaelbr Oct 15, 2022
f55e181
fix: linkable for frontpage
mikaelbr Oct 15, 2022
4917d5e
chore: updates all dependencies
mikaelbr Oct 15, 2022
dfe7095
chore: gitignores next-env.d.ts
mikaelbr Oct 15, 2022
4d7274e
fix: login for new azure impl
mikaelbr Oct 15, 2022
809bb2c
docs: adds docs on env vars
mikaelbr Oct 15, 2022
16795fd
fix: typing issues
mikaelbr Oct 15, 2022
b89b040
fix: indexing from ast
mikaelbr Oct 15, 2022
9d8232a
fix: upgrades instasearch to ssr
mikaelbr Oct 16, 2022
3c2b324
fix: tweaks style search site
mikaelbr Oct 16, 2022
2abb215
fix: searchbox
mikaelbr Oct 16, 2022
7da599b
feat: adds search box to frontpage
mikaelbr Oct 16, 2022
bb67a07
feat: adds production-build script
mikaelbr Oct 16, 2022
b52a60b
ci: adds production-build with indexing
mikaelbr Oct 16, 2022
852c2cc
fix: sidebar navigation mobile
mikaelbr Oct 17, 2022
190a962
fix: adds config for font loading
mikaelbr Oct 17, 2022
0467f0d
fix: adds fallback department getter
mikaelbr Oct 17, 2022
72c0383
fix: better fallback when missing department
mikaelbr Oct 17, 2022
51af23d
fix: better phone department selector
mikaelbr Oct 17, 2022
2240bb0
fix: padding refinement list
mikaelbr Oct 18, 2022
6ebf7fb
refactor: reduce nested if clauses
mikaelbr Oct 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: sort by with types
  • Loading branch information
mikaelbr committed Mar 14, 2022
commit 87298c441e749a08df11c05d1959a18e856743c3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 37,10 @@
"@mdx-js/loader": "^2.0.0-rc.2",
"@mdx-js/mdx": "2.0.0-next.9",
"@mdx-js/react": "^2.0.0-rc.2",
"@pabra/sortby": "^1.0.2",
"@variant/profile": "^3.0.1",
"gray-matter": "^4.0.3",
"hamburger-react": "^2.4.1",
"lodash.sortby": "^4.7.0",
"next": "^12.0.7",
"next-auth": "^4.1.0",
"next-images": "^1.8.4",
Expand Down
4 changes: 2 additions & 2 deletions pages/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 16,7 @@ import style from "src/search/search.module.css";
import Link from "next/link";
import { useRouter } from "next/router";
import qs from "qs";
import sortBy from "lodash.sortBy";
import { by } from "@pabra/sortby";

const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID || "";
const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_READ_KEY || "";
Expand Down Expand Up @@ -47,7 47,7 @@ export default function Search() {
<ClearRefinements />
<RefinementList
attribute="department"
transformItems={(items: any[]) => sortBy(items, "label")}
transformItems={(items: any[]) => items.sort(by("label"))}
/>
<Configure hitsPerPage={8} />
<SearchBox autoFocus />
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 398,11 @@
"@nodelib/fs.scandir" "2.1.3"
fastq "^1.6.0"

"@pabra/sortby@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@pabra/sortby/-/sortby-1.0.2.tgz#9ef674da9e5048bbe6a08217ce0dede5411cdfc9"
integrity sha512-gT4DWbGLlkctE5TwRT6/gZzHiVil1Ywg7FF5OmIilZbGCZqdYpbz98L2bqfhglwK3kj4fBZRMSCtzrjQ6J8jAw==

"@panva/hkdf@^1.0.1":
version "1.0.1"
resolved "https://registry.npmjs.org/@panva/hkdf/-/hkdf-1.0.1.tgz"
Expand Down