Commit graph

56 commits

Author SHA1 Message Date
Peder Bergebakken Sundt 12e7174057
Packages.elm: add missing newline to 'nix-env' tab (#799)
Some checks failed
Build flake-info / build-flake-info (push) Failing after 13s
Frontend: Build & Deploy to Netlify / build-and-deploy (push) Failing after 6s
2024-06-16 19:29:27 +02:00
Janne Heß c4b2a854e7
frontend: Show nixpkgs tree instead of commit (#794)
Some checks failed
Build flake-info / build-flake-info (push) Failing after 12s
Frontend: Build & Deploy to Netlify / build-and-deploy (push) Failing after 7s
2024-06-11 23:32:39 +02:00
Janne Heß 01ce288a54
frontend: Optimize production builds (#795) 2024-06-11 23:32:06 +02:00
Janne Heß 61302d7112
frontend: Fix magnifying glass position and font (#796) 2024-06-11 23:31:45 +02:00
Janne Heß 120d91e751
frontend: Show current nixpkgs commit (#791) 2024-06-10 11:34:21 +02:00
Janne Heß cf2fd8e388
frontend: Proxy prod backend for local development (#789) 2024-06-10 11:09:31 +02:00
Janne Heß 192553f6ae
frontend: Add global ^K and / shortcuts (#787)
Closes https://github.com/NixOS/nixos-search/issues/762
2024-06-10 11:03:29 +02:00
Samuel Ainsworth c2ecdba5e0
Packages.elm: add nix profile install nixpkgs#foo directions (#720)
Per https://github.com/DeterminateSystems/nix-installer/issues/511#issuecomment-1588399915, `nix profile install nixpkgs#foo` is apparently the new and improved way to install things on channel-less nix installations.

Co-authored-by: Rok Garbas <rok@garbas.si>
2024-06-07 10:00:23 +02:00
Maciej Krüger 85b6cbc291
frontend: Suggest nix profile install for flakes installation (#757)
This makes more sense than having nix build, which doesn't really install things

Co-authored-by: Rok Garbas <rok@garbas.si>
2024-06-07 09:59:47 +02:00
Zebreus f9ba9f9787
Fix favicon and glyphicons (#744)
* Fix missing icons

* Fix favicon and outdated link
2024-06-07 09:58:56 +02:00
Aleksana 2758f7657a
fix: wording when a package has no platforms list (#774) 2024-06-06 12:00:43 -04:00
wh0 039bd5cf0a
frontend: sort platforms (#752)
Co-authored-by: w <none>
2024-06-05 23:37:51 +02:00
Janne Heß 4034cb69f5
frontend: Remove stray bonsai reference (#777)
We still use Bonsai, but we proxy it now so the message is misleading
since the browser doesn't actually try to access bonsai.
2024-06-05 17:33:20 +02:00
uncenter 0c66259182
fix: center magnifying glass / search icon (#764) 2024-05-02 17:36:23 +02:00
uncenter 8fe7d9e261
fix: remove filter on header logo (#765) 2024-05-02 17:35:49 +02:00
tomberek 7bdc02cc99
chore: bump package count (#756) 2024-04-16 00:35:59 -04:00
北雁 Cryolitia 92a9c0a82b
fix: code block in long description of a package in dark mode (#754) 2024-04-10 08:15:36 +02:00
Zebreus e0d3167c42
Fix missing assets (#742) 2024-03-13 01:10:48 +01:00
Zebreus b8edfd2364
Improve dark theme (#733)
* Fix unreadable hovered link color in dark theme

* Tone down text color

* Make search result titles look like links

* Tone down search result title color

* Give the dark theme headerbar a distinct color

* Adjust background color for sort dropdown
2024-03-07 00:18:56 +01:00
Zebreus ff62e2b296
Add dark theme (#730) 2024-03-04 23:30:47 +01:00
Naïm Favier d8a2c52c64
frontend: fixup for empty queries 2023-06-11 13:06:27 +02:00
Naïm Favier c98b1e3685
frontend: show query in title (#662)
Fixes https://github.com/NixOS/nixos-search/issues/661
2023-06-11 13:02:41 +02:00
Naïm Favier dff23cf9c6
IPv6. (#656)
Bonsai doesn't support IPv6, so use Netlify as a proxy.
2023-05-21 17:24:43 +02:00
Marco Daniel Martins 0498effc41
Cleanup unused frontend code (#653)
* frontend: remove unnecessary imports & js files

* frontend: cleanup code with elm-review - remove unused code

* frontend: remove duplicate viewport
2023-05-04 14:51:19 +02:00
Marco Daniel Martins 0d663f27fa
Accessibility fixes (#651)
* frontend: fix critical accessibility issues, logo alt and language

* frontend: use buttons for pagination, override bootstrap for accessibility

* frontend: heading elements in sequential order

* frontend: override badge contrast ratio

* frontend: fix import

* frontend: fixup

---------

Co-authored-by: Naïm Favier <n@monade.li>
2023-04-27 21:43:27 +02:00
Marco Daniel Martins 1ecb696edd
Improve search results with underscore and dash/hyphen package names (#649)
* Create underscore & dash separated variants for wildcard search

* frontend: simplify list uniqueness

---------

Co-authored-by: Naïm Favier <n@monade.li>
2023-04-25 17:07:49 +02:00
Aroun 95f0433225
Follow title convention for package requests (#639) 2023-03-30 00:48:37 +02:00
github-actions[bot] af6a59015c
flake.lock: Update (#606)
* flake.lock: Update

Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
  → 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
• Updated input 'nixos-org-configurations':
    'github:NixOS/nixos-org-configurations/3ce43a1fb5181a0e33b1f67d36fa0f3affa6bc6c' (2023-01-24)
  → 'github:NixOS/nixos-org-configurations/48c9b1cff22edd2a7342eb0ff7034dcad3d99e38' (2023-03-16)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c07552f6f7d4eead7806645ec03f7f1eb71ba6bd' (2023-01-10)
  → 'github:NixOS/nixpkgs/ac718d02867a84b42522a0ece52d841188208f2c' (2023-03-15)
• Updated input 'npmlock2nix':
    'github:nix-community/npmlock2nix/eeed152290ec2425f96c5e74e469c40b621e1468' (2022-10-22)
  → 'github:nix-community/npmlock2nix/9197bbf397d76059a76310523d45df10d2e4ca81' (2023-01-11)

* use v1 api

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rok Garbas <rok@floxdev.com>
2023-03-27 09:01:04 +02:00
Valentin Gagarin 3a42ce9545
move programs to the top of the metadata display (#620)
* move programs to the top of the metadata display

rename to "programs provided", since where they are provided
is an implementation detail irrelevant to users of `nix-shell -p`.

* Fix CSS

---------

Co-authored-by: Naïm Favier <n@monade.li>
2023-02-16 10:18:09 +01:00
Valentin Gagarin ad5fab6ce5
refine the warning on using nix-env (#619)
* refine the warning on using `nix-env`

also highlight the command name

* Format

---------

Co-authored-by: Naïm Favier <n@monade.li>
2023-02-16 10:00:06 +01:00
Naïm Favier dff4ba7132
Search programs provided by a package (#610)
* Search programs provided by a package

Use the `programs.sqlite` database provided with nixpkgs channels to
populate a `package_programs` field so that searches for e.g. `make` return
`gnumake` with a higher priority.

* Bump VERSION

* frontend: show programs
2023-02-07 16:31:17 +01:00
Massolari 95b7e40c55
Rename "Options" link to "NixOS Options" (#596)
Co-authored-by: Naïm Favier <n@monade.li>
Fixes https://github.com/NixOS/nixos-search/issues/426
2023-01-27 18:58:25 +01:00
Naïm Favier a7ac1d8e8c
frontend: reset from and buckets when changing pages (#595)
Co-authored-by: Rok Garbas <rok@garbas.si>
2023-01-27 18:49:55 +01:00
sem pruijs 1d9fac3a57
Improve accessibility for screenreader users (#593)
Co-authored-by: Naïm Favier <n@monade.li>
2023-01-06 16:43:26 +01:00
Naïm Favier d04f341a5d
Use path_hierarchy tokenizer for attr paths (#584) 2022-12-23 13:39:45 +01:00
Naïm Favier 4bea45b150
Remove reverse fields (#579) 2022-12-06 23:58:51 +01:00
Naïm Favier 9a20bad5e1
Make wildcard search case-insensitive (#559)
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html#wildcard-query-field-params
2022-11-04 13:27:13 +01:00
Naïm Favier cf23c13a17
Make search query default to show if given (#561)
This allows for shorter permalinks for displaying a given package.
2022-11-04 13:22:52 +01:00
Naïm Favier 5bbe885b62
Do not restore from and size from the previous model (#562) 2022-11-04 12:06:19 +01:00
Rok Garbas 515d60601b
Fix netlify problem introduces in #532 (#557) 2022-11-03 23:44:19 +01:00
github-actions[bot] 84ce7fdf52
Update npm dependencies (also flake.lock: Update) (#532)
* flake.lock: Update

Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07)
  → 'github:numtide/flake-utils/6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817' (2022-10-29)
• Updated input 'nixos-org-configurations':
    'github:NixOS/nixos-org-configurations/569797100aac69780a12542c2143bb741380d4ec' (2022-08-17)
  → 'github:NixOS/nixos-org-configurations/cebfd15c30724cadacf85b5fd950dc1070c4eb7d' (2022-10-26)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f3d0897be466aa09a37f6bf59e62c360c3f9a6cc' (2022-08-25)
  → 'github:NixOS/nixpkgs/448a599c49978c2794401bfc3a2e1fba1a8663be' (2022-10-28)

* Switch from yarn to npm for frontend

also update all the npm dependencies

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rok Garbas <rok@garbas.si>
2022-11-03 22:26:58 +01:00
Rok Garbas 4bc2ea9d05
Switch to new cluster with elasticsearch 7.10 (#556) 2022-11-03 10:56:05 +01:00
Naïm Favier 474dbedd9b
Make wildcard search respect case (#538) 2022-11-02 15:21:49 +01:00
Naïm Favier ba0b05b998
Render Markdown in option docs for flakes and longDescription (#539) 2022-10-28 15:49:15 +02:00
MatthewCroughan a76f3f779c
Show nix-shell instructions first instead of NixOS Configuration (#526) 2022-08-29 13:23:49 +02:00
Naïm Favier d94c60ca12
frontend: remove trailing whitespace in installation instructions (#522) 2022-08-25 18:33:15 +02:00
Philip Munksgaard 9e5f095369
Add support for sourcehut links (#517)
* Add support for SourceHut flakes

* Update flake-info/README.md

Co-authored-by: Naïm Favier <n@monade.li>

Co-authored-by: Naïm Favier <n@monade.li>
2022-08-23 14:42:06 +02:00
MatthewCroughan f504a9fdd7
encourage NixOS configuration, nix-shell and discourage nix-env (#514)
Co-authored-by: Naïm Favier <n@monade.li>
2022-08-11 15:35:57 +02:00
Robert Hensing 1faac2eeb6
Remove Loading from title (#507)
It used to show up in discourse links, looking silly.

"Loading" didn't really add information. If it loads slowly or not
at all, the result will be quite obvious, and often the bit that
says "Loading" doesn't even fit in the browser tab label.
2022-08-02 22:09:34 +02:00
erikarvstedt 0453790a74
Flakes search: Include flake name (#499) 2022-07-28 15:11:00 +02:00