Giter Site home page Giter Site logo

open-hand / choerodon-front Goto Github PK

View Code? Open in Web Editor NEW
62.0 6.0 52.0 508 KB

Choerodon Front is a total front-end of Choerodon that combines Choerodon IAM and Choerodon DevOps.

Home Page: http://choerodon.io

License: Apache License 2.0

JavaScript 9.35% Dockerfile 9.78% Shell 7.92% Mustache 72.95%
choerodon javascript html css react react-redux webpack

choerodon-front's People

Contributors

aloudingyue avatar cczhung avatar crockitwood avatar devane001 avatar ettwz avatar hughhzwu avatar huihuawk avatar iotale avatar isaacy-125 avatar laincarl avatar lyanfang avatar thefuckingcode avatar timebye avatar vinkdong avatar zhuzhiyang 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

choerodon-front's Issues

npm install ERR: core-js

npm WARN deprecated [email protected]: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @choerodon/[email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'choerodon-front'
npm ERR! notarget

npm ERR! notarget No matching version found for @choerodon/[email protected]

/choerodon/choerodon-front$ npm install
npm WARN deprecated [email protected]: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @choerodon/[email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'choerodon-front'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR! /home/devops/.npm/_logs/2019-07-12T12_23_54_130Z-debug.log

Not able to access choerodon

I'm not able to run npm install instead i did yarn install and yarn start. After Build sucessfully How to access the choerodon front?

I'm not able to find the One click setup in the documentation.

📦 building modules (10990/10991 modules)DEPRECATION WARNING on line 24 of /home/devops/choerodon/choerodon-front/node_modules/@choerodon/boot/lib/containers/components/c7n/header/style/Logo.scss:
The operation #3F51B5 minus #0f1216 is deprecated and will be an error in future versions.
Consider using Sass's color functions instead.
http://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions

📦 building modules (10994/10994 modules)Extracted theme color css content length: 27553

webpack: bundle build is now finished.

DONE Compiled successfully in 202191ms 12:58:36 PM

请教应该如何进行二次开发

该项目具体实现都是在依赖中的子模块完成的,尝试过以下做法

  • 以对knowledge知识库进行二开举例
  • choerodon-front 使用 1.0.1 版本(2.0开源版依赖混乱暂时不用)
  • 下载与 packages.json 版本匹配的 knowledgebase-service 源码
  • packages.json 中将 knowledgebase-service 依赖改为本地依赖
  • node v16.20.1
  • npm 7.24.2

部分关键命令:

git clone https://github.com/open-hand/choerodon-front.git
cd choerodon-front
git checkout 1.0.1

git clone https://github.com/open-hand/knowledgebase-service.git
cd knowledgebase-service
git checkout 1.0.3
npm install
npm run compile
npm run dist

cd ..
# 修改 package.json 知识库依赖为本地
npm install --legacy-peer-deps
npm run dist
npm start

choerodon-front 的 package.json 修改后如下:

{
  "name": "@choerodon/choerodon-front",
  "routeName": "c7n",
  "version": "1.0.1",
  "description": "Choerodon Front",
  "scripts": {
    "start": "choerodon-front-boot start --config ./react/config.js",
    "dist": "node --max_old_space_size=4096 node_modules/@choerodon/boot/bin/choerodon-front-boot-dist --config ./react/config.js  --esbuild",
    "clean": "rm -rf ./src"
  },
  "contributors": [
    "choerodon"
  ],
  "license": "ISC",
  "resolutions": {
    "react": "16.14.0",
    "react-dom": "16.14.0"
  },
  "dependencies": {
    "@choerodon/boot": "0.23.3",
    "@choerodon/master": "1.0.8",
    "@choerodon/base": "1.0.6",
    "@choerodon/devops": "1.0.7",
    "@choerodon/asgard": "1.0.0",
    "@choerodon/notify": "1.0.0",
    "@choerodon/manager": "1.0.0",
    "@choerodon/agile": "1.0.4",
    "@choerodon/testmanager": "1.0.1",
    "@choerodon/knowledge": "./knowledgebase-service",
    "@choerodon/code-repo": "1.0.1",
    "@choerodon/prod-repo": "1.0.1",
    "react-color": "^2.14.1"
  },
  "devDependencies": {
    "@babel/code-frame": "^7.22.5",
    "@choerodon/components": "^1.0.1",
    "esbuild-webpack-plugin": "^1.0.5",
    "webpack-bundle-analyzer": "^3.8.0"
  }
}

启动后知识库页面白屏无限 loading,控制台提示

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'code')
    at PermissionProvider.js:113:1
    at Array.forEach (<anonymous>)
    at PermissionProvider.js:112:1

错误来自 node_modules\@choerodon\master\lib\containers\components\c7n\tools\permission\PermissionProvider.js
尝试定位问题,加了几个 console.log 发现变量都没有定义,但实际上 /iam/choerodon/v1/permissions/menus/check-permissions 确有返回数据
image
image
image

其他模块用以上方法也遇到同样问题,页面白屏无限 loading,希望能给予指导,谢谢!

Dependency package version problem

Pull the choerodon-front from the address provided by github, run npm install to download the dependencies, and find that the version of the package that the project depends on is not correct?this is why?

npm start 后提示错误信息 choerodon-front-boot-start(1) not executable. try chmod or run with root

使用 tag 为 0.24.0

安装依赖

cnpm install
✔ Installed 14 packages ✔ Linked 0 latest versions ✔ Run 0 scripts ✔ All packages installed (used 21ms(network 18ms), speed 0B/s, json 0(0B), tarball 0B)

运行

npm start

 > @choerodon/[email protected] start
 > choerodon-front-boot start --config ./react/config.js

error: /Users/hank.geng/work/hzero/choerodon-front/node_modules/_@[email protected]@@choerodon/boot/bin/choerodon-front-boot-start(1) not executable. try chmod or run with root

我的环境版本信息:

node -v
v12.21.0
npm -v
7.8.0

npm start报错

choerodon-front根目录下确实没有文件tsconfig.json,但是为什么choerodon-front-boot start --config ./react/config.js会执行呢

$ npm start

> @choerodon/[email protected] start E:\www\choerodon-front\1-choerodon-front
> choerodon-front-boot start --config ./react/config.js

Failed to compile.

Cannot find "E:\www\choerodon-front\1-choerodon-front\tsconfig.json" file. Please check webpack and ForkTsCheckerWebpackPlugin configuration.
Possible errors:
  - wrong `context` directory in webpack configuration (if `tsconfig` is not set or is a relative path in fork plugin configuration)
  - wrong `tsconfig` path in fork plugin configuration (should be a relative or absolute path)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @choerodon/[email protected] start: `choerodon-front-boot start --config ./react/config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @choerodon/[email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dtLingZhong\AppData\Roaming\npm-cache\_logs\2022-06-16T12_14_16_454Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'D:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle @choerodon/[email protected]~prestart: @choerodon/[email protected]
6 info lifecycle @choerodon/[email protected]~start: @choerodon/[email protected]
7 verbose lifecycle @choerodon/[email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle @choerodon/[email protected]~start: PATH: D:\Program Files\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\www\choerodon-front\1-choerodon-front\node_modules\.bin;C:\Users\dtLingZhong\bin;D:\Git\mingw64\bin;D:\Git\usr\local\bin;D:\Git\usr\bin;D:\Git\usr\bin;D:\Git\mingw64\bin;D:\Git\usr\bin;C:\Users\dtLingZhong\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Python39\Scripts;C:\Python39;D:\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;D:\Git\cmd;C:\Program Files\TortoiseGit\bin;D:\Program Files\nvm\v12.22.12\node_global;D:\Program Files (x86)\NetSarang\Xftp 7;C:\ProgramData\chocolatey\bin;D:\Program Files\nvm;D:\Program Files\nodejs;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;D:\Program Files\xshell 7;D:\Program Files\PuTTY;D:\微信web开发者工具\dll;D:\Program Files (x86)\AOMEI\AOMEI Backupper\6.9.0;C:\Users\dtLingZhong\AppData\Local\Microsoft\WindowsApps;C:\Users\dtLingZhong\AppData\Roaming\npm;C:\Users\dtLingZhong\AppData\Local\Programs\Microsoft VS Code\bin;D:\Program Files\nvm;D:\Program Files\nodejs;D:\Git\usr\bin\vendor_perl;D:\Git\usr\bin\core_perl
9 verbose lifecycle @choerodon/[email protected]~start: CWD: E:\www\choerodon-front\1-choerodon-front
10 silly lifecycle @choerodon/[email protected]~start: Args: [ '/d /s /c', 'choerodon-front-boot start --config ./react/config.js' ]
11 silly lifecycle @choerodon/[email protected]~start: Returned: code: 1  signal: null
12 info lifecycle @choerodon/[email protected]~start: Failed to exec start script
13 verbose stack Error: @choerodon/[email protected] start: `choerodon-front-boot start --config ./react/config.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (D:\Program Files\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:314:20)
13 verbose stack     at ChildProcess.<anonymous> (D:\Program Files\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:314:20)
13 verbose stack     at maybeClose (internal/child_process.js:1022:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid @choerodon/[email protected]
15 verbose cwd E:\www\choerodon-front\1-choerodon-front
16 verbose Windows_NT 10.0.19044
17 verbose argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v12.22.12
19 verbose npm  v6.14.16
20 error code ELIFECYCLE
21 error errno 1
22 error @choerodon/[email protected] start: `choerodon-front-boot start --config ./react/config.js`
22 error Exit status 1
23 error Failed at the @choerodon/[email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

页面卡顿

Choerodon平台版本:0.14.0

运行环境:自主搭建

问题描述:
待办事项和活跃冲刺模块,如果数据超过700条,会导致整个浏览器卡顿,操作延迟,希望可以支持分页,或者做一下优化

uuid/v4报错

版本1.0.0的tag版本,报错 Module not found: Error: Can't resolve 'uuid/v4'

改为const uuidv4 = require('uuid/v4');不再报错

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.