
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
ember-cli-page-progress
Advanced tools
A handy transition indicator wrote without the jQuery dependency.
ember install ember-cli-page-progress
2 steps can make this addon work:
Add the component to application.hbs
<PageProgress />
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;
}
}
ember install ember-cli-page-progress@~1.3.3
2 steps can make this addon work:
Add the component to application.hbs
{{page-progress}}
Import progress mixin and extend it in the application route - application.js
import ProgressMixin from './../mixins/progress';
export default Ember.Route.extend(ProgressMixin, {...});
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}}
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}}
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"}}
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;
}
git clone https://github.com/tigressbailey/ember-cli-page-progress.git
cd ember-cli-page-progress
yarn install
yarn lint:hbs
yarn lint:js
yarn lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember serve
For more information on using ember-cli, visit https://ember-cli.com/.
:tiger: Bailey Zhang
This project is licensed under the MIT License.
FAQs
A handy page progress indicator
The npm package ember-cli-page-progress receives a total of 213 weekly downloads. As such, ember-cli-page-progress popularity was classified as not popular.
We found that ember-cli-page-progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.