mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-10 01:52:27 +00:00
Update css
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<body>
|
||||
<input
|
||||
class="form-control bg-dark text-light"
|
||||
class="form-control bg-dark text-light mousetrap"
|
||||
type="text"
|
||||
placeholder="Search"
|
||||
v-model="filter"
|
||||
@@ -69,12 +69,16 @@ export default {
|
||||
this.fetchDeals();
|
||||
Mousetrap.bind("/", this.focusSearch, "keyup");
|
||||
Mousetrap.bind("r", this.loadDeals);
|
||||
Mousetrap.bind("escape", this.blurSearch);
|
||||
this.interval = setInterval(() => this.fetchDeals(), 10000);
|
||||
},
|
||||
methods: {
|
||||
focusSearch() {
|
||||
this.$refs.search.focus();
|
||||
},
|
||||
blurSearch() {
|
||||
this.$refs.search.blur();
|
||||
},
|
||||
fetchDeals() {
|
||||
axios
|
||||
.get("api/v1/topics")
|
||||
|
Reference in New Issue
Block a user