Skip to content

Commit

Permalink
fix: module running
Browse files Browse the repository at this point in the history
  • Loading branch information
lovefields committed Jun 1, 2023
1 parent 3e966a4 commit f27319a
Show file tree
Hide file tree
Showing 29 changed files with 32 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dragon-editor",
"version": "2.0.0-beta.1.3",
"version": "2.0.0-beta.1.4",
"description": "WYSIWYG editor on Nuxt.js",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineNuxtModule({
// addComponentsDir(resolver.resolve("./shared/components"));
addComponent({
name: 'DragonEditorComment',
filePath: resolver.resolve('./runtime/components/DragonEditorComment')
filePath: resolver.resolve('./runtime/shared/components/DragonEditorComment')
});
}
})
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script setup lang="ts">
import {ref, unref} from "#imports";
import {keyboardEvent, setCursor, pasteText, styleSettings, getArrangementCursorData} from "../../utils/index";
import {textBlock} from "../../../types/index";
import {textBlock} from "../../../../types/index";
const $block = ref();
const data = ref<textBlock>({
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions src/runtime/core/style/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ // The require scope
/******/ var __webpack_require__ = {};
/******/
/************************************************************************/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin

/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {cursorSelection, arrangementCursorData} from "../../types";
import type {cursorSelection, arrangementCursorData} from "../../../types";
import {findEditableElement} from "./element";

export function setCursor(target: Node, idx: number) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { textBlock, userCustomMenu, editorMenu } from "../../types/index";
import { textBlock, userCustomMenu, editorMenu } from "../../../types/index";


function generateId() {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {allBlock} from "../../types";
import type {allBlock} from "../../../types";
import {getCursor, setCursor} from "./cursor";
import {findEditableElement, findChildNumber} from "./element"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ import {
userCustomMenu,
styleActiveType,
userStyleMenu
} from "../../types/index";
} from "../../../types/index";
// components
import SvgIcon from "../../core/components/SvgIcon.vue";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
getCursor,
findEditableElement
} from "../../core/utils/index";
import { commentBlock } from "../../types/index";
import { commentBlock } from "../../../types/index";
const $block = ref();
const data = ref<commentBlock>({
Expand Down

0 comments on commit f27319a

Please sign in to comment.