remove font-medium from data table columns in all data tables

- Remove permissions requirement for GET on roles
This commit is contained in:
Abhinav Raut
2025-09-09 23:22:08 +05:30
parent 4fcad4fd81
commit 007c332a7d
15 changed files with 35 additions and 35 deletions

View File

@@ -155,7 +155,7 @@ func initHandlers(g *fastglue.Fastglue, hub *ws.Hub) {
g.DELETE("/api/v1/inboxes/{id}", perm(handleDeleteInbox, "inboxes:manage")) g.DELETE("/api/v1/inboxes/{id}", perm(handleDeleteInbox, "inboxes:manage"))
// Roles. // Roles.
g.GET("/api/v1/roles", perm(handleGetRoles, "roles:manage")) g.GET("/api/v1/roles", auth(handleGetRoles))
g.GET("/api/v1/roles/{id}", perm(handleGetRole, "roles:manage")) g.GET("/api/v1/roles/{id}", perm(handleGetRole, "roles:manage"))
g.POST("/api/v1/roles", perm(handleCreateRole, "roles:manage")) g.POST("/api/v1/roles", perm(handleCreateRole, "roles:manage"))
g.PUT("/api/v1/roles/{id}", perm(handleUpdateRole, "roles:manage")) g.PUT("/api/v1/roles/{id}", perm(handleUpdateRole, "roles:manage"))

View File

@@ -9,7 +9,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.firstName')) return h('div', { class: 'text-center' }, t('globals.terms.firstName'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('first_name')) return h('div', { class: 'text-center' }, row.getValue('first_name'))
} }
}, },
{ {
@@ -18,7 +18,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.lastName')) return h('div', { class: 'text-center' }, t('globals.terms.lastName'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('last_name')) return h('div', { class: 'text-center' }, row.getValue('last_name'))
} }
}, },
{ {
@@ -27,7 +27,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.enabled')) return h('div', { class: 'text-center' }, t('globals.terms.enabled'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('enabled') ? t('globals.messages.yes') : t('globals.messages.no')) return h('div', { class: 'text-center' }, row.getValue('enabled') ? t('globals.messages.yes') : t('globals.messages.no'))
} }
}, },
{ {
@@ -36,7 +36,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.email')) return h('div', { class: 'text-center' }, t('globals.terms.email'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('email')) return h('div', { class: 'text-center' }, row.getValue('email'))
} }
}, },
{ {
@@ -47,7 +47,7 @@ export const createColumns = (t) => [
cell: function ({ row }) { cell: function ({ row }) {
return h( return h(
'div', 'div',
{ class: 'text-center font-medium' }, { class: 'text-center' },
format(row.getValue('created_at'), 'PPpp') format(row.getValue('created_at'), 'PPpp')
) )
} }
@@ -60,7 +60,7 @@ export const createColumns = (t) => [
cell: function ({ row }) { cell: function ({ row }) {
return h( return h(
'div', 'div',
{ class: 'text-center font-medium' }, { class: 'text-center' },
format(row.getValue('updated_at'), 'PPpp') format(row.getValue('updated_at'), 'PPpp')
) )
} }

View File

@@ -9,7 +9,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {
@@ -18,7 +18,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.createdAt')) return h('div', { class: 'text-center' }, t('globals.terms.createdAt'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, format(row.getValue('created_at'), 'PPpp')) return h('div', { class: 'text-center' }, format(row.getValue('created_at'), 'PPpp'))
} }
}, },
{ {
@@ -27,7 +27,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.updatedAt')) return h('div', { class: 'text-center' }, t('globals.terms.updatedAt'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, format(row.getValue('updated_at'), 'PPpp')) return h('div', { class: 'text-center' }, format(row.getValue('updated_at'), 'PPpp'))
} }
}, },
{ {

View File

@@ -9,7 +9,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {
@@ -18,7 +18,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.key')) return h('div', { class: 'text-center' }, t('globals.terms.key'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('key')) return h('div', { class: 'text-center' }, row.getValue('key'))
} }
}, },
{ {
@@ -27,7 +27,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.type')) return h('div', { class: 'text-center' }, t('globals.terms.type'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('data_type')) return h('div', { class: 'text-center' }, row.getValue('data_type'))
} }
}, },
{ {
@@ -36,7 +36,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.appliesTo')) return h('div', { class: 'text-center' }, t('globals.terms.appliesTo'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('applies_to')) return h('div', { class: 'text-center' }, row.getValue('applies_to'))
} }
}, },
{ {
@@ -47,7 +47,7 @@ export const createColumns = (t) => [
cell: function ({ row }) { cell: function ({ row }) {
return h( return h(
'div', 'div',
{ class: 'text-center font-medium' }, { class: 'text-center' },
format(row.getValue('created_at'), 'PPpp') format(row.getValue('created_at'), 'PPpp')
) )
} }
@@ -60,7 +60,7 @@ export const createColumns = (t) => [
cell: function ({ row }) { cell: function ({ row }) {
return h( return h(
'div', 'div',
{ class: 'text-center font-medium' }, { class: 'text-center' },
format(row.getValue('updated_at'), 'PPpp') format(row.getValue('updated_at'), 'PPpp')
) )
} }

View File

@@ -9,7 +9,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {

View File

@@ -9,7 +9,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {
@@ -18,7 +18,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.provider')) return h('div', { class: 'text-center' }, t('globals.terms.provider'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('provider')) return h('div', { class: 'text-center' }, row.getValue('provider'))
} }
}, },
{ {

View File

@@ -8,7 +8,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {
@@ -17,7 +17,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.description')) return h('div', { class: 'text-center' }, t('globals.terms.description'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('description')) return h('div', { class: 'text-center' }, row.getValue('description'))
} }
}, },
{ {

View File

@@ -9,7 +9,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {
@@ -18,7 +18,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.createdAt')) return h('div', { class: 'text-center' }, t('globals.terms.createdAt'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, format(row.getValue('created_at'), 'PPpp')) return h('div', { class: 'text-center' }, format(row.getValue('created_at'), 'PPpp'))
} }
}, },
{ {
@@ -27,7 +27,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.updatedAt')) return h('div', { class: 'text-center' }, t('globals.terms.updatedAt'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, format(row.getValue('updated_at'), 'PPpp')) return h('div', { class: 'text-center' }, format(row.getValue('updated_at'), 'PPpp'))
} }
}, },
{ {

View File

@@ -9,7 +9,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {

View File

@@ -9,7 +9,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {

View File

@@ -9,7 +9,7 @@ export const columns = [
return h('div', { class: 'text-center' }, 'Name') return h('div', { class: 'text-center' }, 'Name')
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {
@@ -20,7 +20,7 @@ export const columns = [
cell: function ({ row }) { cell: function ({ row }) {
return h( return h(
'div', 'div',
{ class: 'text-center font-medium' }, { class: 'text-center' },
format(row.getValue('created_at'), 'PPpp') format(row.getValue('created_at'), 'PPpp')
) )
} }
@@ -33,7 +33,7 @@ export const columns = [
cell: function ({ row }) { cell: function ({ row }) {
return h( return h(
'div', 'div',
{ class: 'text-center font-medium' }, { class: 'text-center' },
format(row.getValue('updated_at'), 'PPpp') format(row.getValue('updated_at'), 'PPpp')
) )
} }

View File

@@ -9,7 +9,7 @@ export const createOutgoingEmailTableColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {
@@ -60,7 +60,7 @@ export const createEmailNotificationTableColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },

View File

@@ -10,7 +10,7 @@ export const createColumns = (t) => [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {

View File

@@ -69,7 +69,7 @@ const columns = [
return h('div', { class: 'text-center' }, t('globals.terms.name')) return h('div', { class: 'text-center' }, t('globals.terms.name'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('name')) return h('div', { class: 'text-center' }, row.getValue('name'))
} }
}, },
{ {
@@ -78,7 +78,7 @@ const columns = [
return h('div', { class: 'text-center' }, t('globals.terms.channel')) return h('div', { class: 'text-center' }, t('globals.terms.channel'))
}, },
cell: function ({ row }) { cell: function ({ row }) {
return h('div', { class: 'text-center font-medium' }, row.getValue('channel')) return h('div', { class: 'text-center' }, row.getValue('channel'))
} }
}, },
{ {

View File

@@ -619,7 +619,7 @@ VALUES
('app.lang', '"en"'::jsonb), ('app.lang', '"en"'::jsonb),
('app.root_url', '"http://localhost:9000"'::jsonb), ('app.root_url', '"http://localhost:9000"'::jsonb),
('app.logo_url', '"http://localhost:9000/logo.png"'::jsonb), ('app.logo_url', '"http://localhost:9000/logo.png"'::jsonb),
('app.site_name', '"Libredesk"'::jsonb), ('app.site_name', '"LIBREDESK"'::jsonb),
('app.favicon_url', '"http://localhost:9000/favicon.ico"'::jsonb), ('app.favicon_url', '"http://localhost:9000/favicon.ico"'::jsonb),
('app.max_file_upload_size', '20'::jsonb), ('app.max_file_upload_size', '20'::jsonb),
('app.allowed_file_upload_extensions', '["*"]'::jsonb), ('app.allowed_file_upload_extensions', '["*"]'::jsonb),