Compare commits

...

5 Commits

6 changed files with 20 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -52,17 +52,21 @@ const DownloadAppBanner = () => {
</a>{' '} </a>{' '}
to download the app for the best experience. to download the app for the best experience.
</p> </p>
{!navigator?.userAgent.includes('Chrome') && <p className="mt-6"> {!navigator?.userAgent.includes('Chrome') && (
If you want to stay here on the web-app, we currently only support Chrome. Please use{' '} <p className="mt-6">
<a If you want to stay here on the web-app, we currently only support
href="https://www.google.com/chrome/" Chrome. Please use{' '}
rel="noopener noreferrer" <a
target="_blank" href="https://www.google.com/chrome/"
className="!text-warn-80 dark:!text-warn-80 dark:hover:!text-warn-70 underline" rel="noopener noreferrer"
> target="_blank"
this link className="!text-warn-80 dark:!text-warn-80 dark:hover:!text-warn-70 underline"
</a> to download it. >
</p>} this link
</a>{' '}
to download it.
</p>
)}
</div> </div>
</Dialog.Panel> </Dialog.Panel>
</Dialog> </Dialog>

View File

@ -38,7 +38,10 @@ export async function renameProjectDirectory(
// Make sure the new name does not exist. // Make sure the new name does not exist.
const newPath = window.electron.path.join( const newPath = window.electron.path.join(
projectPath.split('/').slice(0, -1).join('/'), projectPath
.split(window.electron.sep)
.slice(0, -1)
.join(window.electron.sep),
newName newName
) )
try { try {
@ -179,7 +182,7 @@ const collectAllFilesRecursiveFrom = async (path: string) => {
return Promise.reject(new Error(`Path ${path} is not a directory`)) return Promise.reject(new Error(`Path ${path} is not a directory`))
} }
const pathParts = path.split('/') const pathParts = path.split(window.electron.sep)
let entry: FileEntry = { let entry: FileEntry = {
name: pathParts.slice(-1)[0], name: pathParts.slice(-1)[0],
path, path,