diff --git a/src/components/specific/bcf/bcf-comments/BcfComments.scss b/src/components/specific/bcf/bcf-comments/BcfComments.scss deleted file mode 100644 index 25fe0b280..000000000 --- a/src/components/specific/bcf/bcf-comments/BcfComments.scss +++ /dev/null @@ -1,10 +0,0 @@ -.bcf-comments { - p { - font-weight: 700; - } - &:deep() { - .bimdata-textarea { - width: 100%; - } - } -} diff --git a/src/components/specific/bcf/bcf-comments/BcfComments.vue b/src/components/specific/bcf/bcf-comments/BcfComments.vue deleted file mode 100644 index fb0c86ef6..000000000 --- a/src/components/specific/bcf/bcf-comments/BcfComments.vue +++ /dev/null @@ -1,124 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-comments/bcf-comment/BcfComment.scss b/src/components/specific/bcf/bcf-comments/bcf-comment/BcfComment.scss deleted file mode 100644 index a168cc020..000000000 --- a/src/components/specific/bcf/bcf-comments/bcf-comment/BcfComment.scss +++ /dev/null @@ -1,48 +0,0 @@ -.bcf-comment { - &__header { - position: relative; - font-size: 11px; - &__left { - &__user { - width: 32px; - height: 32px; - background-color: var(--color-silver-light); - border-radius: 50px; - } - } - &__right { - &__actions { - position: absolute; - top: 0; - right: 0; - background-color: var(--color-white); - } - &__delete { - width: 96%; - top: 0; - position: absolute; - display: flex; - align-items: center; - justify-content: space-between; - background-color: var(--color-white); - box-shadow: var(--box-shadow); - height: 40px; - right: 2%; - } - } - } - &__content { - &:deep() { - .bimdata-textarea { - margin-bottom: 6px; - textarea { - color: var(--color-granite); - font-family: "Roboto"; - } - } - :not(.editing) .bar { - display: none; - } - } - } -} diff --git a/src/components/specific/bcf/bcf-comments/bcf-comment/BcfComment.vue b/src/components/specific/bcf/bcf-comments/bcf-comment/BcfComment.vue deleted file mode 100644 index bfa86bb8a..000000000 --- a/src/components/specific/bcf/bcf-comments/bcf-comment/BcfComment.vue +++ /dev/null @@ -1,207 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-filters/BcfFilters.scss b/src/components/specific/bcf/bcf-filters/BcfFilters.scss deleted file mode 100644 index 6621017c8..000000000 --- a/src/components/specific/bcf/bcf-filters/BcfFilters.scss +++ /dev/null @@ -1,29 +0,0 @@ -.bcf-filters { - .btn-color-granite-light:enabled { - color: var(--color-primary); - } - .btn-color-granite-light:disabled { - background-color: var(--color-white); - color: var(--color-silver-dark); - } - &__container { - width: 100%; - position: absolute; - left: 0; - top: calc(32px + 12px); - background-color: var(--color-white); - box-shadow: var(--box-shadow); - z-index: 1; - &__header { - &__title { - font-size: 12px; - font-weight: 700; - } - } - &__date { - p { - font-size: 11px; - } - } - } -} diff --git a/src/components/specific/bcf/bcf-filters/BcfFilters.vue b/src/components/specific/bcf/bcf-filters/BcfFilters.vue deleted file mode 100644 index e79bd6837..000000000 --- a/src/components/specific/bcf/bcf-filters/BcfFilters.vue +++ /dev/null @@ -1,338 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-settings/BcfSettings.scss b/src/components/specific/bcf/bcf-settings/BcfSettings.scss deleted file mode 100644 index 28db313b8..000000000 --- a/src/components/specific/bcf/bcf-settings/BcfSettings.scss +++ /dev/null @@ -1,20 +0,0 @@ -.bcf-settings { - height: 100%; - &__header { - height: 60px; - & > svg { - cursor: pointer; - } - } - &__content { - height: 100%; - flex-direction: column; - &__settings { - height: calc(100% - 32px - 12px); - overflow: auto; - p { - margin-top: 0; - } - } - } -} diff --git a/src/components/specific/bcf/bcf-settings/BcfSettings.vue b/src/components/specific/bcf/bcf-settings/BcfSettings.vue deleted file mode 100644 index 0625bcffc..000000000 --- a/src/components/specific/bcf/bcf-settings/BcfSettings.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-settings/adjustColor.js b/src/components/specific/bcf/bcf-settings/adjustColor.js deleted file mode 100644 index e8b0961f3..000000000 --- a/src/components/specific/bcf/bcf-settings/adjustColor.js +++ /dev/null @@ -1,30 +0,0 @@ -function adjustBorderColor(color, amount) { - return ( - "#" + - color - .replace(/^#/, "") - .replace(/../g, color => - ( - "0" + - Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16) - ).substr(-2) - ) - ); -} - -// https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html -// https://www.w3.org/TR/AERT/#color-contrast -function adjustColor(bgColor, lightTextColor, darkTextColor) { - const color = bgColor.charAt(0) === "#" ? bgColor.substring(1, 7) : bgColor; - // hex to R - const r = parseInt(color.substring(0, 2), 16); - // hex to G - const g = parseInt(color.substring(2, 4), 16); - // hex to B - const b = parseInt(color.substring(4, 6), 16); - return r * 0.299 + g * 0.587 + b * 0.114 > 186 - ? darkTextColor - : lightTextColor; -} - -export { adjustBorderColor, adjustColor }; diff --git a/src/components/specific/bcf/bcf-settings/setting-card/Extension.scss b/src/components/specific/bcf/bcf-settings/setting-card/Extension.scss deleted file mode 100644 index c6de6937f..000000000 --- a/src/components/specific/bcf/bcf-settings/setting-card/Extension.scss +++ /dev/null @@ -1,30 +0,0 @@ -.setting-card-item { - position: relative; - svg { - cursor: pointer; - } - &__color { - display: block; - width: 19px; - height: 19px; - border-radius: 3px; - border: 1px solid var(--color-silver); - cursor: pointer; - } - &__color-selector { - position: absolute; - top: 37px; - right: -12px; - z-index: 1; - } - &__delete__safe-zone { - width: 98%; - height: 100%; - position: absolute; - gap: var(--spacing-unit); - align-items: center; - background-color: var(--color-white); - box-shadow: var(--box-shadow); - right: 1%; - } -} diff --git a/src/components/specific/bcf/bcf-settings/setting-card/Extension.vue b/src/components/specific/bcf/bcf-settings/setting-card/Extension.vue deleted file mode 100644 index 06064f95a..000000000 --- a/src/components/specific/bcf/bcf-settings/setting-card/Extension.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-settings/setting-card/SettingCard.scss b/src/components/specific/bcf/bcf-settings/setting-card/SettingCard.scss deleted file mode 100644 index aaee87943..000000000 --- a/src/components/specific/bcf/bcf-settings/setting-card/SettingCard.scss +++ /dev/null @@ -1,23 +0,0 @@ -.setting-card { - background: var(--color-white); - box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); - &__header { - cursor: pointer; - &__length { - padding: 0 4px; - min-width: 21px; - height: 21px; - background-color: var(--color-primary); - color: var(--color-white); - border-radius: 50px; - font-size: 11px; - font-weight: 700; - } - } - &__content { - li { - height: 37px; - background-color: var(--color-silver-light); - } - } -} diff --git a/src/components/specific/bcf/bcf-settings/setting-card/SettingCard.vue b/src/components/specific/bcf/bcf-settings/setting-card/SettingCard.vue deleted file mode 100644 index 391475c6b..000000000 --- a/src/components/specific/bcf/bcf-settings/setting-card/SettingCard.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topic-creation-card/BcfTopicCreationCard.scss b/src/components/specific/bcf/bcf-topic-creation-card/BcfTopicCreationCard.scss deleted file mode 100644 index 24e18bff3..000000000 --- a/src/components/specific/bcf/bcf-topic-creation-card/BcfTopicCreationCard.scss +++ /dev/null @@ -1,15 +0,0 @@ -.create-bcf-topic { - &:deep() { - .bimdata-card__content { - width: 336px; - min-height: 290px; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - p { - font-size: 14px; - } - } - } -} diff --git a/src/components/specific/bcf/bcf-topic-creation-card/BcfTopicCreationCard.vue b/src/components/specific/bcf/bcf-topic-creation-card/BcfTopicCreationCard.vue deleted file mode 100644 index 6bc31e2a8..000000000 --- a/src/components/specific/bcf/bcf-topic-creation-card/BcfTopicCreationCard.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topic-creation-card/EmptyBcfTopic.vue b/src/components/specific/bcf/bcf-topic-creation-card/EmptyBcfTopic.vue deleted file mode 100644 index bd88c81f6..000000000 --- a/src/components/specific/bcf/bcf-topic-creation-card/EmptyBcfTopic.vue +++ /dev/null @@ -1,55 +0,0 @@ - diff --git a/src/components/specific/bcf/bcf-topic-grid-item/BcfTopicGridItem.scss b/src/components/specific/bcf/bcf-topic-grid-item/BcfTopicGridItem.scss deleted file mode 100644 index 554345a72..000000000 --- a/src/components/specific/bcf/bcf-topic-grid-item/BcfTopicGridItem.scss +++ /dev/null @@ -1,69 +0,0 @@ -.bcf-topic { - max-width: 600px; - position: relative; - &__header { - min-height: 204px; - box-shadow: var(--box-shadow); - &__infos { - height: 32px; - background-color: var(--color-white); - &__index { - padding: 3px; - min-width: 32px; - background-color: var(--color-silver); - color: var(--color-text); - } - &__title { - width: calc(100% - 32px - (12px * 2)); - color: var(--color-primary); - } - } - &__img { - height: calc(204px - 32px); - position: relative; - img { - width: 100%; - height: 100%; - object-fit: cover; - } - .no-img-topic { - width: 120px; - height: 120px; - } - &__status, - &__date { - position: absolute; - } - &__status { - border-radius: 3px; - left: 6px; - top: 6px; - } - &__date { - right: 0; - bottom: 0; - background-color: var(--color-white); - font-size: 11px; - } - } - } - &__content { - margin-top: 3px; - min-height: 98px; - background-color: var(--color-white); - box-shadow: var(--box-shadow); - color: var(--color-text); - font-size: 12px; - } - &__side-panel { - position: fixed; - top: 0; - right: 0; - width: 400px; - height: 100%; - padding: var(--spacing-unit); - box-shadow: var(--box-shadow); - background-color: var(--color-white); - z-index: 999; - } -} diff --git a/src/components/specific/bcf/bcf-topic-grid-item/BcfTopicGridItem.vue b/src/components/specific/bcf/bcf-topic-grid-item/BcfTopicGridItem.vue deleted file mode 100644 index 35a7c696b..000000000 --- a/src/components/specific/bcf/bcf-topic-grid-item/BcfTopicGridItem.vue +++ /dev/null @@ -1,213 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topics-list/BcfTopicsList.vue b/src/components/specific/bcf/bcf-topics-list/BcfTopicsList.vue deleted file mode 100644 index 9c28a6da3..000000000 --- a/src/components/specific/bcf/bcf-topics-list/BcfTopicsList.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - diff --git a/src/components/specific/bcf/bcf-topics-list/bcf-actions-cell/BcfActionsCell.scss b/src/components/specific/bcf/bcf-topics-list/bcf-actions-cell/BcfActionsCell.scss deleted file mode 100644 index 7ce76e373..000000000 --- a/src/components/specific/bcf/bcf-topics-list/bcf-actions-cell/BcfActionsCell.scss +++ /dev/null @@ -1,16 +0,0 @@ -.bcf-actions-cell { - .bimdata-btn { - margin: auto; - } - &__side-panel { - position: fixed; - top: 0; - right: 0; - width: 400px; - height: 100%; - padding: var(--spacing-unit); - box-shadow: var(--box-shadow); - background-color: var(--color-white); - z-index: 999; - } -} diff --git a/src/components/specific/bcf/bcf-topics-list/bcf-actions-cell/BcfActionsCell.vue b/src/components/specific/bcf/bcf-topics-list/bcf-actions-cell/BcfActionsCell.vue deleted file mode 100644 index cb4e0d481..000000000 --- a/src/components/specific/bcf/bcf-topics-list/bcf-actions-cell/BcfActionsCell.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topics-list/bcf-index-cell/BcfIndexCell.scss b/src/components/specific/bcf/bcf-topics-list/bcf-index-cell/BcfIndexCell.scss deleted file mode 100644 index 95368c123..000000000 --- a/src/components/specific/bcf/bcf-topics-list/bcf-index-cell/BcfIndexCell.scss +++ /dev/null @@ -1,3 +0,0 @@ -.bcf-priority-cell { - height: 44px; -} diff --git a/src/components/specific/bcf/bcf-topics-list/bcf-index-cell/BcfIndexCell.vue b/src/components/specific/bcf/bcf-topics-list/bcf-index-cell/BcfIndexCell.vue deleted file mode 100644 index 0f24e4cc8..000000000 --- a/src/components/specific/bcf/bcf-topics-list/bcf-index-cell/BcfIndexCell.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topics-list/bcf-priority-cell/BcfPriorityCell.scss b/src/components/specific/bcf/bcf-topics-list/bcf-priority-cell/BcfPriorityCell.scss deleted file mode 100644 index 95368c123..000000000 --- a/src/components/specific/bcf/bcf-topics-list/bcf-priority-cell/BcfPriorityCell.scss +++ /dev/null @@ -1,3 +0,0 @@ -.bcf-priority-cell { - height: 44px; -} diff --git a/src/components/specific/bcf/bcf-topics-list/bcf-priority-cell/BcfPriorityCell.vue b/src/components/specific/bcf/bcf-topics-list/bcf-priority-cell/BcfPriorityCell.vue deleted file mode 100644 index 0d97fabd8..000000000 --- a/src/components/specific/bcf/bcf-topics-list/bcf-priority-cell/BcfPriorityCell.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topics-list/bcf-status-cell/BcfStatusCell.scss b/src/components/specific/bcf/bcf-topics-list/bcf-status-cell/BcfStatusCell.scss deleted file mode 100644 index 95368c123..000000000 --- a/src/components/specific/bcf/bcf-topics-list/bcf-status-cell/BcfStatusCell.scss +++ /dev/null @@ -1,3 +0,0 @@ -.bcf-priority-cell { - height: 44px; -} diff --git a/src/components/specific/bcf/bcf-topics-list/bcf-status-cell/BcfStatusCell.vue b/src/components/specific/bcf/bcf-topics-list/bcf-status-cell/BcfStatusCell.vue deleted file mode 100644 index b9c18c6c7..000000000 --- a/src/components/specific/bcf/bcf-topics-list/bcf-status-cell/BcfStatusCell.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topics-list/columns.js b/src/components/specific/bcf/bcf-topics-list/columns.js deleted file mode 100644 index 945094edd..000000000 --- a/src/components/specific/bcf/bcf-topics-list/columns.js +++ /dev/null @@ -1,35 +0,0 @@ -export default [ - { - id: "index", - width: "5%", - align: "center" - }, - { - id: "priority", - width: "46px", - align: "center" - }, - { - id: "status", - width: "70px", - align: "center" - }, - { - id: "title", - width: "31%", - align: "left" - }, - { - id: "creator", - width: "24%" - }, - { - id: "date", - width: "17%" - }, - { - id: "actions", - width: "9%", - align: "center" - } -]; diff --git a/src/components/specific/bcf/bcf-topics-list/open-topic-issue/OpenTopicIssue.scss b/src/components/specific/bcf/bcf-topics-list/open-topic-issue/OpenTopicIssue.scss deleted file mode 100644 index 3e0c28d05..000000000 --- a/src/components/specific/bcf/bcf-topics-list/open-topic-issue/OpenTopicIssue.scss +++ /dev/null @@ -1,109 +0,0 @@ -.open-topic-issue { - height: 100%; - font-size: 12px; - &__header { - &__title { - font-size: 14px; - font-weight: 500; - } - } - &__content { - height: calc(100% - 32px); - overflow: auto; - &__subheader { - height: 27px; - &__index, - &__date { - height: 100%; - font-size: 12px; - } - &__index { - min-width: 50px; - } - &__date { - min-width: 103px; - background-color: var(--color-silver-light); - color: var(--color-primary); - } - } - &__img { - height: 295px; - min-height: 210px; - max-height: 295px; - position: relative; - background-color: var(--color-silver-light); - .carousel-list:deep() { - height: 100%; - .carousel-list__btn-previous { - left: 6px; - } - .carousel-list__btn-next { - right: 6px; - } - .carousel-list__container { - margin: 0; - padding: 0; - height: 100%; - &__slider { - height: 100% !important; - } - } - } - .img-preview { - width: 100%; - height: 100%; - max-height: 295px; - top: 0 !important; - img { - width: 100%; - height: 100%; - object-fit: cover; - } - } - &__status { - border-radius: 3px; - position: absolute; - left: 6px; - top: 6px; - z-index: 1; - } - img { - width: 100%; - height: 100%; - object-fit: cover; - } - .no-img-topic { - padding: 12px; - width: 170px; - height: 170px; - } - } - &__card { - box-shadow: var(--box-shadow); - line-height: 1.5; - span { - &:first-child { - margin-right: 3px; - font-weight: 500; - } - } - } - &__card { - & > .flex { - span { - font-weight: 700; - } - } - } - &:deep() { - .bimdata-input { - input { - font-size: 13px; - } - } - .bimdata-select { - font-size: 13px; - } - } - } -} diff --git a/src/components/specific/bcf/bcf-topics-list/open-topic-issue/OpenTopicIssue.vue b/src/components/specific/bcf/bcf-topics-list/open-topic-issue/OpenTopicIssue.vue deleted file mode 100644 index 1ac370dd1..000000000 --- a/src/components/specific/bcf/bcf-topics-list/open-topic-issue/OpenTopicIssue.vue +++ /dev/null @@ -1,404 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topics-metrics/BcfTopicsMetrics.scss b/src/components/specific/bcf/bcf-topics-metrics/BcfTopicsMetrics.scss deleted file mode 100644 index b9dc472c0..000000000 --- a/src/components/specific/bcf/bcf-topics-metrics/BcfTopicsMetrics.scss +++ /dev/null @@ -1,33 +0,0 @@ -.bcf-topics-metrics { - height: 100%; - &__content { - position: relative; - height: inherit; - .bimdata-graph { - flex: 1; - } - &__legend { - height: 100%; - max-width: 300px; - flex-wrap: wrap; - flex: 1; - gap: 12px; - flex-direction: column; - font-size: 14px; - overflow: auto; - span > span { - font-size: 13px; - } - .bimdata-paginated-list:deep() { - line-height: 24px; - ul:first-child { - min-height: 144px; - li { - display: flex; - align-items: center; - } - } - } - } - } -} diff --git a/src/components/specific/bcf/bcf-topics-metrics/BcfTopicsMetrics.vue b/src/components/specific/bcf/bcf-topics-metrics/BcfTopicsMetrics.vue deleted file mode 100644 index edcb982a2..000000000 --- a/src/components/specific/bcf/bcf-topics-metrics/BcfTopicsMetrics.vue +++ /dev/null @@ -1,132 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/bcf-topics-metrics/EmptyBcfStats.vue b/src/components/specific/bcf/bcf-topics-metrics/EmptyBcfStats.vue deleted file mode 100644 index 97300c0ff..000000000 --- a/src/components/specific/bcf/bcf-topics-metrics/EmptyBcfStats.vue +++ /dev/null @@ -1,550 +0,0 @@ - diff --git a/src/components/specific/bcf/create-bcf-topic/CreateBcfTopic.scss b/src/components/specific/bcf/create-bcf-topic/CreateBcfTopic.scss deleted file mode 100644 index 2029a33af..000000000 --- a/src/components/specific/bcf/create-bcf-topic/CreateBcfTopic.scss +++ /dev/null @@ -1,144 +0,0 @@ -.create-bcf-topic { - padding: 0 12px 12px 0; - height: 100%; - flex-direction: column; - overflow: auto; - overflow-x: hidden; - &__header, - &__image, - &__content, - &__footer { - width: 100%; - } - &__header { - height: 27px; - font-size: 12px; - &__index, - &__date { - height: 100%; - padding: 3px; - background-color: var(--color-silver-light); - } - &__index { - min-width: 50px; - } - &__date { - min-width: 103px; - } - } - &__image { - min-height: 210px; - max-height: 295px; - &.no-img { - height: 210px; - border: 2px dashed #d8d8d8; - } - .img-previews { - min-height: 210px; - max-height: 295px; - grid-template-columns: repeat(3, 1fr); - width: 100%; - display: grid; - gap: 10px; - .img-preview { - position: relative; - img { - width: 100%; - height: 100%; - object-fit: cover; - } - .img__btn-previous, - .img__btn-next, - .remove-viewpoint { - position: absolute; - top: calc(50% - (32px / 2)); - } - .remove-viewpoint { - left: calc(50% - (32px / 2)); - } - .img__btn-previous { - left: -4%; - } - .img__btn-next { - right: -4%; - } - &:first-child { - height: 210px; - grid-area: 1 / 1 / 2 / 5; - } - &:nth-child(2) { - height: 75px; - grid-area: 2 / 1 / 3 / 2; - } - &:nth-child(3) { - height: 75px; - grid-area: 2 / 2 / 3 / 3; - } - &:nth-child(4) { - height: 75px; - grid-area: 2 / 3 / 3 / 4; - } - } - } - .img-input { - width: 100%; - height: 100%; - span { - width: 52px; - height: 52px; - background-color: var(--color-silver-light); - border-radius: 50px; - } - .bimdata-btn { - label:not([disabled]) { - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - } - } - } - } - &__add-img { - label { - width: 100%; - height: 32px; - cursor: pointer; - } - input:disabled + label { - cursor: auto; - } - } - &__content { - .bimdata-input, - .bimdata-select, - .bimdata-textarea { - margin: 30px 0; - } - &:deep() { - .bimdata-input { - input { - color: var(--color-primary); - font-size: 13px; - } - } - .bimdata-select { - font-size: 13px; - } - .bimdata-textarea { - textarea { - font-family: var(--primary-font); - color: var(--color-primary); - font-size: 13px; - } - } - } - .due-date { - p { - font-size: 11px; - } - } - } -} diff --git a/src/components/specific/bcf/create-bcf-topic/CreateBcfTopic.vue b/src/components/specific/bcf/create-bcf-topic/CreateBcfTopic.vue deleted file mode 100644 index 8070b848d..000000000 --- a/src/components/specific/bcf/create-bcf-topic/CreateBcfTopic.vue +++ /dev/null @@ -1,341 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/create-bcf-topic/tags-input/TagsInput.scss b/src/components/specific/bcf/create-bcf-topic/tags-input/TagsInput.scss deleted file mode 100644 index fbb7917fb..000000000 --- a/src/components/specific/bcf/create-bcf-topic/tags-input/TagsInput.scss +++ /dev/null @@ -1,15 +0,0 @@ -ul { - display: flex; - align-items: center; - gap: 6px; - flex-wrap: wrap; - font-size: 12px; - .tag { - background: var(--color-silver); - border-radius: 3px; - color: var(--color-granite); - svg { - cursor: pointer; - } - } -} diff --git a/src/components/specific/bcf/create-bcf-topic/tags-input/TagsInput.vue b/src/components/specific/bcf/create-bcf-topic/tags-input/TagsInput.vue deleted file mode 100644 index 688ca0d13..000000000 --- a/src/components/specific/bcf/create-bcf-topic/tags-input/TagsInput.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - diff --git a/src/components/specific/bcf/edit-bcf-topic/EditBcfTopic.scss b/src/components/specific/bcf/edit-bcf-topic/EditBcfTopic.scss deleted file mode 100644 index 60b08351a..000000000 --- a/src/components/specific/bcf/edit-bcf-topic/EditBcfTopic.scss +++ /dev/null @@ -1,133 +0,0 @@ -.edit-bcf-topic { - height: 100%; - &__header { - span { - width: calc(100% - 54px - 12px); - } - } - &__content { - height: calc(100% - 32px - 32px - 12px); - overflow: auto; - &__subheader { - height: 27px; - font-size: 12px; - &__index, - &__date { - height: 100%; - background-color: var(--color-silver-light); - } - &__index { - min-width: 27px; - } - } - &__image:not(.no-img) { - min-height: 42px; - position: relative; - img { - width: 100%; - } - .img-previews { - min-height: 210px; - max-height: 295px; - grid-template-columns: repeat(3, 1fr); - width: 100%; - display: grid; - grid-column-gap: 10px; - grid-row-gap: 10px; - .img-preview { - position: relative; - img { - width: 100%; - height: 100%; - object-fit: cover; - } - .remove-viewpoint { - position: absolute; - top: calc(50% - (32px / 2)); - left: calc(50% - (32px / 2)); - } - &:first-child { - height: 210px; - grid-area: 1 / 1 / 2 / 5; - } - &:nth-child(2) { - height: 75px; - grid-area: 2 / 1 / 3 / 2; - } - &:nth-child(3) { - height: 75px; - grid-area: 2 / 2 / 3 / 3; - } - &:nth-child(4) { - height: 75px; - grid-area: 2 / 3 / 3 / 4; - } - } - } - } - .no-img { - height: 210px; - border: 2px dashed #d8d8d8; - .img-input { - width: 100%; - height: 100%; - span { - width: 52px; - height: 52px; - background-color: var(--color-silver-light); - border-radius: 50px; - } - .bimdata-btn { - label:not([disabled]) { - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - } - } - } - } - &__content { - &:deep() { - .bimdata-input { - input { - color: var(--color-granite); - font-size: 13px; - } - } - .bimdata-select { - margin: 30px 0; - font-size: 13px; - } - .bimdata-textarea { - textarea { - font-family: var(--primary-font); - color: var(--color-granite); - font-size: 13px; - } - } - } - } - &__add-img { - label { - width: 100%; - height: 32px; - cursor: pointer; - } - input:disabled + label { - cursor: auto; - } - } - } - .overlay { - position: absolute; - left: 0; - top: 0; - background-color: rgba(47, 55, 74, 0.9); - height: 100%; - width: 100%; - z-index: 10; - } -} diff --git a/src/components/specific/bcf/edit-bcf-topic/EditBcfTopic.vue b/src/components/specific/bcf/edit-bcf-topic/EditBcfTopic.vue deleted file mode 100644 index f73eaf740..000000000 --- a/src/components/specific/bcf/edit-bcf-topic/EditBcfTopic.vue +++ /dev/null @@ -1,426 +0,0 @@ - - - - - diff --git a/src/components/specific/bcf/edit-bcf-topic/edit-bcf-topic-modal/EditBcfTopicModal.scss b/src/components/specific/bcf/edit-bcf-topic/edit-bcf-topic-modal/EditBcfTopicModal.scss deleted file mode 100644 index b4a667df8..000000000 --- a/src/components/specific/bcf/edit-bcf-topic/edit-bcf-topic-modal/EditBcfTopicModal.scss +++ /dev/null @@ -1,22 +0,0 @@ -.overlay { - position: absolute; - left: 0; - top: 0; - background-color: rgba(47, 55, 74, 0.9); - height: 100%; - width: 100%; - z-index: 10; -} -.edit-modal { - flex-direction: column; - height: auto; - background-color: var(--color-white); - width: 90%; - box-shadow: var(--box-shadow); - &__btns { - width: 100%; - .bimdata-btn { - padding: 0 10px; - } - } -} diff --git a/src/components/specific/bcf/edit-bcf-topic/edit-bcf-topic-modal/EditBcfTopicModal.vue b/src/components/specific/bcf/edit-bcf-topic/edit-bcf-topic-modal/EditBcfTopicModal.vue deleted file mode 100644 index 24228fa15..000000000 --- a/src/components/specific/bcf/edit-bcf-topic/edit-bcf-topic-modal/EditBcfTopicModal.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - - diff --git a/src/services/BcfService.js b/src/services/BcfService.js index 08f744a18..a8b9e319d 100644 --- a/src/services/BcfService.js +++ b/src/services/BcfService.js @@ -1,8 +1,6 @@ import apiClient from "./api-client.js"; class BcfService { - // --- BCF Topics API --- - async fetchProjectTopics(project) { try { return await apiClient.bcfApi.getTopics(project.id); @@ -11,65 +9,37 @@ class BcfService { } } - async fetchTopicViewpoints(project, topic, imgFormat = null) { + async fetchTopicViewpoints(project, topic, imgFormat = "url") { try { return await apiClient.bcfApi.getTopicViewpoints( project.id, topic.guid, - imgFormat ? "url" : null + imgFormat ); } catch (error) { console.log(error); } } - async createTopic(project, topic) { - try { - return await apiClient.bcfApi.createTopic(project.id, topic); - } catch (error) { - console.log(error); - } - } - - async createFullTopic(project, topic) { - try { - return await apiClient.bcfApi.createFullTopic(project.id, topic); - } catch (error) { - console.log(error); - } - } - - async updateFullTopic(project, topic, data) { + async fetchTopicComments(project, topic) { try { - return await apiClient.bcfApi.updateFullTopic( - topic.guid, - project.id, - data - ); + return await apiClient.bcfApi.getComments(project.id, topic.guid); } catch (error) { console.log(error); } } - async createViewpoint(project, topic, viewpoint) { + async fetchExtensions(project) { try { - return await apiClient.bcfApi.createViewpoint( - project.id, - topic.guid, - viewpoint - ); + return await apiClient.bcfApi.getExtensions(project.id); } catch (error) { console.log(error); } } - async deleteViewpoint(project, topic, viewpoint) { + async fetchDetailedExtensions(project) { try { - return await apiClient.bcfApi.deleteViewpoint( - viewpoint.guid, - project.id, - topic.guid - ); + return await apiClient.bcfApi.getDetailedExtensions(project.id); } catch (error) { console.log(error); } @@ -102,112 +72,6 @@ class BcfService { console.log(error); } } - - // --- BCF Extensions API --- - - async fetchExtensions(project) { - try { - return await apiClient.bcfApi.getExtensions(project.id); - } catch (error) { - console.log(error); - } - } - - async fetchDetailedExtensions(project) { - try { - return await apiClient.bcfApi.getDetailedExtensions(project.id); - } catch (error) { - console.log(error); - } - } - - async createExtension(project, extensionType, data) { - try { - return await apiClient.bcfApi["createExtension" + extensionType]( - project.id, - data - ); - } catch (error) { - console.log(error); - } - } - - async updateExtension(project, extensionType, extensionId, data) { - try { - return await apiClient.bcfApi["updateExtension" + extensionType]( - extensionId, - project.id, - data - ); - } catch (error) { - console.log(error); - } - } - - async deleteExtension(project, extensionType, extension) { - try { - return await apiClient.bcfApi["deleteExtension" + extensionType]( - extension.id, - project.id - ); - } catch (error) { - console.log(error); - } - } - - async deleteTopic(project, topic) { - try { - return await apiClient.bcfApi.deleteTopic({ - projectsPk: project.id, - guid: topic.guid - }); - } catch (error) { - console.log(error); - } - } - - // --- BCF Topic Comments API --- - - async fetchAllComments(project, topic) { - try { - return await apiClient.bcfApi.getComments(project.id, topic.guid); - } catch (error) { - console.log(error); - } - } - - async createComment(project, topic, data) { - try { - return await apiClient.bcfApi.createComment(project.id, topic.guid, data); - } catch (error) { - console.log(error); - } - } - - async updateComment(project, topic, comment, data) { - try { - return await apiClient.bcfApi.updateComment( - comment.guid, - project.id, - topic.guid, - data - ); - } catch (error) { - console.log(error); - } - } - - async deleteComment(project, topic, comment) { - try { - return await apiClient.bcfApi.deleteComment( - comment.guid, - project.id, - topic.guid - ); - } catch (error) { - console.log(error); - } - } } const service = new BcfService(); diff --git a/src/state/bcf.js b/src/state/bcf.js index c76c1457c..38112f23c 100644 --- a/src/state/bcf.js +++ b/src/state/bcf.js @@ -21,21 +21,17 @@ const state = reactive({ } }); -// --- BCF Topics --- - const loadBcfTopics = async project => { const topics = await BcfService.fetchProjectTopics(project); let topicsWithViewpoints = []; topicsWithViewpoints = await mapLimit(topics, 10, async topic => { - const viewpoints = await BcfService.fetchTopicViewpoints( + topic.viewpoints = await BcfService.fetchTopicViewpoints( project, topic, "url" ); - - topic.viewpoints = viewpoints; return topic; }); @@ -44,58 +40,13 @@ const loadBcfTopics = async project => { return topicsWithViewpoints; }; -// const createTopic = async (project, topic) => { -// const newTopic = await BcfService.createTopic(project, topic); -// await loadBcfTopics(project); -// return newTopic; -// }; - -// const createFullTopic = async (project, topic) => { -// const newTopic = await BcfService.createFullTopic(project, topic); -// await loadBcfTopics(project); -// return newTopic; -// }; - -// const updateTopic = async (project, bcfTopic, topic) => { -// const newTopic = await BcfService.updateFullTopic(project, bcfTopic, topic); -// await loadBcfTopics(project); -// return newTopic; -// }; - -// const deleteTopic = async (project, topic) => { -// await BcfService.deleteTopic(project, topic); -// await loadBcfTopics(project); -// return topic; -// }; - -// const createViewpoint = async (project, topic, viewpoint) => { -// const newViewpoint = await BcfService.createViewpoint( -// project, -// topic, -// viewpoint -// ); -// await loadBcfTopics(project); -// return newViewpoint; -// }; - -// const deleteViewpoint = (project, topic, viewpoint) => { -// return BcfService.deleteViewpoint(project, topic, viewpoint); -// // We don't want to reload topic here because this method may be called many times in parallel -// }; - -const importBcf = async (project, file) => { - const bcf = await BcfService.importBcf(project, file); - await loadBcfTopics(project); - await loadDetailedExtensions(project); - return bcf; -}; - -const exportBcf = project => { - return BcfService.exportBcf(project); +const loadBcfTopicComments = async (project, topic) => { + const comments = await BcfService.fetchTopicComments(project, topic); + comments.sort((a, b) => (a.date.getTime() > b.date.getTime() ? -1 : 1)); + topic.comments = comments; + return comments; }; -// --- BCF Extensions --- - const loadExtensions = async project => { const extensions = await BcfService.fetchExtensions(project); state.extensions = extensions; @@ -108,68 +59,16 @@ const loadDetailedExtensions = async project => { return detailedExtensions; }; -// const createExtension = async (project, extensionType, data) => { -// const newExtension = await BcfService.createExtension( -// project, -// extensionType, -// data -// ); -// await loadDetailedExtensions(project); -// return newExtension; -// }; - -// const updateExtension = async (project, extensionType, id, priority) => { -// const newExtension = await BcfService.updateExtension( -// project, -// extensionType, -// id, -// priority -// ); -// await loadDetailedExtensions(project); -// return newExtension; -// }; - -// const deleteExtension = async (project, extensionType, priority) => { -// const newExtension = await BcfService.deleteExtension( -// project, -// extensionType, -// priority -// ); -// await loadDetailedExtensions(project); -// return newExtension; -// }; - -// --- BCF Topic Comments --- - -const loadBcfTopicComments = async (project, topic) => { - let comments = await BcfService.fetchAllComments(project, topic); - comments.sort((a, b) => (a.date.getTime() > b.date.getTime() ? -1 : 1)); - topic.comments = comments; - return comments; +const importBcf = async (project, file) => { + const bcf = await BcfService.importBcf(project, file); + await loadBcfTopics(project); + await loadDetailedExtensions(project); + return bcf; }; -// const createComment = async (project, topic, data) => { -// const newComment = await BcfService.createComment(project, topic, data); -// await loadTopicComments(project, topic); -// return newComment; -// }; - -// const deleteComment = async (project, topic, comment) => { -// const newComment = await BcfService.deleteComment(project, topic, comment); -// await loadTopicComments(project, topic); -// return newComment; -// }; - -// const updateComment = async (project, topic, comment, data) => { -// const newComment = await BcfService.updateComment( -// project, -// topic, -// comment, -// data -// ); -// await loadTopicComments(project, topic); -// return newComment; -// }; +const exportBcf = project => { + return BcfService.exportBcf(project); +}; export function useBcf() { const readonlyState = shallowReadonly(state); @@ -178,22 +77,10 @@ export function useBcf() { ...toRefs(readonlyState), // Methods loadBcfTopics, - // createTopic, - // createFullTopic, - // updateTopic, - // deleteTopic, - // createViewpoint, - // deleteViewpoint, - importBcf, - exportBcf, + loadBcfTopicComments, loadExtensions, loadDetailedExtensions, - // createExtension, - // updateExtension, - // deleteExtension, - loadBcfTopicComments - // createComment, - // updateComment, - // deleteComment + importBcf, + exportBcf }; }