Работа над SettingsPage

This commit is contained in:
Book Pauk
2019-01-28 12:36:50 +07:00
parent c1f7aee77e
commit fbb0fa91b6
3 changed files with 67 additions and 17 deletions

View File

@@ -1,5 +1,13 @@
import Vue from 'vue';
const webFonts = [
{css: 'https://fonts.googleapis.com/css?family=Oswald', name: 'Oswald', fontVertShift: 0},
{css: 'https://fonts.googleapis.com/css?family=Lobster', name: 'Lobster', fontVertShift: 0},
{css: 'https://fonts.googleapis.com/css?family=Pacifico', name: 'Pacifico', fontVertShift: 0},
{css: 'https://fonts.googleapis.com/css?family=Comfortaa', name: 'Comfortaa', fontVertShift: 0},
];
// initial state
const state = {
toolBarActive: true,
@@ -11,8 +19,7 @@ const state = {
fontWeight: '',// 'bold'
fontSize: 20,// px
fontName: 'ReaderDefault',
fontCssUrl: '',
fontVertShift: 0,
webFontName: '',
lineInterval: 3,// px, межстрочный интервал
textAlignJustify: true,// выравнивание по ширине
@@ -93,6 +100,7 @@ const mutations = {
};
export default {
webFonts,
namespaced: true,
state,
getters,