refactor(admin): drop homepage mixed content model and publish-resource preset
This commit is contained in:
1 parent
fb1a4e110c
commit
0ad41715e2
7 files changed
+13
-54
No files matched your search
@@ -379,7 +379,6 @@ const addPresetOptions = computed(() => {
|
||||
const presets = [
|
||||
{ label: '写文章', key: 'post' },
|
||||
{ label: '投稿页', key: 'submit' },
|
||||
{ label: '发布资源', key: 'resource' },
|
||||
{ label: '用户中心创作', key: 'profile' },
|
||||
]
|
||||
|
||||
@@ -493,7 +492,6 @@ function applyAddPreset(key) {
|
||||
const presetFactories = {
|
||||
post: () => ({ label: '写文章', icon: 'fas fa-pen-nib', url: `${adminUrl || siteUrl}/post-new.php` }),
|
||||
submit: () => ({ label: '投稿页', icon: 'fas fa-paper-plane', url: `${siteUrl}/submit/` }),
|
||||
resource: () => ({ label: '发布资源', icon: 'fas fa-box-open', url: `${siteUrl}/resources/` }),
|
||||
profile: () => ({ label: '创作中心', icon: 'fas fa-user-edit', url: `${siteUrl}/user/` }),
|
||||
}
|
||||
|
||||
@@ -522,7 +520,6 @@ function getAddPresetValue(key) {
|
||||
const presetFactories = {
|
||||
post: () => ({ label: '写文章', icon: 'fas fa-pen-nib', url: `${adminUrl || siteUrl}/post-new.php` }),
|
||||
submit: () => ({ label: '投稿页', icon: 'fas fa-paper-plane', url: `${siteUrl}/submit/` }),
|
||||
resource: () => ({ label: '发布资源', icon: 'fas fa-box-open', url: `${siteUrl}/resources/` }),
|
||||
profile: () => ({ label: '创作中心', icon: 'fas fa-user-edit', url: `${siteUrl}/user/` }),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user