mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-06-16 20:07:33 +02:00
chore: system
This commit is contained in:
parent
aa928f7094
commit
97c023df91
78 changed files with 15225 additions and 15225 deletions
218
app.vue
218
app.vue
|
@ -1,109 +1,109 @@
|
|||
<template>
|
||||
<div>
|
||||
<Noise />
|
||||
<NuxtPage />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { listen } from "@tauri-apps/api/event";
|
||||
import { app, window } from "@tauri-apps/api";
|
||||
import { disable, enable } from "@tauri-apps/plugin-autostart";
|
||||
import { onMounted } from "vue";
|
||||
import { keyboard } from "wrdu-keyboard";
|
||||
|
||||
const { $settings } = useNuxtApp();
|
||||
keyboard.init();
|
||||
|
||||
onMounted(async () => {
|
||||
await listen("settings", async () => {
|
||||
await navigateTo("/settings");
|
||||
await app.show();
|
||||
await window.getCurrentWindow().show();
|
||||
});
|
||||
|
||||
if ((await $settings.getSetting("autostart")) === "true") {
|
||||
await enable();
|
||||
} else {
|
||||
await disable();
|
||||
}
|
||||
|
||||
await listen("main_route", async () => {
|
||||
await navigateTo("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@font-face {
|
||||
font-family: SFRoundedRegular;
|
||||
font-display: swap;
|
||||
src: url("/fonts/SFRoundedRegular.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: SFRoundedMedium;
|
||||
font-display: swap;
|
||||
src: url("/fonts/SFRoundedMedium.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: SFRoundedSemiBold;
|
||||
font-display: swap;
|
||||
src: url("/fonts/SFRoundedSemiBold.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: CommitMono;
|
||||
font-display: swap;
|
||||
src: url("/fonts/CommitMono.woff2") format("woff2");
|
||||
}
|
||||
|
||||
:root {
|
||||
--background: #2e2d2b;
|
||||
--accent: #feb453;
|
||||
--border: #ffffff0d;
|
||||
|
||||
--red: #F84E4E;
|
||||
|
||||
--text: #e5dfd5;
|
||||
--text-secondary: #ada9a1;
|
||||
--text-muted: #78756f;
|
||||
|
||||
--sidebar-width: 286px;
|
||||
--bottom-bar-height: 39px;
|
||||
--info-panel-height: 160px;
|
||||
--content-view-height: calc(
|
||||
100% - var(--search-height) - var(--info-panel-height) -
|
||||
var(--bottom-bar-height)
|
||||
);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
text-decoration: none;
|
||||
font-family: SFRoundedRegular;
|
||||
scroll-behavior: smooth;
|
||||
scrollbar-width: thin;
|
||||
user-select: none;
|
||||
|
||||
--os-handle-bg: #ada9a1;
|
||||
--os-handle-bg-hover: #78756f;
|
||||
--os-handle-bg-active: #78756f;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
background-color: transparent;
|
||||
width: 750px;
|
||||
height: 474px;
|
||||
z-index: -1;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.os-scrollbar-horizontal {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<div>
|
||||
<Noise />
|
||||
<NuxtPage />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { listen } from "@tauri-apps/api/event";
|
||||
import { app, window } from "@tauri-apps/api";
|
||||
import { disable, enable } from "@tauri-apps/plugin-autostart";
|
||||
import { onMounted } from "vue";
|
||||
import { keyboard } from "wrdu-keyboard";
|
||||
|
||||
const { $settings } = useNuxtApp();
|
||||
keyboard.init();
|
||||
|
||||
onMounted(async () => {
|
||||
await listen("settings", async () => {
|
||||
await navigateTo("/settings");
|
||||
await app.show();
|
||||
await window.getCurrentWindow().show();
|
||||
});
|
||||
|
||||
if ((await $settings.getSetting("autostart")) === "true") {
|
||||
await enable();
|
||||
} else {
|
||||
await disable();
|
||||
}
|
||||
|
||||
await listen("main_route", async () => {
|
||||
await navigateTo("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@font-face {
|
||||
font-family: SFRoundedRegular;
|
||||
font-display: swap;
|
||||
src: url("/fonts/SFRoundedRegular.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: SFRoundedMedium;
|
||||
font-display: swap;
|
||||
src: url("/fonts/SFRoundedMedium.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: SFRoundedSemiBold;
|
||||
font-display: swap;
|
||||
src: url("/fonts/SFRoundedSemiBold.otf") format("opentype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: CommitMono;
|
||||
font-display: swap;
|
||||
src: url("/fonts/CommitMono.woff2") format("woff2");
|
||||
}
|
||||
|
||||
:root {
|
||||
--background: #2e2d2b;
|
||||
--accent: #feb453;
|
||||
--border: #ffffff0d;
|
||||
|
||||
--red: #F84E4E;
|
||||
|
||||
--text: #e5dfd5;
|
||||
--text-secondary: #ada9a1;
|
||||
--text-muted: #78756f;
|
||||
|
||||
--sidebar-width: 286px;
|
||||
--bottom-bar-height: 39px;
|
||||
--info-panel-height: 160px;
|
||||
--content-view-height: calc(
|
||||
100% - var(--search-height) - var(--info-panel-height) -
|
||||
var(--bottom-bar-height)
|
||||
);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
text-decoration: none;
|
||||
font-family: SFRoundedRegular;
|
||||
scroll-behavior: smooth;
|
||||
scrollbar-width: thin;
|
||||
user-select: none;
|
||||
|
||||
--os-handle-bg: #ada9a1;
|
||||
--os-handle-bg-hover: #78756f;
|
||||
--os-handle-bg-active: #78756f;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
background-color: transparent;
|
||||
width: 750px;
|
||||
height: 474px;
|
||||
z-index: -1;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.os-scrollbar-horizontal {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue