mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Clean up Electron branch: remove unnecessary changes
- Remove tsconfig.json modification (use triple-slash references instead) - Remove Vite-specific ?url imports (base: './' handles assets correctly) - Add triple-slash reference directives to files using window.electron - Add cleanup documentation This keeps source changes minimal while maintaining full Electron functionality.
This commit is contained in:
10 files changed
+128
-6
No files matched your search
@@ -1,6 +1,8 @@
|
||||
// NOTE: This file should normally not be modified unless you are adding a new provider.
|
||||
// To add new routes, edit the AppRouter.tsx file.
|
||||
|
||||
/// <reference path="../electron/electron.d.ts" />
|
||||
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { createHead, UnheadProvider } from '@unhead/react/client';
|
||||
import { InferSeoMetaPlugin } from '@unhead/addons';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/// <reference path="../electron/electron.d.ts" />
|
||||
|
||||
import { BrowserRouter, HashRouter, Route, Routes } from "react-router-dom";
|
||||
import { ScrollToTop } from "./components/ScrollToTop";
|
||||
import { SessionMonitor } from "./components/SessionMonitor";
|
||||
|
||||
@@ -2,7 +2,6 @@ import React, { useState } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import badgeSvg from '/badge.svg?url';
|
||||
import {
|
||||
ExternalLink,
|
||||
Edit,
|
||||
@@ -568,7 +567,7 @@ export function AppShowcaseCard({ app, onEdit, showModerationControls, hideAppro
|
||||
className="flex-1"
|
||||
>
|
||||
<img
|
||||
src={badgeSvg}
|
||||
src="/badge.svg"
|
||||
alt="Edit with Shakespeare"
|
||||
className="h-6 hover:opacity-80 transition-opacity"
|
||||
/>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import shakespeareLogo from '/shakespeare.svg?url';
|
||||
|
||||
export interface ShakespeareLogoProps {
|
||||
className?: string;
|
||||
}
|
||||
@@ -7,7 +5,7 @@ export interface ShakespeareLogoProps {
|
||||
export function ShakespeareLogo({ className }: ShakespeareLogoProps) {
|
||||
return (
|
||||
<img
|
||||
src={shakespeareLogo}
|
||||
src="/shakespeare.svg"
|
||||
alt="Shakespeare"
|
||||
className={className}
|
||||
/>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/// <reference path="../../electron/electron.d.ts" />
|
||||
|
||||
import { useState, useRef, useEffect, useCallback } from 'react';
|
||||
import { ScrollArea } from '@/components/ui/scroll-area';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/// <reference path="../../electron/electron.d.ts" />
|
||||
|
||||
import type { JSRuntimeFS, DirectoryEntry } from './JSRuntime';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/// <reference path="../../../electron/electron.d.ts" />
|
||||
|
||||
import { z } from "zod";
|
||||
import type { Tool } from "./Tool";
|
||||
import type { JSRuntimeFS } from "../JSRuntime";
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/// <reference path="../electron/electron.d.ts" />
|
||||
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
// Import polyfills first
|
||||
|
||||
Reference in new issue
Block a user