-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
126 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Dozzle!</title> | ||
<title>Dozzle</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css"> | ||
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | ||
</head> | ||
|
||
<body> | ||
<section class="section is-fullwidth"> | ||
<div id="app"></div> | ||
</section> | ||
<script src="/main.js"></script> | ||
<section class="section is-fullwidth"> | ||
<div id="app"></div> | ||
</section> | ||
<script src="/main.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,55 @@ | ||
<template lang="html"> | ||
<div class="container"> | ||
<div class="content"> | ||
<section class="section"> | ||
<ul class="is-marginless is-paddless"> | ||
<li v-for="item in containers" class=" unstyled box"> | ||
<router-link :to="{name: 'container', params: {id: item.Id}}" class="columns"> | ||
<div class="column"> | ||
|
||
<h2 class="is-2">{{ item.Names[0] }}</h2> | ||
<span class="subtitle is-6 code">{{ item.Command}}</span> | ||
|
||
|
||
</div> | ||
<div class="column is-4"> | ||
<span class="code">{{ item.Image }}</span> | ||
</div> | ||
<div class="column is-narrow"> | ||
<span class="subtitle is-7">{{ item.Status}}</span> | ||
</div> | ||
</router-link> | ||
</li> | ||
</ul> | ||
</section> | ||
</div> | ||
<div class="container"> | ||
<div class="content"> | ||
<section class="section"> | ||
<ul class="is-marginless is-paddless"> | ||
<li v-for="item in containers" class=" unstyled box"> | ||
<router-link :to="{name: 'container', params: {id: item.Id}}" class="columns"> | ||
<div class="column is-7"> | ||
<h2 class="is-2 hide-overflow">{{ item.Names[0] }}</h2> | ||
<span class="subtitle is-6 code hide-overflow">{{ item.Command}}</span> | ||
</div> | ||
<div class="column is-4"> | ||
<span class="code hide-overflow">{{ item.Image }}</span> | ||
</div> | ||
<div class="column is-narrow"> | ||
<span class="subtitle is-7">{{ item.Status}}</span> | ||
</div> | ||
</router-link> | ||
</li> | ||
</ul> | ||
</section> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "Index", | ||
data() { | ||
return { | ||
containers: [] | ||
}; | ||
}, | ||
async created() { | ||
this.containers = await (await fetch(`/api/containers.json`)).json(); | ||
} | ||
export default { | ||
name: "Index", | ||
data() { | ||
return { | ||
containers: [] | ||
}; | ||
}, | ||
async created() { | ||
this.containers = await (await fetch(`/api/containers.json`)).json(); | ||
} | ||
}; | ||
</script> | ||
|
||
<style lang="css"> | ||
.code { | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
background-color: #f5f5f5; | ||
color: #ff3860; | ||
font-size: .875em; | ||
font-weight: 400; | ||
padding: .25em .5em .25em; | ||
display: block; | ||
border-radius: 2px; | ||
} | ||
</style> | ||
.hide-overflow { | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
} | ||
.code { | ||
background-color: #f5f5f5; | ||
color: #ff3860; | ||
font-size: 0.875em; | ||
font-weight: 400; | ||
padding: 0.25em 0.5em 0.25em; | ||
display: block; | ||
border-radius: 2px; | ||
} | ||
</style> |