-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various Fixes File explorer #2363
Conversation
LianaHus
commented
Sep 23, 2019
•
edited
Loading
edited
- fixes import with github, http,resolver-engine
- fixes tooltip for publish to gist
- add readonly mode(is not finished yet)
src/app/files/file-explorer.js
Outdated
@@ -350,7 +350,7 @@ fileExplorer.prototype.init = function () { | |||
fileExplorer.prototype.publishToGist = function () { | |||
modalDialogCustom.confirm( | |||
'Create a public gist', | |||
'Are you sure you want to publish all your files anonymously as a public gist on github.com?', | |||
'Are you sure you want to publish all your files in browser directory anonymously as a public gist on github.com?', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should say that this will not include folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say it's fine. we would implement this anyway, oder?
Wouldn't this be too long with folder stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well I don't really think we can implement that easily, gists does not support having folder.
Your sentence is ok but it should explicitly state that folders are not uploaded
src/app/files/fileProvider.js
Outdated
addReadOnly (path, content) { | ||
addReadOnly (path, content, url) { | ||
this.readonlyItems.push(path) | ||
if (url !== undefined) this.normalizedNames[url] = path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!url)
will work
src/app/files/fileProvider.js
Outdated
@@ -63,15 +66,23 @@ class FileProvider { | |||
return true | |||
} | |||
|
|||
addReadOnly (path, content) { | |||
addReadOnly (path, content, url) { | |||
this.readonlyItems.push(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should keep this in the local storage. Perhaps by having a .remix-system
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
next PR for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, let it be a separate PR
src/app/files/fileProvider.js
Outdated
return this.set(path, content) | ||
} | ||
|
||
isReadOnly (path) { | ||
return false | ||
return !this.readonlyItems.includes(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return this.readonlyItems.includes(path)
?
- fixes tooltip for publish to gist - add readonly mode(is not finished yet)
standard