Skip to content

Commit

Permalink
SOLR-12276: Provide small bugfix and environments depending on the pr…
Browse files Browse the repository at this point in the history
…ofile.
  • Loading branch information
NikolaiJDev committed Nov 9, 2024
1 parent b10573a commit a64d59a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class SizeUnitConverterPipe implements PipeTransform {

;
let power = Math.round(Math.log(sizeValue) / Math.log(this.base));
let unit = isLong ? this.unitNames[power].short : this.unitNames[power].long;
let unit = isLong ? this.unitNames[power].long : this.unitNames[power].short;
let size = Math.round((sizeValue / Math.pow(this.base, power) ) * this.decimalBase) / this.decimalBase;

return `${size} ${unit}`;
Expand Down
22 changes: 22 additions & 0 deletions solr/webapp/web/solrUi/src/environments/environment.development.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* 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.
*
*/

export const environment = {
production: false,
apiUrl: 'http://localhost:8080/',
};
22 changes: 22 additions & 0 deletions solr/webapp/web/solrUi/src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* 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.
*
*/

export const environment = {
production: true,
apiUrl: location.origin,
};

0 comments on commit a64d59a

Please sign in to comment.