-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
180 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<template> | ||
<div id="blue-search" :style="blueSearchStyle"> | ||
<input type="search" v-model="q" placeholder="Search for a blueprint items..."> | ||
<ul id="blue-search-list"> | ||
<li v-for="i in 45"> | ||
<i class="ri-clipboard-line"></i> | ||
item {{i}} | ||
</li> | ||
</ul> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "blue-search", | ||
components: {}, | ||
data: () => { | ||
return { | ||
q:'', | ||
} | ||
}, | ||
props: { | ||
x:{ | ||
type:Number, | ||
default:0, | ||
}, | ||
y:{ | ||
type:Number, | ||
default:0, | ||
} | ||
}, | ||
mounted() { | ||
}, | ||
computed: { | ||
blueSearchStyle(){ | ||
return `left: ${this.x}px;top: ${this.y}px;` | ||
} | ||
}, | ||
methods: {} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
#blue-search { | ||
position: absolute; | ||
top: 100px; | ||
left: 100px; | ||
background: #282c34; | ||
width: 300px; | ||
color: white; | ||
} | ||
#blue-search input { | ||
background: transparent; | ||
border: 1px solid #191d23; | ||
display: block; | ||
padding: 3px; | ||
width: 100%; | ||
color: white; | ||
font-size: 16px; | ||
text-align: center; | ||
} | ||
#blue-search-list{ | ||
padding: .5rem; | ||
height: 15em; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
list-style: none; | ||
} | ||
#blue-search-list li{ | ||
} | ||
#blue-search-list li:hover{ | ||
background: rgba(255, 255, 255, 0.11); | ||
} | ||
</style> |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<div id="blue-print" @contextmenu="showBlueSearch"> | ||
<blue-search v-if="blueSearchVisible" :x="blueSearchX" :y="blueSearchY"></blue-search> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import blueSearch from "../components/blue-search.vue"; | ||
export default { | ||
name: "blue-print", | ||
components: { | ||
blueSearch, | ||
}, | ||
data: () => { | ||
return { | ||
blueSearchVisible: false, | ||
blueSearchX: 0, | ||
blueSearchY: 0, | ||
} | ||
}, | ||
props: {}, | ||
mounted() { | ||
}, | ||
computed: {}, | ||
methods: { | ||
showBlueSearch(e) { | ||
e.preventDefault(); | ||
this.blueSearchX = e.layerX; | ||
this.blueSearchY = e.layerY; | ||
this.blueSearchVisible = !this.blueSearchVisible; | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
#blue-print { | ||
background-image: url("../assets/svg/background/grid.svg"); | ||
height: 100%; | ||
grid-column: 1 / -1; | ||
position: relative; | ||
} | ||
#blue-print:after { | ||
content: "BLUE PRINT"; | ||
position: absolute; | ||
inset-inline-end: 10px; | ||
bottom: 0; | ||
font-size: 35px; | ||
opacity: 0.3; | ||
} | ||
</style> |
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