mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-30 09:21:08 -04:00
CustomizationsModal.vue - add a way for users to customize css of their invoices and store it per team,
fix print styles for invoices, add keys to translations with default English values
This commit is contained in:
@ -2,6 +2,18 @@ import { Model } from '@vuex-orm/core';
|
||||
import { uuidv4 } from '@/utils/helpers';
|
||||
import TeamField from '@/store/models/team-field';
|
||||
|
||||
const customCSS = `
|
||||
/* @import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300&display=swap');
|
||||
|
||||
.invoice-box:after {
|
||||
background: linear-gradient(to bottom, #1C7CE0, #150051);
|
||||
}
|
||||
|
||||
.invoice-box {
|
||||
font-family: 'Work Sans', sans-serif;
|
||||
} */
|
||||
`;
|
||||
|
||||
export default class Team extends Model {
|
||||
// This is the name used as module name of the Vuex Store.
|
||||
static entity = 'teams';
|
||||
@ -25,6 +37,7 @@ export default class Team extends Model {
|
||||
updated_at: this.attr(''),
|
||||
created_at: this.attr(''),
|
||||
logo_url: this.attr(''),
|
||||
custom_css: this.attr(customCSS),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user