上传文件至「js/src/admin」
这个提交包含在:
@@ -0,0 +1,35 @@
|
|||||||
|
import Extend from 'flarum/common/extenders';
|
||||||
|
import app from 'flarum/admin/app';
|
||||||
|
|
||||||
|
function trans(key) {
|
||||||
|
return app.translator.trans(`ffans-clipboardjs.admin.settings.${key}`, {}, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default [
|
||||||
|
new Extend.Admin()
|
||||||
|
.setting(() => ({
|
||||||
|
setting: 'ffans-clipboardjs.theme_name',
|
||||||
|
type: 'select',
|
||||||
|
options: {
|
||||||
|
default: trans('themes.default'),
|
||||||
|
github: trans('themes.github'),
|
||||||
|
lingcoder: trans('themes.lingcoder'),
|
||||||
|
csdn: trans('themes.csdn'),
|
||||||
|
cnblog: trans('themes.cnblog'),
|
||||||
|
jianshu: trans('themes.jianshu'),
|
||||||
|
segmentfault: trans('themes.segmentfault'),
|
||||||
|
},
|
||||||
|
default: 'default',
|
||||||
|
label: trans('themes_label'),
|
||||||
|
}))
|
||||||
|
.setting(() => ({
|
||||||
|
setting: 'ffans-clipboardjs.is_copy_enable',
|
||||||
|
type: 'switch',
|
||||||
|
label: trans('copy_enable_label'),
|
||||||
|
}))
|
||||||
|
.setting(() => ({
|
||||||
|
setting: 'ffans-clipboardjs.is_show_codeLang',
|
||||||
|
type: 'switch',
|
||||||
|
label: trans('codeLang_label'),
|
||||||
|
})),
|
||||||
|
];
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as extend } from './extend';
|
||||||
在新工单中引用
屏蔽一个用户