mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* improves path handling in capabilities service * converts has-capability to class helper and adds pathKey and params args * adds api service to sync engine * updates sync types * improves typings in paginate-list util * adds api client error handling to error page component * adds api utils for sync * updates sync overview route and page component to use api service * updates sync destinations route and page component to use api service * adds missing copyright header * fixes paginate-list regression * fixes return type for has-capability helper * Apply suggestions from code review Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com> * fixes page error tests * resolves suggestions from review * fixes has-capability usage errors * fixes comment in capabilities service * more test fixes --------- Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
32 lines
703 B
JavaScript
32 lines
703 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Engine from 'ember-engines/engine';
|
|
import loadInitializers from 'ember-load-initializers';
|
|
import Resolver from 'ember-resolver';
|
|
import config from './config/environment';
|
|
|
|
const { modulePrefix } = config;
|
|
|
|
export default class SyncEngine extends Engine {
|
|
modulePrefix = modulePrefix;
|
|
Resolver = Resolver;
|
|
dependencies = {
|
|
services: [
|
|
'flash-messages',
|
|
'flags',
|
|
'app-router',
|
|
'store',
|
|
'api',
|
|
'capabilities',
|
|
'pagination',
|
|
'version',
|
|
],
|
|
externalRoutes: ['kvSecretOverview', 'clientCountOverview'],
|
|
};
|
|
}
|
|
|
|
loadInitializers(SyncEngine, modulePrefix);
|