GithubHelp home page GithubHelp logo

master-coder-ll / v2ray-manager-console Goto Github PK

View Code? Open in Web Editor NEW
79.0 3.0 73.0 546 KB

This is the console of v2ray-web-manager

License: MIT License

JavaScript 23.73% HTML 0.08% Vue 72.54% CSS 0.14% Handlebars 0.13% SCSS 3.38%

v2ray-manager-console's Introduction

主项目/master project

环境

node v16.9.1 node_modules

Build

# build for test environment
npm run build:stage

# build for production environment
npm run build:prod

Advanced

# preview the release environment effect
npm run preview

# preview the release environment effect + static resource analysis
npm run preview -- --report

# code format check
npm run lint

# code format check and auto fix
npm run lint -- --fix

Refer to Documentation for more information

Browsers support

Modern browsers and Internet Explorer 10+.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
IE10, IE11, Edge last 2 versions last 2 versions last 2 versions

License

MIT

Copyright (c) 2017-present PanJiaChen

v2ray-manager-console's People

Contributors

master-coder-ll 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

Watchers

 avatar  avatar  avatar

v2ray-manager-console's Issues

这真能编译出来吗?

nvm切换到16.9.1的nodejs,直接下载的node_modules丢到git clone下来的目录里,然后npm run build:prod错误不断
原先即使直接在git clone下来的目录里也会出现一样的依赖错误
开发者的依赖关系到底是怎么搞出来的?是不是没测试就丢上来了?

[iyu@localhost v2ray-manager-console]$ nvm install 16.9.1
Downloading and installing node v16.9.1...
Downloading https://nodejs.org/dist/v16.9.1/node-v16.9.1-linux-x64.tar.xz...
################################################################################################################################################################################### 100.0%Computing checksum with sha256sum
Checksums matched!
Now using node v16.9.1 (npm v7.21.1)
Creating default alias: default -> 16.9.1 (-> v16.9.1)
[iyu@localhost v2ray-manager-console]$ nvm use 16.9.1
Now using node v16.9.1 (npm v7.21.1)
[iyu@localhost v2ray-manager-console]$ node -v
v16.9.1
[iyu@localhost v2ray-manager-console]$ npm run build:prod

> [email protected] build:prod
> vue-cli-service build

Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

⠙  Building for production...Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
⠸  Building for production...Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
⠏  Building for production...Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
⠋  Building for production...Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
⠧  Building for production...

 ERROR  Failed to compile with 4 errors                                                                                                                                         7:25:45 PM

These dependencies were not found:

* js-md5 in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/adminUser/components/UserDetail.vue?vue&type=script&lang=js&, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/login/index.vue?vue&type=script&lang=js& and 1 other
* vue-qr in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/account/userAccount.vue?vue&type=script&lang=js&

To install them, you can run: npm install --save js-md5 vue-qr
 ERROR  Build failed with errors.
[iyu@localhost v2ray-manager-console]$ npm install --save js-md5 vue-qr
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.       
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN old lockfile raphael: No matching version found for [email protected].
npm WARN old lockfile     at module.exports (/home/iyu/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/npm-pick-manifest/index.js:209:23)
npm WARN old lockfile     at /home/iyu/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:26
npm WARN old lockfile     at async Array.<anonymous> (/home/iyu/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:691:9)     
npm WARN old lockfile  Could not fetch metadata for [email protected] raphael: No matching version found for [email protected].
npm WARN old lockfile     at module.exports (/home/iyu/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/npm-pick-manifest/index.js:209:23)
npm WARN old lockfile     at /home/iyu/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:26
npm WARN old lockfile     at async Array.<anonymous> (/home/iyu/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:691:9) {   
npm WARN old lockfile   code: 'ETARGET',
npm WARN old lockfile   type: 'version',
npm WARN old lockfile   wanted: '2.2.0-c',
npm WARN old lockfile   versions: [
npm WARN old lockfile     '1.4.7-14-gdbe241f',
npm WARN old lockfile     '1.4.7-npm-1.0.0',
npm WARN old lockfile     '1.4.7-npm-1.0.1',
npm WARN old lockfile     '2.1.0',
npm WARN old lockfile     '2.1.4',
npm WARN old lockfile     '2.2.0',
npm WARN old lockfile     '2.2.1',
npm WARN old lockfile     '2.2.3',
npm WARN old lockfile     '2.2.4',
npm WARN old lockfile     '2.2.6',
npm WARN old lockfile     '2.2.7',
npm WARN old lockfile     '2.2.8',
npm WARN old lockfile     '2.3.0'
npm WARN old lockfile   ],
npm WARN old lockfile   distTags: { latest: '2.3.0' },
npm WARN old lockfile   defaultTag: 'latest'
npm WARN old lockfile }
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]  
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"6.7.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@">=7.5.0" from @vue/[email protected]
npm ERR! node_modules/@vue/cli-plugin-eslint
npm ERR!   dev @vue/cli-plugin-eslint@"^5.0.8" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/iyu/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/iyu/.npm/_logs/2023-10-28T11_27_24_869Z-debug.log
[iyu@localhost v2ray-manager-console]$

在我的账号中选择服务器后,debug中出现错误信息

在我的账号中选择服务器后,debug中出现的错误信息
TypeError: Cannot read property 'desc' of null at a.r (https://*mydomain*/vwm/static/js/chunk-0e44146d.b6521a94.js:1:6886) at a.t._render (https://*mydomain*/vwm/static/js/chunk-libs.129707ae.js:18:23734) at a.r (https://*mydomain*/vwm/static/js/chunk-libs.129707ae.js:18:27825) at nr.get (https://*mydomain*/vwm/static/js/chunk-libs.129707ae.js:18:30685) at nr.run (https://*mydomain*/vwm/static/js/chunk-libs.129707ae.js:18:31418) at Jn (https://*mydomain*/vwm/static/js/chunk-libs.129707ae.js:18:29625) at Array.<anonymous> (https://*mydomain*/vwm/static/js/chunk-libs.129707ae.js:18:12761) at ue (https://*mydomain*/vwm/static/js/chunk-libs.129707ae.js:18:12156)

node v10.x npm run dev报错

系统环境:
$ cnpm -v
[email protected]
[email protected]
[email protected]
[email protected]
prefix=C:\Users\Administrator\AppData\Roaming\npm
win32 x64 10.0.10240
registry=https://r.npm.taobao.org

报错信息:
$ npm run dev

[email protected] dev F:\opt\v2ray-manager-console
vue-cli-service serve

INFO Starting development server...
10% building 2/2 modules 0 active ERROR Error: Cannot find module 'core-js/modules/es6.regexp.constructor'
Error: Cannot find module 'core-js/modules/es6.regexp.constructor'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (F:\opt\v2ray-manager-console\mock\index.js:11:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module._compile (F:\opt\v2ray-manager-console\node_modules_pirates@4.0.1@pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.newLoader [as .js] (F:\opt\v2ray-manager-console\node_modules_pirates@4.0.1@pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at registerRoutes (F:\opt\v2ray-manager-console\mock\mock-server.js:10:30)
at Object.module.exports.app [as after] (F:\opt\v2ray-manager-console\mock\mock-server.js:41:22)

处理办法:
package.json里修改为以下就过ok了
"dependencies": {
...
"core-js": "^2.6.8",
...
}

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.