mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge branch 'master' into alternate-solution-filter-order-post-types
This commit is contained in:
commit
abc2cc2241
@ -90,6 +90,9 @@ $background-color-primary-inverse: rgb(241, 253, 244);
|
|||||||
$background-color-secondary: rgb(0, 142, 230);
|
$background-color-secondary: rgb(0, 142, 230);
|
||||||
$background-color-secondary-active: rgb(10, 161, 255);
|
$background-color-secondary-active: rgb(10, 161, 255);
|
||||||
$background-color-secondary-inverse: rgb(240, 249, 255);
|
$background-color-secondary-inverse: rgb(240, 249, 255);
|
||||||
|
$background-color-third: rgb(126, 82, 204);
|
||||||
|
$background-color-third-active: rgb(160, 103, 255);
|
||||||
|
$background-color-third-inverse: rgb(239, 230, 255);
|
||||||
$background-color-success: rgb(23, 181, 63);
|
$background-color-success: rgb(23, 181, 63);
|
||||||
$background-color-success-active: rgb(26, 203, 71);
|
$background-color-success-active: rgb(26, 203, 71);
|
||||||
$background-color-success-inverse: rgb(241, 253, 244);
|
$background-color-success-inverse: rgb(241, 253, 244);
|
||||||
@ -395,3 +398,12 @@ $color-toast-orange: $color-warning;
|
|||||||
$color-toast-yellow: $color-yellow;
|
$color-toast-yellow: $color-yellow;
|
||||||
$color-toast-blue: $color-secondary;
|
$color-toast-blue: $color-secondary;
|
||||||
$color-toast-green: $color-success;
|
$color-toast-green: $color-success;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @tokens Ribbon Color
|
||||||
|
*/
|
||||||
|
|
||||||
|
$color-ribbon-event: $background-color-third;
|
||||||
|
$color-ribbon-event-active: $background-color-third-active;
|
||||||
|
$color-ribbon-article: $background-color-secondary;
|
||||||
|
$color-ribbon-article-active: $background-color-secondary-active;
|
||||||
@ -1,6 +1,8 @@
|
|||||||
import { mount } from '@vue/test-utils'
|
import { mount } from '@vue/test-utils'
|
||||||
import InviteButton from './InviteButton.vue'
|
import InviteButton from './InviteButton.vue'
|
||||||
|
|
||||||
|
const localVue = global.localVue
|
||||||
|
|
||||||
const stubs = {
|
const stubs = {
|
||||||
'v-popover': {
|
'v-popover': {
|
||||||
template: '<span><slot /></span>',
|
template: '<span><slot /></span>',
|
||||||
@ -26,7 +28,7 @@ describe('InviteButton.vue', () => {
|
|||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
return mount(InviteButton, { mocks, propsData, stubs })
|
return mount(InviteButton, { mocks, localVue, propsData, stubs })
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@ -25,7 +25,7 @@ export default {
|
|||||||
padding: $size-ribbon $size-ribbon;
|
padding: $size-ribbon $size-ribbon;
|
||||||
border-radius: $border-radius-small 0 0 $border-radius-small;
|
border-radius: $border-radius-small 0 0 $border-radius-small;
|
||||||
color: $color-neutral-100;
|
color: $color-neutral-100;
|
||||||
background-color: $background-color-secondary-active;
|
background-color: $color-ribbon-article-active;
|
||||||
font-size: $font-size-x-small;
|
font-size: $font-size-x-small;
|
||||||
font-weight: $font-weight-bold;
|
font-weight: $font-weight-bold;
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ export default {
|
|||||||
bottom: -$size-ribbon;
|
bottom: -$size-ribbon;
|
||||||
border-width: $border-size-large 4px $border-size-large $border-size-large;
|
border-width: $border-size-large 4px $border-size-large $border-size-large;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: $background-color-secondary transparent transparent $background-color-secondary;
|
border-color: $color-ribbon-article transparent transparent $color-ribbon-article;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.--pinned {
|
&.--pinned {
|
||||||
@ -48,10 +48,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.eventBg {
|
.eventBg {
|
||||||
background-color: $color-success-active;
|
background-color: $color-ribbon-event-active;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
border-color: $color-success-active transparent transparent $color-success-active;
|
border-color: $color-ribbon-event transparent transparent $color-ribbon-event;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -740,7 +740,7 @@
|
|||||||
"unpin": "Unpin post",
|
"unpin": "Unpin post",
|
||||||
"unpinnedSuccessfully": "Post unpinned successfully!"
|
"unpinnedSuccessfully": "Post unpinned successfully!"
|
||||||
},
|
},
|
||||||
"name": "Post",
|
"name": "Article",
|
||||||
"pinned": "Announcement",
|
"pinned": "Announcement",
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
"name": "Take action"
|
"name": "Take action"
|
||||||
|
|||||||
@ -18,9 +18,13 @@ describe('create.vue', () => {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const stubs = {
|
||||||
|
ContributionForm: true,
|
||||||
|
}
|
||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
return mount(create, { mocks, localVue })
|
return mount(create, { mocks, localVue, stubs })
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@ -28,7 +32,7 @@ describe('create.vue', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('renders', () => {
|
it('renders', () => {
|
||||||
expect(wrapper.findAll('.contribution-form')).toHaveLength(1)
|
expect(wrapper.findComponent({ name: 'ContributionForm' }).exists()).toBe(true)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user