https://github.com/crowdstrike/ember-url-hash-polyfill

Support for in/inter page linking / scrolling with hashes in EmberJS

https://github.com/crowdstrike/ember-url-hash-polyfill

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.5%) to scientific vocabulary

Keywords from Contributors

document communication zsh-plugin snapshot-testing transformer export stats bioinformatics tuprolog symbolic
Last synced: 11 months ago · JSON representation

Repository

Support for in/inter page linking / scrolling with hashes in EmberJS

Basic Info
  • Host: GitHub
  • Owner: CrowdStrike
  • License: mit
  • Language: TypeScript
  • Default Branch: main
  • Size: 1.01 MB
Statistics
  • Stars: 19
  • Watchers: 2
  • Forks: 7
  • Open Issues: 16
  • Releases: 8
Created over 5 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog Contributing License

README.md

ember-url-hash-polyfill

Navigating to URLs with #hash-targets in them is not supported by most single-page-app frameworks due to the async rendering nature of modern web apps -- the browser can't scroll to a #hash-target on page load / transition because the element hasn't rendered yet. There is an issue about this for Ember here on the RFCs repo.

This addon provides a way to support the behavior that is in normally native to browsers where an anchor tag with href="#some-id-or-name" would scroll down the page when clicked.

Installation

``` yarn add ember-url-hash-polyfill

or

npm install ember-url-hash-polyfill

or

ember install ember-url-hash-polyfill ```

Compatibility

  • Ember.js v3.25 or above
  • Node.js v14 or above

Usage

To handle /some-url/#hash-targets on page load and after normal route transitions, ```diff // app/router.js

import { withHashSupport } from 'ember-url-hash-polyfill';

  • @withHashSupport export default class Router extends EmberRouter { location = config.locationType; rootURL = config.rootURL; } ```

Additionally, there is a scrollToHash helper if manual invocation is desired.

```js import { scrollToHash } from 'ember-url-hash-polyfill';

// ...

scrollToHash('some-element-id-or-name'); ```

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Owner

  • Name: CrowdStrike
  • Login: CrowdStrike
  • Kind: organization
  • Email: github@crowdstrike.com
  • Location: United States of America

GitHub Events

Total
  • Watch event: 1
  • Push event: 127
Last Year
  • Watch event: 1
  • Push event: 127

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 148
  • Total Committers: 6
  • Avg Commits per committer: 24.667
  • Development Distribution Score (DDS): 0.378
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Renovate Bot b****t@r****m 92
NullVoxPopuli L****v@g****m 17
renovate[bot] 2****] 14
semantic-release-bot s****t@m****t 12
Jérôme Mestres j****e@m****r 12
Tomster t****r@e****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 5
  • Total pull requests: 100
  • Average time to close issues: 12 months
  • Average time to close pull requests: 2 months
  • Total issue authors: 5
  • Total pull request authors: 3
  • Average comments per issue: 0.8
  • Average comments per pull request: 0.15
  • Merged pull requests: 82
  • Bot issues: 2
  • Bot pull requests: 95
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • romgere (1)
  • MichalBryxi (1)
  • github-actions[bot] (1)
  • renovate[bot] (1)
  • Techn1x (1)
Pull Request Authors
  • renovate[bot] (95)
  • romgere (3)
  • MichalBryxi (2)
Top Labels
Issue Labels
semantic-release (1)
Pull Request Labels
released (14)

Dependencies

package.json npm
  • @commitlint/cli ^13.1.0 development
  • @commitlint/config-conventional ^13.1.0 development
  • @ember/optional-features ^2.0.0 development
  • @ember/test-helpers ^2.6.0 development
  • @glimmer/component ^1.0.4 development
  • @glimmer/tracking ^1.0.4 development
  • @nullvoxpopuli/eslint-configs ^1.3.0 development
  • @semantic-release/changelog ^6.0.1 development
  • @semantic-release/git ^10.0.1 development
  • @types/ember-qunit ^3.4.15 development
  • @types/ember-resolver ^5.0.11 development
  • @types/ember__application ^3.16.4 development
  • @types/ember__array ^3.16.5 development
  • @types/ember__component ^3.16.7 development
  • @types/ember__controller ^3.16.7 development
  • @types/ember__debug ^3.16.7 development
  • @types/ember__engine ^3.16.4 development
  • @types/ember__error ^3.16.2 development
  • @types/ember__object ^3.12.7 development
  • @types/ember__polyfills ^3.12.2 development
  • @types/ember__routing ^3.16.16 development
  • @types/ember__runloop ^3.16.4 development
  • @types/ember__service ^3.16.2 development
  • @types/ember__string ^3.16.3 development
  • @types/ember__template ^3.16.2 development
  • @types/ember__test ^3.16.2 development
  • @types/ember__test-helpers ^2.6.1 development
  • @types/ember__utils ^3.16.3 development
  • @types/htmlbars-inline-precompile ^1.0.1 development
  • @types/qunit ^2.11.3 development
  • @types/rsvp ^4.0.4 development
  • babel-eslint ^10.1.0 development
  • broccoli-asset-rev ^3.0.0 development
  • ember-auto-import ^2.4.0 development
  • ember-cli ~4.2.0 development
  • ember-cli-dependency-checker ^3.2.0 development
  • ember-cli-inject-live-reload ^2.1.0 development
  • ember-cli-sri ^2.1.1 development
  • ember-cli-terser ^4.0.2 development
  • ember-cli-typescript-blueprints ^3.0.0 development
  • ember-disable-prototype-extensions ^1.1.3 development
  • ember-export-application-global ^2.0.1 development
  • ember-load-initializers ^2.1.2 development
  • ember-maybe-import-regenerator ^1.0.0 development
  • ember-page-title ^7.0.0 development
  • ember-qunit ^5.1.5 development
  • ember-resolver ^8.0.3 development
  • ember-source ~4.2.0 development
  • ember-source-channel-url ^3.0.0 development
  • ember-template-lint ^3.2.0 development
  • ember-try ^2.0.0 development
  • eslint ^7.20.0 development
  • eslint-config-prettier ^8.3.0 development
  • eslint-plugin-ember ^10.2.0 development
  • eslint-plugin-node ^11.1.0 development
  • eslint-plugin-prettier ^3.3.1 development
  • loader.js ^4.7.0 development
  • npm-run-all ^4.1.5 development
  • prettier ^2.2.1 development
  • qunit ^2.18.0 development
  • qunit-dom ^2.0.0 development
  • semantic-release ^19.0.2 development
  • typescript ^4.6.2 development
  • ember-cli-babel ^7.26.11
  • ember-cli-htmlbars ^5.7.2
  • ember-cli-typescript ^4.2.1
  • ember-test-waiters ^2.1.3
yarn.lock npm
  • 1874 dependencies
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • kellyselden/ember-cli-update-action v3 composite
  • volta-cli/action v1 composite
.github/workflows/lint.yml actions
  • actions/checkout v3 composite
  • volta-cli/action v1 composite
  • wagoid/commitlint-github-action v4.1.9 composite