mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 12:17:19 +00:00
refactor(gui): linting
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,7 @@ export default {
|
||||
'#cfdffe',
|
||||
'#d0f1fd',
|
||||
'#c2f5e8',
|
||||
'#ffdaf6',
|
||||
'#ffdaf6'
|
||||
],
|
||||
dark: [
|
||||
'#f82b6099',
|
||||
@@ -22,10 +22,9 @@ export default {
|
||||
'#2d7ff999',
|
||||
'#18bfff99',
|
||||
'#20d9d299',
|
||||
'#ff08c299',
|
||||
'#ff08c299'
|
||||
]
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
const enumColor = {
|
||||
light: [
|
||||
@@ -54,7 +53,6 @@ const enumColor = {
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
export {
|
||||
enumColor
|
||||
}
|
||||
|
||||
@@ -1,33 +1,33 @@
|
||||
export default {
|
||||
'ID': {},
|
||||
'ForeignKey': {},
|
||||
'SingleLineText': {w: '150px'},
|
||||
'LongText': {w: '400px'},
|
||||
'Attachment': {},
|
||||
'Checkbox': {},
|
||||
'MultiSelect': {w: '200px'},
|
||||
'SingleSelect': {w: '200px'},
|
||||
'Collaborator': {},
|
||||
'Date': {},
|
||||
'Year': {},
|
||||
'Time': {},
|
||||
'PhoneNumber': {},
|
||||
'Email': {},
|
||||
'URL': {},
|
||||
'Number': {},
|
||||
'Decimal': {},
|
||||
'Currency': {},
|
||||
'Percent': {},
|
||||
'Duration': {},
|
||||
'Rating': {},
|
||||
'Formula': {},
|
||||
'Rollup': {},
|
||||
'Count': {},
|
||||
'Lookup': {},
|
||||
'DateTime': {},
|
||||
'CreateTime': {},
|
||||
'LastModifiedTime': {},
|
||||
'AutoNumber': {},
|
||||
'Barcode': {},
|
||||
'Button': {},
|
||||
ID: {},
|
||||
ForeignKey: {},
|
||||
SingleLineText: { w: '150px' },
|
||||
LongText: { w: '400px' },
|
||||
Attachment: {},
|
||||
Checkbox: {},
|
||||
MultiSelect: { w: '200px' },
|
||||
SingleSelect: { w: '200px' },
|
||||
Collaborator: {},
|
||||
Date: {},
|
||||
Year: {},
|
||||
Time: {},
|
||||
PhoneNumber: {},
|
||||
Email: {},
|
||||
URL: {},
|
||||
Number: {},
|
||||
Decimal: {},
|
||||
Currency: {},
|
||||
Percent: {},
|
||||
Duration: {},
|
||||
Rating: {},
|
||||
Formula: {},
|
||||
Rollup: {},
|
||||
Count: {},
|
||||
Lookup: {},
|
||||
DateTime: {},
|
||||
CreateTime: {},
|
||||
LastModifiedTime: {},
|
||||
AutoNumber: {},
|
||||
Barcode: {},
|
||||
Button: {}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
const imageExt = ['jpeg', 'gif', 'png', 'apng', 'svg', 'bmp', 'ico', 'jpg'];
|
||||
const imageExt = ['jpeg', 'gif', 'png', 'apng', 'svg', 'bmp', 'ico', 'jpg']
|
||||
|
||||
export default imageExt;
|
||||
export default imageExt
|
||||
|
||||
const isImage = (name) => {
|
||||
return imageExt.some(e => name.toLowerCase().endsWith(`.${e}`));
|
||||
};
|
||||
return imageExt.some(e => name.toLowerCase().endsWith(`.${e}`))
|
||||
}
|
||||
|
||||
export {
|
||||
isImage
|
||||
|
||||
@@ -1,41 +1,40 @@
|
||||
|
||||
|
||||
const uiTypes = [
|
||||
{
|
||||
name: 'ID',
|
||||
icon: 'mdi-identifier',
|
||||
icon: 'mdi-identifier'
|
||||
},
|
||||
{
|
||||
name: 'LinkToAnotherRecord',
|
||||
icon: 'mdi-link-variant',
|
||||
icon: 'mdi-link-variant'
|
||||
},
|
||||
{
|
||||
name: 'ForeignKey',
|
||||
icon: 'mdi-link-variant',
|
||||
icon: 'mdi-link-variant'
|
||||
},
|
||||
{
|
||||
name: 'SingleLineText',
|
||||
icon: 'mdi-format-color-text',
|
||||
icon: 'mdi-format-color-text'
|
||||
},
|
||||
{
|
||||
name: 'LongText',
|
||||
icon: 'mdi-text-subject',
|
||||
icon: 'mdi-text-subject'
|
||||
},
|
||||
{
|
||||
name: 'Attachment',
|
||||
icon: 'mdi-attachment',
|
||||
icon: 'mdi-attachment'
|
||||
},
|
||||
{
|
||||
name: 'Checkbox',
|
||||
icon: 'mdi-checkbox-marked-outline',
|
||||
icon: 'mdi-checkbox-marked-outline'
|
||||
},
|
||||
{
|
||||
name: 'MultiSelect',
|
||||
icon: 'mdi-format-list-bulleted-square',
|
||||
icon: 'mdi-format-list-bulleted-square'
|
||||
},
|
||||
{
|
||||
name: 'SingleSelect',
|
||||
icon: 'mdi-arrow-down-drop-circle',
|
||||
icon: 'mdi-arrow-down-drop-circle'
|
||||
},
|
||||
// {
|
||||
// name: 'Collaborator',
|
||||
@@ -43,55 +42,55 @@ const uiTypes = [
|
||||
// },
|
||||
{
|
||||
name: 'Date',
|
||||
icon:'mdi-calendar-month',
|
||||
icon: 'mdi-calendar-month'
|
||||
},
|
||||
{
|
||||
name: 'Year',
|
||||
icon: 'mdi-calendar',
|
||||
icon: 'mdi-calendar'
|
||||
},
|
||||
{
|
||||
name: 'Time',
|
||||
icon: 'mdi-clock',
|
||||
icon: 'mdi-clock'
|
||||
},
|
||||
{
|
||||
name: 'PhoneNumber',
|
||||
icon: 'mdi-file-phone',
|
||||
icon: 'mdi-file-phone'
|
||||
},
|
||||
{
|
||||
name: 'Email',
|
||||
icon: 'mdi-email',
|
||||
icon: 'mdi-email'
|
||||
},
|
||||
{
|
||||
name: 'URL',
|
||||
icon: 'mdi-web',
|
||||
icon: 'mdi-web'
|
||||
},
|
||||
{
|
||||
name: 'Number',
|
||||
icon: 'mdi-numeric',
|
||||
icon: 'mdi-numeric'
|
||||
},
|
||||
{
|
||||
name: 'Decimal',
|
||||
icon: 'mdi-decimal',
|
||||
icon: 'mdi-decimal'
|
||||
},
|
||||
{
|
||||
name: 'Currency',
|
||||
icon: 'mdi-currency-usd-circle-outline',
|
||||
icon: 'mdi-currency-usd-circle-outline'
|
||||
},
|
||||
{
|
||||
name: 'Percent',
|
||||
icon: 'mdi-percent-outline',
|
||||
icon: 'mdi-percent-outline'
|
||||
},
|
||||
{
|
||||
name: 'Duration',
|
||||
icon: 'mdi-timer-outline',
|
||||
icon: 'mdi-timer-outline'
|
||||
},
|
||||
{
|
||||
name: 'Rating',
|
||||
icon: 'mdi-star',
|
||||
icon: 'mdi-star'
|
||||
},
|
||||
{
|
||||
name: 'Formula',
|
||||
icon: 'mdi-math-integral',
|
||||
icon: 'mdi-math-integral'
|
||||
},
|
||||
// {
|
||||
// name: 'Rollup',
|
||||
@@ -99,7 +98,7 @@ const uiTypes = [
|
||||
// },
|
||||
{
|
||||
name: 'Count',
|
||||
icon: 'mdi-counter',
|
||||
icon: 'mdi-counter'
|
||||
},
|
||||
// {
|
||||
// name: 'Lookup',
|
||||
@@ -107,11 +106,11 @@ const uiTypes = [
|
||||
// },
|
||||
{
|
||||
name: 'DateTime',
|
||||
icon: 'mdi-calendar-clock',
|
||||
icon: 'mdi-calendar-clock'
|
||||
},
|
||||
{
|
||||
name: 'CreateTime',
|
||||
icon: 'mdi-calendar-clock',
|
||||
icon: 'mdi-calendar-clock'
|
||||
},
|
||||
// {
|
||||
// name: 'LastModifiedTime',
|
||||
@@ -119,16 +118,16 @@ const uiTypes = [
|
||||
// },
|
||||
{
|
||||
name: 'AutoNumber',
|
||||
icon: 'mdi-numeric',
|
||||
icon: 'mdi-numeric'
|
||||
},
|
||||
{
|
||||
name: 'Geometry',
|
||||
icon: 'mdi-ruler-square-compass',
|
||||
icon: 'mdi-ruler-square-compass'
|
||||
},
|
||||
{
|
||||
name: 'SpecificDBType',
|
||||
icon: 'mdi-database-settings',
|
||||
},
|
||||
icon: 'mdi-database-settings'
|
||||
}
|
||||
// {
|
||||
// name: 'Barcode',
|
||||
// icon: 'mdi-barcode',
|
||||
@@ -137,8 +136,7 @@ const uiTypes = [
|
||||
// name: 'Button',
|
||||
// icon: 'mdi-gesture-tap-button',
|
||||
// },
|
||||
];
|
||||
|
||||
]
|
||||
|
||||
export {
|
||||
uiTypes
|
||||
@@ -175,7 +173,7 @@ export default [
|
||||
'AutoNumber',
|
||||
'Barcode',
|
||||
'Button',
|
||||
'SpecificDBType',
|
||||
'SpecificDBType'
|
||||
]
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user