Skip to content

Commit 84e191a

Browse files
Opening links in a new tab, S4D farm login flow, other minor updates
1 parent 938acaa commit 84e191a

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resources/* linguist-vendored

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
- name: Run tests
2020
run: go test -race ./...
2121

22-
- name: Set up Node 14
22+
- name: Set up Node 16
2323
uses: actions/setup-node@v2
2424
with:
25-
node-version: '14'
25+
node-version: '16'
2626
- name: Build front
2727
working-directory: front
2828
run: yarn install && yarn build

front/src/components/Dashboard.vue

+14-5
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@
2121
</div>
2222
<el-row :gutter="10">
2323
<el-col :span="12">
24-
<div class="text item"><a :href="boardLink">Scoreboard</a></div>
25-
<div class="text item"><a :href="mongolLink">MonGol</a></div>
24+
<div class="text item">
25+
<a :href="boardLink" target="_blank">Scoreboard</a>
26+
</div>
27+
<div class="text item">
28+
<a :href="mongolLink" target="_blank">MonGol</a>
29+
</div>
2630
<div class="text item">
2731
Username:
2832
<span class="copiable" @click="copyText(`${username}`)">{{
@@ -43,7 +47,11 @@
4347
<el-card>
4448
<div slot="header" class="clearfix">
4549
<span class="header-text">Farm</span>
46-
<a :href="farmLink" style="float: right; padding: 3px 0" type="text"
50+
<a
51+
:href="farmLink"
52+
target="_blank"
53+
style="float: right; padding: 3px 0"
54+
type="text"
4755
>Open</a
4856
>
4957
</div>
@@ -70,14 +78,15 @@
7078
>{{ vulnbox.user }}@{{ vulnbox.host }}</span
7179
>
7280
&rarr;
73-
<a :href="getGoxyLink(vulnbox)">Goxy</a>
81+
<a :href="getGoxyLink(vulnbox)" target="_blank">Goxy</a>
7482
</div>
7583
<ul>
7684
<li v-for="(service, j) of vulnbox.services" :key="j">
7785
{{ service.name }}:
7886
<a
7987
v-if="service.proto === 'http'"
8088
:href="getServiceLink(vulnbox, service)"
89+
target="_blank"
8190
>{{ getServiceLink(vulnbox, service) }}</a
8291
>
8392
<span
@@ -258,7 +267,7 @@ export default {
258267
if (!this.config) {
259268
return "";
260269
}
261-
return `http://${this.username}:${this.password}@${this.config.farm.addr}`;
270+
return `http://${this.username}:${this.password}@${this.config.farm.addr}/?password=${this.password}`;
262271
},
263272
boardLink: function() {
264273
if (!this.config) {

0 commit comments

Comments
 (0)