forked from projects/fipamo
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,
|
type: DataEvent.PAGES_RENDERED,
|
||||||
message: 'All Pages Rendered. Sweet.'
|
message: 'All Pages Rendered. Sweet.'
|
||||||
};
|
};
|
||||||
//utils.moveAssets();
|
//move theme assets to public when pages are rendered
|
||||||
new Utils().moveAssets();
|
new Utils().moveAssets();
|
||||||
resolve(response);
|
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) {
|
publishTags(pages) {
|
||||||
let self = this;
|
let self = this;
|
||||||
return new Promise((resolve, reject) => {
|
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) {
|
publishArchive(archive) {
|
||||||
settings
|
settings
|
||||||
.load(SETTINGS_FILE)
|
.load(SETTINGS_FILE)
|
||||||
|
|
|
@ -3,7 +3,6 @@ import Render from './Render';
|
||||||
import StringUtils from '../../src/com/utils/StringUtils';
|
import StringUtils from '../../src/com/utils/StringUtils';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import Auth from '../data/Auth';
|
import Auth from '../data/Auth';
|
||||||
import DataEvent from '../../src/com/events/DataEvent';
|
|
||||||
const settings = new Settings();
|
const settings = new Settings();
|
||||||
const render = new Render();
|
const render = new Render();
|
||||||
const stringUtils = new StringUtils();
|
const stringUtils = new StringUtils();
|
||||||
|
@ -213,7 +212,7 @@ export default class Utils {
|
||||||
try {
|
try {
|
||||||
let folks = JSON.parse(zip.readAsText('settings/folks.json'));
|
let folks = JSON.parse(zip.readAsText('settings/folks.json'));
|
||||||
auth.verifyCredentials(folks, credentials)
|
auth.verifyCredentials(folks, credentials)
|
||||||
.then(r => {
|
.then(() => {
|
||||||
//resolve(r);
|
//resolve(r);
|
||||||
self.restoreBackup(file)
|
self.restoreBackup(file)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
@ -225,7 +224,7 @@ export default class Utils {
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
response = {
|
response = {
|
||||||
type: 'error',
|
type: err,
|
||||||
message: 'ERROR RESTORING BACKUP'
|
message: 'ERROR RESTORING BACKUP'
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue