Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
12db23f846 |
12
.env
12
.env
@ -1,6 +1,6 @@
|
|||||||
VUE_APP_API_URL=http://31.129.106.67:8080
|
# VUE_APP_API_URL=http://31.129.106.67:8080
|
||||||
VUE_APP_GEO_URL=http://31.129.106.67:6001
|
# VUE_APP_GEO_URL=http://31.129.106.67:6001
|
||||||
VUE_APP_WEATHER_URL=http://31.129.106.67:6002
|
# VUE_APP_WEATHER_URL=http://31.129.106.67:6002
|
||||||
# VUE_APP_API_URL=http://127.0.0.1:8080
|
VUE_APP_API_URL=http://127.0.0.1:8080
|
||||||
# VUE_APP_GEO_URL=http://127.0.0.1:6001
|
VUE_APP_GEO_URL=http://127.0.0.1:6001
|
||||||
# VUE_APP_WEATHER_URL=http://127.0.0.1:6002
|
VUE_APP_WEATHER_URL=http://127.0.0.1:6002
|
2539
package-lock.json
generated
2539
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -9,6 +9,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@improbable-eng/grpc-web": "^0.15.0",
|
"@improbable-eng/grpc-web": "^0.15.0",
|
||||||
|
"@pixi/text-bitmap": "^7.4.3",
|
||||||
|
"@vitejs/plugin-vue": "^6.0.0",
|
||||||
"axios": "^1.8.4",
|
"axios": "^1.8.4",
|
||||||
"core-js": "^3.8.3",
|
"core-js": "^3.8.3",
|
||||||
"google-protobuf": "^3.21.4",
|
"google-protobuf": "^3.21.4",
|
||||||
@ -18,8 +20,12 @@
|
|||||||
"leaflet-geometryutil": "^0.10.3",
|
"leaflet-geometryutil": "^0.10.3",
|
||||||
"leaflet-pixi-overlay": "^1.9.4",
|
"leaflet-pixi-overlay": "^1.9.4",
|
||||||
"leaflet-rotatedmarker": "^0.2.0",
|
"leaflet-rotatedmarker": "^0.2.0",
|
||||||
"pixi.js": "^8.10.2",
|
"phaser": "^3.90.0",
|
||||||
"vue": "^3.2.13"
|
"pixi-viewport": "^6.0.3",
|
||||||
|
"pixi.js": "^8.11.0",
|
||||||
|
"vue": "^3.2.13",
|
||||||
|
"vue-ts": "^1.0.11",
|
||||||
|
"vue3-pixi": "^0.9.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.12.16",
|
"@babel/core": "^7.12.16",
|
||||||
|
@ -115,13 +115,31 @@ body {
|
|||||||
.stopdescription {
|
.stopdescription {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: 0 15px 0 15px;
|
padding: 0 10px 0 10px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
max-height: calc(100% - 430px);
|
max-height: calc(100% - 430px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stopdescription::-webkit-scrollbar {
|
||||||
|
width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stopdescription::-webkit-scrollbar-track {
|
||||||
|
background: #a6a6a6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stopdescription::-webkit-scrollbar-thumb {
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Firefox scrollbar */
|
||||||
|
.stopdescription {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: white #a6a6a6;
|
||||||
|
}
|
||||||
|
|
||||||
.landmarks {
|
.landmarks {
|
||||||
background: #806c58;
|
background: #806c58;
|
||||||
border-radius: 10px 10px 0 0;
|
border-radius: 10px 10px 0 0;
|
||||||
@ -843,18 +861,35 @@ li.checked {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: end;
|
justify-content: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sight-thumbnail {
|
.sight-thumbnail {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
background: #fff;
|
||||||
|
aspect-ratio: 1/1;
|
||||||
|
border-radius: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sight-thumbnail img {
|
||||||
|
object-fit: cover;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sight-title {
|
.sight-title {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
word-wrap: break-word;
|
||||||
|
word-break: break-word;
|
||||||
|
hyphens: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sight-letter {
|
.sight-letter {
|
||||||
@ -1063,3 +1098,136 @@ li.checked {
|
|||||||
.governor-appeal h3 {
|
.governor-appeal h3 {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sight-card {
|
||||||
|
position: relative;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sight-card-detail {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 105%;
|
||||||
|
width: 260px;
|
||||||
|
z-index: 20;
|
||||||
|
background: rgba(0, 0, 0, 0.85);
|
||||||
|
color: #fff;
|
||||||
|
padding: 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
backdrop-filter: blur(4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sight-card-detail .detail-image {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sight-card-detail .detail-name {
|
||||||
|
margin: 0 0 6px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-articles {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-article {
|
||||||
|
margin-top: 4px;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
.sight-side-panel {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 33%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.65);
|
||||||
|
padding: 14px 18px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow-y: auto;
|
||||||
|
z-index: 30;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-image-wrapper {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-image {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 6px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-name {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-description {
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 1.4;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-articles {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-article-option {
|
||||||
|
padding: 4px 8px;
|
||||||
|
background: rgba(255, 255, 255, 0.15);
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-article-option.selected {
|
||||||
|
background: rgba(255, 255, 255, 0.35);
|
||||||
|
}
|
||||||
|
.language-options {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lang-option svg {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sights-grid {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 12px;
|
||||||
|
padding-right: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sight-letter-group {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
.letter-anchor {
|
||||||
|
position: absolute !important;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sight-card {
|
||||||
|
flex: 0 0 calc((100% - 24px) / 3);
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
@ -216,9 +216,9 @@
|
|||||||
<div
|
<div
|
||||||
v-for="(group, letter) in groupedSights"
|
v-for="(group, letter) in groupedSights"
|
||||||
:key="letter"
|
:key="letter"
|
||||||
:ref="'letter-' + letter"
|
|
||||||
class="sight-letter-group"
|
class="sight-letter-group"
|
||||||
>
|
>
|
||||||
|
<span :ref="'letter-' + letter" class="letter-anchor"></span>
|
||||||
<div
|
<div
|
||||||
v-for="sight in group"
|
v-for="sight in group"
|
||||||
:key="sight.id"
|
:key="sight.id"
|
||||||
@ -228,7 +228,9 @@
|
|||||||
}"
|
}"
|
||||||
@click.stop="openSightCardDetails(sight.id)"
|
@click.stop="openSightCardDetails(sight.id)"
|
||||||
>
|
>
|
||||||
<img class="sight-thumbnail" :src="sight.thumbnailUrl" />
|
<div class="sight-thumbnail">
|
||||||
|
<img :src="sight.thumbnailUrl" />
|
||||||
|
</div>
|
||||||
<div class="sight-title">{{ sight.name }}</div>
|
<div class="sight-title">{{ sight.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -761,12 +763,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectLetter(letter) {
|
selectLetter(letter) {
|
||||||
const section = this.$refs[`letter-${letter}`]?.[0];
|
const anchorArr = this.$refs[`letter-${letter}`];
|
||||||
|
const anchor = anchorArr ? anchorArr[0] : null;
|
||||||
const container = this.$refs.scrollContainer;
|
const container = this.$refs.scrollContainer;
|
||||||
if (section && container) {
|
|
||||||
const top = section.offsetTop;
|
if (!anchor || !container) return;
|
||||||
container.scrollTo({ top, behavior: "smooth" });
|
|
||||||
|
let target = anchor.nextElementSibling;
|
||||||
|
if (!target || !target.classList.contains("sight-card")) {
|
||||||
|
target = anchor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const top = target.offsetTop;
|
||||||
|
container.scrollTo({ top, behavior: "smooth" });
|
||||||
},
|
},
|
||||||
toggleTransfers() {
|
toggleTransfers() {
|
||||||
console.log("Transfer toggle clicked");
|
console.log("Transfer toggle clicked");
|
||||||
@ -841,113 +850,3 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.sight-card {
|
|
||||||
position: relative;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sight-card-detail {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 105%;
|
|
||||||
width: 260px;
|
|
||||||
z-index: 20;
|
|
||||||
background: rgba(0, 0, 0, 0.85);
|
|
||||||
color: #fff;
|
|
||||||
padding: 12px;
|
|
||||||
border-radius: 6px;
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.sight-card-detail .detail-image {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
border-radius: 4px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sight-card-detail .detail-name {
|
|
||||||
margin: 0 0 6px;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.detail-articles {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.detail-article {
|
|
||||||
margin-top: 4px;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.3;
|
|
||||||
}
|
|
||||||
.sight-side-panel {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
width: 33%;
|
|
||||||
height: 100%;
|
|
||||||
background: rgba(0, 0, 0, 0.65);
|
|
||||||
padding: 14px 18px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
overflow-y: auto;
|
|
||||||
z-index: 30;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-image-wrapper {
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-image {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
border-radius: 6px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-name {
|
|
||||||
font-size: 18px;
|
|
||||||
font-weight: 600;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-description {
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.4;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
background: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-articles {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 6px;
|
|
||||||
margin-top: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-article-option {
|
|
||||||
padding: 4px 8px;
|
|
||||||
background: rgba(255, 255, 255, 0.15);
|
|
||||||
border-radius: 4px;
|
|
||||||
font-size: 14px;
|
|
||||||
cursor: pointer;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-article-option.selected {
|
|
||||||
background: rgba(255, 255, 255, 0.35);
|
|
||||||
}
|
|
||||||
.language-options {
|
|
||||||
display: flex;
|
|
||||||
gap: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.lang-option svg {
|
|
||||||
width: 28px;
|
|
||||||
height: 28px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
Reference in New Issue
Block a user