Coder Social home page Coder Social logo

nju-lug / mira Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 12.0 5.18 MB

A refreshed Vue3 frontend for NJU Open Source Software Mirror.

License: GNU General Public License v2.0

JavaScript 0.81% HTML 0.84% Vue 42.38% TypeScript 25.31% Shell 0.07% CSS 30.60%

mira's People

Contributors

atxy-blip avatar d-w-x avatar iori2333 avatar ladderoperator avatar rollingegg avatar yaoge123 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

Watchers

 avatar  avatar  avatar  avatar

mira's Issues

conda install 提示错误

安装的anaconda
.condarc为:
channels:

show_channel_urls: true

执行语句:conda install -c conda-forge pcraster
但报错:
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/conda-forge/linux-64/current_repodata.json
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/linux-64/current_repodata.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x2b1cbb49f9e8>: Failed to establish a new connection: [Errno 101] Network is unreachable'))"))

搜索大小写和位置

当前mirrors downloads help的搜索时区分了大小写,建议不区分大小写

mirrors的搜索要点一下才能出现搜索框,建议默认就显示一个搜索框

downloads搜索后不显示结果数,容易让用户误认为没有

bioconductor源是不是不支持低版本的BiocVersion了,比如3.10版本,对应的R版本是3.6.3

错误信息如下:

R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-conda-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

BiocManager::install("version"="3.10")
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details

replacement repositories:
CRAN: https://mirrors.bfsu.edu.cn/CRAN/

Warning: unable to access index for repository https://mirror.nju.edu.cn/bioconductor/packages/3.10/bioc/src/contrib:
cannot open URL 'https://mirror.nju.edu.cn/bioconductor/packages/3.10/bioc/src/contrib/PACKAGES'
Warning: unable to access index for repository https://mirror.nju.edu.cn/bioconductor/packages/3.10/data/annotation/src/contrib:
cannot open URL 'https://mirror.nju.edu.cn/bioconductor/packages/3.10/data/annotation/src/contrib/PACKAGES'
Warning: unable to access index for repository https://mirror.nju.edu.cn/bioconductor/packages/3.10/data/experiment/src/contrib:
cannot open URL 'https://mirror.nju.edu.cn/bioconductor/packages/3.10/data/experiment/src/contrib/PACKAGES'
Warning: unable to access index for repository https://mirror.nju.edu.cn/bioconductor/packages/3.10/workflows/src/contrib:
cannot open URL 'https://mirror.nju.edu.cn/bioconductor/packages/3.10/workflows/src/contrib/PACKAGES'
Bioconductor version 3.10 (BiocManager 1.30.15), R 3.6.3 (2020-02-29)
Warning: unable to access index for repository https://mirror.nju.edu.cn/bioconductor/packages/3.10/bioc/src/contrib:
cannot open URL 'https://mirror.nju.edu.cn/bioconductor/packages/3.10/bioc/src/contrib/PACKAGES'
Warning: unable to access index for repository https://mirror.nju.edu.cn/bioconductor/packages/3.10/data/annotation/src/contrib:
cannot open URL 'https://mirror.nju.edu.cn/bioconductor/packages/3.10/data/annotation/src/contrib/PACKAGES'
Warning: unable to access index for repository https://mirror.nju.edu.cn/bioconductor/packages/3.10/data/experiment/src/contrib:
cannot open URL 'https://mirror.nju.edu.cn/bioconductor/packages/3.10/data/experiment/src/contrib/PACKAGES'
Warning: unable to access index for repository https://mirror.nju.edu.cn/bioconductor/packages/3.10/workflows/src/contrib:
cannot open URL 'https://mirror.nju.edu.cn/bioconductor/packages/3.10/workflows/src/contrib/PACKAGES'
Old packages: 'aroma.core', 'BiocManager', 'bit', 'Cairo', 'data.table',
'ggpubr', 'magic', 'markdown', 'Matrix', 'modelr', 'pbapply', 'pkgload',
'plyr', 'R.utils', 'rbibutils', 'roxygen2', 'vctrs', 'xfun'
Update all/some/none? [a/s/n]: n

我直接访问错误提示给出的链接,会出现“404 Not Found”。将其中的3.10改为最新的3.16,可以正常访问

南大源conda无法安装最新版pytorch

最新版pytorch安装指令是 conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia,但南大源没有找不到nvidia channel,默认源是能安装成功的。

加载时显示no data

页面在加载时显示 No Data,可否改成正在加载中这种提示。不过要注意搜索的时候如果没有搜到的,还是应该显示为空,而不是加载中

