Browse Source

disable webpack-compression-plugin

develop
dskvr 2 years ago
parent
commit
a1b20de876
  1. 3
      relays.yaml
  2. 17
      src/components/relays/blocks/MapSummary.vue
  3. 8
      src/components/relays/nav/RelaysNav.vue
  4. 27
      src/components/relays/pages/RelaysFind.vue
  5. 8
      vue.config.js

3
relays.yaml

@ -184,10 +184,11 @@ relays:
- wss://relay.nostr.lu.ke - wss://relay.nostr.lu.ke
- wss://relay.nostrgraph.net - wss://relay.nostrgraph.net
- wss://private-nostr.v0l.io - wss://private-nostr.v0l.io
- "wss://relay.nvote.co:443" - wss://relay.nvote.co:443
- wss://relay.nostrprotocol.net - wss://relay.nostrprotocol.net
- wss://nostr.itssilvestre.com - wss://nostr.itssilvestre.com
- wss://nostr.whoop.ph - wss://nostr.whoop.ph
- wss://nostr.zoomout.chat - wss://nostr.zoomout.chat
- wss://nostr.chaker.net - wss://nostr.chaker.net
- wss://nostr-1.nbo.angani.co - wss://nostr-1.nbo.angani.co
- wss://nostr3.actn.io

17
src/components/relays/blocks/MapSummary.vue

@ -118,13 +118,16 @@ export default defineComponent({
// // this.refreshMap() // // this.refreshMap()
// }) // })
this.$refs.map.leafletObject.whenReady(async () => { setTimeout( () => {
await this.$refs.map.leafletObject this.$refs.map.leafletObject.whenReady(async () => {
.flyTo( await this.$refs.map.leafletObject
this.store.layout.mapIsExpanded ? [40.41322, -1.219482] : [35.41322, -1.219482], .flyTo(
this.store.layout.mapIsExpanded ? 4 : 2 this.store.layout.mapIsExpanded ? [40.41322, -1.219482] : [35.41322, -1.219482],
) this.store.layout.mapIsExpanded ? 4 : 2
}) )
})
},1000)
//console.log(this.$refs.map.leafletObject) //console.log(this.$refs.map.leafletObject)
// this.$refs.map.leafletObject.setView( // this.$refs.map.leafletObject.setView(
// this.store.layout.mapIsExpanded ? [40.41322, -1.219482] : [35.41322, -1.219482], // this.store.layout.mapIsExpanded ? [40.41322, -1.219482] : [35.41322, -1.219482],

8
src/components/relays/nav/RelaysNav.vue

@ -27,13 +27,17 @@
</template> </template>
<script> <script>
import { defineComponent, toRefs } from 'vue' import { defineComponent, defineAsyncComponent, toRefs } from 'vue'
import {useRoute} from 'vue-router' import {useRoute} from 'vue-router'
import { setupStore } from '@/store' import { setupStore } from '@/store'
import RelaysLib from '@/shared/relays-lib.js' import RelaysLib from '@/shared/relays-lib.js'
import { setupNavData, mountNav, setActiveContent, loadNavContent, routeValid, parseHash, contentIsActive } from '@/shared/hash-router.js' import { setupNavData, mountNav, setActiveContent, loadNavContent, routeValid, parseHash, contentIsActive } from '@/shared/hash-router.js'
import RefreshComponent from '@/components/relays/tasks/RefreshTask.vue' // import RefreshComponent from '@/components/relays/tasks/RefreshTask.vue'
const RefreshComponent = defineAsyncComponent(() =>
import("@/components/relays/tasks/RefreshTask.vue" /* webpackChunkName: "RefreshComponent" */)
);
export default defineComponent({ export default defineComponent({

27
src/components/relays/pages/RelaysFind.vue

@ -53,7 +53,7 @@
<script> <script>
//vue //vue
import { defineComponent } from 'vue' import { defineComponent, defineAsyncComponent } from 'vue'
import {useRoute} from 'vue-router' import {useRoute} from 'vue-router'
//pinia //pinia
import { setupStore } from '@/store' import { setupStore } from '@/store'
@ -61,15 +61,32 @@ import { setupStore } from '@/store'
import RelaysLib from '@/shared/relays-lib.js' import RelaysLib from '@/shared/relays-lib.js'
import { parseHash } from '@/shared/hash-router.js' import { parseHash } from '@/shared/hash-router.js'
//components //components
import RelaysNav from '@/components/relays/nav/RelaysNav.vue' // import RelaysNav from '@/components/relays/nav/RelaysNav.vue'
import RelaysFindNav from '@/components/relays/nav/RelaysFindNav.vue' // import RelaysFindNav from '@/components/relays/nav/RelaysFindNav.vue'
import RelaysResultTable from '@/components/relays/blocks/RelaysResultTable.vue' // import RelaysResultTable from '@/components/relays/blocks/RelaysResultTable.vue'
import MapSummary from '@/components/relays/blocks/MapSummary.vue' // import MapSummary from '@/components/relays/blocks/MapSummary.vue'
import { relays } from '../../../../relays.yaml' import { relays } from '../../../../relays.yaml'
import { geo } from '../../../../cache/geo.yaml' import { geo } from '../../../../cache/geo.yaml'
const localMethods = {} const localMethods = {}
const MapSummary = defineAsyncComponent(() =>
import("@/components/relays/blocks/MapSummary.vue" /* webpackChunkName: "MapSummary" */)
);
const RelaysNav = defineAsyncComponent(() =>
import("@/components/relays/nav/RelaysNav.vue" /* webpackChunkName: "RelaysNav" */)
);
const RelaysFindNav = defineAsyncComponent(() =>
import("@/components/relays/nav/RelaysFindNav.vue" /* webpackChunkName: "RelaysFindNav" */)
);
const RelaysResultTable = defineAsyncComponent(() =>
import("@/components/relays/blocks/RelaysResultTable.vue" /* webpackChunkName: "RelaysResultTable" */)
);
export default defineComponent({ export default defineComponent({
name: 'HomePage', name: 'HomePage',

8
vue.config.js

@ -1,6 +1,6 @@
const { defineConfig } = require('@vue/cli-service') const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
const CompressionPlugin = require("compression-webpack-plugin") // const CompressionPlugin = require("compression-webpack-plugin")
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = defineConfig({ module.exports = defineConfig({
@ -15,9 +15,9 @@ module.exports = defineConfig({
}, },
plugins: [ plugins: [
new NodePolyfillPlugin(), new NodePolyfillPlugin(),
new CompressionPlugin({ // new CompressionPlugin({
test: /\.js(\?.*)?$/i, // test: /\.js(\?.*)?$/i,
}), // }),
new BundleAnalyzerPlugin() new BundleAnalyzerPlugin()
], ],
optimization: { optimization: {

Loading…
Cancel
Save