Skip to content

Commit

Permalink
Merge pull request #2707 from entrylabs/issue/8141-2
Browse files Browse the repository at this point in the history
8141 추가 이슈 처리
  • Loading branch information
kimorkim authored Apr 23, 2024
2 parents 8ee9c73 + 8fb26a7 commit f49146a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 31 deletions.
30 changes: 15 additions & 15 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-unused-vars": "off"
}
"no-unused-vars": "off",
},
},
{
"files": ["*.d.ts"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-unused-vars": "off",
"no-var": "off",
"no-useless-constructor": "off"
}
}
"no-useless-constructor": "off",
},
},
],
"env": {
"es6": true,
"browser": true,
"jquery": true
"jquery": true,
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
"jsx": true,
},
},
"rules": {
"prefer-const": "warn",
Expand All @@ -50,10 +50,10 @@
"space-before-function-paren": [
"warn",
{
"anonymous": "never",
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
"asyncArrow": "always",
},
],
"prefer-arrow-callback": "warn",
"template-curly-spacing": "warn",
Expand All @@ -74,7 +74,7 @@
"brace-style": "warn",
"space-before-blocks": [
"warn",
{ "functions": "always", "keywords": "always", "classes": "always" }
{ "functions": "always", "keywords": "always", "classes": "always" },
],
"space-infix-ops": "warn",
"eol-last": ["warn", "always"],
Expand All @@ -90,7 +90,7 @@
"camelcase": ["warn", { "properties": "never" }],
"new-cap": ["warn", { "capIsNewExceptionPattern": "^Entry." }],
"curly": "warn",
"keyword-spacing": "warn"
"keyword-spacing": "warn",
},
"globals": {
"$": true,
Expand Down Expand Up @@ -123,6 +123,6 @@
"require": true,
"module": true,
"Symbol": true,
"process": true
}
"process": true,
},
}
34 changes: 18 additions & 16 deletions src/class/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ Entry.Playground = class Playground {
id: 'entryWorkspaceBoard',
class: 'entryWorkspaceBoard',
});
this.boardView_ = boardView;

const blockMenuView = Entry.Dom('div', {
parent: codeView,
Expand Down Expand Up @@ -729,9 +730,7 @@ Entry.Playground = class Playground {
*/
generateTextView(textView) {
const that = this;
const wrap = Entry.createElement('div')
.addClass('write_box')
.appendTo(textView);
const wrap = Entry.createElement('div').addClass('write_box').appendTo(textView);
const writeSet = Entry.createElement('div').addClass('write_set');
const inputArea = Entry.createElement('div').addClass('input_box');
wrap.appendChild(writeSet);
Expand Down Expand Up @@ -963,7 +962,7 @@ Entry.Playground = class Playground {
);
textEditInput.type = 'text';
textEditInput.placeholder = Lang.Workspace.textbox_input;
const textChangeApply = function() {
const textChangeApply = function () {
const object = Entry.playground.object;
const entity = object.entity;
const selected = $('#entryTextBoxAttrFontName').data('font');
Expand All @@ -990,7 +989,7 @@ Entry.Playground = class Playground {
textEditInput.addEventListener('focusin', () => {
textEditInput.prevText = textEditInput.value;
});
textEditInput.onblur = function() {
textEditInput.onblur = function () {
if (textEditInput.value !== textEditInput.prevText) {
Entry.do('editText', textEditInput.value, textEditInput.prevText);
}
Expand All @@ -1009,7 +1008,7 @@ Entry.Playground = class Playground {
textEditArea.addEventListener('focusin', () => {
textEditArea.prevText = textEditArea.value;
});
textEditArea.onblur = function() {
textEditArea.onblur = function () {
if (textEditArea.value !== textEditArea.prevText) {
Entry.do('editText', textEditArea.value, textEditArea.prevText);
}
Expand Down Expand Up @@ -1528,6 +1527,7 @@ Entry.Playground = class Playground {
if (!this.tabViewElements) {
return;
}

for (const i in this.tabViewElements) {
this.tabViewElements[i].removeClass('entryTabSelected');
}
Expand All @@ -1538,7 +1538,14 @@ Entry.Playground = class Playground {
Entry.playground.toggleOnVariableView();
this.tabViewElements.code.removeClass('entryTabSelected');
this.tabViewElements[viewType].addClass('entryTabSelected');
this.resizeHandle_.addClass('entryRemove');
this.boardView_.addClass('wideView');
Entry.windowResized.notify();
return;
} else {
this.resizeHandle_.removeClass('entryRemove');
this.boardView_.removeClass('wideView');
Entry.windowResized.notify();
}
const views = this.view_.children;
for (let i = 0; i < views.length; i++) {
Expand Down Expand Up @@ -1802,7 +1809,7 @@ Entry.Playground = class Playground {
generatePictureElement(picture) {
const element = Entry.createElement('li', picture.id)
.addClass('entryPlaygroundPictureElement')
.bindOnClick(function() {
.bindOnClick(function () {
Entry.playground.selectPicture(this.picture);
});
picture.view = element;
Expand Down Expand Up @@ -1890,9 +1897,8 @@ Entry.Playground = class Playground {
element.appendChild(nameView);
Entry.createElement('div', `s_${picture.id}`)
.addClass('entryPlaygroundPictureSize')
.appendTo(
element
).textContent = `${picture.dimension.width} X ${picture.dimension.height}`;
.appendTo(element).textContent =
`${picture.dimension.width} X ${picture.dimension.height}`;

const removeButton = Entry.createElement('div').addClass('entryPlayground_del');
const { Buttons = {} } = Lang || {};
Expand Down Expand Up @@ -2327,18 +2333,14 @@ Entry.Playground = class Playground {
if (isLineBreak) {
entity.setLineBreak(true);
$('.input_inner').height('228px');
$('.write_type_box a')
.eq(1)
.addClass('on');
$('.write_type_box a').eq(1).addClass('on');
$('.input_box .single').hide();
$('.input_box .multi').show();
this._setFontFontUI();
} else {
entity.setLineBreak(false);
$('.input_inner').height('40px');
$('.write_type_box a')
.eq(0)
.addClass('on');
$('.write_type_box a').eq(0).addClass('on');
$('.input_box .multi').hide();
$('.input_box .single').show();
}
Expand Down
4 changes: 4 additions & 0 deletions src/css/components/board.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
border-width: 1px 0;
overflow: hidden;
.backgroundImage('entry_bg.svg');

&.wideView {
left: 254px;
}
}

.entryWorkspaceBoard.folding {
Expand Down

0 comments on commit f49146a

Please sign in to comment.