Lint
This commit is contained in:
parent
3182f28359
commit
9a77aae56b
|
@ -90,11 +90,13 @@ export default class BdWebApi {
|
||||||
|
|
||||||
static getThemes(args) {
|
static getThemes(args) {
|
||||||
return dummyThemes();
|
return dummyThemes();
|
||||||
|
/*
|
||||||
if (!args) return request.get(ENDPOINTS.themes);
|
if (!args) return request.get(ENDPOINTS.themes);
|
||||||
const { id } = args;
|
const { id } = args;
|
||||||
if (id) return request.get(ENDPOINTS.theme(id));
|
if (id) return request.get(ENDPOINTS.theme(id));
|
||||||
|
|
||||||
return request.get(ENDPOINTS.themes);
|
return request.get(ENDPOINTS.themes);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static getUsers(args) {
|
static getUsers(args) {
|
||||||
|
|
|
@ -75,7 +75,7 @@ export default class PackageInstaller {
|
||||||
const bytes = typeof bytesOrPath === 'string' ? fs.readFileSync(bytesOrPath) : bytesOrPath;
|
const bytes = typeof bytesOrPath === 'string' ? fs.readFileSync(bytesOrPath) : bytesOrPath;
|
||||||
const outputName = `${nameOrId}.bd`;
|
const outputName = `${nameOrId}.bd`;
|
||||||
|
|
||||||
outputPath = path.join(Globals.getPath(contentType + 's'), outputName);
|
outputPath = path.join(Globals.getPath(`${contentType}s`), outputName);
|
||||||
fs.writeFileSync(outputPath, bytes);
|
fs.writeFileSync(outputPath, bytes);
|
||||||
|
|
||||||
const manager = contentType === 'plugin' ? PluginManager : ThemeManager;
|
const manager = contentType === 'plugin' ? PluginManager : ThemeManager;
|
||||||
|
|
Loading…
Reference in New Issue