mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-10-23 05:11:57 +00:00
remove font-medium from data table columns in all data tables
- Remove permissions requirement for GET on roles
This commit is contained in:
@@ -155,7 +155,7 @@ func initHandlers(g *fastglue.Fastglue, hub *ws.Hub) {
|
||||
g.DELETE("/api/v1/inboxes/{id}", perm(handleDeleteInbox, "inboxes:manage"))
|
||||
|
||||
// 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.POST("/api/v1/roles", perm(handleCreateRole, "roles:manage"))
|
||||
g.PUT("/api/v1/roles/{id}", perm(handleUpdateRole, "roles:manage"))
|
||||
|
@@ -9,7 +9,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.firstName'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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 }) {
|
||||
return h(
|
||||
'div',
|
||||
{ class: 'text-center font-medium' },
|
||||
{ class: 'text-center' },
|
||||
format(row.getValue('created_at'), 'PPpp')
|
||||
)
|
||||
}
|
||||
@@ -60,7 +60,7 @@ export const createColumns = (t) => [
|
||||
cell: function ({ row }) {
|
||||
return h(
|
||||
'div',
|
||||
{ class: 'text-center font-medium' },
|
||||
{ class: 'text-center' },
|
||||
format(row.getValue('updated_at'), 'PPpp')
|
||||
)
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -9,7 +9,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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 }) {
|
||||
return h(
|
||||
'div',
|
||||
{ class: 'text-center font-medium' },
|
||||
{ class: 'text-center' },
|
||||
format(row.getValue('created_at'), 'PPpp')
|
||||
)
|
||||
}
|
||||
@@ -60,7 +60,7 @@ export const createColumns = (t) => [
|
||||
cell: function ({ row }) {
|
||||
return h(
|
||||
'div',
|
||||
{ class: 'text-center font-medium' },
|
||||
{ class: 'text-center' },
|
||||
format(row.getValue('updated_at'), 'PPpp')
|
||||
)
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
cell: function ({ row }) {
|
||||
return h('div', { class: 'text-center font-medium' }, row.getValue('name'))
|
||||
return h('div', { class: 'text-center' }, row.getValue('name'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -9,7 +9,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
cell: function ({ row }) {
|
||||
return h('div', { class: 'text-center font-medium' }, row.getValue('provider'))
|
||||
return h('div', { class: 'text-center' }, row.getValue('provider'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -8,7 +8,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
cell: function ({ row }) {
|
||||
return h('div', { class: 'text-center font-medium' }, row.getValue('description'))
|
||||
return h('div', { class: 'text-center' }, row.getValue('description'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -9,7 +9,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
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'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -9,7 +9,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
cell: function ({ row }) {
|
||||
return h('div', { class: 'text-center font-medium' }, row.getValue('name'))
|
||||
return h('div', { class: 'text-center' }, row.getValue('name'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -9,7 +9,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
cell: function ({ row }) {
|
||||
return h('div', { class: 'text-center font-medium' }, row.getValue('name'))
|
||||
return h('div', { class: 'text-center' }, row.getValue('name'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -9,7 +9,7 @@ export const columns = [
|
||||
return h('div', { class: 'text-center' }, 'Name')
|
||||
},
|
||||
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 }) {
|
||||
return h(
|
||||
'div',
|
||||
{ class: 'text-center font-medium' },
|
||||
{ class: 'text-center' },
|
||||
format(row.getValue('created_at'), 'PPpp')
|
||||
)
|
||||
}
|
||||
@@ -33,7 +33,7 @@ export const columns = [
|
||||
cell: function ({ row }) {
|
||||
return h(
|
||||
'div',
|
||||
{ class: 'text-center font-medium' },
|
||||
{ class: 'text-center' },
|
||||
format(row.getValue('updated_at'), 'PPpp')
|
||||
)
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ export const createOutgoingEmailTableColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
cell: function ({ row }) {
|
||||
return h('div', { class: 'text-center font-medium' }, row.getValue('name'))
|
||||
return h('div', { class: 'text-center' }, row.getValue('name'))
|
||||
}
|
||||
},
|
||||
|
||||
|
@@ -10,7 +10,7 @@ export const createColumns = (t) => [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
cell: function ({ row }) {
|
||||
return h('div', { class: 'text-center font-medium' }, row.getValue('name'))
|
||||
return h('div', { class: 'text-center' }, row.getValue('name'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -69,7 +69,7 @@ const columns = [
|
||||
return h('div', { class: 'text-center' }, t('globals.terms.name'))
|
||||
},
|
||||
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'))
|
||||
},
|
||||
cell: function ({ row }) {
|
||||
return h('div', { class: 'text-center font-medium' }, row.getValue('channel'))
|
||||
return h('div', { class: 'text-center' }, row.getValue('channel'))
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -619,7 +619,7 @@ VALUES
|
||||
('app.lang', '"en"'::jsonb),
|
||||
('app.root_url', '"http://localhost:9000"'::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.max_file_upload_size', '20'::jsonb),
|
||||
('app.allowed_file_upload_extensions', '["*"]'::jsonb),
|
||||
|
Reference in New Issue
Block a user