feat(admin): add footerExtra field to admin general

parent 4675348c
...@@ -452,6 +452,7 @@ exports.up = async knex => { ...@@ -452,6 +452,7 @@ exports.up = async knex => {
description: '', description: '',
company: '', company: '',
contentLicense: '', contentLicense: '',
footerExtra: '',
defaults: { defaults: {
timezone: 'America/New_York', timezone: 'America/New_York',
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
......
...@@ -53,6 +53,7 @@ type Site { ...@@ -53,6 +53,7 @@ type Site {
description: String description: String
company: String company: String
contentLicense: String contentLicense: String
footerExtra: String
logoText: Boolean logoText: Boolean
sitemap: Boolean sitemap: Boolean
robots: SiteRobots robots: SiteRobots
...@@ -130,6 +131,7 @@ input SiteUpdateInput { ...@@ -130,6 +131,7 @@ input SiteUpdateInput {
description: String description: String
company: String company: String
contentLicense: String contentLicense: String
footerExtra: String
logoText: Boolean logoText: Boolean
sitemap: Boolean sitemap: Boolean
robots: SiteRobotsInput robots: SiteRobotsInput
......
...@@ -37,6 +37,7 @@ module.exports = class Site extends Model { ...@@ -37,6 +37,7 @@ module.exports = class Site extends Model {
description: '', description: '',
company: '', company: '',
contentLicense: '', contentLicense: '',
footerExtra: '',
defaults: { defaults: {
timezone: 'America/New_York', timezone: 'America/New_York',
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
......
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="80px" height="80px"><path fill="#98ccfd" d="M1.5 5.5H38.5V34.5H1.5z"/><path fill="#4788c7" d="M38,6v28H2V6H38 M39,5H1v30h38V5L39,5z"/><path fill="#fff" d="M9,20v8h15l4,4v-4h3v-8H9z M27,25h-2v-2h2V25z M23,25h-2v-2h2V25z M19,25h-2v-2h2V25z M15,25h-2v-2h2 V25z"/></svg>
\ No newline at end of file
...@@ -1424,5 +1424,7 @@ ...@@ -1424,5 +1424,7 @@
"admin.general.sitemapHint": "Make a sitemap.xml available to search engines with all pages accessible to guests.", "admin.general.sitemapHint": "Make a sitemap.xml available to search engines with all pages accessible to guests.",
"admin.groups.usersNone": "This group doesn't have any user yet.", "admin.groups.usersNone": "This group doesn't have any user yet.",
"admin.mail.smtpName": "Client Identifying Name", "admin.mail.smtpName": "Client Identifying Name",
"admin.mail.smtpNameHint": "An optional name to send to the SMTP server to identify your mailer. Leave empty to use server hostname. For Google Workspace customers, this should be your main domain name." "admin.mail.smtpNameHint": "An optional name to send to the SMTP server to identify your mailer. Leave empty to use server hostname. For Google Workspace customers, this should be your main domain name.",
"admin.general.footerExtra": "Additional Footer Text",
"admin.general.footerExtraHint": "Optionally add more content to the footer, such as additional copyright terms or mandatory regulatory info."
} }
...@@ -118,6 +118,19 @@ q-page.admin-general ...@@ -118,6 +118,19 @@ q-page.admin-general
dense dense
:aria-label='t(`admin.general.contentLicense`)' :aria-label='t(`admin.general.contentLicense`)'
) )
q-separator.q-my-sm(inset)
q-item
blueprint-icon(icon='subtitles')
q-item-section
q-item-label {{t(`admin.general.footerExtra`)}}
q-item-label(caption) {{t(`admin.general.footerExtraHint`)}}
q-item-section
q-input(
outlined
v-model='state.config.footerExtra'
dense
:aria-label='t(`admin.general.footerExtra`)'
)
//- ----------------------- //- -----------------------
//- FEATURES //- FEATURES
...@@ -430,6 +443,7 @@ const state = reactive({ ...@@ -430,6 +443,7 @@ const state = reactive({
description: '', description: '',
company: '', company: '',
contentLicense: '', contentLicense: '',
footerExtra: '',
logoText: false, logoText: false,
ratings: { ratings: {
index: false, index: false,
...@@ -517,6 +531,7 @@ async function load () { ...@@ -517,6 +531,7 @@ async function load () {
description description
company company
contentLicense contentLicense
footerExtra
logoText logoText
sitemap sitemap
robots { robots {
...@@ -578,6 +593,7 @@ async function save () { ...@@ -578,6 +593,7 @@ async function save () {
description: state.config.description ?? '', description: state.config.description ?? '',
company: state.config.company ?? '', company: state.config.company ?? '',
contentLicense: state.config.contentLicense ?? '', contentLicense: state.config.contentLicense ?? '',
footerExtra: state.config.footerExtra ?? '',
logoText: state.config.logoText ?? false, logoText: state.config.logoText ?? false,
sitemap: state.config.sitemap ?? false, sitemap: state.config.sitemap ?? false,
robots: { robots: {
......
...@@ -39,7 +39,7 @@ q-page.admin-login ...@@ -39,7 +39,7 @@ q-page.admin-login
q-card.shadow-1.q-pb-sm q-card.shadow-1.q-pb-sm
q-card-section q-card-section
.text-subtitle1 {{t('admin.login.experience')}} .text-subtitle1 {{t('admin.login.experience')}}
q-item(tag='label') q-item
blueprint-icon(icon='full-image', indicator, :indicator-text='t(`admin.extensions.requiresSharp`)') blueprint-icon(icon='full-image', indicator, :indicator-text='t(`admin.extensions.requiresSharp`)')
q-item-section q-item-section
q-item-label {{t(`admin.login.background`)}} q-item-label {{t(`admin.login.background`)}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment