ui: editor: change default mode to sv

This commit is contained in:
undefined committed 2021-04-26 23:26:56 +08:00
1 parent ebaa3f290b
commit 6924875ec9
5 files changed
+4 -8

No files matched your search

@@ -6,9 +6,9 @@ export const config = {
'emoji', 'headings', 'bold', 'italic', 'strike', 'link', '|', 'emoji', 'headings', 'bold', 'italic', 'strike', 'link', '|',
'list', 'ordered-list', 'check', 'outdent', 'indent', '|', 'list', 'ordered-list', 'check', 'outdent', 'indent', '|',
'quote', 'line', 'code', 'inline-code', 'table', '|', 'quote', 'line', 'code', 'inline-code', 'table', '|',
'upload', 'edit-mode', 'content-theme', 'code-theme', 'export', 'upload', 'edit-mode', 'fullscreen', 'export',
], ],
mode: UserContext.preferedEditorType || 'ir', mode: UserContext.preferedEditorType || 'sv',
toolbarConfig: { toolbarConfig: {
pin: true, pin: true,
}, },
@@ -107,7 +107,6 @@ export default class Tab extends DOMAttachedObject {
.addClass('section__tab-header-wrapper') .addClass('section__tab-header-wrapper')
.appendTo($container); .appendTo($container);
const $contentWrapper = $(document.createElement('div')) const $contentWrapper = $(document.createElement('div'))
.addClass('section__tab-content-wrapper')
.appendTo($container); .appendTo($container);
this.$header = $(document.createElement('ul')) this.$header = $(document.createElement('ul'))
.addClass('section__tab-header') .addClass('section__tab-header')
@@ -73,9 +73,6 @@
background: $secondary-color background: $secondary-color
content: '' content: ''
.section__tab-content-wrapper
overflow: hidden
.section__tab-content .section__tab-content
position: relative position: relative
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.6.18", "version": "4.6.19",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",
+1 -1
View File
@@ -88,7 +88,7 @@ preferedEditorType:
sv: Split View sv: Split View
family: markdown family: markdown
category: preference category: preference
value: ir value: sv
showInvisibleChar: showInvisibleChar:
type: boolean type: boolean
family: highlight family: highlight