diff --git a/js/admin/dist/extension.js b/js/admin/dist/extension.js index 11aef96..fb284fd 100644 --- a/js/admin/dist/extension.js +++ b/js/admin/dist/extension.js @@ -169,12 +169,12 @@ System.register("Reflar/Gamification/components/SettingsPage", ["flarum/componen children: app.translator.trans('reflar-gamification.admin.page.votes.auto_upvote'), onchange: this.values.autoUpvotePosts, className: 'votes-switch' - }), m('label', {}, app.translator.trans('reflar-gamification.admin.page.votes.points_title')), m('input', { + }), m('a', { href: "https://imgur.com/a/9aylQQL", style: "color: #000;" }, m('label', {}, app.translator.trans('reflar-gamification.admin.page.votes.points_title')), m('input', { className: 'FormControl Ranks-default', value: this.values.pointsPlaceholder() || '', placeholder: app.translator.trans('reflar-gamification.admin.page.votes.points_placeholder') + '{points}', oninput: m.withAttr('value', this.values.pointsPlaceholder) - }), m('legend', {}, app.translator.trans('reflar-gamification.admin.page.rankings.title')), Switch.component({ + })), m('legend', {}, app.translator.trans('reflar-gamification.admin.page.rankings.title')), Switch.component({ state: this.values.customRankingImages() || false, children: app.translator.trans('reflar-gamification.admin.page.rankings.enable'), onchange: this.values.customRankingImages, diff --git a/js/admin/package.json b/js/admin/package.json index 19a7865..6216d68 100644 --- a/js/admin/package.json +++ b/js/admin/package.json @@ -1,7 +1,7 @@ { "private": true, "devDependencies": { - "gulp": "^3.9.1", - "flarum-gulp": "^0.2.0" + "flarum-gulp": "^0.2.0", + "gulp": "^3.9.1" } } diff --git a/js/admin/src/components/SettingsPage.js b/js/admin/src/components/SettingsPage.js index 5dd5f4d..b807c2a 100644 --- a/js/admin/src/components/SettingsPage.js +++ b/js/admin/src/components/SettingsPage.js @@ -158,13 +158,14 @@ export default class SettingsPage extends Page { onchange: this.values.autoUpvotePosts, className: 'votes-switch' }), + m('a', {href: "https://imgur.com/a/9aylQQL", style: "color: #000;"}, m('label', {}, app.translator.trans('reflar-gamification.admin.page.votes.points_title')), m('input', { className: 'FormControl Ranks-default', value: this.values.pointsPlaceholder() || '', placeholder: app.translator.trans('reflar-gamification.admin.page.votes.points_placeholder') + '{points}', oninput: m.withAttr('value', this.values.pointsPlaceholder) - }), + })), m('legend', {}, app.translator.trans('reflar-gamification.admin.page.rankings.title')), Switch.component({ state: this.values.customRankingImages() || false,