mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 03:32:49 +08:00
Remove testing code
This commit is contained in:
parent
38cd56c351
commit
1fcd9b86d7
37
extensions/package-manager/js/dist/admin.js
vendored
37
extensions/package-manager/js/dist/admin.js
vendored
|
@ -643,28 +643,29 @@ var Updater = /*#__PURE__*/function (_Component) {
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.updateCoreMinor = function updateCoreMinor() {
|
_proto.updateCoreMinor = function updateCoreMinor() {
|
||||||
|
var _this5 = this;
|
||||||
|
|
||||||
if (confirm(flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.translator.trans('flarum-package-manager.admin.minor_update_confirmation.content'))) {
|
if (confirm(flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.translator.trans('flarum-package-manager.admin.minor_update_confirmation.content'))) {
|
||||||
flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.modal.show(flarum_admin_components_LoadingModal__WEBPACK_IMPORTED_MODULE_6___default.a);
|
flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.modal.show(flarum_admin_components_LoadingModal__WEBPACK_IMPORTED_MODULE_6___default.a);
|
||||||
this.isLoading = 'minor-update';
|
this.isLoading = 'minor-update';
|
||||||
/*app
|
flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.request({
|
||||||
.request({
|
method: 'POST',
|
||||||
method: 'POST',
|
url: flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.forum.attribute('apiUrl') + "/package-manager/minor-update",
|
||||||
url: `${app.forum.attribute('apiUrl')}/package-manager/minor-update`,
|
errorHandler: _utils_errorHandler__WEBPACK_IMPORTED_MODULE_8__["default"]
|
||||||
errorHandler,
|
}).then(function () {
|
||||||
})
|
flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.alerts.show({
|
||||||
.then(() => {
|
type: 'success'
|
||||||
app.alerts.show({ type: 'success' }, app.translator.trans('flarum-package-manager.admin.update_successful'));
|
}, flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.translator.trans('flarum-package-manager.admin.update_successful'));
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
})
|
})["finally"](function () {
|
||||||
.finally(() => {
|
_this5.isLoading = null;
|
||||||
this.isLoading = null;
|
m.redraw();
|
||||||
m.redraw();
|
});
|
||||||
});*/
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.updateExtension = function updateExtension(extension) {
|
_proto.updateExtension = function updateExtension(extension) {
|
||||||
var _this5 = this;
|
var _this6 = this;
|
||||||
|
|
||||||
flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.modal.show(flarum_admin_components_LoadingModal__WEBPACK_IMPORTED_MODULE_6___default.a);
|
flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.modal.show(flarum_admin_components_LoadingModal__WEBPACK_IMPORTED_MODULE_6___default.a);
|
||||||
this.isLoading = 'extension-update';
|
this.isLoading = 'extension-update';
|
||||||
|
@ -680,13 +681,13 @@ var Updater = /*#__PURE__*/function (_Component) {
|
||||||
}));
|
}));
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
})["finally"](function () {
|
})["finally"](function () {
|
||||||
_this5.isLoading = null;
|
_this6.isLoading = null;
|
||||||
m.redraw();
|
m.redraw();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.updateGlobally = function updateGlobally() {
|
_proto.updateGlobally = function updateGlobally() {
|
||||||
var _this6 = this;
|
var _this7 = this;
|
||||||
|
|
||||||
flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.modal.show(flarum_admin_components_LoadingModal__WEBPACK_IMPORTED_MODULE_6___default.a);
|
flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.modal.show(flarum_admin_components_LoadingModal__WEBPACK_IMPORTED_MODULE_6___default.a);
|
||||||
this.isLoading = 'global-update';
|
this.isLoading = 'global-update';
|
||||||
|
@ -700,7 +701,7 @@ var Updater = /*#__PURE__*/function (_Component) {
|
||||||
}, flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.translator.trans('flarum-package-manager.admin.updater.global_update_successful'));
|
}, flarum_admin_app__WEBPACK_IMPORTED_MODULE_1___default.a.translator.trans('flarum-package-manager.admin.updater.global_update_successful'));
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
})["finally"](function () {
|
})["finally"](function () {
|
||||||
_this6.isLoading = null;
|
_this7.isLoading = null;
|
||||||
m.redraw();
|
m.redraw();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -198,7 +198,7 @@ export default class Updater<Attrs> extends Component<Attrs> {
|
||||||
app.modal.show(LoadingModal);
|
app.modal.show(LoadingModal);
|
||||||
this.isLoading = 'minor-update';
|
this.isLoading = 'minor-update';
|
||||||
|
|
||||||
/*app
|
app
|
||||||
.request({
|
.request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: `${app.forum.attribute('apiUrl')}/package-manager/minor-update`,
|
url: `${app.forum.attribute('apiUrl')}/package-manager/minor-update`,
|
||||||
|
@ -211,7 +211,7 @@ export default class Updater<Attrs> extends Component<Attrs> {
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.isLoading = null;
|
this.isLoading = null;
|
||||||
m.redraw();
|
m.redraw();
|
||||||
});*/
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,12 +119,3 @@
|
||||||
grid-area: helpText;
|
grid-area: helpText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.MinorUpdateWarningModal {
|
|
||||||
.Modal-footer {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user