Coder Social home page Coder Social logo

novel-editor's Introduction

为方便用户下载使用, 此项目已迁移至gitee, github不再更新

https://gitee.com/qsoft613/novel-editor

小说编辑器

预览图-书架 预览图-编辑 预览图-角色 预览图-表格 预览图-地图

链接

秋无衣-bilibili

工作区说明

使用 yarn workspace

陈旧的内容:
view 为显示内容, elec 为 electron 服务
  • pub 公用, 通过脚本分发到各子项目
  • front 展示
  • electron 壳
  • phone 手机端

环境

几个重要的依赖

  • typescript
  • rxjs
  • monaco-editor

安装依赖

// 顶层
yarn -W
yarn add some -W
// package内与普通yarn命令一致

开发启动

// page部分
第一次 view 先执行 setup-dll 命令
// 见page下package.json start
// electron部分
// 见electron下package.json
先watch, 实时编译
在electron-start启动electron开发

打包

  1. 先执行 page 的 build
  2. 再执行 elec 的 electron-build

常见问题

electron 安装

很奇怪, mac 上没问题, windows 上没有 dist 和 path.txt

  1. 打开electron-release

  2. 找到 electron-{version}-win32-x64.zip, 自行对应系统和版本

  3. 打开项目下的 node_modules/electron

  4. 放入解压的 dist

  5. 添加 path.txt, 在 install.js 找到要写的内容, windows: electron.exe; mac: Electron.app/Contents/MacOS/Electron

某个包安装被墙卡住

yarn config set registry https://registry.npm.taobao.org -g

yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

electron需要再npmconfig也设置, 如果碰到百度下怎么整

socketio

Cannot find module 'socket.io-client/dist/socket.io.js'
报这个错误
执行 elec/scripts/help-socketio.js 文件即可

页面项目启动需要 dll

执行 view 下的 setup-dll 命令

novel-editor's People

Contributors

dependabot[bot] avatar lyr613 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

novel-editor's Issues

Cannot find module dll-build

当启动package中的view start时 报错
Cannot find module '/Users/xxxx/novel-editer/packages/view/dll-build/dll.manifest.json'
Require stack:

  • /Users/xxxx/novel-editer/packages/view/config/webpack.config.js
  • /Users/xxxx/novel-editer/packages/view/scripts/start.js

功能栏滚动条问题建议

虽然我不写小说,但一直有关注
说下我的体验吧
版本0.0.9
全屏模式到没什么问题,
退出全屏模式后的滚动条设置很不舒服,可以尝试设定一个最小范围,设定后,就没有滚动条,起码左侧功能栏不能有滚动条。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.