Skip to main content

Questions tagged [vue.js]

Vue.js is an open-source JavaScript framework for building interactive web interfaces. It creates data-driven user interfaces with a simple and flexible API.

Filter by
Sorted by
Tagged with
1 vote
2 answers
176 views

Virtual scroller Vue component

Problem The scrolling looks smooth on Windows, but very laggy on Linux (Webkit webview and Webkit browsers). Any thoughts on what could be optimized or what's obviously broken? Demo playground: https:/...
AlekseyHoffman's user avatar
2 votes
1 answer
57 views

JS animated string builder

Today, I tried to write a simple function that would display the characters of my string one by one by iterating over a string containing the letters of the alphabet and showing the steps on the ...
Luca Natale's user avatar
5 votes
1 answer
171 views

v-for loop generating list items that will get rearranged based on an associated value (ranking system)

A counter gets incremented by a custom value. Each increment value gets stored with its refcount that tracks how many times it occurred. An ordered list shows all increment values entered so far by ...
dhiaagr's user avatar
  • 65
1 vote
0 answers
179 views

Tanstack vue-query reloading data when getting out of tab, and (possibly) not using cache

I am writing an app generator. I intend to use all of the best practices for everything. However, I have recently moved ro vue/tanstack and I am still working out what the best practices are -- this ...
Merc's user avatar
  • 557
1 vote
1 answer
326 views

Movies App with Vue 3 and TypeScript

I have made a Movies App with Vue 3, TypeScript and The Movie Database (TMDB) API. For aesthetics, I rely on Bootstrap 5. In src\App.vue I have: ...
Razvan Zamfir's user avatar
5 votes
2 answers
634 views

Display properties of a country, from online service

I'm currently learning Vue JS and I made a simple app that pulls information from API and displays facts about a country given a 2-letter country code. I'm looking for feedback on how to improve the ...
Shinzie's user avatar
  • 51
4 votes
2 answers
87 views

Vue.js - Sierpinski Triangle

Below is a Vue app I wrote to draw a Sierpinski Triangle given n iterations, which can be incremented/decremented via a HTML ...
Delfino's user avatar
  • 509
2 votes
0 answers
33 views

"Github contribution"-clone made with VueJs. Any logic improvements?

I took a shoot at writing a Github contribution clone using Vuej, tippy.js and tailwindcss. Githubs looks like this: My working clone looks like this: Its not an exact look-a-like but im getting ...
Adam's user avatar
  • 223
2 votes
2 answers
455 views

Infinite content loop carousel

I made this pretty simple content loop-carousel component, but the code seems too "Iffy" but Im not sure how I could make it better. I tried to use the Switch expression, which makes it a ...
EricTalv's user avatar
  • 133
0 votes
1 answer
54 views

How to refactor switch statement with convoluted if chain within vuex module

So this is my scenario. In my Websocket Vuex module I'm dealing with all the data coming from the server. I can get different kinds of notifications from the server and according to the type of ...
Lowtrux's user avatar
  • 109
0 votes
1 answer
46 views

Navigating a javascript object (previous and next)

I am using Vue3 together with Collect.js. I have an object records that can have n number of items. On my website, I display ...
oliverbj's user avatar
  • 257
1 vote
1 answer
269 views

Chaining backend calls from VueJS method using Axios

This is the first ever bit of front-end code I have ever written, I have tried to adapt the existing call that is there to the backend using axios, so I check on of the response object value using the ...
mp252's user avatar
  • 497
-4 votes
1 answer
94 views

Simple Vue calculator [closed]

I made conditional calculator in Vue js but I need help to make it more efficient. https://jsfiddle.net/wbrx9cyp/1/ example of code: ...
Ivan95's user avatar
  • 1
1 vote
1 answer
126 views

Show progress bar for different states

I have this working code which shows the progress bar based on different states ("not-started", "progressing" and "done"). Each state will have its own class. I notice it ...
Steve Ngai's user avatar
4 votes
3 answers
128 views

Destructuring with map and assigning to a constant

I don't know exactly what to name this, but I was refactoring a code snippet and looking at this constant users I thought I'd do this destructuring: Before: ...
ARNON's user avatar
  • 401

15 30 50 per page
1
2 3 4 5
8