Skip to content

Commit

Permalink
删除操作日志相关逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Dec 12, 2023
1 parent 7edb385 commit d93ebb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 32 deletions.
2 changes: 1 addition & 1 deletion js/dist/admin.js

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

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

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

32 changes: 2 additions & 30 deletions js/src/admin/index.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
import app from 'flarum/admin/app';

app.initializers.add('mattoid-money-history', () => {
app.extensionData.for("mattoid-money-history")
.registerSetting({
setting: 'mattoid-money-history.request-type-get',
help: app.translator.trans('mattoid-money-history.admin.settings.request-type-get-requirement'),
label: app.translator.trans('mattoid-money-history.admin.settings.request-type-get'),
type: 'switch',
default: false
})
.registerSetting({
setting: 'mattoid-money-history.request-type-post',
help: app.translator.trans('mattoid-money-history.admin.settings.type-requirement'),
label: app.translator.trans('mattoid-money-history.admin.settings.request-type-post'),
type: 'switch',
default: true
})
.registerSetting({
setting: 'mattoid-money-history.request-type-put',
help: app.translator.trans('mattoid-money-history.admin.settings.type-requirement'),
label: app.translator.trans('mattoid-money-history.admin.settings.request-type-put'),
type: 'switch',
default: true
})
.registerSetting({
setting: 'mattoid-money-history.request-type-delete',
help: app.translator.trans('mattoid-money-history.admin.settings.type-requirement'),
label: app.translator.trans('mattoid-money-history.admin.settings.request-type-delete'),
type: 'switch',
default: true
})
app.initializers.add('mattoid/flarum-ext-money-history', () => {
console.log('[mattoid/flarum-ext-money-history] Hello, forum and admin!');
});

0 comments on commit d93ebb1

Please sign in to comment.