mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 02:47:03 -04:00
Path aliases, better lazyWebpack (#268)
This commit is contained in:
parent
7a4402f142
commit
bad96b7887
138 changed files with 572 additions and 547 deletions
|
@ -16,13 +16,12 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import cssText from "~fileContent/spotifyStyles.css";
|
||||
import IpcEvents from "@utils/IpcEvents";
|
||||
import { proxyLazy } from "@utils/proxyLazy";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
import { Flux, FluxDispatcher } from "@webpack/common";
|
||||
|
||||
import IpcEvents from "../../utils/IpcEvents";
|
||||
import { lazyWebpack } from "../../utils/misc";
|
||||
import { proxyLazy } from "../../utils/proxyLazy";
|
||||
import { filters } from "../../webpack";
|
||||
import { Flux, FluxDispatcher } from "../../webpack/common";
|
||||
import cssText from "~fileContent/spotifyStyles.css";
|
||||
|
||||
export interface Track {
|
||||
id: string;
|
||||
|
@ -78,8 +77,8 @@ export const SpotifyStore = proxyLazy(() => {
|
|||
// For some reason ts hates extends Flux.Store
|
||||
const { Store } = Flux;
|
||||
|
||||
const SpotifySocket = lazyWebpack(filters.byProps("getActiveSocketAndDevice"));
|
||||
const SpotifyAPI = lazyWebpack(filters.byProps("SpotifyAPIMarker"));
|
||||
const SpotifySocket = findByPropsLazy("getActiveSocketAndDevice");
|
||||
const SpotifyAPI = findByPropsLazy("SpotifyAPIMarker");
|
||||
|
||||
const API_BASE = "https://api.spotify.com/v1/me/player";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue