maj balise div et vue

This commit is contained in:
Alexandre_BRAVO 2024-11-19 16:17:29 +01:00
parent a591fc839d
commit 5853df5acf
4 changed files with 25 additions and 6 deletions

View File

@ -926,6 +926,13 @@ __webpack_require__.r(__webpack_exports__);
async mounted() { async mounted() {
await this.fetchFiles(); await this.fetchFiles();
this.breadcrumbParts = this.getBreadcrumbParts(); this.breadcrumbParts = this.getBreadcrumbParts();
const webTransferDiv = document.getElementById('archiveInfos');
if (webTransferDiv) {
this.archiveUrl = webTransferDiv.dataset.archiveUrl;
this.token = webTransferDiv.dataset.token;
} else {
console.error('Pas d\'informations pour recuperer l\'archive');
}
}, },
methods: { methods: {
async fetchFiles() { async fetchFiles() {

File diff suppressed because one or more lines are too long

View File

@ -126,12 +126,20 @@ export default {
current_dir: '/', current_dir: '/',
breadcrumbParts: [], breadcrumbParts: [],
isAddFilePopupVisible: false, isAddFilePopupVisible: false,
newFileName: '' newFileName: '',
}; };
}, },
async mounted() { async mounted() {
await this.fetchFiles(); await this.fetchFiles();
this.breadcrumbParts = this.getBreadcrumbParts(); this.breadcrumbParts = this.getBreadcrumbParts();
const webTransferDiv = document.getElementById('archiveInfos');
if (webTransferDiv) {
this.archiveUrl = webTransferDiv.dataset.archiveUrl;
this.token = webTransferDiv.dataset.token;
} else {
console.error('Pas d\'informations pour recuperer l\'archive');
}
}, },
methods: { methods: {
async fetchFiles() { async fetchFiles() {

View File

@ -10,7 +10,11 @@ $archiveUrl = isset($_['archiveUrl']) ? $_['archiveUrl'] : ''; // Valeur par dé
$token = isset($_['token']) ? $_['token'] : ''; // Valeur par défaut vide si non définie $token = isset($_['token']) ? $_['token'] : ''; // Valeur par défaut vide si non définie
?> ?>
<div id="webtransfer" <div id="webtransfer">
</div>
<div id="archiveInfos"
data-archive-url="<?php echo htmlspecialchars($archiveUrl); ?>" data-archive-url="<?php echo htmlspecialchars($archiveUrl); ?>"
data-token="<?php echo htmlspecialchars($token); ?>" data-token="<?php echo htmlspecialchars($token); ?>"
></div> >
</div>