minor touchups

This commit is contained in:
Ro 2020-08-24 12:39:22 -07:00
parent 126361fca8
commit c91166a1aa
2 changed files with 11 additions and 4 deletions

View file

@ -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)

View 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'
};
});