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
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user