mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 13:39:22 +01:00
Fix deduplicated SCSS issue (#4545)
* Revert "Hotfix SCSS for trend graphs (#4539)" This reverts commit545dc62ec6
. * Revert "Move history import to globals (#4531)" This reverts commit542be62053
. * Revert "@ import all scss in lib/components (#4530)" This reverts commit5e2a3290da
. * fix deduplicated css problem * update lockfile
This commit is contained in:
parent
9314dd47c1
commit
5017bf1c08
@ -6,17 +6,6 @@ style files without adding already imported styles. */
|
||||
@import 'node_modules/react-toastify/dist/ReactToastify';
|
||||
@import './vars';
|
||||
|
||||
// https://github.com/PostHog/posthog/issues/4524
|
||||
@import './lib/components/ActionComponents.scss';
|
||||
@import './lib/components/PropertiesTable.scss';
|
||||
@import './lib/components/SelectBox.scss';
|
||||
@import './lib/components/SelectGradientOverflow.scss';
|
||||
@import './scenes/insights/InsightHistoryPanel/InsightHistoryPanel.scss';
|
||||
@import './scenes/insights/LineGraph/LineGraph.scss';
|
||||
@import './scenes/dashboard/DashboardItems.scss';
|
||||
@import './lib/components/ResizableTable/index.scss';
|
||||
@import './lib/components/ResizableTable/TableConfig.scss';
|
||||
|
||||
@font-face {
|
||||
font-family: 'GoshaSans-Bold';
|
||||
src: url('../public/GoshaSans-Bold.woff2') format('woff2'), url('../public/GoshaSans-Bold.woff') format('woff');
|
||||
|
@ -5,7 +5,7 @@ import { Dropdown, Input, Menu, Popconfirm, Table, Tooltip } from 'antd'
|
||||
import { NumberOutlined, BulbOutlined, StopOutlined, DeleteOutlined } from '@ant-design/icons'
|
||||
import { isURL } from 'lib/utils'
|
||||
import { IconExternalLink, IconText } from 'lib/components/icons'
|
||||
// import './PropertiesTable.scss' //https://github.com/PostHog/posthog/issues/4524
|
||||
import './PropertiesTable.scss'
|
||||
import stringWithWBR from 'lib/utils/stringWithWBR'
|
||||
|
||||
type HandledType = 'string' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null'
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Button, Card, Col, Input, Row, Tooltip } from 'antd'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import { DownloadOutlined, SettingOutlined, SaveOutlined, SearchOutlined, ClearOutlined } from '@ant-design/icons'
|
||||
// import './TableConfig.scss' // https://github.com/PostHog/posthog/issues/4524
|
||||
import './TableConfig.scss'
|
||||
import { useActions, useValues } from 'kea'
|
||||
import { tableConfigLogic } from './tableConfigLogic'
|
||||
import Modal from 'antd/lib/modal/Modal'
|
||||
|
@ -8,7 +8,7 @@ import { getActiveBreakpoint, getFullwidthColumnSize, getMinColumnWidth, parsePi
|
||||
import VirtualTableHeader from './VirtualTableHeader'
|
||||
import { TableConfig as _TableConfig } from './TableConfig'
|
||||
|
||||
// import './index.scss' // https://github.com/PostHog/posthog/issues/4524
|
||||
import './index.scss'
|
||||
|
||||
export const TableConfig = _TableConfig
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { List } from 'antd'
|
||||
import { DownOutlined, RightOutlined } from '@ant-design/icons'
|
||||
import { ActionType, CohortType } from '~/types'
|
||||
import { selectBoxLogic } from 'lib/logic/selectBoxLogic'
|
||||
// import './SelectBox.scss' // https://github.com/PostHog/posthog/issues/4524
|
||||
import './SelectBox.scss'
|
||||
import { selectBoxLogicType } from 'lib/logic/selectBoxLogicType'
|
||||
import { PropertyKeyInfo } from 'lib/components/PropertyKeyInfo'
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { ReactElement, RefObject, useEffect, useRef, useState } from 'react'
|
||||
import { Select, Tag, Tooltip } from 'antd'
|
||||
import { RefSelectProps, SelectProps } from 'antd/lib/select'
|
||||
// import './SelectGradientOverflow.scss' //https://github.com/PostHog/posthog/issues/4524
|
||||
import './SelectGradientOverflow.scss'
|
||||
import { CloseButton } from './CloseButton'
|
||||
|
||||
interface DropdownGradientRendererProps {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// import './DashboardItems.scss' //https://github.com/PostHog/posthog/issues/4524
|
||||
import './DashboardItems.scss'
|
||||
import { Link } from 'lib/components/Link'
|
||||
import { useActions, useValues } from 'kea'
|
||||
import { Dropdown, Menu, Tooltip, Alert, Button, Skeleton } from 'antd'
|
||||
|
@ -5,7 +5,7 @@ import { useValues, useActions } from 'kea'
|
||||
import { insightHistoryLogic } from './insightHistoryLogic'
|
||||
import { DashboardItemType } from '~/types'
|
||||
import { DashboardItem, DisplayedType, displayMap } from 'scenes/dashboard/DashboardItem'
|
||||
// import './InsightHistoryPanel.scss' //https://github.com/PostHog/posthog/issues/4524
|
||||
import './InsightHistoryPanel.scss'
|
||||
import dayjs from 'dayjs'
|
||||
import { dashboardItemsModel } from '~/models/dashboardItemsModel'
|
||||
import { router } from 'kea-router'
|
||||
|
@ -10,7 +10,7 @@ import { toast } from 'react-toastify'
|
||||
import { Annotations, annotationsLogic, AnnotationMarker } from 'lib/components/Annotations'
|
||||
import { useEscapeKey } from 'lib/hooks/useEscapeKey'
|
||||
import dayjs from 'dayjs'
|
||||
// import './LineGraph.scss' //https://github.com/PostHog/posthog/issues/4524
|
||||
import './LineGraph.scss'
|
||||
|
||||
//--Chart Style Options--//
|
||||
// Chart.defaults.global.defaultFontFamily = "'PT Sans', sans-serif"
|
||||
|
@ -131,12 +131,12 @@
|
||||
"less": "^3.12.2",
|
||||
"less-loader": "^7.0.2",
|
||||
"lint-staged": "~10.2.13",
|
||||
"mini-css-extract-plugin": "^0.11.0",
|
||||
"mini-css-extract-plugin": "^1.6.0",
|
||||
"monaco-editor-webpack-plugin": "^2.0.0",
|
||||
"postcss-loader": "^3.0.0",
|
||||
"prettier": "^2.1.1",
|
||||
"sass-loader": "^10.0.1",
|
||||
"style-loader": "^1.2.1",
|
||||
"style-loader": "^2.0.0",
|
||||
"ts-node": "^9.1.1",
|
||||
"typescript": "^4.3.2",
|
||||
"webpack": "^4.46.0",
|
||||
|
@ -209,6 +209,7 @@ function createEntry(entry) {
|
||||
// other bundles include the css in js via style-loader
|
||||
new MiniCssExtractPlugin({
|
||||
filename: '[name].css',
|
||||
chunkFilename: '[name].css',
|
||||
ignoreOrder: true,
|
||||
}),
|
||||
// we need these only once per build
|
||||
|
65
yarn.lock
65
yarn.lock
@ -6782,11 +6782,6 @@ is-path-inside@^2.1.0:
|
||||
dependencies:
|
||||
path-is-inside "^1.0.2"
|
||||
|
||||
is-plain-obj@^1.0.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
|
||||
integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4=
|
||||
|
||||
is-plain-obj@^2.0.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287"
|
||||
@ -8027,14 +8022,13 @@ min-document@^2.19.0:
|
||||
dependencies:
|
||||
dom-walk "^0.1.0"
|
||||
|
||||
mini-css-extract-plugin@^0.11.0:
|
||||
version "0.11.3"
|
||||
resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-0.11.3.tgz#15b0910a7f32e62ffde4a7430cfefbd700724ea6"
|
||||
integrity sha512-n9BA8LonkOkW1/zn+IbLPQmovsL0wMb9yx75fMJQZf2X1Zoec9yTZtyMePcyu19wPkmFbzZZA6fLTotpFhQsOA==
|
||||
mini-css-extract-plugin@^1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-1.6.0.tgz#b4db2525af2624899ed64a23b0016e0036411893"
|
||||
integrity sha512-nPFKI7NSy6uONUo9yn2hIfb9vyYvkFu95qki0e21DQ9uaqNKDP15DGpK0KnV6wDroWxPHtExrdEwx/yDQ8nVRw==
|
||||
dependencies:
|
||||
loader-utils "^1.1.0"
|
||||
normalize-url "1.9.1"
|
||||
schema-utils "^1.0.0"
|
||||
loader-utils "^2.0.0"
|
||||
schema-utils "^3.0.0"
|
||||
webpack-sources "^1.1.0"
|
||||
|
||||
mini-store@^3.0.1:
|
||||
@ -8329,16 +8323,6 @@ normalize-range@^0.1.2:
|
||||
resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
|
||||
integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=
|
||||
|
||||
normalize-url@1.9.1:
|
||||
version "1.9.1"
|
||||
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-1.9.1.tgz#2cc0d66b31ea23036458436e3620d85954c66c3c"
|
||||
integrity sha1-LMDWazHqIwNkWENuNiDYWVTGbDw=
|
||||
dependencies:
|
||||
object-assign "^4.0.1"
|
||||
prepend-http "^1.0.0"
|
||||
query-string "^4.1.0"
|
||||
sort-keys "^1.0.0"
|
||||
|
||||
normalize-url@^3.0.0:
|
||||
version "3.3.0"
|
||||
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559"
|
||||
@ -8380,7 +8364,7 @@ oauth-sign@~0.9.0:
|
||||
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
|
||||
integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==
|
||||
|
||||
object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1:
|
||||
object-assign@^4.0.1, object-assign@^4.1.1:
|
||||
version "4.1.1"
|
||||
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
|
||||
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
|
||||
@ -9274,11 +9258,6 @@ prelude-ls@~1.1.2:
|
||||
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
|
||||
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
|
||||
|
||||
prepend-http@^1.0.0:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
|
||||
integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=
|
||||
|
||||
prettier-linter-helpers@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
|
||||
@ -9465,14 +9444,6 @@ query-selector-shadow-dom@0.8.0:
|
||||
resolved "https://registry.yarnpkg.com/query-selector-shadow-dom/-/query-selector-shadow-dom-0.8.0.tgz#74c7509e8b9bc24114febf076f89eb0eaf8e77a7"
|
||||
integrity sha512-dY6R/X8hfGapwcW9Xl6zSpGR1guYNdSVV7XOrO3Xb9UUyo5tEcWON2siDpNyQ+skVjAH0fH3azm3GdnTpUC/2A==
|
||||
|
||||
query-string@^4.1.0:
|
||||
version "4.3.4"
|
||||
resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb"
|
||||
integrity sha1-u7aTucqRXCMlFbIosaArYJBD2+s=
|
||||
dependencies:
|
||||
object-assign "^4.1.0"
|
||||
strict-uri-encode "^1.0.0"
|
||||
|
||||
query-string@^6.13.1:
|
||||
version "6.13.7"
|
||||
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.13.7.tgz#af53802ff6ed56f3345f92d40a056f93681026ee"
|
||||
@ -10924,13 +10895,6 @@ sockjs@^0.3.21:
|
||||
uuid "^3.4.0"
|
||||
websocket-driver "^0.7.4"
|
||||
|
||||
sort-keys@^1.0.0:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad"
|
||||
integrity sha1-RBttTTRnmPG05J6JIK37oOVD+a0=
|
||||
dependencies:
|
||||
is-plain-obj "^1.0.0"
|
||||
|
||||
source-list-map@^2.0.0:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
|
||||
@ -11174,11 +11138,6 @@ stream-shift@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d"
|
||||
integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==
|
||||
|
||||
strict-uri-encode@^1.0.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713"
|
||||
integrity sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=
|
||||
|
||||
strict-uri-encode@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
|
||||
@ -11312,13 +11271,13 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
|
||||
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
|
||||
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
|
||||
|
||||
style-loader@^1.2.1:
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-1.3.0.tgz#828b4a3b3b7e7aa5847ce7bae9e874512114249e"
|
||||
integrity sha512-V7TCORko8rs9rIqkSrlMfkqA63DfoGBBJmK1kKGCcSi+BWb4cqz0SRsnp4l6rU5iwOEd0/2ePv68SV22VXon4Q==
|
||||
style-loader@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-2.0.0.tgz#9669602fd4690740eaaec137799a03addbbc393c"
|
||||
integrity sha512-Z0gYUJmzZ6ZdRUqpg1r8GsaFKypE+3xAzuFeMuoHgjc9KZv3wMyCRjQIWEbhoFSq7+7yoHXySDJyyWQaPajeiQ==
|
||||
dependencies:
|
||||
loader-utils "^2.0.0"
|
||||
schema-utils "^2.7.0"
|
||||
schema-utils "^3.0.0"
|
||||
|
||||
style-value-types@^3.1.9:
|
||||
version "3.1.9"
|
||||
|
Loading…
Reference in New Issue
Block a user