docker hub镜像加速问题

在使用docker hub镜像加速的时候,下载大的镜像会失败。
如果是使用nginx进行七层负载的话,建议修改最大消息体相关的配置。

openSUSE 镜像使用帮助中的指令会禁用全部软件源

帮助文档中写道使用命令sudo zypper mr -da禁用官方软件源,然而实际的效果是禁用全部软件源,这可能会导致大量软件包被错误卸载(例如nvidia驱动)。
建议修改成使用tag来禁用软件源。对于openSUSE Tumbleweed,使用下面的指令来禁用这些软件源:

zypper mr -d repo-oss
zypper mr -d repo-non-oss

Add automatic dark mode detection.

NJU mirror's dark mode is great, but I have to choose dark mode manually every time, may I know is that a bug or feature? If there is no detection, could we add automatic dark mode detection using prefers-color-scheme or any other way?

Fancy Index

在非首页使用自定义的 fancyindex_header fancyindex_footer
当前用的是标准的Nginx-Fancyindex-Theme-light,希望有一个镜像站的定制版

epel 提示有误

链接:https://mirror.nju.edu.cn/help/epel
问题点参考:tuna/issues#687 (comment)

sed -e 's!^metalink=!#metalink=!g' \
    -e 's!^#baseurl=!baseurl=!g' \
    -e 's!//download\.fedoraproject\.org/pub!//mirror.nju.edu.cn!g' \
    -e 's!http://mirrors!https://mirrors!g' \
    -i /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel-testing.repo

简而言之,在新版本中的baseurl后的示例域名变为了download.example

