@icij/murmur-next 4.0.0 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -19
- package/dist/lib/components/AccordionStep.vue.d.ts +79 -0
- package/dist/lib/components/AccordionWrapper.vue.d.ts +33 -0
- package/dist/lib/components/ActiveTextTruncate.vue.d.ts +101 -0
- package/dist/lib/components/AdvancedLinkForm.vue.d.ts +168 -0
- package/dist/lib/components/Brand.vue.d.ts +55 -0
- package/dist/lib/components/BrandExpansion.vue.d.ts +105 -0
- package/dist/lib/components/ConfirmButton.vue.d.ts +158 -0
- package/dist/lib/components/ContentPlaceholder.vue.d.ts +44 -0
- package/dist/lib/components/CustomPagination.vue.d.ts +130 -0
- package/dist/lib/components/DigitsInput.vue.d.ts +66 -0
- package/dist/lib/components/DonateForm.vue.d.ts +46 -0
- package/dist/lib/components/EmbedForm.vue.d.ts +121 -0
- package/dist/lib/components/EmbeddableFooter.vue.d.ts +103 -0
- package/dist/lib/components/FollowUsPopover.vue.d.ts +16 -0
- package/dist/lib/components/GenericFooter.vue.d.ts +47 -0
- package/dist/lib/components/GenericHeader.vue.d.ts +928 -0
- package/dist/lib/components/HapticCopy.vue.d.ts +156 -0
- package/dist/lib/components/ImddbHeader.vue.d.ts +960 -0
- package/dist/lib/components/OrdinalLegend.vue.d.ts +87 -0
- package/dist/lib/components/RangePicker.vue.d.ts +196 -0
- package/dist/lib/components/ResponsiveIframe.vue.d.ts +45 -0
- package/dist/lib/components/ScaleLegend.vue.d.ts +101 -0
- package/dist/lib/components/SecretInput.vue.d.ts +99 -0
- package/dist/lib/components/SelectableDropdown.vue.d.ts +210 -0
- package/dist/lib/components/SharingOptions.vue.d.ts +153 -0
- package/dist/lib/components/SharingOptionsLink.vue.d.ts +200 -0
- package/dist/lib/components/SignUpForm.vue.d.ts +141 -0
- package/dist/lib/components/SlideUpDown.vue.d.ts +74 -0
- package/dist/lib/components/TexturedDeck.vue.d.ts +89 -0
- package/dist/lib/components/TinyPagination.vue.d.ts +188 -0
- package/dist/lib/composables/chart.d.ts +48 -0
- package/dist/lib/composables/resizeObserver.d.ts +22 -0
- package/dist/lib/composables/sendEmail.d.ts +6 -0
- package/dist/lib/config.d.ts +19 -0
- package/dist/lib/config.default.d.ts +34 -0
- package/dist/lib/datavisualisations/BarChart.vue.d.ts +234 -0
- package/dist/lib/datavisualisations/ColumnChart.vue.d.ts +404 -0
- package/dist/lib/datavisualisations/LineChart.vue.d.ts +200 -0
- package/dist/lib/datavisualisations/StackedBarChart.vue.d.ts +342 -0
- package/dist/lib/datavisualisations/StackedColumnChart.vue.d.ts +412 -0
- package/dist/lib/enums.d.ts +32 -0
- package/dist/lib/i18n.d.ts +4 -0
- package/dist/lib/keys.d.ts +2 -0
- package/dist/lib/main.d.ts +52 -0
- package/dist/lib/maps/ChoroplethMap.vue.d.ts +460 -0
- package/dist/lib/maps/ChoroplethMapAnnotation.vue.d.ts +188 -0
- package/dist/lib/maps/SymbolMap.vue.d.ts +276 -0
- package/dist/lib/murmur.css +1 -0
- package/dist/lib/murmur.js +44661 -0
- package/dist/lib/murmur.js.map +1 -0
- package/dist/lib/murmur.umd.cjs +837 -0
- package/dist/lib/murmur.umd.cjs.map +1 -0
- package/dist/lib/types.d.ts +44 -0
- package/dist/lib/utils/animation.d.ts +8 -0
- package/dist/lib/utils/assets.d.ts +2 -0
- package/dist/lib/utils/clipboard.d.ts +2 -0
- package/dist/lib/utils/iframe-resizer.d.ts +10 -0
- package/dist/lib/utils/placeholder.d.ts +12 -0
- package/dist/lib/utils/placeholderTypes.d.ts +18 -0
- package/dist/lib/utils/strings.d.ts +1 -0
- package/lib/components/AccordionStep.vue +53 -42
- package/lib/components/AccordionWrapper.vue +25 -24
- package/lib/components/ActiveTextTruncate.vue +44 -22
- package/lib/components/AdvancedLinkForm.vue +96 -46
- package/lib/components/Brand.vue +30 -23
- package/lib/components/BrandExpansion.vue +12 -3
- package/lib/components/ConfirmButton.vue +30 -26
- package/lib/components/ContentPlaceholder.vue +11 -7
- package/lib/components/CustomPagination.vue +50 -32
- package/lib/components/DigitsInput.vue +64 -60
- package/lib/components/DonateForm.vue +112 -83
- package/lib/components/EmbedForm.vue +37 -21
- package/lib/components/EmbeddableFooter.vue +14 -10
- package/lib/components/FollowUsPopover.vue +42 -40
- package/lib/components/GenericFooter.vue +98 -23
- package/lib/components/GenericHeader.vue +66 -29
- package/lib/components/HapticCopy.vue +41 -29
- package/lib/components/ImddbHeader.vue +113 -92
- package/lib/components/OrdinalLegend.vue +43 -20
- package/lib/components/RangePicker.vue +63 -42
- package/lib/components/ResponsiveIframe.vue +9 -2
- package/lib/components/ScaleLegend.vue +56 -18
- package/lib/components/SecretInput.vue +7 -8
- package/lib/components/SelectableDropdown.vue +119 -74
- package/lib/components/SharingOptions.vue +93 -36
- package/lib/components/SharingOptionsLink.vue +11 -5
- package/lib/components/SignUpForm.vue +44 -23
- package/lib/components/SlideUpDown.vue +7 -2
- package/lib/components/TexturedDeck.vue +24 -14
- package/lib/components/TinyPagination.vue +35 -22
- package/lib/composables/chart.ts +174 -157
- package/lib/composables/resizeObserver.ts +29 -29
- package/lib/composables/sendEmail.ts +53 -42
- package/lib/config.default.ts +17 -10
- package/lib/config.ts +34 -27
- package/lib/datavisualisations/BarChart.vue +48 -42
- package/lib/datavisualisations/ColumnChart.vue +133 -89
- package/lib/datavisualisations/LineChart.vue +79 -57
- package/lib/datavisualisations/StackedBarChart.vue +116 -68
- package/lib/datavisualisations/StackedColumnChart.vue +196 -115
- package/lib/enums.ts +25 -15
- package/lib/i18n.ts +3 -3
- package/lib/keys.ts +2 -2
- package/lib/main.ts +14 -10
- package/lib/maps/ChoroplethMap.vue +299 -160
- package/lib/maps/ChoroplethMapAnnotation.vue +29 -18
- package/lib/maps/SymbolMap.vue +194 -123
- package/lib/shims-bootstrap-vue.d.ts +1 -1
- package/lib/shims-vue.d.ts +3 -3
- package/lib/styles/functions.scss +10 -6
- package/lib/styles/lib.scss +2 -4
- package/lib/styles/mixins.scss +8 -8
- package/lib/styles/utilities.scss +1 -1
- package/lib/styles/variables.scss +24 -18
- package/lib/types.ts +26 -10
- package/lib/utils/animation.ts +4 -4
- package/lib/utils/assets.ts +31 -28
- package/lib/utils/clipboard.ts +16 -10
- package/lib/utils/iframe-resizer.ts +18 -13
- package/lib/utils/placeholder.ts +54 -23
- package/lib/utils/placeholderTypes.ts +3 -3
- package/package.json +21 -2
- package/.github/workflows/deploy-github-pages.yaml +0 -50
- package/.storybook/app.scss +0 -14
- package/.storybook/doc_variables.scss +0 -20
- package/.storybook/main.ts +0 -35
- package/.storybook/preview-head.html +0 -2
- package/.storybook/preview.ts +0 -32
- package/deploy.js +0 -15
- package/docs/components/ApiTable.vue +0 -171
- package/docs/components/App.vue +0 -146
- package/docs/components/CollapsibleBlock.vue +0 -122
- package/docs/components/DocsHeader.vue +0 -68
- package/docs/components/DocsMenu.vue +0 -201
- package/docs/components/DocsMenuSection.vue +0 -109
- package/docs/components/EditLink.vue +0 -49
- package/docs/components/OutboundLink.vue +0 -13
- package/docs/components/PalettePresenter.vue +0 -96
- package/docs/components/RepositoryLink.vue +0 -28
- package/docs/components/SampleCard.vue +0 -119
- package/docs/main.js +0 -42
- package/docs/pages/components/accordion/doc.md +0 -96
- package/docs/pages/components/active-text-truncate/doc.md +0 -44
- package/docs/pages/components/advanced-link-form/doc.md +0 -105
- package/docs/pages/components/brand/doc.md +0 -30
- package/docs/pages/components/brand-expansion/doc.md +0 -70
- package/docs/pages/components/confirm-button/doc.md +0 -91
- package/docs/pages/components/content-placeholder/doc.md +0 -16
- package/docs/pages/components/custom-pagination/doc.md +0 -61
- package/docs/pages/components/digits-input/doc.md +0 -28
- package/docs/pages/components/donate-form/doc.md +0 -20
- package/docs/pages/components/embed-form/doc.md +0 -22
- package/docs/pages/components/embeddable-footer/doc.md +0 -60
- package/docs/pages/components/follow-us-popover/doc.md +0 -5
- package/docs/pages/components/generic-footer/doc.md +0 -21
- package/docs/pages/components/generic-header/doc.md +0 -24
- package/docs/pages/components/haptic-copy/doc.md +0 -27
- package/docs/pages/components/imddb-header/doc.md +0 -23
- package/docs/pages/components/ordinal-legend/doc.md +0 -44
- package/docs/pages/components/range-picker/doc.md +0 -86
- package/docs/pages/components/responsive-iframe/doc.md +0 -13
- package/docs/pages/components/scale-legend/doc.md +0 -65
- package/docs/pages/components/secret-input/doc.md +0 -12
- package/docs/pages/components/selectable-dropdown/doc.md +0 -156
- package/docs/pages/components/sharing-options/doc.md +0 -13
- package/docs/pages/components/sharing-options-link/doc.md +0 -36
- package/docs/pages/components/sign-up-form/doc.md +0 -13
- package/docs/pages/components/slide-up-down/doc.md +0 -28
- package/docs/pages/components/textured-deck/doc.md +0 -78
- package/docs/pages/components/tiny-pagination/doc.md +0 -92
- package/docs/pages/datavisualisation/bars/doc.md +0 -110
- package/docs/pages/datavisualisation/columns/doc.md +0 -165
- package/docs/pages/datavisualisation/lines/doc.md +0 -139
- package/docs/pages/datavisualisation/stacked-bar/doc.md +0 -160
- package/docs/pages/datavisualisation/stacked-column/doc.md +0 -191
- package/docs/pages/getting-started/about-icij/doc.md +0 -13
- package/docs/pages/getting-started/custom-bootstrap/doc.md +0 -36
- package/docs/pages/getting-started/installation-guide/doc.md +0 -59
- package/docs/pages/getting-started/internationalization/doc.md +0 -74
- package/docs/pages/maps/choropleth-map/doc.md +0 -420
- package/docs/pages/maps/choropleth-map-annotation/doc.md +0 -373
- package/docs/pages/maps/symbol-map/doc.md +0 -203
- package/docs/pages/structure/breakpoints/doc.md +0 -3
- package/docs/pages/structure/grid/doc.md +0 -3
- package/docs/pages/utilities/assets/doc.md +0 -138
- package/docs/pages/utilities/config/doc.md +0 -52
- package/docs/pages/utilities/iframes/doc.md +0 -3
- package/docs/pages/visual/colors/doc.md +0 -31
- package/docs/pages/visual/iconography/doc.md +0 -56
- package/docs/pages/visual/states/doc.md +0 -77
- package/docs/pages/visual/themes/doc.md +0 -3
- package/docs/pages/visual/typography/doc.md +0 -71
- package/docs/routes.js +0 -25
- package/docs/store/index.js +0 -21
- package/docs/styles/app.scss +0 -36
- package/docs/styles/variables.scss +0 -20
- package/loaders/highlight-loader.js +0 -13
- package/loaders/markdown-loader.js +0 -91
- package/loaders/metadata-loader.js +0 -18
- package/loaders/sass-extract-loader.js +0 -14
- package/loaders/vue-docgen-loader.js +0 -14
- package/plugins/MdPluginTypes.ts +0 -10
- package/plugins/docs.ts +0 -50
- package/plugins/front-matter.ts +0 -36
- package/plugins/highlight.ts +0 -27
- package/plugins/markdown-it/api-table.ts +0 -25
- package/plugins/markdown-it/sample-card.ts +0 -31
- package/plugins/plugin-delete.ts +0 -47
- package/plugins/plugin-docgen.ts +0 -23
- package/plugins/sass-vars.ts +0 -25
- package/plugins/vue-docgen.ts +0 -29
- package/public/android-chrome-192x192.png +0 -0
- package/public/android-chrome-512x512.png +0 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/assets/img/arrow-bottom.svg +0 -3
- package/public/assets/img/texture-brick-black.jpg +0 -0
- package/public/assets/img/texture-brick.jpg +0 -0
- package/public/assets/img/texture-carbon-black.jpg +0 -0
- package/public/assets/img/texture-carbon.jpg +0 -0
- package/public/assets/img/texture-crack-black.jpg +0 -0
- package/public/assets/img/texture-crack.jpg +0 -0
- package/public/assets/img/texture-rock-black.jpg +0 -0
- package/public/assets/img/texture-rock.jpg +0 -0
- package/public/assets/img/texture-sand-black.jpg +0 -0
- package/public/assets/img/texture-sand.jpg +0 -0
- package/public/assets/img/texture-silk-black.jpg +0 -0
- package/public/assets/img/texture-silk.jpg +0 -0
- package/public/assets/topojson/france-departments.json +0 -1
- package/public/assets/topojson/paris-arrondissements.json +0 -1
- package/public/assets/topojson/world-countries-sans-antarctica.json +0 -1
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/site.webmanifest +0 -1
- package/stories/assets/code-brackets.svg +0 -1
- package/stories/assets/colors.svg +0 -1
- package/stories/assets/comments.svg +0 -1
- package/stories/assets/direction.svg +0 -1
- package/stories/assets/flow.svg +0 -1
- package/stories/assets/plugin.svg +0 -1
- package/stories/assets/repo.svg +0 -1
- package/stories/assets/stackalt.svg +0 -1
- package/stories/getting-started/about-icij.mdx +0 -14
- package/stories/getting-started/custom-bootstrap.mdx +0 -23
- package/stories/getting-started/installation-guide.mdx +0 -62
- package/stories/getting-started/internationalization.mdx +0 -63
- package/stories/murmur/components/AccordionStep.stories.ts +0 -33
- package/stories/murmur/components/AccordionWrapper.stories.ts +0 -69
- package/stories/murmur/components/ActiveTextTruncate.stories.ts +0 -32
- package/stories/murmur/components/AdvancedLinkForm.stories.ts +0 -77
- package/stories/murmur/components/Brand.stories.ts +0 -30
- package/stories/murmur/components/BrandExpansion.stories.ts +0 -41
- package/stories/murmur/components/ConfirmButton.stories.ts +0 -40
- package/stories/murmur/components/ContentPlaceholder.stories.ts +0 -41
- package/stories/murmur/components/CustomPagination.stories.ts +0 -42
- package/stories/murmur/components/DigitsInput.stories.ts +0 -29
- package/stories/murmur/components/DonateForm.stories.ts +0 -29
- package/stories/murmur/components/EmbedForm.stories.ts +0 -35
- package/stories/murmur/components/EmbeddableFooter.stories.ts +0 -59
- package/stories/murmur/components/FollowUsPopover.stories.ts +0 -24
- package/stories/murmur/components/GenericFooter.stories.ts +0 -27
- package/stories/murmur/components/GenericHeader.stories.ts +0 -27
- package/stories/murmur/components/HapticCopy.stories.ts +0 -40
- package/stories/murmur/components/ImddbHeader.stories.ts +0 -27
- package/stories/murmur/components/OrdinalLegend.stories.ts +0 -49
- package/stories/murmur/components/RangePicker.stories.ts +0 -98
- package/stories/murmur/components/ResponsiveIframe.stories.ts +0 -24
- package/stories/murmur/components/ScaleLegend.stories.ts +0 -65
- package/stories/murmur/components/SecretInput.stories.ts +0 -60
- package/stories/murmur/components/SelectableDropdown.stories.ts +0 -143
- package/stories/murmur/components/SharingOptions.stories.ts +0 -32
- package/stories/murmur/components/SharingOptionsLink.stories.ts +0 -53
- package/stories/murmur/components/SignUpForm.stories.ts +0 -51
- package/stories/murmur/components/SlideUpDown.stories.ts +0 -32
- package/stories/murmur/components/TexturedDeck.stories.ts +0 -83
- package/stories/murmur/components/TinyPagination.stories.ts +0 -65
- package/stories/murmur/datavisualisations/BarChart.stories.ts +0 -54
- package/stories/murmur/datavisualisations/ColumnChart.stories.ts +0 -88
- package/stories/murmur/datavisualisations/LineChart.stories.ts +0 -139
- package/stories/murmur/datavisualisations/StackedBarChart.stories.ts +0 -199
- package/stories/murmur/datavisualisations/StackedColumnChart.stories.ts +0 -136
- package/stories/murmur/decorators.ts +0 -108
- package/stories/murmur/maps/ChoroplethMap.stories.ts +0 -440
- package/stories/murmur/maps/ChoroplethMapAnnotation.stories.ts +0 -26
- package/stories/murmur/maps/SymbolMap.stories.ts +0 -24
- package/stories/murmur/utils.ts +0 -7
- package/tests/unit/components/AccordionStep.spec.ts +0 -157
- package/tests/unit/components/AccordionWrapper.spec.ts +0 -57
- package/tests/unit/components/ActiveTextTruncate.spec.js +0 -30
- package/tests/unit/components/AdvancedLinkForm.spec.js +0 -124
- package/tests/unit/components/Brand.spec.js +0 -50
- package/tests/unit/components/ContentPlaceholder.spec.js +0 -29
- package/tests/unit/components/CustomPagination.spec.js +0 -72
- package/tests/unit/components/DigitsInput.spec.ts +0 -157
- package/tests/unit/components/DonateForm.spec.js +0 -149
- package/tests/unit/components/EmbedForm.spec.js +0 -108
- package/tests/unit/components/EmbeddableFooter.spec.js +0 -11
- package/tests/unit/components/Fa.spec.js +0 -18
- package/tests/unit/components/FollowUsPopover.spec.js +0 -29
- package/tests/unit/components/GenericFooter.spec.js +0 -29
- package/tests/unit/components/GenericHeader.spec.js +0 -104
- package/tests/unit/components/HapticCopy.spec.js +0 -123
- package/tests/unit/components/ImddbHeader.spec.js +0 -96
- package/tests/unit/components/OrdinalLegend.spec.js +0 -120
- package/tests/unit/components/RangePicker.spec.ts +0 -87
- package/tests/unit/components/ResponsiveIframe.spec.js +0 -20
- package/tests/unit/components/ScaleLegend.spec.js +0 -139
- package/tests/unit/components/SecretInput.spec.js +0 -81
- package/tests/unit/components/SelectableDropdown.spec.js +0 -160
- package/tests/unit/components/SharingOptions.spec.js +0 -125
- package/tests/unit/components/SharingOptionsLink.spec.js +0 -184
- package/tests/unit/components/SignUpForm.spec.js +0 -145
- package/tests/unit/components/SlideUpDown.spec.js +0 -59
- package/tests/unit/components/TinyPagination.spec.js +0 -46
- package/tests/unit/config.spec.js +0 -136
- package/tests/unit/datavisualisations/BarChart.spec.js +0 -63
- package/tests/unit/datavisualisations/ColumnChart.spec.js +0 -344
- package/tests/unit/datavisualisations/LineChart.spec.js +0 -155
- package/tests/unit/datavisualisations/StackedBarChart.spec.js +0 -294
- package/tests/unit/datavisualisations/StackedColumnChart.spec.js +0 -443
- package/tests/unit/i18n.spec.ts +0 -19
- package/tests/unit/main.spec.js +0 -82
- package/tests/unit/maps/ChoroplethMap.spec.js +0 -214
- package/tests/unit/maps/ChoroplethMapAnnotation.spec.ts +0 -186
- package/tests/unit/maps/SymbolMap.spec.js +0 -92
- package/tests/unit/require.spec.js +0 -22
- package/tests/unit/setup.js +0 -13
- package/tests/unit/utils/assets.spec.js +0 -61
- package/tests/unit/utils/clipboard.spec.js +0 -18
- package/tests/unit/utils/iframe-resizer.spec.js +0 -71
- package/tsconfig.json +0 -35
- package/vite.config.ts +0 -79
- package/vitest.config.ts +0 -19
|
@@ -5,14 +5,14 @@ import sortBy from 'lodash/sortBy'
|
|
|
5
5
|
import forEach from 'lodash/forEach'
|
|
6
6
|
|
|
7
7
|
import config from '../config'
|
|
8
|
-
import {useI18n} from
|
|
9
|
-
import {computed, ref, watch} from
|
|
8
|
+
import { useI18n } from 'vue-i18n'
|
|
9
|
+
import { computed, ref, watch } from 'vue'
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* A form to encourage donations. We usually put this form inside a modal
|
|
13
13
|
*/
|
|
14
14
|
export default {
|
|
15
|
-
name: 'DonateForm',
|
|
15
|
+
name: 'DonateForm',
|
|
16
16
|
props: {
|
|
17
17
|
/**
|
|
18
18
|
* Title of the form.
|
|
@@ -21,8 +21,8 @@ name: 'DonateForm',
|
|
|
21
21
|
type: Boolean
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
setup(){
|
|
25
|
-
const {t, locale, messages} = useI18n()
|
|
24
|
+
setup() {
|
|
25
|
+
const { t, locale, messages } = useI18n()
|
|
26
26
|
const amount = ref(10)
|
|
27
27
|
// True if the amount wasn't changed by the user yet
|
|
28
28
|
const amountIsPristine = ref(true)
|
|
@@ -42,29 +42,31 @@ name: 'DonateForm',
|
|
|
42
42
|
}
|
|
43
43
|
})
|
|
44
44
|
|
|
45
|
-
const suggestedAmount = ref(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
const suggestedAmount = ref(
|
|
46
|
+
messages.value[locale.value]['donate-form']['suggesteddonation']
|
|
47
|
+
)
|
|
48
|
+
const listBenefits = ref(
|
|
49
|
+
messages.value[locale.value]['donate-form']['benefits']['list']
|
|
50
|
+
)
|
|
51
|
+
const ranges = computed(() => {
|
|
52
|
+
if (installmentPeriod.value === 'onetime') {
|
|
49
53
|
return labelForChange.value['yearly']
|
|
50
54
|
}
|
|
51
55
|
return labelForChange.value[installmentPeriod.value]
|
|
52
56
|
})
|
|
53
|
-
const firstRange = computed(()=> {
|
|
57
|
+
const firstRange = computed(() => {
|
|
54
58
|
const key = keys(ranges.value)[0]
|
|
55
59
|
return ranges.value[key]
|
|
56
60
|
})
|
|
57
|
-
const changeThe = computed(()=> {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
)
|
|
67
|
-
watch(installmentPeriod,() => {
|
|
61
|
+
const changeThe = computed(() => {
|
|
62
|
+
// Final label
|
|
63
|
+
let label = null
|
|
64
|
+
forEach(sortBy(map(keys(ranges.value), Number)), (amountV) => {
|
|
65
|
+
label = amount.value >= amountV ? ranges.value[amountV] : label
|
|
66
|
+
})
|
|
67
|
+
return label
|
|
68
|
+
})
|
|
69
|
+
watch(installmentPeriod, () => {
|
|
68
70
|
if (!amountIsPristine.value) {
|
|
69
71
|
return
|
|
70
72
|
}
|
|
@@ -72,12 +74,14 @@ name: 'DonateForm',
|
|
|
72
74
|
// Set suggested amount
|
|
73
75
|
amount.value = getSuggestedAmount()
|
|
74
76
|
})
|
|
75
|
-
watch(
|
|
76
|
-
|
|
77
|
+
watch(
|
|
78
|
+
() => amount.value,
|
|
79
|
+
(v) => {
|
|
80
|
+
level.value = changeThe.value
|
|
77
81
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
// Set manual amount
|
|
83
|
+
return (amount.value = v)
|
|
84
|
+
}
|
|
81
85
|
)
|
|
82
86
|
function getSuggestedAmount() {
|
|
83
87
|
if (!amountIsPristine.value) {
|
|
@@ -98,7 +102,7 @@ name: 'DonateForm',
|
|
|
98
102
|
// Set suggested amount
|
|
99
103
|
amount.value = getSuggestedAmount()
|
|
100
104
|
}
|
|
101
|
-
function amountIsNotPristine(){
|
|
105
|
+
function amountIsNotPristine() {
|
|
102
106
|
amountIsPristine.value = false
|
|
103
107
|
}
|
|
104
108
|
|
|
@@ -114,84 +118,96 @@ name: 'DonateForm',
|
|
|
114
118
|
selectLevel,
|
|
115
119
|
amountIsNotPristine
|
|
116
120
|
}
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
121
|
+
}
|
|
120
122
|
}
|
|
121
123
|
</script>
|
|
122
124
|
|
|
123
125
|
<template>
|
|
124
126
|
<div class="donate-form container-fluid py-2">
|
|
125
|
-
<h2
|
|
127
|
+
<h2
|
|
128
|
+
v-if="!noTitle"
|
|
129
|
+
class="donate-form__title text-uppercase fw-bold text-primary h5"
|
|
130
|
+
>
|
|
126
131
|
{{ t('donate-form.support') }}
|
|
127
132
|
</h2>
|
|
128
133
|
<!-- @slot Description of the form (bellow the title). -->
|
|
129
134
|
<slot name="introduction">
|
|
130
135
|
<!-- eslint-disable vue/no-v-html -->
|
|
131
|
-
<p
|
|
136
|
+
<p
|
|
137
|
+
class="donate-form__introduction"
|
|
138
|
+
v-html="t('donate-form.introduction')"
|
|
139
|
+
/>
|
|
132
140
|
<!-- eslint-enable -->
|
|
133
141
|
</slot>
|
|
134
142
|
|
|
135
143
|
<div class="donate-form__payment mb-4 text-center">
|
|
136
144
|
<form
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
145
|
+
action="//checkout.fundjournalism.org/memberform"
|
|
146
|
+
method="get"
|
|
147
|
+
target="_blank"
|
|
148
|
+
class="donate-form__payment__form bg-light p-4"
|
|
141
149
|
>
|
|
142
150
|
<div class="donate-form__payment__levels row">
|
|
143
151
|
<div
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
152
|
+
class="col donate-form__payment__level"
|
|
153
|
+
:class="{ active: level === 'conversation' }"
|
|
154
|
+
@click="selectLevel('conversation')"
|
|
147
155
|
>
|
|
148
|
-
<h3
|
|
156
|
+
<h3
|
|
157
|
+
class="donate-form__payment__heading text-uppercase fw-bold text-primary h5"
|
|
158
|
+
>
|
|
149
159
|
{{ t('donate-form.benefits.impacts.conversation.heading') }}
|
|
150
160
|
</h3>
|
|
151
161
|
<div class="Article">
|
|
152
162
|
<div>
|
|
153
163
|
<!-- eslint-disable vue/no-v-html -->
|
|
154
164
|
<p
|
|
155
|
-
|
|
156
|
-
|
|
165
|
+
class="donate-form__payment__highlight text-icij fw-bold"
|
|
166
|
+
v-html="
|
|
167
|
+
t('donate-form.benefits.impacts.conversation.highlight')
|
|
168
|
+
"
|
|
157
169
|
/>
|
|
158
170
|
<!-- eslint-enable -->
|
|
159
171
|
</div>
|
|
160
172
|
</div>
|
|
161
173
|
</div>
|
|
162
174
|
<div
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
175
|
+
class="col donate-form__payment__level"
|
|
176
|
+
:class="{ active: level === 'rules' }"
|
|
177
|
+
@click="selectLevel('rules')"
|
|
166
178
|
>
|
|
167
|
-
<h3
|
|
179
|
+
<h3
|
|
180
|
+
class="donate-form__payment__heading text-uppercase fw-bold text-primary h5"
|
|
181
|
+
>
|
|
168
182
|
{{ t('donate-form.benefits.impacts.rules.heading') }}
|
|
169
183
|
</h3>
|
|
170
184
|
<div class="Article">
|
|
171
185
|
<div>
|
|
172
186
|
<!-- eslint-disable vue/no-v-html -->
|
|
173
187
|
<p
|
|
174
|
-
|
|
175
|
-
|
|
188
|
+
class="donate-form__payment__highlight text-icij fw-bold"
|
|
189
|
+
v-html="t('donate-form.benefits.impacts.rules.highlight')"
|
|
176
190
|
/>
|
|
177
191
|
<!-- eslint-enable -->
|
|
178
192
|
</div>
|
|
179
193
|
</div>
|
|
180
194
|
</div>
|
|
181
195
|
<div
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
196
|
+
class="col donate-form__payment__level"
|
|
197
|
+
:class="{ active: level === 'world' }"
|
|
198
|
+
@click="selectLevel('world')"
|
|
185
199
|
>
|
|
186
|
-
<h3
|
|
200
|
+
<h3
|
|
201
|
+
class="donate-form__payment__heading text-uppercase fw-bold text-primary h5"
|
|
202
|
+
>
|
|
187
203
|
{{ t('donate-form.benefits.impacts.world.heading') }}
|
|
188
204
|
</h3>
|
|
189
205
|
<div class="Article">
|
|
190
206
|
<div>
|
|
191
207
|
<!-- eslint-disable vue/no-v-html -->
|
|
192
208
|
<p
|
|
193
|
-
|
|
194
|
-
|
|
209
|
+
class="donate-form__payment__highlight text-icij fw-bold"
|
|
210
|
+
v-html="t('donate-form.benefits.impacts.world.highlight')"
|
|
195
211
|
/>
|
|
196
212
|
<!-- eslint-enable -->
|
|
197
213
|
</div>
|
|
@@ -203,26 +219,26 @@ name: 'DonateForm',
|
|
|
203
219
|
<div class="mt-5">
|
|
204
220
|
<span class="donate-form__payment__buttons">
|
|
205
221
|
<button
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
222
|
+
type="button"
|
|
223
|
+
class="btn btn-sm frequency-monthly"
|
|
224
|
+
:class="{ 'btn-primary': installmentPeriod === 'monthly' }"
|
|
225
|
+
@click="installmentPeriod = 'monthly'"
|
|
210
226
|
>
|
|
211
227
|
{{ t('donate-form.frequency.monthly') }}
|
|
212
228
|
</button>
|
|
213
229
|
<button
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
230
|
+
type="button"
|
|
231
|
+
class="btn btn-sm frequency-yearly"
|
|
232
|
+
:class="{ 'btn-primary': installmentPeriod === 'yearly' }"
|
|
233
|
+
@click="installmentPeriod = 'yearly'"
|
|
218
234
|
>
|
|
219
235
|
{{ t('donate-form.frequency.yearly') }}
|
|
220
236
|
</button>
|
|
221
237
|
<button
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
238
|
+
type="button"
|
|
239
|
+
class="btn btn-sm frequency-onetime"
|
|
240
|
+
:class="{ 'btn-primary': installmentPeriod === null }"
|
|
241
|
+
@click="installmentPeriod = 'onetime'"
|
|
226
242
|
>
|
|
227
243
|
{{ t('donate-form.frequency.onetime') }}
|
|
228
244
|
</button>
|
|
@@ -230,28 +246,41 @@ name: 'DonateForm',
|
|
|
230
246
|
</div>
|
|
231
247
|
<div class="mt-4">
|
|
232
248
|
<span>{{ t('donate-form.label') }} </span>
|
|
233
|
-
<label
|
|
249
|
+
<label
|
|
250
|
+
class="donate-form__payment__unit input-group input-group-sm d-inline-flex"
|
|
251
|
+
>
|
|
234
252
|
<span class="input-group-prepend">
|
|
235
253
|
<span class="input-group-text">$</span>
|
|
236
254
|
</span>
|
|
237
255
|
<input
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
256
|
+
v-model="amount"
|
|
257
|
+
class="donate-form__payment__input form-control"
|
|
258
|
+
name="amount"
|
|
259
|
+
type="number"
|
|
260
|
+
min="0"
|
|
261
|
+
@change="amountIsNotPristine"
|
|
244
262
|
/>
|
|
245
263
|
</label>
|
|
246
264
|
</div>
|
|
247
265
|
<div class="mt-4">
|
|
248
266
|
<input name="org_id" value="icij" type="hidden" />
|
|
249
267
|
<input v-model="campaign" name="campaign" type="hidden" />
|
|
250
|
-
<input
|
|
251
|
-
|
|
268
|
+
<input
|
|
269
|
+
v-model="installmentPeriod"
|
|
270
|
+
name="installmentPeriod"
|
|
271
|
+
type="hidden"
|
|
272
|
+
/>
|
|
273
|
+
<button
|
|
274
|
+
type="submit"
|
|
275
|
+
class="btn btn-primary rounded-pill text-uppercase fw-bold"
|
|
276
|
+
>
|
|
252
277
|
{{ t('donate-form.submit') }}
|
|
253
278
|
</button>
|
|
254
|
-
<a
|
|
279
|
+
<a
|
|
280
|
+
target="_blank"
|
|
281
|
+
href="https://icij.org/donate"
|
|
282
|
+
class="donate-form__payment__image"
|
|
283
|
+
/>
|
|
255
284
|
</div>
|
|
256
285
|
</div>
|
|
257
286
|
</form>
|
|
@@ -267,10 +296,10 @@ name: 'DonateForm',
|
|
|
267
296
|
<div>
|
|
268
297
|
<ul class="donate-form__insider__list">
|
|
269
298
|
<li
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
299
|
+
v-for="(benefit, index) in listBenefits"
|
|
300
|
+
:key="index"
|
|
301
|
+
class="donate-form__insider__list-item"
|
|
302
|
+
v-html="benefit"
|
|
274
303
|
/>
|
|
275
304
|
</ul>
|
|
276
305
|
</div>
|
|
@@ -278,9 +307,9 @@ name: 'DonateForm',
|
|
|
278
307
|
<hr class="donate-form__insider__separator" />
|
|
279
308
|
<div class="donate-form__insider__more text-center">
|
|
280
309
|
<a
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
310
|
+
target="_blank"
|
|
311
|
+
href="https://icij.org/donate"
|
|
312
|
+
class="btn btn-primary rounded-pill text-uppercase fw-bold py-2"
|
|
284
313
|
>
|
|
285
314
|
{{ t('donate-form.benefits.more') }}
|
|
286
315
|
</a>
|
|
@@ -9,15 +9,26 @@
|
|
|
9
9
|
<p>
|
|
10
10
|
{{ t('embed-form.introduction') }}
|
|
11
11
|
</p>
|
|
12
|
-
<textarea
|
|
12
|
+
<textarea
|
|
13
|
+
ref="embed-form__code"
|
|
14
|
+
class="form-control embed-form__code mb-2"
|
|
15
|
+
readonly
|
|
16
|
+
:value="embedCode()"
|
|
17
|
+
@click="selectCode"
|
|
18
|
+
/>
|
|
13
19
|
|
|
14
20
|
<div class="d-flex justify-content-between">
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
<div class="form-check align-self-end">
|
|
22
|
+
<input
|
|
23
|
+
type="checkbox"
|
|
24
|
+
class="form-check-input"
|
|
25
|
+
id="responsiveOptin"
|
|
26
|
+
v-model="responsiveCheck"
|
|
27
|
+
/>
|
|
28
|
+
<label class="form-check-label fw-bold" for="responsiveOptin">
|
|
29
|
+
{{ t('embed-form.responsive-optin') }}
|
|
30
|
+
</label>
|
|
31
|
+
</div>
|
|
21
32
|
|
|
22
33
|
<haptic-copy
|
|
23
34
|
class="btn-link btn-sm text-uppercase fw-bold"
|
|
@@ -27,7 +38,10 @@
|
|
|
27
38
|
/>
|
|
28
39
|
</div>
|
|
29
40
|
</div>
|
|
30
|
-
<div
|
|
41
|
+
<div
|
|
42
|
+
v-if="!noPreview"
|
|
43
|
+
class="col-7 d-none d-lg-block embed-form__preview"
|
|
44
|
+
>
|
|
31
45
|
<!-- eslint-disable vue/no-v-html -->
|
|
32
46
|
<span v-html="embedCode(false)" />
|
|
33
47
|
<!-- eslint-enable -->
|
|
@@ -38,9 +52,9 @@
|
|
|
38
52
|
</template>
|
|
39
53
|
|
|
40
54
|
<script lang="ts">
|
|
41
|
-
import {computed, defineComponent, ref} from 'vue'
|
|
55
|
+
import { computed, defineComponent, ref } from 'vue'
|
|
42
56
|
|
|
43
|
-
import {useI18n} from
|
|
57
|
+
import { useI18n } from 'vue-i18n'
|
|
44
58
|
import HapticCopy from '@/components/HapticCopy.vue'
|
|
45
59
|
import IframeResizer from '@/utils/iframe-resizer'
|
|
46
60
|
|
|
@@ -58,7 +72,7 @@ interface ComponentInterface {
|
|
|
58
72
|
* Embed Form
|
|
59
73
|
*/
|
|
60
74
|
export default defineComponent({
|
|
61
|
-
name: 'EmbedForm',
|
|
75
|
+
name: 'EmbedForm',
|
|
62
76
|
components: {
|
|
63
77
|
HapticCopy
|
|
64
78
|
},
|
|
@@ -111,18 +125,17 @@ name: 'EmbedForm',
|
|
|
111
125
|
default: null
|
|
112
126
|
}
|
|
113
127
|
},
|
|
114
|
-
setup(props)
|
|
115
|
-
|
|
116
|
-
const {t} = useI18n()
|
|
128
|
+
setup(props) {
|
|
129
|
+
const { t } = useI18n()
|
|
117
130
|
|
|
118
131
|
const responsiveCheck = ref(false)
|
|
119
|
-
const embedFormCode = ref<HTMLTextAreaElement|null>(null)
|
|
120
|
-
const currentUrl = computed(()=> {
|
|
132
|
+
const embedFormCode = ref<HTMLTextAreaElement | null>(null)
|
|
133
|
+
const currentUrl = computed(() => {
|
|
121
134
|
return props.url || window.location.href
|
|
122
135
|
})
|
|
123
136
|
function iframeCodeFor(_url = currentUrl, width: string, height: string) {
|
|
124
137
|
return `<iframe width="${width}" height="${height}" src="${IframeResizer.deletePymParams(
|
|
125
|
-
|
|
138
|
+
props.url
|
|
126
139
|
)}" frameborder="0" allowfullscreen></iframe>`
|
|
127
140
|
}
|
|
128
141
|
function pymCodeFor(url = currentUrl): string {
|
|
@@ -132,9 +145,14 @@ name: 'EmbedForm',
|
|
|
132
145
|
embedFormCode.value?.select()
|
|
133
146
|
}
|
|
134
147
|
function embedCode(withPym = responsiveCheck.value): string {
|
|
135
|
-
const width =
|
|
148
|
+
const width =
|
|
149
|
+
typeof props.width === 'string'
|
|
150
|
+
? props.width
|
|
151
|
+
: Math.max(props.width, props.minWidth).toString()
|
|
136
152
|
const height = Math.max(props.height, props.minHeight).toString()
|
|
137
|
-
return withPym
|
|
153
|
+
return withPym
|
|
154
|
+
? pymCodeFor(currentUrl)
|
|
155
|
+
: iframeCodeFor(currentUrl, width, height)
|
|
138
156
|
}
|
|
139
157
|
|
|
140
158
|
return {
|
|
@@ -155,8 +173,6 @@ name: 'EmbedForm',
|
|
|
155
173
|
font-size: 0.9rem;
|
|
156
174
|
overflow: auto;
|
|
157
175
|
|
|
158
|
-
|
|
159
|
-
|
|
160
176
|
&__heading {
|
|
161
177
|
font-size: 1.1em;
|
|
162
178
|
text-transform: uppercase;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="embeddable-footer p-2 text-nowrap">
|
|
3
|
-
<a
|
|
3
|
+
<a
|
|
4
|
+
:href="homeUrl"
|
|
5
|
+
target="_blank"
|
|
6
|
+
class="text-white embeddable-footer__brand"
|
|
7
|
+
>
|
|
4
8
|
<brand :size="40" no-border class="me-2" color="white" />
|
|
5
9
|
<!-- @slot Slot to redefine title display -->
|
|
6
10
|
<slot name="title">
|
|
@@ -16,20 +20,20 @@
|
|
|
16
20
|
<!-- @slot Overide the sharing button -->
|
|
17
21
|
<slot name="sharing-button" v-bind="{ sharingOptionsValues }">
|
|
18
22
|
<button
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
class="btn btn-link text-white btn-sm py-0 embeddable-footer__share-btn"
|
|
24
|
+
:class="{ active: showShareOptions }"
|
|
25
|
+
@click="showShareOptions = !showShareOptions"
|
|
22
26
|
>
|
|
23
27
|
<fa icon="share-alt" />
|
|
24
28
|
<span class="sr-only">{{ $t('embeddable-footer.share') }}</span>
|
|
25
29
|
</button>
|
|
26
30
|
</slot>
|
|
27
31
|
<sharing-options
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
v-if="showShareOptions"
|
|
33
|
+
:values="sharingOptionsValues"
|
|
34
|
+
direction="column-reverse"
|
|
35
|
+
:iframe-min-height="iframeMinHeight"
|
|
36
|
+
:iframe-min-width="iframeMinWidth"
|
|
33
37
|
/>
|
|
34
38
|
</div>
|
|
35
39
|
</template>
|
|
@@ -52,7 +56,7 @@ type EmbeddableFooterData = {
|
|
|
52
56
|
* EmbeddableFooter
|
|
53
57
|
*/
|
|
54
58
|
export default defineComponent({
|
|
55
|
-
name: 'EmbeddableFooter',
|
|
59
|
+
name: 'EmbeddableFooter',
|
|
56
60
|
components: {
|
|
57
61
|
Fa,
|
|
58
62
|
SharingOptions,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="follow-us">
|
|
3
|
-
<button
|
|
3
|
+
<button
|
|
4
|
+
class="btn btn-link text-light follow-us__close"
|
|
5
|
+
@click="closeSignupPopover"
|
|
6
|
+
>
|
|
4
7
|
<fa icon="times" />
|
|
5
8
|
</button>
|
|
6
9
|
<sign-up-form class="p-3" />
|
|
@@ -8,40 +11,40 @@
|
|
|
8
11
|
{{ t('follow-us-popover.heading') }}
|
|
9
12
|
</div>
|
|
10
13
|
<div class="p-3 bg-light d-flex justify-content-between text-center">
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</div>
|
|
22
|
-
<div class="col">
|
|
23
|
-
<a
|
|
24
|
-
href="https://www.facebook.com/ICIJ.org"
|
|
25
|
-
target="_blank"
|
|
26
|
-
class="d-inline-block text-primary border border-primary rounded-circle bg-white follow-us__social-btn"
|
|
27
|
-
title="Facebook"
|
|
28
|
-
>
|
|
29
|
-
<fa :icon="['fab', 'facebook']" size="lg" />
|
|
30
|
-
<span class="sr-only">Facebook</span>
|
|
31
|
-
</a>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="col">
|
|
34
|
-
<a
|
|
35
|
-
href="https://www.linkedin.com/company/1732242/"
|
|
36
|
-
target="_blank"
|
|
37
|
-
class="d-inline-block text-primary border border-primary rounded-circle bg-white follow-us__social-btn"
|
|
38
|
-
title="Linkedin"
|
|
39
|
-
>
|
|
40
|
-
<fa :icon="['fab', 'linkedin']" size="lg" />
|
|
41
|
-
<span class="sr-only">Linkedin</span>
|
|
42
|
-
</a>
|
|
43
|
-
</div>
|
|
14
|
+
<div class="col">
|
|
15
|
+
<a
|
|
16
|
+
href="https://twitter.com/ICIJorg"
|
|
17
|
+
target="_blank"
|
|
18
|
+
class="d-inline-block text-primary border border-primary rounded-circle bg-white follow-us__social-btn"
|
|
19
|
+
title="Twitter"
|
|
20
|
+
>
|
|
21
|
+
<fa :icon="['fab', 'twitter']" size="lg" />
|
|
22
|
+
<span class="sr-only">Twitter</span>
|
|
23
|
+
</a>
|
|
44
24
|
</div>
|
|
25
|
+
<div class="col">
|
|
26
|
+
<a
|
|
27
|
+
href="https://www.facebook.com/ICIJ.org"
|
|
28
|
+
target="_blank"
|
|
29
|
+
class="d-inline-block text-primary border border-primary rounded-circle bg-white follow-us__social-btn"
|
|
30
|
+
title="Facebook"
|
|
31
|
+
>
|
|
32
|
+
<fa :icon="['fab', 'facebook']" size="lg" />
|
|
33
|
+
<span class="sr-only">Facebook</span>
|
|
34
|
+
</a>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="col">
|
|
37
|
+
<a
|
|
38
|
+
href="https://www.linkedin.com/company/1732242/"
|
|
39
|
+
target="_blank"
|
|
40
|
+
class="d-inline-block text-primary border border-primary rounded-circle bg-white follow-us__social-btn"
|
|
41
|
+
title="Linkedin"
|
|
42
|
+
>
|
|
43
|
+
<fa :icon="['fab', 'linkedin']" size="lg" />
|
|
44
|
+
<span class="sr-only">Linkedin</span>
|
|
45
|
+
</a>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
45
48
|
</div>
|
|
46
49
|
</template>
|
|
47
50
|
|
|
@@ -55,7 +58,6 @@ import { useI18n } from 'vue-i18n'
|
|
|
55
58
|
import SignUpForm from './SignUpForm.vue'
|
|
56
59
|
import { library, default as Fa } from './Fa'
|
|
57
60
|
|
|
58
|
-
|
|
59
61
|
/**
|
|
60
62
|
* FollowUsPopover
|
|
61
63
|
*/
|
|
@@ -65,11 +67,11 @@ export default defineComponent({
|
|
|
65
67
|
Fa,
|
|
66
68
|
SignUpForm
|
|
67
69
|
},
|
|
68
|
-
emits:[
|
|
69
|
-
setup(_props,{emit}){
|
|
70
|
-
const {t} = useI18n()
|
|
71
|
-
onBeforeMount((): void=>{
|
|
72
|
-
|
|
70
|
+
emits: ['update:close'],
|
|
71
|
+
setup(_props, { emit }) {
|
|
72
|
+
const { t } = useI18n()
|
|
73
|
+
onBeforeMount((): void => {
|
|
74
|
+
library.add(faTimes, faTwitter, faFacebook, faLinkedin)
|
|
73
75
|
})
|
|
74
76
|
function closeSignupPopover(): void {
|
|
75
77
|
/**
|