Skip to content

Commit

Permalink
move course-* components into course directory and ditch the prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Jul 8, 2024
1 parent b1bb4e1 commit 64f9655
Show file tree
Hide file tree
Showing 148 changed files with 326 additions and 326 deletions.
194 changes: 97 additions & 97 deletions packages/ilios-common/.lint-todo

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { clickable, count, create, collection, text } from 'ember-cli-page-object';
import objectives from './course/objectives';
import learningMaterials from './detail-learning-materials';
import meshTerms from './mesh-terms';
import taxonomies from './detail-taxonomies';
import collapsedTaxonomies from './collapsed-taxonomies';
import leadershipCollapsed from './leadership-collapsed';
import leadershipExpanded from './leadership-expanded';
import collapsedCompetencies from './collapsed-competencies';
import overview from './course-overview';
import header from './course-header';
import objectives from './objectives';
import learningMaterials from '../detail-learning-materials';
import meshTerms from '../mesh-terms';
import taxonomies from '../detail-taxonomies';
import collapsedTaxonomies from '../collapsed-taxonomies';
import leadershipCollapsed from '../leadership-collapsed';
import leadershipExpanded from '../leadership-expanded';
import collapsedCompetencies from '../collapsed-competencies';
import overview from './overview';
import header from './header';