[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever

[MFR] Mirror Front End Error Report:主页rosdistro缺少指向mirrorz help文档的链接

Note

  • I understand that the issue raised here is related to the front-end.
  • I understand that the issue raised here is not related to the docmuent or files.
  • I have looked it up in opening issue, it's not reported by others.
  • I have looked it up in closed issue, it's not refused for some reasons.

Error Information

repo url:问题在主页https://mirror.nju.edu.cn/ ,不在该repo目录下。
error inforation:rosdistro一项没有指向help文档的链接。
how to update the doc.:增加到https://mirror.nju.edu.cn/mirrorz-help/rosdistro/?mirror=NJU 的链接。

参见TUNA站。

Other Information

  • os with version [操作系统及版本]: win11 23H2 Build 22631.2861
  • browser with version [浏览器及版本]: Microsoft Edge Version 120.0.2210.91 (Official build) (64-bit)
  • appear time [大致出现问题的时间]: Tue Dec 26 09:11:52 PM +08 2023

Add RSS support for news.

Hi, I just found out that NJU Mirror currently publishes important announcements related to site maintenance, mirror site updates, and software package removals in news. This is an important information channel for mirror site users, especially for downstream server maintenance developers. However, accessing this information through the front-end interface can be cumbersome. Writing scripts to continuously fetch page information might be one solution, but it can cause access pressure on the site and be considered as abuse or frequent access.

So...I think it would be great if the news section could support RSS feed. This would provide users with a convenient method to receive information by directly using their local RSS applications. Additionally, adhering to RSS update frequency norms would protect the site from excessive access.

By the way, TUNA now support RSS feed in /feed.xml, and RSS autodiscovery supported also in tuna/mirror-web#389, maybe that will be a great example? And yea, if RSS support for accessing news information is already available, please kindly let me know :)

Armbian apt update 总是失败

`Hit:1 http://mirror.nju.edu.cn/ubuntu-ports impish InRelease
Hit:2 http://mirror.nju.edu.cn/ubuntu-ports impish-security InRelease
Hit:3 http://mirror.nju.edu.cn/ubuntu-ports impish-updates InRelease
Hit:4 http://mirror.nju.edu.cn/ubuntu-ports impish-backports InRelease
Get:5 https://mirror.nju.edu.cn/armbian impish InRelease [26.9 kB]
Get:6 https://mirror.nju.edu.cn/armbian impish/impish-desktop armhf Packages [383 B]
Get:7 https://mirror.nju.edu.cn/armbian impish/impish-utils armhf Packages [5,143 B]
Ign:7 https://mirror.nju.edu.cn/armbian impish/impish-utils armhf Packages
Ign:9 https://mirror.nju.edu.cn/armbian impish/main arm64 Packages
Ign:10 https://mirror.nju.edu.cn/armbian impish/impish-utils arm64 Packages
Ign:11 https://mirror.nju.edu.cn/armbian impish/main armhf Packages
Get:7 https://mirror.nju.edu.cn/armbian impish/impish-utils armhf Packages [5,143 B]
Err:7 https://mirror.nju.edu.cn/armbian impish/impish-utils armhf Packages
File has unexpected size (10510 != 5143). Mirror sync in progress? [IP: 210.28.130.3 443]
Hashes of expected file:

  • Filesize:5143 [weak]
  • SHA512:70b2bfbd0132da87d730d940980606776d1a1dcb6594ff2dc72250ea86e34cf66dc21bf39f7a7651d4ae9dc826ca04f7e88a3f88a2fdb20d97728d272fb4d6d6
  • SHA256:f2f4a2a60c7c8cbf6eb8879dc05e99241d0676ec18b67f6ba65089374fd06c13
  • SHA1:408404ac3977ba25bcbcf41987c62885eece68d9 [weak]
  • MD5Sum:2008703029ef6cfd46e11910a353e0df [weak]
    Release file created at: Tue, 01 Feb 2022 17:28:59 +0000
    Get:9 https://mirror.nju.edu.cn/armbian impish/main arm64 Packages [192 kB]
    Err:9 https://mirror.nju.edu.cn/armbian impish/main arm64 Packages

Get:10 https://mirror.nju.edu.cn/armbian impish/impish-utils arm64 Packages [5,398 B]
Err:10 https://mirror.nju.edu.cn/armbian impish/impish-utils arm64 Packages

Get:11 https://mirror.nju.edu.cn/armbian impish/main armhf Packages [137 kB]
Err:11 https://mirror.nju.edu.cn/armbian impish/main armhf Packages

Reading package lists... Done
E: Failed to fetch https://mirror.nju.edu.cn/armbian/dists/impish/impish-utils/binary-armhf/Packages.gz File has unexpected size (10510 != 5143). Mirror sync in progress? [IP: 210.28.130.3 443]
Hashes of expected file:
- Filesize:5143 [weak]
- SHA512:70b2bfbd0132da87d730d940980606776d1a1dcb6594ff2dc72250ea86e34cf66dc21bf39f7a7651d4ae9dc826ca04f7e88a3f88a2fdb20d97728d272fb4d6d6
- SHA256:f2f4a2a60c7c8cbf6eb8879dc05e99241d0676ec18b67f6ba65089374fd06c13
- SHA1:408404ac3977ba25bcbcf41987c62885eece68d9 [weak]
- MD5Sum:2008703029ef6cfd46e11910a353e0df [weak]
Release file created at: Tue, 01 Feb 2022 17:28:59 +0000
E: Failed to fetch https://mirror.nju.edu.cn/armbian/dists/impish/main/binary-arm64/Packages.gz
E: Failed to fetch https://mirror.nju.edu.cn/armbian/dists/impish/impish-utils/binary-arm64/Packages.gz
E: Failed to fetch https://mirror.nju.edu.cn/armbian/dists/impish/main/binary-armhf/Packages.gz
E: Some index files failed to download. They have been ignored, or old ones used instead.`

希望可以修一下, 万分感谢.

建议合并 https://mirrors.nju.edu.cn/help/ 和 https://nju-mirror-help.njuer.org/

二者存在教程不一致的情况,且重复了,应该予以更正合并。如 https://nju-mirror-help.njuer.org/ 包含 FreeBSD、FreeBSD-pkg、FreeBSD-ports 等使用方法,而 https://mirrors.nju.edu.cn/help/ 却没有。

推荐在合并https://nju-mirror-help.njuer.org/的基础上,保留首页的 https://mirrors.nju.edu.cn/help/.

Rocky Linux 9.0 Yum 仓库文件变为全小写了

Rocky Linux 9.0 发布之后,yum 仓库配置文件变为 rocky开头,为了适应 8 和 9两种版本,需要修正以下内容
Rocky-*.repo 变为 [Rr]ocky*.repo

sed -e 's|^mirrorlist=|#mirrorlist=|g' \
 -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.nju.edu.cn/rocky|g' \
 -i.bak \
 /etc/yum.repos.d/[Rr]ocky*.repo

https://mirror.nju.edu.cn/help/rocky

[MFR] Mirror Front End Error Report前端文字显示错误

Note

  • I understand that the issue raised here is related to the front-end.
  • I understand that the issue raised here is not related to the docmuent or files.
  • I have looked it up in opening issue, it's not reported by others.
  • I have looked it up in closed issue, it's not refused for some reasons.

Error Information

南哪课表 => 南大课表
image

Other Information

  • os with version [操作系统及版本]:
  • browser with version [浏览器及版本]:
  • appear time [大致出现问题的时间]:

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.