mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-11 18:32:27 +00:00
Compare commits
1 Commits
main
...
fd59317caf
Author | SHA1 | Date | |
---|---|---|---|
|
fd59317caf |
11
Caddyfile
11
Caddyfile
@@ -1,8 +1,5 @@
|
||||
rfd.davegallant.ca {
|
||||
file_server
|
||||
reverse_proxy /api/* backend:8080
|
||||
}
|
||||
rfd.fyi
|
||||
|
||||
rfd.fyi {
|
||||
redir https://rfd.davegallant.ca{uri} 301
|
||||
}
|
||||
file_server
|
||||
|
||||
reverse_proxy /api/* backend:8080
|
||||
|
@@ -10,7 +10,7 @@ COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM caddy:2.10.0-alpine as runtime
|
||||
FROM caddy:2.9.1-alpine as runtime
|
||||
|
||||
WORKDIR /my-site
|
||||
|
||||
|
@@ -1,9 +1,11 @@
|
||||
# rfd-fyi
|
||||
# rfd.fyi
|
||||
|
||||
This repository provides a simple, less-distracting overlay for hot deals posted on https://forums.redflagdeals.com.
|
||||
|
||||
The frontend is made with Vue 3 and the backend is written in Go. The backend exists for caching purposes; to prevent excessive requests to RedFlagDeals itself.
|
||||
|
||||
It is hosted at [rfd.fyi](https://rfd.fyi).
|
||||
|
||||
## Local Development
|
||||
|
||||
To get up and running locally: in one pane/tab, run:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
# syntax=docker/dockerfile:1.17
|
||||
# syntax=docker/dockerfile:1.14
|
||||
FROM cgr.dev/chainguard/go:latest as build
|
||||
|
||||
WORKDIR /src
|
||||
|
1045
package-lock.json
generated
1045
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@
|
||||
"dependencies": {
|
||||
"@github/hotkey": "^3.0.0",
|
||||
"@popperjs/core": "^2.11.8",
|
||||
"axios": "^1.11.0",
|
||||
"axios": "^1.6.0",
|
||||
"bootstrap": "^5.3.1",
|
||||
"bootstrap-vue": "^2.22.0",
|
||||
"core-js": "^3.32.1",
|
||||
@@ -20,7 +20,7 @@
|
||||
"vue": "^3.3.4",
|
||||
"vue-github-button": "^3.0.3",
|
||||
"vue-loading-overlay": "^6.0.3",
|
||||
"vue-router": "4.5.1"
|
||||
"vue-router": "4.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.22.10",
|
||||
@@ -31,7 +31,7 @@
|
||||
"@vue/cli-plugin-eslint": "~5.0.0",
|
||||
"@vue/cli-service": "^5.0.8",
|
||||
"eslint": "^8.47.0",
|
||||
"eslint-plugin-vue": "^9.17.0",
|
||||
"eslint-plugin-vue": "^10.0.0",
|
||||
"postcss-cli": "^11.0.0"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
@@ -10,7 +10,7 @@
|
||||
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>
|
||||
<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>
|
||||
|
29
src/App.vue
29
src/App.vue
@@ -2,6 +2,7 @@
|
||||
import axios from "axios";
|
||||
import moment from "moment";
|
||||
import Loading from "vue-loading-overlay";
|
||||
import GithubButton from "vue-github-button";
|
||||
import { install } from "@github/hotkey";
|
||||
|
||||
import "vue-loading-overlay/dist/css/index.css";
|
||||
@@ -117,14 +118,10 @@ export default {
|
||||
return v.replace(re, (matchedText) => `<mark>${matchedText}</mark>`);
|
||||
};
|
||||
},
|
||||
showBeforeTargetDate() {
|
||||
const now = new Date();
|
||||
const target = new Date('2025-08-20T00:00:00');
|
||||
return now < target;
|
||||
}
|
||||
},
|
||||
components: {
|
||||
Loading,
|
||||
GithubButton,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -209,9 +206,21 @@ export default {
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div v-if="showBeforeTargetDate">
|
||||
<div v-if="!isMobile()">
|
||||
<footer class="fixed-bottom">
|
||||
PSA: <a href="https://rfd.fyi">rfd.fyi</a> will not be renewed after 2025-08-20. Please use <a href="https://rfd.davegallant.ca">rfd.davegallant.ca</a>.
|
||||
<small
|
||||
>Press '/' to begin filtering (i.e.
|
||||
<a
|
||||
href="/#/filter=costco"
|
||||
onclick="setTimeout(location.reload.bind(location), 1)"
|
||||
>https://rfd.fyi/#/filter=costco</a
|
||||
>)</small
|
||||
>
|
||||
<div class="footer-right">
|
||||
<github-button href="https://github.com/davegallant/rfd-fyi"
|
||||
>Star</github-button
|
||||
>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
@@ -225,10 +234,4 @@ export default {
|
||||
text-align: center;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
.fixed-bottom {
|
||||
background: #ffc;
|
||||
color: black;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user