diff --git a/config_app/js/components/config-setup-app/config-setup-app.component.html b/config_app/js/components/config-setup-app/config-setup-app.component.html new file mode 100644 index 000000000..52430bc35 --- /dev/null +++ b/config_app/js/components/config-setup-app/config-setup-app.component.html @@ -0,0 +1,26 @@ +
+ +
+
+ diff --git a/config_app/js/components/config-setup-app/config-setup-app.component.ts b/config_app/js/components/config-setup-app/config-setup-app.component.ts new file mode 100644 index 000000000..6b002e1db --- /dev/null +++ b/config_app/js/components/config-setup-app/config-setup-app.component.ts @@ -0,0 +1,25 @@ +import { Input, Component, Inject } from 'ng-metadata/core'; +const templateUrl = require('./config-setup-app.component.html'); + +/** + * Initial Screen and Choice in the Config App + */ +@Component({ + selector: 'config-setup-app', + templateUrl: templateUrl, +}) +export class ConfigSetupAppComponent { + private state: 'choice' | 'setup' | 'load'; + + constructor() { + this.state = 'choice'; + } + + private chooseSetup(): void { + this.state = 'setup'; + } + + private chooseLoad(): void { + this.state = 'load'; + } +} diff --git a/config_app/js/components/load-config/load-config.component.ts b/config_app/js/components/load-config/load-config.component.ts new file mode 100644 index 000000000..f8a3ba47a --- /dev/null +++ b/config_app/js/components/load-config/load-config.component.ts @@ -0,0 +1,11 @@ +import { Input, Component, Inject } from 'ng-metadata/core'; +const templateUrl = require('./load-config.html'); + +@Component({ + selector: 'load-config', + templateUrl, +}) +export class LoadConfigComponent { + constructor() { + } +} \ No newline at end of file diff --git a/config_app/js/components/load-config/load-config.html b/config_app/js/components/load-config/load-config.html new file mode 100644 index 000000000..60f78ff2b --- /dev/null +++ b/config_app/js/components/load-config/load-config.html @@ -0,0 +1,18 @@ +
+ +
+ diff --git a/config_app/js/config-app.module.ts b/config_app/js/config-app.module.ts index 3f9439c42..ca90cd045 100644 --- a/config_app/js/config-app.module.ts +++ b/config_app/js/config-app.module.ts @@ -1,6 +1,9 @@ import { NgModule } from 'ng-metadata/core'; import * as restangular from 'restangular'; +import { ConfigSetupAppComponent } from './components/config-setup-app/config-setup-app.component'; +import { LoadConfigComponent } from './components/load-config/load-config.component'; + const quayDependencies: string[] = [ 'restangular', 'ngCookies', @@ -37,7 +40,10 @@ function provideConfig($provide: ng.auto.IProvideService, @NgModule({ imports: [ DependencyConfig ], - declarations: [], + declarations: [ + ConfigSetupAppComponent, + LoadConfigComponent, + ], providers: [] }) export class ConfigAppModule {} diff --git a/config_app/js/main.ts b/config_app/js/main.ts index 7be3b1163..cdd326001 100644 --- a/config_app/js/main.ts +++ b/config_app/js/main.ts @@ -20,7 +20,6 @@ function requireAll(r) { } // load all services -// require('./services/api-service'); requireAll(require.context('./services', true, /\.js$/)); @@ -29,6 +28,9 @@ requireAll(require.context('./setup', true, /\.js$/)); requireAll(require.context('./core-config-setup', true, /\.js$/)); requireAll(require.context('./components', true, /\.js$/)); +// load config-app specific css +requireAll(require.context('../static/css', true, /\.css$/)); + // Load all the main quay css requireAll(require.context('../../static/css', true, /\.css$/)); diff --git a/config_app/js/setup/setup.html b/config_app/js/setup/setup.html index b40e1d78d..bfbc194dc 100644 --- a/config_app/js/setup/setup.html +++ b/config_app/js/setup/setup.html @@ -1,7 +1,7 @@
-
+
Quay Enterprise Setup @@ -24,10 +24,8 @@
Configure your Redis database and other settings below
- - -
+
@@ -48,7 +46,7 @@ - +
diff --git a/config_app/static/css/config-setup-app-component.css b/config_app/static/css/config-setup-app-component.css new file mode 100644 index 000000000..2b3ea6230 --- /dev/null +++ b/config_app/static/css/config-setup-app-component.css @@ -0,0 +1,24 @@ +.config-setup-wrapper { + display: flex; +} + +.config-setup_option { + font-size: x-large; + height: 250px; + display: flex; + flex: 1; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 15px; + margin: 15px; +} + +.config-setup_option i { + padding-bottom: 10px; +} + +.config-setup_option:hover { + background-color: #dddddd; + text-decoration: none; +} diff --git a/config_app/templates/index.html b/config_app/templates/index.html index 2ec95f8b8..269ac81a1 100644 --- a/config_app/templates/index.html +++ b/config_app/templates/index.html @@ -7,7 +7,7 @@ - + @@ -28,14 +28,7 @@ {% endfor %} Config app - -
-

What is my purpose

-

You make tarballs

-
- -
-
- + +