-
-
Notifications
You must be signed in to change notification settings - Fork 3
2.0 Upgrade #35
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
Merged
Merged
2.0 Upgrade #35
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
a3374e8
chore(2.0): update dependencies
DavideIadeluca 4cb67c2
chore(2.0): update infrastructure
DavideIadeluca b60c6e8
chore(2.0): misc frontend changes
DavideIadeluca e44f72f
chore(2.0): JSON:API changes
DavideIadeluca ad12e3e
chore(2.0): Search & Filter API changes
DavideIadeluca 0960d1f
chore(2.0): `LESS` code changes
DavideIadeluca df7ac97
chore: update lockfile
DavideIadeluca 3db4956
chore(2.0): minor frontend cleanup
DavideIadeluca 8440e59
chore(2.0): minor translation changes
DavideIadeluca 18f1d53
chore(2.0): cleanup
DavideIadeluca b72a314
chore(2.0): try to refactor the remainder of the backend
DavideIadeluca 050b054
Apply fixes from StyleCI
StyleCIBot e0ff4a3
chore: empty line eof
DavideIadeluca ef92c0d
fix(2.0): adjust frontend typings
DavideIadeluca 2740499
chore: cleanup
DavideIadeluca ccb59ea
chore
DavideIadeluca 24bc462
chore: output of `yarn upgrade`
DavideIadeluca 18f75cd
Apply fixes from StyleCI
StyleCIBot e5f8bc3
chore: change main git brach
DavideIadeluca 856000a
chore: bump phpstan level
DavideIadeluca d5d1925
test: implement basic backend testing
DavideIadeluca ea4947c
Apply fixes from StyleCI
StyleCIBot 38740da
test: add test for searching
DavideIadeluca 0e49afc
Apply fixes from StyleCI
StyleCIBot d8a178d
chore: enable backend testing in CI
DavideIadeluca 1ac270b
chore: remove php_versions definition
DavideIadeluca dfc90fc
chore: add empty admin frontend initializer
DavideIadeluca c68202b
chore
DavideIadeluca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ js/dist | |
| js/node_modules | ||
| vendor | ||
| composer.lock | ||
| tests/.phpunit.result.cache | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import app from 'flarum/admin/app'; | ||
| import Extend from 'flarum/common/extenders'; | ||
| import { default as commonExtend } from '../common/extend'; | ||
|
|
||
| export default [ | ||
| ...commonExtend, | ||
|
|
||
| new Extend.Admin().permission( | ||
| () => ({ | ||
| icon: 'fas fa-home', | ||
| label: app.translator.trans('fof-frontpage.admin.permissions.can_push_to_frontpage_label'), | ||
| permission: 'discussion.front', | ||
| }), | ||
| 'moderate' | ||
| ), | ||
| ]; |
This file contains hidden or 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,12 +1,6 @@ | ||
| import app from 'flarum/admin/app'; | ||
| export { default as extend } from './extend'; | ||
|
|
||
| app.initializers.add('fof/frontpage', () => { | ||
| app.extensionData.for('fof-frontpage').registerPermission( | ||
| { | ||
| icon: 'fas fa-home', | ||
| label: app.translator.trans('core.admin.permissions.can_push_to_frontpage_label'), | ||
| permission: 'discussion.front', | ||
| }, | ||
| 'moderate' | ||
| ); | ||
| app.initializers.add('fof-frontpage', () => { | ||
| // Nothing here yet | ||
| }); | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import Extend from 'flarum/common/extenders'; | ||
| import FrontGambit from './gambits/FrontGambit'; | ||
|
|
||
| export default [new Extend.Search().gambit('discussions', FrontGambit)]; |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import app from 'flarum/common/app'; | ||
| import { BooleanGambit } from 'flarum/common/query/IGambit'; | ||
|
|
||
| export default class FrontGambit extends BooleanGambit { | ||
| key() { | ||
| return app.translator.trans('fof-frontpage.lib.gambits.frontpage.key', {}, true); | ||
| } | ||
|
|
||
| filterKey() { | ||
| return 'frontpage'; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.