Vue.js Digest 🇷🇺 🇺🇸
39 subscribers
389 photos
745 links
Дайджест новостей из мира vuejs
Download Telegram
Configurando Teste Unitário no VueJS + Jest

https://dev.to/franciscobressa/configurando-teste-unitario-no-vuejs-jest-3dk6
1. Adicione Jest ao seu projeto

Rode o seguinte comando dentro do diretório de seu projeto



vue add unit-jest


2. Scripts

Para rodar os testes adicione os seguintes comandos nos Scripts de seu package.json



"test:unit": "vue-cli-service test:unit",
"test:watchAll": "jest --verbose --watchAll",


3. Configure as Extensões que seus módulos usarão

Adicione em seu package.json



"jest": {
"moduleFileExtensions": [
"js",
"vue"
],
}


4. Mapear os caminhos

Adicione os mapeamentos que precisar na opção moduleNameMapper em seu jest.config.js



module.exports = {
preset: '@vue/cli-plugin-unit-jest',
moduleNameMapper: {
"@themeConfig(.*)": "<rootDir>/themeConfig.js",
"@core/(.*)": "<rootDir>/src/@core/$1",
"^@/(.*)$": "<rootDir>/src/$1"
}
}


5. Ignorar arquivos

Em seu jest.config.js a opção transformIgnorePatterns ignorará todo tipo de arquivo que coincidir com o padrão regexp. Como por exemplo:



module.exports = {
preset: '@vue/cli-plugin-unit-jest',``
transformIgnorePatterns: ['/node_modules/(?!vee-validate/dist/rules)'],
}
Creating A Map With Markers In VueJs

https://nikakharebava.medium.com/creating-a-map-with-markers-in-vuejs-22d9eb44c556?source=rss------vuejs-5
In this article, we will take a look at how we can create a map component in VueJs using a free plugin.Continue reading on Medium »
Implement different types of sliders using Vue 3 and Swiper 7

https://blog.canopas.com/ifferent-types-of-sliders-using-vue-3-and-swiper-7-f6dc10a3eeed?source=rss------vuejs-5
Using swiper.js, we can integrate eye-catching sliders in different javascript frameworks like Vue, angular, react, etc. It includes many…Continue reading on Canopas Software »
Vue 3 + Vite + Quasar issue

https://dev.to/ingsm/vue-3-vite-quasar-issue-2945
Namaste to everybody!;)
I would like to share with you one issue that i had today with my set-up of Vue, Vite and Quasar. The issue is small and it won't get much of your time and I hope it would be useful for somebody
I had troubles with default Quasar prebuild icons. Built a dev server I received an error:

The request url "D:/projects/Webware/Current/vite-vue-quasar/node_modules/@quasar/extras/roboto-font/web-font/KFOmCnqEu92Fr1Mu4mxM.woff" is outside of Vite serving allow list.

I had the following vite.config.js structure:



import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import { quasar, transformAssetUrls } from '@quasar/vite-plugin'
// https://vitejs.dev/config/
export default defineConfig({
server: {
fs: {
// Allow serving files from one level up to the project root
}
},
plugins: [vue({
template: { transformAssetUrls }
}),
quasar({
sassVariables: '@/assets/styles/quasar-variables.sass'
})
],
resolve: {
alias: {
'@/': `${path.resolve(__dirname, 'src')}/`
}
}
})


The tip here is that that from Vite v2.7 server strict mode is set to true by default and it restricts serving files outside of workspace root.
Link to official docs: https://vitejs.dev/config/#server-fs-strict
Below you can find an option to solve this problem with enabled strict mode, but I just turn the strict mode off.