export default create({
scope: '[data-test-ilios-course-details]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { create, clickable, fillable, text, isVisible } from 'ember-cli-page-object';
import publicationMenu from './course/publication-menu';
import publicationStatus from './publication-status';
import publicationMenu from './publication-menu';
import publicationStatus from '../publication-status';
const definition = {
scope: '[data-test-course-header]',
title: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
isVisible,
value,
} from 'ember-cli-page-object';
import datePicker from './date-picker';
import datePicker from '../date-picker';

const definition = {
scope: '[data-test-course-overview]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { clickable, create, fillable, text } from 'ember-cli-page-object';

import newSession from './new-session';
import sessionsGrid from './sessions-grid';
import sessionsGridHeader from './sessions-grid-header';
import newSession from '../new-session';
import sessionsGrid from '../sessions-grid';
import sessionsGridHeader from '../sessions-grid-header';

const definition = {
scope: '[data-test-course-sessions]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { attribute, collection, create, text } from 'ember-cli-page-object';
import termsChart from './visualizer-course-instructor-term';
import sessionTypesChart from './visualizer-course-instructor-session-type';
import termsChart from '../visualizer-course-instructor-term';
import sessionTypesChart from '../visualizer-course-instructor-session-type';

const definition = create({
scope: '[data-test-course-visualize-instructor]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { attribute, collection, create, fillable, text, value } from 'ember-cli-page-object';
import instructorsChart from './visualizer-course-instructors';
import instructorsChart from '../visualizer-course-instructors';

const definition = create({
scope: '[data-test-course-visualize-instructors]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { attribute, collection, create, text } from 'ember-cli-page-object';
import objectivesChart from './visualizer-course-objectives';
import objectivesChart from '../visualizer-course-objectives';

const definition = create({
scope: '[data-test-course-visualize-objectives]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { attribute, collection, create, text } from 'ember-cli-page-object';
import sessionTypeChart from './visualizer-course-session-type';
import sessionTypeChart from '../visualizer-course-session-type';

const definition = create({
scope: '[data-test-course-visualize-session-type]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { attribute, collection, create, fillable, text, value } from 'ember-cli-page-object';
import sessionTypesChart from './visualizer-course-session-types';
import sessionTypesChart from '../visualizer-course-session-types';

const definition = create({
scope: '[data-test-course-visualize-session-types]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { attribute, collection, create } from 'ember-cli-page-object';
import vocabulariesChart from './visualizer-course-vocabularies';
import vocabulariesChart from '../visualizer-course-vocabularies';

const definition = create({
scope: '[data-test-course-visualize-vocabularies]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { attribute, collection, create, text } from 'ember-cli-page-object';
import termsChart from './visualizer-course-vocabulary';
import termsChart from '../visualizer-course-vocabulary';

const definition = create({
scope: '[data-test-course-visualize-vocabulary]',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { create, visitable } from 'ember-cli-page-object';

import details from './components/course-details';
import publicationcheck from './components/course-publicationcheck';
import details from './components/course/details';
import publicationcheck from './components/course/publicationcheck';

export default create({
visit: visitable('/courses/:courseId/publicationcheck'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { create, visitable } from 'ember-cli-page-object';

import publishAll from './components/publish-all-sessions';
import details from './components/course-details';
import details from './components/course/details';

export default create({
visit: visitable('/courses/:courseId/publishall'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create, visitable } from 'ember-cli-page-object';
import root from './components/course-visualize-instructor';
import root from './components/course/visualize-instructor';

export default create({
visit: visitable('/data/courses/:courseId/instructors/:userId'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create, visitable } from 'ember-cli-page-object';
import root from './components/course-visualize-instructors';
import root from './components/course/visualize-instructors';

export default create({
visit: visitable('/data/courses/:courseId/instructors'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create, visitable } from 'ember-cli-page-object';
import root from './components/course-visualize-objectives';
import root from './components/course/visualize-objectives';

export default create({
visit: visitable('/data/courses/:courseId/objectives'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create, visitable } from 'ember-cli-page-object';
import root from './components/course-visualize-session-type';
import root from './components/course/visualize-session-type';

export default create({
visit: visitable('/data/courses/:courseId/session-types/:sessionTypeId'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create, visitable } from 'ember-cli-page-object';
import root from './components/course-visualize-session-types';
import root from './components/course/visualize-session-types';

export default create({
visit: visitable('/data/courses/:courseId/session-types'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create, visitable } from 'ember-cli-page-object';
import root from './components/course-visualize-vocabularies';
import root from './components/course/visualize-vocabularies';

export default create({
visit: visitable('/data/courses/:courseId/vocabularies'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create, visitable } from 'ember-cli-page-object';
import root from './components/course-visualize-vocabulary';
import root from './components/course/visualize-vocabulary';

export default create({
visit: visitable('/data/courses/:courseId/vocabularies/:vocabularyId'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create, visitable } from 'ember-cli-page-object';
import visualizations from './components/course-visualizations';
import visualizations from './components/course/visualizations';

export default create({
visit: visitable('/data/courses/:courseId'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { create, visitable } from 'ember-cli-page-object';

import details from './components/course-details';
import details from './components/course/details';

export default create({
visit: visitable('/courses/:courseId'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
{{animate-loading "course" loadingTime=500}}
...attributes
>
<CourseHeader @course={{@course}} @editable={{and @editable this.notRolloverRoute}} />
<CourseOverview @course={{@course}} @editable={{and @editable this.notRolloverRoute}} />
<Course::Header @course={{@course}} @editable={{and @editable this.notRolloverRoute}} />
<Course::Overview @course={{@course}} @editable={{and @editable this.notRolloverRoute}} />
{{#if @showDetails}}
<CourseEditing
<Course::Editing
@course={{@course}}
@editable={{and @editable this.notRolloverRoute}}
@courseLeadershipDetails={{@courseLeadershipDetails}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { action } from '@ember/object';
import scrollIntoView from 'scroll-into-view';
import { service } from '@ember/service';

export default class IliosCourseDetailsComponent extends Component {
export default class CourseDetailsComponent extends Component {
@service router;

@action
Expand Down
6 changes: 3 additions & 3 deletions packages/ilios-common/addon/components/course/loader.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#let (load this.courseLoadingPromise) as |p|}}
{{#if p.isResolved}}
<IliosCourseDetails
<Course::Details
@course={{@course}}
@editable={{@editable}}
@showDetails={{@showDetails}}
Expand All @@ -20,8 +20,8 @@
<Course::BackToCourses />

<section aria-hidden="true" class="course-loader" {{animate-loading "course" finalOpacity=".75"}}>
<CourseHeader @course={{@course}} @editable={{false}} />
<CourseOverview @course={{@course}} @editable={{false}} />
<Course::Header @course={{@course}} @editable={{false}} />
<Course::Overview @course={{@course}} @editable={{false}} />

<div class="mock-detail-box" >
<span>
Expand Down
4 changes: 2 additions & 2 deletions packages/ilios-common/addon/templates/course-materials.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{{t "general.backToCourse"}}
</LinkTo>
</div>
<CourseSummaryHeader @course={{@model}} />
<CourseMaterials
<Course::SummaryHeader @course={{@model}} />
<Course::Materials
@course={{@model}}
@courseSort={{or this.courseSort "title"}}
@sessionSort={{or this.sessionSort "title"}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<CourseVisualizations @model={{@model}} />
<Course::Visualizations @model={{@model}} />
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<CourseVisualizeInstructor @course={{@model.course}} @user={{@model.user}} />
<Course::VisualizeInstructor @course={{@model.course}} @user={{@model.user}} />
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<CourseVisualizeInstructors @model={{@model}} />
<Course::VisualizeInstructors @model={{@model}} />
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<CourseVisualizeObjectives @model={{@model}} />
<Course::VisualizeObjectives @model={{@model}} />

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<CourseVisualizeSessionType @model={{@model}} />
<Course::VisualizeSessionType @model={{@model}} />

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<CourseVisualizeSessionTypes @model={{@model}} />
<Course::VisualizeSessionTypes @model={{@model}} />

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<CourseVisualizeTerm @model={{@model}} />
<Course::VisualizeTerm @model={{@model}} />
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<CourseVisualizeVocabularies @model={{@model}} />
<Course::VisualizeVocabularies @model={{@model}} />

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<CourseVisualizeVocabulary @model={{@model}} />
<Course::VisualizeVocabulary @model={{@model}} />
2 changes: 1 addition & 1 deletion packages/ilios-common/addon/templates/course/index.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<CourseSessions
<Course::Sessions
@course={{this.model}}
@canCreateSession={{this.canCreateSession}}
@canUpdateCourse={{this.canUpdateCourse}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<CoursePublicationcheck @course={{@model}} />
<Course::Publicationcheck @course={{@model}} />
2 changes: 1 addition & 1 deletion packages/ilios-common/addon/templates/course/rollover.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<CourseRollover @course={{@model}} @visit={{this.loadCourse}} />
<Course::Rollover @course={{@model}} @visit={{this.loadCourse}} />
1 change: 0 additions & 1 deletion packages/ilios-common/app/components/course-editing.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/ilios-common/app/components/course-header.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/ilios-common/app/components/course-materials.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/ilios-common/app/components/course-overview.js

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion packages/ilios-common/app/components/course-rollover.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/ilios-common/app/components/course-sessions.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions packages/ilios-common/app/components/course/details.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/details';
1 change: 1 addition & 0 deletions packages/ilios-common/app/components/course/editing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/editing';
1 change: 1 addition & 0 deletions packages/ilios-common/app/components/course/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/header';
1 change: 1 addition & 0 deletions packages/ilios-common/app/components/course/materials.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/materials';
1 change: 1 addition & 0 deletions packages/ilios-common/app/components/course/overview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/overview';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/publicationcheck';
1 change: 1 addition & 0 deletions packages/ilios-common/app/components/course/rollover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/rollover';
1 change: 1 addition & 0 deletions packages/ilios-common/app/components/course/sessions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/sessions';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/summary-header';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualizations';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualize-instructor';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualize-instructors';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualize-objectives';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualize-session-type';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualize-session-types';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualize-term';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualize-vocabularies';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ilios-common/components/course/visualize-vocabulary';

This file was deleted.

Loading

0 comments on commit 64f9655

Please sign in to comment.