v1.8.0 #429
@@ -402,6 +402,7 @@ export function AdminSettings({
|
|||||||
setExportLoading(true);
|
setExportLoading(true);
|
||||||
try {
|
try {
|
||||||
const isDev =
|
const isDev =
|
||||||
|
!isElectron() &&
|
||||||
process.env.NODE_ENV === "development" &&
|
process.env.NODE_ENV === "development" &&
|
||||||
(window.location.port === "3000" ||
|
(window.location.port === "3000" ||
|
||||||
window.location.port === "5173" ||
|
window.location.port === "5173" ||
|
||||||
@@ -472,6 +473,7 @@ export function AdminSettings({
|
|||||||
setImportLoading(true);
|
setImportLoading(true);
|
||||||
try {
|
try {
|
||||||
const isDev =
|
const isDev =
|
||||||
|
!isElectron() &&
|
||||||
process.env.NODE_ENV === "development" &&
|
process.env.NODE_ENV === "development" &&
|
||||||
(window.location.port === "3000" ||
|
(window.location.port === "3000" ||
|
||||||
window.location.port === "5173" ||
|
window.location.port === "5173" ||
|
||||||
@@ -564,6 +566,7 @@ export function AdminSettings({
|
|||||||
setSessionsLoading(true);
|
setSessionsLoading(true);
|
||||||
try {
|
try {
|
||||||
const isDev =
|
const isDev =
|
||||||
|
!isElectron() &&
|
||||||
process.env.NODE_ENV === "development" &&
|
process.env.NODE_ENV === "development" &&
|
||||||
(window.location.port === "3000" ||
|
(window.location.port === "3000" ||
|
||||||
window.location.port === "5173" ||
|
window.location.port === "5173" ||
|
||||||
@@ -610,6 +613,7 @@ export function AdminSettings({
|
|||||||
async () => {
|
async () => {
|
||||||
try {
|
try {
|
||||||
const isDev =
|
const isDev =
|
||||||
|
!isElectron() &&
|
||||||
process.env.NODE_ENV === "development" &&
|
process.env.NODE_ENV === "development" &&
|
||||||
(window.location.port === "3000" ||
|
(window.location.port === "3000" ||
|
||||||
window.location.port === "5173" ||
|
window.location.port === "5173" ||
|
||||||
@@ -660,6 +664,7 @@ export function AdminSettings({
|
|||||||
async () => {
|
async () => {
|
||||||
try {
|
try {
|
||||||
const isDev =
|
const isDev =
|
||||||
|
!isElectron() &&
|
||||||
process.env.NODE_ENV === "development" &&
|
process.env.NODE_ENV === "development" &&
|
||||||
(window.location.port === "3000" ||
|
(window.location.port === "3000" ||
|
||||||
window.location.port === "5173" ||
|
window.location.port === "5173" ||
|
||||||
|
|||||||
@@ -418,6 +418,7 @@ export const Terminal = forwardRef<TerminalHandle, SSHTerminalProps>(
|
|||||||
isConnectingRef.current = true;
|
isConnectingRef.current = true;
|
||||||
|
|
||||||
const isDev =
|
const isDev =
|
||||||
|
!isElectron() &&
|
||||||
process.env.NODE_ENV === "development" &&
|
process.env.NODE_ENV === "development" &&
|
||||||
(window.location.port === "3000" ||
|
(window.location.port === "3000" ||
|
||||||
window.location.port === "5173" ||
|
window.location.port === "5173" ||
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ interface AuthProps extends React.ComponentProps<"div"> {
|
|||||||
loggedIn: boolean;
|
loggedIn: boolean;
|
||||||
authLoading: boolean;
|
authLoading: boolean;
|
||||||
setDbError: (error: string | null) => void;
|
setDbError: (error: string | null) => void;
|
||||||
|
dbError?: string | null;
|
||||||
onAuthSuccess: (authData: {
|
onAuthSuccess: (authData: {
|
||||||
isAdmin: boolean;
|
isAdmin: boolean;
|
||||||
username: string | null;
|
username: string | null;
|
||||||
@@ -53,6 +54,7 @@ export function Auth({
|
|||||||
loggedIn,
|
loggedIn,
|
||||||
authLoading,
|
authLoading,
|
||||||
setDbError,
|
setDbError,
|
||||||
|
dbError,
|
||||||
onAuthSuccess,
|
onAuthSuccess,
|
||||||
...props
|
...props
|
||||||
}: AuthProps) {
|
}: AuthProps) {
|
||||||
|
|||||||
Reference in New Issue
Block a user