export default defineConfig({
server: {
fs: {
// Allow serving files from one level up to the project root
strict: false,
}
},


Thank you for reading and I'm eager to hear if my decision is not right enough;)
Vue.js Interview Challenge — #13 — Conditional Login Form

https://medium.com/js-dojo/vue-js-interview-challenge-13-conditional-login-form-8d9e3d7ab338?source=rss------vuejs-5
Problem statementContinue reading on Vue.js Developers »
Vue.js Interview Challenge — #13— Conditional Login Form — Solution

https://medium.com/@m.rybczonek/vue-js-interview-challenge-13-conditional-login-form-solution-280d34994f5f?source=rss------vuejs-5
SolutionContinue reading on Medium »
Getting Child Component Input Data to Parent, gathering into Array in Vue.js?

https://ewumesh.medium.com/getting-child-component-input-data-to-parent-gathering-into-array-in-vue-js-bcce136ecef7?source=rss------vuejs-5
For example, here, when I click the button, I will have one more component, it means it will have new data, so I want to gather all info…Continue reading on Medium »
4 Trending Vue.js Projects in 2022

https://javascript.plainenglish.io/4-trending-vue-js-projects-in-2022-77b308810c29?source=rss------vuejs-5
Trending projects of January for Vue.jsContinue reading on JavaScript in Plain English »
Electron.js ve Vue.js: İki Süper Güç İle Masaüstü Uygulaması

https://medium.com/berkut-teknoloji/electron-js-ve-vue-js-i%CC%87ki-s%C3%BCper-g%C3%BC%C3%A7-i%CC%87le-masa%C3%BCst%C3%BC-uygulamas%C4%B1-dcb7f17020a3?source=rss------vuejs-5
Electron.js Nedir?Continue reading on Berkut Teknoloji »
How to Use Color in Vuetify

https://codingbeauty.medium.com/how-to-use-color-in-vuetify-f48cb9153829?source=rss------vuejs-5
Learn how to use color in VuetifyContinue reading on Medium »
Road To KodaDot v2: Recapping The Last Chapter Of 2021

https://medium.com/kodadot/road-to-kodadot-v2-recapping-the-last-chapter-of-2021-9709fb4f3ee7?source=rss------vuejs-5
The last months of 2021 have been quite productive for KodaDot.Continue reading on KodaDot NFT Prime »
How To Implement Two-Factor Authentication Using Node.js and Vue 3

https://betterprogramming.pub/how-to-implement-two-factor-authentication-using-node-js-and-vue-3-1029745e06fd?source=rss------vuejs-5
With time-based one-time password (TOTP)Continue reading on Better Programming »
Vue Toolkit: A Vue.js 3 Compatible Developer Tool

https://medium.com/@alye13/vue-toolkit-a-vue-js-3-compatible-developer-tool-458720b4aa13?source=rss------vuejs-5
The BeginningContinue reading on Medium »
Vuex — State Management

https://praason.medium.com/vuex-state-management-227fcb305720?source=rss------vuejs-5
Lets first understand what is state?Continue reading on Medium »
How to Use Buttons in Vuetify

https://javascript.plainenglish.io/how-to-use-buttons-in-vuetify-37e4e28d2548?source=rss------vuejs-5
Learn how to use buttons in Vuetify JSContinue reading on JavaScript in Plain English »
Vue, Rust & Kubernetes: The winning trio of meetup videos in 2021

https://dev.to/meetupfeedio/vue-rust-kubernetes-the-winning-trio-of-meetup-videos-in-2021-2p39
Slowly but steadily Rust, Vue and Kubernetes took all over MeetupFeed last year and continue to ace with educational and brilliant videos from developing experts in 2022 as well! We’ve collected the best videos from 2021 for you to not miss a single meetup video that’s definitely worthy of your time!
Discover how to create a full stack app, learn about the future of the cloud, master continuous delivery and build a scalable real time video analysis pipeline, all from these videos. Challenges and lessons were learned along the way so deep dive into matters now and enjoy!
Create A Vue.js 3 Full Stack Application With Amplify, GraphQL, Auth and More | Erik Hanchett
Get ready for Erik Hanchett telling you all the details of how you can create a full stack application specifically, including AWS Amplify, Appsync, Lambda, Cognito for Authentication and Authorization and more!



Continuous Delivery in VUE using GitLab Feature Flags | Kristian Muñoz
Jump into what continuous delivery and feature flags truly are. In brief, let us guide you through different feature flag types, and the pros and cons of using them. All in all, learn how to reach continuous delivery in Vue, using Gitlab feature flags.



Why the Future of the Cloud will be Built on Rust | Oliver Gould
Let Oliver Gould (creator of Linkerd) convince you with an argument about the future of cloud software and the cloud native ecosystem all in all, in this talk.



Streaming video analysis using Pravega | Tom Kaitchuck
Curious about how Rust holds up when it needs to develop real world apps? Find out from this case study that explains how you can build a scalable real time video analysis pipeline using Pravega.



Modernizing a legacy app using Windows Containers and Kubernetes: Challenges and Lessons learned
The main purpose of modernizing the hosting was to scale down maintenance efforts and costs. The speaker will take you through the hosting options, solution implementation, experienced challenges and more in detail.



Kubernetes Security 101 – Best Practices
Get an overview of Kubernetes’ working while learning a few practices on how to secure your cluster when deploying a new cluster. This video covers everything you need from A-Z. Not to mention that you can learn how you can bridge the gap between these problems by using the perfect combination of the right tools.



Benefits and Drawbacks of Adopting a Secure Programming Language: Rust as a Case Study
Memory safety-related vulnerabilities are often combated by programming languages like Rust. To clarify why, let’s take a look at the adoption method of this more secure language through the eyes of senior developers who have worked with Rust on their teams or tried to introduce it.



Writing the Fastest GBDT Library in Rust | Isabella Tromba
To begin with, Isabella Tromba shares her experience in optimizing a Rust implementation of the Gradient Boosted Decision Tree machine learning algorithm. Discover a GBDT library that trains faster than similars written in C/C++.



Supercharging Your Code With Five Little-Known Attributes | Jackson Lewis
Attributes enable programmers to auto-derive traits, set up a test suite in no time, and moreover, to conditionally compile code for particular platforms. Find out how you can leverage its advantages.



Want to see more? Check out other articles at https://blog.meetupfeed.io .
Looking for PHP, Laravel, & Vue Engineers - Fully Remote

https://dev.to/nyraatgrin/looking-for-php-laravel-vue-engineers-fully-remote-cdk
Company Name: GRIN Technologies Inc.
Location: 100% Remote - Coorporate Office in Sacramento, CA
Technologies: PHP/Laravel/Vue/Symfony
Position Details:

We are a Creator Management Software company based in Sacramento, CA but will always have a “remote-first” work policy.

We are currently looking for experienced and professional Software Engineers (frontend and fullstack; mid-senior) to build great, user friendly products for our Creator Management Platform. You’ll be part of a cross-functional team that’s responsible for the full software development life cycle, from conception to deployment. Experience with Laravel/PHP and Vue is needed. Experience with Symfony is also a plus.
A Few Highlights & Perks!:

W2 - Full time - Remote
Annual Employee Career Development Reimbursement offered
Home Office set up offered
Employee Stock Option Program and more!

If interested, please email your resume to [email protected]
How to use vuelidate with vue tel input (vue-tel-input)

https://medium.com/@julianaputra10/how-to-use-vuelidate-with-vue-tel-input-vue-tel-input-b35423f64863?source=rss------vuejs-5
Make sure you have installed both librariesContinue reading on Medium »
What is a Single-Page Application [ SPA ]?

https://dev.to/ansub/what-is-a-single-page-application-spa--2l6d
What is SPA?

SPA as the name suggests means when you load the app for once. In simple words, the pages don't reload when you click on something. on clicking on an element on the page, SPA only renders that element, instead of what traditional pages do (rendering the whole page with every 🖱)
If you Notice Gmail when you browse through your email you’ll notice that not much changes during navigation - the sidebar and header remain untouched as you go through your inbox.
The three most popular SPA tools are:

** Angular**: developed by Google and now almost ten years old)
React: created by Facebook a few years later
Vue: developed by an ex-Google employee and which has enjoyed a surge in popularity over the past few years.




Examples of SPA


Facebook
Google Maps
Gmail
Twitter
Google Drive




Pros of SPA


Speed and Response Time because you are loading everything at once
a better User Experience as users can access information very quickly.
Caching as SPA only have to request data from the server one time, upon initial download.




Cons of SPA


SEO is the biggest problem with SPAs because of fewer pages and HTML Content.
will not work for users who have disabled Javascript in their browser

if you like this article then follow me on Twitter

I learn and try to simply stuff for you :)
Thanks For Reading!