minor touchups
This commit is contained in:
parent
126361fca8
commit
c91166a1aa
2 changed files with 11 additions and 4 deletions
|
@ -139,7 +139,7 @@ export default class Render {
|
|||
type: DataEvent.PAGES_RENDERED,
|
||||
message: 'All Pages Rendered. Sweet.'
|
||||
};
|
||||
//utils.moveAssets();
|
||||
//move theme assets to public when pages are rendered
|
||||
new Utils().moveAssets();
|
||||
resolve(response);
|
||||
}
|
||||
|
@ -174,6 +174,10 @@ export default class Render {
|
|||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Method to extract, group and render tags in page
|
||||
* @parameter pages: payload for site pages
|
||||
*/
|
||||
publishTags(pages) {
|
||||
let self = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
|
@ -241,6 +245,10 @@ export default class Render {
|
|||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Method to build page that lists all active pages, organized by year and month
|
||||
* @parameter pages: payload for site pages
|
||||
*/
|
||||
publishArchive(archive) {
|
||||
settings
|
||||
.load(SETTINGS_FILE)
|
||||
|
|
|
@ -3,7 +3,6 @@ import Render from './Render';
|
|||
import StringUtils from '../../src/com/utils/StringUtils';
|
||||
import _ from 'lodash';
|
||||
import Auth from '../data/Auth';
|
||||
import DataEvent from '../../src/com/events/DataEvent';
|
||||
const settings = new Settings();
|
||||
const render = new Render();
|
||||
const stringUtils = new StringUtils();
|
||||
|
@ -213,7 +212,7 @@ export default class Utils {
|
|||
try {
|
||||
let folks = JSON.parse(zip.readAsText('settings/folks.json'));
|
||||
auth.verifyCredentials(folks, credentials)
|
||||
.then(r => {
|
||||
.then(() => {
|
||||
//resolve(r);
|
||||
self.restoreBackup(file)
|
||||
.then(() => {
|
||||
|
@ -225,7 +224,7 @@ export default class Utils {
|
|||
})
|
||||
.catch(err => {
|
||||
response = {
|
||||
type: 'error',
|
||||
type: err,
|
||||
message: 'ERROR RESTORING BACKUP'
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue