maj balise div et vue
This commit is contained in:
parent
a591fc839d
commit
5853df5acf
11
js/main.js
11
js/main.js
@ -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() {
|
||||||
@ -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()));
|
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
|
// Module
|
||||||
___CSS_LOADER_EXPORT___.push([module.id, `
|
___CSS_LOADER_EXPORT___.push([module.id, `
|
||||||
/* Vous pouvez ajouter des styles personnalisés ici si nécessaire */
|
/* Vous pouvez ajouter des styles personnalisés ici si nécessaire */
|
||||||
`, ""]);
|
`, ""]);
|
||||||
// Exports
|
// Exports
|
||||||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
||||||
|
File diff suppressed because one or more lines are too long
@ -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() {
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user