Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build": "vue-cli-service build --modern"
},
"dependencies": {
"axios": "^0.21.0",
"core-js": "^2.6.5",
"register-service-worker": "^1.6.2",
"vue": "^2.6.10",
Expand Down
30 changes: 22 additions & 8 deletions src/components/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,45 @@
</header>
<div class="row">
<div class="col-12">
<a href="https://safeu.a2os.club" class="button big">SafeU</a>
<a href="https://safeu.a2os.club" target="_blank" class="button big">SafeU</a>
<p style="display: inline; margin-left: 20px">安全、快速的文件分享渠道</p>
</div>
</div>
<br />
<div class="row">
<div class="col-12">
<a href="https://blogroll.a2os.club" class="button big">Blogroll</a>
<p style="display: inline; margin-left: 20px">南航成员 Blog 收集计划</p>
</div>
<a href="https://anyknew.a2os.club/?from=a2osindex" target="_blank" class="button big">AnyKnew</a>
<p style="display: inline; margin-left: 20px">南航校园信息聚合平台</p>
</div>
</div>
<br />
<div class="row">
<div class="col-12">
<a href="#weekly" class="button big">Weekly</a>
<p style="display: inline; margin-left: 20px">周常培训</p>
<a href="https://bbs.a2os.club" target="_blank" class="button big">BBS</a>
<p style="display: inline; margin-left: 20px">A2OS 技术论坛</p>
</div>
</div>
<br />
<div class="row">
<div class="col-12">
<a href="https://ftp.a2os.club" class="button big">FTP</a>
<a href="https://ftp.a2os.club" target="_blank" class="button big">FTP</a>
<p style="display: inline; margin-left: 20px">A2OS FTP 站点</p>
</div>
</div>
<br />
<div class="row">
<div class="col-12">
<a href="https://blogroll.a2os.club" target="_blank" class="button big">Blogroll</a>
<p style="display: inline; margin-left: 20px">南航成员 Blog 收集计划</p>
</div>
</div>
<br />
<div class="row">
<div class="col-12">
<a href="#weekly" class="button big">Weekly</a>
<p style="display: inline; margin-left: 20px">周常培训</p>
</div>
</div>
</section>
<!-- Section -->

Expand Down Expand Up @@ -100,7 +114,7 @@
Weekly 的消息
</a>
<a
href="https://github.com/NUAA-Open-Source/A2OS/blob/master/历次培训及讲座.md"
href="https://github.com/NUAA-Open-Source/weekly/blob/master/README.md"
class="button big"
target="_blank"
>查看历届 A2OS Weekly</a>
Expand Down
82 changes: 56 additions & 26 deletions src/components/Member.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<div class="col-12">
<div class="row gtr-uniform" id="members">
<a v-for="m of members" :key="m.link" :href="m.link">
<!-- {{m}} -->
<img class="icon avatar" :src="m.avatar" alt="" />
</a>
</div>
Expand All @@ -20,75 +19,106 @@
href="https://github.com/NUAA-Open-Source/"
class="button big"
target="_blank"
>加入我们的 GitHub 组织,你将会出现在这里。</a>
>加入我们的 GitHub 组织,你将会出现在这里。
</a>
</div>
</div>
</section>
</template>

<script>
import axios from "axios";

export default {
name: "Member",
props: {},
data() {
return {
members: [
members: [],
defaultMembers: [
{
link: "https://github.com/40m41h42t",
avatar: "https://avatars2.githubusercontent.com/u/43204230?s=460&v=4"
avatar: "https://avatars2.githubusercontent.com/u/43204230?s=460&v=4",
},

{
link: "https://github.com/arcosx",
avatar: "https://avatars3.githubusercontent.com/u/17517365?s=460&v=4"
avatar: "https://avatars3.githubusercontent.com/u/17517365?s=460&v=4",
},

{
link: "https://github.com/LogicJake",
avatar: "https://avatars3.githubusercontent.com/u/20673460?s=460&v=4"
avatar: "https://avatars3.githubusercontent.com/u/20673460?s=460&v=4",
},

{
link: "https://github.com/milkice233",
avatar: "https://avatars0.githubusercontent.com/u/5274559?s=460&v=4"
avatar: "https://avatars0.githubusercontent.com/u/5274559?s=460&v=4",
},

{
link: "https://github.com/RayZhao1998",
avatar: "https://avatars0.githubusercontent.com/u/22616933?s=460&v=4"
avatar: "https://avatars0.githubusercontent.com/u/22616933?s=460&v=4",
},

{
link: "https://github.com/RyanSu98",
avatar: "https://avatars0.githubusercontent.com/u/33794423?s=460&v=4"
avatar: "https://avatars0.githubusercontent.com/u/33794423?s=460&v=4",
},

{
link: "https://github.com/seiry",
avatar: "https://avatars2.githubusercontent.com/u/4397354?s=460&v=4"
avatar: "https://avatars2.githubusercontent.com/u/4397354?s=460&v=4",
},

{
link: "https://github.com/Triple-Z",
avatar: "https://avatars3.githubusercontent.com/u/16285716?s=460&v=4"
avatar: "https://avatars3.githubusercontent.com/u/16285716?s=460&v=4",
},

{
link: "https://github.com/Villivateur",
avatar: "https://avatars3.githubusercontent.com/u/30222160?s=460&v=4"
avatar: "https://avatars3.githubusercontent.com/u/30222160?s=460&v=4",
},

{
link: "https://github.com/ZeddYu",
avatar: "https://avatars3.githubusercontent.com/u/29536474?s=460&v=4"
avatar: "https://avatars3.githubusercontent.com/u/29536474?s=460&v=4",
},
{
link: "https://github.com/Kit4y",
avatar: "https://avatars0.githubusercontent.com/u/38547290?s=460&v=4"
}
]
avatar: "https://avatars0.githubusercontent.com/u/38547290?s=460&v=4",
},
{
link: "https://github.com/miaotony",
avatar: "https://avatars0.githubusercontent.com/u/41962043?s=460&v=4",
},
],
};
}
},
mounted() {
this.queryMembers();
},
methods: {
queryMembers() {
let url = "https://api.github.com/orgs/NUAA-Open-Source/public_members";
axios
.get(url)
.then(
function (response) {
console.log("Query callback: ", response);
if (response.status == 200) {
const data = response.data;
let tmpMembers = new Array();
for (let i of data) {
let singleMember = { link: i.html_url, avatar: i.avatar_url };
tmpMembers.push(singleMember);
}
console.log(tmpMembers);
this.members = tmpMembers;
return;
}
console.log("Fetch members error!");
this.members = this.defaultMembers;
}.bind(this)
)
.catch(function (error) {
console.log("Fetch members error!");
this.members = this.defaultMembers;
});
},
},
};
</script>

Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,13 @@ aws4@^1.8.0:
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.1.tgz#e1e82e4f3e999e2cfd61b161280d16a111f86428"
integrity sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==

axios@^0.21.0:
version "0.21.0"
resolved "https://registry.npm.taobao.org/axios/download/axios-0.21.0.tgz#26df088803a2350dff2c27f96fef99fe49442aca"
integrity sha1-Jt8IiAOiNQ3/LCf5b++Z/klEKso=
dependencies:
follow-redirects "^1.10.0"

babel-code-frame@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
Expand Down Expand Up @@ -3426,6 +3433,11 @@ follow-redirects@^1.0.0:
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db"
integrity sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==

follow-redirects@^1.10.0:
version "1.13.1"
resolved "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.1.tgz#5f69b813376cee4fd0474a3aba835df04ab763b7"
integrity sha1-X2m4Ezds7k/QR0o6uoNd8Eq3Y7c=

for-in@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
Expand Down