mylxsw / wizard Goto Github PK
View Code? Open in Web Editor NEWWizard是一款开源的文档管理工具,支持Markdown/Swagger/Table类型的文档。
License: Apache License 2.0
Wizard是一款开源的文档管理工具,支持Markdown/Swagger/Table类型的文档。
License: Apache License 2.0
=========================================================
通过访问在线体验地址 http://wizard.aicode.cc/ 发现线上版本这两个问题是正常的,我是通过DockerFile方式安装的,请问Docker Hub中的项目是否是最新的?
我上传的附件是docx,但下载回来后是zip包。
在mac os下,还会自动解压
建议在前端增加版本号显示或者更新的内容,
可以考虑在右上角用户名下拉里增加
无导出功能,用不了
你好,
host.docker.internal只支持windows和mac系统吧,Ubuntu不支持
根据这个建议,改成自己的IP
https://github.com/mylxsw/wizard/issues/36
host.docker.internal 改成自己的ip(192.168.1.124或者是docker0 172.17.0.1)为什么还会取访问172.17.0.2?很奇怪
[2020-01-05 16:07:59] production.ERROR: Class 'SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder' not found {"userId":1,"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class 'SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder' not found at /data/webroot/docapi/app/Http/Controllers/CompareController.php:59)
[stacktrace]
#0 [internal function]: App\Http\Controllers\CompareController->compare(Object(Illuminate\Http\Request))
#1 /data/webroot/docapi/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#2 /data/webroot/docapi/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('compare', Array)
#3 /data/webroot/docapi/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\CompareController), 'compare')
能否增加mermaid流程图的支持
1、docker 容器化后挂载/webroot/storage/app/public 后不能上传图片及文档类型
2、上传大小超过2M没办法上传请问在哪里设置?
dockerhub上的打包流程,
centos7
(Linux ip-172-31-23-64.ap-northeast-2.compute.internal 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux)
启动docker时报错
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Tue May 28 02:25:54.050637 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.3.4 configured -- resuming normal operations
[Tue May 28 02:25:54.050707 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
RT,或者是否有支持reStructuredText
的计划?
部署提示Base table or view not found: 1146 Table 'wizard.wz_page_tag' doesn't exist ,请问这个表migration里面没看到有啊?
权限管理建议:
我给你一个推荐一个生成word功能:可以导出图表等
把这个
"rockmelodies/iiirockyiiidocx": "^1.1"
添加到composer.json
直接composer install 就可以
不要更新
CREATE TABLE `mix_account` (
`id` bigint(20) UNSIGNED NOT NULL COMMENT '编号',
`user_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户',
`status` tinyint(3) UNSIGNED NOT NULL DEFAULT '1' COMMENT '状态',
`mobile` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '手机号',
`expire_at` datetime DEFAULT NULL COMMENT '创建时间',
`deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
`created_at` datetime DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime DEFAULT NULL COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `mix_account`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `mix_account_mobile_unique` (`mobile`),
ADD KEY `mix_account_user_id_index` (`user_id`),
ADD KEY `mix_account_status_index` (`status`),
ADD KEY `mix_account_expire_at_index` (`expire_at`),
ADD KEY `mix_account_deleted_at_index` (`deleted_at`);
ALTER TABLE `mix_account`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '编号', AUTO_INCREMENT=25;
COMMIT;
Undefined index: TABLE @/data/webroot/wizard/app/helpers.php:589
Undefined index: TABLE @/data/webroot/wizard/app/helpers.php:589
Invalid argument supplied for foreach() @/data/webroot/wizard/app/helpers.php:594
比较差异
diff --git a/public/assets/css/style-dark.css b/public/assets/css/style-dark.css
index 732293e..8eada72 100644
--- a/public/assets/css/style-dark.css
+++ b/public/assets/css/style-dark.css
@@ -7,16 +7,16 @@ body.wz-dark-theme {
.wz-dark-theme a.dropdown-item {
color: #212529;
}
-.wz-dark-theme a.dropdown-item:hover {
+.wz-dark-theme .wz-panel-right, .wz-dark-theme .editormd-html-preview, .wz-dark-theme .wz-project-main, .wz-dark-theme a.dropdown-item:hover {
color: #ffffff;
background: #343a40;
}
-.wz-dark-theme .footer {
- background: #333;
- color: #ffffff;
+.wz-dark-theme pre.prettyprint, .wz-dark-theme .tm-input, .wz-dark-theme .footer {
+ background: #333 !important;
+ color: #ffffff !important;
border-top: none;
}
-.wz-dark-theme .footer a {
+.wz-dark-theme .com, .wz-dark-theme .footer a {
color: #aeb0b2;
}
.wz-dark-theme .footer a:hover {
@@ -46,12 +46,14 @@ body.wz-dark-theme {
.wz-dark-theme .wz-box-new {
border: none;
}
+.wz-dark-theme .typ,
.wz-dark-theme .wz-box-tag-star {
color: #f1c40f !important;
}
.wz-dark-theme a#scrollUp {
color: #aeb0b2;
}
+.wz-dark-theme .kwd,
.wz-dark-theme a#scrollUp:hover {
color: #00aaaa;
}
@@ -66,6 +68,7 @@ body.wz-dark-theme {
.wz-dark-theme .wz-top-navbar a.text-dark:hover {
color: #ffffff !important;
}
+.wz-dark-theme .pln,
.wz-dark-theme .wz-top-navbar .wz-top-nav-search input::-webkit-input-placeholder {
color: #dcdcdc;
}
@@ -193,4 +196,4 @@ body.wz-dark-theme {
.wz-dark-theme .nav-tabs .nav-item a {
color: #fffffc;
}
如题
LDAP启用并配置了,保存.env后没有生效,重启也不生效,大神帮忙康康呀! @mylxsw
配置了ldap。也开启了log模式,使用ldap的用户登录发现没有同步,也没任何错误和提示
php artisan migrate:install
In Connection.php line 664:
SQLSTATE[HY000] [2002] No such file or directory (SQL: create table migrations
(id
int unsigned not null auto_increment primary key, migr ation
varchar(191) not null, batch
int not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
In PDOConnection.php line 31:
SQLSTATE[HY000] [2002] No such file or directory
In PDOConnection.php line 27:
SQLSTATE[HY000] [2002] No such file or directory
创建的模板只适用于 Swagger 文档吗?Markdown 文档如何使用已保存文档,如果不能使用,另存为模板也就没什么作用了吧?
php artisan migrate:install 提示成功,但是status状态却发现如下部分表并未创建,所以在执行php artisan migrate 提示不成功,详情如下图所示
#php artisan migrate:status
...
| Yes | 2018_04_11_172816_modify_project_add_catalog | 1 |
| Yes | 2018_04_12_143655_create_project_star_table | 1 |
| No | 2018_05_10_105015_create_tags_table | |
| No | 2018_05_10_105629_create_page_tag_table | |
| No | 2018_12_11_164112_add_sort_to_nav | |
| No | 2018_12_11_164721_add_sort_to_nav_history | |
| No | 2019_04_20_141850_add_sync_to_pages | |
| No | 2019_04_20_141934_add_sync_filed_to_page_histories | |
| No | 2019_04_27_214733_add_objectguid_column | |
# php artisan migrate:install
Migration table created successfully.
# php artisan migrate
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrating: 2017_07_31_012730_create_project_table
Migrated: 2017_07_31_012730_create_project_table
Migrating: 2017_07_31_013758_create_page_table
Migrated: 2017_07_31_013758_create_page_table
Migrating: 2017_08_01_151100_create_page_history_table
Migrated: 2017_08_01_151100_create_page_history_table
Migrating: 2017_08_03_232417_create_operation_logs_table
Migrated: 2017_08_03_232417_create_operation_logs_table
Migrating: 2017_08_04_143640_create_template_table
Migrated: 2017_08_04_143640_create_template_table
Migrating: 2017_08_06_115558_create_group_table
Migrated: 2017_08_06_115558_create_group_table
Migrating: 2017_08_06_120713_create_user_group_ref_table
Migrated: 2017_08_06_120713_create_user_group_ref_table
Migrating: 2017_08_06_122310_update_user_table
Migrated: 2017_08_06_122310_update_user_table
Migrating: 2017_08_06_124106_create_project_group_ref_table
Migrated: 2017_08_06_124106_create_project_group_ref_table
Migrating: 2017_08_10_093939_create_categories_table
Migrated: 2017_08_10_093939_create_categories_table
Migrating: 2017_08_11_171545_create_share_table
Migrated: 2017_08_11_171545_create_share_table
Migrating: 2017_08_17_224954_create_comments_table
Migrated: 2017_08_17_224954_create_comments_table
Migrating: 2017_08_18_133716_create_attachments_table
Migrated: 2017_08_18_133716_create_attachments_table
Migrating: 2017_08_19_002350_create_notifications_table
Migrated: 2017_08_19_002350_create_notifications_table
Migrating: 2017_09_19_174315_modify_operation_logs
Migrated: 2017_09_19_174315_modify_operation_logs
Migrating: 2017_09_24_145801_modify_user_table
Migrated: 2017_09_24_145801_modify_user_table
Migrating: 2018_01_27_150601_modify_project_table
Migrated: 2018_01_27_150601_modify_project_table
Migrating: 2018_04_11_172516_create_project_catalogs_table
Migrated: 2018_04_11_172516_create_project_catalogs_table
Migrating: 2018_04_11_172816_modify_project_add_catalog
Migrated: 2018_04_11_172816_modify_project_add_catalog
Migrating: 2018_04_12_143655_create_project_star_table
Migrated: 2018_04_12_143655_create_project_star_table
Migrating: 2018_05_10_105015_create_tags_table
In Connection.php line 664:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter ta
ble wz_tags
add unique wz_tags_name_unique
(name
))
In PDOStatement.php line 119:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
In PDOStatement.php line 117:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
@mylxsw 官方演示的网站 也是无法插入思维导图,并且 初始化思维导图插件,样式就有问题,高度太少了,在谷歌浏览器和遨游浏览器均出现问题
php_1 | Fatal error: require(): Failed opening required '/webroot/wizard/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /webroot/wizard/bootstrap/autoload.php on line 17
找不到这个文件
新建公开项目,公共主页不显示,catalog_id=0,更新项目后,catalog_id 变为 null ,公共主页显示。
当用户身份为普通用户,同时加入的某个用户组时,查询到的公共首页数据是混乱的,原因是执行查询的sql是错误的。
Hello,朋友们,我尝试用php7.2+mysql5.7+composer+nginx+git的方法搭建wizard.但我以前没用过php,这次使用wizard是头一次安装php7.2,整个过程包括安装composer和php extentions等都是我一步步查资料弄的.
目前我认为环境已经搭建好了,但在执行php artisan migrate:install总是报could not find driver这个错:
In Connection.php line 664:
could not find driver (SQL: create table migrations
(id
int unsigned not null auto_increment primary key, migration
varchar(191) not null, batch
int
not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
In PDOConnection.php line 31:
could not find driver
In PDOConnection.php line 27:
could not find driver
我知道这可能是个很low的数据库连接错误,但我的DB配置就是将.env.example改成.env后,再更新其中的数据库配置:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=wizard
DB_USERNAME=root
DB_PASSWORD=root
我通过sqlYog或者命令都是能连上这个数据库的,而且创建了wizard库,请大神位帮忙看下,到底是哪里错了,不胜感激!
docker用的宿主机的数据库,用户密码数据库都添加了;
执行 docker run -it --rm --name my-wizard my-wizard php artisan migrate:install
报以下问题:
In Connection.php line 664:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: create table `migratio
ns` (`id` int unsigned not null auto_increment primary key, `migration` varchar(191) not null, `batch` int not null) defaul
t character set utf8mb4 collate 'utf8mb4_unicode_ci')
In PDOConnection.php line 31:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
In PDOConnection.php line 27:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
In PDOConnection.php line 27:
PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known
你好,我想加入这个项目的开发,不知可否?
作者您好,我感觉您开发的这个工具非常适合我们,请问有没有更详细的安装说明?
复制本地内容,新建文档完后,再次新建MD文档,总是弹窗提示,“发现您有尚未保存的内容,是否继续编辑? ”
这是检查的剪切板内容故意做的这种效果?还是bug呢?
将col-3换成col-md-3 即可自适应
wiki会不会更简单些?
部署环境: Ubuntu 16.04
docker version: 19.03.3
docker-compose version: 1.24.1, build 4667896b
php_1 | Do not run Composer as root/super user! See https://getcomposer.org/root for details
php_1 | Loading composer repositories with package information
php_1 |
php_1 |
php_1 | [Composer\Downloader\TransportException]
php_1 | The "https://packagist.laravel-china.org/packages.json" file could not be downloaded: Peer certificate CN=*.phphub.org' did not match expected CN=
packagist.laravel-china.org'
php_1 | Failed to enable crypto
php_1 | failed to open stream: operation failed
php_1 |
php_1 |
php_1 | install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...
php_1 |
php_1 |
php_1 | Warning: require(/webroot/wizard/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /webroot/wizard/bootstrap/autoload.php on line 17
php_1 |
php_1 | Fatal error: require(): Failed opening required '/webroot/wizard/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /webroot/wizard/bootstrap/autoload.php on line 17
php_1 |
php_1 | Warning: require(/webroot/wizard/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /webroot/wizard/bootstrap/autoload.php on line 17
php_1 |
php_1 | Fatal error: require(): Failed opening required '/webroot/wizard/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /webroot/wizard/bootstrap/autoload.php on line 17
php-fpm_1 | [16-Oct-2019 08:17:44] NOTICE: fpm is running, pid 1
php-fpm_1 | [16-Oct-2019 08:17:44] NOTICE: ready to handle connections
wizard_php_1 exited with code 255
docker-compose命令启动的不可用,docker打包流程不是很合理
建议添加附件上传功能,很有必要!!!
保存可以结合快捷键进行保存吗?
Ctrl + S 或 Cmd + S 的方式
在Markdown格式下,选择上传图片时,如下图:
上图所示,点击本地图片,选择图片后,自动生成/storage/2020/01-03/wGBzfBTjTuBNzUlm3RL4GVZfnPiFzUBze3tlyW4W.png
图片路径,如果此时发现图片上传错了,选择取消后,图片已上传至服务器上,没有被删除。
# docker volume ls
DRIVER VOLUME NAME
local my-wizard
# tree /var/lib/docker/volumes/my-wizard/
/var/lib/docker/volumes/my-wizard/
└── _data
└── 2020
└── 01-03
└── wGBzfBTjTuBNzUlm3RL4GVZfnPiFzUBze3tlyW4W.png
备注:/webroot/storage/app/public
挂载于本地服务器的/var/lib/docker/volumes/my-wizard/
下。
本地上传图片时,发现图片选错后,点击取消,错误图片可以从服务器上删除,避免无用数据冗余。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.