Giter Site home page Giter Site logo

yacd's Introduction

yacd

Yet Another Clash Dashboard

Usage

The site http://yacd.haishan.me is served with HTTP not HTTPS is because many browsers block requests to HTTP resources from a HTTPS website. If you think it's not safe, you could just download the zip of the gh-pages, unzip and serve those static files with a web server(like Nginx).

Docker image

docker run -p 1234:80 -d --name yacd --rm ghcr.io/haishanh/yacd:master

# and then open http://localhost:1234 in your browser

Supported URL query params

Param Description
hostname Hostname of the clash backend API (usually the host part of external-controller)
port Port of the clash backend API (usually the port part of external-controller)
secret Clash API secret (secret in your config.yaml)
theme UI color scheme (dark, light, auto)

Development

# install dependencies
# you may install pnpm with `npm i -g pnpm`
pnpm i

# start the dev server
# then go to the url printed on the screen
pnpm start


# build optimized assets
# ready to deploy assets will be in the directory `public`
pnpm build

yacd's People

Contributors

aoeiuv020 avatar comzyh avatar ctaoist avatar czbix avatar dependabot-preview[bot] avatar dependabot[bot] avatar dougpuob avatar ekkog avatar everyx avatar felix98765 avatar haishanh avatar hezhizhen avatar hitsmaxft avatar hronro avatar kallydev avatar laser-yi avatar lyc8503 avatar peanut996 avatar pinzhenx avatar r3inbowari avatar shunf4 avatar sinchang avatar tkhaos avatar whenov avatar wzdnzd avatar xueweng avatar xwtf avatar yaling888 avatar yuche avatar zhzy0077 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yacd's Issues

关于每次切换节点频繁询问

最新版本中每次切换节点都要询问是否关闭当前节点所有连接,略显繁琐
能否在右上角的设置中加入一个总开关
image

打开该开关:切换节点将直接关闭占用的连接,之后切换节点的操作均不在给予弹框提示
关闭该开关:每次切换都会提示(默认操作)

日志等级不受控制

日志等级无论选哪个 都是info级别
还有小白顺便问一下,面板的日志等级会影响config.yml的日志等级吗?

页面显示问题

Snipaste_2020-05-23_10-42-54

可以优化一下yacd面板的conns页面显示吗,
每次查看目标IP都要拖动滚动条到右边,
可以看到中间还有较多空白,
如果显示信息做紧凑一点
一屏显示应该问题不大吧

使用环境,windows10,分辨率 1080p,100%缩放

添加一些选项

Overview里加一个最高速度,显示当前节点,当前节点最好再加个开关
手机端的改变主题

刷新页面后收起的策略组又回重新展开

当节点很多时每次刷新都要调整 太麻烦了 我用的是主页提供的静态页面,把yacd-gh-pages文件夹里的dashboard文件放到ui文件夹映射到clash的docker中,不知道是否跟这个静态页面文件夹没更新有关?

更新了之后更方便简洁一目明了

ui排版真的越来越好看实用了 之前觉得全部线路不能隐藏很乱 现在能隐藏也能用小圆点显示网络状态 实在太棒了 辛苦了 加油啊 !设置那里能否加上密码设置呢?secret:

如何修改主题

请问怎么把主题修改为默认白色的,,眼拙我在代码中没发现

Entire page crash when Proxy component try to display DIRECT

Entire page crash when Proxy try to display DIRECT

