-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ziven
committed
Sep 23, 2022
1 parent
f703881
commit 9dd1418
Showing
10 changed files
with
102 additions
and
24 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import {extend, override} from 'flarum/extend'; | ||
|
||
app.initializers.add('ziven-checkin', () => { | ||
app.extensionData | ||
.for('ziiven-daily-check-in') | ||
.registerSetting(function () { | ||
return ( | ||
<div className="Form-group"> | ||
<label>{app.translator.trans('ziven-checkin.admin.settings.reward-money')}</label> | ||
<div class="helpText">{app.translator.trans('ziven-checkin.admin.settings.reward-money-requirement')}</div> | ||
<input type="number" className="FormControl" step="any" bidi={this.setting('ziven-forum-checkin.checkinRewardMoney')} /> | ||
</div> | ||
); | ||
}) | ||
.registerSetting({ | ||
setting: 'ziven-forum-checkin.checkinTimeZone', | ||
label: app.translator.trans('ziven-checkin.admin.settings.timezone'), | ||
type: 'number', | ||
}) | ||
}); |
Oops, something went wrong.