Manage image cache
All checks were successful
Deploy Spot / deploy (push) Successful in 34s

This commit is contained in:
2026-05-28 19:37:44 +02:00
parent 77a1c51692
commit 28c6f79fdb
2 changed files with 10 additions and 6 deletions

View File

@@ -94,15 +94,14 @@ module.exports = (env, argv) => {
} }
}, },
generator: { generator: {
filename: 'images/[name][ext]' filename: 'images/[name].[contenthash:8][ext]'
} }
}] }]
}, },
plugins: [ plugins: [
new CopyWebpackPlugin({ new CopyWebpackPlugin({
patterns: [ patterns: [
{ from: path.resolve(LIB, 'index.php'), to: 'index.php' }, { from: path.resolve(LIB, 'index.php'), to: 'index.php' }
{ from: path.resolve(SRC, 'images', 'logo_title.svg'), to: 'images' }
] ]
}), }),
new SymlinkWebpackPlugin([ new SymlinkWebpackPlugin([
@@ -133,6 +132,7 @@ module.exports = (env, argv) => {
extensions: ['.vue', '.scss', '...'], extensions: ['.vue', '.scss', '...'],
alias: { alias: {
'@components': path.resolve(SRC, 'components'), '@components': path.resolve(SRC, 'components'),
'@images': path.resolve(SRC, 'images'),
'@scripts': path.resolve(SRC, 'scripts'), '@scripts': path.resolve(SRC, 'scripts'),
'@styles': path.resolve(SRC, 'styles') '@styles': path.resolve(SRC, 'styles')
} }

View File

@@ -3,6 +3,8 @@ import Simplebar from 'simplebar-vue';
import SpotIcon from '@components/spotIcon'; import SpotIcon from '@components/spotIcon';
import ProjectNewsletter from '@components/projectNewsletter'; import ProjectNewsletter from '@components/projectNewsletter';
import logoIconUrl from '@images/icons/favicon.svg';
import logoTitleUrl from '@images/logo_title.svg';
export default { export default {
components: { components: {
@@ -21,7 +23,9 @@ export default {
data() { data() {
return { return {
isOpen: false, isOpen: false,
lastUpdate: {unix_time: 0, relative_time: '', formatted_time: ''} lastUpdate: {unix_time: 0, relative_time: '', formatted_time: ''},
logoIconUrl,
logoTitleUrl
}; };
}, },
emits: ['update:baseMap', 'update:projectCodeName', 'toggle'], emits: ['update:baseMap', 'update:projectCodeName', 'toggle'],
@@ -77,8 +81,8 @@ export default {
<div id="settings" class="panel panel-left"> <div id="settings" class="panel panel-left">
<div id="settings-panel" class="panel-content"> <div id="settings-panel" class="panel-content">
<div class="settings-header settings-box"> <div class="settings-header settings-box">
<img src="images/icons/favicon.svg" class="logo-icon clickable" :title="lang.get('project.overview')" @click="hash.items = []" /> <img :src="logoIconUrl" class="logo-icon clickable" :title="lang.get('project.overview')" @click="hash.items = []" />
<img src="images/logo_title.svg" class="logo-title" :alt="consts.title" /> <img :src="logoTitleUrl" class="logo-title" :alt="consts.title" />
<div class="last_update" v-if="project?.mode == consts.modes.blog && lastUpdate.unix_time > 0" :title="lastUpdate.formatted_time"> <div class="last_update" v-if="project?.mode == consts.modes.blog && lastUpdate.unix_time > 0" :title="lastUpdate.formatted_time">
<SpotIcon icon="find-me-spot" :text="lang.get('feed.last_update')+' '+lastUpdate.relative_time" /> <SpotIcon icon="find-me-spot" :text="lang.get('feed.last_update')+' '+lastUpdate.relative_time" />
</div> </div>