tenthe commented on code in PR #3142: URL: https://github.com/apache/streampipes/pull/3142#discussion_r1718086045
########## ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-basics/asset-details-site/asset-location/asset-location.component.scss: ########## @@ -0,0 +1,17 @@ +/*! + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ Review Comment: Can be deleted if empty ########## ui/src/app/configuration/sites-configuration/location-features-configuration/location-features-configuration.component.html: ########## @@ -0,0 +1,67 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one or more + ~ contributor license agreements. See the NOTICE file distributed with + ~ this work for additional information regarding copyright ownership. + ~ The ASF licenses this file to You under the Apache License, Version 2.0 + ~ (the "License"); you may not use this file except in compliance with + ~ the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + ~ + --> + +<div fxLayout="column"> + <form + [formGroup]="parentForm" + fxFlex="100" + fxLayout="column" + *ngIf="locationConfig" + > + <sp-split-section + title="Geo features" + subtitle="Geo features are used to better organize assets." + > + <mat-checkbox + formControlName="locationFeaturesEnabled" + data-cy="sites-enable-location-features-checkbox" + >Enable geo features + </mat-checkbox> + <div *ngIf="showTileUrlInput" class="mt-10"> + <div class="subsection-title"> + Tile server URL (use placeholders for x, y Review Comment: Missing ")"? ########## ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-basics/asset-details-site/asset-details-site.component.scss: ########## @@ -1,4 +1,4 @@ -/* +/*! Review Comment: Can be deleted if emtpy ########## ui/src/app/assets/components/asset-details/asset-details-panel/asset-details-basics/asset-details-site/asset-location/asset-location.component.ts: ########## @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import { Component } from '@angular/core'; + +@Component({ + selector: 'sp-asset-location-component', + templateUrl: './asset-location.component.html', +}) +export class AssetLocationComponent {} Review Comment: Is this component empty? ########## ui/src/app/configuration/sites-configuration/location-features-configuration/location-features-configuration.component.ts: ########## @@ -0,0 +1,105 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import { Component, OnDestroy, OnInit } from '@angular/core'; +import { + UntypedFormBuilder, + UntypedFormControl, + UntypedFormGroup, + Validators, +} from '@angular/forms'; +import { + LocationConfig, + LocationConfigService, +} from '@streampipes/platform-services'; +import { Subscription } from 'rxjs'; +import { MatSnackBar } from '@angular/material/snack-bar'; + +@Component({ + selector: 'sp-location-features-configuration', + templateUrl: './location-features-configuration.component.html', +}) +export class LocationFeaturesConfigurationComponent + implements OnInit, OnDestroy +{ + locationConfig: LocationConfig; + + parentForm: UntypedFormGroup; Review Comment: Can this be renamed ot locationForm? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
