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() {
await this.fetchFiles();
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: {
async fetchFiles() {
@ -2532,8 +2539,8 @@ __webpack_require__.r(__webpack_exports__);
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
// Module
___CSS_LOADER_EXPORT___.push([module.id, `
/* Vous pouvez ajouter des styles personnalisés ici si nécessaire */
___CSS_LOADER_EXPORT___.push([module.id, `
/* Vous pouvez ajouter des styles personnalisés ici si nécessaire */
`, ""]);
// Exports
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);

File diff suppressed because one or more lines are too long

View File

@ -126,12 +126,20 @@ export default {
current_dir: '/',
breadcrumbParts: [],
isAddFilePopupVisible: false,
newFileName: ''
newFileName: '',
};
},
async mounted() {
await this.fetchFiles();
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: {
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
?>
<div id="webtransfer"
<div id="webtransfer">
</div>
<div id="archiveInfos"
data-archive-url="<?php echo htmlspecialchars($archiveUrl); ?>"
data-token="<?php echo htmlspecialchars($token); ?>"
></div>
>
</div>