Skip to content

Commit

Permalink
Small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kazlauskis committed Nov 19, 2024
1 parent 7dcd393 commit 942f5ae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/common/flumens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ export { useToast, useAlert, useLoader } from '@flumens/ionic/dist/hooks';
export * from '@flumens/ionic/dist/utils/image';
export * from '@flumens/ionic/dist/utils/errors';
export { default as UUID, hashCode } from '@flumens/ionic/dist/utils/uuid';

export * from '@flumens/ionic/dist/utils/date';
// TODO: temp fix
export const isValidDate = (date: string | number | Date) => {
const d = new Date(date);
return d instanceof Date && !isNaN(d as any); // eslint-disable-line no-restricted-globals
};

export { options as sentryOptions } from '@flumens/ionic/dist/utils/sentry';
export { default as device } from '@flumens/ionic/dist/utils/device';
export { default as string } from '@flumens/ionic/dist/utils/string';
Expand Down
2 changes: 1 addition & 1 deletion src/common/services/openWeather.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const fetchHistoricalWeather = async (

try {
const res = await axios(
`${url}/data/2.5/onecall/timemachine?lat=${latitude}&lon=${longitude}&dt=${unixTimestamp}&appid=${config.weatherSiteApiKey}&only_current=true&units=metric`
`${url}/data/3.0/onecall/timemachine?lat=${latitude}&lon=${longitude}&dt=${unixTimestamp}&appid=${config.weatherSiteApiKey}&only_current=true&units=metric`
);

const normaliseResponseValues = ({
Expand Down
5 changes: 5 additions & 0 deletions src/common/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,8 @@ ion-item .sc-ion-label-md-h.sc-ion-label-md-s.md[slot='end'],
ion-item .sc-ion-label-ios-h.sc-ion-label-ios-s.ios[slot='end'] {
color: var(--form-value-color);
}

// menu date picker opacity match other input value colors
.date-input-attr ion-accordion:last-of-type ion-item[slot='header'] ion-label[slot='end']{
opacity: 1 !important;
}

0 comments on commit 942f5ae

Please sign in to comment.