Skip to content

Commit

Permalink
Merge pull request #188 from AOSSIE-Org/revert-157-setup-and-albumLoa…
Browse files Browse the repository at this point in the history
…der-fix

Revert "Fixed setup page responsiveness and album page loader"
  • Loading branch information
Pranav0-0Aggarwal authored Jan 1, 2025
2 parents 8355abf + fc546f3 commit 0929050
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 237 deletions.
3 changes: 1 addition & 2 deletions frontend/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/
dist/
env.d.ts
src-tauri/target/
env.d.ts
134 changes: 18 additions & 116 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"lucide-react": "^0.400.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-query": "^3.39.3",
"react-router-dom": "^6.24.1",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7"
Expand Down
10 changes: 7 additions & 3 deletions frontend/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"plugins": {
"updater": {
"active": true,
"endpoints": ["https://server.com//api/v1/tauri/update"],
"endpoints": [
"https://server.com//api/v1/tauri/update"
],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEI3ODc5QjNDMERGMzlCMUEKUldRYW0vTU5QSnVIdHplYktOV3hKKzdmSGd6ZVN3eTg4Q2ExbmVTbk4yN0pMWjZLYXl1M1ZzN3AK"
}
Expand All @@ -41,10 +43,12 @@
],
"security": {
"assetProtocol": {
"scope": ["**"],
"scope": [
"**"
],
"enable": true
},
"csp": null
}
}
}
}
11 changes: 2 additions & 9 deletions frontend/src/components/Album/Album.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
deleteAlbums,
fetchAllAlbums,
} from '../../../api/api-functions/albums';
import { LoadingScreen } from '../LoadingScreen/LoadingScreen';
const AlbumsView: React.FC = () => {
const { successData: albums, isLoading } = usePictoQuery({
queryFn: fetchAllAlbums,
Expand All @@ -30,14 +29,8 @@ const AlbumsView: React.FC = () => {
description: string;
} | null>(null);

if (isLoading){
return (
<div className="container flex w-full items-center justify-center">
<LoadingScreen/>
</div>
);
}

if (isLoading) return <div>Loading albums...</div>;

const showErrorDialog = (title: string, err: unknown) => {
setErrorDialogContent({
title,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/FolderPicker/FolderPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const FolderPicker: React.FC<FolderPickerProps> = ({
<Button
onClick={pickFolder}
variant="outline"
className={`flex items-center justify-center border-gray-400 text-gray-100 hover:bg-accent dark:text-gray-50 dark:hover:bg-white/10 ${className} `}
className={`flex items-center justify-center border-gray-500 text-gray-700 hover:bg-accent dark:text-gray-50 dark:hover:bg-white/10 ${className} `}
>
<FolderPlus className="h-[18px] w-[18px]" />
<p className={`ml-2 ${!settingsPage && 'hidden lg:inline'}`}>
Expand Down
Loading

0 comments on commit 0929050

Please sign in to comment.