mirror of https://github.com/jetkvm/kvm.git
copyedits (#232)
* fix case * fix typos * fix css class names --------- Co-authored-by: Carl Downing <carl@undivided.io>
This commit is contained in:
parent
554121a20b
commit
1ec87f043f
|
@ -151,7 +151,7 @@ export default function Actionbar({
|
||||||
<Button
|
<Button
|
||||||
size="XS"
|
size="XS"
|
||||||
theme="light"
|
theme="light"
|
||||||
text="Wake on Lan"
|
text="Wake on LAN"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setDisableFocusTrap(true);
|
setDisableFocusTrap(true);
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default function DashboardNavbar({
|
||||||
if (!res.ok) return;
|
if (!res.ok) return;
|
||||||
|
|
||||||
setUser(null);
|
setUser(null);
|
||||||
// The root route will redirect to appropiate login page, be it the local one or the cloud one
|
// The root route will redirect to appropriate login page, be it the local one or the cloud one
|
||||||
navigate("/");
|
navigate("/");
|
||||||
}, [navigate, setUser]);
|
}, [navigate, setUser]);
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ function getRelativeTimeString(date: Date | number, lang = navigator.language):
|
||||||
// Get the amount of seconds between the given date and now
|
// Get the amount of seconds between the given date and now
|
||||||
const deltaSeconds = Math.round((timeMs - Date.now()) / 1000);
|
const deltaSeconds = Math.round((timeMs - Date.now()) / 1000);
|
||||||
|
|
||||||
// Array reprsenting one minute, hour, day, week, month, etc in seconds
|
// Array representing one minute, hour, day, week, month, etc in seconds
|
||||||
const cutoffs = [60, 3600, 86400, 86400 * 7, 86400 * 30, 86400 * 365, Infinity];
|
const cutoffs = [60, 3600, 86400, 86400 * 7, 86400 * 30, 86400 * 365, Infinity];
|
||||||
|
|
||||||
// Array equivalent to the above but in the string representation of the units
|
// Array equivalent to the above but in the string representation of the units
|
||||||
|
@ -52,7 +52,7 @@ export default function KvmCard({
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card>
|
||||||
<div className="px-5 py-5 space-y-3">
|
<div className="px-5 py-5 space-y-3">
|
||||||
<div className="flex justify-between items-cente">
|
<div className="flex justify-between items-center">
|
||||||
<div className="space-y-1.5">
|
<div className="space-y-1.5">
|
||||||
<div className="text-lg font-bold leading-none text-black dark:text-white">
|
<div className="text-lg font-bold leading-none text-black dark:text-white">
|
||||||
{title}
|
{title}
|
||||||
|
|
|
@ -68,7 +68,7 @@ export default function USBStateStatus({
|
||||||
};
|
};
|
||||||
const props = StatusCardProps[state];
|
const props = StatusCardProps[state];
|
||||||
if (!props) {
|
if (!props) {
|
||||||
console.log("Unsupport USB state: ", state);
|
console.log("Unsupported USB state: ", state);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ export const FeatureFlagProvider = ({
|
||||||
}) => {
|
}) => {
|
||||||
const isFeatureEnabled = (minAppVersion: string) => {
|
const isFeatureEnabled = (minAppVersion: string) => {
|
||||||
// If no version is set, feature is disabled.
|
// If no version is set, feature is disabled.
|
||||||
// The feature flag component can deside what to display as a fallback - either omit the component or like a "please upgrade to enable".
|
// The feature flag component can decide what to display as a fallback - either omit the component or like a "please upgrade to enable".
|
||||||
if (!appVersion) return false;
|
if (!appVersion) return false;
|
||||||
|
|
||||||
// Extract the base versions without prerelease identifier
|
// Extract the base versions without prerelease identifier
|
||||||
|
|
|
@ -121,7 +121,7 @@ export function Dialog({ onClose }: { onClose: () => void }) {
|
||||||
triggerError(err instanceof Error ? err.message : String(err));
|
triggerError(err instanceof Error ? err.message : String(err));
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
// We do this beacues the mounting is too fast and the UI gets choppy
|
// We do this because the mounting is too fast and the UI gets choppy
|
||||||
// and the modal exit animation for like 500ms
|
// and the modal exit animation for like 500ms
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setMountInProgress(false);
|
setMountInProgress(false);
|
||||||
|
@ -283,7 +283,7 @@ function ModeSelectionView({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full space-y-4">
|
<div className="w-full space-y-4">
|
||||||
<div className="asnimate-fadeIn space-y-0">
|
<div className="animate-fadeIn space-y-0">
|
||||||
<h2 className="text-lg font-bold leading-tight dark:text-white">
|
<h2 className="text-lg font-bold leading-tight dark:text-white">
|
||||||
Virtual Media Source
|
Virtual Media Source
|
||||||
</h2>
|
</h2>
|
||||||
|
|
Loading…
Reference in New Issue