Skip to content
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

Merged
merged 3 commits into from
Sep 24, 2019
Merged

Various Fixes File explorer #2363

merged 3 commits into from
Sep 24, 2019

Conversation

LianaHus
Copy link
Collaborator

@LianaHus LianaHus commented Sep 23, 2019

  • fixes import with github, http,resolver-engine
  • fixes tooltip for publish to gist
  • add readonly mode(is not finished yet)

@@ -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?',
Copy link
Collaborator

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

Copy link
Collaborator Author

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?

Copy link
Collaborator

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

addReadOnly (path, content) {
addReadOnly (path, content, url) {
this.readonlyItems.push(path)
if (url !== undefined) this.normalizedNames[url] = path
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!url) will work

@@ -63,15 +66,23 @@ class FileProvider {
return true
}

addReadOnly (path, content) {
addReadOnly (path, content, url) {
this.readonlyItems.push(path)
Copy link
Collaborator

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next PR for that?

Copy link
Collaborator Author

@LianaHus LianaHus Sep 23, 2019

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

return this.set(path, content)
}

isReadOnly (path) {
return false
return !this.readonlyItems.includes(path)
Copy link
Collaborator

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)
@yann300 yann300 changed the title - fixes import with github, http,resolver-engine Various Fixes File explorer Sep 24, 2019
@yann300 yann300 merged commit f000ed1 into master Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants