fix hints and warnings

This commit is contained in:
Tim Wundenberg
2021-08-01 11:54:14 +02:00
parent 58ec182be2
commit c6d6a437dc
4 changed files with 19 additions and 38 deletions

3
.gitignore vendored
View File

@@ -3,4 +3,5 @@ bin/
obj/ obj/
.vscode/ .vscode/
node_modules/ node_modules/
*.csproj.user *.csproj.user
.idea

View File

@@ -14,16 +14,16 @@
<button class="button-delete" @click="onClickDelete()"> <button class="button-delete" @click="onClickDelete()">
<font-awesome-icon class="icon" icon="trash"></font-awesome-icon> <font-awesome-icon class="icon" icon="trash"></font-awesome-icon>
<p class="button-text">Delete</p> <span class="button-text">Delete</span>
</button> </button>
<button @click="onClickSave()"> <button @click="onClickSave()">
<font-awesome-icon class="icon" icon="edit"></font-awesome-icon> <font-awesome-icon class="icon" icon="edit"></font-awesome-icon>
<p class="button-text">Save</p> <span class="button-text">Save</span>
</button> </button>
<button @click="onClickEdit()"> <button @click="onClickEdit()">
<font-awesome-icon class="icon" icon="times"></font-awesome-icon> <font-awesome-icon class="icon" icon="times"></font-awesome-icon>
<p class="button-text">Cancel</p> <span class="button-text">Cancel</span>
</button> </button>
</div> </div>
</div> </div>
@@ -54,7 +54,7 @@ export default {
this.isCollapsed = !this.isCollapsed; this.isCollapsed = !this.isCollapsed;
if (this.isCollapsed) { if (this.isCollapsed) {
this.$refs.settings.style.height = 0; this.$refs.settings.style.height = "0";
} else { } else {
this.editPcName = this.item.name; this.editPcName = this.item.name;
this.$refs.settings.style.height = this.$refs.settings.style.height =
@@ -76,11 +76,11 @@ export default {
}); });
}, },
outerHeight(el) { outerHeight(el) {
var width = el.offsetHeight; let height = el.offsetHeight;
const style = getComputedStyle(el); const style = getComputedStyle(el);
width += parseInt(style.marginTop) + parseInt(style.marginTop); height += parseInt(style.marginTop) + parseInt(style.marginTop);
return width; return height;
}, },
}, },
computed: { computed: {
@@ -100,8 +100,7 @@ export default {
.caption { .caption {
display: inline-block; display: inline-block;
margin: 0px; margin: 0 0 0 5px;
margin-left: 5px;
font-size: 0.8em; font-size: 0.8em;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
@@ -114,14 +113,10 @@ export default {
.button-text { .button-text {
display: inline-block; display: inline-block;
margin: 0px; margin: 0;
} }
#settings { #settings {
-moz-transition: height 0.1s;
-ms-transition: height 0.1s;
-o-transition: height 0.1s;
-webkit-transition: height 0.1s;
transition: height 0.1s; transition: height 0.1s;
height: 0; height: 0;
overflow: hidden; overflow: hidden;

View File

@@ -11,9 +11,8 @@ library.add(faEdit, faEye, faEyeSlash, faTrash, faTimes)
//Vue.config.productionTip = false //Vue.config.productionTip = false
const app = createApp(App) createApp(App)
.use(router) .use(router)
.use(store) .use(store)
.component('font-awesome-icon', FontAwesomeIcon); .component('font-awesome-icon', FontAwesomeIcon)
.mount('#app');
app.mount('#app')

View File

@@ -39,7 +39,7 @@ export default {
} }
ul { ul {
padding-left: 0px; padding-left: 0;
} }
li { li {
@@ -49,31 +49,17 @@ li {
p { p {
display: inline-block; display: inline-block;
margin: 0px; margin: 0 0 0 10px;
margin-left: 10px;
} }
h3 { h3 {
margin: 0px; margin: 0;
} }
a { a {
text-decoration: none; text-decoration: none;
} }
button {
display: inline-block;
border-top: 0px;
border-bottom: 0px;
border-left: 0px;
border-right: 0px;
background: none;
cursor: pointer;
color: grey;
font-size: inherit;
}
#map-settings { #map-settings {
grid-area: right; grid-area: right;
border-left: 1px solid black; border-left: 1px solid black;
@@ -96,7 +82,7 @@ button {
height: calc( height: calc(
100vh - 2em - 20px - 1px 100vh - 2em - 20px - 1px
); /*viewport height - height of navbar-button - padding - borderline*/ ); /*viewport height - height of navbar-button - padding - borderline*/
grid-gap: 0px; grid-gap: 0;
padding: 0px; padding: 0;
} }
</style> </style>