Browse Source

chore(nc-gui): revert unrelated changes

pull/7807/head
Ramesh Mane 9 months ago
parent
commit
70bde41568
  1. 2
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
  2. 3
      packages/nc-gui/lang/en.json
  3. 60
      packages/nc-gui/lib/constants.ts

2
packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

@ -424,7 +424,7 @@ const projectDelete = () => {
</NcButton> </NcButton>
<div class="flex items-center mr-1" @click="onProjectClick(base)"> <div class="flex items-center mr-1" @click="onProjectClick(base)">
<div v-e="['c:base:iconColorChange']" class="flex items-center select-none w-6 h-full"> <div class="flex items-center select-none w-6 h-full">
<a-spin v-if="base.isLoading" class="!ml-1.25 !flex !flex-row !items-center !my-0.5 w-8" :indicator="indicator" /> <a-spin v-if="base.isLoading" class="!ml-1.25 !flex !flex-row !items-center !my-0.5 w-8" :indicator="indicator" />
<div v-else> <div v-else>

3
packages/nc-gui/lang/en.json

@ -699,8 +699,7 @@
"showFieldOnConditionsMet": "Shows field only when conditions are met", "showFieldOnConditionsMet": "Shows field only when conditions are met",
"limitOptions": "Limit ptions", "limitOptions": "Limit ptions",
"limitOptionsSubtext": "Limit options visible to users by selecting available options", "limitOptionsSubtext": "Limit options visible to users by selecting available options",
"clearSelection": "Clear selection", "clearSelection": "Clear selection"
"customColour": "Custom colour"
}, },
"activity": { "activity": {
"noRange": "Calendar view requires a date range", "noRange": "Calendar view requires a date range",

60
packages/nc-gui/lib/constants.ts

@ -18,63 +18,3 @@ export const GROUP_BY_VARS = {
__nc_false__: 'Unchecked', __nc_false__: 'Unchecked',
} as Record<string, string>, } as Record<string, string>,
} }
export const BASE_ICON_COLOR_HUE_DATA: Record<
string,
{ tint: { h: number; s: number; v: number }; shade: { h: number; s: number; v: number }; pickerColor: string }
> = {
// blue
_199: {
tint: { h: 199, s: 79, v: 100 },
shade: { h: 255, s: 80, v: 40 },
pickerColor: '#36BFFF',
},
// orange
_24: {
tint: { h: 24, s: 64, v: 98 },
shade: { h: 24, s: 81, v: 59 },
pickerColor: '#FA8231',
},
// yellow
_41: {
tint: { h: 41, s: 62, v: 99 },
shade: { h: 41, s: 77, v: 40 },
pickerColor: '#FCBE3A',
},
// green
_141: {
tint: { h: 141, s: 63, v: 87 },
shade: { h: 141, s: 81, v: 34 },
pickerColor: '#27D665',
},
// gray
_217: {
tint: { h: 217, s: 12, v: 69 },
shade: { h: 217, s: 32, v: 32 },
pickerColor: '#6A7184',
},
// red
_4: {
tint: { h: 4, s: 60, v: 100 },
shade: { h: 4, s: 74, v: 49 },
pickerColor: '#FF4A3F',
},
// pink
_317: {
tint: { h: 317, s: 62, v: 99 },
shade: { h: 317, s: 77, v: 40 },
pickerColor: '#FC3AC6',
},
// purple
_271: {
tint: { h: 271, s: 62, v: 84 },
shade: { h: 271, s: 82, v: 32 },
pickerColor: '#7D26CD',
},
// maroon
_332: {
tint: { h: 332, s: 58, v: 83 },
shade: { h: 332, s: 93, v: 41 },
pickerColor: '#B33771',
},
}

Loading…
Cancel
Save