mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-22 05:34:04 +02:00
feat: add new color variable for red and update SQL query in history management to include additional fields
This commit is contained in:
parent
ddd92a70e2
commit
be1718d9a5
3 changed files with 8 additions and 2 deletions
2
app.vue
2
app.vue
|
@ -64,6 +64,8 @@ onMounted(async () => {
|
||||||
--accent: #feb453;
|
--accent: #feb453;
|
||||||
--border: #ffffff0d;
|
--border: #ffffff0d;
|
||||||
|
|
||||||
|
--red: #F84E4E;
|
||||||
|
|
||||||
--text: #e5dfd5;
|
--text: #e5dfd5;
|
||||||
--text-secondary: #ada9a1;
|
--text-secondary: #ada9a1;
|
||||||
--text-muted: #78756f;
|
--text-muted: #78756f;
|
||||||
|
|
|
@ -81,7 +81,7 @@ import { KeyValues, KeyLabels } from "../types/keys";
|
||||||
import { disable, enable } from "@tauri-apps/plugin-autostart";
|
import { disable, enable } from "@tauri-apps/plugin-autostart";
|
||||||
import { useNuxtApp } from "#app";
|
import { useNuxtApp } from "#app";
|
||||||
import BottomBar from "../components/BottomBar.vue";
|
import BottomBar from "../components/BottomBar.vue";
|
||||||
import IconsEnter from "~/components/Icons/Enter.vue";
|
import IconsEnter from "~/components/Keys/Enter.vue";
|
||||||
|
|
||||||
const activeModifiers = reactive<Set<KeyValues>>(new Set());
|
const activeModifiers = reactive<Set<KeyValues>>(new Set());
|
||||||
const isKeybindInputFocused = ref(false);
|
const isKeybindInputFocused = ref(false);
|
||||||
|
|
|
@ -71,8 +71,12 @@ pub async fn add_history_item(
|
||||||
Some(_) => {
|
Some(_) => {
|
||||||
sqlx
|
sqlx
|
||||||
::query(
|
::query(
|
||||||
"UPDATE history SET timestamp = strftime('%Y-%m-%dT%H:%M:%f+00:00', 'now') WHERE content = ? AND content_type = ?"
|
"UPDATE history SET source = ?, source_icon = ?, timestamp = strftime('%Y-%m-%dT%H:%M:%f+00:00', 'now'), favicon = ?, language = ? WHERE content = ? AND content_type = ?"
|
||||||
)
|
)
|
||||||
|
.bind(&source)
|
||||||
|
.bind(&source_icon)
|
||||||
|
.bind(&favicon)
|
||||||
|
.bind(&language)
|
||||||
.bind(&content)
|
.bind(&content)
|
||||||
.bind(&content_type)
|
.bind(&content_type)
|
||||||
.execute(&*pool).await
|
.execute(&*pool).await
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue