• Dev
  • Customização de Painel no NovoSGA 2.0

Boa tarde Rogério,
Estou implantando o NovoSGA na empresa que trabalho, e ao instalar a versão 2.0 percebi que não é mais possível utilizar o Painel via navegador, pois agora ele é uma aplicação, dificultando a customização do painel.
Você planeja disponibilizar a alternativa de usar o Painel Web na versão 2.0 do sistema?

    11 dias depois

    evertondreher

    evertondreher Você planeja disponibilizar a alternativa de usar o Painel Web na versão 2.0 do sistema?

    Não. Mas você pode customizar o código-fonte e fazer o build.

    um mês depois

    Estou com esse problema

    PS C:\Users\conta\Downloads\painel-web-master> yarn install
    yarn install v1.12.3
    [1/4] Resolving packages...
    [2/4] Fetching packages...
    info 7zip-bin-linux@1.1.0: The platform "win32" is incompatible with this module.
    info "7zip-bin-linux@1.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
    info 7zip-bin-mac@1.0.1: The platform "win32" is incompatible with this module.
    info "7zip-bin-mac@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
    info fsevents@1.1.2: The platform "win32" is incompatible with this module.
    info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
    [3/4] Linking dependencies...
    [4/4] Building fresh packages...
    [-/4] ⠠ waiting...
    [2/4] ⠠ electron
    [3/4] ⠠ rabin-bindings
    error C:\Users\conta\Downloads\painel-web-master\node_modules\rabin-bindings: Command failed.
    Exit code: 1
    Command: prebuild-install || node-gyp rebuild
    Arguments:
    Directory: C:\Users\conta\Downloads\painel-web-master\node_modules\rabin-bindings
    Output:
    prebuild-install info begin Prebuild-install version 2.3.0
    prebuild-install info looking for local prebuild @ prebuilds\rabin-bindings-v1.7.3-node-v64-win32-x64.tar.gz
    prebuild-install info looking for cached prebuild @ C:\Users\conta\AppData\Roaming\npm-cache\_prebuilds\https-github.com-develar-rabin-bindings-releases-download-v1.7.3-rabin-bindings-v1.7.3-node-v64-win32-x64.tar.gz
    prebuild-install http request GET https://github.com/develar/rabin-bindings/releases/download/v1.7.3/rabin-bindings-v1.7.3-node-v64-win32-x64.tar.gz
    prebuild-install http 404 https://github.com/develar/rabin-bindings/releases/download/v1.7.3/rabin-bindings-v1.7.3-node-v64-win32-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=10.13.0 runtime=node arch=x64 platform=win32)
    
    C:\Users\conta\Downloads\painel-web-master\node_modules\rabin-bindings>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
    gyp info it worked if it ends with ok
    gyp info using node-gyp@3.8.0
    gyp info using node@10.13.0 | win32 | x64
    gyp ERR! configure error
    gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
    gyp ERR! stack     at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)
    gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)
    gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
    gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:154:21)
    gyp ERR! System Windows_NT 10.0.17134
    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
    gyp ERR! cwd C:\Users\conta\Downloads\painel-web-master\node_modules\rabin-bindings
    gyp ERR! node -v v10.13.0
      5 dias depois

      rogeriolino, primeiramente, parabéns pela ferramenta! Muito bem feita e útil!
      Quanto ao painel-web, existe algum guia para personalização e compilação do painel?
      Por exemplo, vi que no fonte tem o idioma pt-BR, mas o padrão do meu painel é en-US. Qual é a maneira de mudar esse comportamento?

        @rogeriolino antes de tentar fazer qualquer modificação, tentei compilar seguindo as instruções que constam no Github, sem sucesso.

        Caso você possa ajudar, agradeço de antemão.
        Segue a saída com os erros:

        PS C:\Users\glmarques\Git\painel-web> yarn install
        yarn install v1.12.3
        [1/4] Resolving packages...
        [2/4] Fetching packages...
        info 7zip-bin-linux@1.1.0: The platform "win32" is incompatible with this module.
        info "7zip-bin-linux@1.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
        info 7zip-bin-mac@1.0.1: The platform "win32" is incompatible with this module.
        info "7zip-bin-mac@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
        info fsevents@1.1.2: The platform "win32" is incompatible with this module.
        info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
        [3/4] Linking dependencies...
        [4/4] Building fresh packages...
        [-/4] ⠠ waiting...
        [-/4] ⠠ waiting...
        [3/4] ⠐ rabin-bindings
        error C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings: Command failed.
        Exit code: 1
        Command: prebuild-install || node-gyp rebuild
        Arguments:
        Directory: C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings
        Output:
        prebuild-install info begin Prebuild-install version 2.3.0
        prebuild-install info looking for local prebuild @ prebuilds\rabin-bindings-v1.7.3-node-v64-win32-ia32.tar.gz
        prebuild-install info looking for cached prebuild @ C:\Users\glmarques\AppData\Roaming\npm-cache\_prebuilds\https-github.com-develar-rabin-bindings-releases-download-v1.7.3-rabin-bindings-v1.7.3-node-v64-win32-ia32.tar.gz
        prebuild-install http request GET https://github.com/develar/rabin-bindings/releases/download/v1.7.3/rabin-bindings-v1.7.3-node-v64-win32-ia32.tar.gz
        prebuild-install http 404 https://github.com/develar/rabin-bindings/releases/download/v1.7.3/rabin-bindings-v1.7.3-node-v64-win32-ia32.tar.gz
        prebuild-install WARN install No prebuilt binaries found (target=10.14.1 runtime=node arch=ia32 platform=win32)
        
        C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
        gyp info it worked if it ends with ok
        gyp info using node-gyp@3.8.0
        gyp info using node@10.14.1 | win32 | ia32
        gyp info spawn C:\Users\glmarques\.windows-build-tools\python27\python.exe
        gyp info spawn args [ 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
        gyp info spawn args   'binding.gyp',
        gyp info spawn args   '-f',
        gyp info spawn args   'msvs',
        gyp info spawn args   '-G',
        gyp info spawn args   'msvs_version=2015',
        gyp info spawn args   '-I',
        gyp info spawn args   'C:\\Users\\glmarques\\Git\\painel-web\\node_modules\\rabin-bindings\\build\\config.gypi',
        gyp info spawn args   '-I',
        gyp info spawn args   'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
        gyp info spawn args   '-I',
        gyp info spawn args   'C:\\Users\\glmarques\\.node-gyp\\10.14.1\\include\\node\\common.gypi',
        gyp info spawn args   '-Dlibrary=shared_library',
        gyp info spawn args   '-Dvisibility=default',
        gyp info spawn args   '-Dnode_root_dir=C:\\Users\\glmarques\\.node-gyp\\10.14.1',
        gyp info spawn args   '-Dnode_gyp_dir=C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
        gyp info spawn args   '-Dnode_lib_file=C:\\Users\\glmarques\\.node-gyp\\10.14.1\\<(target_arch)\\node.lib',
        gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\glmarques\\Git\\painel-web\\node_modules\\rabin-bindings',
        gyp info spawn args   '-Dnode_engine=v8',
        gyp info spawn args   '--depth=.',
        gyp info spawn args   '--no-parallel',
        gyp info spawn args   '--generator-output',
        gyp info spawn args   'C:\\Users\\glmarques\\Git\\painel-web\\node_modules\\rabin-bindings\\build',
        gyp info spawn args   '-Goutput_dir=.' ]
        gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
        gyp info spawn args [ 'build/binding.sln',
        gyp info spawn args   '/clp:Verbosity=minimal',
        gyp info spawn args   '/nologo',
        gyp info spawn args   '/p:Configuration=Release;Platform=Win32' ]
        Compilando os projetos desta solu��o um de cada vez. Para habilitar o build paralelo, adicione a op��o "/m".
          bindings.cc
          rabin.cc
          rabin_wrap.cc
          win_delay_load_hook.cc
        c:\users\glmarques\git\painel-web\node_modules\nan\nan_maybe_43_inl.h(112): error C2039: 'ForceSet': n�o � um membro de 'v8::Object' (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(3243): note: consulte a declara��o de 'v8::Object' (compilando arquivo de origem ..\src\rabin_wrap.cc)
        c:\users\glmarques\git\painel-web\node_modules\nan\nan_maybe_43_inl.h(112): error C2039: 'ForceSet': n�o � um membro de 'v8::Object' (compilando arquivo de origem ..\bindings.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(3243): note: consulte a declara��o de 'v8::Object' (compilando arquivo de origem ..\bindings.cc)
        c:\users\glmarques\git\painel-web\node_modules\nan\nan_implementation_12_inl.h(337): warning C4996: 'v8::StringObject::New': foi declarado preterido (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(5052): note: consulte a declara��o de 'v8::StringObject::New' (compilando arquivo de origem ..\src\rabin_wrap.cc)
        c:\users\glmarques\git\painel-web\node_modules\nan\nan_implementation_12_inl.h(337): warning C4996: 'v8::StringObject::New': foi declarado preterido (compilando arquivo de origem ..\bindings.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(5052): note: consulte a declara��o de 'v8::StringObject::New' (compilando arquivo de origem ..\bindings.cc)
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(834): warning C4996: 'node::MakeCallback': foi declarado preterido (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(834): warning C4996: 'node::MakeCallback': foi declarado preterido (compilando arquivo de origem ..\bindings.cc)c:\users\glmarques\.node-gyp\10.14.1\include\node\node.h(175): note: consulte a declara��o de 'node::MakeCallback' (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        
          c:\users\glmarques\.node-gyp\10.14.1\include\node\node.h(175): note: consulte a declara��o de 'node::MakeCallback' (compilando arquivo de origem ..\bindings.cc)
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(849): warning C4996: 'node::MakeCallback': foi declarado preterido (compilando arquivo de origem ..\src\rabin_wrap.cc)c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(849): warning C4996: 'node::MakeCallback': foi declarado preterido (compilando arquivo de origem ..\bindings.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        
          c:\users\glmarques\.node-gyp\10.14.1\include\node\node.h(168): note: consulte a declara��o de 'node::MakeCallback' (compilando arquivo de origem ..\src\rabin_wrap.cc)c:\users\glmarques\.node-gyp\10.14.1\include\node\node.h(168): note: consulte a declara��o de 'node::MakeCallback' (compilando arquivo de origem ..\bindings.cc)
        
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(864): warning C4996: 'node::MakeCallback': foi declarado preterido (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(864): warning C4996: 'node::MakeCallback': foi declarado preterido (compilando arquivo de origem ..\bindings.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
          c:\users\glmarques\.node-gyp\10.14.1\include\node\node.h(161): note: consulte a declara��o de 'node::MakeCallback' (compilando arquivo de origem ..\src\rabin_wrap.cc)
          c:\users\glmarques\.node-gyp\10.14.1\include\node\node.h(161): note: consulte a declara��o de 'node::MakeCallback' (compilando arquivo de origem ..\bindings.cc)
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(911): warning C4996: 'v8::Value::ToString': foi declarado preterido (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(911): warning C4996: 'v8::Value::ToString': foi declarado preterido (compilando arquivo de origem ..\bindings.cc)c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(10040): note: consulte a declara��o de 'v8::Value::ToString' (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(10040): note: consulte a declara��o de 'v8::Value::ToString' (compilando arquivo de origem ..\bindings.cc)
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(921): warning C4996: 'v8::String::WriteUtf8': foi declarado preterido (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(921): warning C4996: 'v8::String::WriteUtf8': foi declarado preterido (compilando arquivo de origem ..\bindings.cc)c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(2658): note: consulte a declara��o de 'v8::String::WriteUtf8' (compilando arquivo de origem ..\src\rabin_wrap.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(2658): note: consulte a declara��o de 'v8::String::WriteUtf8' (compilando arquivo de origem ..\bindings.cc)
        c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(1473): warning C4996: 'node::MakeCallback': foi declarado preterido (compilando arquivo de origem ..\src\rabin_wrap.cc)c:\users\glmarques\git\painel-web\node_modules\nan\nan.h(1473): warning C4996: 'node::MakeCallback': foi declarado preterido (compilando arquivo de origem ..\bindings.cc) [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
        
          c:\users\glmarques\.node-gyp\10.14.1\include\node\node.h(175): note: consulte a declara��o de 'node::MakeCallback' (compilando arquivo de origem ..\src\rabin_wrap.cc)
          c:\users\glmarques\.node-gyp\10.14.1\include\node\node.h(175): note: consulte a declara��o de 'node::MakeCallback' (compilando arquivo de origem ..\bindings.cc)
        c:\users\glmarques\git\painel-web\node_modules\rabin-bindings\src\rabin_wrap.cc(52): warning C4996: 'v8::Value::Uint32Value': foi declarado preterido [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(2477): note: consulte a declara��o de 'v8::Value::Uint32Value'
        c:\users\glmarques\git\painel-web\node_modules\rabin-bindings\src\rabin_wrap.cc(53): warning C4996: 'v8::Value::Uint32Value': foi declarado preterido [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(2477): note: consulte a declara��o de 'v8::Value::Uint32Value'
        c:\users\glmarques\git\painel-web\node_modules\rabin-bindings\src\rabin_wrap.cc(54): warning C4996: 'v8::Value::Uint32Value': foi declarado preterido [C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings\build\rabin-bindings.vcxproj]
          c:\users\glmarques\.node-gyp\10.14.1\include\node\v8.h(2477): note: consulte a declara��o de 'v8::Value::Uint32Value'
        gyp ERR! build error
        gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
        gyp ERR! stack     at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
        gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
        gyp ERR! System Windows_NT 10.0.17134
        gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
        gyp ERR! cwd C:\Users\glmarques\Git\painel-web\node_modules\rabin-bindings
        gyp ERR! node -v v10.14.1
        PS C:\Users\glmarques\Git\painel-web>

        Logo no início há um erro 404 pois o arquivo não existe no Github, porém existe em registry.yarnpkg.com...