Export array from domain sections
This commit is contained in:
parent
e49ec084ac
commit
f2e432cadd
|
@ -63,13 +63,12 @@ THE SOFTWARE.
|
||||||
import analytics from '../util/analytics';
|
import analytics from '../util/analytics';
|
||||||
import isChanged from '../util/is_changed';
|
import isChanged from '../util/is_changed';
|
||||||
import Presets from './domain_sections/presets';
|
import Presets from './domain_sections/presets';
|
||||||
import * as Sections from './domain_sections';
|
import Sections from './domain_sections';
|
||||||
|
|
||||||
const tabs = Object.values(Sections);
|
|
||||||
const delegated = {
|
const delegated = {
|
||||||
hasUserInteraction: false,
|
hasUserInteraction: false,
|
||||||
presets: Presets.delegated,
|
presets: Presets.delegated,
|
||||||
...tabs.reduce((prev, tab) => {
|
...Sections.reduce((prev, tab) => {
|
||||||
prev[tab.key] = tab.delegated;
|
prev[tab.key] = tab.delegated;
|
||||||
return prev;
|
return prev;
|
||||||
}, {}),
|
}, {}),
|
||||||
|
@ -86,8 +85,8 @@ THE SOFTWARE.
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
active: tabs[0].key,
|
active: Sections[0].key,
|
||||||
tabs,
|
tabs: Sections,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2020 DigitalOcean
|
Copyright 2021 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -24,12 +24,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export { default as Server } from './server';
|
import Server from './server';
|
||||||
export { default as HTTPS } from './https';
|
import HTTPS from './https';
|
||||||
export { default as PHP } from './php';
|
import PHP from './php';
|
||||||
export { default as Python } from './python';
|
import Python from './python';
|
||||||
export { default as ReverseProxy } from './reverse_proxy';
|
import ReverseProxy from './reverse_proxy';
|
||||||
export { default as Routing } from './routing';
|
import Routing from './routing';
|
||||||
export { default as Logging } from './logging';
|
import Logging from './logging';
|
||||||
export { default as Restrict } from './restrict';
|
import Restrict from './restrict';
|
||||||
export { default as Onion } from './onion';
|
import Onion from './onion';
|
||||||
|
|
||||||
|
export default [ Server, HTTPS, PHP, Python, ReverseProxy, Routing, Logging, Restrict, Onion ];
|
||||||
|
|
Loading…
Reference in New Issue