{"id":21623010,"url":"https://github.com/ajiu9/vism","last_synced_at":"2026-05-07T01:02:04.597Z","repository":{"id":126389783,"uuid":"146061841","full_name":"ajiu9/vism","owner":"ajiu9","description":"一个基于react 和antD 框架开发的后台管理系。项目地址","archived":false,"fork":false,"pushed_at":"2018-09-12T09:00:37.000Z","size":13926,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T08:43:49.467Z","etag":null,"topics":["antd","react","react-redux","react-redux-demo","react-router4"],"latest_commit_sha":null,"homepage":"https://ajiu9.github.io/build/vism","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajiu9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-25T03:35:08.000Z","updated_at":"2024-10-17T07:49:19.000Z","dependencies_parsed_at":"2023-06-16T13:15:33.662Z","dependency_job_id":null,"html_url":"https://github.com/ajiu9/vism","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajiu9/vism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajiu9%2Fvism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajiu9%2Fvism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajiu9%2Fvism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajiu9%2Fvism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajiu9","download_url":"https://codeload.github.com/ajiu9/vism/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajiu9%2Fvism/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32718323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T00:29:05.620Z","status":"ssl_error","status_checked_at":"2026-05-07T00:28:57.074Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antd","react","react-redux","react-redux-demo","react-router4"],"created_at":"2024-11-25T00:11:08.268Z","updated_at":"2026-05-07T01:02:00.385Z","avatar_url":"https://github.com/ajiu9.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"这个是一个基于react和antd ui 框架搭建的一个后台管理系统,`create-react-app`脚手架搭建.\n\n## 运行项目\n\n- [npm start](#npm-start)\n- [npm run eject](#npm-run-eject)\n\n## 项目结构\n\n项目的文件结构如下\n\n```\nvism/\n  README.md\n  node_modules/\n  package.json\n  public/\n    index.html\n    favicon.ico\n  src/\n    api\n    components\n      BaseForm\n      ETable\n      Footer\n      Header\n      NavLeft\n    config\n    pages\n      city\n      echarts\n      form\n      home\n      login\n      map\n      noMatch\n      order\n      permission\n      rich\n      table\n      ui\n      user\n    redux\n      action\n      reducer\n      store\n    resouce // 资源文件夹\n    style\n    utils\n    admin.js\n    App.js\n    common.js\n    index.js\n    registerServiceWorker.js\n    router.js\n```\n\nFor the project to build, **these files must exist with exact filenames**:\n\n* `public/index.html` is the page template;\n* `src/index.js` is the JavaScript entry point.\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr\u003e\nYou will also see any lint errors in the console.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\u003cbr\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](#deployment) for more information.\n\n### `npm run eject`\n地址`config/webpack.config.dev.js`\n\n引入less依赖配置， \n```js\n{\n  test: /\\.less$/,\n  use: [\n    require.resolve('style-loader'),\n    {\n      loader: require.resolve('css-loader'),\n      options: {\n        importLoaders: 1,\n      },\n    },\n    {\n      loader: require.resolve('postcss-loader'),\n      options: {\n        // Necessary for external CSS imports to work\n        // https://github.com/facebookincubator/create-react-app/issues/2677\n        ident: 'postcss',\n        plugins: () =\u003e [\n          require('postcss-flexbugs-fixes'),\n          autoprefixer({\n            browsers: [\n              '\u003e1%',\n              'last 4 versions',\n              'Firefox ESR',\n              'not ie \u003c 9', // React doesn't support IE8 anyway\n            ],\n            flexbox: 'no-2009',\n          }),\n        ],\n      },\n    },\n    {\n      loader: require.resolve('less-loader'),\n      options: {\n        modules: false,\n        modifyVars: { \"@primary-color\": \"#1890ff\" }\n      }\n    }\n  ],\n},\n```\n\n增加公共命名配置\n\n```js\n// add resolve\nfunction resolve (dir) {\n  return path.join(__dirname, '..', dir)\n}\n\nalias: {\n  // Support React Native Web\n  // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/\n  'react-native': 'react-native-web',\n  'components': resolve('src/components'),\n  'axios': resolve('src/axios'),\n  'pages': resolve('src/pages'),\n  'style': resolve('src/style'),\n  'utils': resolve('src/utils'),\n  'config': resolve('src/config')\n},\n```\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\n### Visual Studio Code\n\nYou would need to have the latest version of [VS Code](https://code.visualstudio.com) and VS Code [Chrome Debugger Extension](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) installed.\n\nThen add the block below to your `launch.json` file and put it inside the `.vscode` folder in your app’s root directory.\n\n```json\n{\n  \"version\": \"0.2.0\",\n  \"configurations\": [{\n    \"name\": \"Chrome\",\n    \"type\": \"chrome\",\n    \"request\": \"launch\",\n    \"url\": \"http://localhost:3000\",\n    \"webRoot\": \"${workspaceRoot}/src\",\n    \"sourceMapPathOverrides\": {\n      \"webpack:///src/*\": \"${webRoot}/*\"\n    }\n  }]\n}\n```\n\n## Adding a Router\n\nCreate React App doesn't prescribe a specific routing solution, but [React Router](https://reacttraining.com/react-router/) is the most popular one.\n\nTo add it, run:\n\n```sh\nnpm install --save react-router-dom\n```\n\nAlternatively you may use `yarn`:\n\n```sh\nyarn add react-router-dom\n```\n\nTo try it, delete all the code in `src/App.js` and replace it with any of the examples on its website. The [Basic Example](https://reacttraining.com/react-router/web/example/basic) is a good place to get started.\n\nNote that [you may need to configure your production server to support client-side routing](#serving-apps-with-client-side-routing) before deploying your app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajiu9%2Fvism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajiu9%2Fvism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajiu9%2Fvism/lists"}