Giter Site home page Giter Site logo

rest_xops's People

Contributors

xufqing 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

rest_xops's Issues

关于rbac 权限的问题

我想问下用户--》角色---》权限---》组织结构,这样的权限问题。
举例:
1、比如拥有两个学校,两个学校他们的组织结构基本一致,所以分配角色的时候他们角色都是老师,用户所在的组织结构决定了他的视野范围,也就是他们只能看到自己学校的数据
2、但是由于他们的角色一样,同样给予了两老师的增删改查的权限,岂不是一个学校的老师其实伪造下请求就可以删除另一个学校的资料。请问有答友是解决这个问题的吗?这是我看这个系统的一点疑惑

[Feature Request] 日志搜索

输入:

  1. 指定系统名称/编号/标签
  2. 关键字/正则表达式
    输出:
    在指定系统中各台主机中根据关键字/正则表达式搜索系统日志,将符合条件的日志内容显示出来,显示内容包括主机名,日志文件名,日志信息

用户头像上传失败

在前端使用element组件中的upload的情况下,后端该怎么接收用户上传的图片呢?我看demo
中的用户头像也是无法上传成功,能完善一下这块吗?谢谢

有才

python 版本
django + vue

golang
gin + react hooks 、antd v4

刚学了点vue,又想学习golang .这又得学习 antd ,让我在哭一会

[Feature request] 对应故障、变更的权限管理

默认所有账户只有普通用户权限。当有故障工单或变更时,开启处理人员在指定机器上的sudo权限。
对于极端情况,账户无法登陆的,审批开启普通账户登陆堡垒机代理目标机root账户的权限。

mac err: npm run dev

cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

events.js:137
throw er; // Unhandled 'error' event
^

Error: spawn webpack-dev-server ENOENT
at _errnoException (util.js:1003:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:389:16)
at process._tickCallback (internal/process/next_tick.js:152:19)
at Function.Module.runMain (module.js:703:11)
at startup (bootstrap_node.js:193:16)
at bootstrap_node.js:617:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

通过api/users/创建用户进入死循环

{
"username":"yangjuni",
"name":"杨三郎",
"email":"[email protected]",
"mobile":"13265118888"
}


登陆之后,前端一直循环发起请求

