mirror of
https://gitee.com/honghuangdc/soybean-admin-element-plus.git
synced 2025-12-30 10:22:25 +00:00
release v1.3.11 (#54)
* fix(projects): 🐛 fix update notifications
* chore(projects): release v1.3.11
This commit is contained in:
35
CHANGELOG.md
35
CHANGELOG.md
@@ -1,6 +1,41 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## [v1.3.11](https://github.com/skyfeiz/soybean-admin-element-plus/compare/v1.3.10...v1.3.11) (2025-02-10)
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- **projects**: ✨ multi language buttons support hiding - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/44 [<samp>(312c0)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/312c0e2)
|
||||
|
||||
### 🐞 Bug Fixes
|
||||
|
||||
- **projects**:
|
||||
- 🐛 fix login success notification. - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/45 [<samp>(c94c8)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/c94c845)
|
||||
- 🐛 fix element-plus style conflicts - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/49 [<samp>(b8b7f)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/b8b7f4d)
|
||||
- 🐛 fix update notifications - by **skyfeiz** [<samp>(ecbf1)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/ecbf1d1)
|
||||
|
||||
### 🛠 Optimizations
|
||||
|
||||
- **projects**: 🎨 fix warning Component name should always be multi-word - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/46 [<samp>(aceff)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/aceff34)
|
||||
|
||||
### 🏡 Chore
|
||||
|
||||
- **deps**: ⬆️ update sass - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/50 [<samp>(223bb)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/223bb5e)
|
||||
- **other**: 🥚 add postbuild print - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/47 [<samp>(571f1)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/571f14d)
|
||||
|
||||
### 🎨 Styles
|
||||
|
||||
- **projects**: 🎨 fix eslint warning - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/51 [<samp>(e25ce)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/e25ce95)
|
||||
|
||||
### 🤖 CI
|
||||
|
||||
- **other**: ✨ display the actual request url in terminal - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/52 [<samp>(313f1)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/313f150)
|
||||
|
||||
### ❤️ Contributors
|
||||
|
||||
|
||||
[skyfeiz](mailto:webzhangfei@163.com), [一寸灰](mailto:webyicunhui@outlook.com)
|
||||
|
||||
## [v1.3.10](https://github.com/skyfeiz/soybean-admin-elp/compare/undefined...v1.3.10) (2024-12-31)
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@sa/elp",
|
||||
"type": "module",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、ElementPlus and UnoCSS. 一个基于Vue3、Vite3、TypeScript、ElementPlus and UnoCSS的清新优雅的中后台模版。",
|
||||
"author": {
|
||||
"name": "Soybean",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/alova",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./fetch": "./src/fetch.ts",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/axios",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/color",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/hooks",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/materials",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/fetch",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/scripts",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"bin": {
|
||||
"sa": "./bin.ts"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/uno-preset",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sa/utils",
|
||||
"version": "1.3.10",
|
||||
"version": "1.3.11",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
|
||||
@@ -10,22 +10,19 @@ export function setupAppErrorHandle(app: App) {
|
||||
};
|
||||
}
|
||||
|
||||
// Update check interval in milliseconds
|
||||
const UPDATE_CHECK_INTERVAL = 3 * 60 * 1000;
|
||||
|
||||
export function setupAppVersionNotification() {
|
||||
const canAutoUpdateApp = import.meta.env.VITE_AUTOMATICALLY_DETECT_UPDATE === 'Y';
|
||||
// Update check interval in milliseconds
|
||||
const UPDATE_CHECK_INTERVAL = 3 * 60 * 1000;
|
||||
|
||||
const canAutoUpdateApp = import.meta.env.VITE_AUTOMATICALLY_DETECT_UPDATE === 'Y' && import.meta.env.PROD;
|
||||
|
||||
if (!canAutoUpdateApp) return;
|
||||
|
||||
let isShow = false;
|
||||
let updateInterval: ReturnType<typeof setInterval> | undefined;
|
||||
|
||||
// Check if updates should be checked
|
||||
const shouldCheckForUpdates = [!isShow, document.visibilityState === 'visible', !import.meta.env.DEV].every(Boolean);
|
||||
|
||||
const checkForUpdates = async () => {
|
||||
if (!shouldCheckForUpdates) return;
|
||||
if (isShow) return;
|
||||
|
||||
const buildTime = await getHtmlBuildTime();
|
||||
|
||||
@@ -72,7 +69,7 @@ export function setupAppVersionNotification() {
|
||||
updateInterval = setInterval(checkForUpdates, UPDATE_CHECK_INTERVAL);
|
||||
};
|
||||
// If updates should be checked, set up the visibility change listener and start the update interval
|
||||
if (shouldCheckForUpdates) {
|
||||
if (!isShow && document.visibilityState === 'visible') {
|
||||
// Check for updates when the document is visible
|
||||
document.addEventListener('visibilitychange', () => {
|
||||
if (document.visibilityState === 'visible') {
|
||||
|
||||
Reference in New Issue
Block a user