Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove ember-crumbly #651

Merged
merged 53 commits into from
Jun 13, 2023
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
370cc73
refactor: rename breadCrumb to breadcrumb in routes
guidojw Nov 1, 2022
b9d0524
refactor: merge breadcrumb with route metadata
guidojw Nov 1, 2022
d21fc6f
fix: edit article title
guidojw Nov 1, 2022
3772754
refactor: remove `ember-crumbly` and update BreadCrumbs component
guidojw Nov 1, 2022
e4e00f0
refactor: static-pages routes to new structure
guidojw Nov 1, 2022
97acd51
refactor: change static-pages routes to new structure
guidojw Nov 6, 2022
7e62b6d
refactor(package): remove workerpool resolution
guidojw Nov 6, 2022
92fec0a
fix: optional chain on controller in breadcrumb
guidojw Nov 6, 2022
78d7c6f
refactor: finishing touches on static pages controllers/routes
guidojw Nov 6, 2022
f380c5e
fix: skip breadcrumb when model not loaded
guidojw Nov 6, 2022
5b346cb
refactor: restructure activities controllers and routes
guidojw Nov 7, 2022
ed2e26e
refactor: restructure articles controllers and routes
guidojw Nov 7, 2022
5c11d82
refactor: restructure books controllers and routes
guidojw Nov 7, 2022
0fa751e
refactor: restructure groups controllers and routes
guidojw Nov 7, 2022
4b62efc
Merge branch 'staging' of https://github.com/csvalpha/amber-ui into r…
guidojw Nov 21, 2022
0190c8b
Update changed controllers
guidojw Nov 21, 2022
4b1a35b
Merge branch 'staging' of https://github.com/csvalpha/amber-ui into r…
guidojw Dec 19, 2022
2c11917
Update changed controllers
guidojw Dec 19, 2022
3fd4581
refactor: restructure forum controllers and routes
guidojw Dec 19, 2022
6e44b68
fix: make some routes extend AuthenticatedRoute again
guidojw Dec 20, 2022
81df9bc
refactor: push changes
guidojw Dec 20, 2022
91ed0d4
refactor: restructure debit collections controllers and routes
guidojw Dec 25, 2022
1b26ead
refactor: only import has-next in bundle
guidojw Dec 27, 2022
22c7459
Merge branch 'staging' of https://github.com/csvalpha/amber-ui into r…
guidojw Dec 29, 2022
24d394c
refactor: change some ENV imports to absolute
guidojw Dec 29, 2022
76bcd86
refactor: restructure debit mandates controllers and routes
guidojw Dec 29, 2022
2cb0d6b
refactor: restructure debit transactions controllers and routes
guidojw Dec 29, 2022
e73c05b
fix: transaction permission error
guidojw Dec 29, 2022
34f04d4
feat: implement profile route
guidojw Dec 29, 2022
f87e288
refactor: restructure article and photo comments controllers and routes
guidojw Dec 29, 2022
14be136
refactor: restructure photo-albums controllers and routes
guidojw Dec 29, 2022
f299429
refactor: restructure users controllers and routes
guidojw Dec 30, 2022
bfaffe5
refactor: restructure polls controllers and routes
guidojw Dec 30, 2022
1b879b5
refactor: restructure mail aliases controllers and routes
guidojw Dec 30, 2022
be13c25
refactor: restructure mail moderations controllers and routes
guidojw Dec 30, 2022
d613c84
refactor: restructure form responses controllers and routes
guidojw Dec 30, 2022
d85bd42
refactor: restructure vacancies controllers and routes
guidojw Dec 30, 2022
d726152
refactor: fix and implement missing tests
guidojw Dec 30, 2022
1f83ea1
fix: lint
guidojw Dec 30, 2022
1738b1f
refactor: rename BreadCrumbs to Breadcrumbs
guidojw Dec 31, 2022
f272c59
chore: change mailalias to mail alias
guidojw Dec 31, 2022
fe2a6f3
Merge branch 'staging' into refactor/remove-ember-crumbly
guidojw Jan 7, 2023
1addd87
chore: reformat classes
guidojw Jan 7, 2023
a11d5a7
Merge branch 'staging' into refactor/remove-ember-crumbly
guidojw Jan 23, 2023
cae95b3
Merge remote-tracking branch 'origin/staging' into refactor/remove-em…
guidojw Mar 8, 2023
826b1d6
Merge branch 'staging' into refactor/remove-ember-crumbly
DrumsnChocolate Mar 12, 2023
fbcd21c
Merge branch 'staging' into refactor/remove-ember-crumbly
DrumsnChocolate May 6, 2023
623e3e7
add a folder for mail-moderation. Tested the reachability of the page…
DrumsnChocolate May 6, 2023
681fc78
Merge branch 'staging' into refactor/remove-ember-crumbly
guidojw Jun 12, 2023
07f5847
refactor: reorder params
guidojw Jun 13, 2023
6dd8df4
refactor: simplify getter
guidojw Jun 13, 2023
ef04904
fix: transaction-form title
guidojw Jun 13, 2023
bf0b651
fix: post-form/collection-form title
guidojw Jun 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: make some routes extend AuthenticatedRoute again
  • Loading branch information
guidojw committed Dec 20, 2022
commit 6e44b68def7b2a0e8119fd4a13f77200e394eb94
8 changes: 6 additions & 2 deletions app/routes/activities/activity.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { ApplicationRoute } from 'amber-ui/routes/application/application';
import { AuthenticatedRoute } from 'amber-ui/routes/application/application';

export default class ActivityRoute extends ApplicationRoute {
export default class ActivityRoute extends AuthenticatedRoute {
queryParams = {};

get breadcrumb() {
return { title: this.controller?.model.title };
}

canAccess() {
return this.abilities.can('show activities');
}

model(params) {
return this.store.findRecord('activity', params.id, params);
}
4 changes: 4 additions & 0 deletions app/routes/articles/article.js
Original file line number Diff line number Diff line change
@@ -7,6 +7,10 @@ export default class ArticleRoute extends ApplicationRoute {
return { title: this.controller?.model.title };
}

canAccess() {
return this.abilities.can('show articles');
}

model(params) {
return this.store.findRecord('article', params.id, params);
}
4 changes: 4 additions & 0 deletions app/routes/articles/index.js
Original file line number Diff line number Diff line change
@@ -12,6 +12,10 @@ export default class ArticlesIndexRoute extends ApplicationRoute {
];
}

canAccess() {
return this.abilities.can('show articles');
}

model(params) {
params.sort = `-pinned,${params.sort}`;
return this.store.queryPaged('article', params);
8 changes: 6 additions & 2 deletions app/routes/books/book.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { ApplicationRoute } from 'amber-ui/routes/application/application';
import { AuthenticatedRoute } from 'amber-ui/routes/application/application';

export default class BookRoute extends ApplicationRoute {
export default class BookRoute extends AuthenticatedRoute {
queryParams = {};

get breadcrumb() {
return { title: this.controller?.model.title };
}

canAccess() {
return this.abilities.can('show books');
}

model(params) {
return this.store.findRecord('book', params.id, params);
}
8 changes: 6 additions & 2 deletions app/routes/groups/group.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { ApplicationRoute } from 'amber-ui/routes/application/application';
import { AuthenticatedRoute } from 'amber-ui/routes/application/application';

export default class GroupRoute extends ApplicationRoute {
export default class GroupRoute extends AuthenticatedRoute {
queryParams = {};

get breadcrumb() {
return { title: this.controller?.model.name };
}

canAccess() {
return this.abilities.can('show groups');
}

model(params) {
return this.store.findRecord('group', params.id, params);
}