From 746356e59e541095a3d8b7d7543e47d92f4fc487 Mon Sep 17 00:00:00 2001 From: Luke Morris Date: Thu, 22 Feb 2018 19:48:10 -0800 Subject: [PATCH] Remove unused files --- ui/spec/shared/reducers/annotationsSpec.js | 4 +- ui/src/shared/constants/annotations.js | 1 - ui/src/shared/constants/influxColors.js | 95 ---------------------- 3 files changed, 1 insertion(+), 99 deletions(-) delete mode 100644 ui/src/shared/constants/annotations.js delete mode 100644 ui/src/shared/constants/influxColors.js diff --git a/ui/spec/shared/reducers/annotationsSpec.js b/ui/spec/shared/reducers/annotationsSpec.js index f82a7739a2..54a6f3c9db 100644 --- a/ui/spec/shared/reducers/annotationsSpec.js +++ b/ui/spec/shared/reducers/annotationsSpec.js @@ -7,8 +7,6 @@ import { updateAnnotation, } from 'shared/actions/annotations' -import {DEFAULT_ANNOTATION_ID} from 'src/shared/constants/annotations' - const a1 = { id: '1', group: '', @@ -61,7 +59,7 @@ describe.only('Shared.Reducers.annotations', () => { }) it('can add an annotation', () => { - const expected = [{...a1, id: DEFAULT_ANNOTATION_ID}] + const expected = [a1] const actual = reducer(state, addAnnotation(a1)) expect(actual.annotations).to.deep.equal(expected) diff --git a/ui/src/shared/constants/annotations.js b/ui/src/shared/constants/annotations.js deleted file mode 100644 index fbbdccf60b..0000000000 --- a/ui/src/shared/constants/annotations.js +++ /dev/null @@ -1 +0,0 @@ -export const DEFAULT_ANNOTATION_ID = 'DEFAULT_ANNOTATION_ID' diff --git a/ui/src/shared/constants/influxColors.js b/ui/src/shared/constants/influxColors.js deleted file mode 100644 index 2ae887913e..0000000000 --- a/ui/src/shared/constants/influxColors.js +++ /dev/null @@ -1,95 +0,0 @@ -// InfluxData Color Palette -// ----------------------------------------------------------------------------- - -// Nuetrals (Dark to Light) -export const NEUTRALS = [ - '#0f0e15', // Obsidian - '#1c1c21', // Raven - '#202028', // Kevlar - '#292933', // Castle - '#31313d', // Onyx - '#383846', // Pepper - '#434453', // Smoke - '#545667', // Graphite - '#676978', // Storm - '#757888', // Mountain - '#8e91a1', // Wolf - '#999dab', // Sidewalk - '#a4a8b6', // Forge - '#bec2cc', // Mist - '#c6cad3', // Chromium - '#d4d7dd', // Platinum - '#e7e8eb', // Pearl - '#eeeff2', // Whisper - '#f6f6f8', // Cloud - '#fafafc', // Ghost - '#ffffff', // White -] - -// Telegraf (Dark to Light) -export const REDS = { - basalt: '#2F1F29', - ruby: '#BF3D5E', - fire: '#DC4E58', - fireDisabled: '#6F3943', - curacao: '#F95F53', - curacaoDisabled: '#EADAD8', - dreamsicle: '#FF8564', - tungsten: '#FFB6A0', - marmelade: '#FFDCCF', - flan: '#FFF7F4', -} - -// InfluxDB (Dark to Light) -export const BLUES = { - abyss: '#182838', - sapphire: '#326BBA', - ocean: '#4591ED', - oceanDisabled: '#32547F', - pool: '#22ADF6', - poolDisabled: '#C9E0ED', - laser: '#00C9FF', - hydrogen: '#6BDFFF', - neutrino: '#BEF0FF', - yeti: '#F0FCFF', -} - -// Chronograf (Dark to Light) -export const PURPLES = { - shadow: '#1F2039', - void: '#311F94', - amethyst: '#513CC6', - amethystDisabled: '#484281', - star: '#7A65F2', - starDisabled: '#D6D5ED', - comet: '#9394FF', - potassium: '#B1B6FF', - moonstone: '#C9D0FF', - twilight: '#F2F4FF', -} - -// Kapacitor (Dark to Light) -export const GREENS = { - gypsy: '#152B2D', - emerald: '#108174', - viridian: '#32B08C', - viridianDisabled: '#2B6058', - rainforest: '#4ED8A0', - rainforestDisabled: '#CFE6E1', - honeydew: '#7CE490', - krypton: '#A5F3B4', - wasabi: '#C6FFD0', - mint: '#F2FFF4', -} - -// Warnings (Dark to Light) -export const YELLOWS = { - oak: '#3F241F', - topaz: '#E85B1C', - tiger: '#F48D38', - pineapple: '#FFB94A', - thunder: '#FFD255', - sulfur: '#FFE480', - daisy: '#FFF6B8', - banana: '#FFFDDE', -}