diff --git a/.gitignore b/.gitignore index 410b1a33fa..271c1c0bb7 100644 --- a/.gitignore +++ b/.gitignore @@ -73,4 +73,8 @@ lerna-debug.log #flatpak .flatpak-builder -build-dir \ No newline at end of file +build-dir + +#Travis/IDE stuff +.travis.yml +.vs/ diff --git a/packages/app/app/components/AlbumView/index.tsx b/packages/app/app/components/AlbumView/index.tsx index 3ffbc6ae16..1977828b46 100644 --- a/packages/app/app/components/AlbumView/index.tsx +++ b/packages/app/app/components/AlbumView/index.tsx @@ -36,6 +36,7 @@ export const AlbumView: React.FC = ({ addFavoriteAlbum }) => { const { t } = useTranslation('album'); + const release_date: Date = new Date(album.year); return
@@ -87,7 +88,7 @@ export const AlbumView: React.FC = ({ album.year &&
- {album.year} + {release_date.getFullYear()}
}
diff --git a/packages/app/app/reducers/equalizer.js b/packages/app/app/reducers/equalizer.js index bb9c87471e..1348614baf 100644 --- a/packages/app/app/reducers/equalizer.js +++ b/packages/app/app/reducers/equalizer.js @@ -52,7 +52,7 @@ const getPresets = (custom) => [ preAmp: 0 }, { - label: 'Full trebble', + label: 'Full treble', id: 'full-treble', values: [-6, -6, -6, -6, -2, 2, 6, 8, 8, 9, 9], preAmp: 0 @@ -72,8 +72,8 @@ const normalize = list => list.reduce(({ids, map}, item) => ({ const getSelected = (selected, presets) => { if (selected.toLowerCase() === selected) { return selected; - } - const legacySelected = presets.find(preset => preset.label === selected); + } + const legacySelected = presets.find(preset => preset.label === selected); return legacySelected ? legacySelected.id : presets[0].id; }; @@ -86,7 +86,7 @@ const getLegacyCustom = ({presets}) => { const getSpectrumStatus = (otherConfig) => { return _.get(otherConfig, 'enableSpectrum', false); -}; +}; const getInitialState = () => { const {custom, selected, ...other} = store.get('equalizer'); diff --git a/packages/main/src/services/config/index.ts b/packages/main/src/services/config/index.ts index 1aec0ac62c..0019a75e3f 100644 --- a/packages/main/src/services/config/index.ts +++ b/packages/main/src/services/config/index.ts @@ -39,7 +39,7 @@ class Config { this.youtubeSearch = 'https://www.googleapis.com/youtube/v3/search?part=id,snippet&type=video&maxResults=50&q='; this.supportedFormats = _.uniq(pkg.build.fileAssociations.map(({ ext }) => ext)); - const iconPath = path.resolve(__dirname, this.isProd() ? 'resources' : '../resources/media'); + const iconPath = path.resolve(__dirname, this.isProd() ? '../../../resources/media' : '../resources/media'); this.icon = path.resolve(iconPath, 'icon.png'); this.macIcon = path.resolve(iconPath, 'icon_apple.png');