mirror of
https://github.com/mue/mue.git
synced 2026-06-11 11:08:45 +02:00
fix: vite extension build, add source to photo info
This commit is contained in:
@@ -31,9 +31,10 @@ export default class Radio extends PureComponent {
|
||||
localStorage.getItem('tabName') ===
|
||||
variables.language.getMessage(variables.languagecode, 'tabname')
|
||||
) {
|
||||
// todo: fix this it doesn't work and shows as undefined
|
||||
localStorage.setItem(
|
||||
'tabName',
|
||||
require(`translations/${value.replace('-', '_')}.json`).tabname,
|
||||
import(`../../../../translations/${value.replace('-', '_')}.json`).tabname,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@ import SettingsItem from '../SettingsItem';
|
||||
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
|
||||
import * as searchEngines from 'components/widgets/search/search_engines.json';
|
||||
import * as autocompleteProviders from 'components/widgets/search/autocomplete_providers.json';
|
||||
import searchEngines from 'components/widgets/search/search_engines.json';
|
||||
import autocompleteProviders from 'components/widgets/search/autocomplete_providers.json';
|
||||
|
||||
export default class SearchSettings extends PureComponent {
|
||||
getMessage = (text) => variables.language.getMessage(variables.languagecode, text);
|
||||
|
||||
@@ -9,8 +9,8 @@ import FileUpload from '../main/settings/FileUpload';
|
||||
import { loadSettings } from 'modules/helpers/settings';
|
||||
import { importSettings } from 'modules/helpers/settings/modals';
|
||||
|
||||
import * as default_settings from 'modules/default_settings.json';
|
||||
import * as languages from 'modules/languages.json';
|
||||
import default_settings from 'modules/default_settings.json';
|
||||
import languages from 'modules/languages.json';
|
||||
|
||||
export default class WelcomeSections extends PureComponent {
|
||||
getMessage = (text) => variables.language.getMessage(variables.languagecode, text);
|
||||
|
||||
@@ -6,10 +6,10 @@ import {
|
||||
MdLocationOn,
|
||||
MdPhotoCamera,
|
||||
MdCrop as Resolution,
|
||||
MdPerson as Photographer,
|
||||
MdGetApp as Download,
|
||||
MdVisibility as Views,
|
||||
MdIosShare as Share,
|
||||
MdSource as Source,
|
||||
} from 'react-icons/md';
|
||||
import Tooltip from '../../helpers/tooltip/Tooltip';
|
||||
import ShareModal from '../../helpers/sharemodal/ShareModal';
|
||||
@@ -312,8 +312,8 @@ export default function PhotoInformation({ info, url, api }) {
|
||||
</span>
|
||||
</div>
|
||||
<div className="concept-row">
|
||||
<Photographer />
|
||||
<span>{photographer}</span>
|
||||
<Source/>
|
||||
<span id="infoSource">{api.charAt(0).toUpperCase() + api.slice(1)}</span>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import variables from 'modules/variables';
|
||||
import experimentalInit from '../experimental';
|
||||
|
||||
import * as defaultSettings from 'modules/default_settings.json';
|
||||
import * as languages from 'modules/languages.json';
|
||||
import defaultSettings from 'modules/default_settings.json';
|
||||
import languages from 'modules/languages.json';
|
||||
|
||||
const getMessage = (text) => variables.language.getMessage(variables.languagecode, text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user