npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

ember-cli-page-progress

v2.0.0

Published

A handy page progress indicator

Readme

ember-cli-page-progress

npm version License: MIT Build Status Ember Observer Score

A handy transition indicator wrote without the jQuery dependency.

Demo site

🎉 This addon supports Ember 3 now.

  • Please read the upgrade guide if you try to use the v2.0.0 version on Ember 3.
  • Please install v1.3.3 and read the v1.3.3 guide on Ember 2.

🏁 ==== Guide for v2.0.0 ====

Prerequisites


  • Ember.js v3.12 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation


ember install ember-cli-page-progress

Usage


2 steps can make this addon work:

  1. Add the component to application.hbs

    <PageProgress />
  2. Import page progress service and add the loading in the application route - application.js Comparing to v1.3.3, the Mixin is not formally recommended.

    import { inject as service } from '@ember/service';
    import Route from '@ember/routing/route';
    import { action, get } from '@ember/object';
    
    export default class Application extends Route {
      @service pageProgress;
      @action
      async loading(transition) {
        const pageProgress = get(this, 'pageProgress');
        pageProgress.start(transition.targetName);
        transition.promise.finally(() => {
          pageProgress.done();
        });
        return true;
      }
    }

🏁 ==== Guide for v1.3.3 ====

Installation


ember install ember-cli-page-progress@~1.3.3

Usage


2 steps can make this addon work:

  1. Add the component to application.hbs

    {{page-progress}}
  2. Import progress mixin and extend it in the application route - application.js

    import ProgressMixin from './../mixins/progress';
    
    export default Ember.Route.extend(ProgressMixin, {...});

Configuration


  1. Speed:

    It represents the increasing speed of the progress bar.

    Default value is 200 if you don't provide it.

    Please provide value as milliseconds.

    For example:

    v2.0.0

    <PageProgress @speed={{300}} />

    v1.3.3

    {{page-progress speed=300}}
  2. Minimum:

    It represents the bar width at the start point.

    Default value is 0.08 if you don't provide it.

    Please provide value as float.

    For example:

    v2.0.0

    <PageProgress @minimum={{0.1}} />

    v1.3.3

    {{page-progress minimum=0.1}}
  3. Background:

    It represents the bar background color.

    Default value is red if you don't provide it.

    Please provide value as string.

    For example: v2.0.0

    <PageProgress @background={{"green"}} />

    or

    <PageProgress @background={{"#29d"}} />

    v1.3.3

    {{page-progress background="green"}}

    or

    {{page-progress background="#29d"}}
  4. Global Configuration:

    If would like to exclude the included css file, include the folling to your ember-cli-build.js file:

    let app = new EmberApp(defaults, {
        'ember-cli-page-progress': {
          includeCss: false
        }
      }
    });

    Provide your own CSS instead:

    .page-progress {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1031;
      pointer-events: none;
    }
    
    .page-progress .bar {
      position: fixed;
      top: 0;
      left: 0;
      width: 0;
      height: 3px;
      box-shadow: 0 0 10px rgba(0, 13, 41, 0.8);
      transition: none;
    }

Contributing


Installation

  • git clone https://github.com/tigressbailey/ember-cli-page-progress.git
  • cd ember-cli-page-progress
  • yarn install

Linting

  • yarn lint:hbs
  • yarn lint:js
  • yarn lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

Contributors


License


This project is licensed under the MIT License.