From a6a2f37f243cf04d900bce42143dc2aa911f19fb Mon Sep 17 00:00:00 2001
From: Simon Belak <sb@Huri.local>
Date: Thu, 1 Mar 2018 21:50:46 +0100
Subject: [PATCH] Fix identation

---
 frontend/src/metabase/lib/core.js | 360 +++++++++++++++++-------------
 1 file changed, 200 insertions(+), 160 deletions(-)

diff --git a/frontend/src/metabase/lib/core.js b/frontend/src/metabase/lib/core.js
index 101958eaa04..0b0c572b7e0 100644
--- a/frontend/src/metabase/lib/core.js
+++ b/frontend/src/metabase/lib/core.js
@@ -1,166 +1,206 @@
 import { TYPE } from "metabase/lib/types";
 import { t } from "c-3po";
 
-export const field_special_types = [{
-    'id': TYPE.PK,
-    'name': t`Entity Key`,
-    'section': 'Overall Row',
-    'description': t`The primary key for this table.`
-}, {
-    'id': TYPE.Name,
-    'name': t`Entity Name`,
-    'section': 'Overall Row',
-    'description': t`The "name" of each record. Usually a column called "name", "title", etc.`
-}, {
-    'id': TYPE.FK,
-    'name': t`Foreign Key`,
-    'section': 'Overall Row',
-    'description': t`Points to another table to make a connection.`
-}, {
-    'id': TYPE.AvatarURL,
-    'name': t`Avatar Image URL`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Category,
-    'name': t`Category`,
-    'section': 'Common'
-}, {
-    'id': TYPE.City,
-    'name': t`City`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Country,
-    'name': t`Country`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Description,
-    'name': t`Description`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Email,
-    'name': t`Email`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Enum,
-    'name': t`Enum`,
-    'section': 'Common'
-}, {
-    'id': TYPE.ImageURL,
-    'name': t`Image URL`,
-    'section': 'Common'
-}, {
-    'id': TYPE.SerializedJSON,
-    'name': t`Field containing JSON`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Latitude,
-    'name': t`Latitude`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Longitude,
-    'name': t`Longitude`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Number,
-    'name': t`Number`,
-    'section': 'Common'
-}, {
-    'id': TYPE.State,
-    'name': t`State`,
-    'section': 'Common'
-}, {
-    'id': TYPE.UNIXTimestampSeconds,
-    'name': t`UNIX Timestamp (Seconds)`,
-    'section': 'Common'
-}, {
-    'id': TYPE.UNIXTimestampMilliseconds,
-    'name': t`UNIX Timestamp (Milliseconds)`,
-    'section': 'Common'
-}, {
-    'id': TYPE.URL,
-    'name': t`URL`,
-    'section': 'Common'
-}, {
-    'id': TYPE.ZipCode,
-    'name': t`Zip Code`,
-    'section': 'Common'
-}, {
-    'id': TYPE.Quantity,
-    'name': 'Quantity',
-    'section': 'Common'
-}, {
-    'id': TYPE.Income,
-    'name': 'Income',
-    'section': 'Common'
-}, {
-    'id': TYPE.Discount,
-    'name': 'Discount',
-    'section': 'Common'
-}, {
-    'id': TYPE.CreationTimestamp,
-    'name': 'Creation timestamp',
-    'section': 'Common'
-}, {
-    'id': TYPE.Product,
-    'name': 'Product',
-    'section': 'Common'
-}, {
-    'id': TYPE.User,
-    'name': 'User',
-    'section': 'Common'
-}, {
-    'id': TYPE.Source,
-    'name': 'Source',
-    'section': 'Common'
-}, {
-    'id': TYPE.Price,
-    'name': 'Price',
-    'section': 'Common'
-}, {
-    'id': TYPE.JoinTimestamp,
-    'name': 'Join timestamp',
-    'section': 'Common'
-}, {
-    'id': TYPE.Share,
-    'name': 'Share',
-    'section': 'Common'
-}, {
-    'id': TYPE.Owner,
-    'name': 'Owner',
-    'section': 'Common'
-}, {
-    'id': TYPE.Company,
-    'name': 'Company',
-    'section': 'Common'
-}, {
-    'id': TYPE.Subscription,
-    'name': 'Subscription',
-    'section': 'Common'
-}, {
-    'id': TYPE.Score,
-    'name': 'Score',
-    'section': 'Common'
-}, {
-    'id': TYPE.Description,
-    'name': 'Description',
-    'section': 'Common'
-}, {
-    'id': TYPE.Title,
-    'name': 'Title',
-    'section': 'Common'
-}, {
-    'id': TYPE.Comment,
-    'name': 'Comment',
-    'section': 'Common'
-}, {
-    'id': TYPE.Cost,
-    'name': 'Cost',
-    'section': 'Common'
-}, {
-    'id': TYPE.GrossMargin,
-    'name': 'Gross margin',
-    'section': 'Common'
-}];
+export const field_special_types = [
+  {
+    id: TYPE.PK,
+    name: t`Entity Key`,
+    section: "Overall Row",
+    description: t`The primary key for this table.`,
+  },
+  {
+    id: TYPE.Name,
+    name: t`Entity Name`,
+    section: "Overall Row",
+    description: t`The "name" of each record. Usually a column called "name", "title", etc.`,
+  },
+  {
+    id: TYPE.FK,
+    name: t`Foreign Key`,
+    section: "Overall Row",
+    description: t`Points to another table to make a connection.`,
+  },
+  {
+    id: TYPE.AvatarURL,
+    name: t`Avatar Image URL`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Category,
+    name: t`Category`,
+    section: "Common",
+  },
+  {
+    id: TYPE.City,
+    name: t`City`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Country,
+    name: t`Country`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Description,
+    name: t`Description`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Email,
+    name: t`Email`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Enum,
+    name: t`Enum`,
+    section: "Common",
+  },
+  {
+    id: TYPE.ImageURL,
+    name: t`Image URL`,
+    section: "Common",
+  },
+  {
+    id: TYPE.SerializedJSON,
+    name: t`Field containing JSON`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Latitude,
+    name: t`Latitude`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Longitude,
+    name: t`Longitude`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Number,
+    name: t`Number`,
+    section: "Common",
+  },
+  {
+    id: TYPE.State,
+    name: t`State`,
+    section: "Common",
+  },
+  {
+    id: TYPE.UNIXTimestampSeconds,
+    name: t`UNIX Timestamp (Seconds)`,
+    section: "Common",
+  },
+  {
+    id: TYPE.UNIXTimestampMilliseconds,
+    name: t`UNIX Timestamp (Milliseconds)`,
+    section: "Common",
+  },
+  {
+    id: TYPE.URL,
+    name: t`URL`,
+    section: "Common",
+  },
+  {
+    id: TYPE.ZipCode,
+    name: t`Zip Code`,
+    section: "Common",
+  },
+  {
+    id: TYPE.Quantity,
+    name: "Quantity",
+    section: "Common",
+  },
+  {
+    id: TYPE.Income,
+    name: "Income",
+    section: "Common",
+  },
+  {
+    id: TYPE.Discount,
+    name: "Discount",
+    section: "Common",
+  },
+  {
+    id: TYPE.CreationTimestamp,
+    name: "Creation timestamp",
+    section: "Common",
+  },
+  {
+    id: TYPE.Product,
+    name: "Product",
+    section: "Common",
+  },
+  {
+    id: TYPE.User,
+    name: "User",
+    section: "Common",
+  },
+  {
+    id: TYPE.Source,
+    name: "Source",
+    section: "Common",
+  },
+  {
+    id: TYPE.Price,
+    name: "Price",
+    section: "Common",
+  },
+  {
+    id: TYPE.JoinTimestamp,
+    name: "Join timestamp",
+    section: "Common",
+  },
+  {
+    id: TYPE.Share,
+    name: "Share",
+    section: "Common",
+  },
+  {
+    id: TYPE.Owner,
+    name: "Owner",
+    section: "Common",
+  },
+  {
+    id: TYPE.Company,
+    name: "Company",
+    section: "Common",
+  },
+  {
+    id: TYPE.Subscription,
+    name: "Subscription",
+    section: "Common",
+  },
+  {
+    id: TYPE.Score,
+    name: "Score",
+    section: "Common",
+  },
+  {
+    id: TYPE.Description,
+    name: "Description",
+    section: "Common",
+  },
+  {
+    id: TYPE.Title,
+    name: "Title",
+    section: "Common",
+  },
+  {
+    id: TYPE.Comment,
+    name: "Comment",
+    section: "Common",
+  },
+  {
+    id: TYPE.Cost,
+    name: "Cost",
+    section: "Common",
+  },
+  {
+    id: TYPE.GrossMargin,
+    name: "Gross margin",
+    section: "Common",
+  },
+];
 
 export const field_special_types_map = field_special_types.reduce(
   (map, type) => Object.assign({}, map, { [type.id]: type }),
-- 
GitLab