Skip to content

Commit

Permalink
Flarum 1.0 (#42)
Browse files Browse the repository at this point in the history
* Flarum 1.0

* Add min & max to discussion title validator #26

* Update translations for pluralization

* Remove old changelog

* Update REAMDE
  • Loading branch information
imorland committed May 26, 2021
1 parent a37d648 commit d405a21
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 17 deletions.
9 changes: 0 additions & 9 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Allows splitting posts from discussions.
## Install

```bash
composer require "fof/split:*"
composer require fof/split:"*"
```

## Disclaimer
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"forum": "https://discuss.flarum.org/d/1903"
},
"require": {
"flarum/core": "^0.1.0-beta.16"
"flarum/core": "^1.0.0"
},
"extra": {
"flarum-extension": {
Expand Down
6 changes: 3 additions & 3 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"devDependencies": {
"flarum": "0.1.0-beta.16",
"prettier": "^2.2.1"
"prettier": "^2.3.0"
}
}
4 changes: 2 additions & 2 deletions locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ fof-split:
split_discussion_label: Split posts from discussions
forum:
post:
was_split_to: "{count} post was split to {target}.|{count} posts were split to {target}."
was_split_from: "{count} post was split from {target}.|{count} posts were split from {target}."
was_split_to: "{count, plural, one {{count} post was split to {target}.} other {{count} posts were split to {target}.}}"
was_split_from: "{count, plural, one {{count} post was split from {target}.} other {{count} posts were split from {target}.}}"
split:
from: Split from here
to: Split to here
Expand Down
2 changes: 2 additions & 0 deletions src/Validators/SplitDiscussionValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ protected function getRules()
'title' => [
'required',
'string',
'min:3',
'max:80'
],
];
}
Expand Down

0 comments on commit d405a21

Please sign in to comment.