Compare commits
5 Commits
pierremtb/
...
franknoiro
Author | SHA1 | Message | Date | |
---|---|---|---|---|
bf36e62b97 | Fmt | |||
3e45d7ac4e | A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) | |||
259279fd53 | Merge branch 'main' into franknoirot/fix-electron-use-sep | |||
54eea741b5 | Merge branch 'main' into franknoirot/fix-electron-use-sep | |||
24cc00e9c5 | Use sep utility instead of forward slash for path name parsing |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 71 KiB |
|
@ -52,8 +52,10 @@ const DownloadAppBanner = () => {
|
|||
</a>{' '}
|
||||
to download the app for the best experience.
|
||||
</p>
|
||||
{!navigator?.userAgent.includes('Chrome') && <p className="mt-6">
|
||||
If you want to stay here on the web-app, we currently only support Chrome. Please use{' '}
|
||||
{!navigator?.userAgent.includes('Chrome') && (
|
||||
<p className="mt-6">
|
||||
If you want to stay here on the web-app, we currently only support
|
||||
Chrome. Please use{' '}
|
||||
<a
|
||||
href="https://www.google.com/chrome/"
|
||||
rel="noopener noreferrer"
|
||||
|
@ -61,8 +63,10 @@ const DownloadAppBanner = () => {
|
|||
className="!text-warn-80 dark:!text-warn-80 dark:hover:!text-warn-70 underline"
|
||||
>
|
||||
this link
|
||||
</a> to download it.
|
||||
</p>}
|
||||
</a>{' '}
|
||||
to download it.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</Dialog.Panel>
|
||||
</Dialog>
|
||||
|
|
|
@ -38,7 +38,10 @@ export async function renameProjectDirectory(
|
|||
|
||||
// Make sure the new name does not exist.
|
||||
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
|
||||
)
|
||||
try {
|
||||
|
@ -179,7 +182,7 @@ const collectAllFilesRecursiveFrom = async (path: string) => {
|
|||
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 = {
|
||||
name: pathParts.slice(-1)[0],
|
||||
path,
|
||||
|
|