mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-06 09:13:44 -08:00
refactor: move preload/ out of /services
This commit is contained in:
parent
38cac09d33
commit
f7e8d2cc22
9 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ import { remote } from 'electron';
|
|||
|
||||
// on production build, if we try to redirect to http://localhost:3000 , we will reach chrome-error://chromewebdata/ , but we can easily get back
|
||||
// this happens when we are redirected by OAuth login
|
||||
import { CHROME_ERROR_PATH, REACT_PATH } from '../../constants/paths';
|
||||
import { CHROME_ERROR_PATH, REACT_PATH } from '@services/constants/paths';
|
||||
|
||||
const CHECK_LOADED_INTERVAL = 500;
|
||||
function refresh() {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { contextBridge, ipcRenderer } from 'electron';
|
||||
import { preloadBindings } from '../../libs/i18n/i18next-electron-fs-backend';
|
||||
import { preloadBindings } from '@/services/libs/i18n/i18next-electron-fs-backend';
|
||||
|
||||
contextBridge.exposeInMainWorld('i18n', {
|
||||
i18nextElectronBackend: preloadBindings(ipcRenderer),
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { ipcRenderer, remote, webFrame } from 'electron';
|
||||
import { enable as enableDarkMode, disable as disableDarkMode } from 'darkreader';
|
||||
import ContextMenuBuilder from '../libs/context-menu-builder';
|
||||
import i18next from '../libs/i18n';
|
||||
import ContextMenuBuilder from '@services/libs/context-menu-builder';
|
||||
import i18next from '@services/libs/i18n';
|
||||
import './wiki-operation';
|
||||
import './wiki-git-api';
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue