-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into disable-sort
- Loading branch information
Showing
14 changed files
with
279 additions
and
169 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
assets/javascripts/discourse/adapters/discourse-post-event-adapter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import RestAdapter from "discourse/adapters/rest"; | ||
|
||
export default RestAdapter.extend({ | ||
export default class DiscoursePostEventAdapter extends RestAdapter { | ||
basePath() { | ||
return "/discourse-post-event/"; | ||
}, | ||
}); | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
assets/javascripts/discourse/adapters/discourse-post-event-event.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { underscore } from "@ember/string"; | ||
import DiscoursePostEventAdapter from "./discourse-post-event-adapter"; | ||
|
||
export default DiscoursePostEventAdapter.extend({ | ||
export default class DiscoursePostEventEvent extends DiscoursePostEventAdapter { | ||
pathFor(store, type, findArgs) { | ||
const path = | ||
this.basePath(store, type, findArgs) + | ||
underscore(store.pluralize(this.apiNameFor(type))); | ||
return this.appendQueryParams(path, findArgs); | ||
}, | ||
} | ||
|
||
apiNameFor() { | ||
return "event"; | ||
}, | ||
}); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
assets/javascripts/discourse/adapters/discourse-post-event-invitee.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import DiscoursePostEventNestedAdapter from "./discourse-post-event-nested-adapter"; | ||
|
||
export default DiscoursePostEventNestedAdapter.extend({ | ||
export default class DiscoursePostEventInvitee extends DiscoursePostEventNestedAdapter { | ||
apiNameFor() { | ||
return "invitee"; | ||
}, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
assets/javascripts/discourse/adapters/discourse-post-event-reminder.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import DiscoursePostEventNestedAdapter from "./discourse-post-event-nested-adapter"; | ||
|
||
export default DiscoursePostEventNestedAdapter.extend({ | ||
export default class DiscoursePostEventReminder extends DiscoursePostEventNestedAdapter { | ||
apiNameFor() { | ||
return "reminder"; | ||
}, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
assets/javascripts/discourse/controllers/discourse-post-event-upcoming-events-index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Controller from "@ember/controller"; | ||
|
||
export default Controller.extend({}); | ||
export default class DiscoursePostEventUpcomingEventsIndexController extends Controller {} |
8 changes: 4 additions & 4 deletions
8
assets/javascripts/discourse/models/discourse-post-event-reminder.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import RestModel from "discourse/models/rest"; | ||
|
||
export default RestModel.extend({ | ||
export default class DiscoursePostEventReminder extends RestModel { | ||
init() { | ||
this._super(...arguments); | ||
super.init(...arguments); | ||
|
||
this.__type = "discourse-post-event-reminder"; | ||
}, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.