release v1.3.11 (#54)

* fix(projects): 🐛 fix update notifications

* chore(projects): release v1.3.11
This commit is contained in:
一寸灰
2025-02-10 11:07:22 +08:00
committed by GitHub
parent 313f150e05
commit 6f3855ece6
12 changed files with 51 additions and 19 deletions

View File

@@ -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 &nbsp;-&nbsp; 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)
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes
- **projects**:
- 🐛 fix login success notification. &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; by **skyfeiz** [<samp>(ecbf1)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/ecbf1d1)
### &nbsp;&nbsp;&nbsp;🛠 Optimizations
- **projects**: 🎨 fix warning Component name should always be multi-word &nbsp;-&nbsp; 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)
### &nbsp;&nbsp;&nbsp;🏡 Chore
- **deps**: ⬆️ update sass &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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)
### &nbsp;&nbsp;&nbsp;🎨 Styles
- **projects**: 🎨 fix eslint warning &nbsp;-&nbsp; 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)
### &nbsp;&nbsp;&nbsp;🤖 CI
- **other**: ✨ display the actual request url in terminal &nbsp;-&nbsp; 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)
### &nbsp;&nbsp;&nbsp;❤️ Contributors
[skyfeiz](mailto:webzhangfei@163.com),&nbsp;[一寸灰](mailto:webyicunhui@outlook.com)
## [v1.3.10](https://github.com/skyfeiz/soybean-admin-elp/compare/undefined...v1.3.10) (2024-12-31)
### &nbsp;&nbsp;&nbsp;🚀 Features

View File

@@ -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",

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/alova",
"version": "1.3.10",
"version": "1.3.11",
"exports": {
".": "./src/index.ts",
"./fetch": "./src/fetch.ts",

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/axios",
"version": "1.3.10",
"version": "1.3.11",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/color",
"version": "1.3.10",
"version": "1.3.11",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/hooks",
"version": "1.3.10",
"version": "1.3.11",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/materials",
"version": "1.3.10",
"version": "1.3.11",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/fetch",
"version": "1.3.10",
"version": "1.3.11",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/scripts",
"version": "1.3.10",
"version": "1.3.11",
"bin": {
"sa": "./bin.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/uno-preset",
"version": "1.3.10",
"version": "1.3.11",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/utils",
"version": "1.3.10",
"version": "1.3.11",
"exports": {
".": "./src/index.ts"
},

View File

@@ -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') {