Git Product home page Git Product logo

wizard's People

Contributors

angelhappyboy avatar mylxsw avatar ro4 avatar

Stargazers

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

Watchers

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

wizard's Issues

#bug#附件下载

我上传的附件是docx,但下载回来后是zip包。
在mac os下,还会自动解压

希望可以添加对mariadb的支持

Dockerfile配置信息
o_1dabpcgah1n7nb7vfpbs901u2va.jpg
运行docker run -it --rm --name my-wizard my-wizard php artisan migrate:install
报错
o_1dabpfkdbnhlt8bgvj5i5kcna.jpg
后改mysql认证方式问题仍未解决,怀疑是musql装在docker中的问题

前端增加版本号显示

建议在前端增加版本号显示或者更新的内容,
可以考虑在右上角用户名下拉里增加

升级之后比较差异500错误

[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')

不能上传图片及文档类型

1、docker 容器化后挂载/webroot/storage/app/public 后不能上传图片及文档类型
2、上传大小超过2M没办法上传请问在哪里设置?

Docker打包流程错误

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'

权限管理建议

权限管理建议:

  • 权限粒度-增加用户对访问的页面的控制。
  • 用户级别-增加用户级别管理

Undefined index

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配置后无效

配置了ldap。也开启了log模式,使用ldap的用户登录发现没有同步,也没任何错误和提示

SQLSTATE[HY000] [2002] No such file or directory

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

关于 php artisan migrate:install、 php artisan migrate操作的问题

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

docker-compose up error

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

找不到这个文件

公共首页项目查询结果混乱

当用户身份为普通用户,同时加入的某个用户组时,查询到的公共首页数据是混乱的,原因是执行查询的sql是错误的。

php artisan migrate:install ERROR:could not find driver

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

关于用户权限的建议!

目前针对用户组分配了修改权限,但是没有控制是否可读权限,建议可以加上针对用户组分配查看项目的功能,最好和修改分开设置;
image

docker-compose.yml文件部署失败, php部署报错

部署环境: 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

优化保存交互

保存可以结合快捷键进行保存吗?
Ctrl + S 或 Cmd + S 的方式

上传图片选择本地上传时,如果因为选错图片,点击取消,图片仍然存在挂载的目录上,没有被删除

在Markdown格式下,选择上传图片时,如下图:

image

上图所示,点击本地图片,选择图片后,自动生成/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/下。

优化建议

本地上传图片时,发现图片选错后,点击取消,错误图片可以从服务器上删除,避免无用数据冗余。

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.