mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 04:24:12 +00:00
Move CDN url to package.json
This commit is contained in:
parent
bd02f83c12
commit
b65e1a9eaf
8 changed files with 4 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { cdnUrl } from "../package.json";
|
||||
import { parser, creator } from "winamp-eqf";
|
||||
import MyFile from "./myFile";
|
||||
import skinParser from "./skinParser";
|
||||
|
|
@ -156,7 +157,7 @@ export function setSkinFromUrl(url) {
|
|||
}
|
||||
|
||||
export function setSkinFromFilename(filename) {
|
||||
const url = `https://cdn.rawgit.com/captbaritone/winamp-skins/master/v2/${filename}`;
|
||||
const url = `${cdnUrl}/skins/${filename}`;
|
||||
return setSkinFromUrl(url);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import "babel-polyfill";
|
||||
import { cdnUrl } from "../package.json";
|
||||
import React from "react";
|
||||
import { render } from "react-dom";
|
||||
import { Provider } from "react-redux";
|
||||
|
|
@ -42,7 +43,6 @@ if (new Browser(window).isCompatible) {
|
|||
|
||||
winamp.dispatch = store.dispatch;
|
||||
|
||||
const cdnUrl = "https://d38dnrh1liu4f5.cloudfront.net/projects/winamp2-js/";
|
||||
const assetBase = process.env.NODE_ENV === "production" ? cdnUrl : "";
|
||||
winamp.init({
|
||||
volume: 50,
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@
|
|||
"url-loader": "^0.5.7",
|
||||
"webpack-dev-server": "^2.5.0"
|
||||
},
|
||||
"cdnUrl": "https://d38dnrh1liu4f5.cloudfront.net/projects/winamp2-js/",
|
||||
"dependencies": {
|
||||
"babel": "^6.23.0",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.20.2",
|
||||
|
|
|
|||
BIN
skins/MacOSXAqua1-5.wsz
Normal file
BIN
skins/MacOSXAqua1-5.wsz
Normal file
Binary file not shown.
BIN
skins/TopazAmp1-2.wsz
Normal file
BIN
skins/TopazAmp1-2.wsz
Normal file
Binary file not shown.
BIN
skins/Vizor1-01.wsz
Normal file
BIN
skins/Vizor1-01.wsz
Normal file
Binary file not shown.
BIN
skins/XMMS-Turquoise.wsz
Normal file
BIN
skins/XMMS-Turquoise.wsz
Normal file
Binary file not shown.
BIN
skins/ZaxonRemake1-0.wsz
Normal file
BIN
skins/ZaxonRemake1-0.wsz
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue