recenter map, fix yaml newline

This commit is contained in:
dskvr
2022-12-18 22:20:00 +01:00
parent a8a83d0d90
commit b964d3ace1
7 changed files with 17 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"prebuild": "node ./scripts/geo.js", "prebuild": "node ./scripts/geo.js",
"serve": "yarn prebuild && vue-cli-service serve --host localhost", "serve": "vue-cli-service serve --host localhost",
"build": "yarn prebuild && vue-cli-service build", "build": "yarn prebuild && vue-cli-service build",
"watch": "yarn prebuild && vue-cli-service build --watch", "watch": "yarn prebuild && vue-cli-service build --watch",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",

View File

@@ -50,3 +50,4 @@ relays:
- 'wss://nostr-relay.gkbrk.com' - 'wss://nostr-relay.gkbrk.com'
- 'wss://nostr.zerofeerouting.com' - 'wss://nostr.zerofeerouting.com'
- 'wss://no.str.cr' - 'wss://no.str.cr'

View File

@@ -3,7 +3,7 @@
<l-map <l-map
ref="map" ref="map"
v-model:zoom="zoom" v-model:zoom="zoom"
:center="[47.41322, -1.219482]" :center="[40.41322, -1.219482]"
:minZoom="zoom" :minZoom="zoom"
:maxZoom="zoom" :maxZoom="zoom"
:zoomControl="false" :zoomControl="false"
@@ -33,10 +33,10 @@
:fillOpacity="1" :fillOpacity="1"
:class="relay" :class="relay"
> >
<l-popup> <!-- <l-popup>
{{ relay }} {{ relay }}
meopw meopw
</l-popup> </l-popup> -->
</l-circle-marker> </l-circle-marker>
</l-map> </l-map>

View File

@@ -3,7 +3,7 @@
<l-map <l-map
ref="map" ref="map"
v-model:zoom="zoom" v-model:zoom="zoom"
:center="[47.41322, -1.219482]" :center="[40.41322, -1.219482]"
:minZoom="zoom" :minZoom="zoom"
:maxZoom="zoom" :maxZoom="zoom"
:zoomControl="false" :zoomControl="false"
@@ -30,22 +30,21 @@
:fillOpacity="1" :fillOpacity="1"
:class="relay" :class="relay"
> >
<l-popup> <!-- <l-popup>
{{ relay }} {{ relay }}
</l-popup> </l-popup> -->
</l-circle-marker> </l-circle-marker>
</l-map> </l-map>
</template> </template>
<script> <script>
import "leaflet/dist/leaflet.css" import "leaflet/dist/leaflet.css"
import { LMap, LTileLayer, LCircleMarker, LPopup } from "@vue-leaflet/vue-leaflet"; import { LMap, LTileLayer, LCircleMarker } from "@vue-leaflet/vue-leaflet";
export default { export default {
components: { components: {
LMap, LMap,
LTileLayer, LTileLayer,
LCircleMarker, LCircleMarker
LPopup
}, },
methods: { methods: {
getLatLng(){ getLatLng(){

View File

@@ -79,7 +79,7 @@
<script> <script>
import { defineComponent} from 'vue' import { defineComponent} from 'vue'
import { VueFinalModal } from 'vue-final-modal' import { VueFinalModal } from 'vue-final-modal'
import { InspectorRelayResult } from 'nostr-relay-inspector' import { InspectorResult } from 'nostr-relay-inspector'
import SafeMail from "@2alheure/vue-safe-mail"; import SafeMail from "@2alheure/vue-safe-mail";
import { countryCodeEmoji } from 'country-code-emoji'; import { countryCodeEmoji } from 'country-code-emoji';
import emoji from 'node-emoji'; import emoji from 'node-emoji';
@@ -95,7 +95,7 @@ export default defineComponent({
result: { result: {
type: Object, type: Object,
default(){ default(){
return structuredClone(InspectorRelayResult) return structuredClone(InspectorResult)
} }
}, },
geo: { geo: {

View File

@@ -92,7 +92,7 @@ import LeafletComponent from '../components/LeafletComponent.vue'
import NavComponent from '../components/NavComponent.vue' import NavComponent from '../components/NavComponent.vue'
import RefreshComponent from '../components/RefreshComponent.vue' import RefreshComponent from '../components/RefreshComponent.vue'
import { version } from '../../package.json' import { version as nwVersion } from '../../package.json'
import { relays } from '../../relays.yaml' import { relays } from '../../relays.yaml'
import { geo } from '../../geo.yaml' import { geo } from '../../geo.yaml'
import { messages as RELAY_MESSAGES, codes as RELAY_CODES } from '../../codes.yaml' import { messages as RELAY_MESSAGES, codes as RELAY_CODES } from '../../codes.yaml'
@@ -125,7 +125,7 @@ export default defineComponent({
count: 0, count: 0,
storage: null, storage: null,
geo, geo,
version: version, version: nwVersion,
hasStorage: false, hasStorage: false,
lastUpdate: null, lastUpdate: null,
cacheExpiration: (30*60*1000), cacheExpiration: (30*60*1000),

View File

@@ -19,6 +19,8 @@ module.exports = defineConfig({
"fs": false, "fs": false,
"tls": false, "tls": false,
"net": false, "net": false,
"utf-8-validate": false,
"bufferutil": false
} }
}, },
}, },