Comments (8)
I like it. Its so handy when I want to share it with people.
from archive-website.
Yes, it's on my todo list. It's just not that simple, because rule configuration matters a lot. And we have a lot of rules and options. I don't think it all will fit on query string, so we probably need to get a database to store configuration + code and output a token.
I was planning on addressing it after v1.0.0 releases and I will find time to do a full re-write of the demo.
from archive-website.
Eek, I really wanted to keep the site static for simplicity - otherwise we will be spending time debugging why the DB connection is slow, broken, etc.
from archive-website.
from archive-website.
Yup, that's what I was referring to...why introduce something that could break? The demo isn't really meant to be anything more than just that, a demo to try it out. I think doing anything more than the query string solution is a lot of work for very little gain and maintenance headaches.
from archive-website.
My idea for this change was to turn demo into a bug reporting tool as well. It would be much easier and quicker to ask people to reproduce their issue in the demo, and past URL into github issue, then chase them for version of ESLint, .eslintrc and error messages that they are seeing.
I originally hoped to find some free service that just allows arbitrary key-value pair storage and retrieval, but I couldn't find anything out there that does this.
from archive-website.
I think that it can be easy to implement this functionality with JavaScript, due that Jekyll is a static site generator there's no other way to achieve it. We can use a library like URI.js or use plain vanilla JavaScript and window.location.href
. But the steps are basically the same:
To share a link:
- Iterate over the rules to check which of them are active and store them in a dictionary
- Get the content of the editor and store it in another variable
- Convert them to an URL query using a library
- Optionally we can add an eventListener to update the website when the editor content or a rule changes but I think that it wouldn't be a good idea
To get info from a URL query:
- Parse the query and to the inverse process but checking before if a rule exists and if that's not the case append all the errors to a notification panel that can be placed above the editor
Ok, I'm sure that it wouldn't be as easy as it seems but I can try to implement it if no one is working on this, it will took me more than week but I want to try to achieve it.
from archive-website.
@guerrero the new version of the demo which is react-based is now live, so if you're still interested on implementing the "load from URL" feature, i'd say go for it!
from archive-website.
Related Issues (20)
- Example for linter.defineParser uses old "parse" API HOT 1
- More documentation on conflicting fixes HOT 4
- Update fetch sponsors script
- Missing Substack logo HOT 1
- Add date posted for blog posts HOT 9
- Add a way to manually add sponsors HOT 1
- Docs: Add emoji and notice to indicate which rules provide suggestions HOT 1
- Proposal: Split up website HOT 2
- Cleanup the rules list in Rules Configuration of Demo HOT 7
- add ecmaversion "latest" in demo HOT 1
- Update: Add authors to newer blog posts
- Update blog post front matter HOT 12
- Add warning for suggested changes to rule docs HOT 10
- Make sure every blog post has a teaser HOT 7
- Disable anonymous proxy HOT 2
- Search results are not scrollable HOT 1
- Authors not displayed on blog posts with more than 1 author HOT 2
- Fix blog post authors HOT 2
- Build broken HOT 2
- Please provide documentation in yml format as well HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archive-website.