paintedbicycle / sketch-data-faker Goto Github PK
View Code? Open in Web Editor NEWA Sketch plugin providing 130+ types of smart placeholder content for your mockups from Faker.js and other sources.
Home Page: https://sketchfaker.com
A Sketch plugin providing 130+ types of smart placeholder content for your mockups from Faker.js and other sources.
Home Page: https://sketchfaker.com
Where is the source of the data?
Thanks
Hello-
I just downloaded and installed this plugin and I am experiencing the same issue as #1 on the latest version. I rolled back to 0.1.9 and I was able to use the naming feature successfully, but upgrading to the latest breaks it again.
Screenshot of error:
In my file, 'list' is an instance of a symbol which has two Faker named layers.
Steps to Reproduce:
It would be nice the have an option to override text into symbols.
My use case is:
I have a big table where I'd love to place fake looks real data. Every row is a collection of symbols (or a symbol with nested symbols).
The idea is to use the text content of the cell as a placeholder for the plugin:
internet.email
(note: Not the name of the symbol of layer, but the actual text into it)internet.email
) into the actual loaded data.I hope it makes sense for you :)
Thank you for this great plugin, really saves a lot of time for me. I'd like to suggest adding different language support. As far as I know, Faker.js has data for different localizations.
Would it be possible to add them to your plugin as well?
Add the ability to return different types of data that match the other types of data.
For example:
This could be done in 3 ways:
commerce.product.name
and commerce.product.author
instead of commerce.productName
and commerce.productAuthor
Great work on this plugin, something like this has been missing for a long time. It'd be great if the data would be formatted according to the locale as well. ie. a phone number follows the US format (555) 012 3123 vs. +31 1 23 45 67 8 and $ 2,399.40 vs € 1.323,30.
I'm not too familiar with faker.js but I suspect we need to add another tool like http://numeraljs.com/ to format the faker data.
If I find some time next week, I'll look into this.
Slightly related: saving a default locale as a setting would be handy too.
Currently we have a very limited set of 7 options + 'Auto', but that would be great if all Faker options were listed, so we don't have to type them manually, but rather select existing ones and that makes usage of sketch-data-faker
less error-prone and doesn't force us to read documentation.
Add ability to support images, not just text
thanks for handy little plugin!
for your interest: i forked this and added an option to specify the count, or number of, words, sentences, and paragraphs when using the plural lorem content.
example name:
lorem.paragraphs #13#
this also works:
lorem.paragraphs #13# copy 2
the parameter format may be thought to be a tad awkward, but i didn't see a more elegant option that wouldn't conflict with other parsing.
I would really like to be able to build more complex random data strings. For example, I'm building sports data grid and have run into a few uses case I'd like to use this plugin for:
Obviously, this changes the scope of the current plugin by adding simple JS phasing. Still, I would love to be able to build more complex phasing using layer names.
To reproduce, add any library symbol with a text override to a new document and try to apply faker data to it.
Tested this in Sketch 54.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.