diff --git a/app/controllers/application.js b/app/controllers/application.js index 03b8c4f3..24da9c3e 100644 --- a/app/controllers/application.js +++ b/app/controllers/application.js @@ -1,6 +1,6 @@ import Controller from '@ember/controller'; import { infoLinks } from 'ember-styleguide/constants/es-footer'; -import headerLinks from 'ember-website/utils/header-links'; +import headerLinks from 'ember-styleguide/constants/links'; import replaceLinks from 'ember-website/utils/replace-links'; export default class ApplicationController extends Controller { diff --git a/app/utils/header-links.js b/app/utils/header-links.js deleted file mode 100644 index 557a444f..00000000 --- a/app/utils/header-links.js +++ /dev/null @@ -1,187 +0,0 @@ -export default [ - { - name: 'Docs', - type: 'dropdown', - items: [ - { - href: 'https://guides.emberjs.com', - name: 'Ember.js Guides', - type: 'link', - }, - { - href: 'https://api.emberjs.com', - name: 'API Reference', - type: 'link', - }, - { - href: 'https://cli.emberjs.com', - name: 'CLI Guides', - type: 'link', - }, - { - type: 'divider', - }, - { - href: 'https://emberjs.com/learn', - name: 'Learn Ember', - type: 'link', - }, - ], - }, - { - name: 'Releases', - type: 'dropdown', - items: [ - { - href: 'https://emberjs.com/releases', - name: 'Overview', - type: 'link', - }, - { - href: 'https://emberjs.com/releases/lts', - name: '→ LTS', - type: 'link', - }, - { - href: 'https://emberjs.com/releases/release', - name: '→ Stable', - type: 'link', - }, - { - href: 'https://emberjs.com/releases/beta', - name: '→ Beta', - type: 'link', - }, - { - href: 'https://emberjs.com/releases/canary', - name: '→ Canary', - type: 'link', - }, - { - type: 'divider', - }, - { - href: 'https://emberjs.com/editions', - name: 'Editions', - type: 'link', - }, - { - href: 'https://emberjs.com/browser-support', - name: 'Browser Support', - type: 'link', - }, - { - href: 'https://deprecations.emberjs.com', - name: 'Deprecations', - type: 'link', - }, - { - href: 'https://rfcs.emberjs.com', - name: 'RFCs Website', - type: 'link', - }, - ], - }, - { - href: 'https://blog.emberjs.com', - name: 'Blog', - type: 'link', - }, - { - name: 'Community', - type: 'dropdown', - items: [ - { - href: 'https://emberjs.com/community', - name: 'The Ember Community', - type: 'link', - }, - { - href: 'https://emberjs.com/guidelines', - name: 'Guidelines', - type: 'link', - }, - { - href: 'https://emberjs.com/community/black-lives-matter/', - name: 'Black Lives Matter', - type: 'link', - }, - { - type: 'divider', - }, - { - href: 'https://help-wanted.emberjs.com/', - name: 'Help Wanted', - type: 'link', - }, - { - href: 'https://emberjs.com/survey', - name: 'Ember Community Survey', - type: 'link', - }, - { - type: 'divider', - }, - { - href: 'https://emberconf.com/', - name: 'EmberConf', - type: 'link', - }, - { - href: 'https://emberjs.com/community/meetups', - name: 'Meetups', - type: 'link', - }, - ], - }, - { - name: 'About', - type: 'dropdown', - items: [ - { - href: 'https://emberjs.com/teams', - name: 'The Team', - type: 'link', - }, - { - type: 'divider', - }, - { - href: 'https://emberjs.com/logos', - name: 'Branding', - type: 'link', - }, - { - href: 'https://emberjs.com/mascots', - name: 'Mascots', - type: 'link', - }, - { - type: 'divider', - }, - { - href: 'https://emberjs.com/ember-users', - name: 'Who Uses Ember', - type: 'link', - }, - { - href: 'https://emberjs.com/sponsors', - name: 'Sponsors', - type: 'link', - }, - { - type: 'divider', - }, - { - href: 'https://emberjs.com/about/legal', - name: 'Legal', - type: 'link', - }, - { - href: 'https://emberjs.com/security', - name: 'Security', - type: 'link', - }, - ], - }, -]; diff --git a/tests/unit/utils/header-links-test.js b/tests/unit/utils/header-links-test.js deleted file mode 100644 index ceaa381d..00000000 --- a/tests/unit/utils/header-links-test.js +++ /dev/null @@ -1,8 +0,0 @@ -import headerLinks from 'ember-website/utils/header-links'; -import { module, test } from 'qunit'; - -module('Unit | Utility | header-links', function () { - test('We can import the object', function (assert) { - assert.strictEqual(headerLinks.length, 5, 'We show 5 parent items.'); - }); -});