143 Commits

Author SHA1 Message Date
renovate[bot]
c38715f45c Update dependency vite to v7 2026-02-16 17:34:18 +00:00
dae281efee Add support for multiple filters 2026-02-16 12:33:30 -05:00
3b713ba546 Add label-like css over dealer name 2026-02-16 12:21:15 -05:00
d4634ec3cb Reduce length of title 2026-02-16 10:20:40 -05:00
07db30ce0d Add refresh button 2026-02-16 09:20:29 -05:00
c522b4c3ac Remove deprecated libraries in app.go 2026-02-16 09:00:23 -05:00
faf27839e7 Update slogan 2026-02-15 22:57:57 -05:00
54c5a7f7c5 Swap theme icons 2026-02-15 21:00:38 -05:00
20f294b8d7 Cleanup frontend code 2026-02-15 20:27:12 -05:00
b6d6c23eeb Ensure that filters with spaces in them are decoded properly 2026-02-15 19:03:32 -05:00
fb9f52cfc6 Fix theme persistence bug 2026-02-15 18:46:41 -05:00
816438430e Add ability to sort by score, views and recency 2026-02-15 17:24:17 -05:00
c13bd92c2b Add auto theme toggle 2026-02-14 23:13:12 -05:00
ea871e3fb4 Remove vuetify and add theme toggle button 2026-02-14 23:07:31 -05:00
d523c31953 Move all css to theme.cs 2026-02-14 22:45:34 -05:00
928ee46b9d Add back raw link to deal 2026-02-14 22:18:01 -05:00
ca58af6a57 Switch to a card-based view 2026-02-14 22:04:19 -05:00
640feea592 Fix tooltip positioning 2026-02-14 17:27:15 -05:00
45dfa503aa Remove deal from tooltip 2026-02-14 17:22:34 -05:00
87f98fa8c0 Update colours and fix errors in console 2026-02-14 16:59:42 -05:00
e8dc79f981 Update themes and match system 2026-02-14 16:28:23 -05:00
985519f850 Remove link icon 2026-02-14 09:38:39 -05:00
8c58cd466d Set page size default to 50 2026-02-14 09:29:59 -05:00
61492157c3 Do not show last post time column on mobile 2026-02-14 09:29:23 -05:00
2176a49ce2 Do not show tooltips on mobile 2026-02-14 09:26:18 -05:00
fe616c06c3 Deduplicate deals 2026-02-14 09:22:50 -05:00
a091f0ef0e Add tooltip when hovering over deal 2026-02-14 09:17:20 -05:00
1e69b2b57e Add various performance improvements 2026-02-14 08:44:40 -05:00
renovate[bot]
3c93910723 Update dependency vue to v3.5.28 (#330)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-14 07:54:53 -05:00
renovate[bot]
e2882c2e3a Update dependency axios to v1.13.5 (#329)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-08 11:39:38 -05:00
renovate[bot]
73ea77e935 Update dependency vue-router to v5.0.2 (#328) 2026-02-06 20:45:43 -05:00
renovate[bot]
6bf5cd8e19 Update dependency @babel/core to v7.29.0 (#326)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-05 19:21:38 -05:00
dependabot[bot]
ba0d5c592a Bump webpack from 5.97.1 to 5.105.0 (#327)
Bumps [webpack](https://github.com/webpack/webpack) from 5.97.1 to 5.105.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Changelog](https://github.com/webpack/webpack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack/compare/v5.97.1...v5.105.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-version: 5.105.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-05 19:20:55 -05:00
7a3ff92e06 Update Caddyfile 2026-01-31 15:00:00 -05:00
renovate[bot]
6c0109684c Update dependency vue-router to v5 (#325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-30 20:50:26 -05:00
renovate[bot]
8436524f67 Update dependency vuetify to v3.11.8 (#324)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-30 20:35:05 -05:00
renovate[bot]
f268097e89 Update dependency axios to v1.13.4 (#323)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-30 20:34:52 -05:00
renovate[bot]
f68acccc06 Update dependency axios to v1.13.3 (#322) 2026-01-25 14:26:16 -05:00
renovate[bot]
210898bbc4 Update dependency vue to v3.5.27 (#318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-24 08:20:21 -05:00
renovate[bot]
dfab73666a Update dependency vuetify to v3.11.7 (#319)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-24 08:19:52 -05:00
renovate[bot]
8184d1746f Update docker/dockerfile Docker tag to v1.21 (#321)
* Update docker/dockerfile Docker tag to v1.21

* Update Dockerfile

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dave Gallant <davegallant@proton.me>
2026-01-24 08:19:04 -05:00
renovate[bot]
f78d9d4eda Update dependency core-js to v3.48.0 (#320)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-24 08:18:53 -05:00
renovate[bot]
777b0b02dc Update dependency vite-plugin-vuetify to v2.1.3 (#317)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-23 22:51:07 -05:00
renovate[bot]
f270e0ebfa Update dependency sass-embedded to v1.97.3 (#316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-23 22:50:54 -05:00
dependabot[bot]
15d8223278 Bump lodash from 4.17.21 to 4.17.23 (#315)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-22 08:17:45 -05:00
renovate[bot]
94d5e44768 Update dependency jquery to v4 (#314)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-17 22:15:39 -05:00
renovate[bot]
c0cfeb7897 Update dependency unplugin-vue-components to v31 (#313)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-17 10:06:17 -05:00
renovate[bot]
ecfe0b35c2 Update babel monorepo to v7.28.6 (#312)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-17 10:06:02 -05:00
renovate[bot]
0d9e05b296 Update dependency sass-embedded to v1.97.2 (#311)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-10 08:36:53 -05:00
renovate[bot]
d4bd76f89b Update dependency vuetify to v3.11.6 (#310)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-02 23:22:51 -05:00
76ca6fe575 Update Caddyfile 2026-01-02 20:57:30 -05:00
4039e2f7e8 Update umami dns 2026-01-01 22:42:43 -05:00
dependabot[bot]
70d542c412 Bump qs and express (#309)
Bumps [qs](https://github.com/ljharb/qs) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `qs` from 6.13.0 to 6.14.1
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.13.0...v6.14.1)

Updates `express` from 4.21.2 to 4.22.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/v4.22.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.21.2...v4.22.1)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.14.1
  dependency-type: indirect
- dependency-name: express
  dependency-version: 4.22.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-01 18:09:06 -05:00
renovate[bot]
d882408ba8 Update dependency vuetify to v3.11.5 (#308)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-26 19:55:30 -05:00
renovate[bot]
28dd98b6f1 Update dependency vue to v3.5.26 (#305)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-21 21:52:31 -05:00
renovate[bot]
84df9955af Update dependency vuetify to v3.11.4 (#306)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-20 08:15:38 -05:00
renovate[bot]
ef6227ea4c Update dependency sass-embedded to v1.97.1 (#307)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-20 08:15:24 -05:00
renovate[bot]
42fc4acc53 Update dependency vuetify to v3.11.3 (#303)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 10:08:20 -05:00
renovate[bot]
e3653502d4 Update dependency vue-router to v4.6.4 (#302)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 10:08:12 -05:00
renovate[bot]
425937be0b Update dependency sass-embedded to v1.96.0 (#304)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 10:06:07 -05:00
renovate[bot]
df8aadcace Update dependency vuetify to v3.11.2 (#301) 2025-12-06 00:00:33 -05:00
renovate[bot]
f9be7b3bd5 Update dependency sass-embedded to v1.93.3 (#290)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-29 06:43:06 -05:00
renovate[bot]
481be9282e Update dependency cssnano to v7.1.2 (#289)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-29 06:42:57 -05:00
renovate[bot]
5ae841b999 Update dependency vuetify to v3.11.0 (#291)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-29 06:42:48 -05:00
renovate[bot]
79b0d2e9ed Update dependency axios to v1.13.2 (#292)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-29 06:40:39 -05:00
renovate[bot]
af0662ac84 Update docker/dockerfile Docker tag to v1.20 (#294)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-29 06:40:29 -05:00
renovate[bot]
833232a5ab Update dependency vue to v3.5.25 (#300)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-29 06:40:15 -05:00
dependabot[bot]
d3123c9abf Bump node-forge from 1.3.1 to 1.3.2 (#299)
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.3.1 to 1.3.2.
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-version: 1.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-26 18:21:25 -05:00
renovate[bot]
3adce1c83f Update dependency @fontsource/roboto to v5.2.9 (#298)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-22 20:52:09 -05:00
renovate[bot]
6936785c13 Update actions/checkout action to v6 (#297)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-22 07:41:14 -05:00
renovate[bot]
73cef0c5c3 Update dependency core-js to v3.47.0 (#296)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-22 07:27:12 -05:00
dependabot[bot]
803b642864 Bump js-yaml from 4.1.0 to 4.1.1 (#295)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.0...4.1.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-15 13:47:16 -05:00
renovate[bot]
d9dca2a418 Update dependency vue to v3.5.24 (#293)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-08 16:40:47 -05:00
renovate[bot]
81dd8141f3 Update dependency vuetify to v3.10.7 (#286)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 11:29:54 -04:00
renovate[bot]
424198f140 Update dependency unplugin-vue-components to v30 (#288)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 11:29:42 -04:00
renovate[bot]
e22d427b1f Update babel monorepo to v7.28.5 (#285)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 11:29:33 -04:00
renovate[bot]
2e88601478 Update dependency vite to v6.4.1 [SECURITY] (#284)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 08:01:18 -04:00
renovate[bot]
b95c4aae0a Update dependency sass-embedded to v1.93.2 (#273)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-18 10:35:56 -04:00
renovate[bot]
651d655ddd Update dependency vue-router to v4.6.3 (#282)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-18 10:35:36 -04:00
renovate[bot]
07fcb9abb6 Update dependency vite to v6.4.0 (#281)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-18 10:35:28 -04:00
renovate[bot]
f4f44d2de7 Update dependency vuetify to v3.10.5 (#279)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-10 21:50:45 -04:00
renovate[bot]
8d45ff85cc Update dependency core-js to v3.46.0 (#280)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-10 21:50:20 -04:00
renovate[bot]
7bb29b43ca Update dependency vuetify to v3.10.4 (#277)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-03 23:20:48 -04:00
renovate[bot]
b00974e328 Update docker/dockerfile Docker tag to v1.19 (#278)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-03 23:00:16 -04:00
renovate[bot]
ab2046c714 Update dependency vuetify to v3.10.3 (#276)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-26 21:47:41 -04:00
renovate[bot]
167e8da14d Update dependency vue to v3.5.22 (#275)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-26 21:47:28 -04:00
renovate[bot]
bc5389e01b Update dependency unplugin-vue-components to v29.1.0 (#274)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-20 23:48:36 -04:00
renovate[bot]
1f63e7327b Update dependency vuetify to v3.10.2 (#272)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-19 21:30:56 -04:00
renovate[bot]
2c6a65ffe7 Update dependency @fontsource/roboto to v5.2.8 (#271)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-19 21:30:34 -04:00
renovate[bot]
ce83c19e5d Update dependency axios to v1.12.2 (#270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 13:43:42 -04:00
renovate[bot]
87a82445c2 Update dependency @fontsource/roboto to v5.2.7 (#269)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dave Gallant <davegallant@proton.me>
2025-09-14 01:05:47 -04:00
renovate[bot]
5d2e51cc81 Update dependency vuetify to v3.10.0 (#268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 00:57:43 -04:00
renovate[bot]
a40103768c Update dependency axios to v1.12.1 (#267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 00:57:31 -04:00
dependabot[bot]
b1174f2975 Bump axios from 1.11.0 to 1.12.0 (#266)
Bumps [axios](https://github.com/axios/axios) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.11.0...v1.12.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.12.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-13 14:36:43 -04:00
renovate[bot]
61eb9e117b Update dependency core-js to v3.45.1 (#247)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-10 07:18:31 -04:00
dependabot[bot]
a2c6eeb3c2 Bump vite from 6.3.5 to 6.3.6 (#264)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.5 to 6.3.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.3.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.3.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.3.6
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-10 07:17:44 -04:00
renovate[bot]
a805fa16a9 Update dependency cssnano to v7.1.1 (#248)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 09:03:10 -04:00
renovate[bot]
def4338a2d Update dependency unplugin-vue-components to v29 (#257)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 09:02:52 -04:00
renovate[bot]
9355275ece Update dependency sass-embedded to v1.92.1 (#262)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 09:02:26 -04:00
renovate[bot]
bc73749b75 Update docker/dockerfile Docker tag to v1.18 (#263)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 08:43:29 -04:00
renovate[bot]
2156330f96 Update dependency vuetify to v3.9.7 (#261)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 08:43:20 -04:00
renovate[bot]
c7dc0dba2f Update dependency vue to v3.5.21 (#260)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-05 22:12:57 -04:00
renovate[bot]
f22c8a561b Update babel monorepo to v7.28.4 (#259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-05 22:12:41 -04:00
b29377a962 Hide input details to save space 2025-08-30 08:48:45 -04:00
renovate[bot]
80f650736f Update dependency vue to v3.5.20 (#254)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-29 23:03:21 -04:00
renovate[bot]
48c4162746 Update caddy Docker tag to v2.10.2 (#256)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-29 22:58:51 -04:00
926617056f Cleanup old code 2025-08-29 22:58:09 -04:00
485e04afe2 Fix / hotkey 2025-08-29 22:37:47 -04:00
8bae1c4978 Adjust mobile fonts 2025-08-29 21:45:42 -04:00
ce4396dd0d Use Tokyo night theme 2025-08-29 21:38:54 -04:00
f0e33e6060 Migrate to vuetify and vite (#251) 2025-08-29 20:57:27 -04:00
065c965f00 Update Caddyfile 2025-08-29 17:20:08 -04:00
renovate[bot]
b2bea9a424 Update dependency vue to v3.5.19 (#249)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-23 07:26:13 -04:00
renovate[bot]
1969569143 Update vue-cli monorepo to v5.0.9 (#250)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-23 07:25:51 -04:00
renovate[bot]
286da4cf54 Update actions/checkout action to v5 (#246)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-15 21:35:43 -04:00
renovate[bot]
eebf0478c5 Update dependency @babel/core to v7.28.3 (#245)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-15 21:35:33 -04:00
renovate[bot]
34478e9ede Update dependency core-js to v3.45.0 (#244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-09 18:15:50 -04:00
renovate[bot]
a8dd3a4839 Update dependency vue to v3.5.18 (#243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-26 07:54:19 -04:00
dependabot[bot]
10a6ae4964 Bump axios from 1.10.0 to 1.11.0 (#241)
Bumps [axios](https://github.com/axios/axios) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.11.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-23 20:03:36 -04:00
dependabot[bot]
fcbdf15180 Bump form-data from 4.0.1 to 4.0.4 (#240)
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.1 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.1...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-22 18:48:52 -04:00
renovate[bot]
968a417f60 Update babel monorepo to v7.28.0 (#236)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-19 08:49:36 -04:00
renovate[bot]
05fb199525 Update dependency core-js to v3.44.0 (#237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-19 08:49:26 -04:00
renovate[bot]
9e4a84dbbb Update dependency cssnano to v7.1.0 (#239)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-19 08:49:13 -04:00
dependabot[bot]
665edf0c80 Bump on-headers and compression (#238)
---
updated-dependencies:
- dependency-name: on-headers
  dependency-version: 1.1.0
  dependency-type: indirect
- dependency-name: compression
  dependency-version: 1.8.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-18 15:07:05 -04:00
renovate[bot]
ef7448f02f Update babel monorepo to v7.27.4 (#230)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dave Gallant <davegallant@gmail.com>
2025-06-21 09:30:00 -04:00
renovate[bot]
60dfad2c66 Update dependency vue to v3.5.17 (#231)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-20 21:58:30 -04:00
renovate[bot]
f60dd55178 Update dependency core-js to v3.43.0 (#232)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-20 21:58:21 -04:00
renovate[bot]
e7a47adca5 Update dependency bootstrap to v5.3.7 (#234)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-20 21:42:50 -04:00
renovate[bot]
d54b07172e Update docker/dockerfile Docker tag to v1.17 (#235)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-20 21:42:36 -04:00
f60e4cf1cf Add banner notifying users that rfd.fyi will not be renewed after 2025-08-20 2025-06-19 10:23:33 -04:00
renovate[bot]
d4253ed8e2 Update dependency axios to v1.10.0 (#233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-15 08:13:49 -04:00
renovate[bot]
a0ee6bb6c8 Update docker/dockerfile Docker tag to v1.16 (#229)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-23 21:55:57 -04:00
renovate[bot]
5f7e848670 Update dependency vue to v3.5.14 (#228)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-16 23:29:27 -04:00
renovate[bot]
f2c05bce92 Update dependency cssnano to v7.0.7 (#227)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-10 07:44:49 -04:00
renovate[bot]
0e34c00b99 Update dependency bootstrap to v5.3.6 (#226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-10 07:41:46 -04:00
renovate[bot]
c20f4fb32a Update dependency core-js to v3.42.0 (#225)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-02 21:56:56 -04:00
renovate[bot]
052e2d92d9 Update babel monorepo to v7.27.1 (#224)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-02 21:56:41 -04:00
renovate[bot]
b367ad0a46 Update dependency axios to v1.9.0 (#222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-28 22:39:21 -04:00
renovate[bot]
16ef189fe4 Update dependency vue-router to v4.5.1 (#220)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-28 22:39:11 -04:00
dependabot[bot]
89d3d70ef9 Bump http-proxy-middleware from 2.0.7 to 2.0.9 (#223)
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.7 to 2.0.9.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.9/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.7...v2.0.9)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-version: 2.0.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-28 22:39:02 -04:00
renovate[bot]
00e3c8ad5e Update caddy Docker tag to v2.10.0 (#221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-26 18:10:26 -04:00
renovate[bot]
6444cac6ee Update docker/dockerfile Docker tag to v1.15 (#219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-18 22:31:54 -04:00
b15a4fa107 Change DNS and other small tweaks 2025-04-18 18:44:19 -04:00
25 changed files with 4587 additions and 1223 deletions

4
.browserslistrc Normal file
View File

@@ -0,0 +1,4 @@
> 1%
last 2 versions
not dead
not ie 11

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

2
.eslintignore Normal file
View File

@@ -0,0 +1,2 @@
dist/
node_modules/

View File

@@ -15,6 +15,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'Checkout Repository' - name: 'Checkout Repository'
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: 'Dependency Review' - name: 'Dependency Review'
uses: actions/dependency-review-action@v4 uses: actions/dependency-review-action@v4

View File

@@ -10,7 +10,7 @@ jobs:
name: Publish rfd-fyi-backend name: Publish rfd-fyi-backend
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Prepare - name: Prepare
id: prep id: prep
@@ -50,7 +50,7 @@ jobs:
name: Publish rfd-fyi-frontend name: Publish rfd-fyi-frontend
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Prepare - name: Prepare
id: prep id: prep

2
.gitignore vendored
View File

@@ -5,3 +5,5 @@ backend/bin/
.vscode .vscode
*.pem *.pem
.env .env
.direnv
.envrc.local

View File

@@ -1,5 +1,8 @@
rfd.davegallant.ca {
auto_https off
}
file_server :80 {
file_server
reverse_proxy /api/* backend:8080 reverse_proxy /api/* rfd-fyi-backend:8080
}

View File

@@ -10,7 +10,7 @@ COPY . .
RUN npm run build RUN npm run build
FROM caddy:2.9.1-alpine as runtime FROM caddy:2.10.2-alpine as runtime
WORKDIR /my-site WORKDIR /my-site

View File

@@ -15,13 +15,12 @@ help:
## backend: Build and run the backend from source ## backend: Build and run the backend from source
backend: backend:
@cd backend && go run . @cd backend && CGO_ENABLED=0 go run .
.PHONY: backend .PHONY: backend
## frontend: Build and run the frontend from source ## frontend: Build and run the frontend from source
frontend: frontend:
@npm install @vue/cli-service @npm run serve
@npx vue-cli-service serve
.PHONY: frontend .PHONY: frontend
## dev: Build and run in docker compose ## dev: Build and run in docker compose

View File

@@ -1,4 +1,4 @@
# rfd.fyi # rfd-fyi
This repository provides a simple, less-distracting overlay for hot deals posted on https://forums.redflagdeals.com. This repository provides a simple, less-distracting overlay for hot deals posted on https://forums.redflagdeals.com.

View File

@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.14 # syntax=docker/dockerfile:1.21
FROM cgr.dev/chainguard/go:latest as build FROM cgr.dev/chainguard/go:latest AS build
WORKDIR /src WORKDIR /src

View File

@@ -3,8 +3,8 @@ package main
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io"
"math/rand" "math/rand/v2"
"net/http" "net/http"
"net/url" "net/url"
"strings" "strings"
@@ -63,6 +63,7 @@ func (a *App) Run(httpPort string) {
func (a *App) initializeRoutes() { func (a *App) initializeRoutes() {
a.Router.HandleFunc("/topics", a.listTopics).Methods("GET") a.Router.HandleFunc("/topics", a.listTopics).Methods("GET")
a.Router.HandleFunc("/topics/{id}", a.getTopicDetails).Methods("GET")
} }
// func respondWithError(w http.ResponseWriter, code int, message string) { // func respondWithError(w http.ResponseWriter, code int, message string) {
@@ -81,10 +82,131 @@ func respondWithJSON(w http.ResponseWriter, code int, payload interface{}) {
// @Summary Lists all topics stored in the database // @Summary Lists all topics stored in the database
// @Description All topics will be listed. There is currently no pagination implemented. // @Description All topics will be listed. There is currently no pagination implemented.
// @ID list-topics // @ID list-topics
// @Param filters query string false "JSON array of filter strings"
// @Router /topics [get] // @Router /topics [get]
// @Success 200 {array} Topic // @Success 200 {array} Topic
func (a *App) listTopics(w http.ResponseWriter, r *http.Request) { func (a *App) listTopics(w http.ResponseWriter, r *http.Request) {
filtersParam := r.URL.Query().Get("filters")
if filtersParam == "" {
respondWithJSON(w, http.StatusOK, a.CurrentTopics) respondWithJSON(w, http.StatusOK, a.CurrentTopics)
return
}
var filters []string
err := json.Unmarshal([]byte(filtersParam), &filters)
if err != nil {
log.Warn().Msgf("could not parse filters parameter: %s", err)
respondWithJSON(w, http.StatusOK, a.CurrentTopics)
return
}
if len(filters) == 0 {
respondWithJSON(w, http.StatusOK, a.CurrentTopics)
return
}
// Filter topics
var filteredTopics []Topic
for _, topic := range a.CurrentTopics {
searchText := strings.ToLower(topic.Title + " [" + topic.Offer.DealerName + "]")
matchesAll := true
for _, filter := range filters {
if !strings.Contains(searchText, strings.ToLower(filter)) {
matchesAll = false
break
}
}
if matchesAll {
filteredTopics = append(filteredTopics, topic)
}
}
respondWithJSON(w, http.StatusOK, filteredTopics)
}
// getTopicDetails godoc
// @Summary Get detailed information about a specific topic
// @Description Fetches full details including recent comments for a topic by ID
// @ID get-topic-details
// @Param id path int true "Topic ID"
// @Router /topics/{id} [get]
// @Success 200 {object} TopicDetails
func (a *App) getTopicDetails(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
topicID := vars["id"]
// Find topic in current topics
var topic *Topic
for i := range a.CurrentTopics {
if fmt.Sprintf("%d", a.CurrentTopics[i].TopicID) == topicID {
topic = &a.CurrentTopics[i]
break
}
}
if topic == nil {
respondWithJSON(w, http.StatusNotFound, map[string]string{"error": "Topic not found"})
return
}
// Fetch detailed info from RFD API
requestURL := fmt.Sprintf("https://forums.redflagdeals.com/api/topics/%s", topicID)
res, err := http.Get(requestURL)
if err != nil {
log.Warn().Msgf("error fetching topic details: %s\n", err)
respondWithJSON(w, http.StatusInternalServerError, map[string]string{"error": "Failed to fetch details"})
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
log.Warn().Msgf("could not read response body: %s\n", err)
respondWithJSON(w, http.StatusInternalServerError, map[string]string{"error": "Failed to read response"})
return
}
var rfdResponse map[string]interface{}
err = json.Unmarshal([]byte(body), &rfdResponse)
if err != nil {
log.Warn().Msgf("could not unmarshal response body: %s", err)
respondWithJSON(w, http.StatusInternalServerError, map[string]string{"error": "Failed to parse response"})
return
}
// Extract relevant fields for tooltip
details := TopicDetails{
Topic: *topic,
Description: extractDescription(rfdResponse),
FirstPost: extractFirstPost(rfdResponse),
}
respondWithJSON(w, http.StatusOK, details)
}
func extractDescription(data map[string]interface{}) string {
if topic, ok := data["topic"].(map[string]interface{}); ok {
if description, ok := topic["description"].(string); ok {
return description
}
}
return ""
}
func extractFirstPost(data map[string]interface{}) string {
if posts, ok := data["posts"].([]interface{}); ok && len(posts) > 0 {
if firstPost, ok := posts[0].(map[string]interface{}); ok {
if body, ok := firstPost["body"].(string); ok {
// Truncate to first 200 characters
if len(body) > 200 {
return body[:200] + "..."
}
return body
}
}
}
return ""
} }
func (a *App) refreshTopics() { func (a *App) refreshTopics() {
@@ -93,6 +215,7 @@ func (a *App) refreshTopics() {
latestTopics := a.getDeals(9, 1, 6) latestTopics := a.getDeals(9, 1, 6)
if len(latestTopics) > 0 { if len(latestTopics) > 0 {
latestTopics = a.deduplicateTopics(latestTopics)
latestTopics = a.updateScores(latestTopics) latestTopics = a.updateScores(latestTopics)
log.Info().Msg("Refreshing redirects") log.Info().Msg("Refreshing redirects")
@@ -102,8 +225,7 @@ func (a *App) refreshTopics() {
} }
a.LastRefresh = time.Now() a.LastRefresh = time.Now()
rand.Seed(time.Now().UnixNano()) time.Sleep(time.Duration(rand.IntN(90-60+1)+60) * time.Second)
time.Sleep(time.Duration(rand.Intn(90-60+1)+60) * time.Second)
} }
} }
@@ -146,6 +268,22 @@ func (a *App) stripRedirects(t []Topic) []Topic {
return t return t
} }
func (a *App) deduplicateTopics(topics []Topic) []Topic {
seen := make(map[uint]bool)
var deduplicated []Topic
for _, topic := range topics {
if !seen[topic.TopicID] {
seen[topic.TopicID] = true
deduplicated = append(deduplicated, topic)
} else {
log.Debug().Msgf("Removing duplicate topic: %d", topic.TopicID)
}
}
return deduplicated
}
func (a *App) isSponsor(t Topic) bool { func (a *App) isSponsor(t Topic) bool {
return strings.HasPrefix(t.Title, "[Sponsored]") return strings.HasPrefix(t.Title, "[Sponsored]")
} }
@@ -160,7 +298,7 @@ func (a *App) getDeals(id int, firstPage int, lastPage int) []Topic {
if err != nil { if err != nil {
log.Warn().Msgf("error fetching deals: %s\n", err) log.Warn().Msgf("error fetching deals: %s\n", err)
} }
body, err := ioutil.ReadAll(res.Body) body, err := io.ReadAll(res.Body)
if err != nil { if err != nil {
log.Warn().Msgf("could not read response body: %s\n", err) log.Warn().Msgf("could not read response body: %s\n", err)
} }
@@ -190,7 +328,7 @@ func (a *App) getRedirects() []Redirect {
if err != nil { if err != nil {
log.Warn().Msgf("error fetching redirects: %s\n", err) log.Warn().Msgf("error fetching redirects: %s\n", err)
} }
body, err := ioutil.ReadAll(res.Body) body, err := io.ReadAll(res.Body)
if err != nil { if err != nil {
log.Warn().Msgf("could not read response body: %s\n", err) log.Warn().Msgf("could not read response body: %s\n", err)
} }

View File

@@ -1,6 +1,6 @@
module github.com/davegallant/rfd-fyi module github.com/davegallant/rfd-fyi
go 1.18 go 1.26
require ( require (
github.com/dlclark/regexp2 v1.11.5 github.com/dlclark/regexp2 v1.11.5

View File

@@ -27,3 +27,9 @@ type Offer struct {
DealerName string `json:"dealer_name"` DealerName string `json:"dealer_name"`
Url string `json:"url"` Url string `json:"url"`
} // @name Offer } // @name Offer
type TopicDetails struct {
Topic Topic `json:"topic"`
Description string `json:"description"`
FirstPost string `json:"first_post"`
} // @name TopicDetails

61
flake.lock generated Normal file
View File

@@ -0,0 +1,61 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1771008912,
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

51
flake.nix Normal file
View File

@@ -0,0 +1,51 @@
{
description = "rfd-fyi development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# Node.js LTS with npm
nodejs_20
# Go for backend
go
# Build tools
pkg-config
# Development utilities
git
curl
jq
# Optional: for better development experience
gnumake
];
shellHook = ''
echo "🚀 rfd-fyi development environment loaded"
echo "Available commands:"
echo " Frontend: npm install, npm run build, npm run serve"
echo " Backend: cd backend && CGO_ENABLED=0 go run ."
echo ""
echo "Node version: $(node --version)"
echo "npm version: $(npm --version)"
echo "Go version: $(go version)"
echo ""
echo "Tip: Run 'npm install' to install frontend dependencies"
echo "Tip: Vite is available via 'npx vite' or 'npm run build'"
'';
};
}
);
}

78
index.html Normal file
View File

@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="description" content="An alternative frontend for hot deals" />
<!-- DNS prefetch for faster Google Fonts resolution -->
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
<!-- Preconnect for faster font loading -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="icon" href="/favicon.png" />
<!-- Load Material Symbols font with optimal display settings -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block"
/>
<title>rfd-fyi</title>
<!-- Analytics - loaded async/defer so it doesn't block page -->
<script
async
defer
src="https://umami.davegallant.ca/script.js"
data-website-id="59ffe8be-509a-471e-8cd6-a63c5b35b7aa"
></script>
<!-- Theme detection script - runs before Vue loads to prevent flash of unstyled content -->
<script>
(function() {
// Check for saved theme preference only
const savedTheme = localStorage.getItem('theme');
if (!savedTheme) {
return; // Let Vue handle default theme
}
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
let theme = savedTheme;
// Handle 'auto' theme preference
if (theme === 'auto') {
theme = prefersDark ? 'dark' : 'light';
}
// Apply theme to html element
document.documentElement.setAttribute('data-bs-theme', theme);
document.documentElement.setAttribute('data-theme', theme);
// Apply theme classes
if (theme === 'dark') {
document.documentElement.classList.add('dark-theme');
document.documentElement.classList.remove('light-theme');
} else {
document.documentElement.classList.add('light-theme');
document.documentElement.classList.remove('dark-theme');
}
})();
</script>
</head>
<body>
<noscript>
<strong
>We're sorry but rfd.fyi doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

4067
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,36 +3,37 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vite",
"build": "vue-cli-service build", "preview": "vite preview",
"lint": "vue-cli-service lint" "build": "vite build",
"lint": "eslint . --fix"
}, },
"dependencies": { "dependencies": {
"@fontsource/roboto": "5.2.9",
"@github/hotkey": "^3.0.0", "@github/hotkey": "^3.0.0",
"@mdi/font": "7.4.47",
"@popperjs/core": "^2.11.8", "@popperjs/core": "^2.11.8",
"axios": "^1.6.0", "axios": "^1.12.0",
"bootstrap": "^5.3.1",
"bootstrap-vue": "^2.22.0",
"core-js": "^3.32.1", "core-js": "^3.32.1",
"cssnano": "^7.0.0", "cssnano": "^7.0.0",
"jquery": "^3.7.0", "dayjs": "^1.11.10",
"moment": "^2.29.4", "vue": "^3.5.17",
"vue": "^3.3.4",
"vue-github-button": "^3.0.3",
"vue-loading-overlay": "^6.0.3", "vue-loading-overlay": "^6.0.3",
"vue-router": "4.5.0" "vue-router": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.22.10", "@babel/core": "^7.22.10",
"@babel/eslint-parser": "^7.22.10", "@babel/eslint-parser": "^7.22.10",
"@types/bootstrap": "^5.2.6", "@vitejs/plugin-vue": "^5.2.3",
"@types/mousetrap": "^1.6.11",
"@vue/cli-plugin-babel": "~5.0.0", "@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0", "@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "^5.0.8", "@vue/cli-service": "^5.0.9",
"eslint": "^8.47.0", "eslint": "^8.47.0",
"eslint-plugin-vue": "^10.0.0", "eslint-plugin-vue": "^9.17.0",
"postcss-cli": "^11.0.0" "postcss-cli": "^11.0.0",
"sass-embedded": "^1.89.2",
"unplugin-vue-components": "^31.0.0",
"vite": "^7.0.0"
}, },
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,
@@ -47,11 +48,5 @@
"parser": "@babel/eslint-parser" "parser": "@babel/eslint-parser"
}, },
"rules": {} "rules": {}
}, }
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
]
} }

View File

@@ -1,26 +0,0 @@
<!DOCTYPE html>
<html lang="" data-bs-theme="dark">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="description" content="An overlay of rfd deals" />
<link rel="icon" href="<%= BASE_URL %>favicon.png" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"
/>
<title>rfd-fyi - An overlay of hot deals</title>
<script defer src="https://umami.snake-cloud.ts.net/script.js" data-website-id="59ffe8be-509a-471e-8cd6-a63c5b35b7aa"></script>
</head>
<body>
<noscript>
<strong
>We're sorry but rfd.fyi doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

View File

@@ -1,237 +1,457 @@
<script> <script>
import axios from "axios"; import axios from "axios";
import moment from "moment"; import dayjs from "dayjs";
import Loading from "vue-loading-overlay"; import utc from "dayjs/plugin/utc";
import GithubButton from "vue-github-button";
import { install } from "@github/hotkey";
import "vue-loading-overlay/dist/css/index.css"; import "./theme.css";
dayjs.extend(utc);
// Color palette for dealer labels - muted, visually distinct colors
const DEALER_COLORS = [
{ bg: '#e8eef4', border: '#5a7a9a', text: '#4a6a8a' }, // Muted Blue
{ bg: '#ece8f0', border: '#7a6a8a', text: '#6a5a7a' }, // Muted Purple
{ bg: '#e8f0e8', border: '#5a7a5a', text: '#4a6a4a' }, // Muted Green
{ bg: '#f0ebe5', border: '#9a7a5a', text: '#8a6a4a' }, // Muted Orange
{ bg: '#f0e8ec', border: '#8a5a6a', text: '#7a4a5a' }, // Muted Pink
{ bg: '#e5efed', border: '#5a7a75', text: '#4a6a65' }, // Muted Teal
{ bg: '#f0ede5', border: '#9a8a5a', text: '#8a7a4a' }, // Muted Amber
{ bg: '#eaf0e8', border: '#6a8a5a', text: '#5a7a4a' }, // Muted Light Green
{ bg: '#e8e9f0', border: '#5a5a8a', text: '#4a4a7a' }, // Muted Indigo
{ bg: '#ece9e6', border: '#6a5a50', text: '#5a4a40' }, // Muted Brown
{ bg: '#e5f0f0', border: '#5a8a8a', text: '#4a7a7a' }, // Muted Cyan
{ bg: '#f0e8e5', border: '#9a6a5a', text: '#8a5a4a' }, // Muted Deep Orange
];
// Dark theme color palette - muted colors
const DEALER_COLORS_DARK = [
{ bg: '#2a3a4a', border: '#7a9ab0', text: '#9ab0c0' }, // Muted Blue
{ bg: '#3a3040', border: '#9a8aaa', text: '#b0a0c0' }, // Muted Purple
{ bg: '#2a3a2a', border: '#7a9a7a', text: '#9ab09a' }, // Muted Green
{ bg: '#3a3025', border: '#a09070', text: '#b0a080' }, // Muted Orange
{ bg: '#3a2a30', border: '#a07a8a', text: '#b09aa0' }, // Muted Pink
{ bg: '#253a38', border: '#7a9a95', text: '#9ab0aa' }, // Muted Teal
{ bg: '#3a3525', border: '#a09a70', text: '#b0aa80' }, // Muted Amber
{ bg: '#2a3a25', border: '#8a9a7a', text: '#a0b090' }, // Muted Light Green
{ bg: '#30304a', border: '#8a8aaa', text: '#a0a0c0' }, // Muted Indigo
{ bg: '#352d28', border: '#8a7a70', text: '#a09a90' }, // Muted Brown
{ bg: '#253a3a', border: '#7a9a9a', text: '#9ab0b0' }, // Muted Cyan
{ bg: '#3a2a25', border: '#a08070', text: '#b09a8a' }, // Muted Deep Orange
];
// Simple hash function for consistent color assignment
function hashString(str) {
let hash = 0;
const normalizedStr = str.toLowerCase().trim();
for (let i = 0; i < normalizedStr.length; i++) {
const char = normalizedStr.charCodeAt(i);
hash = ((hash << 5) - hash) + char;
hash = hash & hash; // Convert to 32-bit integer
}
return Math.abs(hash);
}
export default { export default {
data() { data() {
return { return {
ascending: this.ascending, filterInput: "",
filter: window.location.href.split("filter=")[1] || "", activeFilters: this.parseFiltersFromUrl(),
isLoading: false, sortMethod: "score",
sortColumn: this.sortColumn,
topics: [], topics: [],
isMobile: false,
currentTheme: "auto",
darkModeQuery: null,
themeChangeHandler: null,
isLoading: false,
}; };
}, },
mounted() { mounted() {
// Install all the hotkeys on the page window.addEventListener("keydown", this.handleKeyDown);
for (const el of document.querySelectorAll("[data-hotkey]")) { window.addEventListener("resize", this.handleResize);
install(el); this.detectMobile();
}
this.sortColumn = localStorage.getItem("sortColumn") || "score";
this.ascending =
localStorage.getItem("ascending") === "false" ? false : true;
this.isLoading = true;
this.fetchDeals(); this.fetchDeals();
this.initializeSortMethod();
this.initializeTheme();
this.setupThemeListener();
}, },
beforeUnmount() {
window.removeEventListener("keydown", this.handleKeyDown);
window.removeEventListener("resize", this.handleResize);
if (this.darkModeQuery && this.themeChangeHandler) {
this.darkModeQuery.removeEventListener("change", this.themeChangeHandler);
}
},
computed: {
filteredTopics() {
const filterTerms = this.activeFilters.map(f => f.toLowerCase());
const filtered = this.topics.filter((row) => {
if (filterTerms.length === 0) return true;
const searchText = `${row.title} [${row.Offer.dealer_name}]`.toLowerCase();
return filterTerms.every(term => searchText.includes(term));
});
const sortFns = {
score: (a, b) => b.score - a.score,
views: (a, b) => b.total_views - a.total_views,
recency: (a, b) => new Date(b.last_post_time) - new Date(a.last_post_time),
};
return filtered.sort(sortFns[this.sortMethod] || sortFns.score);
},
themeIcon() {
const icons = { auto: "brightness_auto", dark: "dark_mode", light: "light_mode" };
return icons[this.currentTheme];
},
themeTitle() {
const titles = {
auto: "Theme: Auto (click for Light)",
light: "Theme: Light (click for Dark)",
dark: "Theme: Dark (click for Auto)",
};
return titles[this.currentTheme];
},
sortIcon() {
const icons = { score: "trending_up", views: "visibility", recency: "schedule" };
return icons[this.sortMethod];
},
sortTitle() {
const titles = {
score: "Sort by Score (click for Views)",
views: "Sort by Views (click for Recency)",
recency: "Sort by Recency (click for Score)",
};
return titles[this.sortMethod];
},
},
methods: { methods: {
createFilterRoute(params) { formatDate(dateString) {
this.$refs.filter.blur(); return dayjs(String(dateString)).format("YYYY-MM-DD hh:mm A");
history.pushState(
{},
null,
`${window.location.origin}#/filter=${encodeURIComponent(params)}`
);
}, },
highlightText(text) {
if (!this.activeFilters || this.activeFilters.length === 0) return text;
let result = text;
for (const filter of this.activeFilters) {
const lowerText = result.toLowerCase();
const lowerFilter = filter.toLowerCase();
if (lowerText.includes(lowerFilter)) {
const regex = new RegExp(filter.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "ig");
result = result.replace(regex, (match) => `<mark>${match}</mark>`);
}
}
return result;
},
initializeTheme() {
const savedTheme = localStorage.getItem("theme") || "auto";
this.currentTheme = savedTheme;
this.applyTheme(savedTheme, true);
},
setupThemeListener() {
this.darkModeQuery = window.matchMedia("(prefers-color-scheme: dark)");
this.themeChangeHandler = (e) => {
const savedTheme = localStorage.getItem("theme");
if (savedTheme === "auto" || !savedTheme) {
this.applyThemeActual(e.matches ? "dark" : "light");
}
};
this.darkModeQuery.addEventListener("change", this.themeChangeHandler);
},
applyTheme(theme, skipSave = false) {
this.currentTheme = theme;
if (!skipSave) {
localStorage.setItem("theme", theme);
}
let actualTheme = theme;
if (theme === "auto") {
actualTheme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
}
this.applyThemeActual(actualTheme);
},
applyThemeActual(theme) {
document.documentElement.setAttribute("data-bs-theme", theme);
document.documentElement.classList.toggle("dark-theme", theme === "dark");
document.documentElement.classList.toggle("light-theme", theme === "light");
},
toggleTheme() {
const cycle = { auto: "light", light: "dark", dark: "auto" };
this.applyTheme(cycle[this.currentTheme]);
},
detectMobile() {
const hasTouch =
"ontouchstart" in window ||
navigator.maxTouchPoints > 0 ||
navigator.msMaxTouchPoints > 0;
const isMobileScreen = window.innerWidth <= 1024;
this.isMobile = hasTouch || isMobileScreen;
},
handleResize() {
this.detectMobile();
},
handleKeyDown(event) {
const isInput = ["INPUT", "TEXTAREA"].includes(document.activeElement.tagName);
if (event.key === "/" && !isInput) {
event.preventDefault();
this.$refs.filterInput.focus();
}
},
parseFiltersFromUrl() {
const hash = window.location.hash || "";
const match = hash.match(/filters=([^&]*)/);
if (match && match[1]) {
try {
const decoded = decodeURIComponent(match[1]);
return JSON.parse(decoded);
} catch (e) {
return [];
}
}
// Legacy single filter support
const legacyMatch = hash.match(/filter=([^&]*)/);
if (legacyMatch && legacyMatch[1]) {
const decoded = decodeURIComponent(legacyMatch[1]);
return decoded ? [decoded] : [];
}
return [];
},
updateUrlWithFilters() {
if (this.activeFilters.length > 0) {
const encoded = encodeURIComponent(JSON.stringify(this.activeFilters));
history.pushState({}, null, `${window.location.origin}#/filters=${encoded}`);
} else {
history.pushState({}, null, window.location.origin);
}
},
applyFilter() {
const trimmed = this.filterInput.trim();
if (trimmed && !this.activeFilters.includes(trimmed)) {
this.activeFilters.push(trimmed);
this.filterInput = "";
this.$refs.filterInput.blur();
this.updateUrlWithFilters();
}
},
clearFilter(index) {
this.activeFilters.splice(index, 1);
this.updateUrlWithFilters();
},
clearAllFilters() {
this.activeFilters = [];
this.filterInput = "";
this.updateUrlWithFilters();
},
fetchDeals() { fetchDeals() {
this.isLoading = true; this.isLoading = true;
axios const minLoadingTime = new Promise(resolve => setTimeout(resolve, 500));
.get("api/v1/topics")
.then((response) => { Promise.all([
axios.get("api/v1/topics"),
minLoadingTime
])
.then(([response]) => {
this.topics = response.data; this.topics = response.data;
this.isLoading = false;
this.sortTable(this.sortColumn, false);
}) })
.catch((err) => { .catch((err) => {
console.log(err.response); console.error("Failed to fetch deals:", err.response || err);
})
.finally(() => {
this.isLoading = false;
}); });
}, },
sortTable: function sortTable(col, flipAscending) {
if (this.sortColumn === col && flipAscending) {
this.ascending = !this.ascending;
}
var ascending = this.ascending; initializeSortMethod() {
const saved = localStorage.getItem("sortMethod");
localStorage.setItem("ascending", this.ascending); if (saved) {
localStorage.setItem("sortColumn", col); this.sortMethod = saved;
this.sortColumn = col;
this.topics.sort(function (a, b) {
if (a[col] > b[col]) {
return ascending ? -1 : 1;
} else if (a[col] < b[col]) {
return ascending ? 1 : -1;
}
return 0;
});
},
isMobile() {
if (
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
)
) {
return true;
} else {
return false;
} }
}, },
toggleSort() {
const cycle = { score: "views", views: "recency", recency: "score" };
this.sortMethod = cycle[this.sortMethod];
localStorage.setItem("sortMethod", this.sortMethod);
}, },
computed: {
formatDate() { getDealerColor(dealerName) {
return (v) => { if (!dealerName) return null;
return moment(String(v)).format("hh:mm A z (MM/DD)"); const isDark = document.documentElement.getAttribute('data-bs-theme') === 'dark' ||
}; document.documentElement.classList.contains('dark-theme') ||
(this.currentTheme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches);
const colors = isDark ? DEALER_COLORS_DARK : DEALER_COLORS;
const index = hashString(dealerName) % colors.length;
return colors[index];
}, },
columns() {
getDealerStyle(dealerName) {
const color = this.getDealerColor(dealerName);
if (!color) return {};
return { return {
Deal: "deal", backgroundColor: color.bg,
Score: "score", borderColor: color.border,
Views: "total_views", color: color.text,
"Last Reply": "last_post_time",
}; };
}, },
filteredTopics() {
return this.topics.filter((row) => {
const titles = (
row.title.toString() +
" [" +
row.Offer.dealer_name +
"]"
).toLowerCase();
const filterTerm = this.filter.toLowerCase();
return titles.includes(filterTerm);
});
},
highlightMatches() {
return (v) => {
if (this.filter == "") return v;
const matchExists = v.toLowerCase().includes(this.filter.toLowerCase());
if (!matchExists) return v;
const re = new RegExp(this.filter, "ig");
return v.replace(re, (matchedText) => `<mark>${matchedText}</mark>`);
};
},
},
components: {
Loading,
GithubButton,
}, },
}; };
</script> </script>
<template> <template>
<link rel="shortcut icon" type="image/png" href="/favicon.png" /> <div id="app">
<body> <div class="container">
<div class="header">
<div class="header-controls">
<div class="filter-container" :class="{ 'has-active-filters': activeFilters.length > 0 }">
<span v-for="(filter, index) in activeFilters" :key="index" class="filter-tag">
{{ filter }}
<button class="filter-tag-clear" @click="clearFilter(index)" title="Clear filter">
<span class="material-symbols-outlined">close</span>
</button>
</span>
<input <input
class="form-control" ref="filterInput"
v-model="filterInput"
type="text" type="text"
id="filter" placeholder="Filter deals"
placeholder="Filter" class="search-input"
@keyup.enter="applyFilter"
data-hotkey="/" @keyup.esc="$refs.filterInput.blur()"
v-model="filter"
v-on:keyup.enter="createFilterRoute(this.filter.toString())"
v-on:keyup.escape="this.$refs.filter.blur()"
ref="filter"
/> />
<table class="table table-hover"> </div>
<thead class="thead text-muted"> <button class="icon-button" title="Refresh deals" @click="fetchDeals" :disabled="isLoading">
<tr> <span class="material-symbols-outlined" :class="{ 'spinning': isLoading }">refresh</span>
<th </button>
v-for="(col, key) in columns" <button class="icon-button" :title="sortTitle" @click="toggleSort">
v-on:click="sortTable(col, true)" <span class="material-symbols-outlined">{{ sortIcon }}</span>
:key="col" </button>
> <button class="icon-button" :title="themeTitle" @click="toggleTheme">
{{ key }} <span class="material-symbols-outlined">{{ themeIcon }}</span>
<div </button>
class="arrow" </div>
v-if="col == sortColumn" </div>
v-bind:class="ascending ? 'arrow_up' : 'arrow_down'"
></div> <div v-if="isLoading && topics.length === 0" class="loading-container">
</th> <span class="material-symbols-outlined spinning loading-spinner">refresh</span>
</tr> <p>Loading deals...</p>
</thead> </div>
<tbody>
<loading <div class="cards-wrapper" v-else>
v-model:active="isLoading" <div v-if="isLoading" class="loading-overlay">
color="#ccc" <span class="material-symbols-outlined spinning loading-spinner">refresh</span>
opacity="0" </div>
loader="bars" <div class="cards-grid">
:is-full-page="false" <div v-for="topic in filteredTopics" :key="topic.topic_id" class="deal-card">
> <div class="card-header">
</loading> <div class="title-with-link">
<tr
scope="row"
v-for="(topic, index) in filteredTopics"
:key="`topic.topic_id-${index}`"
>
<td scope="col">
<a <a
:href="`https://forums.redflagdeals.com${topic.web_path}`" :href="`https://forums.redflagdeals.com${topic.web_path}`"
target="_blank" target="_blank"
v-html=" class="deal-title"
highlightMatches( v-html="highlightText(topic.title)"
topic.title + ' [' + topic.Offer.dealer_name + '] '
)
"
></a> ></a>
<a <a
:href="`${topic.Offer.url}`"
target="_blank"
v-if="topic.Offer.url" v-if="topic.Offer.url"
><span class="material-symbols-outlined"> link </span></a :href="topic.Offer.url"
> target="_blank"
<span v-if="!topic.Offer.url" class="material-symbols-outlined"> class="card-link"
link_off title="Open deal"
</span>
</td>
<td v-if="topic.score > 0" scope="col" class="green-score">
+{{ topic.score }}
</td>
<td v-if="topic.score < 0" scope="col" class="red-score">
{{ topic.score }}
</td>
<td v-if="topic.score == 0" scope="col">
{{ topic.score }}
</td>
<td scope="col">{{ topic.total_views }}</td>
<td scope="col">{{ formatDate(topic.last_post_time) }}</td>
</tr>
</tbody>
</table>
<div v-if="!isMobile()">
<footer class="fixed-bottom">
<small
>Press '/' to begin filtering (i.e.
<a
href="/#/filter=costco"
onclick="setTimeout(location.reload.bind(location), 1)"
>/#/filter=costco</a
>)</small
>
<div class="footer-right">
<github-button href="https://github.com/davegallant/rfd-fyi"
></github-button
> >
<span class="material-symbols-outlined">open_in_new</span>
</a>
</div>
<div
class="score-bubble"
:class="{
positive: topic.score > 0,
negative: topic.score < 0,
neutral: topic.score === 0,
}"
>
<span v-if="topic.score > 0">+{{ topic.score }}</span>
<span v-else>{{ topic.score }}</span>
</div>
</div>
<div class="card-meta" v-if="topic.Offer.dealer_name">
<span
class="dealer-name dealer-label"
:style="getDealerStyle(topic.Offer.dealer_name)"
v-html="highlightText(topic.Offer.dealer_name)"
></span>
</div>
<div class="card-details">
<div class="details-stats">
<div class="stat">
<span class="material-symbols-outlined">visibility</span>
<span class="stat-value">{{ topic.total_views }} views</span>
</div>
<div class="stat">
<span class="material-symbols-outlined">chat</span>
<span class="stat-value">{{ topic.total_replies }} replies</span>
</div>
</div>
<div class="card-timestamp">Last post: {{ formatDate(topic.last_post_time) }}</div>
</div>
</div>
</div>
</div>
</div> </div>
</footer>
</div> </div>
</body>
</template> </template>
<style> <style scoped>
#app { .cards-wrapper {
font-family: Avenir, Helvetica, Arial, sans-serif; position: relative;
-webkit-font-smoothing: antialiased; }
-moz-osx-font-smoothing: grayscale;
text-align: center; .loading-overlay {
color: #2c3e50; position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(128, 128, 128, 0.3);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
border-radius: 12px;
}
.loading-overlay .loading-spinner {
font-size: 48px;
color: var(--text-primary);
} }
</style> </style>

View File

@@ -2,12 +2,12 @@ import { createApp } from "vue";
import App from "./App.vue"; import App from "./App.vue";
import { createRouter, createWebHashHistory } from "vue-router"; import { createRouter, createWebHashHistory } from "vue-router";
import "bootstrap/dist/css/bootstrap.min.css"; const routes = [
import "bootstrap/dist/js/bootstrap.min.js"; {
path: '/:pathMatch(.*)*',
import "./theme.css"; component: App,
},
const routes = []; ];
const router = createRouter({ const router = createRouter({
history: createWebHashHistory(), history: createWebHashHistory(),

View File

@@ -1,68 +1,566 @@
body { /* Material Symbols Icon Font */
max-width: 100%; .material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
} }
.thead { /* ============================================
position: sticky; Theme Variables
top: 0; ============================================ */
:root {
/* Light theme (default) */
--bg-primary: #dddddd;
--bg-secondary: #e8e8e8;
--bg-input: #f5f5f5;
--bg-input-focus: #ffffff;
--text-primary: #212529;
--text-secondary: #6c757d;
--border-color: #d0d0d0;
--border-color-light: #cccccc;
--border-color-hover: #999999;
--link-color: #212529;
--score-positive-bg: rgb(34, 139, 34);
--score-positive-text: white;
--score-negative-bg: rgb(247, 118, 142);
--score-negative-text: white;
--mark-bg: rgba(255, 193, 7, 0.3);
--shadow-light: rgba(0, 0, 0, 0.05);
--shadow-medium: rgba(0, 0, 0, 0.1);
} }
/* Dark theme via media query */
@media (prefers-color-scheme: dark) {
:root:not([data-bs-theme="light"]):not(.light-theme) {
--bg-primary: #1a1a1a;
--bg-secondary: #2a2a2a;
--bg-input: #1a1a1a;
--bg-input-focus: #2a2a2a;
--text-primary: #e0e0e0;
--text-secondary: #a0a0a0;
--border-color: #3a3a3a;
--border-color-light: #555555;
--border-color-hover: #777777;
--link-color: #e0e0e0;
--score-positive-bg: rgb(158, 206, 106);
--score-positive-text: #1a1a1a;
--mark-bg: rgba(255, 193, 7, 0.4);
--shadow-light: rgba(255, 255, 255, 0.1);
}
}
/* Explicit dark theme */
html[data-bs-theme="dark"],
html.dark-theme {
--bg-primary: #1a1a1a;
--bg-secondary: #2a2a2a;
--bg-input: #1a1a1a;
--bg-input-focus: #2a2a2a;
--text-primary: #e0e0e0;
--text-secondary: #a0a0a0;
--border-color: #3a3a3a;
--border-color-light: #555555;
--border-color-hover: #777777;
--link-color: #e0e0e0;
--score-positive-bg: rgb(158, 206, 106);
--score-positive-text: #1a1a1a;
--mark-bg: rgba(255, 193, 7, 0.4);
--shadow-light: rgba(255, 255, 255, 0.1);
}
/* Explicit light theme */
html[data-bs-theme="light"],
html.light-theme {
--bg-primary: #dddddd;
--bg-secondary: #e8e8e8;
--bg-input: #f5f5f5;
--bg-input-focus: #ffffff;
--text-primary: #212529;
--text-secondary: #6c757d;
--border-color: #d0d0d0;
--border-color-light: #cccccc;
--border-color-hover: #999999;
--link-color: #212529;
--score-positive-bg: rgb(34, 139, 34);
--score-positive-text: white;
--mark-bg: rgba(255, 193, 7, 0.3);
--shadow-light: rgba(0, 0, 0, 0.05);
}
/* ============================================
Base Styles
============================================ */
html { html {
font-family: sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
min-width: 100%; min-width: 100%;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
background-color: var(--bg-primary);
color: var(--text-primary);
}
body {
max-width: 100%;
background-color: var(--bg-primary);
color: var(--text-primary);
transition: background-color 0.3s ease, color 0.3s ease;
margin: 0;
padding: 0;
} }
a { a {
color: #96ada5; /**/ color: var(--link-color);
transition: color 0.2s ease;
} }
a:visited { a:visited {
color: #53514f; /**/ color: var(--link-color);
}
a:hover {
color: #d65d03; /**/
} }
footer { /* ============================================
background: #212529; Layout
color: white; ============================================ */
padding: 3px;
padding-right: 10px; .container {
padding-left: 10px; max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
} }
.footer-left { .header {
float: left; margin-bottom: 30px;
} }
.footer-right { .header-controls {
float: right; display: flex;
gap: 12px;
align-items: center;
} }
.green-score { /* ============================================
color: rgb(22, 120, 63) !important; Search Input
============================================ */
.search-input {
flex: 1;
max-width: 500px;
padding: 10px 12px;
font-size: 14px;
border: 1px solid var(--border-color-light);
border-radius: 4px;
background-color: var(--bg-input);
color: var(--text-primary);
transition: all 0.2s ease;
font-family: inherit;
} }
.red-score { .search-input:focus {
color: rgb(175, 21, 21) !important; outline: none;
border-color: var(--border-color-hover);
background-color: var(--bg-input-focus);
box-shadow: 0 0 0 2px var(--shadow-light);
} }
.arrow_down { .search-input::placeholder {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAaCAYAAABPY4eKAAAAAXNSR0IArs4c6QAAAvlJREFUSA29Vk1PGlEUHQaiiewslpUJiyYs2yb9AyRuJGm7c0VJoFXSX9A0sSZN04ULF12YEBQDhMCuSZOm1FhTiLY2Rky0QPlQBLRUsICoIN/0PCsGyox26NC3eTNn3r3n3TvnvvsE1PkwGo3yUqkkEQqFgw2Mz7lWqwng7ztN06mxsTEv8U0Aam5u7r5EInkplUol/f391wAJCc7nEAgE9Uwmkzo4OPiJMa1Wq6cFs7Ozt0H6RqlUDmJXfPIx+qrX69Ti4mIyHA5r6Wq1egND+j+IyW6QAUoul18XiUTDNHaSyGazKcZtdgk8wqhUKh9o/OMvsVgsfHJy0iWqVrcQNRUMBnd6enqc9MjISAmRP3e73T9al3XnbWNjIw2+KY1Gc3imsNHR0YV4PP5+d3e32h3K316TySQFoX2WyWR2glzIO5fLTSD6IElLNwbqnFpbWyO/96lCoai0cZjN5kfYQAYi5H34fL6cxWIZbya9iJyAhULBHAqFVlMpfsV/fHxMeb3er+Vy+VUzeduzwWC45XA4dlD/vEXvdDrj8DvURsYEWK3WF4FA4JQP9mg0WrHZbEYmnpa0NxYgPVObm5teiLABdTQT8a6vrwdRWhOcHMzMzCiXlpb2/yV6qDttMpkeshEzRk4Wo/bfoe4X9vb2amzGl+HoXNT29vZqsVi0sK1jJScG+Xx+HGkL4Tew2TPi5zUdQQt9otPpuBk3e0TaHmMDh1zS7/f780S0zX6Yni+NnBj09fUZUfvudDrNZN+GkQbl8Xi8RLRtHzsB9Hr9nfn5+SjSeWUCXC7XPq5kw53wsNogjZNohYXL2EljstvtrAL70/mVaW8Y4OidRO1/gwgbUMvcqGmcDc9aPvD1gnTeQ+0nmaInokRj0nHh+uvIiVOtVvt2a2vLv7Ky0tL3cRTXIcpPAwMDpq6R4/JXE4vFQ5FI5CN+QTaRSFCYc8vLy1l0rge4ARe5kJ/d27kYkLXoy2Jo4C7K8CZOsEBvb+9rlUp1xNXPL7v3IDwxvPD6AAAAAElFTkSuQmCC"); color: var(--text-secondary);
}
.arrow_up {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAaCAYAAACgoey0AAAAAXNSR0IArs4c6QAAAwpJREFUSA21Vt1PUmEYP4dvkQ8JFMwtBRocWAkDbiqXrUWXzU1rrTt0bdVqXbb1tbW16C9IBUSmm27cODdneoXjputa6069qwuW6IIBIdLvdaF4OAcOiGeDc87zPs/vd57P96WpFq7p6enbGo1mjKZpeTabjU1MTCRagGnOZHFxcXxtbe1XKpUq7+zslJeXl//Mz8+Hy+Uy3RxSE9qTk5M3otFooVQqgef4Wl9f343FYoEmoISrxuNxFX5f9vb2jhn/PxUKhfLS0tIPfFifUESRUMV8Pv/M6XReRm5rTGQyGeXxeGxYe1ezeBpBOBx2rKysbO7v79d4Wy3Y2Nj4GQqFbgnhaugxwiuGJx99Pp9FLBbXxYTXvTqd7v3MzIy6riIWGxJnMpl7AwMD14xGYyMsSq1WUyQdUqn0eSPlusQIsbGrq+vl4OCgvhFQZd1utyv1en0gEolcqsi47nWJlUrlG5fLZVcoFFy2nDKSDpIWlUoVTCQSEk4lCHmJMZ2GTCbTiMVikfIZ88l7enoos9l8dXt7+z6fDicxSJUokqDX6xXcl2wCROoc0vQCWL3sNfLOSdzR0fHY4XC4tVotl40gmVwup9xuN4OQv+UyqCFGH9rg7SOGYVRcBs3IEG4J0nVnamrqOtvuBDGGgQg9+wHFcVEi4a0LNkbdd6TrPKo8ODc311mteIIYjT/a398/jK+s1jnVM0kXoufCFvq0GuiIGEVgQIhfoygM1QrteEa9dAL7ITiYCt4RMabOK5AyKKzKWtvupLcRciu8D5J0EuDDPyT/Snd39yh6VtY2NhYQSR9G79Ds7OxdskRjEyAufvb7/cPoO5Z6e1+xtVKrq6vfcFzyi/A3ZrPZ3GdNSlwgo5ekE4X2RIQGf2C1WlufFE0GBeGWYQ8YERWLxQtnUVB830MKLZfL9RHir8lkssCn2G751tZWEWe03zTKm15YWPiEiXXTYDB0Ig/t7yd8PRws4EicwWHxO4jHD8/C5HiTTqd1BwcHFozKU89origB+y/kmzgYpgOBQP4fGmUiZmJ+WNgAAAAASUVORK5CYII=");
}
.arrow {
float: right;
width: 10px;
height: 12px;
background-repeat: no-repeat;
background-size: contain;
background-position-y: bottom;
} }
.material-symbols-outlined { /* ============================================
font-size: medium; Filter Container & Tags
============================================ */
.filter-container {
flex: 1;
max-width: 500px;
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border: 1px solid var(--border-color-light);
border-radius: 4px;
background-color: var(--bg-input);
transition: all 0.2s ease;
}
.filter-container:focus-within {
border-color: var(--border-color-hover);
background-color: var(--bg-input-focus);
box-shadow: 0 0 0 2px var(--shadow-light);
}
.filter-container .search-input {
flex: 1;
border: none;
padding: 4px 0;
background: transparent;
box-shadow: none;
}
.filter-container .search-input:focus {
outline: none;
box-shadow: none;
}
.filter-tag {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 6px 2px 8px;
background-color: var(--border-color-light);
border-radius: 4px;
font-size: 12px;
font-weight: 500;
color: var(--text-primary);
flex-shrink: 0;
}
.filter-tag-clear {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
padding: 0;
border: none;
background-color: var(--text-secondary);
border-radius: 50%;
cursor: pointer;
transition: all 0.2s ease;
color: var(--bg-input);
}
.filter-tag-clear:hover {
background-color: var(--text-primary);
}
.filter-tag-clear .material-symbols-outlined {
font-size: 12px;
}
/* ============================================
Icon Buttons (Theme & Sort Toggle)
============================================ */
.icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border: 1px solid var(--border-color-light);
border-radius: 4px;
background-color: var(--bg-input);
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s ease;
font-size: 18px;
padding: 0;
flex-shrink: 0;
}
.icon-button:hover {
background-color: var(--bg-secondary);
border-color: var(--border-color-hover);
}
.icon-button:active {
transform: scale(0.95);
}
/* Legacy class names for compatibility */
.sort-toggle,
.theme-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border: 1px solid var(--border-color-light);
border-radius: 4px;
background-color: var(--bg-input);
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s ease;
font-size: 18px;
padding: 0;
flex-shrink: 0;
}
.sort-toggle:hover,
.theme-toggle:hover {
background-color: var(--bg-secondary);
border-color: var(--border-color-hover);
}
.sort-toggle:active,
.theme-toggle:active {
transform: scale(0.95);
}
/* ============================================
Cards Grid
============================================ */
.cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
margin-top: 20px;
}
.deal-card {
background-color: var(--bg-secondary);
border: 1.5px solid #aaaaaa;
border-radius: 12px;
padding: 16px;
display: flex;
flex-direction: column;
transition: all 0.2s ease;
min-height: auto;
}
.deal-card:hover {
box-shadow: 0 4px 8px var(--shadow-medium);
border-color: var(--border-color-hover);
}
/* ============================================
Card Header
============================================ */
.card-header {
display: flex;
gap: 12px;
align-items: flex-start;
margin-bottom: 12px;
justify-content: space-between;
}
.title-with-link {
display: flex;
align-items: flex-start;
gap: 6px;
flex: 1;
}
.deal-title {
color: var(--link-color);
text-decoration: none;
font-weight: 500;
font-size: 15px;
line-height: 1.4;
flex: 1;
transition: color 0.2s ease;
}
.deal-title:visited {
color: var(--link-color);
}
.deal-title:hover {
text-decoration: underline;
}
.card-link {
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--link-color);
text-decoration: none;
transition: all 0.2s ease;
flex-shrink: 0;
}
.card-link:hover {
opacity: 0.7;
}
.card-link .material-symbols-outlined {
font-size: 18px;
}
/* ============================================
Score Bubble
============================================ */
.score-bubble {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 50px;
height: 40px;
border-radius: 6px;
font-weight: 700;
font-size: 12px;
flex-shrink: 0;
transition: all 0.2s ease;
padding: 0 8px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
border: none;
}
.score-bubble.positive {
background-color: var(--score-positive-bg);
color: var(--score-positive-text);
box-shadow: 0 1px 3px rgba(34, 139, 34, 0.2);
}
.score-bubble.negative {
background-color: var(--score-negative-bg);
color: var(--score-negative-text);
box-shadow: 0 1px 3px rgba(247, 118, 142, 0.2);
}
.score-bubble.neutral {
background-color: var(--text-secondary);
color: var(--bg-primary);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
/* ============================================
Card Meta & Details
============================================ */
.card-meta {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
font-size: 13px;
margin-bottom: 12px;
}
.dealer-name {
display: inline-block;
width: fit-content;
max-width: 100%;
font-weight: 600;
font-size: 9px;
padding: 2px 6px;
border-radius: 4px;
border: 2px solid currentColor;
background-color: transparent;
transition: all 0.2s ease;
letter-spacing: 0.3px;
}
.card-details {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--border-color);
}
.details-stats {
display: flex;
gap: 16px;
margin-bottom: 12px;
}
.stat {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--text-secondary);
}
.stat .material-symbols-outlined {
font-size: 18px;
}
.stat-value {
font-weight: 500;
}
.card-timestamp {
color: var(--text-secondary);
font-size: 12px;
margin-top: 8px;
}
/* ============================================
Mark Highlighting
============================================ */
mark {
background-color: var(--mark-bg);
color: inherit;
font-weight: 600;
border-radius: 2px;
}
/* ============================================
Mobile Responsive
============================================ */
@media (max-width: 768px) {
.cards-grid {
grid-template-columns: 1fr;
}
.container {
padding: 12px;
}
.search-input {
max-width: 100%;
}
}
/* ============================================
Loading & Spinner
============================================ */
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.spinning {
animation: spin 1s linear infinite;
}
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
color: var(--text-secondary);
}
.loading-container p {
margin-top: 16px;
font-size: 14px;
}
.loading-spinner {
font-size: 48px;
}
.icon-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.icon-button:disabled:hover {
background-color: var(--bg-input);
border-color: var(--border-color-light);
} }

70
vite.config.mjs Normal file
View File

@@ -0,0 +1,70 @@
// Plugins
import Components from "unplugin-vue-components/vite";
import Vue from "@vitejs/plugin-vue";
// Utilities
import { defineConfig } from "vite";
import { fileURLToPath, URL } from "node:url";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
Vue(),
Components(),
],
define: { "process.env": {} },
resolve: {
alias: {
"@": fileURLToPath(new URL("src", import.meta.url)),
},
extensions: [".js", ".json", ".jsx", ".mjs", ".ts", ".tsx", ".vue"],
},
server: {
port: 3000,
proxy: {
"/api": "http://localhost:8080",
},
},
css: {
preprocessorOptions: {
sass: {
api: "modern-compiler",
},
scss: {
api: "modern-compiler",
},
},
},
build: {
target: "esnext",
minify: "terser",
terserOptions: {
compress: {
drop_console: true,
},
},
rollupOptions: {
output: {
manualChunks: {
"vendor": ["axios", "dayjs", "vue-router", "vue-loading-overlay"],
},
chunkFileNames: "js/[name].[hash].js",
entryFileNames: "js/[name].[hash].js",
assetFileNames: (assetInfo) => {
const info = assetInfo.name.split(".");
const ext = info[info.length - 1];
if (/png|jpe?g|gif|tiff|bmp|ico/i.test(ext)) {
return `images/[name].[hash][extname]`;
} else if (/woff|woff2|eot|ttf|otf/i.test(ext)) {
return `fonts/[name].[hash][extname]`;
} else if (ext === "css") {
return `css/[name].[hash][extname]`;
}
return `[name].[hash][extname]`;
},
},
},
chunkSizeWarningLimit: 1000,
reportCompressedSize: true,
},
});

View File

@@ -1,7 +0,0 @@
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
proxy: "http://localhost:8080",
},
});