A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz

[api] return parent directory (dropbox/googledrive)

+31
+1
apps/api/src/xrpc/app/rocksky/dropbox/getFiles.ts
··· 112 113 const presentation = (data) => { 114 return Effect.sync(() => ({ 115 directories: data[0].map((item) => ({ 116 id: item.dropbox_directories.id, 117 name: item.dropbox_directories.name,
··· 112 113 const presentation = (data) => { 114 return Effect.sync(() => ({ 115 + parentDirectory: _.get(data, "0.0.parent", null), 116 directories: data[0].map((item) => ({ 117 id: item.dropbox_directories.id, 118 name: item.dropbox_directories.name,
+1
apps/api/src/xrpc/app/rocksky/googledrive/getFiles.ts
··· 123 124 const presentation = (data) => { 125 return Effect.sync(() => ({ 126 directories: data[0].map((item) => ({ 127 id: item.google_drive_directories.id, 128 name: item.google_drive_directories.name,
··· 123 124 const presentation = (data) => { 125 return Effect.sync(() => ({ 126 + parentDirectory: _.get(data, "0.0.parent", null), 127 directories: data[0].map((item) => ({ 128 id: item.google_drive_directories.id, 129 name: item.google_drive_directories.name,
+15
apps/web/src/pages/dropbox/Dropbox.tsx
··· 1 /* eslint-disable @typescript-eslint/no-explicit-any */ 2 import { Folder2, MusicNoteBeamed } from "@styled-icons/bootstrap"; 3 import { createColumnHelper } from "@tanstack/react-table"; 4 import ContentLoader from "react-content-loader"; 5 import Table from "../../components/Table"; 6 import { useFilesQuery } from "../../hooks/useDropbox"; ··· 65 ), 66 }), 67 ]; 68 69 /* 70 useEffect(() => { ··· 146 </div> 147 ) 148 */} 149 150 <div className="mt-[100px] overflow-x-hidden mb-[140px] "> 151 {isLoading && (
··· 1 /* eslint-disable @typescript-eslint/no-explicit-any */ 2 import { Folder2, MusicNoteBeamed } from "@styled-icons/bootstrap"; 3 import { createColumnHelper } from "@tanstack/react-table"; 4 + import { HeadingMedium } from "baseui/typography"; 5 import ContentLoader from "react-content-loader"; 6 import Table from "../../components/Table"; 7 import { useFilesQuery } from "../../hooks/useDropbox"; ··· 66 ), 67 }), 68 ]; 69 + 70 + const current_dir = "Dropbox"; 71 72 /* 73 useEffect(() => { ··· 149 </div> 150 ) 151 */} 152 + <div className="pt-[80px] fixed bg-[var(--color-background)] top-[19px] w-[770px]"> 153 + <HeadingMedium 154 + marginTop={"10px"} 155 + marginBottom={"25px"} 156 + className="!text-[var(--color-text)]" 157 + > 158 + { 159 + //current_dir === "Music" ? "Dropbox" : current_dir 160 + current_dir 161 + } 162 + </HeadingMedium> 163 + </div> 164 165 <div className="mt-[100px] overflow-x-hidden mb-[140px] "> 166 {isLoading && (
+14
apps/web/src/pages/googledrive/GoogleDrive.tsx
··· 1 /* eslint-disable @typescript-eslint/no-explicit-any */ 2 import { Folder2, MusicNoteBeamed } from "@styled-icons/bootstrap"; 3 import { createColumnHelper } from "@tanstack/react-table"; 4 import ContentLoader from "react-content-loader"; 5 import Table from "../../components/Table"; 6 import { useFilesQuery } from "../../hooks/useGoogleDrive"; ··· 111 // eslint-disable-next-line react-hooks/exhaustive-deps 112 }, [props.fileId]); 113 */ 114 115 return ( 116 <Main> ··· 141 </HeadingMedium> 142 </div> 143 )*/} 144 145 <div className="mt-[100px] overflow-x-hidden mb-[140px]"> 146 {isLoading && (
··· 1 /* eslint-disable @typescript-eslint/no-explicit-any */ 2 import { Folder2, MusicNoteBeamed } from "@styled-icons/bootstrap"; 3 import { createColumnHelper } from "@tanstack/react-table"; 4 + import { HeadingMedium } from "baseui/typography"; 5 import ContentLoader from "react-content-loader"; 6 import Table from "../../components/Table"; 7 import { useFilesQuery } from "../../hooks/useGoogleDrive"; ··· 112 // eslint-disable-next-line react-hooks/exhaustive-deps 113 }, [props.fileId]); 114 */ 115 + const current_dir = "Google Drive"; 116 117 return ( 118 <Main> ··· 143 </HeadingMedium> 144 </div> 145 )*/} 146 + <div className="pt-[80px] fixed bg-[var(--color-background)] top-[19px] w-[770px]"> 147 + <HeadingMedium 148 + marginTop={"10px"} 149 + marginBottom={"25px"} 150 + className="!text-[var(--color-text)]" 151 + > 152 + { 153 + //current_dir === "Music" ? "Google Drive" : current_dir 154 + current_dir 155 + } 156 + </HeadingMedium> 157 + </div> 158 159 <div className="mt-[100px] overflow-x-hidden mb-[140px]"> 160 {isLoading && (