Code Monkey home page Code Monkey logo

sketch-data-faker's People

Contributors

dependabot[bot] avatar paintedbicycle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sketch-data-faker's Issues

Auto feature (renaming layer) doesn't work with Symbols

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:
Screenshot 2019-06-04 15 32 56
In my file, 'list' is an instance of a symbol which has two Faker named layers.

Replace text using content instead of layer name

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:

  1. The symbol cell text is something like: internet.email (note: Not the name of the symbol of layer, but the actual text into it)
  2. Run the plugin over the selected symbols
  3. The plugin recursively place rando fake data into the cells managing to overyde the original text (internet.email) into the actual loaded data.

I hope it makes sense for you :)

Localization support

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?

Provide "Matching Data". i.e. add objects/grouped data

Add the ability to return different types of data that match the other types of data.

For example:

  • If you return a book, movie, song, album, artist, etc, all data about that thing should match (the author, the title and the image for the book should all match).
  • If you have a first name, a last name, and an email address in the same group/symbol, perhaps we should try to get the email address to match the first name / last name

This could be done in 3 ways:

  1. In a layer or group, data should always match if it's possible
  2. Only do it for layers that are all selected by the user at the same time when asked to be replaced
  3. If the user calls their layer a certain thing... like commerce.product.name and commerce.product.author instead of commerce.productName and commerce.productAuthor

Add localised data formatting

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.

List all Faker options

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.

parameter option for count of words/sentences/paragraphs

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.

Concatenate Multiple Data

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:

  • Creating Team Names: aker.address.city() + " " + random.word()
  • Creating Sample Scores: faker.random.number(7) + " - " + faker.random.number(7)
  • Creating Better Dates: faker.random.number(12) + "/" + faker.random.number(30) + "/2021"

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.