Vue Dashboard Development: ECharts Composition API Wrapper
ECharts Configuration Hook Implementation
Core Configuration Functions
The implementation begins with utility functions that define default chart styling:
const createDefaultLegend = () => ({
bottom: 0,
left: 0,
orient: "vertical",
itemWidth: 8,
itemHeight: 8,
textStyle: {
color: "white",
},
});
const c ...
Posted on Sat, 13 Jun 2026 18:24:09 +0000 by tommychi
Front-End Strategies for Secure and Efficient Uploads to Alibaba Cloud OSS
Prerequisites
Create a OSS bucket and collect the following credentials from the RAM console:
AccessKeyId and AccessKeySecret (store the secret immediately, it is shown only once)
Bucket name and endpoint (found in the OSS console under "Bucket Overview")
Attach the AliyunOSSFullAccess policy (or a scoped custom policy) to the RAM us ...
Posted on Fri, 12 Jun 2026 17:12:34 +0000 by snuggles79
Working with Vue Single File Components in CLI Environments
In Vue CLI environments powered by Webpack, a .vue file represents a standalone component. The build process, specifically through vue-loader, compiles the HTML template, JavaScript logic, and CSS styles into a single cohesive unit.Historically, defining components required using Vue.component with inline template strings:Vue.component('nav-bar ...
Posted on Tue, 09 Jun 2026 17:31:14 +0000 by dimitar
State Management Patterns Across Vue and Flutter
What Is Application State?
Application state is any data that lives only while the program is running—values that may never reach a database or disk but still need to be shared, updated, and kept consistent across screens or components.
From Props Drilling to Global Stores
The simplest way to move data is through the component tree:
Downward f ...
Posted on Tue, 09 Jun 2026 16:53:31 +0000 by blackwidow
Configuring Axios Base URL and Request Headers in Vue.js
Creating an HTTP Configuration Module
First, create an http.js file to store the server configuration and request interceptors.
import axios from "axios";
const apiInstance = axios.create({
baseURL: 'https://your-api-domain.com',
timeout: 15000
});
apiInstance.interceptors.request.use((config) => {
const storedToken = ...
Posted on Thu, 04 Jun 2026 18:35:14 +0000 by henryhund
Building a GVA-Based Admin System with Gin, Vue, and JWT
Login Handling with Sestion and JWT
Session-based authentication is required to restrict page access to logged-in users only. The Gin framework provides session middleware via github.com/gin-contrib/sessions.
import "github.com/gin-contrib/sessions"
rootRouter.GET("/login", func(c *gin.Context) {
session := sessions.Def ...
Posted on Tue, 02 Jun 2026 18:38:17 +0000 by jexx
Programmatic and Declarative Navigation in Vue with Element UI
Installing Vue Router
First, add Vue Router to your project using npm or yarn:
npm install vue-router
# or
yarn add vue-router
Router Configuration
Create a router directory under src and define your routes in index.js:
// src/router/index.js
import Vue from 'vue'
import VueRouter from 'vue-router'
import Dashboard from '@/components/Dashboar ...
Posted on Fri, 29 May 2026 22:23:55 +0000 by everlifefree
A Lightweight Code Generation Tool for SpringBoot and Vue Applications
Overview
A versatile scaffolding solution built with SpringBoot and Vue3 designed for rapid application development.
This project serves as a foundational template for both front end and backend systems, offering automated code generation capabilities for SpringBoot and Vue applications. It's an evolving open-source initiative crafted by develo ...
Posted on Wed, 27 May 2026 18:03:56 +0000 by like_php
Vue Directive Modifiers for Input Handling and Event Control
Lazy Synchronization with .lazy
By default, v-model synchronizes the input value on every input event. To defer synchronization until the element loses focus or the change event fires, use the .lazy modifier:
<input v-model.lazy="message">
Numeric Type Conversion with .number
To automatically coerce user input in to a number ( ...
Posted on Sat, 23 May 2026 21:36:47 +0000 by syamswaroop
Integrating Django, Vue, Axios, CORS, and Global Settings in a Full-Stack Project
Backend Setup with Django
Internationalization & Timezone
# d_prj/settings.py
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
USE_TZ = False
Frontend HTTP Client: Axios
Installation & Global Registration
# v-proj/src/main.js
import axios from 'axios'
Vue.prototype.$http = axios
Sample GET Request inapting to Vue Lifecycle
// v-p ...
Posted on Fri, 22 May 2026 22:54:09 +0000 by andycastle