Compare commits
5 Commits
remove-ext
...
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,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>
|
||||||
|
|
|
@ -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,
|
||||||
|
|