HTTP GET /auth/build/menus/ 200 [0.03, 192.168.232.1:57465]
HTTP GET /auth/info/ 200 [0.01, 192.168.232.1:57566]
HTTP GET /auth/info/ 200 [0.02, 192.168.232.1:57465]
HTTP GET /auth/build/menus/ 200 [0.02, 192.168.232.1:57566]
HTTP GET /auth/build/menus/ 200 [0.02, 192.168.232.1:57465]
HTTP GET /auth/info/ 200 [0.01, 192.168.232.1:57566]
HTTP GET /auth/info/ 200 [0.01, 192.168.232.1:57465]
HTTP GET /auth/build/menus/ 200 [0.01, 192.168.232.1:57566]
HTTP GET /auth/build/menus/ 200 [0.02, 192.168.232.1:57465]
HTTP GET /auth/info/ 200 [0.01, 192.168.232.1:57465]
HTTP GET /auth/info/ 200 [0.01, 192.168.232.1:57566]
HTTP GET /auth/build/menus/ 200 [0.02, 192.168.232.1:57465]
HTTP GET /auth/build/menus/ 200 [0.02, 192.168.232.1:57566]
HTTP GET /auth/info/ 200 [0.01, 192.168.232.1:57566]
HTTP GET /auth/info/ 200 [0.02, 192.168.232.1:57465]
HTTP GET /auth/build/menus/ 200 [0.01, 192.168.232.1:57566]
HTTP GET /auth/build/menus/ 200 [0.02, 192.168.232.1:57465]
HTTP GET /auth/info/ 200 [0.01, 192.168.232.1:57465]
HTTP GET /auth/info/ 200 [0.02, 192.168.232.1:57465]
HTTP GET /auth/build/menus/ 200 [0.02, 192.168.232.1:57566]
HTTP OPTIONS /api/users/4/ 200 [0.00, 192.168.232.1:57603]
HTTP GET /auth/info/ 200 [0.01, 192.168.232.1:57566]
HTTP GET /auth/build/menus/ 200 [0.01, 192.168.232.1:57566]
HTTP GET /auth/build/menus/ 200 [0.14, 192.168.232.1:57465]
HTTP GET /media/image/default.png 200 [0.00, 192.168.232.1:575

手动添加 给其角色 恢复正常

没有给其角色的用户都会出现无限循环请求

对于隐藏菜单并未生效

rest_xops/xops_qd/src/views/layout/components/Sidebar/SidebarItem.vue 中


<template v-for="child in item.children" v-if="!child.hidden">
        <sidebar-item
          v-if="child.children&&child.children.length>0"
          :is-nest="true"
          :item="child"
          :key="child.path"
          :base-path="resolvePath(child.path)"
          class="nest-menu" />

        <app-link v-else :to="resolvePath(child.path)" :key="child.name">
          <el-menu-item :index="resolvePath(child.path)">
            <item v-if="child.meta" :icon="child.meta.icon" :title="child.meta.title" />
          </el-menu-item>
        </app-link>
      </template>

这里只判断无子菜单显示菜单,如果无子菜单并未判断是否显示

修改为:


<template v-for="child in item.children" v-if="!child.hidden">
        <sidebar-item
          v-if="child.children&&child.children.length>0"
          :is-nest="true"
          :item="child"
          :key="child.path"
          :base-path="resolvePath(child.path)"
          class="nest-menu" />

        <app-link v-else-if="!child.hidden"  :to="resolvePath(child.path)" :key="child.name">
          <el-menu-item :index="resolvePath(child.path)">
            <item v-if="child.meta" :icon="child.meta.icon" :title="child.meta.title" />
          </el-menu-item>
        </app-link>
      </template>

前端 npm install 失败

npm install --registry=https://registry.npm.taobao.org
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

> [email protected] install /Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents
> node install

node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v72-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:221:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated:
      ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
X(Boolean)
^
../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'
      val->To ## TYPE(isolate->GetCurrentContext())                            \
           ^
<scratch space>:39:1: note: expanded from here
ToBoolean
^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:2663:3: note:
      'ToBoolean' has been explicitly marked deprecated here
  V8_DEPRECATED("ToBoolean can never throw. Use Local version.",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:221:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:40:1: warning: 'BooleanValue' is deprecated:
      BooleanValue can never throw. Use Isolate version.
      [-Wdeprecated-declarations]
X(bool, Boolean)
^
../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'
  return val->NAME ## Value(isolate->GetCurrentContext());                     \
              ^
<scratch space>:46:1: note: expanded from here
BooleanValue
^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:2701:3: note:
      'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:222:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from
      'v8::Isolate *' to 'Local<v8::Context>'
  return scope.Escape(v8::Function::New( isolate
                                         ^~~~~~~
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:186:7: note:
      candidate constructor (the implicit copy constructor) not viable: no known
      conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for
      1st argument
class Local {
      ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:186:7: note:
      candidate constructor (the implicit move constructor) not viable: no known
      conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st
      argument
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:190:13: note:
      candidate template ignored: could not match 'Local<type-parameter-0-0>'
      against 'v8::Isolate *'
  V8_INLINE Local(Local<S> that)
            ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:4276:22: note:
      passing argument to parameter 'context' here
      Local<Context> context, FunctionCallback callback,
                     ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:222:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:37: error: too few arguments to
      function call, expected 2, have 1
  return v8::StringObject::New(value).As<v8::StringObject>();
         ~~~~~~~~~~~~~~~~~~~~~      ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:5531:3: note: 'New'
      declared here
  static Local<Value> New(Isolate* isolate, Local<String> value);
  ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1063:44: error: no matching member function for call to
      'ToString'
      v8::Local<v8::String> string = from->ToString();
                                     ~~~~~~^~~~~~~~
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:2668:44: note:
      candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:2684:31: note:
      candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1073:37: error: cannot initialize a parameter of type
      'v8::Isolate *' with an lvalue of type 'char *'
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                    ^~~~
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:2878:26: note:
      passing argument to parameter 'isolate' here
  int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                         ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1847:28: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
    New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                           ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1853:28: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
    New(persistentHandle)->Set(key, value);
                           ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1859:28: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
    New(persistentHandle)->Set(index, value);
                           ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3507:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1865:32: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
        New(persistentHandle)->Get(New(key).ToLocalChecked()));
                               ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3553:3: note: 'Get'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1871:48: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
    return scope.Escape(New(persistentHandle)->Get(key));
                                               ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3553:3: note: 'Get'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1876:48: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
    return scope.Escape(New(persistentHandle)->Get(index));
                                               ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3557:3: note: 'Get'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:2690:
../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in
      'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object>
      >'
    assert(persistent().IsNearDeath());
           ~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note:
      expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE...
                        ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:2690:
../../nan/nan_object_wrap.h:67:18: warning: 'MarkIndependent' is deprecated:
      Weak objects are always considered independent. Use TracedGlobal when
      trying to use EmbedderHeapTracer. Use a strong handle when trying to keep
      an object alive. [-Wdeprecated-declarations]
    persistent().MarkIndependent();
                 ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:566:3: note:
      'MarkIndependent' has been explicitly marked deprecated here
  V8_DEPRECATED(
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:2690:
../../nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in
      'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object>
      >'
    assert(wrap->handle_.IsNearDeath());
           ~~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note:
      expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE...
                        ^
../fsevents.cc:50:32: error: no template named 'Handle' in namespace 'v8'
    static void Initialize(v8::Handle<v8::Object> exports);
                           ~~~~^
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after
      field 'lockStarted' [-Wreorder-ctor]
   : async_resource("fsevents:FSEvents"), lockStarted(false) {
     ^
In file included from ../fsevents.cc:82:
../src/constants.cc:89:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagNone").ToLoca...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:90:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagMustScanSubDi...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:91:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagUserDropped")...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:92:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagKernelDropped...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:93:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagEventIdsWrapp...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:94:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagHistoryDone")...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:95:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagRootChanged")...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:96:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagMount").ToLoc...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:97:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagUnmount").ToL...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:98:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemCreated")...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:99:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemRemoved")...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:100:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemInodeMeta...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:101:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemRenamed")...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:102:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemModified"...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:103:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemFinderInf...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:104:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemChangeOwn...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:105:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemXattrMod"...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:106:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemIsFile")....
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:107:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemIsDir").T...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:82:
../src/constants.cc:108:11: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemIsSymlink...
          ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8.h:3498:3: note: 'Set'
      has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/zy/Library/Caches/node-gyp/12.16.2/include/node/v8config.h:328:29: note:
      expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../fsevents.cc:85:16: error: variable has incomplete type 'void'
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
               ^
../fsevents.cc:85:31: error: no member named 'Handle' in namespace 'v8'
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                          ~~~~^
../fsevents.cc:85:48: error: expected '(' for function-style cast or type
      construction
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                                     ~~~~~~~~~~^
../fsevents.cc:85:50: error: use of undeclared identifier 'exports'
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                                                 ^
../fsevents.cc:85:58: error: expected ';' after top level declarator
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                                                         ^
                                                         ;
30 warnings and 12 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 20.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64" "--napi_version=5" "--node_abi_napi=napi"
gyp ERR! cwd /Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents
gyp ERR! node -v v12.16.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=5 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Darwin 20.2.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents
node-pre-gyp ERR! node -v v12.16.2
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/vue-native-websocket/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=5 --node_abi_napi=napi' (1)

> [email protected] install /Users/zy/Desktop/reference/rest_xops/xops_qd/node_modules/webpack-dev-server/node_modules/fsevents
> node install.js

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
npm WARN [email protected] requires a peer of html-webpack-plugin@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN [email protected] license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/vue-native-websocket/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 12 packages from 5 contributors, removed 6 packages and updated 92 packages in 21.657s

40 packages are looking for funding
  run `npm fund` for details

关于架构以及一些问题

emm正在往这方面学习吧,想了解下该平台的架构是如何实现的,希望作者能解答下,还有这个系统为什么要前后端分离。感谢!!

用channels_redis链接报错

AttributeError: '_UnixSelectorEventLoop' object has no attribute 'create_future'
具体是什么问题呢?能给下思路吗

联系方式

麻烦留个联系方式,方便沟通,谢谢

想加入开发

我想加入开发,无偿,作者可以留个联系方式吗,比如建个群

Listen failure: unsupported operand type(s) for |: 'NoneType' and 'int'

启动监听失败。
D:\Python\rest_xops\Scripts\python.exe G:/PycharmProjects/rest_xops/manage.py runserver 8000
Performing system checks...

System check identified no issues (0 silenced).
June 14, 2020 - 19:44:42
Django version 2.1.7, using settings 'rest_xops.settings'
Starting ASGI/Channels version 2.1.7 development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Listen failure: unsupported operand type(s) for |: 'NoneType' and 'int'

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.