-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from fosslife/dev
- Loading branch information
Showing
28 changed files
with
1,123 additions
and
471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
* text=auto eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified | ||
*.bin binary | ||
*.exe binary | ||
*.dll binary | ||
*.so binary | ||
*.dylib binary | ||
*.png binary | ||
*.jpg binary | ||
*.gif binary | ||
*.ico binary | ||
*.mov binary | ||
*.mp4 binary | ||
*.mp3 binary | ||
*.ttf binary | ||
*.woff binary | ||
*.woff2 binary | ||
*.eot binary | ||
*.pdf binary | ||
*.zip binary | ||
*.tar.gz binary | ||
*.rar binary | ||
*.7z binary | ||
*.iso binary | ||
*.dmg binary | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
|
||
#!/bin/sh | ||
# Add debugging | ||
set -e | ||
echo "🚀 Starting pre-commit hook..." | ||
|
||
# Get only staged files | ||
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACMR | grep -E '\.(ts|tsx|js|jsx)$') | ||
echo "📁 Getting staged files..." | ||
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACMR | grep -E '\.(ts|tsx|js|jsx)$' || true) | ||
echo "Found files: $STAGED_FILES" | ||
|
||
if [ -n "$STAGED_FILES" ]; then | ||
echo "🔍 Checking staged files..." | ||
|
||
# Run prettier on staged files | ||
yarn prettier --write $STAGED_FILES | ||
echo "Running Prettier..." | ||
yarn prettier --write $STAGED_FILES || { | ||
echo "❌ Prettier formatting failed" | ||
exit 1 | ||
} | ||
|
||
# Run eslint on staged files | ||
yarn eslint $STAGED_FILES --fix | ||
echo "Running ESLint..." | ||
yarn eslint $STAGED_FILES --fix || { | ||
echo "❌ ESLint check failed" | ||
exit 1 | ||
} | ||
|
||
# Add back the formatted/linted files to staging | ||
echo "Adding formatted files back to staging..." | ||
git add $STAGED_FILES | ||
fi | ||
|
||
# Run type checking | ||
echo "🔍 Type checking..." | ||
yarn tsc --noEmit | ||
|
||
# Run tests (optional, as they might take long) | ||
# echo "🧪 Running tests..." | ||
# yarn test | ||
echo "🔍 Running TypeScript check..." | ||
yarn tsc --noEmit || { | ||
echo "❌ TypeScript check failed" | ||
exit 1 | ||
} | ||
|
||
echo "✅ Pre-commit checks passed!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
printWidth: 120, | ||
tabWidth: 2, | ||
singleQuote: false, | ||
trailingComma: "es5", | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,23 +13,24 @@ | |
"windows": [ | ||
{ | ||
"title": "trafalgar", | ||
"width": 800, | ||
"height": 600 | ||
"width": 1000, | ||
"height": 800 | ||
} | ||
], | ||
"security": { | ||
"csp": null | ||
"assetProtocol": { | ||
"enable": true, | ||
"scope": ["**/*"] | ||
}, | ||
"csp": { | ||
"default-src": ["'self'", "asset: http://asset.localhost"] | ||
} | ||
} | ||
}, | ||
|
||
"bundle": { | ||
"active": true, | ||
"targets": "all", | ||
"icon": [ | ||
"icons/32x32.png", | ||
"icons/128x128.png", | ||
"icons/[email protected]", | ||
"icons/icon.icns", | ||
"icons/icon.ico" | ||
] | ||
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/[email protected]", "icons/icon.icns", "icons/icon.ico"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
import { Outlet } from "react-router-dom"; | ||
import { AppShell } from "@mantine/core"; | ||
import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels"; | ||
import { Sidebar } from "./components/Sidebar"; | ||
import { Box, Group } from "@mantine/core"; | ||
|
||
export function App() { | ||
return ( | ||
<AppShell padding="md" navbar={{ width: 180, breakpoint: "sm" }}> | ||
<AppShell.Navbar> | ||
<Sidebar /> | ||
</AppShell.Navbar> | ||
|
||
<AppShell.Main> | ||
<Outlet /> | ||
</AppShell.Main> | ||
</AppShell> | ||
<Group align="stretch" h="100%" wrap="nowrap"> | ||
<PanelGroup direction="horizontal" autoSaveId="app-layout"> | ||
<Panel defaultSize={15} maxSize={25}> | ||
<Sidebar /> | ||
</Panel> | ||
<PanelResizeHandle style={{ backgroundColor: "gainsboro", width: 1 }} /> | ||
<Panel> | ||
<Box h="100%" p="xs"> | ||
<Outlet /> | ||
</Box> | ||
</Panel> | ||
</PanelGroup> | ||
</Group> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
.selected { | ||
background-color: light-dark( | ||
var(--mantine-color-blue-2), | ||
var(--mantine-color-blue-9) | ||
) !important; | ||
background-color: light-dark(var(--mantine-color-blue-2), var(--mantine-color-blue-9)) !important; | ||
} | ||
|
||
.selected:hover { | ||
background-color: light-dark( | ||
var(--mantine-color-blue-1), | ||
var(--mantine-color-blue-8) | ||
); | ||
background-color: light-dark(var(--mantine-color-blue-1), var(--mantine-color-blue-8)); | ||
} | ||
|
||
.tableContainer { | ||
position: relative; | ||
overflow: auto; | ||
padding-right: 2px; | ||
height: 100%; | ||
} | ||
|
||
.table { | ||
position: relative; | ||
border-collapse: separate; | ||
border-spacing: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/components/FileExplorer/components/FileCard/FileCard.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.cardButton { | ||
width: 100%; | ||
} | ||
|
||
.card { | ||
transition: all 0.2s ease; | ||
cursor: pointer; | ||
user-select: none; | ||
height: 100px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.card:hover { | ||
background-color: var(--mantine-color-gray-0); | ||
} | ||
|
||
.selected { | ||
background-color: var(--mantine-color-blue-0); | ||
border: 1px solid var(--mantine-color-blue-5); | ||
} | ||
|
||
.selected:hover { | ||
background-color: var(--mantine-color-blue-0); | ||
} |
Oops, something went wrong.