How to use ember-freestyle - 9 common examples

To help you get started, we’ve selected a few ember-freestyle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chrislopresto / ember-freestyle / blueprints / ember-freestyle / files / __root__ / app / controllers / freestyle.js View on Github external
import Ember from 'ember';
import FreestyleController from 'ember-freestyle/controllers/freestyle';

const { inject } = Ember;

export default FreestyleController.extend({
  emberFreestyle: inject.service(),

  /* BEGIN-FREESTYLE-USAGE fp--notes
### A few notes regarding freestyle-palette

- Accepts a colorPalette POJO like the one found in the freestyle.js blueprint controller
- Looks very nice

And another thing...

###### Markdown note demonstrating prettified code

import Ember from 'ember';

export default Ember.Component.extend({

github chrislopresto / ember-freestyle / tests / dummy / app / controllers / acceptance.js View on Github external
import { inject as service } from '@ember/service';
import { alias } from '@ember/object/computed';
import { computed } from '@ember/object';
import FreestyleController from 'ember-freestyle/controllers/freestyle';

export default FreestyleController.extend({
  emberFreestyle: service(),
  showCode: alias('emberFreestyle.showCode'),

  dynamicProperties: computed(function() {
    return {
      blockContent: {
        value: 'Dynamic Block Content',
        inputType: 'textarea'
      },
      size: {
        value: 'medium',
        inputType: 'select',
        options: [
          'small',
          'medium',
          'large'
github secondstreet / ember-material-components-web / tests / dummy / app / controllers / application.js View on Github external
import { inject as service } from '@ember/service';
import { set } from '@ember/object';
import { later } from '@ember/runloop';
import FreestyleController from 'ember-freestyle/controllers/freestyle';

export default FreestyleController.extend({
  emberFreestyle: service(),
  isDemoVisible: true,
  myProgress: 0.5,
  isFirstSwitchOn: true,
  colorPalette: {
    primary: {
      name: 'cyan',
      base: '#00bcd4',
    },
    accent: {
      name: 'amber',
      base: '#ffc107',
    },
    secondary: {
      name: 'greyish',
      base: '#b6b6b6',
github hashicorp / nomad / ui / app / controllers / freestyle.js View on Github external
import { inject as service } from '@ember/service';
import FreestyleController from 'ember-freestyle/controllers/freestyle';

export default FreestyleController.extend({
  queryParams: {
    currentPage: 'page',
    sortProperty: 'sort',
    sortDescending: 'desc',
  },

  currentPage: 1,
  sortProperty: 'name',
  sortDescending: true,

  emberFreestyle: service(),
});
github code-corps / code-corps-ember / app / controllers / freestyle.js View on Github external
import Ember from 'ember';
import FreestyleController from 'ember-freestyle/controllers/freestyle';

const { inject } = Ember;

export default FreestyleController.extend({
  emberFreestyle: inject.service()
});
github hashicorp / levant / vendor / github.com / hashicorp / nomad / ui / app / controllers / freestyle.js View on Github external
import { inject as service } from '@ember/service';
import FreestyleController from 'ember-freestyle/controllers/freestyle';

export default FreestyleController.extend({
  queryParams: {
    currentPage: 'page',
    sortProperty: 'sort',
    sortDescending: 'desc',
  },

  currentPage: 1,
  sortProperty: 'name',
  sortDescending: true,

  emberFreestyle: service(),
});
github hashicorp / levant / vendor / github.com / hashicorp / nomad / ui / app / services / ember-freestyle.js View on Github external
import EmberFreestyle from 'ember-freestyle/services/ember-freestyle';

export default EmberFreestyle.extend({
  defaultTheme: 'solarized-light',
});
github hashicorp / nomad / ui / app / services / ember-freestyle.js View on Github external
import EmberFreestyle from 'ember-freestyle/services/ember-freestyle';

export default EmberFreestyle.extend({
  defaultTheme: 'solarized-light',
});
github chrislopresto / ember-freestyle / app / services / ember-freestyle.js View on Github external
import Service from 'ember-freestyle/services/ember-freestyle';
import discoveredComponents from '../-freestyle/discovered-components';

export default Service.extend({
  discoveredComponents
});

ember-freestyle

Create a living styleguide for your Ember app.

MIT
Latest version published 3 months ago

Package Health Score

76 / 100
Full package analysis