function Proxy({ now, name }) {
const { proxies, delay } = useComponentState(mapStateToProps);
// const { name, proxies, delay, now } = this.props;
const latency = delay[name];
const proxy = proxies[name];
const color = now ? colors[proxy.type] : '#555';

when name equals DIRECT, obviously proxies[name] is, undefined, the proxy.type will triger

Uncaught TypeError: Cannot read property 'type' of undefined

and let the entire page crash.

Reproduce:
config.yaml for clash

'Proxy Group':
  - { name: 'Apple Service', type: select, proxies: [DIRECT, XXXX] }

and ProxyGroup2 will create the Proxy component with name DIRECT

<Proxy name={proxyName} now={proxyName === group.now} />

关于 Test Latency

大佬你好😊
环境是:
openwrt+open-clash(Fake-IP模式)
我遇到一个问题:
在Proxies模块,点击Test Latency 没有出现任何测速结果,请问是需要什么额外的配置吗?

希望增加多服务器选择

现在就只能登录一个服务器,对于多服务器来说。切换不太方便。希望下个版本增加服务器选择功能

v0.38.8 yacd面板节点排序问题

大佬好:
更新到最新的版本后,发现节点按延迟排序出现如下情况,不可用的节点跑最前面来了,之前的版本都正常的(延迟最低的绿色节点在最前面),求指导:
image
image

yacd does not support custom log-level

No matter users choose which log mode on the Config panel (e.g., warning or silent), the Logspanel seems always displaying the logs in info mode. Indeed, yacd may ignore the user's setting of log-level in the config file.

yacd的一些建议

1.从A节点切换B节点会关闭之前使用A节点的所有连接,从而重新使用B节点建立连接

    场景一:A节点看youtube速度不给力,我想切换B节点观看,由于在不关闭浏览器
       情况下,会导致连接一直占用A节点
      
    场景二:就是上传,A节点上传被限速,切换B节点上传
       GoogleDrive或OneDrive会依然使用A节点,需要暂停重新开始才能切换到B 

2.单独ping某个节点与只ping该策略下的所有节点

功能预想:在每个策略后面加上一个图标,点击后拆分出两个功能:一个是仅ping当前策略中的选中节 
               点,还有一个是 ping该策略下的所有节点

image

节点特别多,这个部分ping就非常实用,不用每次ping全部

3.排序规则精确到每个策略组上

Traffic Diagram Intermittently Stops Working on Safari

Traffic Diagram on overview page sometimes stops working on Safari 12.1 (macOS 10.14.4). It simply displays nothing which looks like no data received from clash. It normally recovers after I cleared local storage followed by restarting Safari. BTW, there's no issue with Chrome.

Sorting In Group

白色主题:
image

黑色主题:无法正常显示下拉列表内容
image

应该是CSS样式的问题..

能否给个选项,不自动排序

自动排序后,一般香港之类的节点延迟低会在前面,美国的会在后面,但是我的用的机场美国的稳定很多,这样我找起来不方便
默认的,就像windows的客户端一样,每个国家的节点基本在一起,测速后不会排序更适合我

400 error when update proxy rule config

git:master@yacd> docker pull dreamacro/clash                                                                                                                                                                                       yan@yan-nuc
Using default tag: latest
latest: Pulling from dreamacro/clash
Digest: sha256:343bef79d56c006b4b10870a4daf0daf477cb6ef302f519f7b42e01545d28cf3
Status: Image is up to date for dreamacro/clash:latest
docker.io/dreamacro/clash:latest

image

image

连接和总流量无法显示

其它页面正常,但 #/connections 页面无法显示当前存在的连接。这里请求了 RESTful API 的 /connections 端点,但 clash 目前似乎并没有这个 endpoint。

主页的上传总量、下载总量和活动连接数也无法显示。可能亦与 /connections 有关。

Config Page Displays Incorrectly

It seems like the config page just shows default settings (e.g., Mode: Rule, Log Level: Info) during page initialization. It won't render any actual data fetched from clash until you change something by clicking on any button/switch. I remembered it used to be working properly last time.

clash-dev 无法显示流量及日志

arch linux 环境下,使用clash最新dev版本,流量一直显示为0.同时日志也无法显示。

curl 测试clash 的 RESTful api正常,流量及日志有有输出

将clash内核替换成clashR内核之后 SR线路的节点没有ping延迟

同样是替换了内核的clashR 所有的SSR线路在razord上能测速测出Ping延迟 但在yacd上的SSR线路就没有, 但yacd上的SS、V2R线路测速正常。对于一些需要获取ping的规则例如:url-test fallback loadbalance这些都似乎严重依赖于线路的ping而作出优选。

Failed to load resource: the server responded with a status of 405 (Method Not Allowed)

Failed to load resource: the server responded with a status of 405 (Method Not Allowed)

Failed to load http://192.168.188.139:9090/traffic: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://yacd.haishan.me' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. app.6cc7f04cc66718dd2c90.js:29

fetch /traffic error TypeError: Failed to fetch

这个错误从f867f02开始出现,如果设置external-ui,并从http://192.168.188.139:9090/ui/#/访问,则没有问题。

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.