Skip to content

Commit

Permalink
delete all scroll-tracker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 11, 2024
1 parent 9ad461d commit 8f2585e
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 141 deletions.
42 changes: 0 additions & 42 deletions app/mixins/scroll-tracker.js

This file was deleted.

4 changes: 2 additions & 2 deletions app/routes/project-version/classes/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { inject as service } from '@ember/service';
import { resolve, all } from 'rsvp';
import Route from '@ember/routing/route';
import { set } from '@ember/object';
import ScrollTracker from 'ember-api-docs/mixins/scroll-tracker';

import { pluralize } from 'ember-inflector';
import getFullVersion from 'ember-api-docs/utils/get-full-version';
import createExcerpt from 'ember-api-docs/utils/create-excerpt';

export default class ClassRoute extends Route.extend(ScrollTracker) {
export default class ClassRoute extends Route {
/** @type {import('@ember/routing/router-service').default} */
@service
router;
Expand Down
7 changes: 0 additions & 7 deletions app/routes/project-version/functions/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ export default class FunctionRoute extends Route {
@service
metaStore;

@service
scrollPositionReset;

titleToken(model) {
return model?.fn?.name;
}
Expand Down Expand Up @@ -63,8 +60,4 @@ export default class FunctionRoute extends Route {
return fn.name === functionName;
});
}

activate() {
this.scrollPositionReset.doReset();
}
}
3 changes: 1 addition & 2 deletions app/routes/project-version/modules/module.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import ClassRoute from '../classes/class';
import ScrollTracker from 'ember-api-docs/mixins/scroll-tracker';
import getFullVersion from 'ember-api-docs/utils/get-full-version';

export default class ModuleRoute extends ClassRoute.extend(ScrollTracker) {
export default class ModuleRoute extends ClassRoute {
async model(params) {
const { project, project_version: compactVersion } =
this.paramsFor('project-version');
Expand Down
3 changes: 1 addition & 2 deletions app/routes/project-version/namespaces/namespace.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import ClassRoute from '../classes/class';
import ScrollTracker from 'ember-api-docs/mixins/scroll-tracker';
import getFullVersion from 'ember-api-docs/utils/get-full-version';

export default class NamespaceRoute extends ClassRoute.extend(ScrollTracker) {
export default class NamespaceRoute extends ClassRoute {
templateName = 'project-version/classes/class';

async model(params) {
Expand Down
3 changes: 1 addition & 2 deletions app/routes/project.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Route from '@ember/routing/route';
import ScrollTracker from 'ember-api-docs/mixins/scroll-tracker';
import { inject as service } from '@ember/service';

export default class ProjectRoute extends Route.extend(ScrollTracker) {
export default class ProjectRoute extends Route {
/** @type {import('@ember/routing/router-service').default} */
@service
router;
Expand Down
72 changes: 0 additions & 72 deletions app/services/scroll-position-reset.js

This file was deleted.

12 changes: 0 additions & 12 deletions tests/unit/mixins/scroll-tracker-test.js

This file was deleted.

0 comments on commit 8f2585e

Please sign in to comment.