Skip to content

Commit

Permalink
Solve conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chen <i@harrychen.xyz>
  • Loading branch information
Harry-Chen committed Nov 13, 2016
2 parents 5be978d + 0841f2e commit 7c87bdd
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 10 deletions.
19 changes: 18 additions & 1 deletion _config.yml
Expand Up @@ -102,4 +102,21 @@ descriptions:
mariadb: '衍生于 MySQL 的开源关系数据库'
mongodb: '开源的跨平台 NoSQL 文档型数据库'
msys2: '用于编译原生 Windows 程序的类 Linux 开发环境'
mysql: 'MySQL 安装包及各种工具下载'
mysql: 'MySQL 安装包及各种工具下载'
repo-ck: 'repo-ck 是 Arch 的非官方仓库,内有包含 ck 补丁、BFS 调度器等'
repoforge: 'Repoforge 是 RHEL 系统下的软件仓库,拥有 10000 多个软件包,被认为是最安全、最稳定的一个软件仓库'
ros: 'ROS (Robot Operating System) 提供一系列程序库和工具以帮助软件开发者创建机器人应用软件'
rpmfusion: 'RPM Fusion 提供了一些 Fedora Project 和 Red Hat 不包含的软件'
rubygems: 'Ruby 的一个包管理器'
sagemath: '构建在 NumPy, SciPy 等工具之上的开源数学软件系统'
slackware: 'Linux 发行版 Slackware 的源代码和官方软件包仓库'
SteamOS: 'Valve 开发的基于 Debian 的操作系统,包含安装镜像和官方软件包仓库'
tensorflow: '采用数据流图、用于数值计算的开源软件库 TensorFlow'
termux: ' 运行在 Android 上的终端模拟器 Termux 的官方软件包仓库'
ubuntu: '流行的 Linux 发行版 Ubuntu 的安装镜像和官方软件包仓库'
ubuntu-cdimages: 'Ubuntu 及 Ubuntu 衍生版各版本安装镜像'
ubuntu-cloud-images: '适用于公有云的 Ubuntu 安装镜像'
ubuntu-ports: 'armhf, arm64 以及 powerpc 等平台的 Ubuntu 软件仓库'
ubuntu-releases: '包含近几年发行的 Ubuntu 的镜像'
videolan-ftp: '简称VLC,是一款自由、开源的跨平台多媒体播放器及框架,可播放大多数多媒体文件'
virtualbox: 'Oracle 的开源的 x86 架构虚拟机'
2 changes: 1 addition & 1 deletion _posts/help/1970-01-01-termux.md
Expand Up @@ -12,7 +12,7 @@ Termux 是什么

> Termux is a terminal emulator and Linux environment bringing powerful terminal access to Android.
Termux 是运行了 Android 上的 terminal。不需要root,运行于内部存储(不在SD卡上)。
Termux 是运行在 Android 上的 terminal。不需要root,运行于内部存储(不在SD卡上)。

自带了一个包管理器,可以安装许多现代化的开发和系统维护工具。比如:

Expand Down
10 changes: 5 additions & 5 deletions index.html
Expand Up @@ -46,10 +46,10 @@ <h4> <span class="fa fa-link"></span> 域名选择 </h4>
<li><a href="https://mirrors4.tuna.tsinghua.edu.cn/">https://mirrors4.tuna.tsinghua.edu.cn/</a> 只解析 IPv4</li>
</ul>
</div>
<div>
<div id="download-link">
<h4><span class="fa fa-file-archive-o"></span> 下载链接 </h4>
<p>常用发行版 iso 和应用工具安装包直接下载</p>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#isoModal">
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#isoModal">
获取下载链接
</button>
</div>
Expand Down Expand Up @@ -82,7 +82,7 @@ <h4> <span class="fa fa-external-link"></span> 相关链接 </h4>
<!-- Modal -->
{% raw %}
<div class="modal fade" id="isoModal" tabindex="-1" role="dialog" aria-labelledby="isoModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
Expand All @@ -98,14 +98,14 @@ <h4 class="modal-title" id="isoModalLabel">获取安装镜像</h4>
<li role="presentation" :class="[curCategory === 'app' ? 'active' : '']" @click="switchCategory('app')"><a href="#">应用软件</a></li>
</ul>
</div>
<div class="col-md-4">
<div class="col-md-3">
<ul class="nav nav-pills nav-stacked">
<li v-for="distro in curDistroList" :class="[selected.distro == distro.distro ? 'active' : '']">
<a href="#" @click="switchDistro(distro)">{{ distro.distro }}</a>
</li>
</ul>
</div>
<div class="col-md-8">
<div class="col-md-9">
<h3>{{selected.distro}}</h3>
<ul>
<template v-for="url in selected.urls">
Expand Down
8 changes: 8 additions & 0 deletions static/css/style.scss
Expand Up @@ -95,6 +95,14 @@ $font_local: 'Heiti SC', 'Hiragino Sans GB', 'STHeiti', 'Source Han Sans CN', 'W
color: $color_secondary;
}
}
#download-link {
margin-bottom: 1em;
}
}
#isoModal {
.nav-tabs {
margin-bottom: .5em;
}
}

#status-page {
Expand Down
12 changes: 9 additions & 3 deletions static/js/index.es6
Expand Up @@ -42,7 +42,7 @@ var mir_tmpl = $("#template").text(),
}
},
descriptions = {
{% for item in site.descriptions %}{{ item[0] }}: '{{ item[1] }}' {% endfor %}
{% for item in site.descriptions %}'{{ item[0] }}': '{{ item[1] }}'{% if forloop.index < forloop.length %},{% endif %}{% endfor %}
}

window.refreshMirrorList = () => {
Expand Down Expand Up @@ -89,13 +89,18 @@ window.refreshMirrorList = () => {
setTimeout(refreshMirrorList, 10000);
}


if (window.location.hash === '#iso-download') {
setTimeout(() => {$('#isoModal').modal()}, 200);
}

refreshMirrorList();

var vm = new Vue({
el: "#isoModal",
data: {
distroList: [],
selected: null,
selected: {},
curCategory: "os"
},
created: function () {
Expand All @@ -107,7 +112,8 @@ var vm = new Vue({
},
computed: {
curDistroList () {
return this.distroList.filter((x)=> x.category === this.curCategory);
return this.distroList
.filter((x)=> x.category === this.curCategory);
}
},
methods: {
Expand Down

0 comments on commit 7c87bdd

Please sign in to comment.