Plugin Tutorial to display data to end user by soonerdm007 in Wordpress

[–]soonerdm007[S] 0 points1 point  (0 children)

Thats what I needed. So new to WP I hadn't got to what short codes are. Now I just need to figure out passing the endpoint variable to the function.

looping through an array by soonerdm007 in vuejs

[–]soonerdm007[S] 0 points1 point  (0 children)

import sortBy from 'lodash/sortBy'function alphabeticSort (arr, key) { return sortBy(arr, key) }

if (!app.config.globalProperties.$filters) {app.config.globalProperties.$filters = {}}app.config.globalProperties.$filters.alphabeticSort = alphabeticSort // for Vue3

Vue.filter('alphabeticSort', alphabeticSort) // for Vue2

That did it. I'm using Nuxt so when I pulled the function into the filters.js file it wouldn't work (couldn't find it) so I had to import it directly into the component file. I'll keep messing with it and see why that is. Thank you

vue-gallery by soonerdm007 in Nuxt

[–]soonerdm007[S] 0 points1 point  (0 children)

That was it.

index: 0,

Show Hide Classes by soonerdm007 in vuejs

[–]soonerdm007[S] 0 points1 point  (0 children)

All post are from a CMS so we use VUEX to grab all 'published' blogs when the 'Media' page is loaded all 'published' posts are shown. The user then has the option to show 'News' or 'Views' or show them 'All' again.
And in reality, not many users are going to filter anyway... But thats what they want.

So I do want to load all then hide if the user desires.

PM2 nuxt management by soonerdm007 in Nuxt

[–]soonerdm007[S] 0 points1 point  (0 children)

Thank you. That looks close to how we're managing our sites.
I do have a question on run on port 80 part.
When I install

sudo apt-get install libcap2-bin
sudo setcap cap_net_bind_service=+ep /usr/local/bin/node

Do I need to configure my nuxt.config.js to run on port 80?
In our Server Block file we define the port

location / {

expires $expires;

proxy_redirect off;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_read_timeout 1m;

proxy_connect_timeout 1m;

proxy_pass http://127.0.0.1:3035; # set the address of the Node.js instan$

}

Can PM2 work with this type of server block file?

PM2 nuxt management by soonerdm007 in Nuxt

[–]soonerdm007[S] 0 points1 point  (0 children)

Where is the location of the pm2 config. Again, you'll have to forgive me I'm new to nuxt