* Remove build references

* Remove playbooks webapp and server, and add the prepackaged plugin

* Remove translations

* Add ProductSettings to the playwright type

* Restore playbooks as a prepackaged plugin for cypress e2e tests
Этот коммит содержится в:
Miguel de la Cruz
2023-06-14 23:33:26 +02:00
коммит произвёл GitHub
родитель f386ef1ea8
Коммит 44a99d1736
879 изменённых файлов: 66 добавлений и 127144 удалений

Просмотреть файл

@@ -3,7 +3,6 @@
import {Store} from 'redux';
import {getConfig} from 'mattermost-redux/selectors/entities/general';
import {DispatchFunc, GetStateFunc} from 'mattermost-redux/types/actions';
import store from 'stores/redux_store';
@@ -33,8 +32,8 @@ function configureClient() {
function loadRemoteModules() {
/* eslint-disable no-console */
return async (dispatch: DispatchFunc, getState: GetStateFunc) => {
const config = getConfig(getState());
return async (/*dispatch: DispatchFunc, getState: GetStateFunc*/) => {
// const config = getConfig(getState());
/**
* products contains a map of product IDs to a function that will load all of their parts. Calling that
@@ -43,17 +42,7 @@ function loadRemoteModules() {
* Note that these import paths must be statically defined or else they won't be found at runtime. They
* can't be constructed based on the name of a product at runtime.
*/
let products = [
{
id: 'playbooks',
load: () => ({
index: import('playbooks'),
}),
},
];
if (config.EnablePlaybooks !== 'true') {
products = products.filter((p) => p.id !== 'playbooks');
}
const products: any[] = [ ];
await Promise.all(products.map(async (product) => {
if (!REMOTE_CONTAINERS[product.id]) {